From ee531776e9dff4513ff7be11a2af719994f5df1e Mon Sep 17 00:00:00 2001 From: yliao Date: Fri, 28 Aug 2026 21:33:03 +0000 Subject: [PATCH 1/6] update version constants for 37.0.0+snapshot release --- scripts/constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/constants.py b/scripts/constants.py index 2f1c50d0e8..5a8618ad77 100644 --- a/scripts/constants.py +++ b/scripts/constants.py @@ -15,10 +15,10 @@ import sys # Kubernetes branch to get the OpenAPI spec from. -KUBERNETES_BRANCH = "release-1.36" +KUBERNETES_BRANCH = "release-1.37" # client version for packaging and releasing. -CLIENT_VERSION = "36.0.0+snapshot" +CLIENT_VERSION = "37.0.0+snapshot" # Name of the release package PACKAGE_NAME = "kubernetes" From bf6b019cdbad922ceb3bc44ab462f6c7f07effe6 Mon Sep 17 00:00:00 2001 From: yliao Date: Fri, 28 Aug 2026 21:33:03 +0000 Subject: [PATCH 2/6] update changelog --- CHANGELOG.md | 178 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 178 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83a4558f7f..275a18de6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,181 @@ +# v37.0.0+snapshot + +Kubernetes API Version: v1.37.0 + +### API Change +- Added Alpha support for DRA device compatibility groups, guarded by the `DRADeviceCompatibilityGroups` feature gate (disabled by default). DRA drivers can declare opaque `compatibilityGroups` on each `device.consumesCounters[]` entry of a ResourceSlice, and the scheduler only co-allocates devices drawing from the same counter set when their declared groups intersect. This moves detection of incompatible co-allocation from preparation-time failure to scheduling-time rejection. ([kubernetes/kubernetes#139795](https://github.com/kubernetes/kubernetes/pull/139795), [@omeryahud](https://github.com/omeryahud)) [SIG API Machinery, Node, Scheduling and Testing] +- Added Alpha support for binding service account tokens to webhook configurations with attestations, behind the `APIServerWebhookAuthenticationToken` feature gate. This enables API servers to authenticate to admission webhooks with scoped tokens. ([kubernetes/kubernetes#140113](https://github.com/kubernetes/kubernetes/pull/140113), [@pmengelbert](https://github.com/pmengelbert)) [SIG API Machinery, Apps, Auth and Testing] +- Added Alpha support for defining the file owner of atomically written volume files, behind the `AtomicWriteVolumeUserFields` feature gate (disabled by default). ([kubernetes/kubernetes#139764](https://github.com/kubernetes/kubernetes/pull/139764), [@gavinkflam](https://github.com/gavinkflam)) [SIG API Machinery, Apps, Auth, Storage and Testing] +- Added CompositePodGroup support to the building block APIs and the `workloadbuilder` library. ([kubernetes/kubernetes#140717](https://github.com/kubernetes/kubernetes/pull/140717), [@helayoty](https://github.com/helayoty)) [SIG API Machinery, Apps, Auth, Scheduling and Testing] +- Added Workload-aware scheduling (WAS) support to the Job controller by integrating it with the `workloadbuilder` library and the Workload building block APIs. ([kubernetes/kubernetes#140188](https://github.com/kubernetes/kubernetes/pull/140188), [@helayoty](https://github.com/helayoty)) [SIG API Machinery, Apps, Auth, Network, Node, Scheduling, Storage and Testing] +- Added `CheckpointPod` and `RestorePod` RPCs to the CRI `v1` RuntimeService API for Pod-level checkpoint and restore. ([kubernetes/kubernetes#140366](https://github.com/kubernetes/kubernetes/pull/140366), [@rst0git](https://github.com/rst0git)) [SIG Node, Testing and Windows] +- Added a `PreemptionPolicy` field to PodGroup, allowing users to control how `kube-scheduler` preempts Pods that belong to a PodGroup during workload-aware preemption. ([kubernetes/kubernetes#139240](https://github.com/kubernetes/kubernetes/pull/139240), [@ania-borowiec](https://github.com/ania-borowiec)) [SIG Scheduling] +- Added a `protocol` field to `httpGet` probes so that liveness, readiness, and startup probes can run over HTTP/2 cleartext (H2C). ([kubernetes/kubernetes#139429](https://github.com/kubernetes/kubernetes/pull/139429), [@amritansh1502](https://github.com/amritansh1502)) [SIG API Machinery, Apps, Node and Testing] +- Added a defense-in-depth check to the `NodeRestriction` admission plugin for PodCertificateRequests. A node can only create a PodCertificateRequest referring to a particular signer name if the Pod actually mounts a `podCertificate` projected volume source that refers to that signer name, or if an authorization check for the user (with `verb=request-podcertificate-signer` and `resource=`) succeeds. ([kubernetes/kubernetes#140006](https://github.com/kubernetes/kubernetes/pull/140006), [@ahmedtd](https://github.com/ahmedtd)) [SIG Auth and Testing] +- Added a second Alpha of DRA resource availability visibility (KEP-5677), behind the `DRAResourcePoolStatus` feature gate (disabled by default). The ResourcePoolStatusRequest controller counts partitionable and consumable devices correctly, counting each device once, ignoring AdminAccess, and treating taints as unavailable. Optional fields describe partition and shareable availability. These accounting fixes change the numbers reported in `v1.36`. ([kubernetes/kubernetes#140170](https://github.com/kubernetes/kubernetes/pull/140170), [@nmn3m](https://github.com/nmn3m)) [SIG API Machinery, Apps, Auth, Node and Testing] +- Added an opt-in userspace TCP proxy to the nftables `kube-proxy` backend to serve localhost NodePort Services on IPv4 and IPv6. ([kubernetes/kubernetes#138427](https://github.com/kubernetes/kubernetes/pull/138427), [@AustinAbro321](https://github.com/AustinAbro321)) [SIG Instrumentation, Network and Testing] +- Added dry-run support to unsafe corrupt object deletion, letting administrators test deletion operations safely before running them. ([kubernetes/kubernetes#134037](https://github.com/kubernetes/kubernetes/pull/134037), [@ibihim](https://github.com/ibihim)) [SIG API Machinery and Testing] +- Added generated declarative validation functions for Go consumers of the DRA device metadata `v1alpha1` API. ([kubernetes/kubernetes#140687](https://github.com/kubernetes/kubernetes/pull/140687), [@alaypatel07](https://github.com/alaypatel07)) [SIG Node] +- Added scheduler support for preempting lower-priority Pods to make room for `Deferred` in-place Pod resizes of higher-priority Pods when the `InPlacePodVerticalScalingSchedulerPreemption` Alpha feature gate is enabled. ([kubernetes/kubernetes#140000](https://github.com/kubernetes/kubernetes/pull/140000), [@natasha41575](https://github.com/natasha41575)) [SIG API Machinery, Apps, Node, Scheduling, Storage and Testing] +- Added support for derived attributes in DRA, allowing claims to define virtual attributes using CEL expressions and use them in device constraints. This enables co-allocation of devices across different domains, for example GPUs and NICs on the same NUMA node, even if their drivers publish physical attributes differently. ([kubernetes/kubernetes#140029](https://github.com/kubernetes/kubernetes/pull/140029), [@gauravkghildiyal](https://github.com/gauravkghildiyal)) [SIG API Machinery, Node, Scheduling and Testing] +- Added support for dynamically resizing memory-backed volumes behind the Alpha `InPlacePodVerticalScalingMemoryBackedVolumes` feature gate. ([kubernetes/kubernetes#139425](https://github.com/kubernetes/kubernetes/pull/139425), [@natasha41575](https://github.com/natasha41575)) [SIG API Machinery, Apps, Autoscaling, CLI, Node, Scheduling, Storage and Testing] +- Added support for selecting ResourceSlices by pool name with the field selector `spec.pool.name`. ([kubernetes/kubernetes#138456](https://github.com/kubernetes/kubernetes/pull/138456), [@yaroslavborbat](https://github.com/yaroslavborbat)) [SIG API Machinery, Node and Testing] +- Added support for setting Unix permission bits (0000-01777) through the `mode` field on emptyDir volume directories at creation time. ([kubernetes/kubernetes#140244](https://github.com/kubernetes/kubernetes/pull/140244), [@nispriha](https://github.com/nispriha)) [SIG API Machinery, Apps, Node, Storage and Testing] +- Added support for specifying bind mount options (`noexec`, `nodev`, `nosuid`) per container volume mount. ([kubernetes/kubernetes#140013](https://github.com/kubernetes/kubernetes/pull/140013), [@nispriha](https://github.com/nispriha)) [SIG API Machinery, Apps, Autoscaling, Node, Scheduling and Testing] +- Added the API changes required for reporting volume health. ([kubernetes/kubernetes#140194](https://github.com/kubernetes/kubernetes/pull/140194), [@gnufied](https://github.com/gnufied)) [SIG API Machinery, Apps, Architecture, Auth, Etcd, Instrumentation, Node, Storage and Testing] +- Added the CompositePodGroup API to `scheduling.k8s.io/v1alpha3`. ([kubernetes/kubernetes#139596](https://github.com/kubernetes/kubernetes/pull/139596), [@jdzikowski](https://github.com/jdzikowski)) [SIG API Machinery, Apps, Auth, Etcd, Node, Scheduling and Testing] +- Added the Recreate update strategy for StatefulSet, mirroring the Deployment Recreate strategy by deleting all Pods, waiting for them to terminate completely, and then creating Pods according to the `podManagementPolicy` field. ([kubernetes/kubernetes#137187](https://github.com/kubernetes/kubernetes/pull/137187), [@galal-hussein](https://github.com/galal-hussein)) [SIG Apps and Testing] +- Added the `--concurrent-disruption-syncs` flag to `kube-controller-manager` to configure the number of concurrent disruption controller workers. ([kubernetes/kubernetes#140014](https://github.com/kubernetes/kubernetes/pull/140014), [@xigang](https://github.com/xigang)) [SIG API Machinery, Apps, Auth and Testing] +- Added the `.spec.evictionResponders` Pod field, along with the EvictionRequest and Eviction resources. A set of requesters and responders can use these to coordinate graceful eviction of Pods. ([kubernetes/kubernetes#137050](https://github.com/kubernetes/kubernetes/pull/137050), [@atiratree](https://github.com/atiratree)) [SIG API Machinery, Apps, Architecture, Auth, CLI, Etcd and Testing] +- Added the `DefaultPodSysctls` `kubelet` configuration field for default Pod sysctls on Linux nodes, behind the Alpha `DefaultPodSysctls` feature gate (disabled by default). ([kubernetes/kubernetes#140052](https://github.com/kubernetes/kubernetes/pull/140052), [@VeraQin](https://github.com/VeraQin)) [SIG Node and Testing] +- Added the `DisruptionMode` and `PreemptionPolicy` fields to the Workload and CompositePodGroup APIs to support workload-aware preemption for CompositePodGroups. ([kubernetes/kubernetes#140634](https://github.com/kubernetes/kubernetes/pull/140634), [@tosi3k](https://github.com/tosi3k)) [SIG API Machinery, Auth, Etcd, Node, Scheduling and Testing] +- Added the `GracefulNodeShutdownInProgress`, `DrainInProgress`, `Drained`, `MaintenancePlanned`, and `MaintenanceInProgress` Node lifecycle conditions. ([kubernetes/kubernetes#139993](https://github.com/kubernetes/kubernetes/pull/139993), [@rthallisey](https://github.com/rthallisey)) [SIG Apps and Node] +- Added the `PodGroupPostFilter` extension point to the scheduling framework, replacing the internal hardcoding for `WorkloadAwarePreemption` with a configurable extension point for PodGroups. ([kubernetes/kubernetes#139674](https://github.com/kubernetes/kubernetes/pull/139674), [@GFilipek](https://github.com/GFilipek)) [SIG Scheduling and Testing] +- Added the `PreemptionPolicy` field to PodGroupTemplate to define the policy for workload-aware preemption. ([kubernetes/kubernetes#140312](https://github.com/kubernetes/kubernetes/pull/140312), [@ania-borowiec](https://github.com/ania-borowiec)) [SIG API Machinery, Apps, Scheduling and Testing] +- Added the `SchedulerPreQueueingHints` feature gate (Alpha, disabled by default). When enabled, scheduler plugins can provide a `PreQueueingHintFn` that narrows the set of Pods evaluated on cluster events, improving scheduling throughput. The DRA plugin implements this to optimize ResourceClaimTemplate-based workloads. ([kubernetes/kubernetes#138916](https://github.com/kubernetes/kubernetes/pull/138916), [@geetasg](https://github.com/geetasg)) [SIG API Machinery, Apps, Architecture, Auth, CLI, Cloud Provider, Instrumentation, Network, Node, Scheduling, Storage, Testing and Windows] +- Added the core machinery for Conditional Authorization, which enables authorizers to allow requests conditionally based on the request's content, rather than only allowing or denying them outright. ([kubernetes/kubernetes#137513](https://github.com/kubernetes/kubernetes/pull/137513), [@luxas](https://github.com/luxas)) [SIG API Machinery, Auth, Node and Testing] +- Allowed HorizontalPodAutoscaler conditions to optionally include the `observedGeneration` at the time the condition was recorded. ([kubernetes/kubernetes#138653](https://github.com/kubernetes/kubernetes/pull/138653), [@adrianmoisey](https://github.com/adrianmoisey)) [SIG API Machinery, Apps, Autoscaling and Testing] +- Changed the `kube-apiserver` CBOR encoder to encode collections item by item instead of all at once. ([kubernetes/kubernetes#138808](https://github.com/kubernetes/kubernetes/pull/138808), [@chenk008](https://github.com/chenk008)) [SIG API Machinery, Apps, Auth, Autoscaling, CLI, Cloud Provider, Cluster Lifecycle, Contributor Experience, Instrumentation, Network, Node, Release, Scalability, Scheduling, Storage, Testing and Windows] +- DRA: Added Alpha support for `DRAOptionalNodeOperations` (the `SkipNodeOperations` field in ResourceSlice and ResourceClaim), which allows skipping node-level preparation and cleanup operations. ([kubernetes/kubernetes#139933](https://github.com/kubernetes/kubernetes/pull/139933), [@troychiu](https://github.com/troychiu)) [SIG API Machinery, Autoscaling, Instrumentation, Node, Release, Scheduling and Testing] +- Fixed CEL cost estimation for `metadata.name` and `metadata.generateName` in CRDs to correctly account for the default maximum length of 253 characters, unless additional validations are defined on those metadata fields. ([kubernetes/kubernetes#139573](https://github.com/kubernetes/kubernetes/pull/139573), [@jpbetz](https://github.com/jpbetz)) [SIG API Machinery] +- Fixed DRA `CapacityRequestPolicyRange` to support fractional quantities in milli-scale. ([kubernetes/kubernetes#140161](https://github.com/kubernetes/kubernetes/pull/140161), [@sunya-ch](https://github.com/sunya-ch)) [SIG API Machinery, Node and Scheduling] +- Fixed Pod status validation for reported Linux container user UIDs to accept values above 2147483647 and up to the unsigned 32-bit UID limit. ([kubernetes/kubernetes#138574](https://github.com/kubernetes/kubernetes/pull/138574), [@Kunalbehbud](https://github.com/Kunalbehbud)) [SIG Apps and Node] +- Fixed a `v1.34`+ regression handling containers with environment values set from Secret API objects containing binary non-utf8 data. ([kubernetes/kubernetes#139168](https://github.com/kubernetes/kubernetes/pull/139168), [@liggitt](https://github.com/liggitt)) [SIG Architecture, Node and Testing] +- Fixed a bug in DRA consumable capacity where the `DistinctAttribute` constraint was not correctly enforced for each device when a request allocated multiple devices. ([kubernetes/kubernetes#140600](https://github.com/kubernetes/kubernetes/pull/140600), [@GunaKKIBM](https://github.com/GunaKKIBM)) [SIG API Machinery, Apps, CLI, Etcd, Network, Node, Release, Scheduling and Testing] +- Fixed the overestimation of a Pod's resource footprint during resize operations for multi-container Pods. ([kubernetes/kubernetes#140047](https://github.com/kubernetes/kubernetes/pull/140047), [@natasha41575](https://github.com/natasha41575)) [SIG Node and Scheduling] +- Graduated Pod Certificates to GA, with the PodCertificateRequest feature gate enabled by default. The `PKIXPublicKey` and `ProofOfPossession` fields, deprecated in PodCertificateRequest `v1beta1`, are removed from the `v1` API. Update clients that still set these fields before upgrading. ([kubernetes/kubernetes#139579](https://github.com/kubernetes/kubernetes/pull/139579), [@yt2985](https://github.com/yt2985)) [SIG API Machinery, Apps, Architecture, Auth, Etcd, Node, Scheduling and Testing] +- Graduated Pod hostname overrides to GA. The `HostnameOverride` feature gate is locked to enabled. ([kubernetes/kubernetes#139116](https://github.com/kubernetes/kubernetes/pull/139116), [@HirazawaUi](https://github.com/HirazawaUi)) [SIG API Machinery, Apps, Node and Testing] +- Graduated the `ClusterTrustBundle` and `ClusterTrustBundleProjection` feature gates to GA and enabled them by default. ([kubernetes/kubernetes#139437](https://github.com/kubernetes/kubernetes/pull/139437), [@stlaz](https://github.com/stlaz)) [SIG API Machinery, Apps, Architecture, Auth, Etcd, Node, Storage and Testing] +- Improved CEL error messages in Dynamic Resource Allocation to provide guidance when accessing non-existent device attributes. Error messages link to documentation on handling optional fields using `orValue()` and `has()`. ([kubernetes/kubernetes#136709](https://github.com/kubernetes/kubernetes/pull/136709), [@gzb1128](https://github.com/gzb1128)) [SIG API Machinery, Node and Scheduling] +- Moved the `NodeSyncPeriod` field from `KubeCloudSharedConfiguration` to `CloudControllerManagerConfiguration.NodeLifecycleController.NodeMonitorPeriod`. ([kubernetes/kubernetes#137964](https://github.com/kubernetes/kubernetes/pull/137964), [@niewysoki](https://github.com/niewysoki)) [SIG API Machinery, Apps, Cloud Provider, Instrumentation and Node] +- Promoted DRA Workload resource claims to Beta. The `DRAWorkloadResourceClaims` feature gate remains disabled by default. ([kubernetes/kubernetes#140334](https://github.com/kubernetes/kubernetes/pull/140334), [@nojnhuh](https://github.com/nojnhuh)) [SIG API Machinery, Apps, Etcd, Node, Scheduling and Testing] +- Promoted `kubelet` volume metrics (`storage_operation_duration_seconds`, `volume_operation_total_seconds`) from Alpha to Beta stability, providing stronger API and label stability guarantees for metric consumers. ([kubernetes/kubernetes#136189](https://github.com/kubernetes/kubernetes/pull/136189), [@bhope](https://github.com/bhope)) [SIG Instrumentation and Storage] +- Promoted the DRA Device Taints and Tolerations feature to GA, making it available via the `resource.k8s.io/v1` API. ([kubernetes/kubernetes#138676](https://github.com/kubernetes/kubernetes/pull/138676), [@pohly](https://github.com/pohly)) [SIG API Machinery, Apps, Architecture, Auth, Etcd, Node, Scheduling, Storage and Testing] +- Promoted the DRA extended resource feature to GA in `v1.37`. ([kubernetes/kubernetes#138488](https://github.com/kubernetes/kubernetes/pull/138488), [@yliaog](https://github.com/yliaog)) [SIG API Machinery, Apps, Node, Scheduling and Testing] +- Promoted the DRA metadata API to Beta. DRA driver authors that enable the feature must explicitly select which versions to support in their metadata output. ([kubernetes/kubernetes#140722](https://github.com/kubernetes/kubernetes/pull/140722), [@pohly](https://github.com/pohly)) [SIG Node and Testing] +- Promoted the DRAResourceHealth `kubelet` gRPC API to `v1`; the schema is unchanged from `v1alpha1`. `DRAPlugin.WatchHealthStatus` is a mandatory method on the `DRAPlugin` interface in the `k8s.io/dynamic-resource-allocation/kubeletplugin` helper, replacing the optional versioned gRPC interface. This is a one-time Go API break: existing drivers must add the method to compile. Drivers without health support return `ErrHealthNotSupported` from it, or disable the service with `HealthService(false)`. The helper serves both `v1` and `v1alpha1` by default, so drivers report health on `kubelet` `v1.36` and older without extra configuration. The `kubelet` prefers `v1` and, for three releases of transition, still consumes `v1alpha1` from drivers that shipped before `v1` existed. The `v1alpha1` DRAResourceHealth API is deprecated and is planned to be removed in `v1.40`. The `kubelet` only opens the device health stream for plugins that advertise the service. ([kubernetes/kubernetes#139477](https://github.com/kubernetes/kubernetes/pull/139477), [@harche](https://github.com/harche)) [SIG Node and Testing] +- Promoted the `HPAConfigurableTolerance` feature gate to GA. ([kubernetes/kubernetes#140107](https://github.com/kubernetes/kubernetes/pull/140107), [@jm-franc](https://github.com/jm-franc)) [SIG API Machinery, Apps, Autoscaling and Testing] +- Promoted the `KubeletInUserNamespace` feature gate to Beta. ([kubernetes/kubernetes#134639](https://github.com/kubernetes/kubernetes/pull/134639), [@AkihiroSuda](https://github.com/AkihiroSuda)) [SIG API Machinery, Apps, Node and Testing] +- Promoted the `MemoryQoS` feature gate to Beta. `memoryThrottlingFactor` defaults to nil, and `memory.high` is not set unless explicitly configured. ([kubernetes/kubernetes#140007](https://github.com/kubernetes/kubernetes/pull/140007), [@QiWang19](https://github.com/QiWang19)) [SIG Node and Testing] +- Promoted the `NodeDeclaredFeatures` feature gate to GA. ([kubernetes/kubernetes#139763](https://github.com/kubernetes/kubernetes/pull/139763), [@pravk03](https://github.com/pravk03)) [SIG Apps, Autoscaling, Node, Scheduling and Testing] +- Promoted the `PersistentVolumeClaimUnusedSinceTime` feature gate to Beta in `v1.37` and enabled it by default. PersistentVolumeClaims report the `Unused` condition, indicating how long a PersistentVolumeClaim has been unused to help identify candidates for cleanup. ([kubernetes/kubernetes#139620](https://github.com/kubernetes/kubernetes/pull/139620), [@RomanBednar](https://github.com/RomanBednar)) [SIG Apps] +- Promoted the `StorageVersionMigration` feature gate to GA. The `storagemigration.k8s.io/v1` API group is enabled by default. ([kubernetes/kubernetes#138560](https://github.com/kubernetes/kubernetes/pull/138560), [@michaelasp](https://github.com/michaelasp)) [SIG API Machinery, Apps, Architecture, Auth, Etcd and Testing] +- Promoted the `VolumeLimitScaling` feature gate, which adds the `preventPodSchedulingIfMissing` field to CSIDriver to prevent Pod scheduling on nodes missing a required CSI driver, to Beta. ([kubernetes/kubernetes#140612](https://github.com/kubernetes/kubernetes/pull/140612), [@gnufied](https://github.com/gnufied)) [SIG API Machinery, Storage and Testing] +- Promoted the `metrics.k8s.io` API from `v1beta1` to `v1` without changes. ([kubernetes/kubernetes#139223](https://github.com/kubernetes/kubernetes/pull/139223), [@tico88612](https://github.com/tico88612)) [SIG Instrumentation] +- Promoted the core Workload-Aware Scheduling (WAS) API types Workload and PodGroup to `scheduling.k8s.io/v1beta1`. Remove all `v1alpha2` objects from the `kube-apiserver` before upgrading from `v1.36` to `v1.37`. ([kubernetes/kubernetes#140184](https://github.com/kubernetes/kubernetes/pull/140184), [@tosi3k](https://github.com/tosi3k)) [SIG API Machinery, Apps, Auth, Etcd, Node, Scheduling and Testing] +- Relaxed container security context validation so that updates to Pods may set `allowPrivilegeEscalation` together with `CAP_SYSADMIN`. Pod creation still rejects this combination. ([kubernetes/kubernetes#138834](https://github.com/kubernetes/kubernetes/pull/138834), [@haircommander](https://github.com/haircommander)) [SIG Apps] +- Removed the `GangScheduling` and `WorkloadAwarePreemption` feature gates. Use the `GenericWorkload` feature gate to enable core workload-aware scheduling functionality. ([kubernetes/kubernetes#139520](https://github.com/kubernetes/kubernetes/pull/139520), [@macsko](https://github.com/macsko)) [SIG API Machinery, Node, Scheduling and Testing] +- Removed the generally available feature gate `AnyVolumeDataSource`, which was locked and enabled since `v1.33`. ([kubernetes/kubernetes#135336](https://github.com/kubernetes/kubernetes/pull/135336), [@carlory](https://github.com/carlory)) [SIG API Machinery, Apps, Storage and Testing] +- Removed the unused `PodStatusResult` type from the Kubernetes API. This type had no REST endpoint and has been unused since 2015. ([kubernetes/kubernetes#136271](https://github.com/kubernetes/kubernetes/pull/136271), [@adityasharmawork](https://github.com/adityasharmawork)) [SIG API Machinery, Apps, Node and Testing] +- Renamed signal enum keys in `cri-api`, which are prefixed with `SIGNAL_` in the `api.proto` definition, to avoid conflicts with C++ macros. The wire format is unchanged. ([kubernetes/kubernetes#139251](https://github.com/kubernetes/kubernetes/pull/139251), [@SergeyKanzhelev](https://github.com/SergeyKanzhelev)) [SIG Apps, Node and Testing] +- Renamed the PodGroup condition `PodGroupScheduled` to `PodGroupInitiallyScheduled` to clarify that the condition is set only after a PodGroup is first scheduled successfully and may not reflect the PodGroup's current scheduling state. ([kubernetes/kubernetes#139743](https://github.com/kubernetes/kubernetes/pull/139743), [@antekjb](https://github.com/antekjb)) [SIG API Machinery, Scheduling and Testing] +- Switched the json tag for inlined `TypeMeta` fields in the API Go types from `",inline"` to `""`. `inline` was not a recognized json serializer option and did not modify marshal or unmarshal behavior. ([kubernetes/kubernetes#138260](https://github.com/kubernetes/kubernetes/pull/138260), [@liggitt](https://github.com/liggitt)) [SIG API Machinery, Apps, Architecture, Auth, CLI, Cloud Provider, Cluster Lifecycle, Etcd, Instrumentation, Network, Node, Scheduling, Storage and Testing] +- Updated CDI spec version selection to be dynamic, preventing the generation of incompatible CDI specifications. ([kubernetes/kubernetes#137699](https://github.com/kubernetes/kubernetes/pull/137699), [@alaypatel07](https://github.com/alaypatel07)) [SIG Apps, Node, Scheduling and Testing] +- Updated Pod-level resource handling so that Pod resources determine QoS only when they include a resource request or limit. Empty Pod resources (`{}`, `{requests:{}}`, or `{limits:{}}`) no longer affect QoS calculation. ([kubernetes/kubernetes#137150](https://github.com/kubernetes/kubernetes/pull/137150), [@KevinTMtz](https://github.com/KevinTMtz)) [SIG Apps, CLI, Node and Scheduling] +- Updated PodGroup and PodGroupTemplate to allow modifying `minCount` after creation. Changes to a PodGroupTemplate do not affect existing PodGroups. ([kubernetes/kubernetes#139279](https://github.com/kubernetes/kubernetes/pull/139279), [@antekjb](https://github.com/antekjb)) [SIG API Machinery, Scheduling and Testing] +- Updated the Alpha `DRANodeAllocatableResources` feature: + - ResourceSlice mappings and PodStatus support direct allocations, for DRA drivers modeling CPU, memory, and hugepages as a resource, and overhead allocations, for accelerator host overhead. + - The `kubelet` accounts for DRA allocated resources when configuring Pod and container cgroups, OOM scores, and Memory QoS thresholds. + - Standard resource requests and limits can be resized in place for Pods that use DRA claims. + - The scheduler supports unreferenced Pod-level claims, enforces resource limits with DRA, and enforces claim sharing rules, allowing claim sharing across Pods for overhead allocations. + - Validation enforces constraints for the updated API and uses node declared features to confirm that target nodes have the `NodeAllocatableDRA` feature gate enabled. ([kubernetes/kubernetes#140009](https://github.com/kubernetes/kubernetes/pull/140009), [@pravk03](https://github.com/pravk03)) [SIG API Machinery, Apps, Auth, Autoscaling, Node, Scheduling and Testing] +- Updated the PodGroup API to replace `PodGroupTemplateRef` with `WorkloadRef`, a simpler and more direct way to reference the workload a PodGroup belongs to. ([kubernetes/kubernetes#140080](https://github.com/kubernetes/kubernetes/pull/140080), [@dom4ha](https://github.com/dom4ha)) [SIG API Machinery, Apps, Etcd, Node, Scheduling and Testing] +- `client-go`: Removed nearly all `context.TODO` calls by introducing APIs where the caller passes in the context. Log calls use the logger provided by the caller when available. ([kubernetes/kubernetes#129125](https://github.com/kubernetes/kubernetes/pull/129125), [@pohly](https://github.com/pohly)) [SIG API Machinery, Apps, Architecture, Auth, CLI, Cloud Provider, Instrumentation, Network, Node, Storage and Testing] +- `kubelet`: Added TLS support for gRPC container probes (behind a feature gate). ([kubernetes/kubernetes#137762](https://github.com/kubernetes/kubernetes/pull/137762), [@amritansh1502](https://github.com/amritansh1502)) [SIG API Machinery, Apps, Node and Testing] +- Add a new .spec.evictionResponders Pod field, EvictionRequest and Eviction Resource. This can be used by a set of requesters and responders to coordinate graceful eviction of pods. ([kubernetes/kubernetes#137050](https://github.com/kubernetes/kubernetes/pull/137050), [@atiratree](https://github.com/atiratree)) [SIG API Machinery, Apps, Architecture, Auth, CLI, Etcd and Testing] +- Add alpha support (behind APIServerWebhookAuthenticationToken feature gate) for + binding service account tokens to webhook configurations with attestations, + enabling API servers to authenticate to admission webhooks with scoped tokens. ([kubernetes/kubernetes#140113](https://github.com/kubernetes/kubernetes/pull/140113), [@pmengelbert](https://github.com/pmengelbert)) [SIG API Machinery, Apps, Auth and Testing] +- Add supports for CompositePodGroup to building block APIs and `workloadbuilder` library. ([kubernetes/kubernetes#140717](https://github.com/kubernetes/kubernetes/pull/140717), [@helayoty](https://github.com/helayoty)) [SIG API Machinery, Apps, Auth, Scheduling and Testing] +- Added Alpha support for users to define the desired file owner of atomically written volume files. This is behind the `AtomicWriteVolumeUserFields` feature gate (disabled by default). ([kubernetes/kubernetes#139764](https://github.com/kubernetes/kubernetes/pull/139764), [@gavinkflam](https://github.com/gavinkflam)) [SIG API Machinery, Apps, Auth, Storage and Testing] +- Added CheckpointPod and RestorePod RPCs to the CRI v1 RuntimeService API for Pod-level checkpoint and restore. ([kubernetes/kubernetes#140366](https://github.com/kubernetes/kubernetes/pull/140366), [@rst0git](https://github.com/rst0git)) [SIG Node, Testing and Windows] +- Added DisruptionMode and PreemptionPolicy fields to Workload and CompositePodGroup APIs to support workload-aware preemption for CompositePodGroups. ([kubernetes/kubernetes#140634](https://github.com/kubernetes/kubernetes/pull/140634), [@tosi3k](https://github.com/tosi3k)) [SIG API Machinery, Auth, Etcd, Node, Scheduling and Testing] +- Added a new beta feature gate SchedulerPreQueueingHints (on by default). When enabled, scheduler plugins can provide a PreQueueingHintFn that narrows the set of pods evaluated on cluster events, improving scheduling throughput. The DRA plugin implements this to optimize ResourceClaimTemplate-based workloads. ([kubernetes/kubernetes#138916](https://github.com/kubernetes/kubernetes/pull/138916), [@geetasg](https://github.com/geetasg)) [SIG API Machinery, Apps, Architecture, Auth, CLI, Cloud Provider, Instrumentation, Network, Node, Scheduling, Storage, Testing and Windows] +- Added a second alpha of DRA resource availability visibility (KEP-5677, feature gate `DRAResourcePoolStatus`, default off): the ResourcePoolStatusRequest controller now counts partitionable and consumable devices correctly (each device counted once, AdminAccess ignored, taints treated as unavailable), and new optional fields describe partition and shareable availability. The accounting fixes change the numbers reported by 1.36. ([kubernetes/kubernetes#140170](https://github.com/kubernetes/kubernetes/pull/140170), [@nmn3m](https://github.com/nmn3m)) [SIG API Machinery, Apps, Auth, Node and Testing] +- Added alpha support for DRA device compatibility groups, guarded by the new + `DRADeviceCompatibilityGroups` feature gate (off by default). + DRA drivers can declare opaque `compatibilityGroups` on each `device.consumesCounters[]` + entry of a ResourceSlice, and the scheduler only co-allocates devices drawing from the same + counter set when their declared groups intersect, moving detection of incompatible co-allocation + from preparation-time failure to scheduling-time rejection. ([kubernetes/kubernetes#139795](https://github.com/kubernetes/kubernetes/pull/139795), [@omeryahud](https://github.com/omeryahud)) [SIG API Machinery, Node, Scheduling and Testing] +- Added kubelet configuration field `DefaultPodSysctls` for default Pod sysctls on Linux nodes. This is Alpha and behind the off-by-default `DefaultPodSysctls` feature gate. ([kubernetes/kubernetes#140052](https://github.com/kubernetes/kubernetes/pull/140052), [@VeraQin](https://github.com/VeraQin)) [SIG Node and Testing] +- Added support for derived attributes in DRA, allowing claims to define virtual attributes using CEL expressions and use them in device constraints. This enables co-allocation of devices across different domains (e.g. GPUs and NICs on the same NUMA node) even if their drivers publish physical attributes differently. ([kubernetes/kubernetes#140029](https://github.com/kubernetes/kubernetes/pull/140029), [@gauravkghildiyal](https://github.com/gauravkghildiyal)) [SIG API Machinery, Node, Scheduling and Testing] +- Added support for selecting ResourceSlices by pool name with the field selector `spec.pool.name`. ([kubernetes/kubernetes#138456](https://github.com/kubernetes/kubernetes/pull/138456), [@yaroslavborbat](https://github.com/yaroslavborbat)) [SIG API Machinery, Node and Testing] +- Adds protocol field to httpGet probes to run HTTP/2 cleartext (H2C) liveness, readiness, and startup probes. ([kubernetes/kubernetes#139429](https://github.com/kubernetes/kubernetes/pull/139429), [@amritansh1502](https://github.com/amritansh1502)) [SIG API Machinery, Apps, Node and Testing] +- Allow API server CBOR encoder to encode collections item by item, instead of all at once. ([kubernetes/kubernetes#138808](https://github.com/kubernetes/kubernetes/pull/138808), [@chenk008](https://github.com/chenk008)) [SIG API Machinery, Apps, Auth, Autoscaling, CLI, Cloud Provider, Cluster Lifecycle, Contributor Experience, Instrumentation, Network, Node, Release, Scalability, Scheduling, Storage, Testing and Windows] +- Client-go: with very few exceptions, context.TODO calls got removed by introducing new APIs where the caller passes in the context. Log calls use the logger provided by the caller when available. ([kubernetes/kubernetes#129125](https://github.com/kubernetes/kubernetes/pull/129125), [@pohly](https://github.com/pohly)) [SIG API Machinery, Apps, Architecture, Auth, CLI, Cloud Provider, Instrumentation, Network, Node, Storage and Testing] +- DRA device metadata v1alpha1 now provides generated declarative validation functions for Go consumers. ([kubernetes/kubernetes#140687](https://github.com/kubernetes/kubernetes/pull/140687), [@alaypatel07](https://github.com/alaypatel07)) [SIG Node] +- DRA metadata API: the feature is now beta. DRA driver authors must explicitly select which versions to support in their metadata output if they enable the feature. ([kubernetes/kubernetes#140722](https://github.com/kubernetes/kubernetes/pull/140722), [@pohly](https://github.com/pohly)) [SIG Node and Testing] +- DRA: Introduced alpha support for `DRAOptionalNodeOperations` (`SkipNodeOperations` field in ResourceSlice and ResourceClaim) to allow skipping node-level preparation and cleanup operations. ([kubernetes/kubernetes#139933](https://github.com/kubernetes/kubernetes/pull/139933), [@troychiu](https://github.com/troychiu)) [SIG API Machinery, Autoscaling, Instrumentation, Node, Release, Scheduling and Testing] +- Graduated _Pod hostname overrides_ to GA. The `HostnameOverride` feature gate is now locked to enabled. ([kubernetes/kubernetes#139116](https://github.com/kubernetes/kubernetes/pull/139116), [@HirazawaUi](https://github.com/HirazawaUi)) [SIG API Machinery, Apps, Node and Testing] +- Implement APIs required for reporting volume health ([kubernetes/kubernetes#140194](https://github.com/kubernetes/kubernetes/pull/140194), [@gnufied](https://github.com/gnufied)) [SIG API Machinery, Apps, Architecture, Auth, Etcd, Instrumentation, Node, Storage and Testing] +- KEP-2033: promote KubeletInUserNamespace feature to beta ([kubernetes/kubernetes#134639](https://github.com/kubernetes/kubernetes/pull/134639), [@AkihiroSuda](https://github.com/AkihiroSuda)) [SIG API Machinery, Apps, Node and Testing] +- Kubelet: add support for TLS when using gRPC container probes (behind feature gate; see KEP-4939). ([kubernetes/kubernetes#137762](https://github.com/kubernetes/kubernetes/pull/137762), [@amritansh1502](https://github.com/amritansh1502)) [SIG API Machinery, Apps, Node and Testing] +- Move prevention of pod scheduling to nodes without CSI driver beta ([kubernetes/kubernetes#140612](https://github.com/kubernetes/kubernetes/pull/140612), [@gnufied](https://github.com/gnufied)) [SIG API Machinery, Storage and Testing] +- Opt-in userspace TCP proxy to the nftables kube-proxy backend to serve localhost NodePort services on IPv4 and IPv6. ([kubernetes/kubernetes#138427](https://github.com/kubernetes/kubernetes/pull/138427), [@AustinAbro321](https://github.com/AustinAbro321)) [SIG Instrumentation, Network and Testing] +- Promote MemoryQoS to beta. memoryThrottlingFactor now defaults to nil; memory.high is not set unless explicitly configured. ([kubernetes/kubernetes#140007](https://github.com/kubernetes/kubernetes/pull/140007), [@QiWang19](https://github.com/QiWang19)) [SIG Node and Testing] +- Promoted DRA Workload resource claims to Beta. The `DRAWorkloadResourceClaims` feature gate remains disabled by default. ([kubernetes/kubernetes#140334](https://github.com/kubernetes/kubernetes/pull/140334), [@nojnhuh](https://github.com/nojnhuh)) [SIG API Machinery, Apps, Etcd, Node, Scheduling and Testing] +- Support Workload-aware scheduling (WAS) APIs by integrating Job controller with workloadbuilder library and the Workload building blocks APIs. ([kubernetes/kubernetes#140188](https://github.com/kubernetes/kubernetes/pull/140188), [@helayoty](https://github.com/helayoty)) [SIG API Machinery, Apps, Auth, Network, Node, Scheduling, Storage and Testing] +- Support dynamically resizing memory-backed volumes behind the Alpha feature gate `InPlacePodVerticalScalingMemoryBackedVolumes`. ([kubernetes/kubernetes#139425](https://github.com/kubernetes/kubernetes/pull/139425), [@natasha41575](https://github.com/natasha41575)) [SIG API Machinery, Apps, Autoscaling, CLI, Node, Scheduling, Storage and Testing] +- The DRAResourceHealth kubelet gRPC API has been promoted to v1; the schema is unchanged from v1alpha1. `DRAPlugin.WatchHealthStatus` is a new mandatory method on the `k8s.io/dynamic-resource-allocation/kubeletplugin` helper's `DRAPlugin` interface, replacing the optional versioned gRPC interface (one-time Go API break, existing drivers must add the method to compile). Drivers without health support return `ErrHealthNotSupported` from it or disable the service with `HealthService(false)`. The helper serves both v1 and v1alpha1 by default, so drivers report health on kubelets 1.36 and older without extra configuration. The kubelet prefers v1 and, for three releases of transition, still consumes v1alpha1 from drivers which shipped before v1 existed. The v1alpha1 DRAResourceHealth API is deprecated and gets removed in the 1.40 era. The kubelet only opens the device health stream for plugins that advertise the service. ([kubernetes/kubernetes#139477](https://github.com/kubernetes/kubernetes/pull/139477), [@harche](https://github.com/harche)) [SIG Node and Testing] +- The Pod Certificates feature is moving to GA. The PodCertificateRequest feature gate is set true by default. Two fields PKIXPublicKey and ProofOfPossession which were deprecated in PodCertificateRequest v1beta1 are removed from the v1 API. ([kubernetes/kubernetes#139579](https://github.com/kubernetes/kubernetes/pull/139579), [@yt2985](https://github.com/yt2985)) [SIG API Machinery, Apps, Architecture, Auth, Etcd, Node, Scheduling and Testing] +- The core Workload-Aware Scheduling (WAS) API types `Workload` and `PodGroup` are promoted to scheduling.k8s.io/v1beta1. If using the v1alpha2 version in 1.36, remember to remove all `v1alpha2` objects from the api-server before upgrading from 1.36 to 1.37. ([kubernetes/kubernetes#140184](https://github.com/kubernetes/kubernetes/pull/140184), [@tosi3k](https://github.com/tosi3k)) [SIG API Machinery, Apps, Auth, Etcd, Node, Scheduling and Testing] +- The unsafe corrupt object deletion feature now supports dry-run mode, allowing administrators to test deletion operations safely before execution. ([kubernetes/kubernetes#134037](https://github.com/kubernetes/kubernetes/pull/134037), [@ibihim](https://github.com/ibihim)) [SIG API Machinery and Testing] +- This change updates the DRANodeAllocatableResources alpha feature, which includes: + + - Updating ResourceSlice mappings and PodStatus to support direct allocations (for DRA drivers modeling CPU/memory/hugepages as a resource) and overhead allocations (for accelerator host overhead). + - Updating kubelet to account for DRA allocated resources while configuring pod and container cgroups, OOM scores, and Memory QoS thresholds. + - Allowing in-place resizing of standard resource requests and limits for pods utilizing DRA claims. + - Updating the scheduler to support unreferenced pod-level claims, enforce resource limits with DRA, and enforce claim sharing rules (allowing claim sharing across pods for overhead allocations). + - Updating validation to enforce constraints for the updated API and using node declared features to ensure target nodes have the NodeAllocatableDRA feature gate enabled. ([kubernetes/kubernetes#140009](https://github.com/kubernetes/kubernetes/pull/140009), [@pravk03](https://github.com/pravk03)) [SIG API Machinery, Apps, Auth, Autoscaling, Node, Scheduling and Testing] +- Update validation logic for container security context to allow edits to pods to have allowPrivilegeEscalation and CAP_SYSADMIN. In the future, this relaxation will apply for pod creation as well. ([kubernetes/kubernetes#138834](https://github.com/kubernetes/kubernetes/pull/138834), [@haircommander](https://github.com/haircommander)) [SIG Apps] +- Users can set Unix permission bits (0000-01777) through the 'mode' field on emptyDir volume directories at creation time. ([kubernetes/kubernetes#140244](https://github.com/kubernetes/kubernetes/pull/140244), [@nispriha](https://github.com/nispriha)) [SIG API Machinery, Apps, Node, Storage and Testing] +- Users can specify bind mount options (noexec, nodev, nosuid) per container volume mount. ([kubernetes/kubernetes#140013](https://github.com/kubernetes/kubernetes/pull/140013), [@nispriha](https://github.com/nispriha)) [SIG API Machinery, Apps, Autoscaling, Node, Scheduling and Testing] +- Add PreemptionPolicy field to PodGroupTemplate to define policy for workload-aware preemption ([kubernetes/kubernetes#140312](https://github.com/kubernetes/kubernetes/pull/140312), [@ania-borowiec](https://github.com/ania-borowiec)) [SIG API Machinery, Apps, Scheduling and Testing] +- Add a new Recreate update strategy for StatefulSets, mirroring Deployments' Recreate strategy, which deletes all pods and waits for full termination before creating new pods according to podManagementPolicy. ([kubernetes/kubernetes#137187](https://github.com/kubernetes/kubernetes/pull/137187), [@galal-hussein](https://github.com/galal-hussein)) [SIG Apps and Testing] +- Added `--concurrent-disruption-syncs` to kube-controller-manager to configure the number of concurrent disruption controller workers. ([kubernetes/kubernetes#140014](https://github.com/kubernetes/kubernetes/pull/140014), [@xigang](https://github.com/xigang)) [SIG API Machinery, Apps, Auth and Testing] +- Added the CompositePodGroup API into scheduling.k8s.io/v1alpha3. ([kubernetes/kubernetes#139596](https://github.com/kubernetes/kubernetes/pull/139596), [@jdzikowski](https://github.com/jdzikowski)) [SIG API Machinery, Apps, Auth, Etcd, Node, Scheduling and Testing] +- DRA consumable capacity: when a request allocated multiple devices, the DistinctAttribute constraint was not checked properly for each device. ([kubernetes/kubernetes#140600](https://github.com/kubernetes/kubernetes/pull/140600), [@GunaKKIBM](https://github.com/GunaKKIBM)) [SIG API Machinery, Apps, CLI, Etcd, Network, Node, Release, Scheduling and Testing] +- Fix DRA CapacityRequestPolicyRange to support fractional quantities in milli-scale. ([kubernetes/kubernetes#140161](https://github.com/kubernetes/kubernetes/pull/140161), [@sunya-ch](https://github.com/sunya-ch)) [SIG API Machinery, Node and Scheduling] +- Fix the overestimation of the pod's resource footprint for multi-container pods undergoing a resize. ([kubernetes/kubernetes#140047](https://github.com/kubernetes/kubernetes/pull/140047), [@natasha41575](https://github.com/natasha41575)) [SIG Node and Scheduling] +- Fixed pod status validation for reported Linux container user UIDs so values above 2147483647 and up to the unsigned 32-bit UID limit are accepted. ([kubernetes/kubernetes#138574](https://github.com/kubernetes/kubernetes/pull/138574), [@Kunalbehbud](https://github.com/Kunalbehbud)) [SIG Apps and Node] +- Introduce new Node Lifecycle Conditions ([kubernetes/kubernetes#139993](https://github.com/kubernetes/kubernetes/pull/139993), [@rthallisey](https://github.com/rthallisey)) [SIG Apps and Node] +- Introduces `PodGroupPostFilter` extension point to the scheduling framework. This replaces internal hardcoding for `WorkloadAwarePreemption` with a proper, configurable extension point for operating on PodGroups. ([kubernetes/kubernetes#139674](https://github.com/kubernetes/kubernetes/pull/139674), [@GFilipek](https://github.com/GFilipek)) [SIG Scheduling and Testing] +- Kep-5304: make cdi spec version dynamic to avoid incompatible spec generation ([kubernetes/kubernetes#137699](https://github.com/kubernetes/kubernetes/pull/137699), [@alaypatel07](https://github.com/alaypatel07)) [SIG Apps, Node, Scheduling and Testing] +- Pod-level resources only determine the QoS when they include a resource request or limit. Empty pod-level resources (`{}`, `{requests:{}}`, or `{limits:{}}`) no longer affect QoS calculation. ([kubernetes/kubernetes#137150](https://github.com/kubernetes/kubernetes/pull/137150), [@KevinTMtz](https://github.com/KevinTMtz)) [SIG Apps, CLI, Node and Scheduling] +- Promoted the HPAConfigurableTolerance feature gate to GA. ([kubernetes/kubernetes#140107](https://github.com/kubernetes/kubernetes/pull/140107), [@jm-franc](https://github.com/jm-franc)) [SIG API Machinery, Apps, Autoscaling and Testing] +- Promoted the `PersistentVolumeClaimUnusedSinceTime` feature gate to beta in v1.37 (enabled by default). PersistentVolumeClaims now report an `Unused` condition indicating how long a PVC has been unused, helping identify candidates for cleanup. ([kubernetes/kubernetes#139620](https://github.com/kubernetes/kubernetes/pull/139620), [@RomanBednar](https://github.com/RomanBednar)) [SIG Apps] +- The ClusterTrustBundle and ClusterTrustBundleProjection features move to stable and enabled by default, along with the ClusterTrustBundle API. ([kubernetes/kubernetes#139437](https://github.com/kubernetes/kubernetes/pull/139437), [@stlaz](https://github.com/stlaz)) [SIG API Machinery, Apps, Architecture, Auth, Etcd, Node, Storage and Testing] +- The `metrics.k8s.io` API is promoted from v1beta1 to v1 without any modifications ([kubernetes/kubernetes#139223](https://github.com/kubernetes/kubernetes/pull/139223), [@tico88612](https://github.com/tico88612)) [SIG Instrumentation] +- The unsafe corrupt object deletion feature now supports dry-run mode, allowing administrators to test deletion operations safely before execution. ([kubernetes/kubernetes#134037](https://github.com/kubernetes/kubernetes/pull/134037), [@ibihim](https://github.com/ibihim)) [SIG API Machinery and Testing] +- When the alpha feature gate InPlacePodVertifcalScalingSchedulerPreemption is enabled, the scheduler preempts lower-priority pods to make room for the `Deferred` in-place pod resizes of higher-priority pods. ([kubernetes/kubernetes#140000](https://github.com/kubernetes/kubernetes/pull/140000), [@natasha41575](https://github.com/natasha41575)) [SIG API Machinery, Apps, Node, Scheduling, Storage and Testing] +- Add PreemptionPolicy field to PodGroup to define policy for workload-aware preemption ([kubernetes/kubernetes#139240](https://github.com/kubernetes/kubernetes/pull/139240), [@ania-borowiec](https://github.com/ania-borowiec)) [SIG API Machinery, Apps, Architecture, Auth, Autoscaling, CLI, Cloud Provider, Cluster Lifecycle, Etcd, Instrumentation, Network, Node, Scheduling, Storage, Testing and Windows] +- Graduated the `SELinuxMount` feature gate to GA. `SELinuxMount` is now enabled by default in Kubernetes 1.37, which may break existing workloads in Kubernetes clusters with SELinux enabled. Please see [our blog](https://kubernetes.io/blog/2026/04/22/breaking-changes-in-selinux-volume-labeling/) to identify potentially problematic workloads in your 1.36 cluster and how to fix them or opt out of SELinuxMount changes before upgrading to 1.37. Admins of clusters without SELinux enabled can ignore this release note, as nothing changes for them. ([kubernetes/kubernetes#139956](https://github.com/kubernetes/kubernetes/pull/139956), [@jsafrane](https://github.com/jsafrane)) [SIG API Machinery, Apps and Node] +- Implementation of core Conditional Authorization machinery ([kubernetes/kubernetes#137513](https://github.com/kubernetes/kubernetes/pull/137513), [@luxas](https://github.com/luxas)) [SIG API Machinery, Auth, Node and Testing] +- Promoted node declared features to GA. ([kubernetes/kubernetes#139763](https://github.com/kubernetes/kubernetes/pull/139763), [@pravk03](https://github.com/pravk03)) [SIG Apps, Autoscaling, Node, Scheduling and Testing] +- StorageVersionMigration is now enabled by default and GA with the StorageMigration/v1 API ([kubernetes/kubernetes#138560](https://github.com/kubernetes/kubernetes/pull/138560), [@michaelasp](https://github.com/michaelasp)) [SIG API Machinery, Apps, Architecture, Auth, Etcd and Testing] +- The DRA Device Taints and Toleration feature is now generally available via the resource.k8s.io/v1 API. ([kubernetes/kubernetes#138676](https://github.com/kubernetes/kubernetes/pull/138676), [@pohly](https://github.com/pohly)) [SIG API Machinery, Apps, Architecture, Auth, Etcd, Node, Scheduling, Storage and Testing] +- The NodeRestriction admission plugin now adds a defense-in-depth check for PodCertificateRequests. A node may only create a PodCertificateRequest referring to a particular signer name if the pod actually mounts a podCertificate projected volume source that refers to that signer name, or if an authorization check for the user (verb=request-podcertificate-signer resource=) succeeds. ([kubernetes/kubernetes#140006](https://github.com/kubernetes/kubernetes/pull/140006), [@ahmedtd](https://github.com/ahmedtd)) [SIG Auth and Testing] +- Update to PodGroup API that converts the `PodGroupTemplateRef` to a simpler and more direct `WorkloadRef` that is aligned with the CompositePodGroup planned future changes. ([kubernetes/kubernetes#140080](https://github.com/kubernetes/kubernetes/pull/140080), [@dom4ha](https://github.com/dom4ha)) [SIG API Machinery, Apps, Etcd, Node, Scheduling and Testing] +- Cloud-provider: the `NodeSyncPeriod` field was moved from KubeCloudSharedConfiguration to `CloudControllerManagerConfiguration.NodeLifecycleController.NodeMonitorPeriod` ([kubernetes/kubernetes#137964](https://github.com/kubernetes/kubernetes/pull/137964), [@niewysoki](https://github.com/niewysoki)) [SIG API Machinery, Apps, Cloud Provider, Instrumentation and Node] +- Fix CEL estimated cost of metadata.name and metadata.generateName for CRDs to match what the 253 limit that is validated by default unless the CRD author adds sets validations on the metadata fields. ([kubernetes/kubernetes#139573](https://github.com/kubernetes/kubernetes/pull/139573), [@jpbetz](https://github.com/jpbetz)) [SIG API Machinery] +- MinCount can be modify after setting in PodGroup and PodGroupTemplate, modifying template is not influencing already existing podgroups. ([kubernetes/kubernetes#139279](https://github.com/kubernetes/kubernetes/pull/139279), [@antekjb](https://github.com/antekjb)) [SIG API Machinery, Scheduling and Testing] +- Rename podGroup condition from PodGroupScheduled to PodGroupInitiallyScheduled, to express clearly that this condition is set after the PodGroup first becomes scheduled successfully, and may not reflect the latest state of the PodGroup. ([kubernetes/kubernetes#139743](https://github.com/kubernetes/kubernetes/pull/139743), [@antekjb](https://github.com/antekjb)) [SIG API Machinery, Scheduling and Testing] +- The GangScheduling and WorkloadAwarePreemption feature gates were removed, and GenericWorkload is used instead to enable all core workload-aware scheduling functionalities altogether. ([kubernetes/kubernetes#139520](https://github.com/kubernetes/kubernetes/pull/139520), [@macsko](https://github.com/macsko)) [SIG API Machinery, Node, Scheduling and Testing] +- API Go types switched the json tag for inlined TypeMeta fields from `",inline"` to simply `""`. `inline` was not a recognized json serializer option and did not modify marshal or unmarshal behavior. ([kubernetes/kubernetes#138260](https://github.com/kubernetes/kubernetes/pull/138260), [@liggitt](https://github.com/liggitt)) [SIG API Machinery, Apps, Architecture, Auth, CLI, Cloud Provider, Cluster Lifecycle, Etcd, Instrumentation, Network, Node, Scheduling, Storage and Testing] +- Converts the `DisruptionMode` enum field to struct to support future extensibility. + Promotes the `scheduling.k8s.io` API group from `v1alpha2` to `v1alpha3` and drops `v1alpha2` entirely. + Remember to remove all `v1alpha2` objects from the api-server while performing the cluster update. ([kubernetes/kubernetes#138572](https://github.com/kubernetes/kubernetes/pull/138572), [@dom4ha](https://github.com/dom4ha)) [SIG API Machinery, Apps, CLI, Etcd, Node, Scheduling and Testing] +- DRA extended resource feature is promoted to GA in 1.37 ([kubernetes/kubernetes#138488](https://github.com/kubernetes/kubernetes/pull/138488), [@yliaog](https://github.com/yliaog)) [SIG API Machinery, Apps, Node, Scheduling and Testing] +- Fixes a 1.34+ regression handling containers with environment values set from Secret API objects containing binary non-utf8 data. ([kubernetes/kubernetes#139168](https://github.com/kubernetes/kubernetes/pull/139168), [@liggitt](https://github.com/liggitt)) [SIG Architecture, Node and Testing] +- HorizontalPodAutoscaler conditions allow optionally including the `observedGeneration` at the time the condition was recorded ([kubernetes/kubernetes#138653](https://github.com/kubernetes/kubernetes/pull/138653), [@adrianmoisey](https://github.com/adrianmoisey)) [SIG API Machinery, Apps, Autoscaling and Testing] +- Improved CEL error messages in Dynamic Resource Allocation to provide guidance when accessing non-existent device attributes. Error messages now link to documentation on handling optional fields using orValue() and has(). ([kubernetes/kubernetes#136709](https://github.com/kubernetes/kubernetes/pull/136709), [@gzb1128](https://github.com/gzb1128)) [SIG API Machinery, Node and Scheduling] +- Promoted kubelet volume metrics (`storage_operation_duration_seconds`, `volume_operation_total_seconds`) from Alpha to Beta stability, providing stronger API and label stability guarantees for metric consumers. ([kubernetes/kubernetes#136189](https://github.com/kubernetes/kubernetes/pull/136189), [@bhope](https://github.com/bhope)) [SIG Instrumentation and Storage] +- Removed the generally available feature gate `AnyVolumeDataSource`, which was locked and enabled since 1.33. ([kubernetes/kubernetes#135336](https://github.com/kubernetes/kubernetes/pull/135336), [@carlory](https://github.com/carlory)) [SIG API Machinery, Apps, Storage and Testing] +- Removed the unused `PodStatusResult` type from the Kubernetes API. This type had no REST endpoint and has been unused since 2015. ([kubernetes/kubernetes#136271](https://github.com/kubernetes/kubernetes/pull/136271), [@adityasharmawork](https://github.com/adityasharmawork)) [SIG API Machinery, Apps, Node and Testing] +- The change is for developers building against cri-api. Enum keys of Signal are now prefixed with `SIGNAL_` in api.proto definition to avoid conflicts with C++ macroses. The wire format is unchanged. ([kubernetes/kubernetes#139251](https://github.com/kubernetes/kubernetes/pull/139251), [@SergeyKanzhelev](https://github.com/SergeyKanzhelev)) [SIG Apps, Node and Testing] + + # Breaking Change from upgrading OpenAPI Generator to v7.24.0 Both clients now use the modern Python generator instead of From 562c0f01ad8111470648c8389e0d6a306de2eb14 Mon Sep 17 00:00:00 2001 From: yliao Date: Fri, 28 Aug 2026 21:41:19 +0000 Subject: [PATCH 3/6] generated client change for custom_objects --- ...o.client.api.admissionregistration_api.rst | 7 + ...lient.api.admissionregistration_v1_api.rst | 7 + ...api.admissionregistration_v1alpha1_api.rst | 7 + ....api.admissionregistration_v1beta1_api.rst | 7 + ...netes.aio.client.api.apiextensions_api.rst | 7 + ...es.aio.client.api.apiextensions_v1_api.rst | 7 + ...tes.aio.client.api.apiregistration_api.rst | 7 + ....aio.client.api.apiregistration_v1_api.rst | 7 + .../kubernetes.aio.client.api.apis_api.rst | 7 + .../kubernetes.aio.client.api.apps_api.rst | 7 + .../kubernetes.aio.client.api.apps_v1_api.rst | 7 + ...etes.aio.client.api.authentication_api.rst | 7 + ...s.aio.client.api.authentication_v1_api.rst | 7 + ...netes.aio.client.api.authorization_api.rst | 7 + ...es.aio.client.api.authorization_v1_api.rst | 7 + ...ernetes.aio.client.api.autoscaling_api.rst | 7 + ...etes.aio.client.api.autoscaling_v1_api.rst | 7 + ...etes.aio.client.api.autoscaling_v2_api.rst | 7 + .../kubernetes.aio.client.api.batch_api.rst | 7 + ...kubernetes.aio.client.api.batch_v1_api.rst | 7 + ...rnetes.aio.client.api.certificates_api.rst | 7 + ...tes.aio.client.api.certificates_v1_api.rst | 7 + ...o.client.api.certificates_v1alpha1_api.rst | 7 + ...io.client.api.certificates_v1beta1_api.rst | 7 + ...rnetes.aio.client.api.coordination_api.rst | 7 + ...tes.aio.client.api.coordination_v1_api.rst | 7 + ...o.client.api.coordination_v1alpha2_api.rst | 7 + ...io.client.api.coordination_v1beta1_api.rst | 7 + .../kubernetes.aio.client.api.core_api.rst | 7 + .../kubernetes.aio.client.api.core_v1_api.rst | 7 + ...etes.aio.client.api.custom_objects_api.rst | 7 + ...ubernetes.aio.client.api.discovery_api.rst | 7 + ...rnetes.aio.client.api.discovery_v1_api.rst | 7 + .../kubernetes.aio.client.api.events_api.rst | 7 + ...ubernetes.aio.client.api.events_v1_api.rst | 7 + ...o.client.api.flowcontrol_apiserver_api.rst | 7 + ...lient.api.flowcontrol_apiserver_v1_api.rst | 7 + ....aio.client.api.internal_apiserver_api.rst | 7 + ...nt.api.internal_apiserver_v1alpha1_api.rst | 7 + .../kubernetes.aio.client.api.logs_api.rst | 7 + ...bernetes.aio.client.api.networking_api.rst | 7 + ...netes.aio.client.api.networking_v1_api.rst | 7 + ....aio.client.api.networking_v1beta1_api.rst | 7 + .../kubernetes.aio.client.api.node_api.rst | 7 + .../kubernetes.aio.client.api.node_v1_api.rst | 7 + .../kubernetes.aio.client.api.openid_api.rst | 7 + .../kubernetes.aio.client.api.policy_api.rst | 7 + ...ubernetes.aio.client.api.policy_v1_api.rst | 7 + ....aio.client.api.rbac_authorization_api.rst | 7 + ...o.client.api.rbac_authorization_v1_api.rst | 7 + ...kubernetes.aio.client.api.resource_api.rst | 7 + ...ernetes.aio.client.api.resource_v1_api.rst | 7 + ...s.aio.client.api.resource_v1alpha3_api.rst | 7 + ...es.aio.client.api.resource_v1beta1_api.rst | 7 + ...es.aio.client.api.resource_v1beta2_api.rst | 7 + doc/source/kubernetes.aio.client.api.rst | 82 ++ ...bernetes.aio.client.api.scheduling_api.rst | 7 + ...netes.aio.client.api.scheduling_v1_api.rst | 7 + ...aio.client.api.scheduling_v1alpha2_api.rst | 7 + .../kubernetes.aio.client.api.storage_api.rst | 7 + ...bernetes.aio.client.api.storage_v1_api.rst | 7 + ...tes.aio.client.api.storage_v1beta1_api.rst | 7 + ...es.aio.client.api.storagemigration_api.rst | 7 + ...lient.api.storagemigration_v1beta1_api.rst | 7 + .../kubernetes.aio.client.api.version_api.rst | 7 + ...bernetes.aio.client.api.well_known_api.rst | 7 + .../kubernetes.aio.client.api_client.rst | 7 + .../kubernetes.aio.client.api_response.rst | 7 + .../kubernetes.aio.client.configuration.rst | 7 + .../kubernetes.aio.client.exceptions.rst | 7 + ...ssionregistration_v1_service_reference.rst | 7 + ...nregistration_v1_webhook_client_config.rst | 7 + ...els.apiextensions_v1_service_reference.rst | 7 + ...apiextensions_v1_webhook_client_config.rst | 7 + ...s.apiregistration_v1_service_reference.rst | 7 + ...models.authentication_v1_token_request.rst | 7 + ...io.client.models.core_v1_endpoint_port.rst | 7 + ...rnetes.aio.client.models.core_v1_event.rst | 7 + ...s.aio.client.models.core_v1_event_list.rst | 7 + ...aio.client.models.core_v1_event_series.rst | 7 + ...o.client.models.core_v1_resource_claim.rst | 7 + ...ient.models.discovery_v1_endpoint_port.rst | 7 + ...etes.aio.client.models.events_v1_event.rst | 7 + ...aio.client.models.events_v1_event_list.rst | 7 + ...o.client.models.events_v1_event_series.rst | 7 + ...o.client.models.flowcontrol_v1_subject.rst | 7 + ...etes.aio.client.models.rbac_v1_subject.rst | 7 + ...ient.models.resource_v1_resource_claim.rst | 7 + doc/source/kubernetes.aio.client.models.rst | 785 ++++++++++++++++ ...client.models.storage_v1_token_request.rst | 7 + ...bernetes.aio.client.models.v1_affinity.rst | 7 + ....aio.client.models.v1_aggregation_rule.rst | 7 + ...ient.models.v1_allocated_device_status.rst | 7 + ...aio.client.models.v1_allocation_result.rst | 7 + ...ernetes.aio.client.models.v1_api_group.rst | 7 + ...es.aio.client.models.v1_api_group_list.rst | 7 + ...etes.aio.client.models.v1_api_resource.rst | 7 + ...aio.client.models.v1_api_resource_list.rst | 7 + ...netes.aio.client.models.v1_api_service.rst | 7 + ...client.models.v1_api_service_condition.rst | 7 + ....aio.client.models.v1_api_service_list.rst | 7 + ....aio.client.models.v1_api_service_spec.rst | 7 + ...io.client.models.v1_api_service_status.rst | 7 + ...etes.aio.client.models.v1_api_versions.rst | 7 + ...aio.client.models.v1_app_armor_profile.rst | 7 + ...o.client.models.v1_apply_configuration.rst | 7 + ...s.aio.client.models.v1_attached_volume.rst | 7 + ....aio.client.models.v1_audit_annotation.rst | 7 + ..._aws_elastic_block_store_volume_source.rst | 7 + ...ent.models.v1_azure_disk_volume_source.rst | 7 + ...v1_azure_file_persistent_volume_source.rst | 7 + ...ent.models.v1_azure_file_volume_source.rst | 7 + ...ubernetes.aio.client.models.v1_binding.rst | 7 + ...lient.models.v1_bound_object_reference.rst | 7 + ...etes.aio.client.models.v1_capabilities.rst | 7 + ...ient.models.v1_capacity_request_policy.rst | 7 + ...odels.v1_capacity_request_policy_range.rst | 7 + ...client.models.v1_capacity_requirements.rst | 7 + ...o.client.models.v1_cel_device_selector.rst | 7 + ...ls.v1_ceph_fs_persistent_volume_source.rst | 7 + ...client.models.v1_ceph_fs_volume_source.rst | 7 + ....models.v1_certificate_signing_request.rst | 7 + ..._certificate_signing_request_condition.rst | 7 + ...ls.v1_certificate_signing_request_list.rst | 7 + ...ls.v1_certificate_signing_request_spec.rst | 7 + ....v1_certificate_signing_request_status.rst | 7 + ...els.v1_cinder_persistent_volume_source.rst | 7 + ....client.models.v1_cinder_volume_source.rst | 7 + ....aio.client.models.v1_client_ip_config.rst | 7 + ...etes.aio.client.models.v1_cluster_role.rst | 7 + ....client.models.v1_cluster_role_binding.rst | 7 + ...nt.models.v1_cluster_role_binding_list.rst | 7 + ...aio.client.models.v1_cluster_role_list.rst | 7 + ...els.v1_cluster_trust_bundle_projection.rst | 7 + ...o.client.models.v1_component_condition.rst | 7 + ....aio.client.models.v1_component_status.rst | 7 + ...client.models.v1_component_status_list.rst | 7 + ...ernetes.aio.client.models.v1_condition.rst | 7 + ...rnetes.aio.client.models.v1_config_map.rst | 7 + ...client.models.v1_config_map_env_source.rst | 7 + ...ient.models.v1_config_map_key_selector.rst | 7 + ...s.aio.client.models.v1_config_map_list.rst | 7 + ...odels.v1_config_map_node_config_source.rst | 7 + ...client.models.v1_config_map_projection.rst | 7 + ...ent.models.v1_config_map_volume_source.rst | 7 + ...ernetes.aio.client.models.v1_container.rst | 7 + ...v1_container_extended_resource_request.rst | 7 + ...s.aio.client.models.v1_container_image.rst | 7 + ...es.aio.client.models.v1_container_port.rst | 7 + ...ient.models.v1_container_resize_policy.rst | 7 + ...lient.models.v1_container_restart_rule.rst | 7 + ...1_container_restart_rule_on_exit_codes.rst | 7 + ...s.aio.client.models.v1_container_state.rst | 7 + ...ient.models.v1_container_state_running.rst | 7 + ...t.models.v1_container_state_terminated.rst | 7 + ...ient.models.v1_container_state_waiting.rst | 7 + ....aio.client.models.v1_container_status.rst | 7 + ...es.aio.client.models.v1_container_user.rst | 7 + ...o.client.models.v1_controller_revision.rst | 7 + ...ent.models.v1_controller_revision_list.rst | 7 + ...ubernetes.aio.client.models.v1_counter.rst | 7 + ...netes.aio.client.models.v1_counter_set.rst | 7 + ...bernetes.aio.client.models.v1_cron_job.rst | 7 + ...tes.aio.client.models.v1_cron_job_list.rst | 7 + ...tes.aio.client.models.v1_cron_job_spec.rst | 7 + ...s.aio.client.models.v1_cron_job_status.rst | 7 + ...dels.v1_cross_version_object_reference.rst | 7 + ...rnetes.aio.client.models.v1_csi_driver.rst | 7 + ...s.aio.client.models.v1_csi_driver_list.rst | 7 + ...s.aio.client.models.v1_csi_driver_spec.rst | 7 + ...bernetes.aio.client.models.v1_csi_node.rst | 7 + ...s.aio.client.models.v1_csi_node_driver.rst | 7 + ...tes.aio.client.models.v1_csi_node_list.rst | 7 + ...tes.aio.client.models.v1_csi_node_spec.rst | 7 + ...models.v1_csi_persistent_volume_source.rst | 7 + ....client.models.v1_csi_storage_capacity.rst | 7 + ...nt.models.v1_csi_storage_capacity_list.rst | 7 + ...aio.client.models.v1_csi_volume_source.rst | 7 + ...s.v1_custom_resource_column_definition.rst | 7 + ...t.models.v1_custom_resource_conversion.rst | 7 + ...t.models.v1_custom_resource_definition.rst | 7 + ...1_custom_resource_definition_condition.rst | 7 + ...els.v1_custom_resource_definition_list.rst | 7 + ...ls.v1_custom_resource_definition_names.rst | 7 + ...els.v1_custom_resource_definition_spec.rst | 7 + ...s.v1_custom_resource_definition_status.rst | 7 + ....v1_custom_resource_definition_version.rst | 7 + ...s.v1_custom_resource_subresource_scale.rst | 7 + ...models.v1_custom_resource_subresources.rst | 7 + ...t.models.v1_custom_resource_validation.rst | 7 + ...s.aio.client.models.v1_daemon_endpoint.rst | 7 + ...rnetes.aio.client.models.v1_daemon_set.rst | 7 + ....client.models.v1_daemon_set_condition.rst | 7 + ...s.aio.client.models.v1_daemon_set_list.rst | 7 + ...s.aio.client.models.v1_daemon_set_spec.rst | 7 + ...aio.client.models.v1_daemon_set_status.rst | 7 + ...t.models.v1_daemon_set_update_strategy.rst | 7 + ...es.aio.client.models.v1_delete_options.rst | 7 + ...rnetes.aio.client.models.v1_deployment.rst | 7 + ....client.models.v1_deployment_condition.rst | 7 + ...s.aio.client.models.v1_deployment_list.rst | 7 + ...s.aio.client.models.v1_deployment_spec.rst | 7 + ...aio.client.models.v1_deployment_status.rst | 7 + ...o.client.models.v1_deployment_strategy.rst | 7 + ...kubernetes.aio.client.models.v1_device.rst | 7 + ...els.v1_device_allocation_configuration.rst | 7 + ...ent.models.v1_device_allocation_result.rst | 7 + ....aio.client.models.v1_device_attribute.rst | 7 + ...s.aio.client.models.v1_device_capacity.rst | 7 + ...etes.aio.client.models.v1_device_claim.rst | 7 + ...t.models.v1_device_claim_configuration.rst | 7 + ...etes.aio.client.models.v1_device_class.rst | 7 + ...t.models.v1_device_class_configuration.rst | 7 + ...aio.client.models.v1_device_class_list.rst | 7 + ...aio.client.models.v1_device_class_spec.rst | 7 + ...aio.client.models.v1_device_constraint.rst | 7 + ...t.models.v1_device_counter_consumption.rst | 7 + ...es.aio.client.models.v1_device_request.rst | 7 + ...ls.v1_device_request_allocation_result.rst | 7 + ...s.aio.client.models.v1_device_selector.rst | 7 + ...io.client.models.v1_device_sub_request.rst | 7 + ...etes.aio.client.models.v1_device_taint.rst | 7 + ...aio.client.models.v1_device_toleration.rst | 7 + ...ient.models.v1_downward_api_projection.rst | 7 + ...ent.models.v1_downward_api_volume_file.rst | 7 + ...t.models.v1_downward_api_volume_source.rst | 7 + ...ient.models.v1_empty_dir_volume_source.rst | 7 + ...bernetes.aio.client.models.v1_endpoint.rst | 7 + ....aio.client.models.v1_endpoint_address.rst | 7 + ...o.client.models.v1_endpoint_conditions.rst | 7 + ...es.aio.client.models.v1_endpoint_hints.rst | 7 + ...es.aio.client.models.v1_endpoint_slice.rst | 7 + ...o.client.models.v1_endpoint_slice_list.rst | 7 + ...s.aio.client.models.v1_endpoint_subset.rst | 7 + ...ernetes.aio.client.models.v1_endpoints.rst | 7 + ...es.aio.client.models.v1_endpoints_list.rst | 7 + ...s.aio.client.models.v1_env_from_source.rst | 7 + ...ubernetes.aio.client.models.v1_env_var.rst | 7 + ...es.aio.client.models.v1_env_var_source.rst | 7 + ...o.client.models.v1_ephemeral_container.rst | 7 + ...ient.models.v1_ephemeral_volume_source.rst | 7 + ...etes.aio.client.models.v1_event_source.rst | 7 + ...bernetes.aio.client.models.v1_eviction.rst | 7 + ....client.models.v1_exact_device_request.rst | 7 + ...netes.aio.client.models.v1_exec_action.rst | 7 + ...v1_exempt_priority_level_configuration.rst | 7 + ...io.client.models.v1_expression_warning.rst | 7 + ...lient.models.v1_external_documentation.rst | 7 + ....aio.client.models.v1_fc_volume_source.rst | 7 + ...nt.models.v1_field_selector_attributes.rst | 7 + ...t.models.v1_field_selector_requirement.rst | 7 + ...aio.client.models.v1_file_key_selector.rst | 7 + ...odels.v1_flex_persistent_volume_source.rst | 7 + ...io.client.models.v1_flex_volume_source.rst | 7 + ...client.models.v1_flocker_volume_source.rst | 7 + ...nt.models.v1_flow_distinguisher_method.rst | 7 + ...netes.aio.client.models.v1_flow_schema.rst | 7 + ...client.models.v1_flow_schema_condition.rst | 7 + ....aio.client.models.v1_flow_schema_list.rst | 7 + ....aio.client.models.v1_flow_schema_spec.rst | 7 + ...io.client.models.v1_flow_schema_status.rst | 7 + ...bernetes.aio.client.models.v1_for_node.rst | 7 + ...bernetes.aio.client.models.v1_for_zone.rst | 7 + ...s.v1_gce_persistent_disk_volume_source.rst | 7 + ...lient.models.v1_git_repo_volume_source.rst | 7 + ....v1_glusterfs_persistent_volume_source.rst | 7 + ...ient.models.v1_glusterfs_volume_source.rst | 7 + ...es.aio.client.models.v1_group_resource.rst | 7 + ...tes.aio.client.models.v1_group_subject.rst | 7 + ....models.v1_group_version_for_discovery.rst | 7 + ...io.client.models.v1_group_version_kind.rst | 7 + ...netes.aio.client.models.v1_grpc_action.rst | 7 + ...nt.models.v1_horizontal_pod_autoscaler.rst | 7 + ...dels.v1_horizontal_pod_autoscaler_list.rst | 7 + ...dels.v1_horizontal_pod_autoscaler_spec.rst | 7 + ...ls.v1_horizontal_pod_autoscaler_status.rst | 7 + ...rnetes.aio.client.models.v1_host_alias.rst | 7 + ...ubernetes.aio.client.models.v1_host_ip.rst | 7 + ...ient.models.v1_host_path_volume_source.rst | 7 + ...s.aio.client.models.v1_http_get_action.rst | 7 + ...netes.aio.client.models.v1_http_header.rst | 7 + ...aio.client.models.v1_http_ingress_path.rst | 7 + ...ient.models.v1_http_ingress_rule_value.rst | 7 + ...o.client.models.v1_image_volume_source.rst | 7 + ...o.client.models.v1_image_volume_status.rst | 7 + ...ubernetes.aio.client.models.v1_ingress.rst | 7 + ...s.aio.client.models.v1_ingress_backend.rst | 7 + ...tes.aio.client.models.v1_ingress_class.rst | 7 + ...io.client.models.v1_ingress_class_list.rst | 7 + ....v1_ingress_class_parameters_reference.rst | 7 + ...io.client.models.v1_ingress_class_spec.rst | 7 + ...etes.aio.client.models.v1_ingress_list.rst | 7 + ...odels.v1_ingress_load_balancer_ingress.rst | 7 + ...models.v1_ingress_load_balancer_status.rst | 7 + ...o.client.models.v1_ingress_port_status.rst | 7 + ...etes.aio.client.models.v1_ingress_rule.rst | 7 + ...ient.models.v1_ingress_service_backend.rst | 7 + ...etes.aio.client.models.v1_ingress_spec.rst | 7 + ...es.aio.client.models.v1_ingress_status.rst | 7 + ...netes.aio.client.models.v1_ingress_tls.rst | 7 + ...rnetes.aio.client.models.v1_ip_address.rst | 7 + ...s.aio.client.models.v1_ip_address_list.rst | 7 + ...s.aio.client.models.v1_ip_address_spec.rst | 7 + ...bernetes.aio.client.models.v1_ip_block.rst | 7 + ...dels.v1_iscsi_persistent_volume_source.rst | 7 + ...o.client.models.v1_iscsi_volume_source.rst | 7 + .../kubernetes.aio.client.models.v1_job.rst | 7 + ...tes.aio.client.models.v1_job_condition.rst | 7 + ...bernetes.aio.client.models.v1_job_list.rst | 7 + ...bernetes.aio.client.models.v1_job_spec.rst | 7 + ...rnetes.aio.client.models.v1_job_status.rst | 7 + ...aio.client.models.v1_job_template_spec.rst | 7 + ...rnetes.aio.client.models.v1_json_patch.rst | 7 + ...aio.client.models.v1_json_schema_props.rst | 7 + ...netes.aio.client.models.v1_key_to_path.rst | 7 + ...es.aio.client.models.v1_label_selector.rst | 7 + ...nt.models.v1_label_selector_attributes.rst | 7 + ...t.models.v1_label_selector_requirement.rst | 7 + .../kubernetes.aio.client.models.v1_lease.rst | 7 + ...rnetes.aio.client.models.v1_lease_list.rst | 7 + ...rnetes.aio.client.models.v1_lease_spec.rst | 7 + ...ernetes.aio.client.models.v1_lifecycle.rst | 7 + ...aio.client.models.v1_lifecycle_handler.rst | 7 + ...netes.aio.client.models.v1_limit_range.rst | 7 + ....aio.client.models.v1_limit_range_item.rst | 7 + ....aio.client.models.v1_limit_range_list.rst | 7 + ....aio.client.models.v1_limit_range_spec.rst | 7 + ...es.aio.client.models.v1_limit_response.rst | 7 + ...1_limited_priority_level_configuration.rst | 7 + ....client.models.v1_linux_container_user.rst | 7 + ...ernetes.aio.client.models.v1_list_meta.rst | 7 + ...client.models.v1_load_balancer_ingress.rst | 7 + ....client.models.v1_load_balancer_status.rst | 7 + ...lient.models.v1_local_object_reference.rst | 7 + ....models.v1_local_subject_access_review.rst | 7 + ...o.client.models.v1_local_volume_source.rst | 7 + ....client.models.v1_managed_fields_entry.rst | 7 + ...s.aio.client.models.v1_match_condition.rst | 7 + ...s.aio.client.models.v1_match_resources.rst | 7 + ....client.models.v1_modify_volume_status.rst | 7 + ...nt.models.v1_mutating_admission_policy.rst | 7 + ...s.v1_mutating_admission_policy_binding.rst | 7 + ...mutating_admission_policy_binding_list.rst | 7 + ...mutating_admission_policy_binding_spec.rst | 7 + ...dels.v1_mutating_admission_policy_list.rst | 7 + ...dels.v1_mutating_admission_policy_spec.rst | 7 + ....aio.client.models.v1_mutating_webhook.rst | 7 + ...dels.v1_mutating_webhook_configuration.rst | 7 + ...v1_mutating_webhook_configuration_list.rst | 7 + ...bernetes.aio.client.models.v1_mutation.rst | 7 + ...t.models.v1_named_rule_with_operations.rst | 7 + ...ernetes.aio.client.models.v1_namespace.rst | 7 + ...o.client.models.v1_namespace_condition.rst | 7 + ...es.aio.client.models.v1_namespace_list.rst | 7 + ...es.aio.client.models.v1_namespace_spec.rst | 7 + ....aio.client.models.v1_namespace_status.rst | 7 + ...o.client.models.v1_network_device_data.rst | 7 + ...es.aio.client.models.v1_network_policy.rst | 7 + ...t.models.v1_network_policy_egress_rule.rst | 7 + ....models.v1_network_policy_ingress_rule.rst | 7 + ...o.client.models.v1_network_policy_list.rst | 7 + ...o.client.models.v1_network_policy_peer.rst | 7 + ...o.client.models.v1_network_policy_port.rst | 7 + ...o.client.models.v1_network_policy_spec.rst | 7 + ...aio.client.models.v1_nfs_volume_source.rst | 7 + .../kubernetes.aio.client.models.v1_node.rst | 7 + ...etes.aio.client.models.v1_node_address.rst | 7 + ...tes.aio.client.models.v1_node_affinity.rst | 7 + ...node_allocatable_resource_claim_status.rst | 7 + ...s.v1_node_allocatable_resource_mapping.rst | 7 + ...es.aio.client.models.v1_node_condition.rst | 7 + ...io.client.models.v1_node_config_source.rst | 7 + ...io.client.models.v1_node_config_status.rst | 7 + ...client.models.v1_node_daemon_endpoints.rst | 7 + ...tes.aio.client.models.v1_node_features.rst | 7 + ...ernetes.aio.client.models.v1_node_list.rst | 7 + ....client.models.v1_node_runtime_handler.rst | 7 + ...odels.v1_node_runtime_handler_features.rst | 7 + ...tes.aio.client.models.v1_node_selector.rst | 7 + ...nt.models.v1_node_selector_requirement.rst | 7 + ...io.client.models.v1_node_selector_term.rst | 7 + ...ernetes.aio.client.models.v1_node_spec.rst | 7 + ...netes.aio.client.models.v1_node_status.rst | 7 + ....aio.client.models.v1_node_swap_status.rst | 7 + ....aio.client.models.v1_node_system_info.rst | 7 + ...ient.models.v1_non_resource_attributes.rst | 7 + ...ent.models.v1_non_resource_policy_rule.rst | 7 + ...aio.client.models.v1_non_resource_rule.rst | 7 + ...client.models.v1_object_field_selector.rst | 7 + ...netes.aio.client.models.v1_object_meta.rst | 7 + ....aio.client.models.v1_object_reference.rst | 7 + ....models.v1_opaque_device_configuration.rst | 7 + ...bernetes.aio.client.models.v1_overhead.rst | 7 + ...s.aio.client.models.v1_owner_reference.rst | 7 + ...rnetes.aio.client.models.v1_param_kind.rst | 7 + ...ernetes.aio.client.models.v1_param_ref.rst | 7 + ....aio.client.models.v1_parent_reference.rst | 7 + ...aio.client.models.v1_persistent_volume.rst | 7 + ...ient.models.v1_persistent_volume_claim.rst | 7 + ...s.v1_persistent_volume_claim_condition.rst | 7 + ...models.v1_persistent_volume_claim_list.rst | 7 + ...models.v1_persistent_volume_claim_spec.rst | 7 + ...dels.v1_persistent_volume_claim_status.rst | 7 + ...ls.v1_persistent_volume_claim_template.rst | 7 + ..._persistent_volume_claim_volume_source.rst | 7 + ...lient.models.v1_persistent_volume_list.rst | 7 + ...lient.models.v1_persistent_volume_spec.rst | 7 + ...ent.models.v1_persistent_volume_status.rst | 7 + ...1_photon_persistent_disk_volume_source.rst | 7 + .../kubernetes.aio.client.models.v1_pod.rst | 7 + ...etes.aio.client.models.v1_pod_affinity.rst | 7 + ...aio.client.models.v1_pod_affinity_term.rst | 7 + ...aio.client.models.v1_pod_anti_affinity.rst | 7 + ...t.models.v1_pod_certificate_projection.rst | 7 + ...tes.aio.client.models.v1_pod_condition.rst | 7 + ...client.models.v1_pod_disruption_budget.rst | 7 + ...t.models.v1_pod_disruption_budget_list.rst | 7 + ...t.models.v1_pod_disruption_budget_spec.rst | 7 + ...models.v1_pod_disruption_budget_status.rst | 7 + ...es.aio.client.models.v1_pod_dns_config.rst | 7 + ...client.models.v1_pod_dns_config_option.rst | 7 + ....v1_pod_extended_resource_claim_status.rst | 7 + ...io.client.models.v1_pod_failure_policy.rst | 7 + ...ilure_policy_on_exit_codes_requirement.rst | 7 + ...ilure_policy_on_pod_conditions_pattern.rst | 7 + ...ient.models.v1_pod_failure_policy_rule.rst | 7 + ...kubernetes.aio.client.models.v1_pod_ip.rst | 7 + ...bernetes.aio.client.models.v1_pod_list.rst | 7 + ...kubernetes.aio.client.models.v1_pod_os.rst | 7 + ...io.client.models.v1_pod_readiness_gate.rst | 7 + ...io.client.models.v1_pod_resource_claim.rst | 7 + ...nt.models.v1_pod_resource_claim_status.rst | 7 + ...o.client.models.v1_pod_scheduling_gate.rst | 7 + ....client.models.v1_pod_scheduling_group.rst | 7 + ....client.models.v1_pod_security_context.rst | 7 + ...bernetes.aio.client.models.v1_pod_spec.rst | 7 + ...rnetes.aio.client.models.v1_pod_status.rst | 7 + ...etes.aio.client.models.v1_pod_template.rst | 7 + ...aio.client.models.v1_pod_template_list.rst | 7 + ...aio.client.models.v1_pod_template_spec.rst | 7 + ...netes.aio.client.models.v1_policy_rule.rst | 7 + ...t.models.v1_policy_rules_with_subjects.rst | 7 + ...netes.aio.client.models.v1_port_status.rst | 7 + ...lient.models.v1_portworx_volume_source.rst | 7 + ...tes.aio.client.models.v1_preconditions.rst | 7 + ...nt.models.v1_preferred_scheduling_term.rst | 7 + ...es.aio.client.models.v1_priority_class.rst | 7 + ...o.client.models.v1_priority_class_list.rst | 7 + ...models.v1_priority_level_configuration.rst | 7 + ...priority_level_configuration_condition.rst | 7 + ...s.v1_priority_level_configuration_list.rst | 7 + ...priority_level_configuration_reference.rst | 7 + ...s.v1_priority_level_configuration_spec.rst | 7 + ...v1_priority_level_configuration_status.rst | 7 + .../kubernetes.aio.client.models.v1_probe.rst | 7 + ...ient.models.v1_projected_volume_source.rst | 7 + ...client.models.v1_queuing_configuration.rst | 7 + ...client.models.v1_quobyte_volume_source.rst | 7 + ...models.v1_rbd_persistent_volume_source.rst | 7 + ...aio.client.models.v1_rbd_volume_source.rst | 7 + ...netes.aio.client.models.v1_replica_set.rst | 7 + ...client.models.v1_replica_set_condition.rst | 7 + ....aio.client.models.v1_replica_set_list.rst | 7 + ....aio.client.models.v1_replica_set_spec.rst | 7 + ...io.client.models.v1_replica_set_status.rst | 7 + ...lient.models.v1_replication_controller.rst | 7 + ...ls.v1_replication_controller_condition.rst | 7 + ....models.v1_replication_controller_list.rst | 7 + ....models.v1_replication_controller_spec.rst | 7 + ...odels.v1_replication_controller_status.rst | 7 + ...o.client.models.v1_resource_attributes.rst | 7 + ...s.v1_resource_claim_consumer_reference.rst | 7 + ...o.client.models.v1_resource_claim_list.rst | 7 + ...o.client.models.v1_resource_claim_spec.rst | 7 + ...client.models.v1_resource_claim_status.rst | 7 + ...ient.models.v1_resource_claim_template.rst | 7 + ...models.v1_resource_claim_template_list.rst | 7 + ...models.v1_resource_claim_template_spec.rst | 7 + ...ient.models.v1_resource_field_selector.rst | 7 + ...s.aio.client.models.v1_resource_health.rst | 7 + ....client.models.v1_resource_policy_rule.rst | 7 + ...tes.aio.client.models.v1_resource_pool.rst | 7 + ...es.aio.client.models.v1_resource_quota.rst | 7 + ...o.client.models.v1_resource_quota_list.rst | 7 + ...o.client.models.v1_resource_quota_spec.rst | 7 + ...client.models.v1_resource_quota_status.rst | 7 + ...client.models.v1_resource_requirements.rst | 7 + ...tes.aio.client.models.v1_resource_rule.rst | 7 + ...es.aio.client.models.v1_resource_slice.rst | 7 + ...o.client.models.v1_resource_slice_list.rst | 7 + ...o.client.models.v1_resource_slice_spec.rst | 7 + ...s.aio.client.models.v1_resource_status.rst | 7 + .../kubernetes.aio.client.models.v1_role.rst | 7 + ...etes.aio.client.models.v1_role_binding.rst | 7 + ...aio.client.models.v1_role_binding_list.rst | 7 + ...ernetes.aio.client.models.v1_role_list.rst | 7 + ...bernetes.aio.client.models.v1_role_ref.rst | 7 + ...nt.models.v1_rolling_update_daemon_set.rst | 7 + ...nt.models.v1_rolling_update_deployment.rst | 7 + ...1_rolling_update_stateful_set_strategy.rst | 7 + ....client.models.v1_rule_with_operations.rst | 7 + ...tes.aio.client.models.v1_runtime_class.rst | 7 + ...io.client.models.v1_runtime_class_list.rst | 7 + .../kubernetes.aio.client.models.v1_scale.rst | 7 + ...s.v1_scale_io_persistent_volume_source.rst | 7 + ...lient.models.v1_scale_io_volume_source.rst | 7 + ...rnetes.aio.client.models.v1_scale_spec.rst | 7 + ...etes.aio.client.models.v1_scale_status.rst | 7 + ...rnetes.aio.client.models.v1_scheduling.rst | 7 + ...es.aio.client.models.v1_scope_selector.rst | 7 + ...1_scoped_resource_selector_requirement.rst | 7 + ....aio.client.models.v1_se_linux_options.rst | 7 + ...s.aio.client.models.v1_seccomp_profile.rst | 7 + ...kubernetes.aio.client.models.v1_secret.rst | 7 + ...aio.client.models.v1_secret_env_source.rst | 7 + ...o.client.models.v1_secret_key_selector.rst | 7 + ...netes.aio.client.models.v1_secret_list.rst | 7 + ...aio.client.models.v1_secret_projection.rst | 7 + ....aio.client.models.v1_secret_reference.rst | 7 + ....client.models.v1_secret_volume_source.rst | 7 + ....aio.client.models.v1_security_context.rst | 7 + ....aio.client.models.v1_selectable_field.rst | 7 + ...t.models.v1_self_subject_access_review.rst | 7 + ...els.v1_self_subject_access_review_spec.rst | 7 + ...o.client.models.v1_self_subject_review.rst | 7 + ...t.models.v1_self_subject_review_status.rst | 7 + ...nt.models.v1_self_subject_rules_review.rst | 7 + ...dels.v1_self_subject_rules_review_spec.rst | 7 + ...odels.v1_server_address_by_client_cidr.rst | 7 + ...ubernetes.aio.client.models.v1_service.rst | 7 + ...s.aio.client.models.v1_service_account.rst | 7 + ....client.models.v1_service_account_list.rst | 7 + ...ient.models.v1_service_account_subject.rst | 7 + ...ls.v1_service_account_token_projection.rst | 7 + ....client.models.v1_service_backend_port.rst | 7 + ...etes.aio.client.models.v1_service_cidr.rst | 7 + ...aio.client.models.v1_service_cidr_list.rst | 7 + ...aio.client.models.v1_service_cidr_spec.rst | 7 + ...o.client.models.v1_service_cidr_status.rst | 7 + ...etes.aio.client.models.v1_service_list.rst | 7 + ...etes.aio.client.models.v1_service_port.rst | 7 + ...etes.aio.client.models.v1_service_spec.rst | 7 + ...es.aio.client.models.v1_service_status.rst | 7 + ...ient.models.v1_session_affinity_config.rst | 7 + ...rnetes.aio.client.models.v1_shard_info.rst | 7 + ...etes.aio.client.models.v1_sleep_action.rst | 7 + ...etes.aio.client.models.v1_stateful_set.rst | 7 + ...lient.models.v1_stateful_set_condition.rst | 7 + ...aio.client.models.v1_stateful_set_list.rst | 7 + ...client.models.v1_stateful_set_ordinals.rst | 7 + ...rsistent_volume_claim_retention_policy.rst | 7 + ...aio.client.models.v1_stateful_set_spec.rst | 7 + ...o.client.models.v1_stateful_set_status.rst | 7 + ...models.v1_stateful_set_update_strategy.rst | 7 + ...kubernetes.aio.client.models.v1_status.rst | 7 + ...etes.aio.client.models.v1_status_cause.rst | 7 + ...es.aio.client.models.v1_status_details.rst | 7 + ...tes.aio.client.models.v1_storage_class.rst | 7 + ...io.client.models.v1_storage_class_list.rst | 7 + ...v1_storage_os_persistent_volume_source.rst | 7 + ...ent.models.v1_storage_os_volume_source.rst | 7 + ...client.models.v1_subject_access_review.rst | 7 + ...t.models.v1_subject_access_review_spec.rst | 7 + ...models.v1_subject_access_review_status.rst | 7 + ....models.v1_subject_rules_review_status.rst | 7 + ...es.aio.client.models.v1_success_policy.rst | 7 + ...o.client.models.v1_success_policy_rule.rst | 7 + ...kubernetes.aio.client.models.v1_sysctl.rst | 7 + .../kubernetes.aio.client.models.v1_taint.rst | 7 + ...aio.client.models.v1_tcp_socket_action.rst | 7 + ...io.client.models.v1_token_request_spec.rst | 7 + ....client.models.v1_token_request_status.rst | 7 + ...etes.aio.client.models.v1_token_review.rst | 7 + ...aio.client.models.v1_token_review_spec.rst | 7 + ...o.client.models.v1_token_review_status.rst | 7 + ...rnetes.aio.client.models.v1_toleration.rst | 7 + ...v1_topology_selector_label_requirement.rst | 7 + ...lient.models.v1_topology_selector_term.rst | 7 + ...t.models.v1_topology_spread_constraint.rst | 7 + ...tes.aio.client.models.v1_type_checking.rst | 7 + ...models.v1_typed_local_object_reference.rst | 7 + ...lient.models.v1_typed_object_reference.rst | 7 + ...nt.models.v1_uncounted_terminated_pods.rst | 7 + ...ernetes.aio.client.models.v1_user_info.rst | 7 + ...etes.aio.client.models.v1_user_subject.rst | 7 + ....models.v1_validating_admission_policy.rst | 7 + ...v1_validating_admission_policy_binding.rst | 7 + ...lidating_admission_policy_binding_list.rst | 7 + ...lidating_admission_policy_binding_spec.rst | 7 + ...ls.v1_validating_admission_policy_list.rst | 7 + ...ls.v1_validating_admission_policy_spec.rst | 7 + ....v1_validating_admission_policy_status.rst | 7 + ...io.client.models.v1_validating_webhook.rst | 7 + ...ls.v1_validating_webhook_configuration.rst | 7 + ..._validating_webhook_configuration_list.rst | 7 + ...rnetes.aio.client.models.v1_validation.rst | 7 + ...s.aio.client.models.v1_validation_rule.rst | 7 + ...bernetes.aio.client.models.v1_variable.rst | 7 + ...kubernetes.aio.client.models.v1_volume.rst | 7 + ...aio.client.models.v1_volume_attachment.rst | 7 + ...lient.models.v1_volume_attachment_list.rst | 7 + ...ent.models.v1_volume_attachment_source.rst | 7 + ...lient.models.v1_volume_attachment_spec.rst | 7 + ...ent.models.v1_volume_attachment_status.rst | 7 + ...ient.models.v1_volume_attributes_class.rst | 7 + ...models.v1_volume_attributes_class_list.rst | 7 + ...tes.aio.client.models.v1_volume_device.rst | 7 + ...etes.aio.client.models.v1_volume_error.rst | 7 + ...etes.aio.client.models.v1_volume_mount.rst | 7 + ...o.client.models.v1_volume_mount_status.rst | 7 + ....client.models.v1_volume_node_affinity.rst | 7 + ...client.models.v1_volume_node_resources.rst | 7 + ...aio.client.models.v1_volume_projection.rst | 7 + ...models.v1_volume_resource_requirements.rst | 7 + ...tes.aio.client.models.v1_volume_status.rst | 7 + ....v1_vsphere_virtual_disk_volume_source.rst | 7 + ...netes.aio.client.models.v1_watch_event.rst | 7 + ...io.client.models.v1_webhook_conversion.rst | 7 + ...t.models.v1_weighted_pod_affinity_term.rst | 7 + ...ls.v1_windows_security_context_options.rst | 7 + ...nt.models.v1alpha1_apply_configuration.rst | 7 + ...t.models.v1alpha1_cluster_trust_bundle.rst | 7 + ...els.v1alpha1_cluster_trust_bundle_list.rst | 7 + ...els.v1alpha1_cluster_trust_bundle_spec.rst | 7 + ....aio.client.models.v1alpha1_json_patch.rst | 7 + ...client.models.v1alpha1_match_condition.rst | 7 + ...client.models.v1alpha1_match_resources.rst | 7 + ...els.v1alpha1_mutating_admission_policy.rst | 7 + ...pha1_mutating_admission_policy_binding.rst | 7 + ...mutating_admission_policy_binding_list.rst | 7 + ...mutating_admission_policy_binding_spec.rst | 7 + ...1alpha1_mutating_admission_policy_list.rst | 7 + ...1alpha1_mutating_admission_policy_spec.rst | 7 + ...es.aio.client.models.v1alpha1_mutation.rst | 7 + ...ls.v1alpha1_named_rule_with_operations.rst | 7 + ....aio.client.models.v1alpha1_param_kind.rst | 7 + ...s.aio.client.models.v1alpha1_param_ref.rst | 7 + ...models.v1alpha1_server_storage_version.rst | 7 + ...client.models.v1alpha1_storage_version.rst | 7 + ...els.v1alpha1_storage_version_condition.rst | 7 + ...t.models.v1alpha1_storage_version_list.rst | 7 + ...models.v1alpha1_storage_version_status.rst | 7 + ...es.aio.client.models.v1alpha1_variable.rst | 7 + ...models.v1alpha2_gang_scheduling_policy.rst | 7 + ...client.models.v1alpha2_lease_candidate.rst | 7 + ...t.models.v1alpha2_lease_candidate_list.rst | 7 + ...t.models.v1alpha2_lease_candidate_spec.rst | 7 + ...s.aio.client.models.v1alpha2_pod_group.rst | 7 + ....client.models.v1alpha2_pod_group_list.rst | 7 + ...dels.v1alpha2_pod_group_resource_claim.rst | 7 + ...alpha2_pod_group_resource_claim_status.rst | 7 + ...lpha2_pod_group_scheduling_constraints.rst | 7 + ...s.v1alpha2_pod_group_scheduling_policy.rst | 7 + ....client.models.v1alpha2_pod_group_spec.rst | 7 + ...lient.models.v1alpha2_pod_group_status.rst | 7 + ...ent.models.v1alpha2_pod_group_template.rst | 7 + ....v1alpha2_pod_group_template_reference.rst | 7 + ...nt.models.v1alpha2_topology_constraint.rst | 7 + ....v1alpha2_typed_local_object_reference.rst | 7 + ...es.aio.client.models.v1alpha2_workload.rst | 7 + ...o.client.models.v1alpha2_workload_list.rst | 7 + ..._workload_pod_group_template_reference.rst | 7 + ...o.client.models.v1alpha2_workload_spec.rst | 7 + ...io.client.models.v1alpha3_device_taint.rst | 7 + ...ient.models.v1alpha3_device_taint_rule.rst | 7 + ...models.v1alpha3_device_taint_rule_list.rst | 7 + ...models.v1alpha3_device_taint_rule_spec.rst | 7 + ...dels.v1alpha3_device_taint_rule_status.rst | 7 + ....models.v1alpha3_device_taint_selector.rst | 7 + ...aio.client.models.v1alpha3_pool_status.rst | 7 + ....v1alpha3_resource_pool_status_request.rst | 7 + ...pha3_resource_pool_status_request_list.rst | 7 + ...pha3_resource_pool_status_request_spec.rst | 7 + ...a3_resource_pool_status_request_status.rst | 7 + ...models.v1beta1_allocated_device_status.rst | 7 + ...lient.models.v1beta1_allocation_result.rst | 7 + ...ent.models.v1beta1_apply_configuration.rst | 7 + ...aio.client.models.v1beta1_basic_device.rst | 7 + ...models.v1beta1_capacity_request_policy.rst | 7 + ....v1beta1_capacity_request_policy_range.rst | 7 + ...t.models.v1beta1_capacity_requirements.rst | 7 + ...ent.models.v1beta1_cel_device_selector.rst | 7 + ...nt.models.v1beta1_cluster_trust_bundle.rst | 7 + ...dels.v1beta1_cluster_trust_bundle_list.rst | 7 + ...dels.v1beta1_cluster_trust_bundle_spec.rst | 7 + ...etes.aio.client.models.v1beta1_counter.rst | 7 + ....aio.client.models.v1beta1_counter_set.rst | 7 + ...netes.aio.client.models.v1beta1_device.rst | 7 + ...1beta1_device_allocation_configuration.rst | 7 + ...odels.v1beta1_device_allocation_result.rst | 7 + ...client.models.v1beta1_device_attribute.rst | 7 + ....client.models.v1beta1_device_capacity.rst | 7 + ...aio.client.models.v1beta1_device_claim.rst | 7 + ...els.v1beta1_device_claim_configuration.rst | 7 + ...aio.client.models.v1beta1_device_class.rst | 7 + ...els.v1beta1_device_class_configuration.rst | 7 + ...lient.models.v1beta1_device_class_list.rst | 7 + ...lient.models.v1beta1_device_class_spec.rst | 7 + ...lient.models.v1beta1_device_constraint.rst | 7 + ...els.v1beta1_device_counter_consumption.rst | 7 + ...o.client.models.v1beta1_device_request.rst | 7 + ...beta1_device_request_allocation_result.rst | 7 + ....client.models.v1beta1_device_selector.rst | 7 + ...ient.models.v1beta1_device_sub_request.rst | 7 + ...aio.client.models.v1beta1_device_taint.rst | 7 + ...lient.models.v1beta1_device_toleration.rst | 7 + ...s.aio.client.models.v1beta1_ip_address.rst | 7 + ....client.models.v1beta1_ip_address_list.rst | 7 + ....client.models.v1beta1_ip_address_spec.rst | 7 + ...s.aio.client.models.v1beta1_json_patch.rst | 7 + ....client.models.v1beta1_lease_candidate.rst | 7 + ...nt.models.v1beta1_lease_candidate_list.rst | 7 + ...nt.models.v1beta1_lease_candidate_spec.rst | 7 + ....client.models.v1beta1_match_condition.rst | 7 + ....client.models.v1beta1_match_resources.rst | 7 + ...dels.v1beta1_mutating_admission_policy.rst | 7 + ...eta1_mutating_admission_policy_binding.rst | 7 + ...mutating_admission_policy_binding_list.rst | 7 + ...mutating_admission_policy_binding_spec.rst | 7 + ...v1beta1_mutating_admission_policy_list.rst | 7 + ...v1beta1_mutating_admission_policy_spec.rst | 7 + ...tes.aio.client.models.v1beta1_mutation.rst | 7 + ...els.v1beta1_named_rule_with_operations.rst | 7 + ...ent.models.v1beta1_network_device_data.rst | 7 + ...eta1_node_allocatable_resource_mapping.rst | 7 + ...ls.v1beta1_opaque_device_configuration.rst | 7 + ...s.aio.client.models.v1beta1_param_kind.rst | 7 + ...es.aio.client.models.v1beta1_param_ref.rst | 7 + ...client.models.v1beta1_parent_reference.rst | 7 + ...models.v1beta1_pod_certificate_request.rst | 7 + ...s.v1beta1_pod_certificate_request_list.rst | 7 + ...s.v1beta1_pod_certificate_request_spec.rst | 7 + ...v1beta1_pod_certificate_request_status.rst | 7 + ...o.client.models.v1beta1_resource_claim.rst | 7 + ...eta1_resource_claim_consumer_reference.rst | 7 + ...ent.models.v1beta1_resource_claim_list.rst | 7 + ...ent.models.v1beta1_resource_claim_spec.rst | 7 + ...t.models.v1beta1_resource_claim_status.rst | 7 + ...models.v1beta1_resource_claim_template.rst | 7 + ...s.v1beta1_resource_claim_template_list.rst | 7 + ...s.v1beta1_resource_claim_template_spec.rst | 7 + ...io.client.models.v1beta1_resource_pool.rst | 7 + ...o.client.models.v1beta1_resource_slice.rst | 7 + ...ent.models.v1beta1_resource_slice_list.rst | 7 + ...ent.models.v1beta1_resource_slice_spec.rst | 7 + ...aio.client.models.v1beta1_service_cidr.rst | 7 + ...lient.models.v1beta1_service_cidr_list.rst | 7 + ...lient.models.v1beta1_service_cidr_spec.rst | 7 + ...ent.models.v1beta1_service_cidr_status.rst | 7 + ...dels.v1beta1_storage_version_migration.rst | 7 + ...v1beta1_storage_version_migration_list.rst | 7 + ...v1beta1_storage_version_migration_spec.rst | 7 + ...beta1_storage_version_migration_status.rst | 7 + ...tes.aio.client.models.v1beta1_variable.rst | 7 + ...models.v1beta1_volume_attributes_class.rst | 7 + ...s.v1beta1_volume_attributes_class_list.rst | 7 + ...models.v1beta2_allocated_device_status.rst | 7 + ...lient.models.v1beta2_allocation_result.rst | 7 + ...models.v1beta2_capacity_request_policy.rst | 7 + ....v1beta2_capacity_request_policy_range.rst | 7 + ...t.models.v1beta2_capacity_requirements.rst | 7 + ...ent.models.v1beta2_cel_device_selector.rst | 7 + ...etes.aio.client.models.v1beta2_counter.rst | 7 + ....aio.client.models.v1beta2_counter_set.rst | 7 + ...netes.aio.client.models.v1beta2_device.rst | 7 + ...1beta2_device_allocation_configuration.rst | 7 + ...odels.v1beta2_device_allocation_result.rst | 7 + ...client.models.v1beta2_device_attribute.rst | 7 + ....client.models.v1beta2_device_capacity.rst | 7 + ...aio.client.models.v1beta2_device_claim.rst | 7 + ...els.v1beta2_device_claim_configuration.rst | 7 + ...aio.client.models.v1beta2_device_class.rst | 7 + ...els.v1beta2_device_class_configuration.rst | 7 + ...lient.models.v1beta2_device_class_list.rst | 7 + ...lient.models.v1beta2_device_class_spec.rst | 7 + ...lient.models.v1beta2_device_constraint.rst | 7 + ...els.v1beta2_device_counter_consumption.rst | 7 + ...o.client.models.v1beta2_device_request.rst | 7 + ...beta2_device_request_allocation_result.rst | 7 + ....client.models.v1beta2_device_selector.rst | 7 + ...ient.models.v1beta2_device_sub_request.rst | 7 + ...aio.client.models.v1beta2_device_taint.rst | 7 + ...lient.models.v1beta2_device_taint_rule.rst | 7 + ....models.v1beta2_device_taint_rule_list.rst | 7 + ....models.v1beta2_device_taint_rule_spec.rst | 7 + ...odels.v1beta2_device_taint_rule_status.rst | 7 + ...t.models.v1beta2_device_taint_selector.rst | 7 + ...lient.models.v1beta2_device_toleration.rst | 7 + ...nt.models.v1beta2_exact_device_request.rst | 7 + ...ent.models.v1beta2_network_device_data.rst | 7 + ...eta2_node_allocatable_resource_mapping.rst | 7 + ...ls.v1beta2_opaque_device_configuration.rst | 7 + ...o.client.models.v1beta2_resource_claim.rst | 7 + ...eta2_resource_claim_consumer_reference.rst | 7 + ...ent.models.v1beta2_resource_claim_list.rst | 7 + ...ent.models.v1beta2_resource_claim_spec.rst | 7 + ...t.models.v1beta2_resource_claim_status.rst | 7 + ...models.v1beta2_resource_claim_template.rst | 7 + ...s.v1beta2_resource_claim_template_list.rst | 7 + ...s.v1beta2_resource_claim_template_spec.rst | 7 + ...io.client.models.v1beta2_resource_pool.rst | 7 + ...o.client.models.v1beta2_resource_slice.rst | 7 + ...ent.models.v1beta2_resource_slice_list.rst | 7 + ...ent.models.v1beta2_resource_slice_spec.rst | 7 + ...o.client.models.v2_api_group_discovery.rst | 7 + ...ent.models.v2_api_group_discovery_list.rst | 7 + ...lient.models.v2_api_resource_discovery.rst | 7 + ...nt.models.v2_api_subresource_discovery.rst | 7 + ...client.models.v2_api_version_discovery.rst | 7 + ...ls.v2_container_resource_metric_source.rst | 7 + ...ls.v2_container_resource_metric_status.rst | 7 + ...dels.v2_cross_version_object_reference.rst | 7 + ...lient.models.v2_external_metric_source.rst | 7 + ...lient.models.v2_external_metric_status.rst | 7 + ...nt.models.v2_horizontal_pod_autoscaler.rst | 7 + ....v2_horizontal_pod_autoscaler_behavior.rst | 7 + ...v2_horizontal_pod_autoscaler_condition.rst | 7 + ...dels.v2_horizontal_pod_autoscaler_list.rst | 7 + ...dels.v2_horizontal_pod_autoscaler_spec.rst | 7 + ...ls.v2_horizontal_pod_autoscaler_status.rst | 7 + ...io.client.models.v2_hpa_scaling_policy.rst | 7 + ...aio.client.models.v2_hpa_scaling_rules.rst | 7 + ...aio.client.models.v2_metric_identifier.rst | 7 + ...netes.aio.client.models.v2_metric_spec.rst | 7 + ...tes.aio.client.models.v2_metric_status.rst | 7 + ...tes.aio.client.models.v2_metric_target.rst | 7 + ...o.client.models.v2_metric_value_status.rst | 7 + ....client.models.v2_object_metric_source.rst | 7 + ....client.models.v2_object_metric_status.rst | 7 + ...io.client.models.v2_pods_metric_source.rst | 7 + ...io.client.models.v2_pods_metric_status.rst | 7 + ...lient.models.v2_resource_metric_source.rst | 7 + ...lient.models.v2_resource_metric_status.rst | 7 + ...ent.models.v2beta1_api_group_discovery.rst | 7 + ...odels.v2beta1_api_group_discovery_list.rst | 7 + ....models.v2beta1_api_resource_discovery.rst | 7 + ...dels.v2beta1_api_subresource_discovery.rst | 7 + ...t.models.v2beta1_api_version_discovery.rst | 7 + ...ernetes.aio.client.models.version_info.rst | 7 + doc/source/kubernetes.aio.client.rest.rst | 7 + doc/source/kubernetes.aio.client.rst | 31 + ...kubernetes.aio.config.config_exception.rst | 7 + doc/source/kubernetes.aio.config.dateutil.rst | 7 + .../kubernetes.aio.config.dateutil_test.rst | 7 + .../kubernetes.aio.config.exec_provider.rst | 7 + ...bernetes.aio.config.exec_provider_test.rst | 7 + .../kubernetes.aio.config.google_auth.rst | 7 + ...kubernetes.aio.config.google_auth_test.rst | 7 + ...kubernetes.aio.config.incluster_config.rst | 7 + ...netes.aio.config.incluster_config_test.rst | 7 + .../kubernetes.aio.config.kube_config.rst | 7 + ...kubernetes.aio.config.kube_config_test.rst | 7 + doc/source/kubernetes.aio.config.openid.rst | 7 + .../kubernetes.aio.config.openid_test.rst | 7 + doc/source/kubernetes.aio.config.rst | 30 + doc/source/kubernetes.aio.dynamic.client.rst | 7 + .../kubernetes.aio.dynamic.client_test.rst | 7 + .../kubernetes.aio.dynamic.discovery.rst | 7 + .../kubernetes.aio.dynamic.discovery_test.rst | 7 + .../kubernetes.aio.dynamic.exceptions.rst | 7 + .../kubernetes.aio.dynamic.resource.rst | 7 + doc/source/kubernetes.aio.dynamic.rst | 23 + doc/source/kubernetes.aio.e2e_test.base.rst | 7 + doc/source/kubernetes.aio.e2e_test.rst | 22 + .../kubernetes.aio.e2e_test.test_api.rst | 7 + ...bernetes.aio.e2e_test.test_apply_patch.rst | 7 + .../kubernetes.aio.e2e_test.test_batch.rst | 7 + ...netes.aio.e2e_test.test_dynamic_client.rst | 7 + doc/source/kubernetes.aio.rst | 33 + doc/source/kubernetes.aio.setup.rst | 7 + doc/source/kubernetes.aio.stream.rst | 19 + .../kubernetes.aio.stream.ws_client.rst | 7 + .../kubernetes.aio.stream.ws_client_test.rst | 7 + doc/source/kubernetes.aio.test.rst | 83 ++ ...io.test.test_admissionregistration_api.rst | 7 + ...test.test_admissionregistration_v1_api.rst | 7 + ...est_admissionregistration_v1alpha1_api.rst | 7 + ...test_admissionregistration_v1beta1_api.rst | 7 + ...rnetes.aio.test.test_apiextensions_api.rst | 7 + ...tes.aio.test.test_apiextensions_v1_api.rst | 7 + ...etes.aio.test.test_apiregistration_api.rst | 7 + ...s.aio.test.test_apiregistration_v1_api.rst | 7 + .../kubernetes.aio.test.test_apis_api.rst | 7 + .../kubernetes.aio.test.test_apps_api.rst | 7 + .../kubernetes.aio.test.test_apps_v1_api.rst | 7 + ...netes.aio.test.test_authentication_api.rst | 7 + ...es.aio.test.test_authentication_v1_api.rst | 7 + ...rnetes.aio.test.test_authorization_api.rst | 7 + ...tes.aio.test.test_authorization_v1_api.rst | 7 + ...bernetes.aio.test.test_autoscaling_api.rst | 7 + ...netes.aio.test.test_autoscaling_v1_api.rst | 7 + ...netes.aio.test.test_autoscaling_v2_api.rst | 7 + .../kubernetes.aio.test.test_batch_api.rst | 7 + .../kubernetes.aio.test.test_batch_v1_api.rst | 7 + ...ernetes.aio.test.test_certificates_api.rst | 7 + ...etes.aio.test.test_certificates_v1_api.rst | 7 + ...io.test.test_certificates_v1alpha1_api.rst | 7 + ...aio.test.test_certificates_v1beta1_api.rst | 7 + ...ernetes.aio.test.test_coordination_api.rst | 7 + ...etes.aio.test.test_coordination_v1_api.rst | 7 + ...io.test.test_coordination_v1alpha2_api.rst | 7 + ...aio.test.test_coordination_v1beta1_api.rst | 7 + .../kubernetes.aio.test.test_core_api.rst | 7 + .../kubernetes.aio.test.test_core_v1_api.rst | 7 + ...netes.aio.test.test_custom_objects_api.rst | 7 + ...kubernetes.aio.test.test_discovery_api.rst | 7 + ...ernetes.aio.test.test_discovery_v1_api.rst | 7 + .../kubernetes.aio.test.test_events_api.rst | 7 + ...kubernetes.aio.test.test_events_v1_api.rst | 7 + ...io.test.test_flowcontrol_apiserver_api.rst | 7 + ...test.test_flowcontrol_apiserver_v1_api.rst | 7 + ...kubernetes.aio.test.test_generated_api.rst | 7 + ...s.aio.test.test_internal_apiserver_api.rst | 7 + ...t.test_internal_apiserver_v1alpha1_api.rst | 7 + .../kubernetes.aio.test.test_logs_api.rst | 7 + ...ubernetes.aio.test.test_networking_api.rst | 7 + ...rnetes.aio.test.test_networking_v1_api.rst | 7 + ...s.aio.test.test_networking_v1beta1_api.rst | 7 + .../kubernetes.aio.test.test_node_api.rst | 7 + .../kubernetes.aio.test.test_node_v1_api.rst | 7 + .../kubernetes.aio.test.test_openid_api.rst | 7 + .../kubernetes.aio.test.test_policy_api.rst | 7 + ...kubernetes.aio.test.test_policy_v1_api.rst | 7 + ...s.aio.test.test_rbac_authorization_api.rst | 7 + ...io.test.test_rbac_authorization_v1_api.rst | 7 + .../kubernetes.aio.test.test_resource_api.rst | 7 + ...bernetes.aio.test.test_resource_v1_api.rst | 7 + ...es.aio.test.test_resource_v1alpha3_api.rst | 7 + ...tes.aio.test.test_resource_v1beta1_api.rst | 7 + ...tes.aio.test.test_resource_v1beta2_api.rst | 7 + ...ubernetes.aio.test.test_scheduling_api.rst | 7 + ...rnetes.aio.test.test_scheduling_v1_api.rst | 7 + ....aio.test.test_scheduling_v1alpha2_api.rst | 7 + .../kubernetes.aio.test.test_storage_api.rst | 7 + ...ubernetes.aio.test.test_storage_v1_api.rst | 7 + ...etes.aio.test.test_storage_v1beta1_api.rst | 7 + ...tes.aio.test.test_storagemigration_api.rst | 7 + ...test.test_storagemigration_v1beta1_api.rst | 7 + .../kubernetes.aio.test.test_version_api.rst | 7 + ...ubernetes.aio.test.test_well_known_api.rst | 7 + .../kubernetes.aio.utils.create_from_yaml.rst | 7 + ...rnetes.aio.utils.create_from_yaml_test.rst | 7 + doc/source/kubernetes.aio.utils.retry.rst | 7 + .../kubernetes.aio.utils.retry_test.rst | 7 + doc/source/kubernetes.aio.utils.rst | 21 + doc/source/kubernetes.aio.watch.rst | 19 + doc/source/kubernetes.aio.watch.watch.rst | 7 + .../kubernetes.aio.watch.watch_test.rst | 7 + ...s.client.api.admissionregistration_api.rst | 7 + ...lient.api.admissionregistration_v1_api.rst | 7 + ...api.admissionregistration_v1alpha1_api.rst | 7 + ....api.admissionregistration_v1beta1_api.rst | 7 + ...ubernetes.client.api.apiextensions_api.rst | 7 + ...rnetes.client.api.apiextensions_v1_api.rst | 7 + ...ernetes.client.api.apiregistration_api.rst | 7 + ...etes.client.api.apiregistration_v1_api.rst | 7 + doc/source/kubernetes.client.api.apis_api.rst | 7 + doc/source/kubernetes.client.api.apps_api.rst | 7 + .../kubernetes.client.api.apps_v1_api.rst | 7 + ...bernetes.client.api.authentication_api.rst | 7 + ...netes.client.api.authentication_v1_api.rst | 7 + ...ubernetes.client.api.authorization_api.rst | 7 + ...rnetes.client.api.authorization_v1_api.rst | 7 + .../kubernetes.client.api.autoscaling_api.rst | 7 + ...bernetes.client.api.autoscaling_v1_api.rst | 7 + ...bernetes.client.api.autoscaling_v2_api.rst | 7 + .../kubernetes.client.api.batch_api.rst | 7 + .../kubernetes.client.api.batch_v1_api.rst | 7 + ...kubernetes.client.api.certificates_api.rst | 7 + ...ernetes.client.api.certificates_v1_api.rst | 7 + ...es.client.api.certificates_v1beta1_api.rst | 7 + ...kubernetes.client.api.coordination_api.rst | 7 + ...ernetes.client.api.coordination_v1_api.rst | 7 + ...s.client.api.coordination_v1alpha2_api.rst | 7 + ...es.client.api.coordination_v1beta1_api.rst | 7 + doc/source/kubernetes.client.api.core_api.rst | 7 + .../kubernetes.client.api.core_v1_api.rst | 7 + ...bernetes.client.api.custom_objects_api.rst | 7 + .../kubernetes.client.api.discovery_api.rst | 7 + ...kubernetes.client.api.discovery_v1_api.rst | 7 + .../kubernetes.client.api.events_api.rst | 7 + .../kubernetes.client.api.events_v1_api.rst | 7 + ...s.client.api.flowcontrol_apiserver_api.rst | 7 + ...lient.api.flowcontrol_apiserver_v1_api.rst | 7 + ...etes.client.api.internal_apiserver_api.rst | 7 + ...nt.api.internal_apiserver_v1alpha1_api.rst | 7 + .../kubernetes.client.api.lifecycle_api.rst | 7 + ...etes.client.api.lifecycle_v1alpha1_api.rst | 7 + doc/source/kubernetes.client.api.logs_api.rst | 7 + .../kubernetes.client.api.networking_api.rst | 7 + ...ubernetes.client.api.networking_v1_api.rst | 7 + doc/source/kubernetes.client.api.node_api.rst | 7 + .../kubernetes.client.api.node_v1_api.rst | 7 + .../kubernetes.client.api.openid_api.rst | 7 + .../kubernetes.client.api.policy_api.rst | 7 + .../kubernetes.client.api.policy_v1_api.rst | 7 + ...etes.client.api.rbac_authorization_api.rst | 7 + ...s.client.api.rbac_authorization_v1_api.rst | 7 + .../kubernetes.client.api.resource_api.rst | 7 + .../kubernetes.client.api.resource_v1_api.rst | 7 + ...netes.client.api.resource_v1alpha3_api.rst | 7 + ...rnetes.client.api.resource_v1beta1_api.rst | 7 + ...rnetes.client.api.resource_v1beta2_api.rst | 7 + doc/source/kubernetes.client.api.rst | 83 ++ .../kubernetes.client.api.scheduling_api.rst | 7 + ...ubernetes.client.api.scheduling_v1_api.rst | 7 + ...tes.client.api.scheduling_v1alpha3_api.rst | 7 + ...etes.client.api.scheduling_v1beta1_api.rst | 7 + .../kubernetes.client.api.storage_api.rst | 7 + .../kubernetes.client.api.storage_v1_api.rst | 7 + ...rnetes.client.api.storagemigration_api.rst | 7 + ...tes.client.api.storagemigration_v1_api.rst | 7 + ...lient.api.storagemigration_v1beta1_api.rst | 7 + .../kubernetes.client.api.version_api.rst | 7 + .../kubernetes.client.api.well_known_api.rst | 7 + doc/source/kubernetes.client.api_client.rst | 7 + doc/source/kubernetes.client.api_response.rst | 7 + doc/source/kubernetes.client.apis.rst | 10 + .../kubernetes.client.configuration.rst | 7 + doc/source/kubernetes.client.exceptions.rst | 7 + ...ssionregistration_v1_service_reference.rst | 7 + ...nregistration_v1_webhook_client_config.rst | 7 + ...els.apiextensions_v1_service_reference.rst | 7 + ...apiextensions_v1_webhook_client_config.rst | 7 + ...s.apiregistration_v1_service_reference.rst | 7 + ...models.authentication_v1_token_request.rst | 7 + ...es.client.models.core_v1_endpoint_port.rst | 7 + ...kubernetes.client.models.core_v1_event.rst | 7 + ...netes.client.models.core_v1_event_list.rst | 7 + ...tes.client.models.core_v1_event_series.rst | 7 + ...s.client.models.core_v1_resource_claim.rst | 7 + ...ient.models.discovery_v1_endpoint_port.rst | 7 + ...bernetes.client.models.events_v1_event.rst | 7 + ...tes.client.models.events_v1_event_list.rst | 7 + ...s.client.models.events_v1_event_series.rst | 7 + ...s.client.models.flowcontrol_v1_subject.rst | 7 + ...bernetes.client.models.rbac_v1_subject.rst | 7 + ...ient.models.resource_v1_resource_claim.rst | 7 + doc/source/kubernetes.client.models.rst | 862 ++++++++++++++++++ ...client.models.storage_v1_token_request.rst | 7 + .../kubernetes.client.models.v1_affinity.rst | 7 + ...etes.client.models.v1_aggregation_rule.rst | 7 + ...ient.models.v1_allocated_device_status.rst | 7 + ...tes.client.models.v1_allocation_result.rst | 7 + .../kubernetes.client.models.v1_api_group.rst | 7 + ...rnetes.client.models.v1_api_group_list.rst | 7 + ...bernetes.client.models.v1_api_resource.rst | 7 + ...tes.client.models.v1_api_resource_list.rst | 7 + ...ubernetes.client.models.v1_api_service.rst | 7 + ...client.models.v1_api_service_condition.rst | 7 + ...etes.client.models.v1_api_service_list.rst | 7 + ...etes.client.models.v1_api_service_spec.rst | 7 + ...es.client.models.v1_api_service_status.rst | 7 + ...bernetes.client.models.v1_api_versions.rst | 7 + ...tes.client.models.v1_app_armor_profile.rst | 7 + ...s.client.models.v1_apply_configuration.rst | 7 + ...netes.client.models.v1_attached_volume.rst | 7 + ...etes.client.models.v1_audit_annotation.rst | 7 + ..._aws_elastic_block_store_volume_source.rst | 7 + ...ent.models.v1_azure_disk_volume_source.rst | 7 + ...v1_azure_file_persistent_volume_source.rst | 7 + ...ent.models.v1_azure_file_volume_source.rst | 7 + .../kubernetes.client.models.v1_binding.rst | 7 + ...lient.models.v1_bound_object_reference.rst | 7 + ...bernetes.client.models.v1_capabilities.rst | 7 + ...ient.models.v1_capacity_request_policy.rst | 7 + ...odels.v1_capacity_request_policy_range.rst | 7 + ...client.models.v1_capacity_requirements.rst | 7 + ...s.client.models.v1_cel_device_selector.rst | 7 + ...ls.v1_ceph_fs_persistent_volume_source.rst | 7 + ...client.models.v1_ceph_fs_volume_source.rst | 7 + ....models.v1_certificate_signing_request.rst | 7 + ..._certificate_signing_request_condition.rst | 7 + ...ls.v1_certificate_signing_request_list.rst | 7 + ...ls.v1_certificate_signing_request_spec.rst | 7 + ....v1_certificate_signing_request_status.rst | 7 + ...els.v1_cinder_persistent_volume_source.rst | 7 + ....client.models.v1_cinder_volume_source.rst | 7 + ...etes.client.models.v1_client_ip_config.rst | 7 + ...bernetes.client.models.v1_cluster_role.rst | 7 + ....client.models.v1_cluster_role_binding.rst | 7 + ...nt.models.v1_cluster_role_binding_list.rst | 7 + ...tes.client.models.v1_cluster_role_list.rst | 7 + ....client.models.v1_cluster_trust_bundle.rst | 7 + ...nt.models.v1_cluster_trust_bundle_list.rst | 7 + ...els.v1_cluster_trust_bundle_projection.rst | 7 + ...nt.models.v1_cluster_trust_bundle_spec.rst | 7 + ...s.client.models.v1_component_condition.rst | 7 + ...etes.client.models.v1_component_status.rst | 7 + ...client.models.v1_component_status_list.rst | 7 + .../kubernetes.client.models.v1_condition.rst | 7 + ...kubernetes.client.models.v1_config_map.rst | 7 + ...client.models.v1_config_map_env_source.rst | 7 + ...ient.models.v1_config_map_key_selector.rst | 7 + ...netes.client.models.v1_config_map_list.rst | 7 + ...odels.v1_config_map_node_config_source.rst | 7 + ...client.models.v1_config_map_projection.rst | 7 + ...ent.models.v1_config_map_volume_source.rst | 7 + .../kubernetes.client.models.v1_container.rst | 7 + ...v1_container_extended_resource_request.rst | 7 + ...netes.client.models.v1_container_image.rst | 7 + ...rnetes.client.models.v1_container_port.rst | 7 + ...ient.models.v1_container_resize_policy.rst | 7 + ...lient.models.v1_container_restart_rule.rst | 7 + ...1_container_restart_rule_on_exit_codes.rst | 7 + ...netes.client.models.v1_container_state.rst | 7 + ...ient.models.v1_container_state_running.rst | 7 + ...t.models.v1_container_state_terminated.rst | 7 + ...ient.models.v1_container_state_waiting.rst | 7 + ...etes.client.models.v1_container_status.rst | 7 + ...rnetes.client.models.v1_container_user.rst | 7 + ...s.client.models.v1_controller_revision.rst | 7 + ...ent.models.v1_controller_revision_list.rst | 7 + .../kubernetes.client.models.v1_counter.rst | 7 + ...ubernetes.client.models.v1_counter_set.rst | 7 + .../kubernetes.client.models.v1_cron_job.rst | 7 + ...ernetes.client.models.v1_cron_job_list.rst | 7 + ...ernetes.client.models.v1_cron_job_spec.rst | 7 + ...netes.client.models.v1_cron_job_status.rst | 7 + ...dels.v1_cross_version_object_reference.rst | 7 + ...kubernetes.client.models.v1_csi_driver.rst | 7 + ...netes.client.models.v1_csi_driver_list.rst | 7 + ...netes.client.models.v1_csi_driver_spec.rst | 7 + .../kubernetes.client.models.v1_csi_node.rst | 7 + ...netes.client.models.v1_csi_node_driver.rst | 7 + ...ernetes.client.models.v1_csi_node_list.rst | 7 + ...ernetes.client.models.v1_csi_node_spec.rst | 7 + ...netes.client.models.v1_csi_node_status.rst | 7 + ...models.v1_csi_persistent_volume_source.rst | 7 + ....client.models.v1_csi_storage_capacity.rst | 7 + ...nt.models.v1_csi_storage_capacity_list.rst | 7 + ...tes.client.models.v1_csi_volume_source.rst | 7 + ...s.v1_custom_resource_column_definition.rst | 7 + ...t.models.v1_custom_resource_conversion.rst | 7 + ...t.models.v1_custom_resource_definition.rst | 7 + ...1_custom_resource_definition_condition.rst | 7 + ...els.v1_custom_resource_definition_list.rst | 7 + ...ls.v1_custom_resource_definition_names.rst | 7 + ...els.v1_custom_resource_definition_spec.rst | 7 + ...s.v1_custom_resource_definition_status.rst | 7 + ....v1_custom_resource_definition_version.rst | 7 + ...s.v1_custom_resource_subresource_scale.rst | 7 + ...models.v1_custom_resource_subresources.rst | 7 + ...t.models.v1_custom_resource_validation.rst | 7 + ...netes.client.models.v1_daemon_endpoint.rst | 7 + ...kubernetes.client.models.v1_daemon_set.rst | 7 + ....client.models.v1_daemon_set_condition.rst | 7 + ...netes.client.models.v1_daemon_set_list.rst | 7 + ...netes.client.models.v1_daemon_set_spec.rst | 7 + ...tes.client.models.v1_daemon_set_status.rst | 7 + ...t.models.v1_daemon_set_update_strategy.rst | 7 + ...rnetes.client.models.v1_delete_options.rst | 7 + ...kubernetes.client.models.v1_deployment.rst | 7 + ....client.models.v1_deployment_condition.rst | 7 + ...netes.client.models.v1_deployment_list.rst | 7 + ...netes.client.models.v1_deployment_spec.rst | 7 + ...tes.client.models.v1_deployment_status.rst | 7 + ...s.client.models.v1_deployment_strategy.rst | 7 + .../kubernetes.client.models.v1_device.rst | 7 + ...els.v1_device_allocation_configuration.rst | 7 + ...ent.models.v1_device_allocation_result.rst | 7 + ...etes.client.models.v1_device_attribute.rst | 7 + ...netes.client.models.v1_device_capacity.rst | 7 + ...bernetes.client.models.v1_device_claim.rst | 7 + ...t.models.v1_device_claim_configuration.rst | 7 + ...bernetes.client.models.v1_device_class.rst | 7 + ...t.models.v1_device_class_configuration.rst | 7 + ...tes.client.models.v1_device_class_list.rst | 7 + ...tes.client.models.v1_device_class_spec.rst | 7 + ...tes.client.models.v1_device_constraint.rst | 7 + ...t.models.v1_device_counter_consumption.rst | 7 + ...ent.models.v1_device_derived_attribute.rst | 7 + ...rnetes.client.models.v1_device_request.rst | 7 + ...ls.v1_device_request_allocation_result.rst | 7 + ...netes.client.models.v1_device_selector.rst | 7 + ...es.client.models.v1_device_sub_request.rst | 7 + ...bernetes.client.models.v1_device_taint.rst | 7 + ...tes.client.models.v1_device_taint_rule.rst | 7 + ...lient.models.v1_device_taint_rule_list.rst | 7 + ...lient.models.v1_device_taint_rule_spec.rst | 7 + ...ent.models.v1_device_taint_rule_status.rst | 7 + ...client.models.v1_device_taint_selector.rst | 7 + ...tes.client.models.v1_device_toleration.rst | 7 + ...ient.models.v1_downward_api_projection.rst | 7 + ...ent.models.v1_downward_api_volume_file.rst | 7 + ...t.models.v1_downward_api_volume_source.rst | 7 + ...ient.models.v1_empty_dir_volume_source.rst | 7 + .../kubernetes.client.models.v1_endpoint.rst | 7 + ...etes.client.models.v1_endpoint_address.rst | 7 + ...s.client.models.v1_endpoint_conditions.rst | 7 + ...rnetes.client.models.v1_endpoint_hints.rst | 7 + ...rnetes.client.models.v1_endpoint_slice.rst | 7 + ...s.client.models.v1_endpoint_slice_list.rst | 7 + ...netes.client.models.v1_endpoint_subset.rst | 7 + .../kubernetes.client.models.v1_endpoints.rst | 7 + ...rnetes.client.models.v1_endpoints_list.rst | 7 + ...netes.client.models.v1_env_from_source.rst | 7 + .../kubernetes.client.models.v1_env_var.rst | 7 + ...rnetes.client.models.v1_env_var_source.rst | 7 + ...s.client.models.v1_ephemeral_container.rst | 7 + ...ient.models.v1_ephemeral_volume_source.rst | 7 + ...bernetes.client.models.v1_event_source.rst | 7 + .../kubernetes.client.models.v1_eviction.rst | 7 + ...es.client.models.v1_eviction_responder.rst | 7 + ....client.models.v1_exact_device_request.rst | 7 + ...ubernetes.client.models.v1_exec_action.rst | 7 + ...v1_exempt_priority_level_configuration.rst | 7 + ...es.client.models.v1_expression_warning.rst | 7 + ...lient.models.v1_external_documentation.rst | 7 + ...etes.client.models.v1_fc_volume_source.rst | 7 + ...nt.models.v1_field_selector_attributes.rst | 7 + ...t.models.v1_field_selector_requirement.rst | 7 + ...tes.client.models.v1_file_key_selector.rst | 7 + ...odels.v1_flex_persistent_volume_source.rst | 7 + ...es.client.models.v1_flex_volume_source.rst | 7 + ...client.models.v1_flocker_volume_source.rst | 7 + ...nt.models.v1_flow_distinguisher_method.rst | 7 + ...ubernetes.client.models.v1_flow_schema.rst | 7 + ...client.models.v1_flow_schema_condition.rst | 7 + ...etes.client.models.v1_flow_schema_list.rst | 7 + ...etes.client.models.v1_flow_schema_spec.rst | 7 + ...es.client.models.v1_flow_schema_status.rst | 7 + .../kubernetes.client.models.v1_for_node.rst | 7 + .../kubernetes.client.models.v1_for_zone.rst | 7 + ...s.v1_gce_persistent_disk_volume_source.rst | 7 + ...lient.models.v1_git_repo_volume_source.rst | 7 + ....v1_glusterfs_persistent_volume_source.rst | 7 + ...ient.models.v1_glusterfs_volume_source.rst | 7 + ...rnetes.client.models.v1_group_resource.rst | 7 + ...ernetes.client.models.v1_group_subject.rst | 7 + ....models.v1_group_version_for_discovery.rst | 7 + ...es.client.models.v1_group_version_kind.rst | 7 + ...ubernetes.client.models.v1_grpc_action.rst | 7 + ...nt.models.v1_horizontal_pod_autoscaler.rst | 7 + ...dels.v1_horizontal_pod_autoscaler_list.rst | 7 + ...dels.v1_horizontal_pod_autoscaler_spec.rst | 7 + ...ls.v1_horizontal_pod_autoscaler_status.rst | 7 + ...kubernetes.client.models.v1_host_alias.rst | 7 + .../kubernetes.client.models.v1_host_ip.rst | 7 + ...ient.models.v1_host_path_volume_source.rst | 7 + ...netes.client.models.v1_http_get_action.rst | 7 + ...ubernetes.client.models.v1_http_header.rst | 7 + ...tes.client.models.v1_http_ingress_path.rst | 7 + ...ient.models.v1_http_ingress_rule_value.rst | 7 + ...s.client.models.v1_image_volume_source.rst | 7 + ...s.client.models.v1_image_volume_status.rst | 7 + .../kubernetes.client.models.v1_ingress.rst | 7 + ...netes.client.models.v1_ingress_backend.rst | 7 + ...ernetes.client.models.v1_ingress_class.rst | 7 + ...es.client.models.v1_ingress_class_list.rst | 7 + ....v1_ingress_class_parameters_reference.rst | 7 + ...es.client.models.v1_ingress_class_spec.rst | 7 + ...bernetes.client.models.v1_ingress_list.rst | 7 + ...odels.v1_ingress_load_balancer_ingress.rst | 7 + ...models.v1_ingress_load_balancer_status.rst | 7 + ...s.client.models.v1_ingress_port_status.rst | 7 + ...bernetes.client.models.v1_ingress_rule.rst | 7 + ...ient.models.v1_ingress_service_backend.rst | 7 + ...bernetes.client.models.v1_ingress_spec.rst | 7 + ...rnetes.client.models.v1_ingress_status.rst | 7 + ...ubernetes.client.models.v1_ingress_tls.rst | 7 + ...kubernetes.client.models.v1_ip_address.rst | 7 + ...netes.client.models.v1_ip_address_list.rst | 7 + ...netes.client.models.v1_ip_address_spec.rst | 7 + .../kubernetes.client.models.v1_ip_block.rst | 7 + ...dels.v1_iscsi_persistent_volume_source.rst | 7 + ...s.client.models.v1_iscsi_volume_source.rst | 7 + .../kubernetes.client.models.v1_job.rst | 7 + ...ernetes.client.models.v1_job_condition.rst | 7 + .../kubernetes.client.models.v1_job_list.rst | 7 + ...models.v1_job_scheduling_configuration.rst | 7 + .../kubernetes.client.models.v1_job_spec.rst | 7 + ...kubernetes.client.models.v1_job_status.rst | 7 + ...tes.client.models.v1_job_template_spec.rst | 7 + ...kubernetes.client.models.v1_json_patch.rst | 7 + ...tes.client.models.v1_json_schema_props.rst | 7 + ...ubernetes.client.models.v1_key_to_path.rst | 7 + ...rnetes.client.models.v1_label_selector.rst | 7 + ...nt.models.v1_label_selector_attributes.rst | 7 + ...t.models.v1_label_selector_requirement.rst | 7 + .../kubernetes.client.models.v1_lease.rst | 7 + ...kubernetes.client.models.v1_lease_list.rst | 7 + ...kubernetes.client.models.v1_lease_spec.rst | 7 + .../kubernetes.client.models.v1_lifecycle.rst | 7 + ...tes.client.models.v1_lifecycle_handler.rst | 7 + ...ubernetes.client.models.v1_limit_range.rst | 7 + ...etes.client.models.v1_limit_range_item.rst | 7 + ...etes.client.models.v1_limit_range_list.rst | 7 + ...etes.client.models.v1_limit_range_spec.rst | 7 + ...rnetes.client.models.v1_limit_response.rst | 7 + ...1_limited_priority_level_configuration.rst | 7 + ....client.models.v1_linux_container_user.rst | 7 + .../kubernetes.client.models.v1_list_meta.rst | 7 + ...client.models.v1_load_balancer_ingress.rst | 7 + ....client.models.v1_load_balancer_status.rst | 7 + ...lient.models.v1_local_object_reference.rst | 7 + ....models.v1_local_subject_access_review.rst | 7 + ...s.client.models.v1_local_volume_source.rst | 7 + ....client.models.v1_managed_fields_entry.rst | 7 + ...netes.client.models.v1_match_condition.rst | 7 + ...netes.client.models.v1_match_resources.rst | 7 + ....client.models.v1_modify_volume_status.rst | 7 + ...nt.models.v1_mutating_admission_policy.rst | 7 + ...s.v1_mutating_admission_policy_binding.rst | 7 + ...mutating_admission_policy_binding_list.rst | 7 + ...mutating_admission_policy_binding_spec.rst | 7 + ...dels.v1_mutating_admission_policy_list.rst | 7 + ...dels.v1_mutating_admission_policy_spec.rst | 7 + ...etes.client.models.v1_mutating_webhook.rst | 7 + ...dels.v1_mutating_webhook_configuration.rst | 7 + ...v1_mutating_webhook_configuration_list.rst | 7 + .../kubernetes.client.models.v1_mutation.rst | 7 + ...t.models.v1_named_rule_with_operations.rst | 7 + .../kubernetes.client.models.v1_namespace.rst | 7 + ...s.client.models.v1_namespace_condition.rst | 7 + ...rnetes.client.models.v1_namespace_list.rst | 7 + ...rnetes.client.models.v1_namespace_spec.rst | 7 + ...etes.client.models.v1_namespace_status.rst | 7 + ...s.client.models.v1_network_device_data.rst | 7 + ...rnetes.client.models.v1_network_policy.rst | 7 + ...t.models.v1_network_policy_egress_rule.rst | 7 + ....models.v1_network_policy_ingress_rule.rst | 7 + ...s.client.models.v1_network_policy_list.rst | 7 + ...s.client.models.v1_network_policy_peer.rst | 7 + ...s.client.models.v1_network_policy_port.rst | 7 + ...s.client.models.v1_network_policy_spec.rst | 7 + ...tes.client.models.v1_nfs_volume_source.rst | 7 + .../kubernetes.client.models.v1_node.rst | 7 + ...bernetes.client.models.v1_node_address.rst | 7 + ...ernetes.client.models.v1_node_affinity.rst | 7 + ...s.v1_node_allocatable_mapped_resources.rst | 7 + ...ent.models.v1_node_allocatable_mapping.rst | 7 + ...nt.models.v1_node_allocatable_overhead.rst | 7 + ...v1_node_allocatable_overhead_resources.rst | 7 + ...nt.models.v1_node_allocatable_resource.rst | 7 + ...node_allocatable_resource_claim_status.rst | 7 + ...rnetes.client.models.v1_node_condition.rst | 7 + ...es.client.models.v1_node_config_source.rst | 7 + ...es.client.models.v1_node_config_status.rst | 7 + ...client.models.v1_node_daemon_endpoints.rst | 7 + ...ernetes.client.models.v1_node_features.rst | 7 + .../kubernetes.client.models.v1_node_list.rst | 7 + ...t.models.v1_node_pod_preemption_policy.rst | 7 + ....client.models.v1_node_runtime_handler.rst | 7 + ...odels.v1_node_runtime_handler_features.rst | 7 + ...ernetes.client.models.v1_node_selector.rst | 7 + ...nt.models.v1_node_selector_requirement.rst | 7 + ...es.client.models.v1_node_selector_term.rst | 7 + .../kubernetes.client.models.v1_node_spec.rst | 7 + ...ubernetes.client.models.v1_node_status.rst | 7 + ...etes.client.models.v1_node_swap_status.rst | 7 + ...etes.client.models.v1_node_system_info.rst | 7 + ...ient.models.v1_non_resource_attributes.rst | 7 + ...ent.models.v1_non_resource_policy_rule.rst | 7 + ...tes.client.models.v1_non_resource_rule.rst | 7 + ...client.models.v1_object_field_selector.rst | 7 + ...ubernetes.client.models.v1_object_meta.rst | 7 + ...etes.client.models.v1_object_reference.rst | 7 + ....models.v1_opaque_device_configuration.rst | 7 + .../kubernetes.client.models.v1_overhead.rst | 7 + ...netes.client.models.v1_owner_reference.rst | 7 + ...kubernetes.client.models.v1_param_kind.rst | 7 + .../kubernetes.client.models.v1_param_ref.rst | 7 + ...etes.client.models.v1_parent_reference.rst | 7 + ...tes.client.models.v1_persistent_volume.rst | 7 + ...ient.models.v1_persistent_volume_claim.rst | 7 + ...s.v1_persistent_volume_claim_condition.rst | 7 + ...models.v1_persistent_volume_claim_list.rst | 7 + ...models.v1_persistent_volume_claim_spec.rst | 7 + ...dels.v1_persistent_volume_claim_status.rst | 7 + ...ls.v1_persistent_volume_claim_template.rst | 7 + ..._persistent_volume_claim_volume_source.rst | 7 + ...lient.models.v1_persistent_volume_list.rst | 7 + ...lient.models.v1_persistent_volume_spec.rst | 7 + ...ent.models.v1_persistent_volume_status.rst | 7 + ...1_photon_persistent_disk_volume_source.rst | 7 + .../kubernetes.client.models.v1_pod.rst | 7 + ...bernetes.client.models.v1_pod_affinity.rst | 7 + ...tes.client.models.v1_pod_affinity_term.rst | 7 + ...tes.client.models.v1_pod_anti_affinity.rst | 7 + ...t.models.v1_pod_certificate_projection.rst | 7 + ...ient.models.v1_pod_certificate_request.rst | 7 + ...models.v1_pod_certificate_request_list.rst | 7 + ...models.v1_pod_certificate_request_spec.rst | 7 + ...dels.v1_pod_certificate_request_status.rst | 7 + ...ernetes.client.models.v1_pod_condition.rst | 7 + ...client.models.v1_pod_disruption_budget.rst | 7 + ...t.models.v1_pod_disruption_budget_list.rst | 7 + ...t.models.v1_pod_disruption_budget_spec.rst | 7 + ...models.v1_pod_disruption_budget_status.rst | 7 + ...rnetes.client.models.v1_pod_dns_config.rst | 7 + ...client.models.v1_pod_dns_config_option.rst | 7 + ....v1_pod_extended_resource_claim_status.rst | 7 + ...es.client.models.v1_pod_failure_policy.rst | 7 + ...ilure_policy_on_exit_codes_requirement.rst | 7 + ...ilure_policy_on_pod_conditions_pattern.rst | 7 + ...ient.models.v1_pod_failure_policy_rule.rst | 7 + .../kubernetes.client.models.v1_pod_ip.rst | 7 + .../kubernetes.client.models.v1_pod_list.rst | 7 + .../kubernetes.client.models.v1_pod_os.rst | 7 + ...es.client.models.v1_pod_readiness_gate.rst | 7 + ...es.client.models.v1_pod_resource_claim.rst | 7 + ...nt.models.v1_pod_resource_claim_status.rst | 7 + ...s.client.models.v1_pod_scheduling_gate.rst | 7 + ....client.models.v1_pod_scheduling_group.rst | 7 + ....client.models.v1_pod_security_context.rst | 7 + .../kubernetes.client.models.v1_pod_spec.rst | 7 + ...kubernetes.client.models.v1_pod_status.rst | 7 + ...bernetes.client.models.v1_pod_template.rst | 7 + ...tes.client.models.v1_pod_template_list.rst | 7 + ...tes.client.models.v1_pod_template_spec.rst | 7 + ...tes.client.models.v1_pod_volume_health.rst | 7 + ...ubernetes.client.models.v1_policy_rule.rst | 7 + ...t.models.v1_policy_rules_with_subjects.rst | 7 + ...ubernetes.client.models.v1_port_status.rst | 7 + ...lient.models.v1_portworx_volume_source.rst | 7 + ...ernetes.client.models.v1_preconditions.rst | 7 + ...nt.models.v1_preferred_scheduling_term.rst | 7 + ...rnetes.client.models.v1_priority_class.rst | 7 + ...s.client.models.v1_priority_class_list.rst | 7 + ...models.v1_priority_level_configuration.rst | 7 + ...priority_level_configuration_condition.rst | 7 + ...s.v1_priority_level_configuration_list.rst | 7 + ...priority_level_configuration_reference.rst | 7 + ...s.v1_priority_level_configuration_spec.rst | 7 + ...v1_priority_level_configuration_status.rst | 7 + .../kubernetes.client.models.v1_probe.rst | 7 + ...ient.models.v1_projected_volume_source.rst | 7 + ...client.models.v1_queuing_configuration.rst | 7 + ...client.models.v1_quobyte_volume_source.rst | 7 + ...models.v1_rbd_persistent_volume_source.rst | 7 + ...tes.client.models.v1_rbd_volume_source.rst | 7 + ...ubernetes.client.models.v1_replica_set.rst | 7 + ...client.models.v1_replica_set_condition.rst | 7 + ...etes.client.models.v1_replica_set_list.rst | 7 + ...etes.client.models.v1_replica_set_spec.rst | 7 + ...es.client.models.v1_replica_set_status.rst | 7 + ...lient.models.v1_replication_controller.rst | 7 + ...ls.v1_replication_controller_condition.rst | 7 + ....models.v1_replication_controller_list.rst | 7 + ....models.v1_replication_controller_spec.rst | 7 + ...odels.v1_replication_controller_status.rst | 7 + ...s.client.models.v1_resource_attributes.rst | 7 + ...s.v1_resource_claim_consumer_reference.rst | 7 + ...s.client.models.v1_resource_claim_list.rst | 7 + ...s.client.models.v1_resource_claim_spec.rst | 7 + ...client.models.v1_resource_claim_status.rst | 7 + ...ient.models.v1_resource_claim_template.rst | 7 + ...models.v1_resource_claim_template_list.rst | 7 + ...models.v1_resource_claim_template_spec.rst | 7 + ...ient.models.v1_resource_field_selector.rst | 7 + ...netes.client.models.v1_resource_health.rst | 7 + ....client.models.v1_resource_policy_rule.rst | 7 + ...ernetes.client.models.v1_resource_pool.rst | 7 + ...rnetes.client.models.v1_resource_quota.rst | 7 + ...s.client.models.v1_resource_quota_list.rst | 7 + ...s.client.models.v1_resource_quota_spec.rst | 7 + ...client.models.v1_resource_quota_status.rst | 7 + ...client.models.v1_resource_requirements.rst | 7 + ...ernetes.client.models.v1_resource_rule.rst | 7 + ...rnetes.client.models.v1_resource_slice.rst | 7 + ...s.client.models.v1_resource_slice_list.rst | 7 + ...s.client.models.v1_resource_slice_spec.rst | 7 + ...netes.client.models.v1_resource_status.rst | 7 + .../kubernetes.client.models.v1_role.rst | 7 + ...bernetes.client.models.v1_role_binding.rst | 7 + ...tes.client.models.v1_role_binding_list.rst | 7 + .../kubernetes.client.models.v1_role_list.rst | 7 + .../kubernetes.client.models.v1_role_ref.rst | 7 + ...nt.models.v1_rolling_update_daemon_set.rst | 7 + ...nt.models.v1_rolling_update_deployment.rst | 7 + ...1_rolling_update_stateful_set_strategy.rst | 7 + ....client.models.v1_rule_with_operations.rst | 7 + ...ernetes.client.models.v1_runtime_class.rst | 7 + ...es.client.models.v1_runtime_class_list.rst | 7 + .../kubernetes.client.models.v1_scale.rst | 7 + ...s.v1_scale_io_persistent_volume_source.rst | 7 + ...lient.models.v1_scale_io_volume_source.rst | 7 + ...kubernetes.client.models.v1_scale_spec.rst | 7 + ...bernetes.client.models.v1_scale_status.rst | 7 + ...kubernetes.client.models.v1_scheduling.rst | 7 + ...rnetes.client.models.v1_scope_selector.rst | 7 + ...1_scoped_resource_selector_requirement.rst | 7 + ...etes.client.models.v1_se_linux_options.rst | 7 + ...netes.client.models.v1_seccomp_profile.rst | 7 + .../kubernetes.client.models.v1_secret.rst | 7 + ...tes.client.models.v1_secret_env_source.rst | 7 + ...s.client.models.v1_secret_key_selector.rst | 7 + ...ubernetes.client.models.v1_secret_list.rst | 7 + ...tes.client.models.v1_secret_projection.rst | 7 + ...etes.client.models.v1_secret_reference.rst | 7 + ....client.models.v1_secret_volume_source.rst | 7 + ...etes.client.models.v1_security_context.rst | 7 + ...etes.client.models.v1_selectable_field.rst | 7 + ...t.models.v1_self_subject_access_review.rst | 7 + ...els.v1_self_subject_access_review_spec.rst | 7 + ...s.client.models.v1_self_subject_review.rst | 7 + ...t.models.v1_self_subject_review_status.rst | 7 + ...nt.models.v1_self_subject_rules_review.rst | 7 + ...dels.v1_self_subject_rules_review_spec.rst | 7 + ...odels.v1_server_address_by_client_cidr.rst | 7 + .../kubernetes.client.models.v1_service.rst | 7 + ...netes.client.models.v1_service_account.rst | 7 + ....client.models.v1_service_account_list.rst | 7 + ...ient.models.v1_service_account_subject.rst | 7 + ...ls.v1_service_account_token_projection.rst | 7 + ....client.models.v1_service_backend_port.rst | 7 + ...bernetes.client.models.v1_service_cidr.rst | 7 + ...tes.client.models.v1_service_cidr_list.rst | 7 + ...tes.client.models.v1_service_cidr_spec.rst | 7 + ...s.client.models.v1_service_cidr_status.rst | 7 + ...bernetes.client.models.v1_service_list.rst | 7 + ...bernetes.client.models.v1_service_port.rst | 7 + ...bernetes.client.models.v1_service_spec.rst | 7 + ...rnetes.client.models.v1_service_status.rst | 7 + ...ient.models.v1_session_affinity_config.rst | 7 + ...kubernetes.client.models.v1_shard_info.rst | 7 + ...bernetes.client.models.v1_sleep_action.rst | 7 + ...bernetes.client.models.v1_stateful_set.rst | 7 + ...lient.models.v1_stateful_set_condition.rst | 7 + ...tes.client.models.v1_stateful_set_list.rst | 7 + ...client.models.v1_stateful_set_ordinals.rst | 7 + ...rsistent_volume_claim_retention_policy.rst | 7 + ...tes.client.models.v1_stateful_set_spec.rst | 7 + ...s.client.models.v1_stateful_set_status.rst | 7 + ...models.v1_stateful_set_update_strategy.rst | 7 + .../kubernetes.client.models.v1_status.rst | 7 + ...bernetes.client.models.v1_status_cause.rst | 7 + ...rnetes.client.models.v1_status_details.rst | 7 + ...ernetes.client.models.v1_storage_class.rst | 7 + ...es.client.models.v1_storage_class_list.rst | 7 + ...rnetes.client.models.v1_storage_health.rst | 7 + ...ent.models.v1_storage_health_condition.rst | 7 + ...v1_storage_os_persistent_volume_source.rst | 7 + ...ent.models.v1_storage_os_volume_source.rst | 7 + ...nt.models.v1_storage_version_migration.rst | 7 + ...dels.v1_storage_version_migration_list.rst | 7 + ...dels.v1_storage_version_migration_spec.rst | 7 + ...ls.v1_storage_version_migration_status.rst | 7 + ...client.models.v1_subject_access_review.rst | 7 + ...t.models.v1_subject_access_review_spec.rst | 7 + ...models.v1_subject_access_review_status.rst | 7 + ....models.v1_subject_rules_review_status.rst | 7 + ...rnetes.client.models.v1_success_policy.rst | 7 + ...s.client.models.v1_success_policy_rule.rst | 7 + .../kubernetes.client.models.v1_sysctl.rst | 7 + .../kubernetes.client.models.v1_taint.rst | 7 + ...tes.client.models.v1_tcp_socket_action.rst | 7 + ...es.client.models.v1_token_request_spec.rst | 7 + ....client.models.v1_token_request_status.rst | 7 + ...bernetes.client.models.v1_token_review.rst | 7 + ...tes.client.models.v1_token_review_spec.rst | 7 + ...s.client.models.v1_token_review_status.rst | 7 + ...kubernetes.client.models.v1_toleration.rst | 7 + ...v1_topology_selector_label_requirement.rst | 7 + ...lient.models.v1_topology_selector_term.rst | 7 + ...t.models.v1_topology_spread_constraint.rst | 7 + ...ernetes.client.models.v1_type_checking.rst | 7 + ...models.v1_typed_local_object_reference.rst | 7 + ...lient.models.v1_typed_object_reference.rst | 7 + ...nt.models.v1_uncounted_terminated_pods.rst | 7 + .../kubernetes.client.models.v1_user_info.rst | 7 + ...bernetes.client.models.v1_user_subject.rst | 7 + ....models.v1_validating_admission_policy.rst | 7 + ...v1_validating_admission_policy_binding.rst | 7 + ...lidating_admission_policy_binding_list.rst | 7 + ...lidating_admission_policy_binding_spec.rst | 7 + ...ls.v1_validating_admission_policy_list.rst | 7 + ...ls.v1_validating_admission_policy_spec.rst | 7 + ....v1_validating_admission_policy_status.rst | 7 + ...es.client.models.v1_validating_webhook.rst | 7 + ...ls.v1_validating_webhook_configuration.rst | 7 + ..._validating_webhook_configuration_list.rst | 7 + ...kubernetes.client.models.v1_validation.rst | 7 + ...netes.client.models.v1_validation_rule.rst | 7 + .../kubernetes.client.models.v1_variable.rst | 7 + .../kubernetes.client.models.v1_volume.rst | 7 + ...tes.client.models.v1_volume_attachment.rst | 7 + ...lient.models.v1_volume_attachment_list.rst | 7 + ...ent.models.v1_volume_attachment_source.rst | 7 + ...lient.models.v1_volume_attachment_spec.rst | 7 + ...ent.models.v1_volume_attachment_status.rst | 7 + ...ient.models.v1_volume_attributes_class.rst | 7 + ...models.v1_volume_attributes_class_list.rst | 7 + ...ernetes.client.models.v1_volume_device.rst | 7 + ...bernetes.client.models.v1_volume_error.rst | 7 + ...ient.models.v1_volume_health_condition.rst | 7 + ....client.models.v1_volume_health_status.rst | 7 + ...bernetes.client.models.v1_volume_mount.rst | 7 + ...s.client.models.v1_volume_mount_status.rst | 7 + ....client.models.v1_volume_node_affinity.rst | 7 + ...client.models.v1_volume_node_resources.rst | 7 + ...tes.client.models.v1_volume_projection.rst | 7 + ...models.v1_volume_resource_requirements.rst | 7 + ...ernetes.client.models.v1_volume_status.rst | 7 + ....v1_vsphere_virtual_disk_volume_source.rst | 7 + ...ubernetes.client.models.v1_watch_event.rst | 7 + ...es.client.models.v1_webhook_conversion.rst | 7 + ...t.models.v1_weighted_pod_affinity_term.rst | 7 + ...ls.v1_windows_security_context_options.rst | 7 + ...nt.models.v1alpha1_apply_configuration.rst | 7 + ...rnetes.client.models.v1alpha1_eviction.rst | 7 + ...s.client.models.v1alpha1_eviction_list.rst | 7 + ...models.v1alpha1_eviction_pod_reference.rst | 7 + ...lient.models.v1alpha1_eviction_request.rst | 7 + ....models.v1alpha1_eviction_request_list.rst | 7 + ...1alpha1_eviction_request_pod_reference.rst | 7 + ....models.v1alpha1_eviction_request_spec.rst | 7 + ...odels.v1alpha1_eviction_request_status.rst | 7 + ...odels.v1alpha1_eviction_request_target.rst | 7 + ...s.client.models.v1alpha1_eviction_spec.rst | 7 + ...client.models.v1alpha1_eviction_status.rst | 7 + ...client.models.v1alpha1_eviction_target.rst | 7 + ...etes.client.models.v1alpha1_json_patch.rst | 7 + ...client.models.v1alpha1_match_condition.rst | 7 + ...client.models.v1alpha1_match_resources.rst | 7 + ...els.v1alpha1_mutating_admission_policy.rst | 7 + ...pha1_mutating_admission_policy_binding.rst | 7 + ...mutating_admission_policy_binding_list.rst | 7 + ...mutating_admission_policy_binding_spec.rst | 7 + ...1alpha1_mutating_admission_policy_list.rst | 7 + ...1alpha1_mutating_admission_policy_spec.rst | 7 + ...rnetes.client.models.v1alpha1_mutation.rst | 7 + ...ls.v1alpha1_named_rule_with_operations.rst | 7 + ...etes.client.models.v1alpha1_param_kind.rst | 7 + ...netes.client.models.v1alpha1_param_ref.rst | 7 + ...netes.client.models.v1alpha1_requester.rst | 7 + ...lient.models.v1alpha1_responder_status.rst | 7 + ...models.v1alpha1_server_storage_version.rst | 7 + ...client.models.v1alpha1_storage_version.rst | 7 + ...els.v1alpha1_storage_version_condition.rst | 7 + ...t.models.v1alpha1_storage_version_list.rst | 7 + ...models.v1alpha1_storage_version_status.rst | 7 + ...lient.models.v1alpha1_target_responder.rst | 7 + ...rnetes.client.models.v1alpha1_variable.rst | 7 + ...client.models.v1alpha2_lease_candidate.rst | 7 + ...t.models.v1alpha2_lease_candidate_list.rst | 7 + ...t.models.v1alpha2_lease_candidate_spec.rst | 7 + ...els.v1alpha3_composite_disruption_mode.rst | 7 + ...lpha3_composite_gang_scheduling_policy.rst | 7 + ...nt.models.v1alpha3_composite_pod_group.rst | 7 + ...dels.v1alpha3_composite_pod_group_list.rst | 7 + ...osite_pod_group_scheduling_constraints.rst | 7 + ..._composite_pod_group_scheduling_policy.rst | 7 + ...dels.v1alpha3_composite_pod_group_spec.rst | 7 + ...ls.v1alpha3_composite_pod_group_status.rst | 7 + ....v1alpha3_composite_pod_group_template.rst | 7 + ...es.client.models.v1alpha3_device_taint.rst | 7 + ...ient.models.v1alpha3_device_taint_rule.rst | 7 + ...models.v1alpha3_device_taint_rule_list.rst | 7 + ...models.v1alpha3_device_taint_rule_spec.rst | 7 + ...dels.v1alpha3_device_taint_rule_status.rst | 7 + ....models.v1alpha3_device_taint_selector.rst | 7 + ...client.models.v1alpha3_disruption_mode.rst | 7 + ...models.v1alpha3_gang_scheduling_policy.rst | 7 + ....models.v1alpha3_partition_type_status.rst | 7 + ...netes.client.models.v1alpha3_pod_group.rst | 7 + ....client.models.v1alpha3_pod_group_list.rst | 7 + ...dels.v1alpha3_pod_group_resource_claim.rst | 7 + ...alpha3_pod_group_resource_claim_status.rst | 7 + ...lpha3_pod_group_scheduling_constraints.rst | 7 + ...s.v1alpha3_pod_group_scheduling_policy.rst | 7 + ....client.models.v1alpha3_pod_group_spec.rst | 7 + ...lient.models.v1alpha3_pod_group_status.rst | 7 + ...ent.models.v1alpha3_pod_group_template.rst | 7 + ...tes.client.models.v1alpha3_pool_status.rst | 7 + ....v1alpha3_resource_pool_status_request.rst | 7 + ...pha3_resource_pool_status_request_list.rst | 7 + ...pha3_resource_pool_status_request_spec.rst | 7 + ...a3_resource_pool_status_request_status.rst | 7 + ...els.v1alpha3_shareable_capacity_status.rst | 7 + ...dels.v1alpha3_shareable_summary_status.rst | 7 + ...nt.models.v1alpha3_topology_constraint.rst | 7 + ....v1alpha3_typed_local_object_reference.rst | 7 + ...rnetes.client.models.v1alpha3_workload.rst | 7 + ...s.client.models.v1alpha3_workload_list.rst | 7 + ...ha3_workload_pod_group_disruption_mode.rst | 7 + ...kload_pod_group_gang_scheduling_policy.rst | 7 + ...pha3_workload_pod_group_resource_claim.rst | 7 + ...kload_pod_group_scheduling_constraints.rst | 7 + ...3_workload_pod_group_scheduling_policy.rst | 7 + ...ent.models.v1alpha3_workload_reference.rst | 7 + ...s.client.models.v1alpha3_workload_spec.rst | 7 + ...models.v1beta1_allocated_device_status.rst | 7 + ...lient.models.v1beta1_allocation_result.rst | 7 + ...ent.models.v1beta1_apply_configuration.rst | 7 + ...tes.client.models.v1beta1_basic_device.rst | 7 + ...models.v1beta1_capacity_request_policy.rst | 7 + ....v1beta1_capacity_request_policy_range.rst | 7 + ...t.models.v1beta1_capacity_requirements.rst | 7 + ...ent.models.v1beta1_cel_device_selector.rst | 7 + ...nt.models.v1beta1_cluster_trust_bundle.rst | 7 + ...dels.v1beta1_cluster_trust_bundle_list.rst | 7 + ...dels.v1beta1_cluster_trust_bundle_spec.rst | 7 + ...dels.v1beta1_composite_disruption_mode.rst | 7 + ...beta1_composite_gang_scheduling_policy.rst | 7 + ...osite_pod_group_scheduling_constraints.rst | 7 + ..._composite_pod_group_scheduling_policy.rst | 7 + ...s.v1beta1_composite_pod_group_template.rst | 7 + ...bernetes.client.models.v1beta1_counter.rst | 7 + ...etes.client.models.v1beta1_counter_set.rst | 7 + ...ubernetes.client.models.v1beta1_device.rst | 7 + ...1beta1_device_allocation_configuration.rst | 7 + ...odels.v1beta1_device_allocation_result.rst | 7 + ...client.models.v1beta1_device_attribute.rst | 7 + ....client.models.v1beta1_device_capacity.rst | 7 + ...tes.client.models.v1beta1_device_claim.rst | 7 + ...els.v1beta1_device_claim_configuration.rst | 7 + ...tes.client.models.v1beta1_device_class.rst | 7 + ...els.v1beta1_device_class_configuration.rst | 7 + ...lient.models.v1beta1_device_class_list.rst | 7 + ...lient.models.v1beta1_device_class_spec.rst | 7 + ...lient.models.v1beta1_device_constraint.rst | 7 + ...els.v1beta1_device_counter_consumption.rst | 7 + ...odels.v1beta1_device_derived_attribute.rst | 7 + ...s.client.models.v1beta1_device_request.rst | 7 + ...beta1_device_request_allocation_result.rst | 7 + ....client.models.v1beta1_device_selector.rst | 7 + ...ient.models.v1beta1_device_sub_request.rst | 7 + ...tes.client.models.v1beta1_device_taint.rst | 7 + ...lient.models.v1beta1_device_toleration.rst | 7 + ....client.models.v1beta1_disruption_mode.rst | 7 + ....models.v1beta1_gang_scheduling_policy.rst | 7 + ...netes.client.models.v1beta1_json_patch.rst | 7 + ....client.models.v1beta1_lease_candidate.rst | 7 + ...nt.models.v1beta1_lease_candidate_list.rst | 7 + ...nt.models.v1beta1_lease_candidate_spec.rst | 7 + ....client.models.v1beta1_match_condition.rst | 7 + ....client.models.v1beta1_match_resources.rst | 7 + ...dels.v1beta1_mutating_admission_policy.rst | 7 + ...eta1_mutating_admission_policy_binding.rst | 7 + ...mutating_admission_policy_binding_list.rst | 7 + ...mutating_admission_policy_binding_spec.rst | 7 + ...v1beta1_mutating_admission_policy_list.rst | 7 + ...v1beta1_mutating_admission_policy_spec.rst | 7 + ...ernetes.client.models.v1beta1_mutation.rst | 7 + ...els.v1beta1_named_rule_with_operations.rst | 7 + ...ent.models.v1beta1_network_device_data.rst | 7 + ...odels.v1beta1_node_allocatable_mapping.rst | 7 + ...dels.v1beta1_node_allocatable_overhead.rst | 7 + ...dels.v1beta1_node_allocatable_resource.rst | 7 + ...ls.v1beta1_opaque_device_configuration.rst | 7 + ...netes.client.models.v1beta1_param_kind.rst | 7 + ...rnetes.client.models.v1beta1_param_ref.rst | 7 + ...models.v1beta1_pod_certificate_request.rst | 7 + ...s.v1beta1_pod_certificate_request_list.rst | 7 + ...s.v1beta1_pod_certificate_request_spec.rst | 7 + ...v1beta1_pod_certificate_request_status.rst | 7 + ...rnetes.client.models.v1beta1_pod_group.rst | 7 + ...s.client.models.v1beta1_pod_group_list.rst | 7 + ...odels.v1beta1_pod_group_resource_claim.rst | 7 + ...1beta1_pod_group_resource_claim_status.rst | 7 + ...beta1_pod_group_scheduling_constraints.rst | 7 + ...ls.v1beta1_pod_group_scheduling_policy.rst | 7 + ...s.client.models.v1beta1_pod_group_spec.rst | 7 + ...client.models.v1beta1_pod_group_status.rst | 7 + ...ient.models.v1beta1_pod_group_template.rst | 7 + ...s.client.models.v1beta1_resource_claim.rst | 7 + ...eta1_resource_claim_consumer_reference.rst | 7 + ...ent.models.v1beta1_resource_claim_list.rst | 7 + ...ent.models.v1beta1_resource_claim_spec.rst | 7 + ...t.models.v1beta1_resource_claim_status.rst | 7 + ...models.v1beta1_resource_claim_template.rst | 7 + ...s.v1beta1_resource_claim_template_list.rst | 7 + ...s.v1beta1_resource_claim_template_spec.rst | 7 + ...es.client.models.v1beta1_resource_pool.rst | 7 + ...s.client.models.v1beta1_resource_slice.rst | 7 + ...ent.models.v1beta1_resource_slice_list.rst | 7 + ...ent.models.v1beta1_resource_slice_spec.rst | 7 + ...dels.v1beta1_storage_version_migration.rst | 7 + ...v1beta1_storage_version_migration_list.rst | 7 + ...v1beta1_storage_version_migration_spec.rst | 7 + ...beta1_storage_version_migration_status.rst | 7 + ...ent.models.v1beta1_topology_constraint.rst | 7 + ...s.v1beta1_typed_local_object_reference.rst | 7 + ...ernetes.client.models.v1beta1_variable.rst | 7 + ...ernetes.client.models.v1beta1_workload.rst | 7 + ...es.client.models.v1beta1_workload_list.rst | 7 + ...ient.models.v1beta1_workload_reference.rst | 7 + ...es.client.models.v1beta1_workload_spec.rst | 7 + ...models.v1beta2_allocated_device_status.rst | 7 + ...lient.models.v1beta2_allocation_result.rst | 7 + ...models.v1beta2_capacity_request_policy.rst | 7 + ....v1beta2_capacity_request_policy_range.rst | 7 + ...t.models.v1beta2_capacity_requirements.rst | 7 + ...ent.models.v1beta2_cel_device_selector.rst | 7 + ...bernetes.client.models.v1beta2_counter.rst | 7 + ...etes.client.models.v1beta2_counter_set.rst | 7 + ...ubernetes.client.models.v1beta2_device.rst | 7 + ...1beta2_device_allocation_configuration.rst | 7 + ...odels.v1beta2_device_allocation_result.rst | 7 + ...client.models.v1beta2_device_attribute.rst | 7 + ....client.models.v1beta2_device_capacity.rst | 7 + ...tes.client.models.v1beta2_device_claim.rst | 7 + ...els.v1beta2_device_claim_configuration.rst | 7 + ...tes.client.models.v1beta2_device_class.rst | 7 + ...els.v1beta2_device_class_configuration.rst | 7 + ...lient.models.v1beta2_device_class_list.rst | 7 + ...lient.models.v1beta2_device_class_spec.rst | 7 + ...lient.models.v1beta2_device_constraint.rst | 7 + ...els.v1beta2_device_counter_consumption.rst | 7 + ...odels.v1beta2_device_derived_attribute.rst | 7 + ...s.client.models.v1beta2_device_request.rst | 7 + ...beta2_device_request_allocation_result.rst | 7 + ....client.models.v1beta2_device_selector.rst | 7 + ...ient.models.v1beta2_device_sub_request.rst | 7 + ...tes.client.models.v1beta2_device_taint.rst | 7 + ...lient.models.v1beta2_device_taint_rule.rst | 7 + ....models.v1beta2_device_taint_rule_list.rst | 7 + ....models.v1beta2_device_taint_rule_spec.rst | 7 + ...odels.v1beta2_device_taint_rule_status.rst | 7 + ...t.models.v1beta2_device_taint_selector.rst | 7 + ...lient.models.v1beta2_device_toleration.rst | 7 + ...nt.models.v1beta2_exact_device_request.rst | 7 + ...ent.models.v1beta2_network_device_data.rst | 7 + ...odels.v1beta2_node_allocatable_mapping.rst | 7 + ...dels.v1beta2_node_allocatable_overhead.rst | 7 + ...dels.v1beta2_node_allocatable_resource.rst | 7 + ...ls.v1beta2_opaque_device_configuration.rst | 7 + ...s.client.models.v1beta2_resource_claim.rst | 7 + ...eta2_resource_claim_consumer_reference.rst | 7 + ...ent.models.v1beta2_resource_claim_list.rst | 7 + ...ent.models.v1beta2_resource_claim_spec.rst | 7 + ...t.models.v1beta2_resource_claim_status.rst | 7 + ...models.v1beta2_resource_claim_template.rst | 7 + ...s.v1beta2_resource_claim_template_list.rst | 7 + ...s.v1beta2_resource_claim_template_spec.rst | 7 + ...es.client.models.v1beta2_resource_pool.rst | 7 + ...s.client.models.v1beta2_resource_slice.rst | 7 + ...ent.models.v1beta2_resource_slice_list.rst | 7 + ...ent.models.v1beta2_resource_slice_spec.rst | 7 + ...s.client.models.v2_api_group_discovery.rst | 7 + ...ent.models.v2_api_group_discovery_list.rst | 7 + ...lient.models.v2_api_resource_discovery.rst | 7 + ...nt.models.v2_api_subresource_discovery.rst | 7 + ...client.models.v2_api_version_discovery.rst | 7 + ...ls.v2_container_resource_metric_source.rst | 7 + ...ls.v2_container_resource_metric_status.rst | 7 + ...dels.v2_cross_version_object_reference.rst | 7 + ...lient.models.v2_external_metric_source.rst | 7 + ...lient.models.v2_external_metric_status.rst | 7 + ...nt.models.v2_horizontal_pod_autoscaler.rst | 7 + ....v2_horizontal_pod_autoscaler_behavior.rst | 7 + ...v2_horizontal_pod_autoscaler_condition.rst | 7 + ...dels.v2_horizontal_pod_autoscaler_list.rst | 7 + ...dels.v2_horizontal_pod_autoscaler_spec.rst | 7 + ...ls.v2_horizontal_pod_autoscaler_status.rst | 7 + ...es.client.models.v2_hpa_scaling_policy.rst | 7 + ...tes.client.models.v2_hpa_scaling_rules.rst | 7 + ...tes.client.models.v2_metric_identifier.rst | 7 + ...ubernetes.client.models.v2_metric_spec.rst | 7 + ...ernetes.client.models.v2_metric_status.rst | 7 + ...ernetes.client.models.v2_metric_target.rst | 7 + ...s.client.models.v2_metric_value_status.rst | 7 + ....client.models.v2_object_metric_source.rst | 7 + ....client.models.v2_object_metric_status.rst | 7 + ...es.client.models.v2_pods_metric_source.rst | 7 + ...es.client.models.v2_pods_metric_status.rst | 7 + ...lient.models.v2_resource_metric_source.rst | 7 + ...lient.models.v2_resource_metric_status.rst | 7 + ...ent.models.v2beta1_api_group_discovery.rst | 7 + ...odels.v2beta1_api_group_discovery_list.rst | 7 + ....models.v2beta1_api_resource_discovery.rst | 7 + ...dels.v2beta1_api_subresource_discovery.rst | 7 + ...t.models.v2beta1_api_version_discovery.rst | 7 + .../kubernetes.client.models.version_info.rst | 7 + doc/source/kubernetes.client.rest.rst | 7 + doc/source/kubernetes.client.rst | 32 + doc/source/kubernetes.e2e_test.base.rst | 7 + .../kubernetes.e2e_test.port_server.rst | 7 + doc/source/kubernetes.e2e_test.rst | 26 + doc/source/kubernetes.e2e_test.test_apps.rst | 7 + doc/source/kubernetes.e2e_test.test_batch.rst | 7 + .../kubernetes.e2e_test.test_client.rst | 7 + .../kubernetes.e2e_test.test_informer.rst | 7 + ...test.test_issue_2387_proxy_ssl_context.rst | 7 + doc/source/kubernetes.e2e_test.test_utils.rst | 7 + doc/source/kubernetes.e2e_test.test_watch.rst | 7 + doc/source/kubernetes.informer.cache.rst | 7 + doc/source/kubernetes.informer.informer.rst | 7 + doc/source/kubernetes.informer.rst | 19 + doc/source/kubernetes.rst | 27 + .../kubernetes.utils.create_from_yaml.rst | 7 + doc/source/kubernetes.utils.duration.rst | 7 + doc/source/kubernetes.utils.metrics.rst | 7 + doc/source/kubernetes.utils.quantity.rst | 7 + doc/source/kubernetes.utils.retry.rst | 7 + doc/source/kubernetes.utils.retry_test.rst | 7 + doc/source/kubernetes.utils.rst | 23 + kubernetes/client/api/custom_objects_api.py | 2 +- 1890 files changed, 15321 insertions(+), 1 deletion(-) create mode 100644 doc/source/kubernetes.aio.client.api.admissionregistration_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.admissionregistration_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.admissionregistration_v1alpha1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.admissionregistration_v1beta1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.apiextensions_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.apiextensions_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.apiregistration_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.apiregistration_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.apis_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.apps_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.apps_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.authentication_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.authentication_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.authorization_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.authorization_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.autoscaling_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.autoscaling_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.autoscaling_v2_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.batch_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.batch_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.certificates_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.certificates_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.certificates_v1alpha1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.certificates_v1beta1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.coordination_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.coordination_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.coordination_v1alpha2_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.coordination_v1beta1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.core_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.core_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.custom_objects_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.discovery_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.discovery_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.events_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.events_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.flowcontrol_apiserver_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.flowcontrol_apiserver_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.internal_apiserver_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.internal_apiserver_v1alpha1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.logs_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.networking_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.networking_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.networking_v1beta1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.node_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.node_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.openid_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.policy_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.policy_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.rbac_authorization_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.rbac_authorization_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.resource_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.resource_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.resource_v1alpha3_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.resource_v1beta1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.resource_v1beta2_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.rst create mode 100644 doc/source/kubernetes.aio.client.api.scheduling_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.scheduling_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.scheduling_v1alpha2_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.storage_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.storage_v1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.storage_v1beta1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.storagemigration_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.storagemigration_v1beta1_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.version_api.rst create mode 100644 doc/source/kubernetes.aio.client.api.well_known_api.rst create mode 100644 doc/source/kubernetes.aio.client.api_client.rst create mode 100644 doc/source/kubernetes.aio.client.api_response.rst create mode 100644 doc/source/kubernetes.aio.client.configuration.rst create mode 100644 doc/source/kubernetes.aio.client.exceptions.rst create mode 100644 doc/source/kubernetes.aio.client.models.admissionregistration_v1_service_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.admissionregistration_v1_webhook_client_config.rst create mode 100644 doc/source/kubernetes.aio.client.models.apiextensions_v1_service_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.apiextensions_v1_webhook_client_config.rst create mode 100644 doc/source/kubernetes.aio.client.models.apiregistration_v1_service_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.authentication_v1_token_request.rst create mode 100644 doc/source/kubernetes.aio.client.models.core_v1_endpoint_port.rst create mode 100644 doc/source/kubernetes.aio.client.models.core_v1_event.rst create mode 100644 doc/source/kubernetes.aio.client.models.core_v1_event_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.core_v1_event_series.rst create mode 100644 doc/source/kubernetes.aio.client.models.core_v1_resource_claim.rst create mode 100644 doc/source/kubernetes.aio.client.models.discovery_v1_endpoint_port.rst create mode 100644 doc/source/kubernetes.aio.client.models.events_v1_event.rst create mode 100644 doc/source/kubernetes.aio.client.models.events_v1_event_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.events_v1_event_series.rst create mode 100644 doc/source/kubernetes.aio.client.models.flowcontrol_v1_subject.rst create mode 100644 doc/source/kubernetes.aio.client.models.rbac_v1_subject.rst create mode 100644 doc/source/kubernetes.aio.client.models.resource_v1_resource_claim.rst create mode 100644 doc/source/kubernetes.aio.client.models.rst create mode 100644 doc/source/kubernetes.aio.client.models.storage_v1_token_request.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_affinity.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_aggregation_rule.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_allocated_device_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_allocation_result.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_api_group.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_api_group_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_api_resource.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_api_resource_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_api_service.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_api_service_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_api_service_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_api_service_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_api_service_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_api_versions.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_app_armor_profile.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_apply_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_attached_volume.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_audit_annotation.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_aws_elastic_block_store_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_azure_disk_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_azure_file_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_azure_file_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_binding.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_bound_object_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_capabilities.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_capacity_request_policy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_capacity_request_policy_range.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_capacity_requirements.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_cel_device_selector.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ceph_fs_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ceph_fs_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_certificate_signing_request.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_certificate_signing_request_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_certificate_signing_request_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_certificate_signing_request_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_certificate_signing_request_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_cinder_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_cinder_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_client_ip_config.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_cluster_role.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_cluster_role_binding.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_cluster_role_binding_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_cluster_role_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_cluster_trust_bundle_projection.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_component_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_component_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_component_status_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_config_map.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_config_map_env_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_config_map_key_selector.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_config_map_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_config_map_node_config_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_config_map_projection.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_config_map_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_container.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_container_extended_resource_request.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_container_image.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_container_port.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_container_resize_policy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_container_restart_rule.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_container_restart_rule_on_exit_codes.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_container_state.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_container_state_running.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_container_state_terminated.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_container_state_waiting.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_container_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_container_user.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_controller_revision.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_controller_revision_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_counter.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_counter_set.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_cron_job.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_cron_job_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_cron_job_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_cron_job_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_cross_version_object_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_csi_driver.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_csi_driver_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_csi_driver_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_csi_node.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_csi_node_driver.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_csi_node_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_csi_node_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_csi_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_csi_storage_capacity.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_csi_storage_capacity_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_csi_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_custom_resource_column_definition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_custom_resource_conversion.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_custom_resource_definition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_names.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_version.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_custom_resource_subresource_scale.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_custom_resource_subresources.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_custom_resource_validation.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_daemon_endpoint.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_daemon_set.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_daemon_set_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_daemon_set_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_daemon_set_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_daemon_set_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_daemon_set_update_strategy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_delete_options.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_deployment.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_deployment_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_deployment_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_deployment_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_deployment_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_deployment_strategy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device_allocation_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device_allocation_result.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device_attribute.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device_capacity.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device_claim.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device_claim_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device_class.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device_class_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device_class_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device_class_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device_constraint.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device_counter_consumption.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device_request.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device_request_allocation_result.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device_selector.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device_sub_request.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device_taint.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_device_toleration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_downward_api_projection.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_downward_api_volume_file.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_downward_api_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_empty_dir_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_endpoint.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_endpoint_address.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_endpoint_conditions.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_endpoint_hints.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_endpoint_slice.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_endpoint_slice_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_endpoint_subset.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_endpoints.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_endpoints_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_env_from_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_env_var.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_env_var_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ephemeral_container.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ephemeral_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_event_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_eviction.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_exact_device_request.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_exec_action.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_exempt_priority_level_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_expression_warning.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_external_documentation.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_fc_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_field_selector_attributes.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_field_selector_requirement.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_file_key_selector.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_flex_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_flex_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_flocker_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_flow_distinguisher_method.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_flow_schema.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_flow_schema_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_flow_schema_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_flow_schema_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_flow_schema_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_for_node.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_for_zone.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_gce_persistent_disk_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_git_repo_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_glusterfs_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_glusterfs_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_group_resource.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_group_subject.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_group_version_for_discovery.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_group_version_kind.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_grpc_action.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_horizontal_pod_autoscaler.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_horizontal_pod_autoscaler_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_horizontal_pod_autoscaler_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_horizontal_pod_autoscaler_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_host_alias.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_host_ip.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_host_path_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_http_get_action.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_http_header.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_http_ingress_path.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_http_ingress_rule_value.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_image_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_image_volume_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ingress.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ingress_backend.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ingress_class.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ingress_class_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ingress_class_parameters_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ingress_class_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ingress_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ingress_load_balancer_ingress.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ingress_load_balancer_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ingress_port_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ingress_rule.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ingress_service_backend.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ingress_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ingress_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ingress_tls.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ip_address.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ip_address_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ip_address_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_ip_block.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_iscsi_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_iscsi_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_job.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_job_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_job_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_job_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_job_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_job_template_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_json_patch.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_json_schema_props.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_key_to_path.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_label_selector.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_label_selector_attributes.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_label_selector_requirement.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_lease.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_lease_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_lease_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_lifecycle.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_lifecycle_handler.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_limit_range.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_limit_range_item.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_limit_range_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_limit_range_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_limit_response.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_limited_priority_level_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_linux_container_user.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_list_meta.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_load_balancer_ingress.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_load_balancer_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_local_object_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_local_subject_access_review.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_local_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_managed_fields_entry.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_match_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_match_resources.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_modify_volume_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_binding.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_binding_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_binding_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_mutating_webhook.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_mutating_webhook_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_mutating_webhook_configuration_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_mutation.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_named_rule_with_operations.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_namespace.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_namespace_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_namespace_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_namespace_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_namespace_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_network_device_data.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_network_policy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_network_policy_egress_rule.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_network_policy_ingress_rule.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_network_policy_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_network_policy_peer.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_network_policy_port.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_network_policy_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_nfs_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_address.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_affinity.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_allocatable_resource_claim_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_allocatable_resource_mapping.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_config_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_config_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_daemon_endpoints.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_features.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_runtime_handler.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_runtime_handler_features.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_selector.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_selector_requirement.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_selector_term.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_swap_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_node_system_info.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_non_resource_attributes.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_non_resource_policy_rule.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_non_resource_rule.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_object_field_selector.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_object_meta.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_object_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_opaque_device_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_overhead.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_owner_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_param_kind.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_param_ref.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_parent_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_persistent_volume.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_template.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_persistent_volume_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_persistent_volume_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_persistent_volume_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_photon_persistent_disk_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_affinity.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_affinity_term.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_anti_affinity.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_certificate_projection.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_disruption_budget.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_disruption_budget_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_disruption_budget_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_disruption_budget_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_dns_config.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_dns_config_option.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_extended_resource_claim_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_failure_policy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_failure_policy_on_exit_codes_requirement.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_failure_policy_on_pod_conditions_pattern.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_failure_policy_rule.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_ip.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_os.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_readiness_gate.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_resource_claim.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_resource_claim_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_scheduling_gate.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_scheduling_group.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_security_context.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_template.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_template_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_pod_template_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_policy_rule.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_policy_rules_with_subjects.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_port_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_portworx_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_preconditions.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_preferred_scheduling_term.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_priority_class.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_priority_class_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_priority_level_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_probe.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_projected_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_queuing_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_quobyte_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_rbd_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_rbd_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_replica_set.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_replica_set_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_replica_set_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_replica_set_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_replica_set_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_replication_controller.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_replication_controller_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_replication_controller_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_replication_controller_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_replication_controller_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_attributes.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_claim_consumer_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_claim_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_claim_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_claim_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_claim_template.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_claim_template_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_claim_template_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_field_selector.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_health.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_policy_rule.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_pool.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_quota.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_quota_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_quota_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_quota_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_requirements.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_rule.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_slice.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_slice_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_slice_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_resource_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_role.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_role_binding.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_role_binding_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_role_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_role_ref.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_rolling_update_daemon_set.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_rolling_update_deployment.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_rolling_update_stateful_set_strategy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_rule_with_operations.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_runtime_class.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_runtime_class_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_scale.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_scale_io_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_scale_io_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_scale_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_scale_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_scheduling.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_scope_selector.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_scoped_resource_selector_requirement.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_se_linux_options.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_seccomp_profile.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_secret.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_secret_env_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_secret_key_selector.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_secret_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_secret_projection.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_secret_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_secret_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_security_context.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_selectable_field.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_self_subject_access_review.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_self_subject_access_review_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_self_subject_review.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_self_subject_review_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_self_subject_rules_review.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_self_subject_rules_review_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_server_address_by_client_cidr.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_service.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_service_account.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_service_account_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_service_account_subject.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_service_account_token_projection.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_service_backend_port.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_service_cidr.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_service_cidr_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_service_cidr_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_service_cidr_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_service_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_service_port.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_service_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_service_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_session_affinity_config.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_shard_info.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_sleep_action.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_stateful_set.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_stateful_set_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_stateful_set_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_stateful_set_ordinals.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_stateful_set_persistent_volume_claim_retention_policy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_stateful_set_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_stateful_set_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_stateful_set_update_strategy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_status_cause.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_status_details.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_storage_class.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_storage_class_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_storage_os_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_storage_os_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_subject_access_review.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_subject_access_review_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_subject_access_review_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_subject_rules_review_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_success_policy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_success_policy_rule.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_sysctl.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_taint.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_tcp_socket_action.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_token_request_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_token_request_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_token_review.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_token_review_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_token_review_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_toleration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_topology_selector_label_requirement.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_topology_selector_term.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_topology_spread_constraint.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_type_checking.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_typed_local_object_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_typed_object_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_uncounted_terminated_pods.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_user_info.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_user_subject.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_validating_admission_policy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_binding.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_binding_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_binding_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_validating_webhook.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_validating_webhook_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_validating_webhook_configuration_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_validation.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_validation_rule.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_variable.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_volume.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_volume_attachment.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_volume_attachment_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_volume_attachment_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_volume_attachment_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_volume_attachment_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_volume_attributes_class.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_volume_attributes_class_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_volume_device.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_volume_error.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_volume_mount.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_volume_mount_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_volume_node_affinity.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_volume_node_resources.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_volume_projection.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_volume_resource_requirements.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_volume_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_vsphere_virtual_disk_volume_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_watch_event.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_webhook_conversion.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_weighted_pod_affinity_term.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1_windows_security_context_options.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_apply_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_json_patch.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_match_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_match_resources.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_binding.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_binding_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_binding_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_mutation.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_named_rule_with_operations.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_param_kind.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_param_ref.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_server_storage_version.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_storage_version.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_storage_version_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_storage_version_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_storage_version_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha1_variable.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_gang_scheduling_policy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_lease_candidate.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_lease_candidate_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_lease_candidate_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_pod_group.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_constraints.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_policy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_template.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_template_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_topology_constraint.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_typed_local_object_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_workload.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_workload_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_workload_pod_group_template_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha2_workload_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha3_device_taint.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_rule.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_rule_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_rule_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_rule_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_selector.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha3_pool_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha3_resource_pool_status_request.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_allocated_device_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_allocation_result.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_apply_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_basic_device.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_capacity_request_policy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_capacity_request_policy_range.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_capacity_requirements.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_cel_device_selector.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_cluster_trust_bundle.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_cluster_trust_bundle_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_cluster_trust_bundle_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_counter.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_counter_set.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device_allocation_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device_allocation_result.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device_attribute.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device_capacity.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device_claim.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device_claim_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device_class.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device_class_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device_class_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device_class_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device_constraint.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device_counter_consumption.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device_request.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device_request_allocation_result.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device_selector.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device_sub_request.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device_taint.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_device_toleration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_ip_address.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_ip_address_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_ip_address_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_json_patch.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_lease_candidate.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_lease_candidate_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_lease_candidate_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_match_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_match_resources.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_binding.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_binding_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_binding_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_mutation.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_named_rule_with_operations.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_network_device_data.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_node_allocatable_resource_mapping.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_opaque_device_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_param_kind.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_param_ref.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_parent_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_pod_certificate_request.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_pod_certificate_request_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_pod_certificate_request_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_pod_certificate_request_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_resource_claim.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_consumer_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_template.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_template_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_template_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_resource_pool.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_resource_slice.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_resource_slice_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_resource_slice_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_service_cidr.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_service_cidr_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_service_cidr_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_service_cidr_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_storage_version_migration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_storage_version_migration_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_storage_version_migration_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_storage_version_migration_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_variable.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_volume_attributes_class.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta1_volume_attributes_class_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_allocated_device_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_allocation_result.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_capacity_request_policy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_capacity_request_policy_range.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_capacity_requirements.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_cel_device_selector.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_counter.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_counter_set.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_allocation_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_allocation_result.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_attribute.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_capacity.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_claim.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_claim_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_class.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_class_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_class_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_class_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_constraint.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_counter_consumption.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_request.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_request_allocation_result.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_selector.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_sub_request.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_taint.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_taint_rule.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_taint_rule_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_taint_rule_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_taint_rule_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_taint_selector.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_device_toleration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_exact_device_request.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_network_device_data.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_node_allocatable_resource_mapping.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_opaque_device_configuration.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_resource_claim.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_consumer_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_template.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_template_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_template_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_resource_pool.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_resource_slice.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_resource_slice_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v1beta2_resource_slice_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_api_group_discovery.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_api_group_discovery_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_api_resource_discovery.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_api_subresource_discovery.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_api_version_discovery.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_container_resource_metric_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_container_resource_metric_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_cross_version_object_reference.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_external_metric_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_external_metric_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_behavior.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_condition.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_hpa_scaling_policy.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_hpa_scaling_rules.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_metric_identifier.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_metric_spec.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_metric_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_metric_target.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_metric_value_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_object_metric_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_object_metric_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_pods_metric_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_pods_metric_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_resource_metric_source.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2_resource_metric_status.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2beta1_api_group_discovery.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2beta1_api_group_discovery_list.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2beta1_api_resource_discovery.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2beta1_api_subresource_discovery.rst create mode 100644 doc/source/kubernetes.aio.client.models.v2beta1_api_version_discovery.rst create mode 100644 doc/source/kubernetes.aio.client.models.version_info.rst create mode 100644 doc/source/kubernetes.aio.client.rest.rst create mode 100644 doc/source/kubernetes.aio.client.rst create mode 100644 doc/source/kubernetes.aio.config.config_exception.rst create mode 100644 doc/source/kubernetes.aio.config.dateutil.rst create mode 100644 doc/source/kubernetes.aio.config.dateutil_test.rst create mode 100644 doc/source/kubernetes.aio.config.exec_provider.rst create mode 100644 doc/source/kubernetes.aio.config.exec_provider_test.rst create mode 100644 doc/source/kubernetes.aio.config.google_auth.rst create mode 100644 doc/source/kubernetes.aio.config.google_auth_test.rst create mode 100644 doc/source/kubernetes.aio.config.incluster_config.rst create mode 100644 doc/source/kubernetes.aio.config.incluster_config_test.rst create mode 100644 doc/source/kubernetes.aio.config.kube_config.rst create mode 100644 doc/source/kubernetes.aio.config.kube_config_test.rst create mode 100644 doc/source/kubernetes.aio.config.openid.rst create mode 100644 doc/source/kubernetes.aio.config.openid_test.rst create mode 100644 doc/source/kubernetes.aio.config.rst create mode 100644 doc/source/kubernetes.aio.dynamic.client.rst create mode 100644 doc/source/kubernetes.aio.dynamic.client_test.rst create mode 100644 doc/source/kubernetes.aio.dynamic.discovery.rst create mode 100644 doc/source/kubernetes.aio.dynamic.discovery_test.rst create mode 100644 doc/source/kubernetes.aio.dynamic.exceptions.rst create mode 100644 doc/source/kubernetes.aio.dynamic.resource.rst create mode 100644 doc/source/kubernetes.aio.dynamic.rst create mode 100644 doc/source/kubernetes.aio.e2e_test.base.rst create mode 100644 doc/source/kubernetes.aio.e2e_test.rst create mode 100644 doc/source/kubernetes.aio.e2e_test.test_api.rst create mode 100644 doc/source/kubernetes.aio.e2e_test.test_apply_patch.rst create mode 100644 doc/source/kubernetes.aio.e2e_test.test_batch.rst create mode 100644 doc/source/kubernetes.aio.e2e_test.test_dynamic_client.rst create mode 100644 doc/source/kubernetes.aio.rst create mode 100644 doc/source/kubernetes.aio.setup.rst create mode 100644 doc/source/kubernetes.aio.stream.rst create mode 100644 doc/source/kubernetes.aio.stream.ws_client.rst create mode 100644 doc/source/kubernetes.aio.stream.ws_client_test.rst create mode 100644 doc/source/kubernetes.aio.test.rst create mode 100644 doc/source/kubernetes.aio.test.test_admissionregistration_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_admissionregistration_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_admissionregistration_v1alpha1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_admissionregistration_v1beta1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_apiextensions_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_apiextensions_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_apiregistration_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_apiregistration_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_apis_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_apps_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_apps_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_authentication_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_authentication_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_authorization_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_authorization_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_autoscaling_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_autoscaling_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_autoscaling_v2_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_batch_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_batch_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_certificates_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_certificates_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_certificates_v1alpha1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_certificates_v1beta1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_coordination_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_coordination_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_coordination_v1alpha2_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_coordination_v1beta1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_core_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_core_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_custom_objects_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_discovery_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_discovery_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_events_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_events_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_flowcontrol_apiserver_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_flowcontrol_apiserver_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_generated_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_internal_apiserver_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_internal_apiserver_v1alpha1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_logs_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_networking_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_networking_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_networking_v1beta1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_node_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_node_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_openid_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_policy_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_policy_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_rbac_authorization_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_rbac_authorization_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_resource_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_resource_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_resource_v1alpha3_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_resource_v1beta1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_resource_v1beta2_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_scheduling_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_scheduling_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_scheduling_v1alpha2_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_storage_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_storage_v1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_storage_v1beta1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_storagemigration_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_storagemigration_v1beta1_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_version_api.rst create mode 100644 doc/source/kubernetes.aio.test.test_well_known_api.rst create mode 100644 doc/source/kubernetes.aio.utils.create_from_yaml.rst create mode 100644 doc/source/kubernetes.aio.utils.create_from_yaml_test.rst create mode 100644 doc/source/kubernetes.aio.utils.retry.rst create mode 100644 doc/source/kubernetes.aio.utils.retry_test.rst create mode 100644 doc/source/kubernetes.aio.utils.rst create mode 100644 doc/source/kubernetes.aio.watch.rst create mode 100644 doc/source/kubernetes.aio.watch.watch.rst create mode 100644 doc/source/kubernetes.aio.watch.watch_test.rst create mode 100644 doc/source/kubernetes.client.api.admissionregistration_api.rst create mode 100644 doc/source/kubernetes.client.api.admissionregistration_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.admissionregistration_v1alpha1_api.rst create mode 100644 doc/source/kubernetes.client.api.admissionregistration_v1beta1_api.rst create mode 100644 doc/source/kubernetes.client.api.apiextensions_api.rst create mode 100644 doc/source/kubernetes.client.api.apiextensions_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.apiregistration_api.rst create mode 100644 doc/source/kubernetes.client.api.apiregistration_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.apis_api.rst create mode 100644 doc/source/kubernetes.client.api.apps_api.rst create mode 100644 doc/source/kubernetes.client.api.apps_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.authentication_api.rst create mode 100644 doc/source/kubernetes.client.api.authentication_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.authorization_api.rst create mode 100644 doc/source/kubernetes.client.api.authorization_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.autoscaling_api.rst create mode 100644 doc/source/kubernetes.client.api.autoscaling_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.autoscaling_v2_api.rst create mode 100644 doc/source/kubernetes.client.api.batch_api.rst create mode 100644 doc/source/kubernetes.client.api.batch_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.certificates_api.rst create mode 100644 doc/source/kubernetes.client.api.certificates_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.certificates_v1beta1_api.rst create mode 100644 doc/source/kubernetes.client.api.coordination_api.rst create mode 100644 doc/source/kubernetes.client.api.coordination_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.coordination_v1alpha2_api.rst create mode 100644 doc/source/kubernetes.client.api.coordination_v1beta1_api.rst create mode 100644 doc/source/kubernetes.client.api.core_api.rst create mode 100644 doc/source/kubernetes.client.api.core_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.custom_objects_api.rst create mode 100644 doc/source/kubernetes.client.api.discovery_api.rst create mode 100644 doc/source/kubernetes.client.api.discovery_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.events_api.rst create mode 100644 doc/source/kubernetes.client.api.events_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.flowcontrol_apiserver_api.rst create mode 100644 doc/source/kubernetes.client.api.flowcontrol_apiserver_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.internal_apiserver_api.rst create mode 100644 doc/source/kubernetes.client.api.internal_apiserver_v1alpha1_api.rst create mode 100644 doc/source/kubernetes.client.api.lifecycle_api.rst create mode 100644 doc/source/kubernetes.client.api.lifecycle_v1alpha1_api.rst create mode 100644 doc/source/kubernetes.client.api.logs_api.rst create mode 100644 doc/source/kubernetes.client.api.networking_api.rst create mode 100644 doc/source/kubernetes.client.api.networking_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.node_api.rst create mode 100644 doc/source/kubernetes.client.api.node_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.openid_api.rst create mode 100644 doc/source/kubernetes.client.api.policy_api.rst create mode 100644 doc/source/kubernetes.client.api.policy_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.rbac_authorization_api.rst create mode 100644 doc/source/kubernetes.client.api.rbac_authorization_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.resource_api.rst create mode 100644 doc/source/kubernetes.client.api.resource_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.resource_v1alpha3_api.rst create mode 100644 doc/source/kubernetes.client.api.resource_v1beta1_api.rst create mode 100644 doc/source/kubernetes.client.api.resource_v1beta2_api.rst create mode 100644 doc/source/kubernetes.client.api.rst create mode 100644 doc/source/kubernetes.client.api.scheduling_api.rst create mode 100644 doc/source/kubernetes.client.api.scheduling_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.scheduling_v1alpha3_api.rst create mode 100644 doc/source/kubernetes.client.api.scheduling_v1beta1_api.rst create mode 100644 doc/source/kubernetes.client.api.storage_api.rst create mode 100644 doc/source/kubernetes.client.api.storage_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.storagemigration_api.rst create mode 100644 doc/source/kubernetes.client.api.storagemigration_v1_api.rst create mode 100644 doc/source/kubernetes.client.api.storagemigration_v1beta1_api.rst create mode 100644 doc/source/kubernetes.client.api.version_api.rst create mode 100644 doc/source/kubernetes.client.api.well_known_api.rst create mode 100644 doc/source/kubernetes.client.api_client.rst create mode 100644 doc/source/kubernetes.client.api_response.rst create mode 100644 doc/source/kubernetes.client.apis.rst create mode 100644 doc/source/kubernetes.client.configuration.rst create mode 100644 doc/source/kubernetes.client.exceptions.rst create mode 100644 doc/source/kubernetes.client.models.admissionregistration_v1_service_reference.rst create mode 100644 doc/source/kubernetes.client.models.admissionregistration_v1_webhook_client_config.rst create mode 100644 doc/source/kubernetes.client.models.apiextensions_v1_service_reference.rst create mode 100644 doc/source/kubernetes.client.models.apiextensions_v1_webhook_client_config.rst create mode 100644 doc/source/kubernetes.client.models.apiregistration_v1_service_reference.rst create mode 100644 doc/source/kubernetes.client.models.authentication_v1_token_request.rst create mode 100644 doc/source/kubernetes.client.models.core_v1_endpoint_port.rst create mode 100644 doc/source/kubernetes.client.models.core_v1_event.rst create mode 100644 doc/source/kubernetes.client.models.core_v1_event_list.rst create mode 100644 doc/source/kubernetes.client.models.core_v1_event_series.rst create mode 100644 doc/source/kubernetes.client.models.core_v1_resource_claim.rst create mode 100644 doc/source/kubernetes.client.models.discovery_v1_endpoint_port.rst create mode 100644 doc/source/kubernetes.client.models.events_v1_event.rst create mode 100644 doc/source/kubernetes.client.models.events_v1_event_list.rst create mode 100644 doc/source/kubernetes.client.models.events_v1_event_series.rst create mode 100644 doc/source/kubernetes.client.models.flowcontrol_v1_subject.rst create mode 100644 doc/source/kubernetes.client.models.rbac_v1_subject.rst create mode 100644 doc/source/kubernetes.client.models.resource_v1_resource_claim.rst create mode 100644 doc/source/kubernetes.client.models.rst create mode 100644 doc/source/kubernetes.client.models.storage_v1_token_request.rst create mode 100644 doc/source/kubernetes.client.models.v1_affinity.rst create mode 100644 doc/source/kubernetes.client.models.v1_aggregation_rule.rst create mode 100644 doc/source/kubernetes.client.models.v1_allocated_device_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_allocation_result.rst create mode 100644 doc/source/kubernetes.client.models.v1_api_group.rst create mode 100644 doc/source/kubernetes.client.models.v1_api_group_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_api_resource.rst create mode 100644 doc/source/kubernetes.client.models.v1_api_resource_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_api_service.rst create mode 100644 doc/source/kubernetes.client.models.v1_api_service_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_api_service_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_api_service_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_api_service_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_api_versions.rst create mode 100644 doc/source/kubernetes.client.models.v1_app_armor_profile.rst create mode 100644 doc/source/kubernetes.client.models.v1_apply_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1_attached_volume.rst create mode 100644 doc/source/kubernetes.client.models.v1_audit_annotation.rst create mode 100644 doc/source/kubernetes.client.models.v1_aws_elastic_block_store_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_azure_disk_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_azure_file_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_azure_file_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_binding.rst create mode 100644 doc/source/kubernetes.client.models.v1_bound_object_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1_capabilities.rst create mode 100644 doc/source/kubernetes.client.models.v1_capacity_request_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1_capacity_request_policy_range.rst create mode 100644 doc/source/kubernetes.client.models.v1_capacity_requirements.rst create mode 100644 doc/source/kubernetes.client.models.v1_cel_device_selector.rst create mode 100644 doc/source/kubernetes.client.models.v1_ceph_fs_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_ceph_fs_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_certificate_signing_request.rst create mode 100644 doc/source/kubernetes.client.models.v1_certificate_signing_request_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_certificate_signing_request_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_certificate_signing_request_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_certificate_signing_request_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_cinder_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_cinder_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_client_ip_config.rst create mode 100644 doc/source/kubernetes.client.models.v1_cluster_role.rst create mode 100644 doc/source/kubernetes.client.models.v1_cluster_role_binding.rst create mode 100644 doc/source/kubernetes.client.models.v1_cluster_role_binding_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_cluster_role_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_cluster_trust_bundle.rst create mode 100644 doc/source/kubernetes.client.models.v1_cluster_trust_bundle_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_cluster_trust_bundle_projection.rst create mode 100644 doc/source/kubernetes.client.models.v1_cluster_trust_bundle_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_component_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_component_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_component_status_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_config_map.rst create mode 100644 doc/source/kubernetes.client.models.v1_config_map_env_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_config_map_key_selector.rst create mode 100644 doc/source/kubernetes.client.models.v1_config_map_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_config_map_node_config_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_config_map_projection.rst create mode 100644 doc/source/kubernetes.client.models.v1_config_map_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_container.rst create mode 100644 doc/source/kubernetes.client.models.v1_container_extended_resource_request.rst create mode 100644 doc/source/kubernetes.client.models.v1_container_image.rst create mode 100644 doc/source/kubernetes.client.models.v1_container_port.rst create mode 100644 doc/source/kubernetes.client.models.v1_container_resize_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1_container_restart_rule.rst create mode 100644 doc/source/kubernetes.client.models.v1_container_restart_rule_on_exit_codes.rst create mode 100644 doc/source/kubernetes.client.models.v1_container_state.rst create mode 100644 doc/source/kubernetes.client.models.v1_container_state_running.rst create mode 100644 doc/source/kubernetes.client.models.v1_container_state_terminated.rst create mode 100644 doc/source/kubernetes.client.models.v1_container_state_waiting.rst create mode 100644 doc/source/kubernetes.client.models.v1_container_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_container_user.rst create mode 100644 doc/source/kubernetes.client.models.v1_controller_revision.rst create mode 100644 doc/source/kubernetes.client.models.v1_controller_revision_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_counter.rst create mode 100644 doc/source/kubernetes.client.models.v1_counter_set.rst create mode 100644 doc/source/kubernetes.client.models.v1_cron_job.rst create mode 100644 doc/source/kubernetes.client.models.v1_cron_job_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_cron_job_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_cron_job_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_cross_version_object_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1_csi_driver.rst create mode 100644 doc/source/kubernetes.client.models.v1_csi_driver_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_csi_driver_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_csi_node.rst create mode 100644 doc/source/kubernetes.client.models.v1_csi_node_driver.rst create mode 100644 doc/source/kubernetes.client.models.v1_csi_node_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_csi_node_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_csi_node_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_csi_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_csi_storage_capacity.rst create mode 100644 doc/source/kubernetes.client.models.v1_csi_storage_capacity_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_csi_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_custom_resource_column_definition.rst create mode 100644 doc/source/kubernetes.client.models.v1_custom_resource_conversion.rst create mode 100644 doc/source/kubernetes.client.models.v1_custom_resource_definition.rst create mode 100644 doc/source/kubernetes.client.models.v1_custom_resource_definition_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_custom_resource_definition_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_custom_resource_definition_names.rst create mode 100644 doc/source/kubernetes.client.models.v1_custom_resource_definition_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_custom_resource_definition_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_custom_resource_definition_version.rst create mode 100644 doc/source/kubernetes.client.models.v1_custom_resource_subresource_scale.rst create mode 100644 doc/source/kubernetes.client.models.v1_custom_resource_subresources.rst create mode 100644 doc/source/kubernetes.client.models.v1_custom_resource_validation.rst create mode 100644 doc/source/kubernetes.client.models.v1_daemon_endpoint.rst create mode 100644 doc/source/kubernetes.client.models.v1_daemon_set.rst create mode 100644 doc/source/kubernetes.client.models.v1_daemon_set_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_daemon_set_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_daemon_set_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_daemon_set_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_daemon_set_update_strategy.rst create mode 100644 doc/source/kubernetes.client.models.v1_delete_options.rst create mode 100644 doc/source/kubernetes.client.models.v1_deployment.rst create mode 100644 doc/source/kubernetes.client.models.v1_deployment_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_deployment_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_deployment_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_deployment_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_deployment_strategy.rst create mode 100644 doc/source/kubernetes.client.models.v1_device.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_allocation_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_allocation_result.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_attribute.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_capacity.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_claim.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_claim_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_class.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_class_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_class_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_class_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_constraint.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_counter_consumption.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_derived_attribute.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_request.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_request_allocation_result.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_selector.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_sub_request.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_taint.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_taint_rule.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_taint_rule_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_taint_rule_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_taint_rule_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_taint_selector.rst create mode 100644 doc/source/kubernetes.client.models.v1_device_toleration.rst create mode 100644 doc/source/kubernetes.client.models.v1_downward_api_projection.rst create mode 100644 doc/source/kubernetes.client.models.v1_downward_api_volume_file.rst create mode 100644 doc/source/kubernetes.client.models.v1_downward_api_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_empty_dir_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_endpoint.rst create mode 100644 doc/source/kubernetes.client.models.v1_endpoint_address.rst create mode 100644 doc/source/kubernetes.client.models.v1_endpoint_conditions.rst create mode 100644 doc/source/kubernetes.client.models.v1_endpoint_hints.rst create mode 100644 doc/source/kubernetes.client.models.v1_endpoint_slice.rst create mode 100644 doc/source/kubernetes.client.models.v1_endpoint_slice_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_endpoint_subset.rst create mode 100644 doc/source/kubernetes.client.models.v1_endpoints.rst create mode 100644 doc/source/kubernetes.client.models.v1_endpoints_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_env_from_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_env_var.rst create mode 100644 doc/source/kubernetes.client.models.v1_env_var_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_ephemeral_container.rst create mode 100644 doc/source/kubernetes.client.models.v1_ephemeral_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_event_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_eviction.rst create mode 100644 doc/source/kubernetes.client.models.v1_eviction_responder.rst create mode 100644 doc/source/kubernetes.client.models.v1_exact_device_request.rst create mode 100644 doc/source/kubernetes.client.models.v1_exec_action.rst create mode 100644 doc/source/kubernetes.client.models.v1_exempt_priority_level_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1_expression_warning.rst create mode 100644 doc/source/kubernetes.client.models.v1_external_documentation.rst create mode 100644 doc/source/kubernetes.client.models.v1_fc_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_field_selector_attributes.rst create mode 100644 doc/source/kubernetes.client.models.v1_field_selector_requirement.rst create mode 100644 doc/source/kubernetes.client.models.v1_file_key_selector.rst create mode 100644 doc/source/kubernetes.client.models.v1_flex_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_flex_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_flocker_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_flow_distinguisher_method.rst create mode 100644 doc/source/kubernetes.client.models.v1_flow_schema.rst create mode 100644 doc/source/kubernetes.client.models.v1_flow_schema_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_flow_schema_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_flow_schema_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_flow_schema_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_for_node.rst create mode 100644 doc/source/kubernetes.client.models.v1_for_zone.rst create mode 100644 doc/source/kubernetes.client.models.v1_gce_persistent_disk_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_git_repo_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_glusterfs_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_glusterfs_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_group_resource.rst create mode 100644 doc/source/kubernetes.client.models.v1_group_subject.rst create mode 100644 doc/source/kubernetes.client.models.v1_group_version_for_discovery.rst create mode 100644 doc/source/kubernetes.client.models.v1_group_version_kind.rst create mode 100644 doc/source/kubernetes.client.models.v1_grpc_action.rst create mode 100644 doc/source/kubernetes.client.models.v1_horizontal_pod_autoscaler.rst create mode 100644 doc/source/kubernetes.client.models.v1_horizontal_pod_autoscaler_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_horizontal_pod_autoscaler_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_horizontal_pod_autoscaler_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_host_alias.rst create mode 100644 doc/source/kubernetes.client.models.v1_host_ip.rst create mode 100644 doc/source/kubernetes.client.models.v1_host_path_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_http_get_action.rst create mode 100644 doc/source/kubernetes.client.models.v1_http_header.rst create mode 100644 doc/source/kubernetes.client.models.v1_http_ingress_path.rst create mode 100644 doc/source/kubernetes.client.models.v1_http_ingress_rule_value.rst create mode 100644 doc/source/kubernetes.client.models.v1_image_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_image_volume_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_ingress.rst create mode 100644 doc/source/kubernetes.client.models.v1_ingress_backend.rst create mode 100644 doc/source/kubernetes.client.models.v1_ingress_class.rst create mode 100644 doc/source/kubernetes.client.models.v1_ingress_class_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_ingress_class_parameters_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1_ingress_class_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_ingress_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_ingress_load_balancer_ingress.rst create mode 100644 doc/source/kubernetes.client.models.v1_ingress_load_balancer_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_ingress_port_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_ingress_rule.rst create mode 100644 doc/source/kubernetes.client.models.v1_ingress_service_backend.rst create mode 100644 doc/source/kubernetes.client.models.v1_ingress_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_ingress_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_ingress_tls.rst create mode 100644 doc/source/kubernetes.client.models.v1_ip_address.rst create mode 100644 doc/source/kubernetes.client.models.v1_ip_address_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_ip_address_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_ip_block.rst create mode 100644 doc/source/kubernetes.client.models.v1_iscsi_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_iscsi_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_job.rst create mode 100644 doc/source/kubernetes.client.models.v1_job_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_job_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_job_scheduling_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1_job_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_job_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_job_template_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_json_patch.rst create mode 100644 doc/source/kubernetes.client.models.v1_json_schema_props.rst create mode 100644 doc/source/kubernetes.client.models.v1_key_to_path.rst create mode 100644 doc/source/kubernetes.client.models.v1_label_selector.rst create mode 100644 doc/source/kubernetes.client.models.v1_label_selector_attributes.rst create mode 100644 doc/source/kubernetes.client.models.v1_label_selector_requirement.rst create mode 100644 doc/source/kubernetes.client.models.v1_lease.rst create mode 100644 doc/source/kubernetes.client.models.v1_lease_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_lease_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_lifecycle.rst create mode 100644 doc/source/kubernetes.client.models.v1_lifecycle_handler.rst create mode 100644 doc/source/kubernetes.client.models.v1_limit_range.rst create mode 100644 doc/source/kubernetes.client.models.v1_limit_range_item.rst create mode 100644 doc/source/kubernetes.client.models.v1_limit_range_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_limit_range_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_limit_response.rst create mode 100644 doc/source/kubernetes.client.models.v1_limited_priority_level_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1_linux_container_user.rst create mode 100644 doc/source/kubernetes.client.models.v1_list_meta.rst create mode 100644 doc/source/kubernetes.client.models.v1_load_balancer_ingress.rst create mode 100644 doc/source/kubernetes.client.models.v1_load_balancer_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_local_object_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1_local_subject_access_review.rst create mode 100644 doc/source/kubernetes.client.models.v1_local_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_managed_fields_entry.rst create mode 100644 doc/source/kubernetes.client.models.v1_match_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_match_resources.rst create mode 100644 doc/source/kubernetes.client.models.v1_modify_volume_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_mutating_admission_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1_mutating_admission_policy_binding.rst create mode 100644 doc/source/kubernetes.client.models.v1_mutating_admission_policy_binding_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_mutating_admission_policy_binding_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_mutating_admission_policy_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_mutating_admission_policy_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_mutating_webhook.rst create mode 100644 doc/source/kubernetes.client.models.v1_mutating_webhook_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1_mutating_webhook_configuration_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_mutation.rst create mode 100644 doc/source/kubernetes.client.models.v1_named_rule_with_operations.rst create mode 100644 doc/source/kubernetes.client.models.v1_namespace.rst create mode 100644 doc/source/kubernetes.client.models.v1_namespace_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_namespace_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_namespace_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_namespace_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_network_device_data.rst create mode 100644 doc/source/kubernetes.client.models.v1_network_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1_network_policy_egress_rule.rst create mode 100644 doc/source/kubernetes.client.models.v1_network_policy_ingress_rule.rst create mode 100644 doc/source/kubernetes.client.models.v1_network_policy_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_network_policy_peer.rst create mode 100644 doc/source/kubernetes.client.models.v1_network_policy_port.rst create mode 100644 doc/source/kubernetes.client.models.v1_network_policy_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_nfs_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_node.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_address.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_affinity.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_allocatable_mapped_resources.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_allocatable_mapping.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_allocatable_overhead.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_allocatable_overhead_resources.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_allocatable_resource.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_allocatable_resource_claim_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_config_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_config_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_daemon_endpoints.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_features.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_pod_preemption_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_runtime_handler.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_runtime_handler_features.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_selector.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_selector_requirement.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_selector_term.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_swap_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_node_system_info.rst create mode 100644 doc/source/kubernetes.client.models.v1_non_resource_attributes.rst create mode 100644 doc/source/kubernetes.client.models.v1_non_resource_policy_rule.rst create mode 100644 doc/source/kubernetes.client.models.v1_non_resource_rule.rst create mode 100644 doc/source/kubernetes.client.models.v1_object_field_selector.rst create mode 100644 doc/source/kubernetes.client.models.v1_object_meta.rst create mode 100644 doc/source/kubernetes.client.models.v1_object_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1_opaque_device_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1_overhead.rst create mode 100644 doc/source/kubernetes.client.models.v1_owner_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1_param_kind.rst create mode 100644 doc/source/kubernetes.client.models.v1_param_ref.rst create mode 100644 doc/source/kubernetes.client.models.v1_parent_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1_persistent_volume.rst create mode 100644 doc/source/kubernetes.client.models.v1_persistent_volume_claim.rst create mode 100644 doc/source/kubernetes.client.models.v1_persistent_volume_claim_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_persistent_volume_claim_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_persistent_volume_claim_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_persistent_volume_claim_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_persistent_volume_claim_template.rst create mode 100644 doc/source/kubernetes.client.models.v1_persistent_volume_claim_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_persistent_volume_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_persistent_volume_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_persistent_volume_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_photon_persistent_disk_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_affinity.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_affinity_term.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_anti_affinity.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_certificate_projection.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_certificate_request.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_certificate_request_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_certificate_request_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_certificate_request_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_disruption_budget.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_disruption_budget_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_disruption_budget_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_disruption_budget_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_dns_config.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_dns_config_option.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_extended_resource_claim_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_failure_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_failure_policy_on_exit_codes_requirement.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_failure_policy_on_pod_conditions_pattern.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_failure_policy_rule.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_ip.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_os.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_readiness_gate.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_resource_claim.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_resource_claim_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_scheduling_gate.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_scheduling_group.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_security_context.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_template.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_template_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_template_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_pod_volume_health.rst create mode 100644 doc/source/kubernetes.client.models.v1_policy_rule.rst create mode 100644 doc/source/kubernetes.client.models.v1_policy_rules_with_subjects.rst create mode 100644 doc/source/kubernetes.client.models.v1_port_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_portworx_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_preconditions.rst create mode 100644 doc/source/kubernetes.client.models.v1_preferred_scheduling_term.rst create mode 100644 doc/source/kubernetes.client.models.v1_priority_class.rst create mode 100644 doc/source/kubernetes.client.models.v1_priority_class_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_priority_level_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1_priority_level_configuration_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_priority_level_configuration_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_priority_level_configuration_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1_priority_level_configuration_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_priority_level_configuration_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_probe.rst create mode 100644 doc/source/kubernetes.client.models.v1_projected_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_queuing_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1_quobyte_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_rbd_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_rbd_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_replica_set.rst create mode 100644 doc/source/kubernetes.client.models.v1_replica_set_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_replica_set_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_replica_set_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_replica_set_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_replication_controller.rst create mode 100644 doc/source/kubernetes.client.models.v1_replication_controller_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_replication_controller_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_replication_controller_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_replication_controller_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_attributes.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_claim_consumer_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_claim_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_claim_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_claim_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_claim_template.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_claim_template_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_claim_template_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_field_selector.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_health.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_policy_rule.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_pool.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_quota.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_quota_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_quota_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_quota_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_requirements.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_rule.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_slice.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_slice_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_slice_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_resource_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_role.rst create mode 100644 doc/source/kubernetes.client.models.v1_role_binding.rst create mode 100644 doc/source/kubernetes.client.models.v1_role_binding_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_role_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_role_ref.rst create mode 100644 doc/source/kubernetes.client.models.v1_rolling_update_daemon_set.rst create mode 100644 doc/source/kubernetes.client.models.v1_rolling_update_deployment.rst create mode 100644 doc/source/kubernetes.client.models.v1_rolling_update_stateful_set_strategy.rst create mode 100644 doc/source/kubernetes.client.models.v1_rule_with_operations.rst create mode 100644 doc/source/kubernetes.client.models.v1_runtime_class.rst create mode 100644 doc/source/kubernetes.client.models.v1_runtime_class_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_scale.rst create mode 100644 doc/source/kubernetes.client.models.v1_scale_io_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_scale_io_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_scale_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_scale_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_scheduling.rst create mode 100644 doc/source/kubernetes.client.models.v1_scope_selector.rst create mode 100644 doc/source/kubernetes.client.models.v1_scoped_resource_selector_requirement.rst create mode 100644 doc/source/kubernetes.client.models.v1_se_linux_options.rst create mode 100644 doc/source/kubernetes.client.models.v1_seccomp_profile.rst create mode 100644 doc/source/kubernetes.client.models.v1_secret.rst create mode 100644 doc/source/kubernetes.client.models.v1_secret_env_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_secret_key_selector.rst create mode 100644 doc/source/kubernetes.client.models.v1_secret_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_secret_projection.rst create mode 100644 doc/source/kubernetes.client.models.v1_secret_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1_secret_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_security_context.rst create mode 100644 doc/source/kubernetes.client.models.v1_selectable_field.rst create mode 100644 doc/source/kubernetes.client.models.v1_self_subject_access_review.rst create mode 100644 doc/source/kubernetes.client.models.v1_self_subject_access_review_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_self_subject_review.rst create mode 100644 doc/source/kubernetes.client.models.v1_self_subject_review_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_self_subject_rules_review.rst create mode 100644 doc/source/kubernetes.client.models.v1_self_subject_rules_review_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_server_address_by_client_cidr.rst create mode 100644 doc/source/kubernetes.client.models.v1_service.rst create mode 100644 doc/source/kubernetes.client.models.v1_service_account.rst create mode 100644 doc/source/kubernetes.client.models.v1_service_account_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_service_account_subject.rst create mode 100644 doc/source/kubernetes.client.models.v1_service_account_token_projection.rst create mode 100644 doc/source/kubernetes.client.models.v1_service_backend_port.rst create mode 100644 doc/source/kubernetes.client.models.v1_service_cidr.rst create mode 100644 doc/source/kubernetes.client.models.v1_service_cidr_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_service_cidr_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_service_cidr_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_service_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_service_port.rst create mode 100644 doc/source/kubernetes.client.models.v1_service_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_service_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_session_affinity_config.rst create mode 100644 doc/source/kubernetes.client.models.v1_shard_info.rst create mode 100644 doc/source/kubernetes.client.models.v1_sleep_action.rst create mode 100644 doc/source/kubernetes.client.models.v1_stateful_set.rst create mode 100644 doc/source/kubernetes.client.models.v1_stateful_set_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_stateful_set_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_stateful_set_ordinals.rst create mode 100644 doc/source/kubernetes.client.models.v1_stateful_set_persistent_volume_claim_retention_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1_stateful_set_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_stateful_set_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_stateful_set_update_strategy.rst create mode 100644 doc/source/kubernetes.client.models.v1_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_status_cause.rst create mode 100644 doc/source/kubernetes.client.models.v1_status_details.rst create mode 100644 doc/source/kubernetes.client.models.v1_storage_class.rst create mode 100644 doc/source/kubernetes.client.models.v1_storage_class_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_storage_health.rst create mode 100644 doc/source/kubernetes.client.models.v1_storage_health_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_storage_os_persistent_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_storage_os_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_storage_version_migration.rst create mode 100644 doc/source/kubernetes.client.models.v1_storage_version_migration_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_storage_version_migration_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_storage_version_migration_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_subject_access_review.rst create mode 100644 doc/source/kubernetes.client.models.v1_subject_access_review_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_subject_access_review_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_subject_rules_review_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_success_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1_success_policy_rule.rst create mode 100644 doc/source/kubernetes.client.models.v1_sysctl.rst create mode 100644 doc/source/kubernetes.client.models.v1_taint.rst create mode 100644 doc/source/kubernetes.client.models.v1_tcp_socket_action.rst create mode 100644 doc/source/kubernetes.client.models.v1_token_request_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_token_request_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_token_review.rst create mode 100644 doc/source/kubernetes.client.models.v1_token_review_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_token_review_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_toleration.rst create mode 100644 doc/source/kubernetes.client.models.v1_topology_selector_label_requirement.rst create mode 100644 doc/source/kubernetes.client.models.v1_topology_selector_term.rst create mode 100644 doc/source/kubernetes.client.models.v1_topology_spread_constraint.rst create mode 100644 doc/source/kubernetes.client.models.v1_type_checking.rst create mode 100644 doc/source/kubernetes.client.models.v1_typed_local_object_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1_typed_object_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1_uncounted_terminated_pods.rst create mode 100644 doc/source/kubernetes.client.models.v1_user_info.rst create mode 100644 doc/source/kubernetes.client.models.v1_user_subject.rst create mode 100644 doc/source/kubernetes.client.models.v1_validating_admission_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1_validating_admission_policy_binding.rst create mode 100644 doc/source/kubernetes.client.models.v1_validating_admission_policy_binding_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_validating_admission_policy_binding_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_validating_admission_policy_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_validating_admission_policy_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_validating_admission_policy_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_validating_webhook.rst create mode 100644 doc/source/kubernetes.client.models.v1_validating_webhook_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1_validating_webhook_configuration_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_validation.rst create mode 100644 doc/source/kubernetes.client.models.v1_validation_rule.rst create mode 100644 doc/source/kubernetes.client.models.v1_variable.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume_attachment.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume_attachment_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume_attachment_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume_attachment_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume_attachment_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume_attributes_class.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume_attributes_class_list.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume_device.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume_error.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume_health_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume_health_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume_mount.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume_mount_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume_node_affinity.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume_node_resources.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume_projection.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume_resource_requirements.rst create mode 100644 doc/source/kubernetes.client.models.v1_volume_status.rst create mode 100644 doc/source/kubernetes.client.models.v1_vsphere_virtual_disk_volume_source.rst create mode 100644 doc/source/kubernetes.client.models.v1_watch_event.rst create mode 100644 doc/source/kubernetes.client.models.v1_webhook_conversion.rst create mode 100644 doc/source/kubernetes.client.models.v1_weighted_pod_affinity_term.rst create mode 100644 doc/source/kubernetes.client.models.v1_windows_security_context_options.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_apply_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_eviction.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_eviction_list.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_eviction_pod_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_eviction_request.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_eviction_request_list.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_eviction_request_pod_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_eviction_request_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_eviction_request_status.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_eviction_request_target.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_eviction_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_eviction_status.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_eviction_target.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_json_patch.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_match_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_match_resources.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_binding.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_binding_list.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_binding_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_list.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_mutation.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_named_rule_with_operations.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_param_kind.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_param_ref.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_requester.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_responder_status.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_server_storage_version.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_storage_version.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_storage_version_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_storage_version_list.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_storage_version_status.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_target_responder.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha1_variable.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha2_lease_candidate.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha2_lease_candidate_list.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha2_lease_candidate_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_composite_disruption_mode.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_composite_gang_scheduling_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_composite_pod_group.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_list.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_constraints.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_status.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_template.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_device_taint.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_device_taint_rule.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_device_taint_rule_list.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_device_taint_rule_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_device_taint_rule_status.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_device_taint_selector.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_disruption_mode.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_gang_scheduling_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_partition_type_status.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_pod_group.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_pod_group_list.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_pod_group_resource_claim.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_pod_group_resource_claim_status.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_pod_group_scheduling_constraints.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_pod_group_scheduling_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_pod_group_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_pod_group_status.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_pod_group_template.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_pool_status.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_resource_pool_status_request.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_resource_pool_status_request_list.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_resource_pool_status_request_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_resource_pool_status_request_status.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_shareable_capacity_status.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_shareable_summary_status.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_topology_constraint.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_typed_local_object_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_workload.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_workload_list.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_disruption_mode.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_gang_scheduling_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_resource_claim.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_constraints.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_workload_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1alpha3_workload_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_allocated_device_status.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_allocation_result.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_apply_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_basic_device.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_capacity_request_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_capacity_request_policy_range.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_capacity_requirements.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_cel_device_selector.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_cluster_trust_bundle.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_cluster_trust_bundle_list.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_cluster_trust_bundle_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_composite_disruption_mode.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_composite_gang_scheduling_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_composite_pod_group_scheduling_constraints.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_composite_pod_group_scheduling_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_composite_pod_group_template.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_counter.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_counter_set.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_allocation_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_allocation_result.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_attribute.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_capacity.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_claim.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_claim_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_class.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_class_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_class_list.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_class_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_constraint.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_counter_consumption.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_derived_attribute.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_request.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_request_allocation_result.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_selector.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_sub_request.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_taint.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_device_toleration.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_disruption_mode.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_gang_scheduling_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_json_patch.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_lease_candidate.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_lease_candidate_list.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_lease_candidate_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_match_condition.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_match_resources.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_binding.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_binding_list.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_binding_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_list.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_mutation.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_named_rule_with_operations.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_network_device_data.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_node_allocatable_mapping.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_node_allocatable_overhead.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_node_allocatable_resource.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_opaque_device_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_param_kind.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_param_ref.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_pod_certificate_request.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_pod_certificate_request_list.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_pod_certificate_request_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_pod_certificate_request_status.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_pod_group.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_pod_group_list.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_pod_group_resource_claim.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_pod_group_resource_claim_status.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_pod_group_scheduling_constraints.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_pod_group_scheduling_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_pod_group_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_pod_group_status.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_pod_group_template.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_resource_claim.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_resource_claim_consumer_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_resource_claim_list.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_resource_claim_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_resource_claim_status.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_resource_claim_template.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_resource_claim_template_list.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_resource_claim_template_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_resource_pool.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_resource_slice.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_resource_slice_list.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_resource_slice_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_storage_version_migration.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_storage_version_migration_list.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_storage_version_migration_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_storage_version_migration_status.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_topology_constraint.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_typed_local_object_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_variable.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_workload.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_workload_list.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_workload_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1beta1_workload_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_allocated_device_status.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_allocation_result.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_capacity_request_policy.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_capacity_request_policy_range.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_capacity_requirements.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_cel_device_selector.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_counter.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_counter_set.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_allocation_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_allocation_result.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_attribute.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_capacity.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_claim.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_claim_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_class.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_class_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_class_list.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_class_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_constraint.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_counter_consumption.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_derived_attribute.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_request.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_request_allocation_result.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_selector.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_sub_request.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_taint.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_taint_rule.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_taint_rule_list.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_taint_rule_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_taint_rule_status.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_taint_selector.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_device_toleration.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_exact_device_request.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_network_device_data.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_node_allocatable_mapping.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_node_allocatable_overhead.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_node_allocatable_resource.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_opaque_device_configuration.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_resource_claim.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_resource_claim_consumer_reference.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_resource_claim_list.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_resource_claim_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_resource_claim_status.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_resource_claim_template.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_resource_claim_template_list.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_resource_claim_template_spec.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_resource_pool.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_resource_slice.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_resource_slice_list.rst create mode 100644 doc/source/kubernetes.client.models.v1beta2_resource_slice_spec.rst create mode 100644 doc/source/kubernetes.client.models.v2_api_group_discovery.rst create mode 100644 doc/source/kubernetes.client.models.v2_api_group_discovery_list.rst create mode 100644 doc/source/kubernetes.client.models.v2_api_resource_discovery.rst create mode 100644 doc/source/kubernetes.client.models.v2_api_subresource_discovery.rst create mode 100644 doc/source/kubernetes.client.models.v2_api_version_discovery.rst create mode 100644 doc/source/kubernetes.client.models.v2_container_resource_metric_source.rst create mode 100644 doc/source/kubernetes.client.models.v2_container_resource_metric_status.rst create mode 100644 doc/source/kubernetes.client.models.v2_cross_version_object_reference.rst create mode 100644 doc/source/kubernetes.client.models.v2_external_metric_source.rst create mode 100644 doc/source/kubernetes.client.models.v2_external_metric_status.rst create mode 100644 doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler.rst create mode 100644 doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_behavior.rst create mode 100644 doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_condition.rst create mode 100644 doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_list.rst create mode 100644 doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_spec.rst create mode 100644 doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_status.rst create mode 100644 doc/source/kubernetes.client.models.v2_hpa_scaling_policy.rst create mode 100644 doc/source/kubernetes.client.models.v2_hpa_scaling_rules.rst create mode 100644 doc/source/kubernetes.client.models.v2_metric_identifier.rst create mode 100644 doc/source/kubernetes.client.models.v2_metric_spec.rst create mode 100644 doc/source/kubernetes.client.models.v2_metric_status.rst create mode 100644 doc/source/kubernetes.client.models.v2_metric_target.rst create mode 100644 doc/source/kubernetes.client.models.v2_metric_value_status.rst create mode 100644 doc/source/kubernetes.client.models.v2_object_metric_source.rst create mode 100644 doc/source/kubernetes.client.models.v2_object_metric_status.rst create mode 100644 doc/source/kubernetes.client.models.v2_pods_metric_source.rst create mode 100644 doc/source/kubernetes.client.models.v2_pods_metric_status.rst create mode 100644 doc/source/kubernetes.client.models.v2_resource_metric_source.rst create mode 100644 doc/source/kubernetes.client.models.v2_resource_metric_status.rst create mode 100644 doc/source/kubernetes.client.models.v2beta1_api_group_discovery.rst create mode 100644 doc/source/kubernetes.client.models.v2beta1_api_group_discovery_list.rst create mode 100644 doc/source/kubernetes.client.models.v2beta1_api_resource_discovery.rst create mode 100644 doc/source/kubernetes.client.models.v2beta1_api_subresource_discovery.rst create mode 100644 doc/source/kubernetes.client.models.v2beta1_api_version_discovery.rst create mode 100644 doc/source/kubernetes.client.models.version_info.rst create mode 100644 doc/source/kubernetes.client.rest.rst create mode 100644 doc/source/kubernetes.client.rst create mode 100644 doc/source/kubernetes.e2e_test.base.rst create mode 100644 doc/source/kubernetes.e2e_test.port_server.rst create mode 100644 doc/source/kubernetes.e2e_test.rst create mode 100644 doc/source/kubernetes.e2e_test.test_apps.rst create mode 100644 doc/source/kubernetes.e2e_test.test_batch.rst create mode 100644 doc/source/kubernetes.e2e_test.test_client.rst create mode 100644 doc/source/kubernetes.e2e_test.test_informer.rst create mode 100644 doc/source/kubernetes.e2e_test.test_issue_2387_proxy_ssl_context.rst create mode 100644 doc/source/kubernetes.e2e_test.test_utils.rst create mode 100644 doc/source/kubernetes.e2e_test.test_watch.rst create mode 100644 doc/source/kubernetes.informer.cache.rst create mode 100644 doc/source/kubernetes.informer.informer.rst create mode 100644 doc/source/kubernetes.informer.rst create mode 100644 doc/source/kubernetes.rst create mode 100644 doc/source/kubernetes.utils.create_from_yaml.rst create mode 100644 doc/source/kubernetes.utils.duration.rst create mode 100644 doc/source/kubernetes.utils.metrics.rst create mode 100644 doc/source/kubernetes.utils.quantity.rst create mode 100644 doc/source/kubernetes.utils.retry.rst create mode 100644 doc/source/kubernetes.utils.retry_test.rst create mode 100644 doc/source/kubernetes.utils.rst diff --git a/doc/source/kubernetes.aio.client.api.admissionregistration_api.rst b/doc/source/kubernetes.aio.client.api.admissionregistration_api.rst new file mode 100644 index 0000000000..021812244c --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.admissionregistration_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.admissionregistration\_api module +=========================================================== + +.. automodule:: kubernetes.aio.client.api.admissionregistration_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.admissionregistration_v1_api.rst b/doc/source/kubernetes.aio.client.api.admissionregistration_v1_api.rst new file mode 100644 index 0000000000..6a6edbac7b --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.admissionregistration_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.admissionregistration\_v1\_api module +=============================================================== + +.. automodule:: kubernetes.aio.client.api.admissionregistration_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.admissionregistration_v1alpha1_api.rst b/doc/source/kubernetes.aio.client.api.admissionregistration_v1alpha1_api.rst new file mode 100644 index 0000000000..0d10886137 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.admissionregistration_v1alpha1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.admissionregistration\_v1alpha1\_api module +===================================================================== + +.. automodule:: kubernetes.aio.client.api.admissionregistration_v1alpha1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.admissionregistration_v1beta1_api.rst b/doc/source/kubernetes.aio.client.api.admissionregistration_v1beta1_api.rst new file mode 100644 index 0000000000..88e3f776ae --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.admissionregistration_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.admissionregistration\_v1beta1\_api module +==================================================================== + +.. automodule:: kubernetes.aio.client.api.admissionregistration_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.apiextensions_api.rst b/doc/source/kubernetes.aio.client.api.apiextensions_api.rst new file mode 100644 index 0000000000..25f5eff9c1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.apiextensions_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.apiextensions\_api module +=================================================== + +.. automodule:: kubernetes.aio.client.api.apiextensions_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.apiextensions_v1_api.rst b/doc/source/kubernetes.aio.client.api.apiextensions_v1_api.rst new file mode 100644 index 0000000000..c5d0356c64 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.apiextensions_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.apiextensions\_v1\_api module +======================================================= + +.. automodule:: kubernetes.aio.client.api.apiextensions_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.apiregistration_api.rst b/doc/source/kubernetes.aio.client.api.apiregistration_api.rst new file mode 100644 index 0000000000..ace7fcb9c0 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.apiregistration_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.apiregistration\_api module +===================================================== + +.. automodule:: kubernetes.aio.client.api.apiregistration_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.apiregistration_v1_api.rst b/doc/source/kubernetes.aio.client.api.apiregistration_v1_api.rst new file mode 100644 index 0000000000..4e86810fd4 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.apiregistration_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.apiregistration\_v1\_api module +========================================================= + +.. automodule:: kubernetes.aio.client.api.apiregistration_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.apis_api.rst b/doc/source/kubernetes.aio.client.api.apis_api.rst new file mode 100644 index 0000000000..dfe4185fc6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.apis_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.apis\_api module +========================================== + +.. automodule:: kubernetes.aio.client.api.apis_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.apps_api.rst b/doc/source/kubernetes.aio.client.api.apps_api.rst new file mode 100644 index 0000000000..2735d686d0 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.apps_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.apps\_api module +========================================== + +.. automodule:: kubernetes.aio.client.api.apps_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.apps_v1_api.rst b/doc/source/kubernetes.aio.client.api.apps_v1_api.rst new file mode 100644 index 0000000000..0909432ec2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.apps_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.apps\_v1\_api module +============================================== + +.. automodule:: kubernetes.aio.client.api.apps_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.authentication_api.rst b/doc/source/kubernetes.aio.client.api.authentication_api.rst new file mode 100644 index 0000000000..d7c9b5fe60 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.authentication_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.authentication\_api module +==================================================== + +.. automodule:: kubernetes.aio.client.api.authentication_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.authentication_v1_api.rst b/doc/source/kubernetes.aio.client.api.authentication_v1_api.rst new file mode 100644 index 0000000000..50dbb2cf6a --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.authentication_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.authentication\_v1\_api module +======================================================== + +.. automodule:: kubernetes.aio.client.api.authentication_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.authorization_api.rst b/doc/source/kubernetes.aio.client.api.authorization_api.rst new file mode 100644 index 0000000000..18cc623e76 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.authorization_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.authorization\_api module +=================================================== + +.. automodule:: kubernetes.aio.client.api.authorization_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.authorization_v1_api.rst b/doc/source/kubernetes.aio.client.api.authorization_v1_api.rst new file mode 100644 index 0000000000..a181651a49 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.authorization_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.authorization\_v1\_api module +======================================================= + +.. automodule:: kubernetes.aio.client.api.authorization_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.autoscaling_api.rst b/doc/source/kubernetes.aio.client.api.autoscaling_api.rst new file mode 100644 index 0000000000..068402201f --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.autoscaling_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.autoscaling\_api module +================================================= + +.. automodule:: kubernetes.aio.client.api.autoscaling_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.autoscaling_v1_api.rst b/doc/source/kubernetes.aio.client.api.autoscaling_v1_api.rst new file mode 100644 index 0000000000..f827cea636 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.autoscaling_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.autoscaling\_v1\_api module +===================================================== + +.. automodule:: kubernetes.aio.client.api.autoscaling_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.autoscaling_v2_api.rst b/doc/source/kubernetes.aio.client.api.autoscaling_v2_api.rst new file mode 100644 index 0000000000..e87542f554 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.autoscaling_v2_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.autoscaling\_v2\_api module +===================================================== + +.. automodule:: kubernetes.aio.client.api.autoscaling_v2_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.batch_api.rst b/doc/source/kubernetes.aio.client.api.batch_api.rst new file mode 100644 index 0000000000..4bdc28a698 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.batch_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.batch\_api module +=========================================== + +.. automodule:: kubernetes.aio.client.api.batch_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.batch_v1_api.rst b/doc/source/kubernetes.aio.client.api.batch_v1_api.rst new file mode 100644 index 0000000000..182bd92f0b --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.batch_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.batch\_v1\_api module +=============================================== + +.. automodule:: kubernetes.aio.client.api.batch_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.certificates_api.rst b/doc/source/kubernetes.aio.client.api.certificates_api.rst new file mode 100644 index 0000000000..6c51f13a79 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.certificates_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.certificates\_api module +================================================== + +.. automodule:: kubernetes.aio.client.api.certificates_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.certificates_v1_api.rst b/doc/source/kubernetes.aio.client.api.certificates_v1_api.rst new file mode 100644 index 0000000000..5da10ca1e1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.certificates_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.certificates\_v1\_api module +====================================================== + +.. automodule:: kubernetes.aio.client.api.certificates_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.certificates_v1alpha1_api.rst b/doc/source/kubernetes.aio.client.api.certificates_v1alpha1_api.rst new file mode 100644 index 0000000000..5375da9e02 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.certificates_v1alpha1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.certificates\_v1alpha1\_api module +============================================================ + +.. automodule:: kubernetes.aio.client.api.certificates_v1alpha1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.certificates_v1beta1_api.rst b/doc/source/kubernetes.aio.client.api.certificates_v1beta1_api.rst new file mode 100644 index 0000000000..acfbd546e7 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.certificates_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.certificates\_v1beta1\_api module +=========================================================== + +.. automodule:: kubernetes.aio.client.api.certificates_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.coordination_api.rst b/doc/source/kubernetes.aio.client.api.coordination_api.rst new file mode 100644 index 0000000000..12c96c116f --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.coordination_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.coordination\_api module +================================================== + +.. automodule:: kubernetes.aio.client.api.coordination_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.coordination_v1_api.rst b/doc/source/kubernetes.aio.client.api.coordination_v1_api.rst new file mode 100644 index 0000000000..fb5d3d0c8a --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.coordination_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.coordination\_v1\_api module +====================================================== + +.. automodule:: kubernetes.aio.client.api.coordination_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.coordination_v1alpha2_api.rst b/doc/source/kubernetes.aio.client.api.coordination_v1alpha2_api.rst new file mode 100644 index 0000000000..f19374217a --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.coordination_v1alpha2_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.coordination\_v1alpha2\_api module +============================================================ + +.. automodule:: kubernetes.aio.client.api.coordination_v1alpha2_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.coordination_v1beta1_api.rst b/doc/source/kubernetes.aio.client.api.coordination_v1beta1_api.rst new file mode 100644 index 0000000000..f7485adbc6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.coordination_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.coordination\_v1beta1\_api module +=========================================================== + +.. automodule:: kubernetes.aio.client.api.coordination_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.core_api.rst b/doc/source/kubernetes.aio.client.api.core_api.rst new file mode 100644 index 0000000000..7d4230200b --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.core_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.core\_api module +========================================== + +.. automodule:: kubernetes.aio.client.api.core_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.core_v1_api.rst b/doc/source/kubernetes.aio.client.api.core_v1_api.rst new file mode 100644 index 0000000000..20a388c9d8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.core_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.core\_v1\_api module +============================================== + +.. automodule:: kubernetes.aio.client.api.core_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.custom_objects_api.rst b/doc/source/kubernetes.aio.client.api.custom_objects_api.rst new file mode 100644 index 0000000000..b1ca04d329 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.custom_objects_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.custom\_objects\_api module +===================================================== + +.. automodule:: kubernetes.aio.client.api.custom_objects_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.discovery_api.rst b/doc/source/kubernetes.aio.client.api.discovery_api.rst new file mode 100644 index 0000000000..d408065fd9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.discovery_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.discovery\_api module +=============================================== + +.. automodule:: kubernetes.aio.client.api.discovery_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.discovery_v1_api.rst b/doc/source/kubernetes.aio.client.api.discovery_v1_api.rst new file mode 100644 index 0000000000..222cbe3f6a --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.discovery_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.discovery\_v1\_api module +=================================================== + +.. automodule:: kubernetes.aio.client.api.discovery_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.events_api.rst b/doc/source/kubernetes.aio.client.api.events_api.rst new file mode 100644 index 0000000000..baf1562c8d --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.events_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.events\_api module +============================================ + +.. automodule:: kubernetes.aio.client.api.events_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.events_v1_api.rst b/doc/source/kubernetes.aio.client.api.events_v1_api.rst new file mode 100644 index 0000000000..662a07d7f7 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.events_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.events\_v1\_api module +================================================ + +.. automodule:: kubernetes.aio.client.api.events_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.flowcontrol_apiserver_api.rst b/doc/source/kubernetes.aio.client.api.flowcontrol_apiserver_api.rst new file mode 100644 index 0000000000..6f7d8a423b --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.flowcontrol_apiserver_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.flowcontrol\_apiserver\_api module +============================================================ + +.. automodule:: kubernetes.aio.client.api.flowcontrol_apiserver_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.flowcontrol_apiserver_v1_api.rst b/doc/source/kubernetes.aio.client.api.flowcontrol_apiserver_v1_api.rst new file mode 100644 index 0000000000..a6d64be461 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.flowcontrol_apiserver_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.flowcontrol\_apiserver\_v1\_api module +================================================================ + +.. automodule:: kubernetes.aio.client.api.flowcontrol_apiserver_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.internal_apiserver_api.rst b/doc/source/kubernetes.aio.client.api.internal_apiserver_api.rst new file mode 100644 index 0000000000..ed145e8ce1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.internal_apiserver_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.internal\_apiserver\_api module +========================================================= + +.. automodule:: kubernetes.aio.client.api.internal_apiserver_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.internal_apiserver_v1alpha1_api.rst b/doc/source/kubernetes.aio.client.api.internal_apiserver_v1alpha1_api.rst new file mode 100644 index 0000000000..b20ce513a8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.internal_apiserver_v1alpha1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.internal\_apiserver\_v1alpha1\_api module +=================================================================== + +.. automodule:: kubernetes.aio.client.api.internal_apiserver_v1alpha1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.logs_api.rst b/doc/source/kubernetes.aio.client.api.logs_api.rst new file mode 100644 index 0000000000..7f1e3a6f9c --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.logs_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.logs\_api module +========================================== + +.. automodule:: kubernetes.aio.client.api.logs_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.networking_api.rst b/doc/source/kubernetes.aio.client.api.networking_api.rst new file mode 100644 index 0000000000..c1eb6f98c6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.networking_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.networking\_api module +================================================ + +.. automodule:: kubernetes.aio.client.api.networking_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.networking_v1_api.rst b/doc/source/kubernetes.aio.client.api.networking_v1_api.rst new file mode 100644 index 0000000000..b4658ac450 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.networking_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.networking\_v1\_api module +==================================================== + +.. automodule:: kubernetes.aio.client.api.networking_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.networking_v1beta1_api.rst b/doc/source/kubernetes.aio.client.api.networking_v1beta1_api.rst new file mode 100644 index 0000000000..0e9d79ca02 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.networking_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.networking\_v1beta1\_api module +========================================================= + +.. automodule:: kubernetes.aio.client.api.networking_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.node_api.rst b/doc/source/kubernetes.aio.client.api.node_api.rst new file mode 100644 index 0000000000..43cf39e0d9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.node_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.node\_api module +========================================== + +.. automodule:: kubernetes.aio.client.api.node_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.node_v1_api.rst b/doc/source/kubernetes.aio.client.api.node_v1_api.rst new file mode 100644 index 0000000000..68911f9b10 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.node_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.node\_v1\_api module +============================================== + +.. automodule:: kubernetes.aio.client.api.node_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.openid_api.rst b/doc/source/kubernetes.aio.client.api.openid_api.rst new file mode 100644 index 0000000000..80582a73e6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.openid_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.openid\_api module +============================================ + +.. automodule:: kubernetes.aio.client.api.openid_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.policy_api.rst b/doc/source/kubernetes.aio.client.api.policy_api.rst new file mode 100644 index 0000000000..2ab559d8fc --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.policy_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.policy\_api module +============================================ + +.. automodule:: kubernetes.aio.client.api.policy_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.policy_v1_api.rst b/doc/source/kubernetes.aio.client.api.policy_v1_api.rst new file mode 100644 index 0000000000..aca6846bc7 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.policy_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.policy\_v1\_api module +================================================ + +.. automodule:: kubernetes.aio.client.api.policy_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.rbac_authorization_api.rst b/doc/source/kubernetes.aio.client.api.rbac_authorization_api.rst new file mode 100644 index 0000000000..3ff0dc70b4 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.rbac_authorization_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.rbac\_authorization\_api module +========================================================= + +.. automodule:: kubernetes.aio.client.api.rbac_authorization_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.rbac_authorization_v1_api.rst b/doc/source/kubernetes.aio.client.api.rbac_authorization_v1_api.rst new file mode 100644 index 0000000000..4bf661c333 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.rbac_authorization_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.rbac\_authorization\_v1\_api module +============================================================= + +.. automodule:: kubernetes.aio.client.api.rbac_authorization_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.resource_api.rst b/doc/source/kubernetes.aio.client.api.resource_api.rst new file mode 100644 index 0000000000..cad1a6a03b --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.resource_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.resource\_api module +============================================== + +.. automodule:: kubernetes.aio.client.api.resource_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.resource_v1_api.rst b/doc/source/kubernetes.aio.client.api.resource_v1_api.rst new file mode 100644 index 0000000000..df78a66b7e --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.resource_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.resource\_v1\_api module +================================================== + +.. automodule:: kubernetes.aio.client.api.resource_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.resource_v1alpha3_api.rst b/doc/source/kubernetes.aio.client.api.resource_v1alpha3_api.rst new file mode 100644 index 0000000000..a206bb9503 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.resource_v1alpha3_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.resource\_v1alpha3\_api module +======================================================== + +.. automodule:: kubernetes.aio.client.api.resource_v1alpha3_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.resource_v1beta1_api.rst b/doc/source/kubernetes.aio.client.api.resource_v1beta1_api.rst new file mode 100644 index 0000000000..d6dbcc1ae4 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.resource_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.resource\_v1beta1\_api module +======================================================= + +.. automodule:: kubernetes.aio.client.api.resource_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.resource_v1beta2_api.rst b/doc/source/kubernetes.aio.client.api.resource_v1beta2_api.rst new file mode 100644 index 0000000000..01aacbede7 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.resource_v1beta2_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.resource\_v1beta2\_api module +======================================================= + +.. automodule:: kubernetes.aio.client.api.resource_v1beta2_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.rst b/doc/source/kubernetes.aio.client.api.rst new file mode 100644 index 0000000000..abc70515b4 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.rst @@ -0,0 +1,82 @@ +kubernetes.aio.client.api package +================================= + +Submodules +---------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.aio.client.api.admissionregistration_api + kubernetes.aio.client.api.admissionregistration_v1_api + kubernetes.aio.client.api.admissionregistration_v1alpha1_api + kubernetes.aio.client.api.admissionregistration_v1beta1_api + kubernetes.aio.client.api.apiextensions_api + kubernetes.aio.client.api.apiextensions_v1_api + kubernetes.aio.client.api.apiregistration_api + kubernetes.aio.client.api.apiregistration_v1_api + kubernetes.aio.client.api.apis_api + kubernetes.aio.client.api.apps_api + kubernetes.aio.client.api.apps_v1_api + kubernetes.aio.client.api.authentication_api + kubernetes.aio.client.api.authentication_v1_api + kubernetes.aio.client.api.authorization_api + kubernetes.aio.client.api.authorization_v1_api + kubernetes.aio.client.api.autoscaling_api + kubernetes.aio.client.api.autoscaling_v1_api + kubernetes.aio.client.api.autoscaling_v2_api + kubernetes.aio.client.api.batch_api + kubernetes.aio.client.api.batch_v1_api + kubernetes.aio.client.api.certificates_api + kubernetes.aio.client.api.certificates_v1_api + kubernetes.aio.client.api.certificates_v1alpha1_api + kubernetes.aio.client.api.certificates_v1beta1_api + kubernetes.aio.client.api.coordination_api + kubernetes.aio.client.api.coordination_v1_api + kubernetes.aio.client.api.coordination_v1alpha2_api + kubernetes.aio.client.api.coordination_v1beta1_api + kubernetes.aio.client.api.core_api + kubernetes.aio.client.api.core_v1_api + kubernetes.aio.client.api.custom_objects_api + kubernetes.aio.client.api.discovery_api + kubernetes.aio.client.api.discovery_v1_api + kubernetes.aio.client.api.events_api + kubernetes.aio.client.api.events_v1_api + kubernetes.aio.client.api.flowcontrol_apiserver_api + kubernetes.aio.client.api.flowcontrol_apiserver_v1_api + kubernetes.aio.client.api.internal_apiserver_api + kubernetes.aio.client.api.internal_apiserver_v1alpha1_api + kubernetes.aio.client.api.logs_api + kubernetes.aio.client.api.networking_api + kubernetes.aio.client.api.networking_v1_api + kubernetes.aio.client.api.networking_v1beta1_api + kubernetes.aio.client.api.node_api + kubernetes.aio.client.api.node_v1_api + kubernetes.aio.client.api.openid_api + kubernetes.aio.client.api.policy_api + kubernetes.aio.client.api.policy_v1_api + kubernetes.aio.client.api.rbac_authorization_api + kubernetes.aio.client.api.rbac_authorization_v1_api + kubernetes.aio.client.api.resource_api + kubernetes.aio.client.api.resource_v1_api + kubernetes.aio.client.api.resource_v1alpha3_api + kubernetes.aio.client.api.resource_v1beta1_api + kubernetes.aio.client.api.resource_v1beta2_api + kubernetes.aio.client.api.scheduling_api + kubernetes.aio.client.api.scheduling_v1_api + kubernetes.aio.client.api.scheduling_v1alpha2_api + kubernetes.aio.client.api.storage_api + kubernetes.aio.client.api.storage_v1_api + kubernetes.aio.client.api.storage_v1beta1_api + kubernetes.aio.client.api.storagemigration_api + kubernetes.aio.client.api.storagemigration_v1beta1_api + kubernetes.aio.client.api.version_api + kubernetes.aio.client.api.well_known_api + +Module contents +--------------- + +.. automodule:: kubernetes.aio.client.api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.scheduling_api.rst b/doc/source/kubernetes.aio.client.api.scheduling_api.rst new file mode 100644 index 0000000000..82eec74ae9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.scheduling_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.scheduling\_api module +================================================ + +.. automodule:: kubernetes.aio.client.api.scheduling_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.scheduling_v1_api.rst b/doc/source/kubernetes.aio.client.api.scheduling_v1_api.rst new file mode 100644 index 0000000000..b69a7c2fde --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.scheduling_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.scheduling\_v1\_api module +==================================================== + +.. automodule:: kubernetes.aio.client.api.scheduling_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.scheduling_v1alpha2_api.rst b/doc/source/kubernetes.aio.client.api.scheduling_v1alpha2_api.rst new file mode 100644 index 0000000000..51fb050840 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.scheduling_v1alpha2_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.scheduling\_v1alpha2\_api module +========================================================== + +.. automodule:: kubernetes.aio.client.api.scheduling_v1alpha2_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.storage_api.rst b/doc/source/kubernetes.aio.client.api.storage_api.rst new file mode 100644 index 0000000000..a2709969ae --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.storage_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.storage\_api module +============================================= + +.. automodule:: kubernetes.aio.client.api.storage_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.storage_v1_api.rst b/doc/source/kubernetes.aio.client.api.storage_v1_api.rst new file mode 100644 index 0000000000..0145eb2e39 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.storage_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.storage\_v1\_api module +================================================= + +.. automodule:: kubernetes.aio.client.api.storage_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.storage_v1beta1_api.rst b/doc/source/kubernetes.aio.client.api.storage_v1beta1_api.rst new file mode 100644 index 0000000000..c1d14e78cc --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.storage_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.storage\_v1beta1\_api module +====================================================== + +.. automodule:: kubernetes.aio.client.api.storage_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.storagemigration_api.rst b/doc/source/kubernetes.aio.client.api.storagemigration_api.rst new file mode 100644 index 0000000000..3d49ef39ef --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.storagemigration_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.storagemigration\_api module +====================================================== + +.. automodule:: kubernetes.aio.client.api.storagemigration_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.storagemigration_v1beta1_api.rst b/doc/source/kubernetes.aio.client.api.storagemigration_v1beta1_api.rst new file mode 100644 index 0000000000..75d791562f --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.storagemigration_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.storagemigration\_v1beta1\_api module +=============================================================== + +.. automodule:: kubernetes.aio.client.api.storagemigration_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.version_api.rst b/doc/source/kubernetes.aio.client.api.version_api.rst new file mode 100644 index 0000000000..87f7c4035c --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.version_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.version\_api module +============================================= + +.. automodule:: kubernetes.aio.client.api.version_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api.well_known_api.rst b/doc/source/kubernetes.aio.client.api.well_known_api.rst new file mode 100644 index 0000000000..932cd37541 --- /dev/null +++ b/doc/source/kubernetes.aio.client.api.well_known_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api.well\_known\_api module +================================================= + +.. automodule:: kubernetes.aio.client.api.well_known_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api_client.rst b/doc/source/kubernetes.aio.client.api_client.rst new file mode 100644 index 0000000000..520eda96df --- /dev/null +++ b/doc/source/kubernetes.aio.client.api_client.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api\_client module +======================================== + +.. automodule:: kubernetes.aio.client.api_client + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.api_response.rst b/doc/source/kubernetes.aio.client.api_response.rst new file mode 100644 index 0000000000..6b5496be8a --- /dev/null +++ b/doc/source/kubernetes.aio.client.api_response.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.api\_response module +========================================== + +.. automodule:: kubernetes.aio.client.api_response + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.configuration.rst b/doc/source/kubernetes.aio.client.configuration.rst new file mode 100644 index 0000000000..685319cb98 --- /dev/null +++ b/doc/source/kubernetes.aio.client.configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.configuration module +========================================== + +.. automodule:: kubernetes.aio.client.configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.exceptions.rst b/doc/source/kubernetes.aio.client.exceptions.rst new file mode 100644 index 0000000000..f8dbb425cc --- /dev/null +++ b/doc/source/kubernetes.aio.client.exceptions.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.exceptions module +======================================= + +.. automodule:: kubernetes.aio.client.exceptions + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.admissionregistration_v1_service_reference.rst b/doc/source/kubernetes.aio.client.models.admissionregistration_v1_service_reference.rst new file mode 100644 index 0000000000..e705e9eab9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.admissionregistration_v1_service_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.admissionregistration\_v1\_service\_reference module +================================================================================= + +.. automodule:: kubernetes.aio.client.models.admissionregistration_v1_service_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.admissionregistration_v1_webhook_client_config.rst b/doc/source/kubernetes.aio.client.models.admissionregistration_v1_webhook_client_config.rst new file mode 100644 index 0000000000..4ea22f6d31 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.admissionregistration_v1_webhook_client_config.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.admissionregistration\_v1\_webhook\_client\_config module +====================================================================================== + +.. automodule:: kubernetes.aio.client.models.admissionregistration_v1_webhook_client_config + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.apiextensions_v1_service_reference.rst b/doc/source/kubernetes.aio.client.models.apiextensions_v1_service_reference.rst new file mode 100644 index 0000000000..b2f8d7b078 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.apiextensions_v1_service_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.apiextensions\_v1\_service\_reference module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.apiextensions_v1_service_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.apiextensions_v1_webhook_client_config.rst b/doc/source/kubernetes.aio.client.models.apiextensions_v1_webhook_client_config.rst new file mode 100644 index 0000000000..618e69c12b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.apiextensions_v1_webhook_client_config.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.apiextensions\_v1\_webhook\_client\_config module +============================================================================== + +.. automodule:: kubernetes.aio.client.models.apiextensions_v1_webhook_client_config + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.apiregistration_v1_service_reference.rst b/doc/source/kubernetes.aio.client.models.apiregistration_v1_service_reference.rst new file mode 100644 index 0000000000..a221d85c1e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.apiregistration_v1_service_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.apiregistration\_v1\_service\_reference module +=========================================================================== + +.. automodule:: kubernetes.aio.client.models.apiregistration_v1_service_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.authentication_v1_token_request.rst b/doc/source/kubernetes.aio.client.models.authentication_v1_token_request.rst new file mode 100644 index 0000000000..d65c32d090 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.authentication_v1_token_request.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.authentication\_v1\_token\_request module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.authentication_v1_token_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.core_v1_endpoint_port.rst b/doc/source/kubernetes.aio.client.models.core_v1_endpoint_port.rst new file mode 100644 index 0000000000..4aa09a1734 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.core_v1_endpoint_port.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.core\_v1\_endpoint\_port module +============================================================ + +.. automodule:: kubernetes.aio.client.models.core_v1_endpoint_port + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.core_v1_event.rst b/doc/source/kubernetes.aio.client.models.core_v1_event.rst new file mode 100644 index 0000000000..7d9433d2c7 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.core_v1_event.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.core\_v1\_event module +=================================================== + +.. automodule:: kubernetes.aio.client.models.core_v1_event + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.core_v1_event_list.rst b/doc/source/kubernetes.aio.client.models.core_v1_event_list.rst new file mode 100644 index 0000000000..ee6ed55f79 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.core_v1_event_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.core\_v1\_event\_list module +========================================================= + +.. automodule:: kubernetes.aio.client.models.core_v1_event_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.core_v1_event_series.rst b/doc/source/kubernetes.aio.client.models.core_v1_event_series.rst new file mode 100644 index 0000000000..c2bea5ed50 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.core_v1_event_series.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.core\_v1\_event\_series module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.core_v1_event_series + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.core_v1_resource_claim.rst b/doc/source/kubernetes.aio.client.models.core_v1_resource_claim.rst new file mode 100644 index 0000000000..8d93f30943 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.core_v1_resource_claim.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.core\_v1\_resource\_claim module +============================================================= + +.. automodule:: kubernetes.aio.client.models.core_v1_resource_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.discovery_v1_endpoint_port.rst b/doc/source/kubernetes.aio.client.models.discovery_v1_endpoint_port.rst new file mode 100644 index 0000000000..8537d562e2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.discovery_v1_endpoint_port.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.discovery\_v1\_endpoint\_port module +================================================================= + +.. automodule:: kubernetes.aio.client.models.discovery_v1_endpoint_port + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.events_v1_event.rst b/doc/source/kubernetes.aio.client.models.events_v1_event.rst new file mode 100644 index 0000000000..779231e6ef --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.events_v1_event.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.events\_v1\_event module +===================================================== + +.. automodule:: kubernetes.aio.client.models.events_v1_event + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.events_v1_event_list.rst b/doc/source/kubernetes.aio.client.models.events_v1_event_list.rst new file mode 100644 index 0000000000..c6c738b28d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.events_v1_event_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.events\_v1\_event\_list module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.events_v1_event_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.events_v1_event_series.rst b/doc/source/kubernetes.aio.client.models.events_v1_event_series.rst new file mode 100644 index 0000000000..e39983aad7 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.events_v1_event_series.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.events\_v1\_event\_series module +============================================================= + +.. automodule:: kubernetes.aio.client.models.events_v1_event_series + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.flowcontrol_v1_subject.rst b/doc/source/kubernetes.aio.client.models.flowcontrol_v1_subject.rst new file mode 100644 index 0000000000..67d60aac48 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.flowcontrol_v1_subject.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.flowcontrol\_v1\_subject module +============================================================ + +.. automodule:: kubernetes.aio.client.models.flowcontrol_v1_subject + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.rbac_v1_subject.rst b/doc/source/kubernetes.aio.client.models.rbac_v1_subject.rst new file mode 100644 index 0000000000..780d9927b2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.rbac_v1_subject.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.rbac\_v1\_subject module +===================================================== + +.. automodule:: kubernetes.aio.client.models.rbac_v1_subject + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.resource_v1_resource_claim.rst b/doc/source/kubernetes.aio.client.models.resource_v1_resource_claim.rst new file mode 100644 index 0000000000..4902e6d321 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.resource_v1_resource_claim.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.resource\_v1\_resource\_claim module +================================================================= + +.. automodule:: kubernetes.aio.client.models.resource_v1_resource_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.rst b/doc/source/kubernetes.aio.client.models.rst new file mode 100644 index 0000000000..41498cf906 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.rst @@ -0,0 +1,785 @@ +kubernetes.aio.client.models package +==================================== + +Submodules +---------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.aio.client.models.admissionregistration_v1_service_reference + kubernetes.aio.client.models.admissionregistration_v1_webhook_client_config + kubernetes.aio.client.models.apiextensions_v1_service_reference + kubernetes.aio.client.models.apiextensions_v1_webhook_client_config + kubernetes.aio.client.models.apiregistration_v1_service_reference + kubernetes.aio.client.models.authentication_v1_token_request + kubernetes.aio.client.models.core_v1_endpoint_port + kubernetes.aio.client.models.core_v1_event + kubernetes.aio.client.models.core_v1_event_list + kubernetes.aio.client.models.core_v1_event_series + kubernetes.aio.client.models.core_v1_resource_claim + kubernetes.aio.client.models.discovery_v1_endpoint_port + kubernetes.aio.client.models.events_v1_event + kubernetes.aio.client.models.events_v1_event_list + kubernetes.aio.client.models.events_v1_event_series + kubernetes.aio.client.models.flowcontrol_v1_subject + kubernetes.aio.client.models.rbac_v1_subject + kubernetes.aio.client.models.resource_v1_resource_claim + kubernetes.aio.client.models.storage_v1_token_request + kubernetes.aio.client.models.v1_affinity + kubernetes.aio.client.models.v1_aggregation_rule + kubernetes.aio.client.models.v1_allocated_device_status + kubernetes.aio.client.models.v1_allocation_result + kubernetes.aio.client.models.v1_api_group + kubernetes.aio.client.models.v1_api_group_list + kubernetes.aio.client.models.v1_api_resource + kubernetes.aio.client.models.v1_api_resource_list + kubernetes.aio.client.models.v1_api_service + kubernetes.aio.client.models.v1_api_service_condition + kubernetes.aio.client.models.v1_api_service_list + kubernetes.aio.client.models.v1_api_service_spec + kubernetes.aio.client.models.v1_api_service_status + kubernetes.aio.client.models.v1_api_versions + kubernetes.aio.client.models.v1_app_armor_profile + kubernetes.aio.client.models.v1_apply_configuration + kubernetes.aio.client.models.v1_attached_volume + kubernetes.aio.client.models.v1_audit_annotation + kubernetes.aio.client.models.v1_aws_elastic_block_store_volume_source + kubernetes.aio.client.models.v1_azure_disk_volume_source + kubernetes.aio.client.models.v1_azure_file_persistent_volume_source + kubernetes.aio.client.models.v1_azure_file_volume_source + kubernetes.aio.client.models.v1_binding + kubernetes.aio.client.models.v1_bound_object_reference + kubernetes.aio.client.models.v1_capabilities + kubernetes.aio.client.models.v1_capacity_request_policy + kubernetes.aio.client.models.v1_capacity_request_policy_range + kubernetes.aio.client.models.v1_capacity_requirements + kubernetes.aio.client.models.v1_cel_device_selector + kubernetes.aio.client.models.v1_ceph_fs_persistent_volume_source + kubernetes.aio.client.models.v1_ceph_fs_volume_source + kubernetes.aio.client.models.v1_certificate_signing_request + kubernetes.aio.client.models.v1_certificate_signing_request_condition + kubernetes.aio.client.models.v1_certificate_signing_request_list + kubernetes.aio.client.models.v1_certificate_signing_request_spec + kubernetes.aio.client.models.v1_certificate_signing_request_status + kubernetes.aio.client.models.v1_cinder_persistent_volume_source + kubernetes.aio.client.models.v1_cinder_volume_source + kubernetes.aio.client.models.v1_client_ip_config + kubernetes.aio.client.models.v1_cluster_role + kubernetes.aio.client.models.v1_cluster_role_binding + kubernetes.aio.client.models.v1_cluster_role_binding_list + kubernetes.aio.client.models.v1_cluster_role_list + kubernetes.aio.client.models.v1_cluster_trust_bundle_projection + kubernetes.aio.client.models.v1_component_condition + kubernetes.aio.client.models.v1_component_status + kubernetes.aio.client.models.v1_component_status_list + kubernetes.aio.client.models.v1_condition + kubernetes.aio.client.models.v1_config_map + kubernetes.aio.client.models.v1_config_map_env_source + kubernetes.aio.client.models.v1_config_map_key_selector + kubernetes.aio.client.models.v1_config_map_list + kubernetes.aio.client.models.v1_config_map_node_config_source + kubernetes.aio.client.models.v1_config_map_projection + kubernetes.aio.client.models.v1_config_map_volume_source + kubernetes.aio.client.models.v1_container + kubernetes.aio.client.models.v1_container_extended_resource_request + kubernetes.aio.client.models.v1_container_image + kubernetes.aio.client.models.v1_container_port + kubernetes.aio.client.models.v1_container_resize_policy + kubernetes.aio.client.models.v1_container_restart_rule + kubernetes.aio.client.models.v1_container_restart_rule_on_exit_codes + kubernetes.aio.client.models.v1_container_state + kubernetes.aio.client.models.v1_container_state_running + kubernetes.aio.client.models.v1_container_state_terminated + kubernetes.aio.client.models.v1_container_state_waiting + kubernetes.aio.client.models.v1_container_status + kubernetes.aio.client.models.v1_container_user + kubernetes.aio.client.models.v1_controller_revision + kubernetes.aio.client.models.v1_controller_revision_list + kubernetes.aio.client.models.v1_counter + kubernetes.aio.client.models.v1_counter_set + kubernetes.aio.client.models.v1_cron_job + kubernetes.aio.client.models.v1_cron_job_list + kubernetes.aio.client.models.v1_cron_job_spec + kubernetes.aio.client.models.v1_cron_job_status + kubernetes.aio.client.models.v1_cross_version_object_reference + kubernetes.aio.client.models.v1_csi_driver + kubernetes.aio.client.models.v1_csi_driver_list + kubernetes.aio.client.models.v1_csi_driver_spec + kubernetes.aio.client.models.v1_csi_node + kubernetes.aio.client.models.v1_csi_node_driver + kubernetes.aio.client.models.v1_csi_node_list + kubernetes.aio.client.models.v1_csi_node_spec + kubernetes.aio.client.models.v1_csi_persistent_volume_source + kubernetes.aio.client.models.v1_csi_storage_capacity + kubernetes.aio.client.models.v1_csi_storage_capacity_list + kubernetes.aio.client.models.v1_csi_volume_source + kubernetes.aio.client.models.v1_custom_resource_column_definition + kubernetes.aio.client.models.v1_custom_resource_conversion + kubernetes.aio.client.models.v1_custom_resource_definition + kubernetes.aio.client.models.v1_custom_resource_definition_condition + kubernetes.aio.client.models.v1_custom_resource_definition_list + kubernetes.aio.client.models.v1_custom_resource_definition_names + kubernetes.aio.client.models.v1_custom_resource_definition_spec + kubernetes.aio.client.models.v1_custom_resource_definition_status + kubernetes.aio.client.models.v1_custom_resource_definition_version + kubernetes.aio.client.models.v1_custom_resource_subresource_scale + kubernetes.aio.client.models.v1_custom_resource_subresources + kubernetes.aio.client.models.v1_custom_resource_validation + kubernetes.aio.client.models.v1_daemon_endpoint + kubernetes.aio.client.models.v1_daemon_set + kubernetes.aio.client.models.v1_daemon_set_condition + kubernetes.aio.client.models.v1_daemon_set_list + kubernetes.aio.client.models.v1_daemon_set_spec + kubernetes.aio.client.models.v1_daemon_set_status + kubernetes.aio.client.models.v1_daemon_set_update_strategy + kubernetes.aio.client.models.v1_delete_options + kubernetes.aio.client.models.v1_deployment + kubernetes.aio.client.models.v1_deployment_condition + kubernetes.aio.client.models.v1_deployment_list + kubernetes.aio.client.models.v1_deployment_spec + kubernetes.aio.client.models.v1_deployment_status + kubernetes.aio.client.models.v1_deployment_strategy + kubernetes.aio.client.models.v1_device + kubernetes.aio.client.models.v1_device_allocation_configuration + kubernetes.aio.client.models.v1_device_allocation_result + kubernetes.aio.client.models.v1_device_attribute + kubernetes.aio.client.models.v1_device_capacity + kubernetes.aio.client.models.v1_device_claim + kubernetes.aio.client.models.v1_device_claim_configuration + kubernetes.aio.client.models.v1_device_class + kubernetes.aio.client.models.v1_device_class_configuration + kubernetes.aio.client.models.v1_device_class_list + kubernetes.aio.client.models.v1_device_class_spec + kubernetes.aio.client.models.v1_device_constraint + kubernetes.aio.client.models.v1_device_counter_consumption + kubernetes.aio.client.models.v1_device_request + kubernetes.aio.client.models.v1_device_request_allocation_result + kubernetes.aio.client.models.v1_device_selector + kubernetes.aio.client.models.v1_device_sub_request + kubernetes.aio.client.models.v1_device_taint + kubernetes.aio.client.models.v1_device_toleration + kubernetes.aio.client.models.v1_downward_api_projection + kubernetes.aio.client.models.v1_downward_api_volume_file + kubernetes.aio.client.models.v1_downward_api_volume_source + kubernetes.aio.client.models.v1_empty_dir_volume_source + kubernetes.aio.client.models.v1_endpoint + kubernetes.aio.client.models.v1_endpoint_address + kubernetes.aio.client.models.v1_endpoint_conditions + kubernetes.aio.client.models.v1_endpoint_hints + kubernetes.aio.client.models.v1_endpoint_slice + kubernetes.aio.client.models.v1_endpoint_slice_list + kubernetes.aio.client.models.v1_endpoint_subset + kubernetes.aio.client.models.v1_endpoints + kubernetes.aio.client.models.v1_endpoints_list + kubernetes.aio.client.models.v1_env_from_source + kubernetes.aio.client.models.v1_env_var + kubernetes.aio.client.models.v1_env_var_source + kubernetes.aio.client.models.v1_ephemeral_container + kubernetes.aio.client.models.v1_ephemeral_volume_source + kubernetes.aio.client.models.v1_event_source + kubernetes.aio.client.models.v1_eviction + kubernetes.aio.client.models.v1_exact_device_request + kubernetes.aio.client.models.v1_exec_action + kubernetes.aio.client.models.v1_exempt_priority_level_configuration + kubernetes.aio.client.models.v1_expression_warning + kubernetes.aio.client.models.v1_external_documentation + kubernetes.aio.client.models.v1_fc_volume_source + kubernetes.aio.client.models.v1_field_selector_attributes + kubernetes.aio.client.models.v1_field_selector_requirement + kubernetes.aio.client.models.v1_file_key_selector + kubernetes.aio.client.models.v1_flex_persistent_volume_source + kubernetes.aio.client.models.v1_flex_volume_source + kubernetes.aio.client.models.v1_flocker_volume_source + kubernetes.aio.client.models.v1_flow_distinguisher_method + kubernetes.aio.client.models.v1_flow_schema + kubernetes.aio.client.models.v1_flow_schema_condition + kubernetes.aio.client.models.v1_flow_schema_list + kubernetes.aio.client.models.v1_flow_schema_spec + kubernetes.aio.client.models.v1_flow_schema_status + kubernetes.aio.client.models.v1_for_node + kubernetes.aio.client.models.v1_for_zone + kubernetes.aio.client.models.v1_gce_persistent_disk_volume_source + kubernetes.aio.client.models.v1_git_repo_volume_source + kubernetes.aio.client.models.v1_glusterfs_persistent_volume_source + kubernetes.aio.client.models.v1_glusterfs_volume_source + kubernetes.aio.client.models.v1_group_resource + kubernetes.aio.client.models.v1_group_subject + kubernetes.aio.client.models.v1_group_version_for_discovery + kubernetes.aio.client.models.v1_group_version_kind + kubernetes.aio.client.models.v1_grpc_action + kubernetes.aio.client.models.v1_horizontal_pod_autoscaler + kubernetes.aio.client.models.v1_horizontal_pod_autoscaler_list + kubernetes.aio.client.models.v1_horizontal_pod_autoscaler_spec + kubernetes.aio.client.models.v1_horizontal_pod_autoscaler_status + kubernetes.aio.client.models.v1_host_alias + kubernetes.aio.client.models.v1_host_ip + kubernetes.aio.client.models.v1_host_path_volume_source + kubernetes.aio.client.models.v1_http_get_action + kubernetes.aio.client.models.v1_http_header + kubernetes.aio.client.models.v1_http_ingress_path + kubernetes.aio.client.models.v1_http_ingress_rule_value + kubernetes.aio.client.models.v1_image_volume_source + kubernetes.aio.client.models.v1_image_volume_status + kubernetes.aio.client.models.v1_ingress + kubernetes.aio.client.models.v1_ingress_backend + kubernetes.aio.client.models.v1_ingress_class + kubernetes.aio.client.models.v1_ingress_class_list + kubernetes.aio.client.models.v1_ingress_class_parameters_reference + kubernetes.aio.client.models.v1_ingress_class_spec + kubernetes.aio.client.models.v1_ingress_list + kubernetes.aio.client.models.v1_ingress_load_balancer_ingress + kubernetes.aio.client.models.v1_ingress_load_balancer_status + kubernetes.aio.client.models.v1_ingress_port_status + kubernetes.aio.client.models.v1_ingress_rule + kubernetes.aio.client.models.v1_ingress_service_backend + kubernetes.aio.client.models.v1_ingress_spec + kubernetes.aio.client.models.v1_ingress_status + kubernetes.aio.client.models.v1_ingress_tls + kubernetes.aio.client.models.v1_ip_address + kubernetes.aio.client.models.v1_ip_address_list + kubernetes.aio.client.models.v1_ip_address_spec + kubernetes.aio.client.models.v1_ip_block + kubernetes.aio.client.models.v1_iscsi_persistent_volume_source + kubernetes.aio.client.models.v1_iscsi_volume_source + kubernetes.aio.client.models.v1_job + kubernetes.aio.client.models.v1_job_condition + kubernetes.aio.client.models.v1_job_list + kubernetes.aio.client.models.v1_job_spec + kubernetes.aio.client.models.v1_job_status + kubernetes.aio.client.models.v1_job_template_spec + kubernetes.aio.client.models.v1_json_patch + kubernetes.aio.client.models.v1_json_schema_props + kubernetes.aio.client.models.v1_key_to_path + kubernetes.aio.client.models.v1_label_selector + kubernetes.aio.client.models.v1_label_selector_attributes + kubernetes.aio.client.models.v1_label_selector_requirement + kubernetes.aio.client.models.v1_lease + kubernetes.aio.client.models.v1_lease_list + kubernetes.aio.client.models.v1_lease_spec + kubernetes.aio.client.models.v1_lifecycle + kubernetes.aio.client.models.v1_lifecycle_handler + kubernetes.aio.client.models.v1_limit_range + kubernetes.aio.client.models.v1_limit_range_item + kubernetes.aio.client.models.v1_limit_range_list + kubernetes.aio.client.models.v1_limit_range_spec + kubernetes.aio.client.models.v1_limit_response + kubernetes.aio.client.models.v1_limited_priority_level_configuration + kubernetes.aio.client.models.v1_linux_container_user + kubernetes.aio.client.models.v1_list_meta + kubernetes.aio.client.models.v1_load_balancer_ingress + kubernetes.aio.client.models.v1_load_balancer_status + kubernetes.aio.client.models.v1_local_object_reference + kubernetes.aio.client.models.v1_local_subject_access_review + kubernetes.aio.client.models.v1_local_volume_source + kubernetes.aio.client.models.v1_managed_fields_entry + kubernetes.aio.client.models.v1_match_condition + kubernetes.aio.client.models.v1_match_resources + kubernetes.aio.client.models.v1_modify_volume_status + kubernetes.aio.client.models.v1_mutating_admission_policy + kubernetes.aio.client.models.v1_mutating_admission_policy_binding + kubernetes.aio.client.models.v1_mutating_admission_policy_binding_list + kubernetes.aio.client.models.v1_mutating_admission_policy_binding_spec + kubernetes.aio.client.models.v1_mutating_admission_policy_list + kubernetes.aio.client.models.v1_mutating_admission_policy_spec + kubernetes.aio.client.models.v1_mutating_webhook + kubernetes.aio.client.models.v1_mutating_webhook_configuration + kubernetes.aio.client.models.v1_mutating_webhook_configuration_list + kubernetes.aio.client.models.v1_mutation + kubernetes.aio.client.models.v1_named_rule_with_operations + kubernetes.aio.client.models.v1_namespace + kubernetes.aio.client.models.v1_namespace_condition + kubernetes.aio.client.models.v1_namespace_list + kubernetes.aio.client.models.v1_namespace_spec + kubernetes.aio.client.models.v1_namespace_status + kubernetes.aio.client.models.v1_network_device_data + kubernetes.aio.client.models.v1_network_policy + kubernetes.aio.client.models.v1_network_policy_egress_rule + kubernetes.aio.client.models.v1_network_policy_ingress_rule + kubernetes.aio.client.models.v1_network_policy_list + kubernetes.aio.client.models.v1_network_policy_peer + kubernetes.aio.client.models.v1_network_policy_port + kubernetes.aio.client.models.v1_network_policy_spec + kubernetes.aio.client.models.v1_nfs_volume_source + kubernetes.aio.client.models.v1_node + kubernetes.aio.client.models.v1_node_address + kubernetes.aio.client.models.v1_node_affinity + kubernetes.aio.client.models.v1_node_allocatable_resource_claim_status + kubernetes.aio.client.models.v1_node_allocatable_resource_mapping + kubernetes.aio.client.models.v1_node_condition + kubernetes.aio.client.models.v1_node_config_source + kubernetes.aio.client.models.v1_node_config_status + kubernetes.aio.client.models.v1_node_daemon_endpoints + kubernetes.aio.client.models.v1_node_features + kubernetes.aio.client.models.v1_node_list + kubernetes.aio.client.models.v1_node_runtime_handler + kubernetes.aio.client.models.v1_node_runtime_handler_features + kubernetes.aio.client.models.v1_node_selector + kubernetes.aio.client.models.v1_node_selector_requirement + kubernetes.aio.client.models.v1_node_selector_term + kubernetes.aio.client.models.v1_node_spec + kubernetes.aio.client.models.v1_node_status + kubernetes.aio.client.models.v1_node_swap_status + kubernetes.aio.client.models.v1_node_system_info + kubernetes.aio.client.models.v1_non_resource_attributes + kubernetes.aio.client.models.v1_non_resource_policy_rule + kubernetes.aio.client.models.v1_non_resource_rule + kubernetes.aio.client.models.v1_object_field_selector + kubernetes.aio.client.models.v1_object_meta + kubernetes.aio.client.models.v1_object_reference + kubernetes.aio.client.models.v1_opaque_device_configuration + kubernetes.aio.client.models.v1_overhead + kubernetes.aio.client.models.v1_owner_reference + kubernetes.aio.client.models.v1_param_kind + kubernetes.aio.client.models.v1_param_ref + kubernetes.aio.client.models.v1_parent_reference + kubernetes.aio.client.models.v1_persistent_volume + kubernetes.aio.client.models.v1_persistent_volume_claim + kubernetes.aio.client.models.v1_persistent_volume_claim_condition + kubernetes.aio.client.models.v1_persistent_volume_claim_list + kubernetes.aio.client.models.v1_persistent_volume_claim_spec + kubernetes.aio.client.models.v1_persistent_volume_claim_status + kubernetes.aio.client.models.v1_persistent_volume_claim_template + kubernetes.aio.client.models.v1_persistent_volume_claim_volume_source + kubernetes.aio.client.models.v1_persistent_volume_list + kubernetes.aio.client.models.v1_persistent_volume_spec + kubernetes.aio.client.models.v1_persistent_volume_status + kubernetes.aio.client.models.v1_photon_persistent_disk_volume_source + kubernetes.aio.client.models.v1_pod + kubernetes.aio.client.models.v1_pod_affinity + kubernetes.aio.client.models.v1_pod_affinity_term + kubernetes.aio.client.models.v1_pod_anti_affinity + kubernetes.aio.client.models.v1_pod_certificate_projection + kubernetes.aio.client.models.v1_pod_condition + kubernetes.aio.client.models.v1_pod_disruption_budget + kubernetes.aio.client.models.v1_pod_disruption_budget_list + kubernetes.aio.client.models.v1_pod_disruption_budget_spec + kubernetes.aio.client.models.v1_pod_disruption_budget_status + kubernetes.aio.client.models.v1_pod_dns_config + kubernetes.aio.client.models.v1_pod_dns_config_option + kubernetes.aio.client.models.v1_pod_extended_resource_claim_status + kubernetes.aio.client.models.v1_pod_failure_policy + kubernetes.aio.client.models.v1_pod_failure_policy_on_exit_codes_requirement + kubernetes.aio.client.models.v1_pod_failure_policy_on_pod_conditions_pattern + kubernetes.aio.client.models.v1_pod_failure_policy_rule + kubernetes.aio.client.models.v1_pod_ip + kubernetes.aio.client.models.v1_pod_list + kubernetes.aio.client.models.v1_pod_os + kubernetes.aio.client.models.v1_pod_readiness_gate + kubernetes.aio.client.models.v1_pod_resource_claim + kubernetes.aio.client.models.v1_pod_resource_claim_status + kubernetes.aio.client.models.v1_pod_scheduling_gate + kubernetes.aio.client.models.v1_pod_scheduling_group + kubernetes.aio.client.models.v1_pod_security_context + kubernetes.aio.client.models.v1_pod_spec + kubernetes.aio.client.models.v1_pod_status + kubernetes.aio.client.models.v1_pod_template + kubernetes.aio.client.models.v1_pod_template_list + kubernetes.aio.client.models.v1_pod_template_spec + kubernetes.aio.client.models.v1_policy_rule + kubernetes.aio.client.models.v1_policy_rules_with_subjects + kubernetes.aio.client.models.v1_port_status + kubernetes.aio.client.models.v1_portworx_volume_source + kubernetes.aio.client.models.v1_preconditions + kubernetes.aio.client.models.v1_preferred_scheduling_term + kubernetes.aio.client.models.v1_priority_class + kubernetes.aio.client.models.v1_priority_class_list + kubernetes.aio.client.models.v1_priority_level_configuration + kubernetes.aio.client.models.v1_priority_level_configuration_condition + kubernetes.aio.client.models.v1_priority_level_configuration_list + kubernetes.aio.client.models.v1_priority_level_configuration_reference + kubernetes.aio.client.models.v1_priority_level_configuration_spec + kubernetes.aio.client.models.v1_priority_level_configuration_status + kubernetes.aio.client.models.v1_probe + kubernetes.aio.client.models.v1_projected_volume_source + kubernetes.aio.client.models.v1_queuing_configuration + kubernetes.aio.client.models.v1_quobyte_volume_source + kubernetes.aio.client.models.v1_rbd_persistent_volume_source + kubernetes.aio.client.models.v1_rbd_volume_source + kubernetes.aio.client.models.v1_replica_set + kubernetes.aio.client.models.v1_replica_set_condition + kubernetes.aio.client.models.v1_replica_set_list + kubernetes.aio.client.models.v1_replica_set_spec + kubernetes.aio.client.models.v1_replica_set_status + kubernetes.aio.client.models.v1_replication_controller + kubernetes.aio.client.models.v1_replication_controller_condition + kubernetes.aio.client.models.v1_replication_controller_list + kubernetes.aio.client.models.v1_replication_controller_spec + kubernetes.aio.client.models.v1_replication_controller_status + kubernetes.aio.client.models.v1_resource_attributes + kubernetes.aio.client.models.v1_resource_claim_consumer_reference + kubernetes.aio.client.models.v1_resource_claim_list + kubernetes.aio.client.models.v1_resource_claim_spec + kubernetes.aio.client.models.v1_resource_claim_status + kubernetes.aio.client.models.v1_resource_claim_template + kubernetes.aio.client.models.v1_resource_claim_template_list + kubernetes.aio.client.models.v1_resource_claim_template_spec + kubernetes.aio.client.models.v1_resource_field_selector + kubernetes.aio.client.models.v1_resource_health + kubernetes.aio.client.models.v1_resource_policy_rule + kubernetes.aio.client.models.v1_resource_pool + kubernetes.aio.client.models.v1_resource_quota + kubernetes.aio.client.models.v1_resource_quota_list + kubernetes.aio.client.models.v1_resource_quota_spec + kubernetes.aio.client.models.v1_resource_quota_status + kubernetes.aio.client.models.v1_resource_requirements + kubernetes.aio.client.models.v1_resource_rule + kubernetes.aio.client.models.v1_resource_slice + kubernetes.aio.client.models.v1_resource_slice_list + kubernetes.aio.client.models.v1_resource_slice_spec + kubernetes.aio.client.models.v1_resource_status + kubernetes.aio.client.models.v1_role + kubernetes.aio.client.models.v1_role_binding + kubernetes.aio.client.models.v1_role_binding_list + kubernetes.aio.client.models.v1_role_list + kubernetes.aio.client.models.v1_role_ref + kubernetes.aio.client.models.v1_rolling_update_daemon_set + kubernetes.aio.client.models.v1_rolling_update_deployment + kubernetes.aio.client.models.v1_rolling_update_stateful_set_strategy + kubernetes.aio.client.models.v1_rule_with_operations + kubernetes.aio.client.models.v1_runtime_class + kubernetes.aio.client.models.v1_runtime_class_list + kubernetes.aio.client.models.v1_scale + kubernetes.aio.client.models.v1_scale_io_persistent_volume_source + kubernetes.aio.client.models.v1_scale_io_volume_source + kubernetes.aio.client.models.v1_scale_spec + kubernetes.aio.client.models.v1_scale_status + kubernetes.aio.client.models.v1_scheduling + kubernetes.aio.client.models.v1_scope_selector + kubernetes.aio.client.models.v1_scoped_resource_selector_requirement + kubernetes.aio.client.models.v1_se_linux_options + kubernetes.aio.client.models.v1_seccomp_profile + kubernetes.aio.client.models.v1_secret + kubernetes.aio.client.models.v1_secret_env_source + kubernetes.aio.client.models.v1_secret_key_selector + kubernetes.aio.client.models.v1_secret_list + kubernetes.aio.client.models.v1_secret_projection + kubernetes.aio.client.models.v1_secret_reference + kubernetes.aio.client.models.v1_secret_volume_source + kubernetes.aio.client.models.v1_security_context + kubernetes.aio.client.models.v1_selectable_field + kubernetes.aio.client.models.v1_self_subject_access_review + kubernetes.aio.client.models.v1_self_subject_access_review_spec + kubernetes.aio.client.models.v1_self_subject_review + kubernetes.aio.client.models.v1_self_subject_review_status + kubernetes.aio.client.models.v1_self_subject_rules_review + kubernetes.aio.client.models.v1_self_subject_rules_review_spec + kubernetes.aio.client.models.v1_server_address_by_client_cidr + kubernetes.aio.client.models.v1_service + kubernetes.aio.client.models.v1_service_account + kubernetes.aio.client.models.v1_service_account_list + kubernetes.aio.client.models.v1_service_account_subject + kubernetes.aio.client.models.v1_service_account_token_projection + kubernetes.aio.client.models.v1_service_backend_port + kubernetes.aio.client.models.v1_service_cidr + kubernetes.aio.client.models.v1_service_cidr_list + kubernetes.aio.client.models.v1_service_cidr_spec + kubernetes.aio.client.models.v1_service_cidr_status + kubernetes.aio.client.models.v1_service_list + kubernetes.aio.client.models.v1_service_port + kubernetes.aio.client.models.v1_service_spec + kubernetes.aio.client.models.v1_service_status + kubernetes.aio.client.models.v1_session_affinity_config + kubernetes.aio.client.models.v1_shard_info + kubernetes.aio.client.models.v1_sleep_action + kubernetes.aio.client.models.v1_stateful_set + kubernetes.aio.client.models.v1_stateful_set_condition + kubernetes.aio.client.models.v1_stateful_set_list + kubernetes.aio.client.models.v1_stateful_set_ordinals + kubernetes.aio.client.models.v1_stateful_set_persistent_volume_claim_retention_policy + kubernetes.aio.client.models.v1_stateful_set_spec + kubernetes.aio.client.models.v1_stateful_set_status + kubernetes.aio.client.models.v1_stateful_set_update_strategy + kubernetes.aio.client.models.v1_status + kubernetes.aio.client.models.v1_status_cause + kubernetes.aio.client.models.v1_status_details + kubernetes.aio.client.models.v1_storage_class + kubernetes.aio.client.models.v1_storage_class_list + kubernetes.aio.client.models.v1_storage_os_persistent_volume_source + kubernetes.aio.client.models.v1_storage_os_volume_source + kubernetes.aio.client.models.v1_subject_access_review + kubernetes.aio.client.models.v1_subject_access_review_spec + kubernetes.aio.client.models.v1_subject_access_review_status + kubernetes.aio.client.models.v1_subject_rules_review_status + kubernetes.aio.client.models.v1_success_policy + kubernetes.aio.client.models.v1_success_policy_rule + kubernetes.aio.client.models.v1_sysctl + kubernetes.aio.client.models.v1_taint + kubernetes.aio.client.models.v1_tcp_socket_action + kubernetes.aio.client.models.v1_token_request_spec + kubernetes.aio.client.models.v1_token_request_status + kubernetes.aio.client.models.v1_token_review + kubernetes.aio.client.models.v1_token_review_spec + kubernetes.aio.client.models.v1_token_review_status + kubernetes.aio.client.models.v1_toleration + kubernetes.aio.client.models.v1_topology_selector_label_requirement + kubernetes.aio.client.models.v1_topology_selector_term + kubernetes.aio.client.models.v1_topology_spread_constraint + kubernetes.aio.client.models.v1_type_checking + kubernetes.aio.client.models.v1_typed_local_object_reference + kubernetes.aio.client.models.v1_typed_object_reference + kubernetes.aio.client.models.v1_uncounted_terminated_pods + kubernetes.aio.client.models.v1_user_info + kubernetes.aio.client.models.v1_user_subject + kubernetes.aio.client.models.v1_validating_admission_policy + kubernetes.aio.client.models.v1_validating_admission_policy_binding + kubernetes.aio.client.models.v1_validating_admission_policy_binding_list + kubernetes.aio.client.models.v1_validating_admission_policy_binding_spec + kubernetes.aio.client.models.v1_validating_admission_policy_list + kubernetes.aio.client.models.v1_validating_admission_policy_spec + kubernetes.aio.client.models.v1_validating_admission_policy_status + kubernetes.aio.client.models.v1_validating_webhook + kubernetes.aio.client.models.v1_validating_webhook_configuration + kubernetes.aio.client.models.v1_validating_webhook_configuration_list + kubernetes.aio.client.models.v1_validation + kubernetes.aio.client.models.v1_validation_rule + kubernetes.aio.client.models.v1_variable + kubernetes.aio.client.models.v1_volume + kubernetes.aio.client.models.v1_volume_attachment + kubernetes.aio.client.models.v1_volume_attachment_list + kubernetes.aio.client.models.v1_volume_attachment_source + kubernetes.aio.client.models.v1_volume_attachment_spec + kubernetes.aio.client.models.v1_volume_attachment_status + kubernetes.aio.client.models.v1_volume_attributes_class + kubernetes.aio.client.models.v1_volume_attributes_class_list + kubernetes.aio.client.models.v1_volume_device + kubernetes.aio.client.models.v1_volume_error + kubernetes.aio.client.models.v1_volume_mount + kubernetes.aio.client.models.v1_volume_mount_status + kubernetes.aio.client.models.v1_volume_node_affinity + kubernetes.aio.client.models.v1_volume_node_resources + kubernetes.aio.client.models.v1_volume_projection + kubernetes.aio.client.models.v1_volume_resource_requirements + kubernetes.aio.client.models.v1_volume_status + kubernetes.aio.client.models.v1_vsphere_virtual_disk_volume_source + kubernetes.aio.client.models.v1_watch_event + kubernetes.aio.client.models.v1_webhook_conversion + kubernetes.aio.client.models.v1_weighted_pod_affinity_term + kubernetes.aio.client.models.v1_windows_security_context_options + kubernetes.aio.client.models.v1alpha1_apply_configuration + kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle + kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_list + kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_spec + kubernetes.aio.client.models.v1alpha1_json_patch + kubernetes.aio.client.models.v1alpha1_match_condition + kubernetes.aio.client.models.v1alpha1_match_resources + kubernetes.aio.client.models.v1alpha1_mutating_admission_policy + kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_binding + kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_binding_list + kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_binding_spec + kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_list + kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_spec + kubernetes.aio.client.models.v1alpha1_mutation + kubernetes.aio.client.models.v1alpha1_named_rule_with_operations + kubernetes.aio.client.models.v1alpha1_param_kind + kubernetes.aio.client.models.v1alpha1_param_ref + kubernetes.aio.client.models.v1alpha1_server_storage_version + kubernetes.aio.client.models.v1alpha1_storage_version + kubernetes.aio.client.models.v1alpha1_storage_version_condition + kubernetes.aio.client.models.v1alpha1_storage_version_list + kubernetes.aio.client.models.v1alpha1_storage_version_status + kubernetes.aio.client.models.v1alpha1_variable + kubernetes.aio.client.models.v1alpha2_gang_scheduling_policy + kubernetes.aio.client.models.v1alpha2_lease_candidate + kubernetes.aio.client.models.v1alpha2_lease_candidate_list + kubernetes.aio.client.models.v1alpha2_lease_candidate_spec + kubernetes.aio.client.models.v1alpha2_pod_group + kubernetes.aio.client.models.v1alpha2_pod_group_list + kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim + kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim_status + kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_constraints + kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_policy + kubernetes.aio.client.models.v1alpha2_pod_group_spec + kubernetes.aio.client.models.v1alpha2_pod_group_status + kubernetes.aio.client.models.v1alpha2_pod_group_template + kubernetes.aio.client.models.v1alpha2_pod_group_template_reference + kubernetes.aio.client.models.v1alpha2_topology_constraint + kubernetes.aio.client.models.v1alpha2_typed_local_object_reference + kubernetes.aio.client.models.v1alpha2_workload + kubernetes.aio.client.models.v1alpha2_workload_list + kubernetes.aio.client.models.v1alpha2_workload_pod_group_template_reference + kubernetes.aio.client.models.v1alpha2_workload_spec + kubernetes.aio.client.models.v1alpha3_device_taint + kubernetes.aio.client.models.v1alpha3_device_taint_rule + kubernetes.aio.client.models.v1alpha3_device_taint_rule_list + kubernetes.aio.client.models.v1alpha3_device_taint_rule_spec + kubernetes.aio.client.models.v1alpha3_device_taint_rule_status + kubernetes.aio.client.models.v1alpha3_device_taint_selector + kubernetes.aio.client.models.v1alpha3_pool_status + kubernetes.aio.client.models.v1alpha3_resource_pool_status_request + kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_list + kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_spec + kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_status + kubernetes.aio.client.models.v1beta1_allocated_device_status + kubernetes.aio.client.models.v1beta1_allocation_result + kubernetes.aio.client.models.v1beta1_apply_configuration + kubernetes.aio.client.models.v1beta1_basic_device + kubernetes.aio.client.models.v1beta1_capacity_request_policy + kubernetes.aio.client.models.v1beta1_capacity_request_policy_range + kubernetes.aio.client.models.v1beta1_capacity_requirements + kubernetes.aio.client.models.v1beta1_cel_device_selector + kubernetes.aio.client.models.v1beta1_cluster_trust_bundle + kubernetes.aio.client.models.v1beta1_cluster_trust_bundle_list + kubernetes.aio.client.models.v1beta1_cluster_trust_bundle_spec + kubernetes.aio.client.models.v1beta1_counter + kubernetes.aio.client.models.v1beta1_counter_set + kubernetes.aio.client.models.v1beta1_device + kubernetes.aio.client.models.v1beta1_device_allocation_configuration + kubernetes.aio.client.models.v1beta1_device_allocation_result + kubernetes.aio.client.models.v1beta1_device_attribute + kubernetes.aio.client.models.v1beta1_device_capacity + kubernetes.aio.client.models.v1beta1_device_claim + kubernetes.aio.client.models.v1beta1_device_claim_configuration + kubernetes.aio.client.models.v1beta1_device_class + kubernetes.aio.client.models.v1beta1_device_class_configuration + kubernetes.aio.client.models.v1beta1_device_class_list + kubernetes.aio.client.models.v1beta1_device_class_spec + kubernetes.aio.client.models.v1beta1_device_constraint + kubernetes.aio.client.models.v1beta1_device_counter_consumption + kubernetes.aio.client.models.v1beta1_device_request + kubernetes.aio.client.models.v1beta1_device_request_allocation_result + kubernetes.aio.client.models.v1beta1_device_selector + kubernetes.aio.client.models.v1beta1_device_sub_request + kubernetes.aio.client.models.v1beta1_device_taint + kubernetes.aio.client.models.v1beta1_device_toleration + kubernetes.aio.client.models.v1beta1_ip_address + kubernetes.aio.client.models.v1beta1_ip_address_list + kubernetes.aio.client.models.v1beta1_ip_address_spec + kubernetes.aio.client.models.v1beta1_json_patch + kubernetes.aio.client.models.v1beta1_lease_candidate + kubernetes.aio.client.models.v1beta1_lease_candidate_list + kubernetes.aio.client.models.v1beta1_lease_candidate_spec + kubernetes.aio.client.models.v1beta1_match_condition + kubernetes.aio.client.models.v1beta1_match_resources + kubernetes.aio.client.models.v1beta1_mutating_admission_policy + kubernetes.aio.client.models.v1beta1_mutating_admission_policy_binding + kubernetes.aio.client.models.v1beta1_mutating_admission_policy_binding_list + kubernetes.aio.client.models.v1beta1_mutating_admission_policy_binding_spec + kubernetes.aio.client.models.v1beta1_mutating_admission_policy_list + kubernetes.aio.client.models.v1beta1_mutating_admission_policy_spec + kubernetes.aio.client.models.v1beta1_mutation + kubernetes.aio.client.models.v1beta1_named_rule_with_operations + kubernetes.aio.client.models.v1beta1_network_device_data + kubernetes.aio.client.models.v1beta1_node_allocatable_resource_mapping + kubernetes.aio.client.models.v1beta1_opaque_device_configuration + kubernetes.aio.client.models.v1beta1_param_kind + kubernetes.aio.client.models.v1beta1_param_ref + kubernetes.aio.client.models.v1beta1_parent_reference + kubernetes.aio.client.models.v1beta1_pod_certificate_request + kubernetes.aio.client.models.v1beta1_pod_certificate_request_list + kubernetes.aio.client.models.v1beta1_pod_certificate_request_spec + kubernetes.aio.client.models.v1beta1_pod_certificate_request_status + kubernetes.aio.client.models.v1beta1_resource_claim + kubernetes.aio.client.models.v1beta1_resource_claim_consumer_reference + kubernetes.aio.client.models.v1beta1_resource_claim_list + kubernetes.aio.client.models.v1beta1_resource_claim_spec + kubernetes.aio.client.models.v1beta1_resource_claim_status + kubernetes.aio.client.models.v1beta1_resource_claim_template + kubernetes.aio.client.models.v1beta1_resource_claim_template_list + kubernetes.aio.client.models.v1beta1_resource_claim_template_spec + kubernetes.aio.client.models.v1beta1_resource_pool + kubernetes.aio.client.models.v1beta1_resource_slice + kubernetes.aio.client.models.v1beta1_resource_slice_list + kubernetes.aio.client.models.v1beta1_resource_slice_spec + kubernetes.aio.client.models.v1beta1_service_cidr + kubernetes.aio.client.models.v1beta1_service_cidr_list + kubernetes.aio.client.models.v1beta1_service_cidr_spec + kubernetes.aio.client.models.v1beta1_service_cidr_status + kubernetes.aio.client.models.v1beta1_storage_version_migration + kubernetes.aio.client.models.v1beta1_storage_version_migration_list + kubernetes.aio.client.models.v1beta1_storage_version_migration_spec + kubernetes.aio.client.models.v1beta1_storage_version_migration_status + kubernetes.aio.client.models.v1beta1_variable + kubernetes.aio.client.models.v1beta1_volume_attributes_class + kubernetes.aio.client.models.v1beta1_volume_attributes_class_list + kubernetes.aio.client.models.v1beta2_allocated_device_status + kubernetes.aio.client.models.v1beta2_allocation_result + kubernetes.aio.client.models.v1beta2_capacity_request_policy + kubernetes.aio.client.models.v1beta2_capacity_request_policy_range + kubernetes.aio.client.models.v1beta2_capacity_requirements + kubernetes.aio.client.models.v1beta2_cel_device_selector + kubernetes.aio.client.models.v1beta2_counter + kubernetes.aio.client.models.v1beta2_counter_set + kubernetes.aio.client.models.v1beta2_device + kubernetes.aio.client.models.v1beta2_device_allocation_configuration + kubernetes.aio.client.models.v1beta2_device_allocation_result + kubernetes.aio.client.models.v1beta2_device_attribute + kubernetes.aio.client.models.v1beta2_device_capacity + kubernetes.aio.client.models.v1beta2_device_claim + kubernetes.aio.client.models.v1beta2_device_claim_configuration + kubernetes.aio.client.models.v1beta2_device_class + kubernetes.aio.client.models.v1beta2_device_class_configuration + kubernetes.aio.client.models.v1beta2_device_class_list + kubernetes.aio.client.models.v1beta2_device_class_spec + kubernetes.aio.client.models.v1beta2_device_constraint + kubernetes.aio.client.models.v1beta2_device_counter_consumption + kubernetes.aio.client.models.v1beta2_device_request + kubernetes.aio.client.models.v1beta2_device_request_allocation_result + kubernetes.aio.client.models.v1beta2_device_selector + kubernetes.aio.client.models.v1beta2_device_sub_request + kubernetes.aio.client.models.v1beta2_device_taint + kubernetes.aio.client.models.v1beta2_device_taint_rule + kubernetes.aio.client.models.v1beta2_device_taint_rule_list + kubernetes.aio.client.models.v1beta2_device_taint_rule_spec + kubernetes.aio.client.models.v1beta2_device_taint_rule_status + kubernetes.aio.client.models.v1beta2_device_taint_selector + kubernetes.aio.client.models.v1beta2_device_toleration + kubernetes.aio.client.models.v1beta2_exact_device_request + kubernetes.aio.client.models.v1beta2_network_device_data + kubernetes.aio.client.models.v1beta2_node_allocatable_resource_mapping + kubernetes.aio.client.models.v1beta2_opaque_device_configuration + kubernetes.aio.client.models.v1beta2_resource_claim + kubernetes.aio.client.models.v1beta2_resource_claim_consumer_reference + kubernetes.aio.client.models.v1beta2_resource_claim_list + kubernetes.aio.client.models.v1beta2_resource_claim_spec + kubernetes.aio.client.models.v1beta2_resource_claim_status + kubernetes.aio.client.models.v1beta2_resource_claim_template + kubernetes.aio.client.models.v1beta2_resource_claim_template_list + kubernetes.aio.client.models.v1beta2_resource_claim_template_spec + kubernetes.aio.client.models.v1beta2_resource_pool + kubernetes.aio.client.models.v1beta2_resource_slice + kubernetes.aio.client.models.v1beta2_resource_slice_list + kubernetes.aio.client.models.v1beta2_resource_slice_spec + kubernetes.aio.client.models.v2_api_group_discovery + kubernetes.aio.client.models.v2_api_group_discovery_list + kubernetes.aio.client.models.v2_api_resource_discovery + kubernetes.aio.client.models.v2_api_subresource_discovery + kubernetes.aio.client.models.v2_api_version_discovery + kubernetes.aio.client.models.v2_container_resource_metric_source + kubernetes.aio.client.models.v2_container_resource_metric_status + kubernetes.aio.client.models.v2_cross_version_object_reference + kubernetes.aio.client.models.v2_external_metric_source + kubernetes.aio.client.models.v2_external_metric_status + kubernetes.aio.client.models.v2_horizontal_pod_autoscaler + kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_behavior + kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_condition + kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_list + kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_spec + kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_status + kubernetes.aio.client.models.v2_hpa_scaling_policy + kubernetes.aio.client.models.v2_hpa_scaling_rules + kubernetes.aio.client.models.v2_metric_identifier + kubernetes.aio.client.models.v2_metric_spec + kubernetes.aio.client.models.v2_metric_status + kubernetes.aio.client.models.v2_metric_target + kubernetes.aio.client.models.v2_metric_value_status + kubernetes.aio.client.models.v2_object_metric_source + kubernetes.aio.client.models.v2_object_metric_status + kubernetes.aio.client.models.v2_pods_metric_source + kubernetes.aio.client.models.v2_pods_metric_status + kubernetes.aio.client.models.v2_resource_metric_source + kubernetes.aio.client.models.v2_resource_metric_status + kubernetes.aio.client.models.v2beta1_api_group_discovery + kubernetes.aio.client.models.v2beta1_api_group_discovery_list + kubernetes.aio.client.models.v2beta1_api_resource_discovery + kubernetes.aio.client.models.v2beta1_api_subresource_discovery + kubernetes.aio.client.models.v2beta1_api_version_discovery + kubernetes.aio.client.models.version_info + +Module contents +--------------- + +.. automodule:: kubernetes.aio.client.models + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.storage_v1_token_request.rst b/doc/source/kubernetes.aio.client.models.storage_v1_token_request.rst new file mode 100644 index 0000000000..b7d205f8c3 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.storage_v1_token_request.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.storage\_v1\_token\_request module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.storage_v1_token_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_affinity.rst b/doc/source/kubernetes.aio.client.models.v1_affinity.rst new file mode 100644 index 0000000000..8d9750cbea --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_affinity.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_affinity module +================================================ + +.. automodule:: kubernetes.aio.client.models.v1_affinity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_aggregation_rule.rst b/doc/source/kubernetes.aio.client.models.v1_aggregation_rule.rst new file mode 100644 index 0000000000..71e80a9843 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_aggregation_rule.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_aggregation\_rule module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_aggregation_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_allocated_device_status.rst b/doc/source/kubernetes.aio.client.models.v1_allocated_device_status.rst new file mode 100644 index 0000000000..6b3fba8480 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_allocated_device_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_allocated\_device\_status module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_allocated_device_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_allocation_result.rst b/doc/source/kubernetes.aio.client.models.v1_allocation_result.rst new file mode 100644 index 0000000000..8eb5d8ce2c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_allocation\_result module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_allocation_result + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_api_group.rst b/doc/source/kubernetes.aio.client.models.v1_api_group.rst new file mode 100644 index 0000000000..9ed22a5e70 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_api_group.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_api\_group module +================================================== + +.. automodule:: kubernetes.aio.client.models.v1_api_group + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_api_group_list.rst b/doc/source/kubernetes.aio.client.models.v1_api_group_list.rst new file mode 100644 index 0000000000..45070aa696 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_api_group_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_api\_group\_list module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_api_group_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_api_resource.rst b/doc/source/kubernetes.aio.client.models.v1_api_resource.rst new file mode 100644 index 0000000000..abccd9e915 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_api_resource.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_api\_resource module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_api_resource + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_api_resource_list.rst b/doc/source/kubernetes.aio.client.models.v1_api_resource_list.rst new file mode 100644 index 0000000000..5e7f1fbd7b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_api_resource_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_api\_resource\_list module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_api_resource_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_api_service.rst b/doc/source/kubernetes.aio.client.models.v1_api_service.rst new file mode 100644 index 0000000000..94bd1de54d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_api_service.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_api\_service module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v1_api_service + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_api_service_condition.rst b/doc/source/kubernetes.aio.client.models.v1_api_service_condition.rst new file mode 100644 index 0000000000..93a488c572 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_api_service_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_api\_service\_condition module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_api_service_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_api_service_list.rst b/doc/source/kubernetes.aio.client.models.v1_api_service_list.rst new file mode 100644 index 0000000000..c018c60402 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_api_service_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_api\_service\_list module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_api_service_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_api_service_spec.rst b/doc/source/kubernetes.aio.client.models.v1_api_service_spec.rst new file mode 100644 index 0000000000..d3b92a4295 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_api_service_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_api\_service\_spec module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_api_service_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_api_service_status.rst b/doc/source/kubernetes.aio.client.models.v1_api_service_status.rst new file mode 100644 index 0000000000..5494d1833e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_api_service_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_api\_service\_status module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_api_service_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_api_versions.rst b/doc/source/kubernetes.aio.client.models.v1_api_versions.rst new file mode 100644 index 0000000000..962f0acfdf --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_api_versions.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_api\_versions module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_api_versions + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_app_armor_profile.rst b/doc/source/kubernetes.aio.client.models.v1_app_armor_profile.rst new file mode 100644 index 0000000000..8c75d8ef01 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_app_armor_profile.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_app\_armor\_profile module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_app_armor_profile + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_apply_configuration.rst b/doc/source/kubernetes.aio.client.models.v1_apply_configuration.rst new file mode 100644 index 0000000000..99a004addb --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_apply_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_apply\_configuration module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_apply_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_attached_volume.rst b/doc/source/kubernetes.aio.client.models.v1_attached_volume.rst new file mode 100644 index 0000000000..f7b3fc7d3c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_attached_volume.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_attached\_volume module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_attached_volume + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_audit_annotation.rst b/doc/source/kubernetes.aio.client.models.v1_audit_annotation.rst new file mode 100644 index 0000000000..35697fca48 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_audit_annotation.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_audit\_annotation module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_audit_annotation + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_aws_elastic_block_store_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_aws_elastic_block_store_volume_source.rst new file mode 100644 index 0000000000..178a60f42f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_aws_elastic_block_store_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_aws\_elastic\_block\_store\_volume\_source module +================================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_aws_elastic_block_store_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_azure_disk_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_azure_disk_volume_source.rst new file mode 100644 index 0000000000..1998bfa8ae --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_azure_disk_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_azure\_disk\_volume\_source module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_azure_disk_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_azure_file_persistent_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_azure_file_persistent_volume_source.rst new file mode 100644 index 0000000000..0eef04d5d4 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_azure_file_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_azure\_file\_persistent\_volume\_source module +=============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_azure_file_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_azure_file_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_azure_file_volume_source.rst new file mode 100644 index 0000000000..ab55910f43 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_azure_file_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_azure\_file\_volume\_source module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_azure_file_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_binding.rst b/doc/source/kubernetes.aio.client.models.v1_binding.rst new file mode 100644 index 0000000000..d30468d913 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_binding.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_binding module +=============================================== + +.. automodule:: kubernetes.aio.client.models.v1_binding + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_bound_object_reference.rst b/doc/source/kubernetes.aio.client.models.v1_bound_object_reference.rst new file mode 100644 index 0000000000..db57bcff81 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_bound_object_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_bound\_object\_reference module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_bound_object_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_capabilities.rst b/doc/source/kubernetes.aio.client.models.v1_capabilities.rst new file mode 100644 index 0000000000..bef8eaed8f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_capabilities.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_capabilities module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v1_capabilities + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_capacity_request_policy.rst b/doc/source/kubernetes.aio.client.models.v1_capacity_request_policy.rst new file mode 100644 index 0000000000..f11f2879b6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_capacity_request_policy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_capacity\_request\_policy module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_capacity_request_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_capacity_request_policy_range.rst b/doc/source/kubernetes.aio.client.models.v1_capacity_request_policy_range.rst new file mode 100644 index 0000000000..bd9cb6264f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_capacity_request_policy_range.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_capacity\_request\_policy\_range module +======================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_capacity_request_policy_range + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_capacity_requirements.rst b/doc/source/kubernetes.aio.client.models.v1_capacity_requirements.rst new file mode 100644 index 0000000000..d7ff3b0bb0 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_capacity_requirements.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_capacity\_requirements module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_capacity_requirements + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_cel_device_selector.rst b/doc/source/kubernetes.aio.client.models.v1_cel_device_selector.rst new file mode 100644 index 0000000000..800846ce8f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_cel_device_selector.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_cel\_device\_selector module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_cel_device_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ceph_fs_persistent_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_ceph_fs_persistent_volume_source.rst new file mode 100644 index 0000000000..ff89e99c79 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ceph_fs_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ceph\_fs\_persistent\_volume\_source module +============================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_ceph_fs_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ceph_fs_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_ceph_fs_volume_source.rst new file mode 100644 index 0000000000..fe04bb9663 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ceph_fs_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ceph\_fs\_volume\_source module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_ceph_fs_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_certificate_signing_request.rst b/doc/source/kubernetes.aio.client.models.v1_certificate_signing_request.rst new file mode 100644 index 0000000000..7d2bf5a829 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_certificate_signing_request.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_certificate\_signing\_request module +===================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_certificate_signing_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_certificate_signing_request_condition.rst b/doc/source/kubernetes.aio.client.models.v1_certificate_signing_request_condition.rst new file mode 100644 index 0000000000..dff77c6c6a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_certificate_signing_request_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_certificate\_signing\_request\_condition module +================================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_certificate_signing_request_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_certificate_signing_request_list.rst b/doc/source/kubernetes.aio.client.models.v1_certificate_signing_request_list.rst new file mode 100644 index 0000000000..406eaa5fd6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_certificate_signing_request_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_certificate\_signing\_request\_list module +=========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_certificate_signing_request_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_certificate_signing_request_spec.rst b/doc/source/kubernetes.aio.client.models.v1_certificate_signing_request_spec.rst new file mode 100644 index 0000000000..2d933a595b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_certificate_signing_request_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_certificate\_signing\_request\_spec module +=========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_certificate_signing_request_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_certificate_signing_request_status.rst b/doc/source/kubernetes.aio.client.models.v1_certificate_signing_request_status.rst new file mode 100644 index 0000000000..5e9a0ccc3a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_certificate_signing_request_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_certificate\_signing\_request\_status module +============================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_certificate_signing_request_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_cinder_persistent_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_cinder_persistent_volume_source.rst new file mode 100644 index 0000000000..8eeb766d17 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_cinder_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_cinder\_persistent\_volume\_source module +========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_cinder_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_cinder_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_cinder_volume_source.rst new file mode 100644 index 0000000000..412cc27175 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_cinder_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_cinder\_volume\_source module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_cinder_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_client_ip_config.rst b/doc/source/kubernetes.aio.client.models.v1_client_ip_config.rst new file mode 100644 index 0000000000..d27b95c563 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_client_ip_config.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_client\_ip\_config module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_client_ip_config + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_cluster_role.rst b/doc/source/kubernetes.aio.client.models.v1_cluster_role.rst new file mode 100644 index 0000000000..12ffea2bb3 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_cluster_role.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_cluster\_role module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_cluster_role + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_cluster_role_binding.rst b/doc/source/kubernetes.aio.client.models.v1_cluster_role_binding.rst new file mode 100644 index 0000000000..f926826bb0 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_cluster_role_binding.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_cluster\_role\_binding module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_cluster_role_binding + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_cluster_role_binding_list.rst b/doc/source/kubernetes.aio.client.models.v1_cluster_role_binding_list.rst new file mode 100644 index 0000000000..0e3e51b142 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_cluster_role_binding_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_cluster\_role\_binding\_list module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_cluster_role_binding_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_cluster_role_list.rst b/doc/source/kubernetes.aio.client.models.v1_cluster_role_list.rst new file mode 100644 index 0000000000..34bdbccf8b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_cluster_role_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_cluster\_role\_list module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_cluster_role_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_cluster_trust_bundle_projection.rst b/doc/source/kubernetes.aio.client.models.v1_cluster_trust_bundle_projection.rst new file mode 100644 index 0000000000..5d55764c76 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_cluster_trust_bundle_projection.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_cluster\_trust\_bundle\_projection module +========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_cluster_trust_bundle_projection + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_component_condition.rst b/doc/source/kubernetes.aio.client.models.v1_component_condition.rst new file mode 100644 index 0000000000..a11a7e93c9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_component_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_component\_condition module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_component_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_component_status.rst b/doc/source/kubernetes.aio.client.models.v1_component_status.rst new file mode 100644 index 0000000000..8cf0810170 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_component_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_component\_status module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_component_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_component_status_list.rst b/doc/source/kubernetes.aio.client.models.v1_component_status_list.rst new file mode 100644 index 0000000000..d8b6443ab5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_component_status_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_component\_status\_list module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_component_status_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_condition.rst b/doc/source/kubernetes.aio.client.models.v1_condition.rst new file mode 100644 index 0000000000..15a217da1a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_condition module +================================================= + +.. automodule:: kubernetes.aio.client.models.v1_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_config_map.rst b/doc/source/kubernetes.aio.client.models.v1_config_map.rst new file mode 100644 index 0000000000..0e5500e94d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_config_map.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_config\_map module +=================================================== + +.. automodule:: kubernetes.aio.client.models.v1_config_map + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_config_map_env_source.rst b/doc/source/kubernetes.aio.client.models.v1_config_map_env_source.rst new file mode 100644 index 0000000000..64a44085cc --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_config_map_env_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_config\_map\_env\_source module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_config_map_env_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_config_map_key_selector.rst b/doc/source/kubernetes.aio.client.models.v1_config_map_key_selector.rst new file mode 100644 index 0000000000..d6db506278 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_config_map_key_selector.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_config\_map\_key\_selector module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_config_map_key_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_config_map_list.rst b/doc/source/kubernetes.aio.client.models.v1_config_map_list.rst new file mode 100644 index 0000000000..9fab1cdd1a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_config_map_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_config\_map\_list module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_config_map_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_config_map_node_config_source.rst b/doc/source/kubernetes.aio.client.models.v1_config_map_node_config_source.rst new file mode 100644 index 0000000000..89961667c9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_config_map_node_config_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_config\_map\_node\_config\_source module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_config_map_node_config_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_config_map_projection.rst b/doc/source/kubernetes.aio.client.models.v1_config_map_projection.rst new file mode 100644 index 0000000000..aa6573f336 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_config_map_projection.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_config\_map\_projection module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_config_map_projection + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_config_map_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_config_map_volume_source.rst new file mode 100644 index 0000000000..a72b319420 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_config_map_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_config\_map\_volume\_source module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_config_map_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_container.rst b/doc/source/kubernetes.aio.client.models.v1_container.rst new file mode 100644 index 0000000000..126ea2bab3 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_container.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_container module +================================================= + +.. automodule:: kubernetes.aio.client.models.v1_container + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_container_extended_resource_request.rst b/doc/source/kubernetes.aio.client.models.v1_container_extended_resource_request.rst new file mode 100644 index 0000000000..3467657586 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_container_extended_resource_request.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_container\_extended\_resource\_request module +============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_container_extended_resource_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_container_image.rst b/doc/source/kubernetes.aio.client.models.v1_container_image.rst new file mode 100644 index 0000000000..6294ce1c68 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_container_image.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_container\_image module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_container_image + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_container_port.rst b/doc/source/kubernetes.aio.client.models.v1_container_port.rst new file mode 100644 index 0000000000..9e7e54d19d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_container_port.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_container\_port module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_container_port + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_container_resize_policy.rst b/doc/source/kubernetes.aio.client.models.v1_container_resize_policy.rst new file mode 100644 index 0000000000..961a80cdab --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_container_resize_policy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_container\_resize\_policy module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_container_resize_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_container_restart_rule.rst b/doc/source/kubernetes.aio.client.models.v1_container_restart_rule.rst new file mode 100644 index 0000000000..3df72e484b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_container_restart_rule.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_container\_restart\_rule module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_container_restart_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_container_restart_rule_on_exit_codes.rst b/doc/source/kubernetes.aio.client.models.v1_container_restart_rule_on_exit_codes.rst new file mode 100644 index 0000000000..d35d22da46 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_container_restart_rule_on_exit_codes.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_container\_restart\_rule\_on\_exit\_codes module +================================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_container_restart_rule_on_exit_codes + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_container_state.rst b/doc/source/kubernetes.aio.client.models.v1_container_state.rst new file mode 100644 index 0000000000..949540ffe3 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_container_state.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_container\_state module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_container_state + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_container_state_running.rst b/doc/source/kubernetes.aio.client.models.v1_container_state_running.rst new file mode 100644 index 0000000000..24cf610f7a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_container_state_running.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_container\_state\_running module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_container_state_running + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_container_state_terminated.rst b/doc/source/kubernetes.aio.client.models.v1_container_state_terminated.rst new file mode 100644 index 0000000000..d160c04a4c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_container_state_terminated.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_container\_state\_terminated module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_container_state_terminated + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_container_state_waiting.rst b/doc/source/kubernetes.aio.client.models.v1_container_state_waiting.rst new file mode 100644 index 0000000000..8bef1f57a4 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_container_state_waiting.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_container\_state\_waiting module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_container_state_waiting + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_container_status.rst b/doc/source/kubernetes.aio.client.models.v1_container_status.rst new file mode 100644 index 0000000000..5b72cb5566 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_container_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_container\_status module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_container_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_container_user.rst b/doc/source/kubernetes.aio.client.models.v1_container_user.rst new file mode 100644 index 0000000000..7a87d0712d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_container_user.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_container\_user module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_container_user + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_controller_revision.rst b/doc/source/kubernetes.aio.client.models.v1_controller_revision.rst new file mode 100644 index 0000000000..f35337fe75 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_controller_revision.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_controller\_revision module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_controller_revision + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_controller_revision_list.rst b/doc/source/kubernetes.aio.client.models.v1_controller_revision_list.rst new file mode 100644 index 0000000000..2409e3c32c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_controller_revision_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_controller\_revision\_list module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_controller_revision_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_counter.rst b/doc/source/kubernetes.aio.client.models.v1_counter.rst new file mode 100644 index 0000000000..32b6081de1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_counter.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_counter module +=============================================== + +.. automodule:: kubernetes.aio.client.models.v1_counter + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_counter_set.rst b/doc/source/kubernetes.aio.client.models.v1_counter_set.rst new file mode 100644 index 0000000000..a32576a2be --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_counter_set.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_counter\_set module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v1_counter_set + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_cron_job.rst b/doc/source/kubernetes.aio.client.models.v1_cron_job.rst new file mode 100644 index 0000000000..c8c193ec37 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_cron_job.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_cron\_job module +================================================= + +.. automodule:: kubernetes.aio.client.models.v1_cron_job + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_cron_job_list.rst b/doc/source/kubernetes.aio.client.models.v1_cron_job_list.rst new file mode 100644 index 0000000000..d381347246 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_cron_job_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_cron\_job\_list module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_cron_job_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_cron_job_spec.rst b/doc/source/kubernetes.aio.client.models.v1_cron_job_spec.rst new file mode 100644 index 0000000000..5cc833f6f2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_cron_job_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_cron\_job\_spec module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_cron_job_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_cron_job_status.rst b/doc/source/kubernetes.aio.client.models.v1_cron_job_status.rst new file mode 100644 index 0000000000..641d33aeae --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_cron_job_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_cron\_job\_status module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_cron_job_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_cross_version_object_reference.rst b/doc/source/kubernetes.aio.client.models.v1_cross_version_object_reference.rst new file mode 100644 index 0000000000..335665a5e8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_cross_version_object_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_cross\_version\_object\_reference module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_cross_version_object_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_csi_driver.rst b/doc/source/kubernetes.aio.client.models.v1_csi_driver.rst new file mode 100644 index 0000000000..0e564990ca --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_csi_driver.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_csi\_driver module +=================================================== + +.. automodule:: kubernetes.aio.client.models.v1_csi_driver + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_csi_driver_list.rst b/doc/source/kubernetes.aio.client.models.v1_csi_driver_list.rst new file mode 100644 index 0000000000..75b78492d8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_csi_driver_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_csi\_driver\_list module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_csi_driver_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_csi_driver_spec.rst b/doc/source/kubernetes.aio.client.models.v1_csi_driver_spec.rst new file mode 100644 index 0000000000..1ee24635da --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_csi_driver_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_csi\_driver\_spec module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_csi_driver_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_csi_node.rst b/doc/source/kubernetes.aio.client.models.v1_csi_node.rst new file mode 100644 index 0000000000..98c8f5070c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_csi_node.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_csi\_node module +================================================= + +.. automodule:: kubernetes.aio.client.models.v1_csi_node + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_csi_node_driver.rst b/doc/source/kubernetes.aio.client.models.v1_csi_node_driver.rst new file mode 100644 index 0000000000..a88974fc84 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_csi_node_driver.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_csi\_node\_driver module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_csi_node_driver + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_csi_node_list.rst b/doc/source/kubernetes.aio.client.models.v1_csi_node_list.rst new file mode 100644 index 0000000000..5b28a69dc0 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_csi_node_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_csi\_node\_list module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_csi_node_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_csi_node_spec.rst b/doc/source/kubernetes.aio.client.models.v1_csi_node_spec.rst new file mode 100644 index 0000000000..b6a37435b3 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_csi_node_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_csi\_node\_spec module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_csi_node_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_csi_persistent_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_csi_persistent_volume_source.rst new file mode 100644 index 0000000000..c15a090785 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_csi_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_csi\_persistent\_volume\_source module +======================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_csi_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_csi_storage_capacity.rst b/doc/source/kubernetes.aio.client.models.v1_csi_storage_capacity.rst new file mode 100644 index 0000000000..5f37b18e4f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_csi_storage_capacity.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_csi\_storage\_capacity module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_csi_storage_capacity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_csi_storage_capacity_list.rst b/doc/source/kubernetes.aio.client.models.v1_csi_storage_capacity_list.rst new file mode 100644 index 0000000000..63bc22e546 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_csi_storage_capacity_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_csi\_storage\_capacity\_list module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_csi_storage_capacity_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_csi_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_csi_volume_source.rst new file mode 100644 index 0000000000..fe1e4068a7 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_csi_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_csi\_volume\_source module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_csi_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_custom_resource_column_definition.rst b/doc/source/kubernetes.aio.client.models.v1_custom_resource_column_definition.rst new file mode 100644 index 0000000000..ffcd58db12 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_custom_resource_column_definition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_custom\_resource\_column\_definition module +============================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_custom_resource_column_definition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_custom_resource_conversion.rst b/doc/source/kubernetes.aio.client.models.v1_custom_resource_conversion.rst new file mode 100644 index 0000000000..5f6a8556e4 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_custom_resource_conversion.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_custom\_resource\_conversion module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_custom_resource_conversion + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition.rst b/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition.rst new file mode 100644 index 0000000000..839a7e43ba --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_custom\_resource\_definition module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_custom_resource_definition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_condition.rst b/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_condition.rst new file mode 100644 index 0000000000..7f8601de20 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_custom\_resource\_definition\_condition module +=============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_custom_resource_definition_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_list.rst b/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_list.rst new file mode 100644 index 0000000000..bfc0fe85be --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_custom\_resource\_definition\_list module +========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_custom_resource_definition_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_names.rst b/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_names.rst new file mode 100644 index 0000000000..181c702437 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_names.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_custom\_resource\_definition\_names module +=========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_custom_resource_definition_names + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_spec.rst b/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_spec.rst new file mode 100644 index 0000000000..ed1d823493 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_custom\_resource\_definition\_spec module +========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_custom_resource_definition_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_status.rst b/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_status.rst new file mode 100644 index 0000000000..d88ee55d07 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_custom\_resource\_definition\_status module +============================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_custom_resource_definition_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_version.rst b/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_version.rst new file mode 100644 index 0000000000..83ceb3777c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_custom_resource_definition_version.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_custom\_resource\_definition\_version module +============================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_custom_resource_definition_version + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_custom_resource_subresource_scale.rst b/doc/source/kubernetes.aio.client.models.v1_custom_resource_subresource_scale.rst new file mode 100644 index 0000000000..6884ef39e0 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_custom_resource_subresource_scale.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_custom\_resource\_subresource\_scale module +============================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_custom_resource_subresource_scale + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_custom_resource_subresources.rst b/doc/source/kubernetes.aio.client.models.v1_custom_resource_subresources.rst new file mode 100644 index 0000000000..7dd6cc6926 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_custom_resource_subresources.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_custom\_resource\_subresources module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_custom_resource_subresources + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_custom_resource_validation.rst b/doc/source/kubernetes.aio.client.models.v1_custom_resource_validation.rst new file mode 100644 index 0000000000..d9b17907ae --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_custom_resource_validation.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_custom\_resource\_validation module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_custom_resource_validation + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_daemon_endpoint.rst b/doc/source/kubernetes.aio.client.models.v1_daemon_endpoint.rst new file mode 100644 index 0000000000..17f52df61d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_daemon_endpoint.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_daemon\_endpoint module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_daemon_endpoint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_daemon_set.rst b/doc/source/kubernetes.aio.client.models.v1_daemon_set.rst new file mode 100644 index 0000000000..19e409693c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_daemon_set.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_daemon\_set module +=================================================== + +.. automodule:: kubernetes.aio.client.models.v1_daemon_set + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_daemon_set_condition.rst b/doc/source/kubernetes.aio.client.models.v1_daemon_set_condition.rst new file mode 100644 index 0000000000..836b8cc86b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_daemon_set_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_daemon\_set\_condition module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_daemon_set_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_daemon_set_list.rst b/doc/source/kubernetes.aio.client.models.v1_daemon_set_list.rst new file mode 100644 index 0000000000..2a31b833e6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_daemon_set_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_daemon\_set\_list module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_daemon_set_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_daemon_set_spec.rst b/doc/source/kubernetes.aio.client.models.v1_daemon_set_spec.rst new file mode 100644 index 0000000000..7b3a4beb9d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_daemon_set_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_daemon\_set\_spec module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_daemon_set_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_daemon_set_status.rst b/doc/source/kubernetes.aio.client.models.v1_daemon_set_status.rst new file mode 100644 index 0000000000..5ff6940570 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_daemon_set_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_daemon\_set\_status module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_daemon_set_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_daemon_set_update_strategy.rst b/doc/source/kubernetes.aio.client.models.v1_daemon_set_update_strategy.rst new file mode 100644 index 0000000000..906d283ae5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_daemon_set_update_strategy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_daemon\_set\_update\_strategy module +===================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_daemon_set_update_strategy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_delete_options.rst b/doc/source/kubernetes.aio.client.models.v1_delete_options.rst new file mode 100644 index 0000000000..de0f1f7b58 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_delete_options.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_delete\_options module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_delete_options + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_deployment.rst b/doc/source/kubernetes.aio.client.models.v1_deployment.rst new file mode 100644 index 0000000000..e905bbaac2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_deployment.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_deployment module +================================================== + +.. automodule:: kubernetes.aio.client.models.v1_deployment + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_deployment_condition.rst b/doc/source/kubernetes.aio.client.models.v1_deployment_condition.rst new file mode 100644 index 0000000000..f3122f1e25 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_deployment_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_deployment\_condition module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_deployment_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_deployment_list.rst b/doc/source/kubernetes.aio.client.models.v1_deployment_list.rst new file mode 100644 index 0000000000..c52641a96d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_deployment_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_deployment\_list module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_deployment_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_deployment_spec.rst b/doc/source/kubernetes.aio.client.models.v1_deployment_spec.rst new file mode 100644 index 0000000000..69436eed85 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_deployment_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_deployment\_spec module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_deployment_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_deployment_status.rst b/doc/source/kubernetes.aio.client.models.v1_deployment_status.rst new file mode 100644 index 0000000000..937dced73f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_deployment_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_deployment\_status module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_deployment_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_deployment_strategy.rst b/doc/source/kubernetes.aio.client.models.v1_deployment_strategy.rst new file mode 100644 index 0000000000..bd7ad6478c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_deployment_strategy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_deployment\_strategy module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_deployment_strategy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device.rst b/doc/source/kubernetes.aio.client.models.v1_device.rst new file mode 100644 index 0000000000..2aaa4d6b7a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device module +============================================== + +.. automodule:: kubernetes.aio.client.models.v1_device + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device_allocation_configuration.rst b/doc/source/kubernetes.aio.client.models.v1_device_allocation_configuration.rst new file mode 100644 index 0000000000..c2c04a1ff5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device_allocation_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device\_allocation\_configuration module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_device_allocation_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device_allocation_result.rst b/doc/source/kubernetes.aio.client.models.v1_device_allocation_result.rst new file mode 100644 index 0000000000..4613b2ca2c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device\_allocation\_result module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_device_allocation_result + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device_attribute.rst b/doc/source/kubernetes.aio.client.models.v1_device_attribute.rst new file mode 100644 index 0000000000..c8278f4176 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device_attribute.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device\_attribute module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_device_attribute + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device_capacity.rst b/doc/source/kubernetes.aio.client.models.v1_device_capacity.rst new file mode 100644 index 0000000000..4c3cb8531b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device_capacity.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device\_capacity module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_device_capacity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device_claim.rst b/doc/source/kubernetes.aio.client.models.v1_device_claim.rst new file mode 100644 index 0000000000..6741f0f41a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device_claim.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device\_claim module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_device_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device_claim_configuration.rst b/doc/source/kubernetes.aio.client.models.v1_device_claim_configuration.rst new file mode 100644 index 0000000000..5a5a263eb6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device_claim_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device\_claim\_configuration module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_device_claim_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device_class.rst b/doc/source/kubernetes.aio.client.models.v1_device_class.rst new file mode 100644 index 0000000000..03167993e2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device_class.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device\_class module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_device_class + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device_class_configuration.rst b/doc/source/kubernetes.aio.client.models.v1_device_class_configuration.rst new file mode 100644 index 0000000000..413d79f530 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device_class_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device\_class\_configuration module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_device_class_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device_class_list.rst b/doc/source/kubernetes.aio.client.models.v1_device_class_list.rst new file mode 100644 index 0000000000..14fa38745f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device\_class\_list module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_device_class_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device_class_spec.rst b/doc/source/kubernetes.aio.client.models.v1_device_class_spec.rst new file mode 100644 index 0000000000..cac5141d94 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device_class_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device\_class\_spec module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_device_class_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device_constraint.rst b/doc/source/kubernetes.aio.client.models.v1_device_constraint.rst new file mode 100644 index 0000000000..148aaf83cd --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device_constraint.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device\_constraint module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_device_constraint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device_counter_consumption.rst b/doc/source/kubernetes.aio.client.models.v1_device_counter_consumption.rst new file mode 100644 index 0000000000..f3c7ec17a9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device_counter_consumption.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device\_counter\_consumption module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_device_counter_consumption + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device_request.rst b/doc/source/kubernetes.aio.client.models.v1_device_request.rst new file mode 100644 index 0000000000..c136891b4a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device_request.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device\_request module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_device_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device_request_allocation_result.rst b/doc/source/kubernetes.aio.client.models.v1_device_request_allocation_result.rst new file mode 100644 index 0000000000..738d257588 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device_request_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device\_request\_allocation\_result module +=========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_device_request_allocation_result + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device_selector.rst b/doc/source/kubernetes.aio.client.models.v1_device_selector.rst new file mode 100644 index 0000000000..44caff9325 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device_selector.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device\_selector module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_device_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device_sub_request.rst b/doc/source/kubernetes.aio.client.models.v1_device_sub_request.rst new file mode 100644 index 0000000000..606f48325b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device_sub_request.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device\_sub\_request module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_device_sub_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device_taint.rst b/doc/source/kubernetes.aio.client.models.v1_device_taint.rst new file mode 100644 index 0000000000..1573d317bc --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device_taint.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device\_taint module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_device_taint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_device_toleration.rst b/doc/source/kubernetes.aio.client.models.v1_device_toleration.rst new file mode 100644 index 0000000000..9c85ba2eac --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_device_toleration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_device\_toleration module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_device_toleration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_downward_api_projection.rst b/doc/source/kubernetes.aio.client.models.v1_downward_api_projection.rst new file mode 100644 index 0000000000..b58c040e95 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_downward_api_projection.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_downward\_api\_projection module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_downward_api_projection + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_downward_api_volume_file.rst b/doc/source/kubernetes.aio.client.models.v1_downward_api_volume_file.rst new file mode 100644 index 0000000000..b67908015b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_downward_api_volume_file.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_downward\_api\_volume\_file module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_downward_api_volume_file + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_downward_api_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_downward_api_volume_source.rst new file mode 100644 index 0000000000..d759eb38b0 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_downward_api_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_downward\_api\_volume\_source module +===================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_downward_api_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_empty_dir_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_empty_dir_volume_source.rst new file mode 100644 index 0000000000..25528d5134 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_empty_dir_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_empty\_dir\_volume\_source module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_empty_dir_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_endpoint.rst b/doc/source/kubernetes.aio.client.models.v1_endpoint.rst new file mode 100644 index 0000000000..b06fa4f532 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_endpoint.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_endpoint module +================================================ + +.. automodule:: kubernetes.aio.client.models.v1_endpoint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_endpoint_address.rst b/doc/source/kubernetes.aio.client.models.v1_endpoint_address.rst new file mode 100644 index 0000000000..6af2e94ed1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_endpoint_address.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_endpoint\_address module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_endpoint_address + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_endpoint_conditions.rst b/doc/source/kubernetes.aio.client.models.v1_endpoint_conditions.rst new file mode 100644 index 0000000000..8816085577 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_endpoint_conditions.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_endpoint\_conditions module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_endpoint_conditions + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_endpoint_hints.rst b/doc/source/kubernetes.aio.client.models.v1_endpoint_hints.rst new file mode 100644 index 0000000000..2d1c103e11 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_endpoint_hints.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_endpoint\_hints module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_endpoint_hints + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_endpoint_slice.rst b/doc/source/kubernetes.aio.client.models.v1_endpoint_slice.rst new file mode 100644 index 0000000000..e80070e39c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_endpoint_slice.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_endpoint\_slice module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_endpoint_slice + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_endpoint_slice_list.rst b/doc/source/kubernetes.aio.client.models.v1_endpoint_slice_list.rst new file mode 100644 index 0000000000..5f789339af --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_endpoint_slice_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_endpoint\_slice\_list module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_endpoint_slice_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_endpoint_subset.rst b/doc/source/kubernetes.aio.client.models.v1_endpoint_subset.rst new file mode 100644 index 0000000000..06b2cb890d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_endpoint_subset.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_endpoint\_subset module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_endpoint_subset + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_endpoints.rst b/doc/source/kubernetes.aio.client.models.v1_endpoints.rst new file mode 100644 index 0000000000..ad1d0ac57b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_endpoints.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_endpoints module +================================================= + +.. automodule:: kubernetes.aio.client.models.v1_endpoints + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_endpoints_list.rst b/doc/source/kubernetes.aio.client.models.v1_endpoints_list.rst new file mode 100644 index 0000000000..664f5df8be --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_endpoints_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_endpoints\_list module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_endpoints_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_env_from_source.rst b/doc/source/kubernetes.aio.client.models.v1_env_from_source.rst new file mode 100644 index 0000000000..39cd78c718 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_env_from_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_env\_from\_source module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_env_from_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_env_var.rst b/doc/source/kubernetes.aio.client.models.v1_env_var.rst new file mode 100644 index 0000000000..c62ec872ce --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_env_var.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_env\_var module +================================================ + +.. automodule:: kubernetes.aio.client.models.v1_env_var + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_env_var_source.rst b/doc/source/kubernetes.aio.client.models.v1_env_var_source.rst new file mode 100644 index 0000000000..3d5033ddd7 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_env_var_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_env\_var\_source module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_env_var_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ephemeral_container.rst b/doc/source/kubernetes.aio.client.models.v1_ephemeral_container.rst new file mode 100644 index 0000000000..a726369c98 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ephemeral_container.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ephemeral\_container module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_ephemeral_container + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ephemeral_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_ephemeral_volume_source.rst new file mode 100644 index 0000000000..0520dab2e6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ephemeral_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ephemeral\_volume\_source module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_ephemeral_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_event_source.rst b/doc/source/kubernetes.aio.client.models.v1_event_source.rst new file mode 100644 index 0000000000..bb2a60507c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_event_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_event\_source module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_event_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_eviction.rst b/doc/source/kubernetes.aio.client.models.v1_eviction.rst new file mode 100644 index 0000000000..533b7cfa2e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_eviction.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_eviction module +================================================ + +.. automodule:: kubernetes.aio.client.models.v1_eviction + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_exact_device_request.rst b/doc/source/kubernetes.aio.client.models.v1_exact_device_request.rst new file mode 100644 index 0000000000..19e1bd2e6e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_exact_device_request.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_exact\_device\_request module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_exact_device_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_exec_action.rst b/doc/source/kubernetes.aio.client.models.v1_exec_action.rst new file mode 100644 index 0000000000..35932a1d69 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_exec_action.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_exec\_action module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v1_exec_action + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_exempt_priority_level_configuration.rst b/doc/source/kubernetes.aio.client.models.v1_exempt_priority_level_configuration.rst new file mode 100644 index 0000000000..262b13d380 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_exempt_priority_level_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_exempt\_priority\_level\_configuration module +============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_exempt_priority_level_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_expression_warning.rst b/doc/source/kubernetes.aio.client.models.v1_expression_warning.rst new file mode 100644 index 0000000000..fbfecfeae8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_expression_warning.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_expression\_warning module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_expression_warning + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_external_documentation.rst b/doc/source/kubernetes.aio.client.models.v1_external_documentation.rst new file mode 100644 index 0000000000..a25d6cef8c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_external_documentation.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_external\_documentation module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_external_documentation + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_fc_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_fc_volume_source.rst new file mode 100644 index 0000000000..b2aebc90e2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_fc_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_fc\_volume\_source module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_fc_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_field_selector_attributes.rst b/doc/source/kubernetes.aio.client.models.v1_field_selector_attributes.rst new file mode 100644 index 0000000000..5a6afdfb25 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_field_selector_attributes.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_field\_selector\_attributes module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_field_selector_attributes + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_field_selector_requirement.rst b/doc/source/kubernetes.aio.client.models.v1_field_selector_requirement.rst new file mode 100644 index 0000000000..acd661882a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_field_selector_requirement.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_field\_selector\_requirement module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_field_selector_requirement + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_file_key_selector.rst b/doc/source/kubernetes.aio.client.models.v1_file_key_selector.rst new file mode 100644 index 0000000000..96a53e026d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_file_key_selector.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_file\_key\_selector module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_file_key_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_flex_persistent_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_flex_persistent_volume_source.rst new file mode 100644 index 0000000000..7867e14237 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_flex_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_flex\_persistent\_volume\_source module +======================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_flex_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_flex_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_flex_volume_source.rst new file mode 100644 index 0000000000..d3274461c2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_flex_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_flex\_volume\_source module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_flex_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_flocker_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_flocker_volume_source.rst new file mode 100644 index 0000000000..630a2ae259 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_flocker_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_flocker\_volume\_source module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_flocker_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_flow_distinguisher_method.rst b/doc/source/kubernetes.aio.client.models.v1_flow_distinguisher_method.rst new file mode 100644 index 0000000000..1fcd15863b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_flow_distinguisher_method.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_flow\_distinguisher\_method module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_flow_distinguisher_method + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_flow_schema.rst b/doc/source/kubernetes.aio.client.models.v1_flow_schema.rst new file mode 100644 index 0000000000..8b13195487 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_flow_schema.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_flow\_schema module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v1_flow_schema + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_flow_schema_condition.rst b/doc/source/kubernetes.aio.client.models.v1_flow_schema_condition.rst new file mode 100644 index 0000000000..4f560fa451 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_flow_schema_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_flow\_schema\_condition module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_flow_schema_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_flow_schema_list.rst b/doc/source/kubernetes.aio.client.models.v1_flow_schema_list.rst new file mode 100644 index 0000000000..15b49a594a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_flow_schema_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_flow\_schema\_list module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_flow_schema_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_flow_schema_spec.rst b/doc/source/kubernetes.aio.client.models.v1_flow_schema_spec.rst new file mode 100644 index 0000000000..a1428c06a1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_flow_schema_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_flow\_schema\_spec module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_flow_schema_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_flow_schema_status.rst b/doc/source/kubernetes.aio.client.models.v1_flow_schema_status.rst new file mode 100644 index 0000000000..49459941b3 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_flow_schema_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_flow\_schema\_status module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_flow_schema_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_for_node.rst b/doc/source/kubernetes.aio.client.models.v1_for_node.rst new file mode 100644 index 0000000000..14dec2f763 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_for_node.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_for\_node module +================================================= + +.. automodule:: kubernetes.aio.client.models.v1_for_node + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_for_zone.rst b/doc/source/kubernetes.aio.client.models.v1_for_zone.rst new file mode 100644 index 0000000000..ed7fd51af9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_for_zone.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_for\_zone module +================================================= + +.. automodule:: kubernetes.aio.client.models.v1_for_zone + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_gce_persistent_disk_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_gce_persistent_disk_volume_source.rst new file mode 100644 index 0000000000..f11dc9ac0d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_gce_persistent_disk_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_gce\_persistent\_disk\_volume\_source module +============================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_gce_persistent_disk_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_git_repo_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_git_repo_volume_source.rst new file mode 100644 index 0000000000..4deac6392c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_git_repo_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_git\_repo\_volume\_source module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_git_repo_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_glusterfs_persistent_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_glusterfs_persistent_volume_source.rst new file mode 100644 index 0000000000..cccdcb4ac0 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_glusterfs_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_glusterfs\_persistent\_volume\_source module +============================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_glusterfs_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_glusterfs_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_glusterfs_volume_source.rst new file mode 100644 index 0000000000..f8388b91c6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_glusterfs_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_glusterfs\_volume\_source module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_glusterfs_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_group_resource.rst b/doc/source/kubernetes.aio.client.models.v1_group_resource.rst new file mode 100644 index 0000000000..8f5a56246b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_group_resource.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_group\_resource module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_group_resource + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_group_subject.rst b/doc/source/kubernetes.aio.client.models.v1_group_subject.rst new file mode 100644 index 0000000000..37da5cd08f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_group_subject.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_group\_subject module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v1_group_subject + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_group_version_for_discovery.rst b/doc/source/kubernetes.aio.client.models.v1_group_version_for_discovery.rst new file mode 100644 index 0000000000..6c140d3484 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_group_version_for_discovery.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_group\_version\_for\_discovery module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_group_version_for_discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_group_version_kind.rst b/doc/source/kubernetes.aio.client.models.v1_group_version_kind.rst new file mode 100644 index 0000000000..236cb54386 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_group_version_kind.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_group\_version\_kind module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_group_version_kind + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_grpc_action.rst b/doc/source/kubernetes.aio.client.models.v1_grpc_action.rst new file mode 100644 index 0000000000..9f395debc6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_grpc_action.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_grpc\_action module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v1_grpc_action + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_horizontal_pod_autoscaler.rst b/doc/source/kubernetes.aio.client.models.v1_horizontal_pod_autoscaler.rst new file mode 100644 index 0000000000..cdddf5cf91 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_horizontal_pod_autoscaler.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_horizontal\_pod\_autoscaler module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_horizontal_pod_autoscaler + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_horizontal_pod_autoscaler_list.rst b/doc/source/kubernetes.aio.client.models.v1_horizontal_pod_autoscaler_list.rst new file mode 100644 index 0000000000..9853357a39 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_horizontal_pod_autoscaler_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_horizontal\_pod\_autoscaler\_list module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_horizontal_pod_autoscaler_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_horizontal_pod_autoscaler_spec.rst b/doc/source/kubernetes.aio.client.models.v1_horizontal_pod_autoscaler_spec.rst new file mode 100644 index 0000000000..b9a1767357 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_horizontal_pod_autoscaler_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_horizontal\_pod\_autoscaler\_spec module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_horizontal_pod_autoscaler_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_horizontal_pod_autoscaler_status.rst b/doc/source/kubernetes.aio.client.models.v1_horizontal_pod_autoscaler_status.rst new file mode 100644 index 0000000000..3d93da89ab --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_horizontal_pod_autoscaler_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_horizontal\_pod\_autoscaler\_status module +=========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_horizontal_pod_autoscaler_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_host_alias.rst b/doc/source/kubernetes.aio.client.models.v1_host_alias.rst new file mode 100644 index 0000000000..f2c8f07f8b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_host_alias.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_host\_alias module +=================================================== + +.. automodule:: kubernetes.aio.client.models.v1_host_alias + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_host_ip.rst b/doc/source/kubernetes.aio.client.models.v1_host_ip.rst new file mode 100644 index 0000000000..e3a284ec4e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_host_ip.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_host\_ip module +================================================ + +.. automodule:: kubernetes.aio.client.models.v1_host_ip + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_host_path_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_host_path_volume_source.rst new file mode 100644 index 0000000000..598d18cf97 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_host_path_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_host\_path\_volume\_source module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_host_path_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_http_get_action.rst b/doc/source/kubernetes.aio.client.models.v1_http_get_action.rst new file mode 100644 index 0000000000..9abaebac10 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_http_get_action.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_http\_get\_action module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_http_get_action + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_http_header.rst b/doc/source/kubernetes.aio.client.models.v1_http_header.rst new file mode 100644 index 0000000000..406f399153 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_http_header.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_http\_header module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v1_http_header + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_http_ingress_path.rst b/doc/source/kubernetes.aio.client.models.v1_http_ingress_path.rst new file mode 100644 index 0000000000..055f348b77 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_http_ingress_path.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_http\_ingress\_path module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_http_ingress_path + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_http_ingress_rule_value.rst b/doc/source/kubernetes.aio.client.models.v1_http_ingress_rule_value.rst new file mode 100644 index 0000000000..1ffe3d84fb --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_http_ingress_rule_value.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_http\_ingress\_rule\_value module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_http_ingress_rule_value + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_image_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_image_volume_source.rst new file mode 100644 index 0000000000..9d82824241 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_image_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_image\_volume\_source module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_image_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_image_volume_status.rst b/doc/source/kubernetes.aio.client.models.v1_image_volume_status.rst new file mode 100644 index 0000000000..fb620fe2d9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_image_volume_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_image\_volume\_status module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_image_volume_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ingress.rst b/doc/source/kubernetes.aio.client.models.v1_ingress.rst new file mode 100644 index 0000000000..f130be5cfe --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ingress.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ingress module +=============================================== + +.. automodule:: kubernetes.aio.client.models.v1_ingress + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ingress_backend.rst b/doc/source/kubernetes.aio.client.models.v1_ingress_backend.rst new file mode 100644 index 0000000000..32af34f5ec --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ingress_backend.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ingress\_backend module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_ingress_backend + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ingress_class.rst b/doc/source/kubernetes.aio.client.models.v1_ingress_class.rst new file mode 100644 index 0000000000..958eea24d3 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ingress_class.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ingress\_class module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v1_ingress_class + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ingress_class_list.rst b/doc/source/kubernetes.aio.client.models.v1_ingress_class_list.rst new file mode 100644 index 0000000000..6ac3fa2664 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ingress_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ingress\_class\_list module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_ingress_class_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ingress_class_parameters_reference.rst b/doc/source/kubernetes.aio.client.models.v1_ingress_class_parameters_reference.rst new file mode 100644 index 0000000000..c37e2517e1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ingress_class_parameters_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ingress\_class\_parameters\_reference module +============================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_ingress_class_parameters_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ingress_class_spec.rst b/doc/source/kubernetes.aio.client.models.v1_ingress_class_spec.rst new file mode 100644 index 0000000000..10cafa7667 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ingress_class_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ingress\_class\_spec module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_ingress_class_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ingress_list.rst b/doc/source/kubernetes.aio.client.models.v1_ingress_list.rst new file mode 100644 index 0000000000..44d9bc0ab4 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ingress_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ingress\_list module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_ingress_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ingress_load_balancer_ingress.rst b/doc/source/kubernetes.aio.client.models.v1_ingress_load_balancer_ingress.rst new file mode 100644 index 0000000000..aa8a65cc7f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ingress_load_balancer_ingress.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ingress\_load\_balancer\_ingress module +======================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_ingress_load_balancer_ingress + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ingress_load_balancer_status.rst b/doc/source/kubernetes.aio.client.models.v1_ingress_load_balancer_status.rst new file mode 100644 index 0000000000..c04f123a14 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ingress_load_balancer_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ingress\_load\_balancer\_status module +======================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_ingress_load_balancer_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ingress_port_status.rst b/doc/source/kubernetes.aio.client.models.v1_ingress_port_status.rst new file mode 100644 index 0000000000..267134952b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ingress_port_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ingress\_port\_status module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_ingress_port_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ingress_rule.rst b/doc/source/kubernetes.aio.client.models.v1_ingress_rule.rst new file mode 100644 index 0000000000..d49c8336fe --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ingress_rule.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ingress\_rule module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_ingress_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ingress_service_backend.rst b/doc/source/kubernetes.aio.client.models.v1_ingress_service_backend.rst new file mode 100644 index 0000000000..812705997b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ingress_service_backend.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ingress\_service\_backend module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_ingress_service_backend + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ingress_spec.rst b/doc/source/kubernetes.aio.client.models.v1_ingress_spec.rst new file mode 100644 index 0000000000..5af39beb00 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ingress_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ingress\_spec module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_ingress_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ingress_status.rst b/doc/source/kubernetes.aio.client.models.v1_ingress_status.rst new file mode 100644 index 0000000000..bf57b1546d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ingress_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ingress\_status module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_ingress_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ingress_tls.rst b/doc/source/kubernetes.aio.client.models.v1_ingress_tls.rst new file mode 100644 index 0000000000..ae52fdf33d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ingress_tls.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ingress\_tls module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v1_ingress_tls + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ip_address.rst b/doc/source/kubernetes.aio.client.models.v1_ip_address.rst new file mode 100644 index 0000000000..9da316ac01 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ip_address.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ip\_address module +=================================================== + +.. automodule:: kubernetes.aio.client.models.v1_ip_address + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ip_address_list.rst b/doc/source/kubernetes.aio.client.models.v1_ip_address_list.rst new file mode 100644 index 0000000000..e17ffc6ed4 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ip_address_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ip\_address\_list module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_ip_address_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ip_address_spec.rst b/doc/source/kubernetes.aio.client.models.v1_ip_address_spec.rst new file mode 100644 index 0000000000..d42d903d44 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ip_address_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ip\_address\_spec module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_ip_address_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_ip_block.rst b/doc/source/kubernetes.aio.client.models.v1_ip_block.rst new file mode 100644 index 0000000000..b02ab830b8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_ip_block.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_ip\_block module +================================================= + +.. automodule:: kubernetes.aio.client.models.v1_ip_block + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_iscsi_persistent_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_iscsi_persistent_volume_source.rst new file mode 100644 index 0000000000..63ef4c526e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_iscsi_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_iscsi\_persistent\_volume\_source module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_iscsi_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_iscsi_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_iscsi_volume_source.rst new file mode 100644 index 0000000000..6b694c26ed --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_iscsi_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_iscsi\_volume\_source module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_iscsi_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_job.rst b/doc/source/kubernetes.aio.client.models.v1_job.rst new file mode 100644 index 0000000000..24d9230da5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_job.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_job module +=========================================== + +.. automodule:: kubernetes.aio.client.models.v1_job + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_job_condition.rst b/doc/source/kubernetes.aio.client.models.v1_job_condition.rst new file mode 100644 index 0000000000..8f1b78322f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_job_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_job\_condition module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v1_job_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_job_list.rst b/doc/source/kubernetes.aio.client.models.v1_job_list.rst new file mode 100644 index 0000000000..eeaaf32b0e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_job_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_job\_list module +================================================= + +.. automodule:: kubernetes.aio.client.models.v1_job_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_job_spec.rst b/doc/source/kubernetes.aio.client.models.v1_job_spec.rst new file mode 100644 index 0000000000..abd26081c2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_job_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_job\_spec module +================================================= + +.. automodule:: kubernetes.aio.client.models.v1_job_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_job_status.rst b/doc/source/kubernetes.aio.client.models.v1_job_status.rst new file mode 100644 index 0000000000..5b9c3c5dc3 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_job_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_job\_status module +=================================================== + +.. automodule:: kubernetes.aio.client.models.v1_job_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_job_template_spec.rst b/doc/source/kubernetes.aio.client.models.v1_job_template_spec.rst new file mode 100644 index 0000000000..a91e88d290 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_job_template_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_job\_template\_spec module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_job_template_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_json_patch.rst b/doc/source/kubernetes.aio.client.models.v1_json_patch.rst new file mode 100644 index 0000000000..36b6d96d00 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_json_patch.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_json\_patch module +=================================================== + +.. automodule:: kubernetes.aio.client.models.v1_json_patch + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_json_schema_props.rst b/doc/source/kubernetes.aio.client.models.v1_json_schema_props.rst new file mode 100644 index 0000000000..9b8b9b5b42 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_json_schema_props.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_json\_schema\_props module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_json_schema_props + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_key_to_path.rst b/doc/source/kubernetes.aio.client.models.v1_key_to_path.rst new file mode 100644 index 0000000000..5eb8d2dc6b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_key_to_path.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_key\_to\_path module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_key_to_path + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_label_selector.rst b/doc/source/kubernetes.aio.client.models.v1_label_selector.rst new file mode 100644 index 0000000000..c150d60a7a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_label_selector.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_label\_selector module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_label_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_label_selector_attributes.rst b/doc/source/kubernetes.aio.client.models.v1_label_selector_attributes.rst new file mode 100644 index 0000000000..6347a53f2b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_label_selector_attributes.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_label\_selector\_attributes module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_label_selector_attributes + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_label_selector_requirement.rst b/doc/source/kubernetes.aio.client.models.v1_label_selector_requirement.rst new file mode 100644 index 0000000000..8d85f7820b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_label_selector_requirement.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_label\_selector\_requirement module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_label_selector_requirement + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_lease.rst b/doc/source/kubernetes.aio.client.models.v1_lease.rst new file mode 100644 index 0000000000..68334ff90a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_lease.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_lease module +============================================= + +.. automodule:: kubernetes.aio.client.models.v1_lease + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_lease_list.rst b/doc/source/kubernetes.aio.client.models.v1_lease_list.rst new file mode 100644 index 0000000000..9f04dc6b69 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_lease_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_lease\_list module +=================================================== + +.. automodule:: kubernetes.aio.client.models.v1_lease_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_lease_spec.rst b/doc/source/kubernetes.aio.client.models.v1_lease_spec.rst new file mode 100644 index 0000000000..2cdaf90b1e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_lease_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_lease\_spec module +=================================================== + +.. automodule:: kubernetes.aio.client.models.v1_lease_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_lifecycle.rst b/doc/source/kubernetes.aio.client.models.v1_lifecycle.rst new file mode 100644 index 0000000000..53f1298fb1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_lifecycle.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_lifecycle module +================================================= + +.. automodule:: kubernetes.aio.client.models.v1_lifecycle + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_lifecycle_handler.rst b/doc/source/kubernetes.aio.client.models.v1_lifecycle_handler.rst new file mode 100644 index 0000000000..f27b7a9dea --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_lifecycle_handler.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_lifecycle\_handler module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_lifecycle_handler + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_limit_range.rst b/doc/source/kubernetes.aio.client.models.v1_limit_range.rst new file mode 100644 index 0000000000..a875c9a208 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_limit_range.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_limit\_range module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v1_limit_range + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_limit_range_item.rst b/doc/source/kubernetes.aio.client.models.v1_limit_range_item.rst new file mode 100644 index 0000000000..6a2a2df75f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_limit_range_item.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_limit\_range\_item module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_limit_range_item + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_limit_range_list.rst b/doc/source/kubernetes.aio.client.models.v1_limit_range_list.rst new file mode 100644 index 0000000000..80ba115f2e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_limit_range_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_limit\_range\_list module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_limit_range_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_limit_range_spec.rst b/doc/source/kubernetes.aio.client.models.v1_limit_range_spec.rst new file mode 100644 index 0000000000..3762320618 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_limit_range_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_limit\_range\_spec module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_limit_range_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_limit_response.rst b/doc/source/kubernetes.aio.client.models.v1_limit_response.rst new file mode 100644 index 0000000000..7d6373f172 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_limit_response.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_limit\_response module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_limit_response + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_limited_priority_level_configuration.rst b/doc/source/kubernetes.aio.client.models.v1_limited_priority_level_configuration.rst new file mode 100644 index 0000000000..f815f5ca29 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_limited_priority_level_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_limited\_priority\_level\_configuration module +=============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_limited_priority_level_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_linux_container_user.rst b/doc/source/kubernetes.aio.client.models.v1_linux_container_user.rst new file mode 100644 index 0000000000..687ca4d60d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_linux_container_user.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_linux\_container\_user module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_linux_container_user + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_list_meta.rst b/doc/source/kubernetes.aio.client.models.v1_list_meta.rst new file mode 100644 index 0000000000..da82a72dc5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_list_meta.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_list\_meta module +================================================== + +.. automodule:: kubernetes.aio.client.models.v1_list_meta + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_load_balancer_ingress.rst b/doc/source/kubernetes.aio.client.models.v1_load_balancer_ingress.rst new file mode 100644 index 0000000000..1c88776d7b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_load_balancer_ingress.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_load\_balancer\_ingress module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_load_balancer_ingress + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_load_balancer_status.rst b/doc/source/kubernetes.aio.client.models.v1_load_balancer_status.rst new file mode 100644 index 0000000000..ff38d0ac16 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_load_balancer_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_load\_balancer\_status module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_load_balancer_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_local_object_reference.rst b/doc/source/kubernetes.aio.client.models.v1_local_object_reference.rst new file mode 100644 index 0000000000..fb3621784f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_local_object_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_local\_object\_reference module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_local_object_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_local_subject_access_review.rst b/doc/source/kubernetes.aio.client.models.v1_local_subject_access_review.rst new file mode 100644 index 0000000000..e3906db40b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_local_subject_access_review.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_local\_subject\_access\_review module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_local_subject_access_review + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_local_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_local_volume_source.rst new file mode 100644 index 0000000000..652dc8238d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_local_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_local\_volume\_source module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_local_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_managed_fields_entry.rst b/doc/source/kubernetes.aio.client.models.v1_managed_fields_entry.rst new file mode 100644 index 0000000000..d652497e4d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_managed_fields_entry.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_managed\_fields\_entry module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_managed_fields_entry + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_match_condition.rst b/doc/source/kubernetes.aio.client.models.v1_match_condition.rst new file mode 100644 index 0000000000..ff952d8c46 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_match_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_match\_condition module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_match_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_match_resources.rst b/doc/source/kubernetes.aio.client.models.v1_match_resources.rst new file mode 100644 index 0000000000..f4a79f04ea --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_match_resources.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_match\_resources module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_match_resources + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_modify_volume_status.rst b/doc/source/kubernetes.aio.client.models.v1_modify_volume_status.rst new file mode 100644 index 0000000000..551eb3613f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_modify_volume_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_modify\_volume\_status module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_modify_volume_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy.rst b/doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy.rst new file mode 100644 index 0000000000..6843e4e353 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_mutating\_admission\_policy module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_mutating_admission_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_binding.rst b/doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_binding.rst new file mode 100644 index 0000000000..9104a855f4 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_binding.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_mutating\_admission\_policy\_binding module +============================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_mutating_admission_policy_binding + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_binding_list.rst b/doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_binding_list.rst new file mode 100644 index 0000000000..2e46616ce3 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_binding_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_mutating\_admission\_policy\_binding\_list module +================================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_mutating_admission_policy_binding_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_binding_spec.rst b/doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_binding_spec.rst new file mode 100644 index 0000000000..d8979f0a6d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_binding_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_mutating\_admission\_policy\_binding\_spec module +================================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_mutating_admission_policy_binding_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_list.rst b/doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_list.rst new file mode 100644 index 0000000000..593071ac16 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_mutating\_admission\_policy\_list module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_mutating_admission_policy_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_spec.rst b/doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_spec.rst new file mode 100644 index 0000000000..a99ade7f8d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_mutating_admission_policy_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_mutating\_admission\_policy\_spec module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_mutating_admission_policy_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_mutating_webhook.rst b/doc/source/kubernetes.aio.client.models.v1_mutating_webhook.rst new file mode 100644 index 0000000000..d52007104f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_mutating_webhook.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_mutating\_webhook module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_mutating_webhook + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_mutating_webhook_configuration.rst b/doc/source/kubernetes.aio.client.models.v1_mutating_webhook_configuration.rst new file mode 100644 index 0000000000..60c6d36a0c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_mutating_webhook_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_mutating\_webhook\_configuration module +======================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_mutating_webhook_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_mutating_webhook_configuration_list.rst b/doc/source/kubernetes.aio.client.models.v1_mutating_webhook_configuration_list.rst new file mode 100644 index 0000000000..66fe67aa29 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_mutating_webhook_configuration_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_mutating\_webhook\_configuration\_list module +============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_mutating_webhook_configuration_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_mutation.rst b/doc/source/kubernetes.aio.client.models.v1_mutation.rst new file mode 100644 index 0000000000..d686abbc18 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_mutation.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_mutation module +================================================ + +.. automodule:: kubernetes.aio.client.models.v1_mutation + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_named_rule_with_operations.rst b/doc/source/kubernetes.aio.client.models.v1_named_rule_with_operations.rst new file mode 100644 index 0000000000..5731a7d8cc --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_named_rule_with_operations.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_named\_rule\_with\_operations module +===================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_named_rule_with_operations + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_namespace.rst b/doc/source/kubernetes.aio.client.models.v1_namespace.rst new file mode 100644 index 0000000000..fe85d861d7 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_namespace.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_namespace module +================================================= + +.. automodule:: kubernetes.aio.client.models.v1_namespace + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_namespace_condition.rst b/doc/source/kubernetes.aio.client.models.v1_namespace_condition.rst new file mode 100644 index 0000000000..4509c09b4e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_namespace_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_namespace\_condition module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_namespace_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_namespace_list.rst b/doc/source/kubernetes.aio.client.models.v1_namespace_list.rst new file mode 100644 index 0000000000..265b9e40d1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_namespace_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_namespace\_list module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_namespace_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_namespace_spec.rst b/doc/source/kubernetes.aio.client.models.v1_namespace_spec.rst new file mode 100644 index 0000000000..cbfcda7ca1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_namespace_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_namespace\_spec module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_namespace_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_namespace_status.rst b/doc/source/kubernetes.aio.client.models.v1_namespace_status.rst new file mode 100644 index 0000000000..2a571d7e3f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_namespace_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_namespace\_status module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_namespace_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_network_device_data.rst b/doc/source/kubernetes.aio.client.models.v1_network_device_data.rst new file mode 100644 index 0000000000..c7baccc109 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_network_device_data.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_network\_device\_data module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_network_device_data + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_network_policy.rst b/doc/source/kubernetes.aio.client.models.v1_network_policy.rst new file mode 100644 index 0000000000..ae20d80b12 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_network_policy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_network\_policy module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_network_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_network_policy_egress_rule.rst b/doc/source/kubernetes.aio.client.models.v1_network_policy_egress_rule.rst new file mode 100644 index 0000000000..7a11f61dc9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_network_policy_egress_rule.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_network\_policy\_egress\_rule module +===================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_network_policy_egress_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_network_policy_ingress_rule.rst b/doc/source/kubernetes.aio.client.models.v1_network_policy_ingress_rule.rst new file mode 100644 index 0000000000..564e58336c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_network_policy_ingress_rule.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_network\_policy\_ingress\_rule module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_network_policy_ingress_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_network_policy_list.rst b/doc/source/kubernetes.aio.client.models.v1_network_policy_list.rst new file mode 100644 index 0000000000..4a93281717 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_network_policy_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_network\_policy\_list module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_network_policy_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_network_policy_peer.rst b/doc/source/kubernetes.aio.client.models.v1_network_policy_peer.rst new file mode 100644 index 0000000000..481c006acf --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_network_policy_peer.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_network\_policy\_peer module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_network_policy_peer + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_network_policy_port.rst b/doc/source/kubernetes.aio.client.models.v1_network_policy_port.rst new file mode 100644 index 0000000000..4db38b90a2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_network_policy_port.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_network\_policy\_port module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_network_policy_port + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_network_policy_spec.rst b/doc/source/kubernetes.aio.client.models.v1_network_policy_spec.rst new file mode 100644 index 0000000000..ac703e2605 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_network_policy_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_network\_policy\_spec module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_network_policy_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_nfs_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_nfs_volume_source.rst new file mode 100644 index 0000000000..5aa1101ad5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_nfs_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_nfs\_volume\_source module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_nfs_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node.rst b/doc/source/kubernetes.aio.client.models.v1_node.rst new file mode 100644 index 0000000000..3cbb195ccb --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node module +============================================ + +.. automodule:: kubernetes.aio.client.models.v1_node + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_address.rst b/doc/source/kubernetes.aio.client.models.v1_node_address.rst new file mode 100644 index 0000000000..220ac0637d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_address.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_address module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_node_address + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_affinity.rst b/doc/source/kubernetes.aio.client.models.v1_node_affinity.rst new file mode 100644 index 0000000000..a5cb61ef27 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_affinity.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_affinity module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v1_node_affinity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_allocatable_resource_claim_status.rst b/doc/source/kubernetes.aio.client.models.v1_node_allocatable_resource_claim_status.rst new file mode 100644 index 0000000000..0b628f96b2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_allocatable_resource_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_allocatable\_resource\_claim\_status module +================================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_node_allocatable_resource_claim_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_allocatable_resource_mapping.rst b/doc/source/kubernetes.aio.client.models.v1_node_allocatable_resource_mapping.rst new file mode 100644 index 0000000000..21ba6d1932 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_allocatable_resource_mapping.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_allocatable\_resource\_mapping module +============================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_node_allocatable_resource_mapping + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_condition.rst b/doc/source/kubernetes.aio.client.models.v1_node_condition.rst new file mode 100644 index 0000000000..f78bd8b18d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_condition module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_node_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_config_source.rst b/doc/source/kubernetes.aio.client.models.v1_node_config_source.rst new file mode 100644 index 0000000000..dec478c479 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_config_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_config\_source module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_node_config_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_config_status.rst b/doc/source/kubernetes.aio.client.models.v1_node_config_status.rst new file mode 100644 index 0000000000..8cf3206c73 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_config_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_config\_status module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_node_config_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_daemon_endpoints.rst b/doc/source/kubernetes.aio.client.models.v1_node_daemon_endpoints.rst new file mode 100644 index 0000000000..0539f25871 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_daemon_endpoints.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_daemon\_endpoints module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_node_daemon_endpoints + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_features.rst b/doc/source/kubernetes.aio.client.models.v1_node_features.rst new file mode 100644 index 0000000000..4442833c82 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_features.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_features module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v1_node_features + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_list.rst b/doc/source/kubernetes.aio.client.models.v1_node_list.rst new file mode 100644 index 0000000000..1bcf2fa72f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_list module +================================================== + +.. automodule:: kubernetes.aio.client.models.v1_node_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_runtime_handler.rst b/doc/source/kubernetes.aio.client.models.v1_node_runtime_handler.rst new file mode 100644 index 0000000000..2b7d97f311 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_runtime_handler.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_runtime\_handler module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_node_runtime_handler + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_runtime_handler_features.rst b/doc/source/kubernetes.aio.client.models.v1_node_runtime_handler_features.rst new file mode 100644 index 0000000000..fbf6d73d93 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_runtime_handler_features.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_runtime\_handler\_features module +======================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_node_runtime_handler_features + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_selector.rst b/doc/source/kubernetes.aio.client.models.v1_node_selector.rst new file mode 100644 index 0000000000..4024f3ced9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_selector.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_selector module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v1_node_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_selector_requirement.rst b/doc/source/kubernetes.aio.client.models.v1_node_selector_requirement.rst new file mode 100644 index 0000000000..e0687ed69f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_selector_requirement.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_selector\_requirement module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_node_selector_requirement + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_selector_term.rst b/doc/source/kubernetes.aio.client.models.v1_node_selector_term.rst new file mode 100644 index 0000000000..8e087a6fcd --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_selector_term.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_selector\_term module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_node_selector_term + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_spec.rst b/doc/source/kubernetes.aio.client.models.v1_node_spec.rst new file mode 100644 index 0000000000..cec0beb50a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_spec module +================================================== + +.. automodule:: kubernetes.aio.client.models.v1_node_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_status.rst b/doc/source/kubernetes.aio.client.models.v1_node_status.rst new file mode 100644 index 0000000000..767e536ac6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_status module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v1_node_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_swap_status.rst b/doc/source/kubernetes.aio.client.models.v1_node_swap_status.rst new file mode 100644 index 0000000000..d1d7305cd7 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_swap_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_swap\_status module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_node_swap_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_node_system_info.rst b/doc/source/kubernetes.aio.client.models.v1_node_system_info.rst new file mode 100644 index 0000000000..2f65def244 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_node_system_info.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_node\_system\_info module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_node_system_info + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_non_resource_attributes.rst b/doc/source/kubernetes.aio.client.models.v1_non_resource_attributes.rst new file mode 100644 index 0000000000..769f0c13f9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_non_resource_attributes.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_non\_resource\_attributes module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_non_resource_attributes + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_non_resource_policy_rule.rst b/doc/source/kubernetes.aio.client.models.v1_non_resource_policy_rule.rst new file mode 100644 index 0000000000..ff605145e6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_non_resource_policy_rule.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_non\_resource\_policy\_rule module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_non_resource_policy_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_non_resource_rule.rst b/doc/source/kubernetes.aio.client.models.v1_non_resource_rule.rst new file mode 100644 index 0000000000..c6b818129a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_non_resource_rule.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_non\_resource\_rule module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_non_resource_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_object_field_selector.rst b/doc/source/kubernetes.aio.client.models.v1_object_field_selector.rst new file mode 100644 index 0000000000..2f5758acf8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_object_field_selector.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_object\_field\_selector module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_object_field_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_object_meta.rst b/doc/source/kubernetes.aio.client.models.v1_object_meta.rst new file mode 100644 index 0000000000..108d24b6ba --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_object_meta.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_object\_meta module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v1_object_meta + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_object_reference.rst b/doc/source/kubernetes.aio.client.models.v1_object_reference.rst new file mode 100644 index 0000000000..18d0e86623 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_object_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_object\_reference module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_object_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_opaque_device_configuration.rst b/doc/source/kubernetes.aio.client.models.v1_opaque_device_configuration.rst new file mode 100644 index 0000000000..206ac40888 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_opaque_device_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_opaque\_device\_configuration module +===================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_opaque_device_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_overhead.rst b/doc/source/kubernetes.aio.client.models.v1_overhead.rst new file mode 100644 index 0000000000..892bb49997 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_overhead.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_overhead module +================================================ + +.. automodule:: kubernetes.aio.client.models.v1_overhead + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_owner_reference.rst b/doc/source/kubernetes.aio.client.models.v1_owner_reference.rst new file mode 100644 index 0000000000..10c39f4549 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_owner_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_owner\_reference module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_owner_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_param_kind.rst b/doc/source/kubernetes.aio.client.models.v1_param_kind.rst new file mode 100644 index 0000000000..1f3c88c976 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_param_kind.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_param\_kind module +=================================================== + +.. automodule:: kubernetes.aio.client.models.v1_param_kind + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_param_ref.rst b/doc/source/kubernetes.aio.client.models.v1_param_ref.rst new file mode 100644 index 0000000000..af2141a043 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_param_ref.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_param\_ref module +================================================== + +.. automodule:: kubernetes.aio.client.models.v1_param_ref + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_parent_reference.rst b/doc/source/kubernetes.aio.client.models.v1_parent_reference.rst new file mode 100644 index 0000000000..8917dd577e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_parent_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_parent\_reference module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_parent_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_persistent_volume.rst b/doc/source/kubernetes.aio.client.models.v1_persistent_volume.rst new file mode 100644 index 0000000000..43560dd8d5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_persistent_volume.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_persistent\_volume module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_persistent_volume + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim.rst b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim.rst new file mode 100644 index 0000000000..ba9ef1d369 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_persistent\_volume\_claim module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_persistent_volume_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_condition.rst b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_condition.rst new file mode 100644 index 0000000000..96a2a4c21d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_persistent\_volume\_claim\_condition module +============================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_persistent_volume_claim_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_list.rst b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_list.rst new file mode 100644 index 0000000000..16b18cf246 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_persistent\_volume\_claim\_list module +======================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_persistent_volume_claim_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_spec.rst b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_spec.rst new file mode 100644 index 0000000000..d4bdd8e897 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_persistent\_volume\_claim\_spec module +======================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_persistent_volume_claim_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_status.rst b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_status.rst new file mode 100644 index 0000000000..334ffdda5e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_persistent\_volume\_claim\_status module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_persistent_volume_claim_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_template.rst b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_template.rst new file mode 100644 index 0000000000..8e369dc006 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_template.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_persistent\_volume\_claim\_template module +=========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_persistent_volume_claim_template + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_volume_source.rst new file mode 100644 index 0000000000..0703fecd73 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_claim_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_persistent\_volume\_claim\_volume\_source module +================================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_persistent_volume_claim_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_persistent_volume_list.rst b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_list.rst new file mode 100644 index 0000000000..1e8a848193 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_persistent\_volume\_list module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_persistent_volume_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_persistent_volume_spec.rst b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_spec.rst new file mode 100644 index 0000000000..8c52fc9112 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_persistent\_volume\_spec module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_persistent_volume_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_persistent_volume_status.rst b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_status.rst new file mode 100644 index 0000000000..365763de0b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_persistent_volume_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_persistent\_volume\_status module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_persistent_volume_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_photon_persistent_disk_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_photon_persistent_disk_volume_source.rst new file mode 100644 index 0000000000..29072f3c9b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_photon_persistent_disk_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_photon\_persistent\_disk\_volume\_source module +================================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_photon_persistent_disk_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod.rst b/doc/source/kubernetes.aio.client.models.v1_pod.rst new file mode 100644 index 0000000000..08509b9934 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod module +=========================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_affinity.rst b/doc/source/kubernetes.aio.client.models.v1_pod_affinity.rst new file mode 100644 index 0000000000..5339ebfeab --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_affinity.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_affinity module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_affinity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_affinity_term.rst b/doc/source/kubernetes.aio.client.models.v1_pod_affinity_term.rst new file mode 100644 index 0000000000..25f2f98eb3 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_affinity_term.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_affinity\_term module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_affinity_term + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_anti_affinity.rst b/doc/source/kubernetes.aio.client.models.v1_pod_anti_affinity.rst new file mode 100644 index 0000000000..a407d08567 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_anti_affinity.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_anti\_affinity module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_anti_affinity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_certificate_projection.rst b/doc/source/kubernetes.aio.client.models.v1_pod_certificate_projection.rst new file mode 100644 index 0000000000..672fcb0bf4 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_certificate_projection.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_certificate\_projection module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_certificate_projection + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_condition.rst b/doc/source/kubernetes.aio.client.models.v1_pod_condition.rst new file mode 100644 index 0000000000..d0e5b91966 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_condition module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_disruption_budget.rst b/doc/source/kubernetes.aio.client.models.v1_pod_disruption_budget.rst new file mode 100644 index 0000000000..998c555769 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_disruption_budget.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_disruption\_budget module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_disruption_budget + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_disruption_budget_list.rst b/doc/source/kubernetes.aio.client.models.v1_pod_disruption_budget_list.rst new file mode 100644 index 0000000000..6cd3c97523 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_disruption_budget_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_disruption\_budget\_list module +===================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_disruption_budget_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_disruption_budget_spec.rst b/doc/source/kubernetes.aio.client.models.v1_pod_disruption_budget_spec.rst new file mode 100644 index 0000000000..a134b8ed9c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_disruption_budget_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_disruption\_budget\_spec module +===================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_disruption_budget_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_disruption_budget_status.rst b/doc/source/kubernetes.aio.client.models.v1_pod_disruption_budget_status.rst new file mode 100644 index 0000000000..0f2ab10992 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_disruption_budget_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_disruption\_budget\_status module +======================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_pod_disruption_budget_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_dns_config.rst b/doc/source/kubernetes.aio.client.models.v1_pod_dns_config.rst new file mode 100644 index 0000000000..48ece24ce6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_dns_config.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_dns\_config module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_dns_config + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_dns_config_option.rst b/doc/source/kubernetes.aio.client.models.v1_pod_dns_config_option.rst new file mode 100644 index 0000000000..80c63627a1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_dns_config_option.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_dns\_config\_option module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_pod_dns_config_option + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_extended_resource_claim_status.rst b/doc/source/kubernetes.aio.client.models.v1_pod_extended_resource_claim_status.rst new file mode 100644 index 0000000000..915d350968 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_extended_resource_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_extended\_resource\_claim\_status module +============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_extended_resource_claim_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_failure_policy.rst b/doc/source/kubernetes.aio.client.models.v1_pod_failure_policy.rst new file mode 100644 index 0000000000..fc35c8a5f8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_failure_policy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_failure\_policy module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_pod_failure_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_failure_policy_on_exit_codes_requirement.rst b/doc/source/kubernetes.aio.client.models.v1_pod_failure_policy_on_exit_codes_requirement.rst new file mode 100644 index 0000000000..e7634f84ba --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_failure_policy_on_exit_codes_requirement.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_failure\_policy\_on\_exit\_codes\_requirement module +========================================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_failure_policy_on_exit_codes_requirement + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_failure_policy_on_pod_conditions_pattern.rst b/doc/source/kubernetes.aio.client.models.v1_pod_failure_policy_on_pod_conditions_pattern.rst new file mode 100644 index 0000000000..d3a0f04a59 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_failure_policy_on_pod_conditions_pattern.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_failure\_policy\_on\_pod\_conditions\_pattern module +========================================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_failure_policy_on_pod_conditions_pattern + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_failure_policy_rule.rst b/doc/source/kubernetes.aio.client.models.v1_pod_failure_policy_rule.rst new file mode 100644 index 0000000000..44ec22ab7a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_failure_policy_rule.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_failure\_policy\_rule module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_failure_policy_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_ip.rst b/doc/source/kubernetes.aio.client.models.v1_pod_ip.rst new file mode 100644 index 0000000000..3a4d126217 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_ip.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_ip module +=============================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_ip + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_list.rst b/doc/source/kubernetes.aio.client.models.v1_pod_list.rst new file mode 100644 index 0000000000..58b66ad1a2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_list module +================================================= + +.. automodule:: kubernetes.aio.client.models.v1_pod_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_os.rst b/doc/source/kubernetes.aio.client.models.v1_pod_os.rst new file mode 100644 index 0000000000..4d9d791300 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_os.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_os module +=============================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_os + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_readiness_gate.rst b/doc/source/kubernetes.aio.client.models.v1_pod_readiness_gate.rst new file mode 100644 index 0000000000..e8fcaf88dd --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_readiness_gate.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_readiness\_gate module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_pod_readiness_gate + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_resource_claim.rst b/doc/source/kubernetes.aio.client.models.v1_pod_resource_claim.rst new file mode 100644 index 0000000000..96930fd40e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_resource_claim.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_resource\_claim module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_pod_resource_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_resource_claim_status.rst b/doc/source/kubernetes.aio.client.models.v1_pod_resource_claim_status.rst new file mode 100644 index 0000000000..ff9068e996 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_resource_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_resource\_claim\_status module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_resource_claim_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_scheduling_gate.rst b/doc/source/kubernetes.aio.client.models.v1_pod_scheduling_gate.rst new file mode 100644 index 0000000000..632412408b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_scheduling_gate.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_scheduling\_gate module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_pod_scheduling_gate + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_scheduling_group.rst b/doc/source/kubernetes.aio.client.models.v1_pod_scheduling_group.rst new file mode 100644 index 0000000000..a3b2b14d0b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_scheduling_group.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_scheduling\_group module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_scheduling_group + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_security_context.rst b/doc/source/kubernetes.aio.client.models.v1_pod_security_context.rst new file mode 100644 index 0000000000..ad06313b82 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_security_context.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_security\_context module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_security_context + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_spec.rst b/doc/source/kubernetes.aio.client.models.v1_pod_spec.rst new file mode 100644 index 0000000000..1d426ebc3f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_spec module +================================================= + +.. automodule:: kubernetes.aio.client.models.v1_pod_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_status.rst b/doc/source/kubernetes.aio.client.models.v1_pod_status.rst new file mode 100644 index 0000000000..99ca3f04c8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_status module +=================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_template.rst b/doc/source/kubernetes.aio.client.models.v1_pod_template.rst new file mode 100644 index 0000000000..37aeb8c82f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_template.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_template module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_template + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_template_list.rst b/doc/source/kubernetes.aio.client.models.v1_pod_template_list.rst new file mode 100644 index 0000000000..279962df47 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_template_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_template\_list module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_template_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_pod_template_spec.rst b/doc/source/kubernetes.aio.client.models.v1_pod_template_spec.rst new file mode 100644 index 0000000000..f84d0f9e9d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_pod_template_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_pod\_template\_spec module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_pod_template_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_policy_rule.rst b/doc/source/kubernetes.aio.client.models.v1_policy_rule.rst new file mode 100644 index 0000000000..c217579bed --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_policy_rule.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_policy\_rule module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v1_policy_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_policy_rules_with_subjects.rst b/doc/source/kubernetes.aio.client.models.v1_policy_rules_with_subjects.rst new file mode 100644 index 0000000000..470881d502 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_policy_rules_with_subjects.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_policy\_rules\_with\_subjects module +===================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_policy_rules_with_subjects + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_port_status.rst b/doc/source/kubernetes.aio.client.models.v1_port_status.rst new file mode 100644 index 0000000000..39d21c3ed9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_port_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_port\_status module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v1_port_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_portworx_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_portworx_volume_source.rst new file mode 100644 index 0000000000..4f802d20ec --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_portworx_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_portworx\_volume\_source module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_portworx_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_preconditions.rst b/doc/source/kubernetes.aio.client.models.v1_preconditions.rst new file mode 100644 index 0000000000..61c24c515b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_preconditions.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_preconditions module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_preconditions + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_preferred_scheduling_term.rst b/doc/source/kubernetes.aio.client.models.v1_preferred_scheduling_term.rst new file mode 100644 index 0000000000..15fcf5fded --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_preferred_scheduling_term.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_preferred\_scheduling\_term module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_preferred_scheduling_term + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_priority_class.rst b/doc/source/kubernetes.aio.client.models.v1_priority_class.rst new file mode 100644 index 0000000000..f326073224 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_priority_class.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_priority\_class module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_priority_class + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_priority_class_list.rst b/doc/source/kubernetes.aio.client.models.v1_priority_class_list.rst new file mode 100644 index 0000000000..c31278957e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_priority_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_priority\_class\_list module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_priority_class_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_priority_level_configuration.rst b/doc/source/kubernetes.aio.client.models.v1_priority_level_configuration.rst new file mode 100644 index 0000000000..b55bcdf681 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_priority_level_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_priority\_level\_configuration module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_priority_level_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_condition.rst b/doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_condition.rst new file mode 100644 index 0000000000..23e856df83 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_priority\_level\_configuration\_condition module +================================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_priority_level_configuration_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_list.rst b/doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_list.rst new file mode 100644 index 0000000000..3602a386f5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_priority\_level\_configuration\_list module +============================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_priority_level_configuration_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_reference.rst b/doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_reference.rst new file mode 100644 index 0000000000..a4d5f151a2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_priority\_level\_configuration\_reference module +================================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_priority_level_configuration_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_spec.rst b/doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_spec.rst new file mode 100644 index 0000000000..8a8f54f3f1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_priority\_level\_configuration\_spec module +============================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_priority_level_configuration_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_status.rst b/doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_status.rst new file mode 100644 index 0000000000..8f936bf817 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_priority_level_configuration_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_priority\_level\_configuration\_status module +============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_priority_level_configuration_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_probe.rst b/doc/source/kubernetes.aio.client.models.v1_probe.rst new file mode 100644 index 0000000000..cf8d8686f5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_probe.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_probe module +============================================= + +.. automodule:: kubernetes.aio.client.models.v1_probe + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_projected_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_projected_volume_source.rst new file mode 100644 index 0000000000..19c369465f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_projected_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_projected\_volume\_source module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_projected_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_queuing_configuration.rst b/doc/source/kubernetes.aio.client.models.v1_queuing_configuration.rst new file mode 100644 index 0000000000..6e8c0ca12b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_queuing_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_queuing\_configuration module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_queuing_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_quobyte_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_quobyte_volume_source.rst new file mode 100644 index 0000000000..8d540e0496 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_quobyte_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_quobyte\_volume\_source module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_quobyte_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_rbd_persistent_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_rbd_persistent_volume_source.rst new file mode 100644 index 0000000000..5f894331c5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_rbd_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_rbd\_persistent\_volume\_source module +======================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_rbd_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_rbd_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_rbd_volume_source.rst new file mode 100644 index 0000000000..210fa4f2b2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_rbd_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_rbd\_volume\_source module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_rbd_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_replica_set.rst b/doc/source/kubernetes.aio.client.models.v1_replica_set.rst new file mode 100644 index 0000000000..657bd77157 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_replica_set.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_replica\_set module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v1_replica_set + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_replica_set_condition.rst b/doc/source/kubernetes.aio.client.models.v1_replica_set_condition.rst new file mode 100644 index 0000000000..9f9e540151 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_replica_set_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_replica\_set\_condition module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_replica_set_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_replica_set_list.rst b/doc/source/kubernetes.aio.client.models.v1_replica_set_list.rst new file mode 100644 index 0000000000..dacc4e2be7 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_replica_set_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_replica\_set\_list module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_replica_set_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_replica_set_spec.rst b/doc/source/kubernetes.aio.client.models.v1_replica_set_spec.rst new file mode 100644 index 0000000000..844f0fd126 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_replica_set_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_replica\_set\_spec module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_replica_set_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_replica_set_status.rst b/doc/source/kubernetes.aio.client.models.v1_replica_set_status.rst new file mode 100644 index 0000000000..e799729637 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_replica_set_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_replica\_set\_status module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_replica_set_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_replication_controller.rst b/doc/source/kubernetes.aio.client.models.v1_replication_controller.rst new file mode 100644 index 0000000000..b5685e812b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_replication_controller.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_replication\_controller module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_replication_controller + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_replication_controller_condition.rst b/doc/source/kubernetes.aio.client.models.v1_replication_controller_condition.rst new file mode 100644 index 0000000000..6defe8429c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_replication_controller_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_replication\_controller\_condition module +========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_replication_controller_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_replication_controller_list.rst b/doc/source/kubernetes.aio.client.models.v1_replication_controller_list.rst new file mode 100644 index 0000000000..359f93505a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_replication_controller_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_replication\_controller\_list module +===================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_replication_controller_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_replication_controller_spec.rst b/doc/source/kubernetes.aio.client.models.v1_replication_controller_spec.rst new file mode 100644 index 0000000000..9d1a4ef1f8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_replication_controller_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_replication\_controller\_spec module +===================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_replication_controller_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_replication_controller_status.rst b/doc/source/kubernetes.aio.client.models.v1_replication_controller_status.rst new file mode 100644 index 0000000000..16521e6475 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_replication_controller_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_replication\_controller\_status module +======================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_replication_controller_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_attributes.rst b/doc/source/kubernetes.aio.client.models.v1_resource_attributes.rst new file mode 100644 index 0000000000..4e546a0a82 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_attributes.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_attributes module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_resource_attributes + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_claim_consumer_reference.rst b/doc/source/kubernetes.aio.client.models.v1_resource_claim_consumer_reference.rst new file mode 100644 index 0000000000..5157e9ec1d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_claim_consumer_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_claim\_consumer\_reference module +============================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_resource_claim_consumer_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_claim_list.rst b/doc/source/kubernetes.aio.client.models.v1_resource_claim_list.rst new file mode 100644 index 0000000000..7847a3eaa0 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_claim_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_claim\_list module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_resource_claim_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_claim_spec.rst b/doc/source/kubernetes.aio.client.models.v1_resource_claim_spec.rst new file mode 100644 index 0000000000..b6cd337686 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_claim_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_claim\_spec module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_resource_claim_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_claim_status.rst b/doc/source/kubernetes.aio.client.models.v1_resource_claim_status.rst new file mode 100644 index 0000000000..96f40497c8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_claim\_status module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_resource_claim_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_claim_template.rst b/doc/source/kubernetes.aio.client.models.v1_resource_claim_template.rst new file mode 100644 index 0000000000..367dac49a9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_claim_template.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_claim\_template module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_resource_claim_template + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_claim_template_list.rst b/doc/source/kubernetes.aio.client.models.v1_resource_claim_template_list.rst new file mode 100644 index 0000000000..92188ca049 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_claim_template_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_claim\_template\_list module +======================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_resource_claim_template_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_claim_template_spec.rst b/doc/source/kubernetes.aio.client.models.v1_resource_claim_template_spec.rst new file mode 100644 index 0000000000..ad4d2fed3d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_claim_template_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_claim\_template\_spec module +======================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_resource_claim_template_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_field_selector.rst b/doc/source/kubernetes.aio.client.models.v1_resource_field_selector.rst new file mode 100644 index 0000000000..31dc09e0fe --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_field_selector.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_field\_selector module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_resource_field_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_health.rst b/doc/source/kubernetes.aio.client.models.v1_resource_health.rst new file mode 100644 index 0000000000..4bd1d42a23 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_health.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_health module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_resource_health + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_policy_rule.rst b/doc/source/kubernetes.aio.client.models.v1_resource_policy_rule.rst new file mode 100644 index 0000000000..9f8e0dc69d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_policy_rule.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_policy\_rule module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_resource_policy_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_pool.rst b/doc/source/kubernetes.aio.client.models.v1_resource_pool.rst new file mode 100644 index 0000000000..210c6f8172 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_pool.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_pool module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v1_resource_pool + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_quota.rst b/doc/source/kubernetes.aio.client.models.v1_resource_quota.rst new file mode 100644 index 0000000000..cabc9eaced --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_quota.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_quota module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_resource_quota + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_quota_list.rst b/doc/source/kubernetes.aio.client.models.v1_resource_quota_list.rst new file mode 100644 index 0000000000..dd5151b996 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_quota_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_quota\_list module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_resource_quota_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_quota_spec.rst b/doc/source/kubernetes.aio.client.models.v1_resource_quota_spec.rst new file mode 100644 index 0000000000..16a52684b2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_quota_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_quota\_spec module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_resource_quota_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_quota_status.rst b/doc/source/kubernetes.aio.client.models.v1_resource_quota_status.rst new file mode 100644 index 0000000000..d34e15fa66 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_quota_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_quota\_status module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_resource_quota_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_requirements.rst b/doc/source/kubernetes.aio.client.models.v1_resource_requirements.rst new file mode 100644 index 0000000000..ec2298cca6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_requirements.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_requirements module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_resource_requirements + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_rule.rst b/doc/source/kubernetes.aio.client.models.v1_resource_rule.rst new file mode 100644 index 0000000000..a6e3669e34 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_rule.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_rule module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v1_resource_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_slice.rst b/doc/source/kubernetes.aio.client.models.v1_resource_slice.rst new file mode 100644 index 0000000000..9982a36bc6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_slice.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_slice module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_resource_slice + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_slice_list.rst b/doc/source/kubernetes.aio.client.models.v1_resource_slice_list.rst new file mode 100644 index 0000000000..5237e0a22c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_slice_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_slice\_list module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_resource_slice_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_slice_spec.rst b/doc/source/kubernetes.aio.client.models.v1_resource_slice_spec.rst new file mode 100644 index 0000000000..5f65590690 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_slice_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_slice\_spec module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_resource_slice_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_resource_status.rst b/doc/source/kubernetes.aio.client.models.v1_resource_status.rst new file mode 100644 index 0000000000..6e297007a5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_resource_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_resource\_status module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_resource_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_role.rst b/doc/source/kubernetes.aio.client.models.v1_role.rst new file mode 100644 index 0000000000..f211a2d654 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_role.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_role module +============================================ + +.. automodule:: kubernetes.aio.client.models.v1_role + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_role_binding.rst b/doc/source/kubernetes.aio.client.models.v1_role_binding.rst new file mode 100644 index 0000000000..198d39faeb --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_role_binding.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_role\_binding module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_role_binding + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_role_binding_list.rst b/doc/source/kubernetes.aio.client.models.v1_role_binding_list.rst new file mode 100644 index 0000000000..501b3ad524 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_role_binding_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_role\_binding\_list module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_role_binding_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_role_list.rst b/doc/source/kubernetes.aio.client.models.v1_role_list.rst new file mode 100644 index 0000000000..74c9c2319e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_role_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_role\_list module +================================================== + +.. automodule:: kubernetes.aio.client.models.v1_role_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_role_ref.rst b/doc/source/kubernetes.aio.client.models.v1_role_ref.rst new file mode 100644 index 0000000000..1d210ec7f1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_role_ref.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_role\_ref module +================================================= + +.. automodule:: kubernetes.aio.client.models.v1_role_ref + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_rolling_update_daemon_set.rst b/doc/source/kubernetes.aio.client.models.v1_rolling_update_daemon_set.rst new file mode 100644 index 0000000000..4b25c6dd8e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_rolling_update_daemon_set.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_rolling\_update\_daemon\_set module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_rolling_update_daemon_set + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_rolling_update_deployment.rst b/doc/source/kubernetes.aio.client.models.v1_rolling_update_deployment.rst new file mode 100644 index 0000000000..d8b23abc85 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_rolling_update_deployment.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_rolling\_update\_deployment module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_rolling_update_deployment + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_rolling_update_stateful_set_strategy.rst b/doc/source/kubernetes.aio.client.models.v1_rolling_update_stateful_set_strategy.rst new file mode 100644 index 0000000000..2a04255b4d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_rolling_update_stateful_set_strategy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_rolling\_update\_stateful\_set\_strategy module +================================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_rolling_update_stateful_set_strategy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_rule_with_operations.rst b/doc/source/kubernetes.aio.client.models.v1_rule_with_operations.rst new file mode 100644 index 0000000000..31e79104d0 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_rule_with_operations.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_rule\_with\_operations module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_rule_with_operations + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_runtime_class.rst b/doc/source/kubernetes.aio.client.models.v1_runtime_class.rst new file mode 100644 index 0000000000..2e6e25ad35 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_runtime_class.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_runtime\_class module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v1_runtime_class + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_runtime_class_list.rst b/doc/source/kubernetes.aio.client.models.v1_runtime_class_list.rst new file mode 100644 index 0000000000..3bb4e4721b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_runtime_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_runtime\_class\_list module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_runtime_class_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_scale.rst b/doc/source/kubernetes.aio.client.models.v1_scale.rst new file mode 100644 index 0000000000..1e9435c522 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_scale.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_scale module +============================================= + +.. automodule:: kubernetes.aio.client.models.v1_scale + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_scale_io_persistent_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_scale_io_persistent_volume_source.rst new file mode 100644 index 0000000000..068a5c655c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_scale_io_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_scale\_io\_persistent\_volume\_source module +============================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_scale_io_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_scale_io_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_scale_io_volume_source.rst new file mode 100644 index 0000000000..4a6c8360f2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_scale_io_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_scale\_io\_volume\_source module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_scale_io_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_scale_spec.rst b/doc/source/kubernetes.aio.client.models.v1_scale_spec.rst new file mode 100644 index 0000000000..e7df9a534b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_scale_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_scale\_spec module +=================================================== + +.. automodule:: kubernetes.aio.client.models.v1_scale_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_scale_status.rst b/doc/source/kubernetes.aio.client.models.v1_scale_status.rst new file mode 100644 index 0000000000..5493487122 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_scale_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_scale\_status module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_scale_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_scheduling.rst b/doc/source/kubernetes.aio.client.models.v1_scheduling.rst new file mode 100644 index 0000000000..4ad89a0c4d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_scheduling.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_scheduling module +================================================== + +.. automodule:: kubernetes.aio.client.models.v1_scheduling + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_scope_selector.rst b/doc/source/kubernetes.aio.client.models.v1_scope_selector.rst new file mode 100644 index 0000000000..c1e969b98d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_scope_selector.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_scope\_selector module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_scope_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_scoped_resource_selector_requirement.rst b/doc/source/kubernetes.aio.client.models.v1_scoped_resource_selector_requirement.rst new file mode 100644 index 0000000000..5d037c1a0a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_scoped_resource_selector_requirement.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_scoped\_resource\_selector\_requirement module +=============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_scoped_resource_selector_requirement + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_se_linux_options.rst b/doc/source/kubernetes.aio.client.models.v1_se_linux_options.rst new file mode 100644 index 0000000000..56cca9541f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_se_linux_options.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_se\_linux\_options module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_se_linux_options + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_seccomp_profile.rst b/doc/source/kubernetes.aio.client.models.v1_seccomp_profile.rst new file mode 100644 index 0000000000..6f9ff07a29 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_seccomp_profile.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_seccomp\_profile module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_seccomp_profile + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_secret.rst b/doc/source/kubernetes.aio.client.models.v1_secret.rst new file mode 100644 index 0000000000..02e5b6bb55 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_secret.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_secret module +============================================== + +.. automodule:: kubernetes.aio.client.models.v1_secret + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_secret_env_source.rst b/doc/source/kubernetes.aio.client.models.v1_secret_env_source.rst new file mode 100644 index 0000000000..80374579eb --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_secret_env_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_secret\_env\_source module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_secret_env_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_secret_key_selector.rst b/doc/source/kubernetes.aio.client.models.v1_secret_key_selector.rst new file mode 100644 index 0000000000..ea0e347613 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_secret_key_selector.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_secret\_key\_selector module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_secret_key_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_secret_list.rst b/doc/source/kubernetes.aio.client.models.v1_secret_list.rst new file mode 100644 index 0000000000..dbe610ebac --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_secret_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_secret\_list module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v1_secret_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_secret_projection.rst b/doc/source/kubernetes.aio.client.models.v1_secret_projection.rst new file mode 100644 index 0000000000..e9f373f557 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_secret_projection.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_secret\_projection module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_secret_projection + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_secret_reference.rst b/doc/source/kubernetes.aio.client.models.v1_secret_reference.rst new file mode 100644 index 0000000000..a2f20e62cf --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_secret_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_secret\_reference module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_secret_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_secret_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_secret_volume_source.rst new file mode 100644 index 0000000000..e91dd84ac2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_secret_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_secret\_volume\_source module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_secret_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_security_context.rst b/doc/source/kubernetes.aio.client.models.v1_security_context.rst new file mode 100644 index 0000000000..cec46b5484 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_security_context.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_security\_context module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_security_context + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_selectable_field.rst b/doc/source/kubernetes.aio.client.models.v1_selectable_field.rst new file mode 100644 index 0000000000..aecdd1d8ba --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_selectable_field.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_selectable\_field module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1_selectable_field + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_self_subject_access_review.rst b/doc/source/kubernetes.aio.client.models.v1_self_subject_access_review.rst new file mode 100644 index 0000000000..c0646a3559 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_self_subject_access_review.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_self\_subject\_access\_review module +===================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_self_subject_access_review + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_self_subject_access_review_spec.rst b/doc/source/kubernetes.aio.client.models.v1_self_subject_access_review_spec.rst new file mode 100644 index 0000000000..71fbcf1580 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_self_subject_access_review_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_self\_subject\_access\_review\_spec module +=========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_self_subject_access_review_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_self_subject_review.rst b/doc/source/kubernetes.aio.client.models.v1_self_subject_review.rst new file mode 100644 index 0000000000..27be2f1ec7 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_self_subject_review.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_self\_subject\_review module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_self_subject_review + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_self_subject_review_status.rst b/doc/source/kubernetes.aio.client.models.v1_self_subject_review_status.rst new file mode 100644 index 0000000000..352a7d47d3 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_self_subject_review_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_self\_subject\_review\_status module +===================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_self_subject_review_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_self_subject_rules_review.rst b/doc/source/kubernetes.aio.client.models.v1_self_subject_rules_review.rst new file mode 100644 index 0000000000..75eb486529 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_self_subject_rules_review.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_self\_subject\_rules\_review module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_self_subject_rules_review + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_self_subject_rules_review_spec.rst b/doc/source/kubernetes.aio.client.models.v1_self_subject_rules_review_spec.rst new file mode 100644 index 0000000000..74303db1ea --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_self_subject_rules_review_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_self\_subject\_rules\_review\_spec module +========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_self_subject_rules_review_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_server_address_by_client_cidr.rst b/doc/source/kubernetes.aio.client.models.v1_server_address_by_client_cidr.rst new file mode 100644 index 0000000000..8f480a0f22 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_server_address_by_client_cidr.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_server\_address\_by\_client\_cidr module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_server_address_by_client_cidr + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_service.rst b/doc/source/kubernetes.aio.client.models.v1_service.rst new file mode 100644 index 0000000000..929f5948bc --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_service.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_service module +=============================================== + +.. automodule:: kubernetes.aio.client.models.v1_service + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_service_account.rst b/doc/source/kubernetes.aio.client.models.v1_service_account.rst new file mode 100644 index 0000000000..2b9f9ef7fc --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_service_account.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_service\_account module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_service_account + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_service_account_list.rst b/doc/source/kubernetes.aio.client.models.v1_service_account_list.rst new file mode 100644 index 0000000000..701755e2b3 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_service_account_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_service\_account\_list module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_service_account_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_service_account_subject.rst b/doc/source/kubernetes.aio.client.models.v1_service_account_subject.rst new file mode 100644 index 0000000000..56e41a60a6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_service_account_subject.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_service\_account\_subject module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_service_account_subject + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_service_account_token_projection.rst b/doc/source/kubernetes.aio.client.models.v1_service_account_token_projection.rst new file mode 100644 index 0000000000..cd018b989d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_service_account_token_projection.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_service\_account\_token\_projection module +=========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_service_account_token_projection + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_service_backend_port.rst b/doc/source/kubernetes.aio.client.models.v1_service_backend_port.rst new file mode 100644 index 0000000000..0cc4393346 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_service_backend_port.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_service\_backend\_port module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_service_backend_port + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_service_cidr.rst b/doc/source/kubernetes.aio.client.models.v1_service_cidr.rst new file mode 100644 index 0000000000..afe415fcaf --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_service_cidr.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_service\_cidr module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_service_cidr + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_service_cidr_list.rst b/doc/source/kubernetes.aio.client.models.v1_service_cidr_list.rst new file mode 100644 index 0000000000..bc8951e5b7 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_service_cidr_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_service\_cidr\_list module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_service_cidr_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_service_cidr_spec.rst b/doc/source/kubernetes.aio.client.models.v1_service_cidr_spec.rst new file mode 100644 index 0000000000..2bf0dee09a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_service_cidr_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_service\_cidr\_spec module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_service_cidr_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_service_cidr_status.rst b/doc/source/kubernetes.aio.client.models.v1_service_cidr_status.rst new file mode 100644 index 0000000000..098e49354e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_service_cidr_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_service\_cidr\_status module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_service_cidr_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_service_list.rst b/doc/source/kubernetes.aio.client.models.v1_service_list.rst new file mode 100644 index 0000000000..0239d2554f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_service_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_service\_list module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_service_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_service_port.rst b/doc/source/kubernetes.aio.client.models.v1_service_port.rst new file mode 100644 index 0000000000..285e945a81 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_service_port.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_service\_port module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_service_port + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_service_spec.rst b/doc/source/kubernetes.aio.client.models.v1_service_spec.rst new file mode 100644 index 0000000000..1a69c0bc67 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_service_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_service\_spec module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_service_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_service_status.rst b/doc/source/kubernetes.aio.client.models.v1_service_status.rst new file mode 100644 index 0000000000..24ba08966d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_service_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_service\_status module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_service_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_session_affinity_config.rst b/doc/source/kubernetes.aio.client.models.v1_session_affinity_config.rst new file mode 100644 index 0000000000..0c7c9d0109 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_session_affinity_config.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_session\_affinity\_config module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_session_affinity_config + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_shard_info.rst b/doc/source/kubernetes.aio.client.models.v1_shard_info.rst new file mode 100644 index 0000000000..50c157d5b1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_shard_info.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_shard\_info module +=================================================== + +.. automodule:: kubernetes.aio.client.models.v1_shard_info + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_sleep_action.rst b/doc/source/kubernetes.aio.client.models.v1_sleep_action.rst new file mode 100644 index 0000000000..0a3bd360b5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_sleep_action.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_sleep\_action module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_sleep_action + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_stateful_set.rst b/doc/source/kubernetes.aio.client.models.v1_stateful_set.rst new file mode 100644 index 0000000000..1f52c5ae8a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_stateful_set.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_stateful\_set module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_stateful_set + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_stateful_set_condition.rst b/doc/source/kubernetes.aio.client.models.v1_stateful_set_condition.rst new file mode 100644 index 0000000000..f9aa522892 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_stateful_set_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_stateful\_set\_condition module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_stateful_set_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_stateful_set_list.rst b/doc/source/kubernetes.aio.client.models.v1_stateful_set_list.rst new file mode 100644 index 0000000000..b105756b6c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_stateful_set_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_stateful\_set\_list module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_stateful_set_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_stateful_set_ordinals.rst b/doc/source/kubernetes.aio.client.models.v1_stateful_set_ordinals.rst new file mode 100644 index 0000000000..269954f83f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_stateful_set_ordinals.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_stateful\_set\_ordinals module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_stateful_set_ordinals + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_stateful_set_persistent_volume_claim_retention_policy.rst b/doc/source/kubernetes.aio.client.models.v1_stateful_set_persistent_volume_claim_retention_policy.rst new file mode 100644 index 0000000000..d8ac75594e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_stateful_set_persistent_volume_claim_retention_policy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_stateful\_set\_persistent\_volume\_claim\_retention\_policy module +=================================================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_stateful_set_persistent_volume_claim_retention_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_stateful_set_spec.rst b/doc/source/kubernetes.aio.client.models.v1_stateful_set_spec.rst new file mode 100644 index 0000000000..6f8426bcae --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_stateful_set_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_stateful\_set\_spec module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_stateful_set_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_stateful_set_status.rst b/doc/source/kubernetes.aio.client.models.v1_stateful_set_status.rst new file mode 100644 index 0000000000..c61b934ea5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_stateful_set_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_stateful\_set\_status module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_stateful_set_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_stateful_set_update_strategy.rst b/doc/source/kubernetes.aio.client.models.v1_stateful_set_update_strategy.rst new file mode 100644 index 0000000000..c0e6c5761d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_stateful_set_update_strategy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_stateful\_set\_update\_strategy module +======================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_stateful_set_update_strategy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_status.rst b/doc/source/kubernetes.aio.client.models.v1_status.rst new file mode 100644 index 0000000000..7a2ca673a0 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_status module +============================================== + +.. automodule:: kubernetes.aio.client.models.v1_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_status_cause.rst b/doc/source/kubernetes.aio.client.models.v1_status_cause.rst new file mode 100644 index 0000000000..7c2a4c3778 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_status_cause.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_status\_cause module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_status_cause + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_status_details.rst b/doc/source/kubernetes.aio.client.models.v1_status_details.rst new file mode 100644 index 0000000000..552825cd57 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_status_details.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_status\_details module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_status_details + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_storage_class.rst b/doc/source/kubernetes.aio.client.models.v1_storage_class.rst new file mode 100644 index 0000000000..68d79cf73d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_storage_class.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_storage\_class module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v1_storage_class + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_storage_class_list.rst b/doc/source/kubernetes.aio.client.models.v1_storage_class_list.rst new file mode 100644 index 0000000000..5fe4ab9549 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_storage_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_storage\_class\_list module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_storage_class_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_storage_os_persistent_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_storage_os_persistent_volume_source.rst new file mode 100644 index 0000000000..6584635b7b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_storage_os_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_storage\_os\_persistent\_volume\_source module +=============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_storage_os_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_storage_os_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_storage_os_volume_source.rst new file mode 100644 index 0000000000..1915a4e663 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_storage_os_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_storage\_os\_volume\_source module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_storage_os_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_subject_access_review.rst b/doc/source/kubernetes.aio.client.models.v1_subject_access_review.rst new file mode 100644 index 0000000000..bc6f99751e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_subject_access_review.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_subject\_access\_review module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_subject_access_review + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_subject_access_review_spec.rst b/doc/source/kubernetes.aio.client.models.v1_subject_access_review_spec.rst new file mode 100644 index 0000000000..5cb78ddd24 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_subject_access_review_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_subject\_access\_review\_spec module +===================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_subject_access_review_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_subject_access_review_status.rst b/doc/source/kubernetes.aio.client.models.v1_subject_access_review_status.rst new file mode 100644 index 0000000000..89d16d31eb --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_subject_access_review_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_subject\_access\_review\_status module +======================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_subject_access_review_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_subject_rules_review_status.rst b/doc/source/kubernetes.aio.client.models.v1_subject_rules_review_status.rst new file mode 100644 index 0000000000..07da8d63a4 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_subject_rules_review_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_subject\_rules\_review\_status module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_subject_rules_review_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_success_policy.rst b/doc/source/kubernetes.aio.client.models.v1_success_policy.rst new file mode 100644 index 0000000000..6ee97e1ff3 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_success_policy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_success\_policy module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1_success_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_success_policy_rule.rst b/doc/source/kubernetes.aio.client.models.v1_success_policy_rule.rst new file mode 100644 index 0000000000..14f9779544 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_success_policy_rule.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_success\_policy\_rule module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_success_policy_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_sysctl.rst b/doc/source/kubernetes.aio.client.models.v1_sysctl.rst new file mode 100644 index 0000000000..a87d407190 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_sysctl.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_sysctl module +============================================== + +.. automodule:: kubernetes.aio.client.models.v1_sysctl + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_taint.rst b/doc/source/kubernetes.aio.client.models.v1_taint.rst new file mode 100644 index 0000000000..ca0114f602 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_taint.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_taint module +============================================= + +.. automodule:: kubernetes.aio.client.models.v1_taint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_tcp_socket_action.rst b/doc/source/kubernetes.aio.client.models.v1_tcp_socket_action.rst new file mode 100644 index 0000000000..7f90b919d1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_tcp_socket_action.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_tcp\_socket\_action module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_tcp_socket_action + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_token_request_spec.rst b/doc/source/kubernetes.aio.client.models.v1_token_request_spec.rst new file mode 100644 index 0000000000..f3b3ece2da --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_token_request_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_token\_request\_spec module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1_token_request_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_token_request_status.rst b/doc/source/kubernetes.aio.client.models.v1_token_request_status.rst new file mode 100644 index 0000000000..05fa7821d8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_token_request_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_token\_request\_status module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_token_request_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_token_review.rst b/doc/source/kubernetes.aio.client.models.v1_token_review.rst new file mode 100644 index 0000000000..2994802d3b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_token_review.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_token\_review module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_token_review + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_token_review_spec.rst b/doc/source/kubernetes.aio.client.models.v1_token_review_spec.rst new file mode 100644 index 0000000000..3c4777ad7f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_token_review_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_token\_review\_spec module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_token_review_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_token_review_status.rst b/doc/source/kubernetes.aio.client.models.v1_token_review_status.rst new file mode 100644 index 0000000000..164c666d4d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_token_review_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_token\_review\_status module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_token_review_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_toleration.rst b/doc/source/kubernetes.aio.client.models.v1_toleration.rst new file mode 100644 index 0000000000..a822c13416 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_toleration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_toleration module +================================================== + +.. automodule:: kubernetes.aio.client.models.v1_toleration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_topology_selector_label_requirement.rst b/doc/source/kubernetes.aio.client.models.v1_topology_selector_label_requirement.rst new file mode 100644 index 0000000000..8ee8f9b9ba --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_topology_selector_label_requirement.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_topology\_selector\_label\_requirement module +============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_topology_selector_label_requirement + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_topology_selector_term.rst b/doc/source/kubernetes.aio.client.models.v1_topology_selector_term.rst new file mode 100644 index 0000000000..c88a49efdc --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_topology_selector_term.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_topology\_selector\_term module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_topology_selector_term + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_topology_spread_constraint.rst b/doc/source/kubernetes.aio.client.models.v1_topology_spread_constraint.rst new file mode 100644 index 0000000000..23857be931 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_topology_spread_constraint.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_topology\_spread\_constraint module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_topology_spread_constraint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_type_checking.rst b/doc/source/kubernetes.aio.client.models.v1_type_checking.rst new file mode 100644 index 0000000000..9c0c73e5dd --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_type_checking.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_type\_checking module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v1_type_checking + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_typed_local_object_reference.rst b/doc/source/kubernetes.aio.client.models.v1_typed_local_object_reference.rst new file mode 100644 index 0000000000..38018a24c5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_typed_local_object_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_typed\_local\_object\_reference module +======================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_typed_local_object_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_typed_object_reference.rst b/doc/source/kubernetes.aio.client.models.v1_typed_object_reference.rst new file mode 100644 index 0000000000..ebeb26e0a9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_typed_object_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_typed\_object\_reference module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_typed_object_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_uncounted_terminated_pods.rst b/doc/source/kubernetes.aio.client.models.v1_uncounted_terminated_pods.rst new file mode 100644 index 0000000000..22b56bc873 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_uncounted_terminated_pods.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_uncounted\_terminated\_pods module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_uncounted_terminated_pods + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_user_info.rst b/doc/source/kubernetes.aio.client.models.v1_user_info.rst new file mode 100644 index 0000000000..b10be04387 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_user_info.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_user\_info module +================================================== + +.. automodule:: kubernetes.aio.client.models.v1_user_info + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_user_subject.rst b/doc/source/kubernetes.aio.client.models.v1_user_subject.rst new file mode 100644 index 0000000000..31a56aeac9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_user_subject.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_user\_subject module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_user_subject + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy.rst b/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy.rst new file mode 100644 index 0000000000..9167a43e91 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_validating\_admission\_policy module +===================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_validating_admission_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_binding.rst b/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_binding.rst new file mode 100644 index 0000000000..ede3f807c5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_binding.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_validating\_admission\_policy\_binding module +============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_validating_admission_policy_binding + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_binding_list.rst b/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_binding_list.rst new file mode 100644 index 0000000000..eee3a5dfa4 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_binding_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_validating\_admission\_policy\_binding\_list module +==================================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_validating_admission_policy_binding_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_binding_spec.rst b/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_binding_spec.rst new file mode 100644 index 0000000000..b7e961fff3 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_binding_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_validating\_admission\_policy\_binding\_spec module +==================================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_validating_admission_policy_binding_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_list.rst b/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_list.rst new file mode 100644 index 0000000000..fdb81cd916 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_validating\_admission\_policy\_list module +=========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_validating_admission_policy_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_spec.rst b/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_spec.rst new file mode 100644 index 0000000000..69858e2d0f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_validating\_admission\_policy\_spec module +=========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_validating_admission_policy_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_status.rst b/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_status.rst new file mode 100644 index 0000000000..f850f670fc --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_validating_admission_policy_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_validating\_admission\_policy\_status module +============================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_validating_admission_policy_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_validating_webhook.rst b/doc/source/kubernetes.aio.client.models.v1_validating_webhook.rst new file mode 100644 index 0000000000..c19393a1c0 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_validating_webhook.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_validating\_webhook module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_validating_webhook + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_validating_webhook_configuration.rst b/doc/source/kubernetes.aio.client.models.v1_validating_webhook_configuration.rst new file mode 100644 index 0000000000..fe9180a370 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_validating_webhook_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_validating\_webhook\_configuration module +========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_validating_webhook_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_validating_webhook_configuration_list.rst b/doc/source/kubernetes.aio.client.models.v1_validating_webhook_configuration_list.rst new file mode 100644 index 0000000000..68fd050b12 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_validating_webhook_configuration_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_validating\_webhook\_configuration\_list module +================================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_validating_webhook_configuration_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_validation.rst b/doc/source/kubernetes.aio.client.models.v1_validation.rst new file mode 100644 index 0000000000..1fdd2b75d5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_validation.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_validation module +================================================== + +.. automodule:: kubernetes.aio.client.models.v1_validation + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_validation_rule.rst b/doc/source/kubernetes.aio.client.models.v1_validation_rule.rst new file mode 100644 index 0000000000..c7d9804e89 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_validation_rule.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_validation\_rule module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1_validation_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_variable.rst b/doc/source/kubernetes.aio.client.models.v1_variable.rst new file mode 100644 index 0000000000..a15f3c975a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_variable.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_variable module +================================================ + +.. automodule:: kubernetes.aio.client.models.v1_variable + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_volume.rst b/doc/source/kubernetes.aio.client.models.v1_volume.rst new file mode 100644 index 0000000000..795e2a24d6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_volume.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_volume module +============================================== + +.. automodule:: kubernetes.aio.client.models.v1_volume + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_volume_attachment.rst b/doc/source/kubernetes.aio.client.models.v1_volume_attachment.rst new file mode 100644 index 0000000000..0ee791338f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_volume_attachment.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_volume\_attachment module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_volume_attachment + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_volume_attachment_list.rst b/doc/source/kubernetes.aio.client.models.v1_volume_attachment_list.rst new file mode 100644 index 0000000000..182f133ed7 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_volume_attachment_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_volume\_attachment\_list module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_volume_attachment_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_volume_attachment_source.rst b/doc/source/kubernetes.aio.client.models.v1_volume_attachment_source.rst new file mode 100644 index 0000000000..b0820761b8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_volume_attachment_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_volume\_attachment\_source module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_volume_attachment_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_volume_attachment_spec.rst b/doc/source/kubernetes.aio.client.models.v1_volume_attachment_spec.rst new file mode 100644 index 0000000000..bc7080a044 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_volume_attachment_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_volume\_attachment\_spec module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1_volume_attachment_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_volume_attachment_status.rst b/doc/source/kubernetes.aio.client.models.v1_volume_attachment_status.rst new file mode 100644 index 0000000000..f82f43087d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_volume_attachment_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_volume\_attachment\_status module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_volume_attachment_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_volume_attributes_class.rst b/doc/source/kubernetes.aio.client.models.v1_volume_attributes_class.rst new file mode 100644 index 0000000000..364820286c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_volume_attributes_class.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_volume\_attributes\_class module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_volume_attributes_class + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_volume_attributes_class_list.rst b/doc/source/kubernetes.aio.client.models.v1_volume_attributes_class_list.rst new file mode 100644 index 0000000000..207fa45e0e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_volume_attributes_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_volume\_attributes\_class\_list module +======================================================================= + +.. automodule:: kubernetes.aio.client.models.v1_volume_attributes_class_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_volume_device.rst b/doc/source/kubernetes.aio.client.models.v1_volume_device.rst new file mode 100644 index 0000000000..91acc06a7c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_volume_device.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_volume\_device module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v1_volume_device + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_volume_error.rst b/doc/source/kubernetes.aio.client.models.v1_volume_error.rst new file mode 100644 index 0000000000..f99f8e5c2d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_volume_error.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_volume\_error module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_volume_error + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_volume_mount.rst b/doc/source/kubernetes.aio.client.models.v1_volume_mount.rst new file mode 100644 index 0000000000..7d482ace0e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_volume_mount.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_volume\_mount module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1_volume_mount + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_volume_mount_status.rst b/doc/source/kubernetes.aio.client.models.v1_volume_mount_status.rst new file mode 100644 index 0000000000..679b74e28b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_volume_mount_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_volume\_mount\_status module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1_volume_mount_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_volume_node_affinity.rst b/doc/source/kubernetes.aio.client.models.v1_volume_node_affinity.rst new file mode 100644 index 0000000000..111e32a9f1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_volume_node_affinity.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_volume\_node\_affinity module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_volume_node_affinity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_volume_node_resources.rst b/doc/source/kubernetes.aio.client.models.v1_volume_node_resources.rst new file mode 100644 index 0000000000..1cadcfbd87 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_volume_node_resources.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_volume\_node\_resources module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1_volume_node_resources + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_volume_projection.rst b/doc/source/kubernetes.aio.client.models.v1_volume_projection.rst new file mode 100644 index 0000000000..5f351b36e8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_volume_projection.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_volume\_projection module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_volume_projection + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_volume_resource_requirements.rst b/doc/source/kubernetes.aio.client.models.v1_volume_resource_requirements.rst new file mode 100644 index 0000000000..d7840997bb --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_volume_resource_requirements.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_volume\_resource\_requirements module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_volume_resource_requirements + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_volume_status.rst b/doc/source/kubernetes.aio.client.models.v1_volume_status.rst new file mode 100644 index 0000000000..817aede312 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_volume_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_volume\_status module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v1_volume_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_vsphere_virtual_disk_volume_source.rst b/doc/source/kubernetes.aio.client.models.v1_vsphere_virtual_disk_volume_source.rst new file mode 100644 index 0000000000..d4c9211d21 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_vsphere_virtual_disk_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_vsphere\_virtual\_disk\_volume\_source module +============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_vsphere_virtual_disk_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_watch_event.rst b/doc/source/kubernetes.aio.client.models.v1_watch_event.rst new file mode 100644 index 0000000000..0b38e73c5d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_watch_event.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_watch\_event module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v1_watch_event + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_webhook_conversion.rst b/doc/source/kubernetes.aio.client.models.v1_webhook_conversion.rst new file mode 100644 index 0000000000..aa7eddccb4 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_webhook_conversion.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_webhook\_conversion module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1_webhook_conversion + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_weighted_pod_affinity_term.rst b/doc/source/kubernetes.aio.client.models.v1_weighted_pod_affinity_term.rst new file mode 100644 index 0000000000..40aa50870a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_weighted_pod_affinity_term.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_weighted\_pod\_affinity\_term module +===================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_weighted_pod_affinity_term + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1_windows_security_context_options.rst b/doc/source/kubernetes.aio.client.models.v1_windows_security_context_options.rst new file mode 100644 index 0000000000..1c531b0919 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1_windows_security_context_options.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1\_windows\_security\_context\_options module +=========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1_windows_security_context_options + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_apply_configuration.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_apply_configuration.rst new file mode 100644 index 0000000000..55877acf38 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_apply_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_apply\_configuration module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_apply_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle.rst new file mode 100644 index 0000000000..e94c4f0d26 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_cluster\_trust\_bundle module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_list.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_list.rst new file mode 100644 index 0000000000..456befbc3f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_cluster\_trust\_bundle\_list module +========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_spec.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_spec.rst new file mode 100644 index 0000000000..7aedd73734 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_cluster\_trust\_bundle\_spec module +========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_json_patch.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_json_patch.rst new file mode 100644 index 0000000000..dcf69e49d1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_json_patch.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_json\_patch module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1alpha1_json_patch + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_match_condition.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_match_condition.rst new file mode 100644 index 0000000000..4185cfc528 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_match_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_match\_condition module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_match_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_match_resources.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_match_resources.rst new file mode 100644 index 0000000000..98981b9248 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_match_resources.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_match\_resources module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_match_resources + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy.rst new file mode 100644 index 0000000000..aef27a496b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_mutating\_admission\_policy module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1alpha1_mutating_admission_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_binding.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_binding.rst new file mode 100644 index 0000000000..6ef48d0395 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_binding.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_mutating\_admission\_policy\_binding module +================================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_binding + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_binding_list.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_binding_list.rst new file mode 100644 index 0000000000..5e6a8bbb4c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_binding_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_mutating\_admission\_policy\_binding\_list module +======================================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_binding_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_binding_spec.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_binding_spec.rst new file mode 100644 index 0000000000..741f2a370d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_binding_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_mutating\_admission\_policy\_binding\_spec module +======================================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_binding_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_list.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_list.rst new file mode 100644 index 0000000000..53e63b9987 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_mutating\_admission\_policy\_list module +=============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_spec.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_spec.rst new file mode 100644 index 0000000000..8298c03354 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_mutating\_admission\_policy\_spec module +=============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_mutating_admission_policy_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_mutation.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_mutation.rst new file mode 100644 index 0000000000..419a93b02a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_mutation.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_mutation module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_mutation + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_named_rule_with_operations.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_named_rule_with_operations.rst new file mode 100644 index 0000000000..09ec6e1c7f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_named_rule_with_operations.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_named\_rule\_with\_operations module +=========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_named_rule_with_operations + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_param_kind.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_param_kind.rst new file mode 100644 index 0000000000..67caa0ead5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_param_kind.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_param\_kind module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1alpha1_param_kind + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_param_ref.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_param_ref.rst new file mode 100644 index 0000000000..caa45fc1bd --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_param_ref.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_param\_ref module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_param_ref + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_server_storage_version.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_server_storage_version.rst new file mode 100644 index 0000000000..1f26bd53bf --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_server_storage_version.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_server\_storage\_version module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_server_storage_version + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_storage_version.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_storage_version.rst new file mode 100644 index 0000000000..e8bec42a6d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_storage_version.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_storage\_version module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_storage_version + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_storage_version_condition.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_storage_version_condition.rst new file mode 100644 index 0000000000..d99570a268 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_storage_version_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_storage\_version\_condition module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1alpha1_storage_version_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_storage_version_list.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_storage_version_list.rst new file mode 100644 index 0000000000..ed3322339c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_storage_version_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_storage\_version\_list module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_storage_version_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_storage_version_status.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_storage_version_status.rst new file mode 100644 index 0000000000..1b313501b8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_storage_version_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_storage\_version\_status module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_storage_version_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha1_variable.rst b/doc/source/kubernetes.aio.client.models.v1alpha1_variable.rst new file mode 100644 index 0000000000..a0768cd0f9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha1_variable.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha1\_variable module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha1_variable + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_gang_scheduling_policy.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_gang_scheduling_policy.rst new file mode 100644 index 0000000000..95142deef8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_gang_scheduling_policy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_gang\_scheduling\_policy module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha2_gang_scheduling_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_lease_candidate.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_lease_candidate.rst new file mode 100644 index 0000000000..cd8af5ad0a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_lease_candidate.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_lease\_candidate module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha2_lease_candidate + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_lease_candidate_list.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_lease_candidate_list.rst new file mode 100644 index 0000000000..94cc89d847 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_lease_candidate_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_lease\_candidate\_list module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha2_lease_candidate_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_lease_candidate_spec.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_lease_candidate_spec.rst new file mode 100644 index 0000000000..6dc523897a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_lease_candidate_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_lease\_candidate\_spec module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha2_lease_candidate_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group.rst new file mode 100644 index 0000000000..dc924ffb1c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_pod\_group module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha2_pod_group + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_list.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_list.rst new file mode 100644 index 0000000000..92dd6eae58 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_pod\_group\_list module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha2_pod_group_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim.rst new file mode 100644 index 0000000000..a0e5043a34 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_pod\_group\_resource\_claim module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim_status.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim_status.rst new file mode 100644 index 0000000000..2847caac27 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_pod\_group\_resource\_claim\_status module +================================================================================= + +.. automodule:: kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_constraints.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_constraints.rst new file mode 100644 index 0000000000..643356fa9a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_constraints.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_pod\_group\_scheduling\_constraints module +================================================================================= + +.. automodule:: kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_constraints + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_policy.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_policy.rst new file mode 100644 index 0000000000..67b0c57418 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_policy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_pod\_group\_scheduling\_policy module +============================================================================ + +.. automodule:: kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_spec.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_spec.rst new file mode 100644 index 0000000000..c2dba77d4c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_pod\_group\_spec module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha2_pod_group_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_status.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_status.rst new file mode 100644 index 0000000000..62e8cbeba7 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_pod\_group\_status module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1alpha2_pod_group_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_template.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_template.rst new file mode 100644 index 0000000000..51691ef9d5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_template.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_pod\_group\_template module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha2_pod_group_template + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_template_reference.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_template_reference.rst new file mode 100644 index 0000000000..5148b689b2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_pod_group_template_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_pod\_group\_template\_reference module +============================================================================= + +.. automodule:: kubernetes.aio.client.models.v1alpha2_pod_group_template_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_topology_constraint.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_topology_constraint.rst new file mode 100644 index 0000000000..795b24cdda --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_topology_constraint.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_topology\_constraint module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha2_topology_constraint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_typed_local_object_reference.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_typed_local_object_reference.rst new file mode 100644 index 0000000000..f27b060555 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_typed_local_object_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_typed\_local\_object\_reference module +============================================================================= + +.. automodule:: kubernetes.aio.client.models.v1alpha2_typed_local_object_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_workload.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_workload.rst new file mode 100644 index 0000000000..6d3d4e70a6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_workload.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_workload module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha2_workload + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_workload_list.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_workload_list.rst new file mode 100644 index 0000000000..c90ce332dc --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_workload_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_workload\_list module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1alpha2_workload_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_workload_pod_group_template_reference.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_workload_pod_group_template_reference.rst new file mode 100644 index 0000000000..462486e7df --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_workload_pod_group_template_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_workload\_pod\_group\_template\_reference module +======================================================================================= + +.. automodule:: kubernetes.aio.client.models.v1alpha2_workload_pod_group_template_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha2_workload_spec.rst b/doc/source/kubernetes.aio.client.models.v1alpha2_workload_spec.rst new file mode 100644 index 0000000000..d1cffa54f8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha2_workload_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha2\_workload\_spec module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1alpha2_workload_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha3_device_taint.rst b/doc/source/kubernetes.aio.client.models.v1alpha3_device_taint.rst new file mode 100644 index 0000000000..278dea1adc --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha3_device_taint.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha3\_device\_taint module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha3_device_taint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_rule.rst b/doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_rule.rst new file mode 100644 index 0000000000..2b66e707a1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_rule.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha3\_device\_taint\_rule module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1alpha3_device_taint_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_rule_list.rst b/doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_rule_list.rst new file mode 100644 index 0000000000..a10f1847d1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_rule_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha3\_device\_taint\_rule\_list module +======================================================================= + +.. automodule:: kubernetes.aio.client.models.v1alpha3_device_taint_rule_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_rule_spec.rst b/doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_rule_spec.rst new file mode 100644 index 0000000000..8dec0ff2fa --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_rule_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha3\_device\_taint\_rule\_spec module +======================================================================= + +.. automodule:: kubernetes.aio.client.models.v1alpha3_device_taint_rule_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_rule_status.rst b/doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_rule_status.rst new file mode 100644 index 0000000000..fd5b13bf31 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_rule_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha3\_device\_taint\_rule\_status module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1alpha3_device_taint_rule_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_selector.rst b/doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_selector.rst new file mode 100644 index 0000000000..c3bbe61945 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha3_device_taint_selector.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha3\_device\_taint\_selector module +===================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha3_device_taint_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha3_pool_status.rst b/doc/source/kubernetes.aio.client.models.v1alpha3_pool_status.rst new file mode 100644 index 0000000000..f3e19e693e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha3_pool_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha3\_pool\_status module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha3_pool_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha3_resource_pool_status_request.rst b/doc/source/kubernetes.aio.client.models.v1alpha3_resource_pool_status_request.rst new file mode 100644 index 0000000000..f1a876d369 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha3_resource_pool_status_request.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha3\_resource\_pool\_status\_request module +============================================================================= + +.. automodule:: kubernetes.aio.client.models.v1alpha3_resource_pool_status_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_list.rst b/doc/source/kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_list.rst new file mode 100644 index 0000000000..67ed9e2e66 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha3\_resource\_pool\_status\_request\_list module +=================================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_spec.rst b/doc/source/kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_spec.rst new file mode 100644 index 0000000000..45b2cd377a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha3\_resource\_pool\_status\_request\_spec module +=================================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_status.rst b/doc/source/kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_status.rst new file mode 100644 index 0000000000..5a4b734706 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1alpha3\_resource\_pool\_status\_request\_status module +===================================================================================== + +.. automodule:: kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_allocated_device_status.rst b/doc/source/kubernetes.aio.client.models.v1beta1_allocated_device_status.rst new file mode 100644 index 0000000000..645edf6245 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_allocated_device_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_allocated\_device\_status module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_allocated_device_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_allocation_result.rst b/doc/source/kubernetes.aio.client.models.v1beta1_allocation_result.rst new file mode 100644 index 0000000000..401b37d06a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_allocation\_result module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_allocation_result + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_apply_configuration.rst b/doc/source/kubernetes.aio.client.models.v1beta1_apply_configuration.rst new file mode 100644 index 0000000000..6ddeab52b5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_apply_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_apply\_configuration module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_apply_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_basic_device.rst b/doc/source/kubernetes.aio.client.models.v1beta1_basic_device.rst new file mode 100644 index 0000000000..57535bb862 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_basic_device.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_basic\_device module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_basic_device + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_capacity_request_policy.rst b/doc/source/kubernetes.aio.client.models.v1beta1_capacity_request_policy.rst new file mode 100644 index 0000000000..9e3911a866 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_capacity_request_policy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_capacity\_request\_policy module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_capacity_request_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_capacity_request_policy_range.rst b/doc/source/kubernetes.aio.client.models.v1beta1_capacity_request_policy_range.rst new file mode 100644 index 0000000000..8d96e57b71 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_capacity_request_policy_range.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_capacity\_request\_policy\_range module +============================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_capacity_request_policy_range + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_capacity_requirements.rst b/doc/source/kubernetes.aio.client.models.v1beta1_capacity_requirements.rst new file mode 100644 index 0000000000..375797e2f5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_capacity_requirements.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_capacity\_requirements module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_capacity_requirements + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_cel_device_selector.rst b/doc/source/kubernetes.aio.client.models.v1beta1_cel_device_selector.rst new file mode 100644 index 0000000000..be14baafe5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_cel_device_selector.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_cel\_device\_selector module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_cel_device_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_cluster_trust_bundle.rst b/doc/source/kubernetes.aio.client.models.v1beta1_cluster_trust_bundle.rst new file mode 100644 index 0000000000..ff87ed2648 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_cluster_trust_bundle.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_cluster\_trust\_bundle module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_cluster_trust_bundle + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_cluster_trust_bundle_list.rst b/doc/source/kubernetes.aio.client.models.v1beta1_cluster_trust_bundle_list.rst new file mode 100644 index 0000000000..44ad7e1d12 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_cluster_trust_bundle_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_cluster\_trust\_bundle\_list module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_cluster_trust_bundle_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_cluster_trust_bundle_spec.rst b/doc/source/kubernetes.aio.client.models.v1beta1_cluster_trust_bundle_spec.rst new file mode 100644 index 0000000000..0587a484a9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_cluster_trust_bundle_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_cluster\_trust\_bundle\_spec module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_cluster_trust_bundle_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_counter.rst b/doc/source/kubernetes.aio.client.models.v1beta1_counter.rst new file mode 100644 index 0000000000..6785621a19 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_counter.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_counter module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_counter + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_counter_set.rst b/doc/source/kubernetes.aio.client.models.v1beta1_counter_set.rst new file mode 100644 index 0000000000..00204fa919 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_counter_set.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_counter\_set module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_counter_set + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device.rst new file mode 100644 index 0000000000..04d5131341 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device module +=================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_device + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device_allocation_configuration.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device_allocation_configuration.rst new file mode 100644 index 0000000000..c3ca91ce32 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device_allocation_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device\_allocation\_configuration module +============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_device_allocation_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device_allocation_result.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device_allocation_result.rst new file mode 100644 index 0000000000..5a5bca36e6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device\_allocation\_result module +======================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_device_allocation_result + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device_attribute.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device_attribute.rst new file mode 100644 index 0000000000..3af6f9e959 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device_attribute.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device\_attribute module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_device_attribute + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device_capacity.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device_capacity.rst new file mode 100644 index 0000000000..452d416c72 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device_capacity.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device\_capacity module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_device_capacity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device_claim.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device_claim.rst new file mode 100644 index 0000000000..959dcc88cc --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device_claim.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device\_claim module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_device_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device_claim_configuration.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device_claim_configuration.rst new file mode 100644 index 0000000000..c391fdb18b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device_claim_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device\_claim\_configuration module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_device_claim_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device_class.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device_class.rst new file mode 100644 index 0000000000..89a07a0dde --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device_class.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device\_class module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_device_class + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device_class_configuration.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device_class_configuration.rst new file mode 100644 index 0000000000..e099f386aa --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device_class_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device\_class\_configuration module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_device_class_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device_class_list.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device_class_list.rst new file mode 100644 index 0000000000..86aceccb12 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device\_class\_list module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta1_device_class_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device_class_spec.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device_class_spec.rst new file mode 100644 index 0000000000..1f16767e39 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device_class_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device\_class\_spec module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta1_device_class_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device_constraint.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device_constraint.rst new file mode 100644 index 0000000000..a8a6359377 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device_constraint.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device\_constraint module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_device_constraint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device_counter_consumption.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device_counter_consumption.rst new file mode 100644 index 0000000000..6b1e56e690 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device_counter_consumption.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device\_counter\_consumption module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_device_counter_consumption + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device_request.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device_request.rst new file mode 100644 index 0000000000..f4fe58933f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device_request.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device\_request module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta1_device_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device_request_allocation_result.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device_request_allocation_result.rst new file mode 100644 index 0000000000..ab696aa3a5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device_request_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device\_request\_allocation\_result module +================================================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta1_device_request_allocation_result + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device_selector.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device_selector.rst new file mode 100644 index 0000000000..6ecef402b1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device_selector.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device\_selector module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_device_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device_sub_request.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device_sub_request.rst new file mode 100644 index 0000000000..ea92013631 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device_sub_request.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device\_sub\_request module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_device_sub_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device_taint.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device_taint.rst new file mode 100644 index 0000000000..8539aba731 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device_taint.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device\_taint module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_device_taint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_device_toleration.rst b/doc/source/kubernetes.aio.client.models.v1beta1_device_toleration.rst new file mode 100644 index 0000000000..bafaae15d0 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_device_toleration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_device\_toleration module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_device_toleration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_ip_address.rst b/doc/source/kubernetes.aio.client.models.v1beta1_ip_address.rst new file mode 100644 index 0000000000..bebdedd331 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_ip_address.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_ip\_address module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_ip_address + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_ip_address_list.rst b/doc/source/kubernetes.aio.client.models.v1beta1_ip_address_list.rst new file mode 100644 index 0000000000..66a674b885 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_ip_address_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_ip\_address\_list module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_ip_address_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_ip_address_spec.rst b/doc/source/kubernetes.aio.client.models.v1beta1_ip_address_spec.rst new file mode 100644 index 0000000000..83ae987841 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_ip_address_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_ip\_address\_spec module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_ip_address_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_json_patch.rst b/doc/source/kubernetes.aio.client.models.v1beta1_json_patch.rst new file mode 100644 index 0000000000..1fe0f53f6b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_json_patch.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_json\_patch module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_json_patch + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_lease_candidate.rst b/doc/source/kubernetes.aio.client.models.v1beta1_lease_candidate.rst new file mode 100644 index 0000000000..b6b94692a3 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_lease_candidate.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_lease\_candidate module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_lease_candidate + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_lease_candidate_list.rst b/doc/source/kubernetes.aio.client.models.v1beta1_lease_candidate_list.rst new file mode 100644 index 0000000000..0f0f14c9d0 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_lease_candidate_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_lease\_candidate\_list module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_lease_candidate_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_lease_candidate_spec.rst b/doc/source/kubernetes.aio.client.models.v1beta1_lease_candidate_spec.rst new file mode 100644 index 0000000000..405b702f7c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_lease_candidate_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_lease\_candidate\_spec module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_lease_candidate_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_match_condition.rst b/doc/source/kubernetes.aio.client.models.v1beta1_match_condition.rst new file mode 100644 index 0000000000..db4241bbd1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_match_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_match\_condition module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_match_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_match_resources.rst b/doc/source/kubernetes.aio.client.models.v1beta1_match_resources.rst new file mode 100644 index 0000000000..fa13d43c8d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_match_resources.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_match\_resources module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_match_resources + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy.rst b/doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy.rst new file mode 100644 index 0000000000..d0be48476c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_mutating\_admission\_policy module +======================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_mutating_admission_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_binding.rst b/doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_binding.rst new file mode 100644 index 0000000000..140b55d6b2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_binding.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_mutating\_admission\_policy\_binding module +================================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_mutating_admission_policy_binding + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_binding_list.rst b/doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_binding_list.rst new file mode 100644 index 0000000000..4df6a819e9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_binding_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_mutating\_admission\_policy\_binding\_list module +======================================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_mutating_admission_policy_binding_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_binding_spec.rst b/doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_binding_spec.rst new file mode 100644 index 0000000000..4fd5447d26 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_binding_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_mutating\_admission\_policy\_binding\_spec module +======================================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_mutating_admission_policy_binding_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_list.rst b/doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_list.rst new file mode 100644 index 0000000000..6b107a81f3 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_mutating\_admission\_policy\_list module +============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_mutating_admission_policy_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_spec.rst b/doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_spec.rst new file mode 100644 index 0000000000..bd80258d89 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_mutating_admission_policy_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_mutating\_admission\_policy\_spec module +============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_mutating_admission_policy_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_mutation.rst b/doc/source/kubernetes.aio.client.models.v1beta1_mutation.rst new file mode 100644 index 0000000000..a4e2a71510 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_mutation.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_mutation module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_mutation + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_named_rule_with_operations.rst b/doc/source/kubernetes.aio.client.models.v1beta1_named_rule_with_operations.rst new file mode 100644 index 0000000000..bb859628d0 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_named_rule_with_operations.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_named\_rule\_with\_operations module +========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_named_rule_with_operations + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_network_device_data.rst b/doc/source/kubernetes.aio.client.models.v1beta1_network_device_data.rst new file mode 100644 index 0000000000..60431cc3e0 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_network_device_data.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_network\_device\_data module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_network_device_data + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_node_allocatable_resource_mapping.rst b/doc/source/kubernetes.aio.client.models.v1beta1_node_allocatable_resource_mapping.rst new file mode 100644 index 0000000000..4b8e116641 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_node_allocatable_resource_mapping.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_node\_allocatable\_resource\_mapping module +================================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_node_allocatable_resource_mapping + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_opaque_device_configuration.rst b/doc/source/kubernetes.aio.client.models.v1beta1_opaque_device_configuration.rst new file mode 100644 index 0000000000..4d0597303a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_opaque_device_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_opaque\_device\_configuration module +========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_opaque_device_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_param_kind.rst b/doc/source/kubernetes.aio.client.models.v1beta1_param_kind.rst new file mode 100644 index 0000000000..ec00d712f7 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_param_kind.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_param\_kind module +======================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_param_kind + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_param_ref.rst b/doc/source/kubernetes.aio.client.models.v1beta1_param_ref.rst new file mode 100644 index 0000000000..99cfeb4e6d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_param_ref.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_param\_ref module +======================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_param_ref + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_parent_reference.rst b/doc/source/kubernetes.aio.client.models.v1beta1_parent_reference.rst new file mode 100644 index 0000000000..dff3dc0dcc --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_parent_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_parent\_reference module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_parent_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_pod_certificate_request.rst b/doc/source/kubernetes.aio.client.models.v1beta1_pod_certificate_request.rst new file mode 100644 index 0000000000..77f29c40e8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_pod_certificate_request.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_pod\_certificate\_request module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_pod_certificate_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_pod_certificate_request_list.rst b/doc/source/kubernetes.aio.client.models.v1beta1_pod_certificate_request_list.rst new file mode 100644 index 0000000000..3202f88816 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_pod_certificate_request_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_pod\_certificate\_request\_list module +============================================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta1_pod_certificate_request_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_pod_certificate_request_spec.rst b/doc/source/kubernetes.aio.client.models.v1beta1_pod_certificate_request_spec.rst new file mode 100644 index 0000000000..d932cc630a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_pod_certificate_request_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_pod\_certificate\_request\_spec module +============================================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta1_pod_certificate_request_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_pod_certificate_request_status.rst b/doc/source/kubernetes.aio.client.models.v1beta1_pod_certificate_request_status.rst new file mode 100644 index 0000000000..6217efe85b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_pod_certificate_request_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_pod\_certificate\_request\_status module +============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_pod_certificate_request_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim.rst b/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim.rst new file mode 100644 index 0000000000..43a3f14717 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_resource\_claim module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta1_resource_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_consumer_reference.rst b/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_consumer_reference.rst new file mode 100644 index 0000000000..95e14ea24d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_consumer_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_resource\_claim\_consumer\_reference module +================================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta1_resource_claim_consumer_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_list.rst b/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_list.rst new file mode 100644 index 0000000000..94cbbdd826 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_resource\_claim\_list module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_resource_claim_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_spec.rst b/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_spec.rst new file mode 100644 index 0000000000..58f96f8666 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_resource\_claim\_spec module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_resource_claim_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_status.rst b/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_status.rst new file mode 100644 index 0000000000..1652ddc776 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_resource\_claim\_status module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_resource_claim_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_template.rst b/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_template.rst new file mode 100644 index 0000000000..e2947976bc --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_template.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_resource\_claim\_template module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_resource_claim_template + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_template_list.rst b/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_template_list.rst new file mode 100644 index 0000000000..818304893c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_template_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_resource\_claim\_template\_list module +============================================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta1_resource_claim_template_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_template_spec.rst b/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_template_spec.rst new file mode 100644 index 0000000000..d6019d713f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_resource_claim_template_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_resource\_claim\_template\_spec module +============================================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta1_resource_claim_template_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_resource_pool.rst b/doc/source/kubernetes.aio.client.models.v1beta1_resource_pool.rst new file mode 100644 index 0000000000..43e167b1f6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_resource_pool.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_resource\_pool module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_resource_pool + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_resource_slice.rst b/doc/source/kubernetes.aio.client.models.v1beta1_resource_slice.rst new file mode 100644 index 0000000000..09aad657fe --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_resource_slice.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_resource\_slice module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta1_resource_slice + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_resource_slice_list.rst b/doc/source/kubernetes.aio.client.models.v1beta1_resource_slice_list.rst new file mode 100644 index 0000000000..762f551e93 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_resource_slice_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_resource\_slice\_list module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_resource_slice_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_resource_slice_spec.rst b/doc/source/kubernetes.aio.client.models.v1beta1_resource_slice_spec.rst new file mode 100644 index 0000000000..1f015ab1b2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_resource_slice_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_resource\_slice\_spec module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_resource_slice_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_service_cidr.rst b/doc/source/kubernetes.aio.client.models.v1beta1_service_cidr.rst new file mode 100644 index 0000000000..393d30b308 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_service_cidr.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_service\_cidr module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_service_cidr + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_service_cidr_list.rst b/doc/source/kubernetes.aio.client.models.v1beta1_service_cidr_list.rst new file mode 100644 index 0000000000..068c87d2a3 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_service_cidr_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_service\_cidr\_list module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta1_service_cidr_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_service_cidr_spec.rst b/doc/source/kubernetes.aio.client.models.v1beta1_service_cidr_spec.rst new file mode 100644 index 0000000000..3316ec4959 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_service_cidr_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_service\_cidr\_spec module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta1_service_cidr_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_service_cidr_status.rst b/doc/source/kubernetes.aio.client.models.v1beta1_service_cidr_status.rst new file mode 100644 index 0000000000..fa2fa02b12 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_service_cidr_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_service\_cidr\_status module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_service_cidr_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_storage_version_migration.rst b/doc/source/kubernetes.aio.client.models.v1beta1_storage_version_migration.rst new file mode 100644 index 0000000000..1579762418 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_storage_version_migration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_storage\_version\_migration module +======================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_storage_version_migration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_storage_version_migration_list.rst b/doc/source/kubernetes.aio.client.models.v1beta1_storage_version_migration_list.rst new file mode 100644 index 0000000000..06d89b6252 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_storage_version_migration_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_storage\_version\_migration\_list module +============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_storage_version_migration_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_storage_version_migration_spec.rst b/doc/source/kubernetes.aio.client.models.v1beta1_storage_version_migration_spec.rst new file mode 100644 index 0000000000..882791407e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_storage_version_migration_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_storage\_version\_migration\_spec module +============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_storage_version_migration_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_storage_version_migration_status.rst b/doc/source/kubernetes.aio.client.models.v1beta1_storage_version_migration_status.rst new file mode 100644 index 0000000000..fc3bed547c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_storage_version_migration_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_storage\_version\_migration\_status module +================================================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta1_storage_version_migration_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_variable.rst b/doc/source/kubernetes.aio.client.models.v1beta1_variable.rst new file mode 100644 index 0000000000..b7c85b4323 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_variable.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_variable module +===================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_variable + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_volume_attributes_class.rst b/doc/source/kubernetes.aio.client.models.v1beta1_volume_attributes_class.rst new file mode 100644 index 0000000000..b6bb82ba83 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_volume_attributes_class.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_volume\_attributes\_class module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta1_volume_attributes_class + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta1_volume_attributes_class_list.rst b/doc/source/kubernetes.aio.client.models.v1beta1_volume_attributes_class_list.rst new file mode 100644 index 0000000000..80788bd626 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta1_volume_attributes_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta1\_volume\_attributes\_class\_list module +============================================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta1_volume_attributes_class_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_allocated_device_status.rst b/doc/source/kubernetes.aio.client.models.v1beta2_allocated_device_status.rst new file mode 100644 index 0000000000..aa930ab830 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_allocated_device_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_allocated\_device\_status module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_allocated_device_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_allocation_result.rst b/doc/source/kubernetes.aio.client.models.v1beta2_allocation_result.rst new file mode 100644 index 0000000000..f02e7a7a0d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_allocation\_result module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_allocation_result + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_capacity_request_policy.rst b/doc/source/kubernetes.aio.client.models.v1beta2_capacity_request_policy.rst new file mode 100644 index 0000000000..f31f1db774 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_capacity_request_policy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_capacity\_request\_policy module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_capacity_request_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_capacity_request_policy_range.rst b/doc/source/kubernetes.aio.client.models.v1beta2_capacity_request_policy_range.rst new file mode 100644 index 0000000000..88b2c9c829 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_capacity_request_policy_range.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_capacity\_request\_policy\_range module +============================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta2_capacity_request_policy_range + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_capacity_requirements.rst b/doc/source/kubernetes.aio.client.models.v1beta2_capacity_requirements.rst new file mode 100644 index 0000000000..9bfe9e113c --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_capacity_requirements.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_capacity\_requirements module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_capacity_requirements + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_cel_device_selector.rst b/doc/source/kubernetes.aio.client.models.v1beta2_cel_device_selector.rst new file mode 100644 index 0000000000..ac4e2ff1b2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_cel_device_selector.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_cel\_device\_selector module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_cel_device_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_counter.rst b/doc/source/kubernetes.aio.client.models.v1beta2_counter.rst new file mode 100644 index 0000000000..c16b651a73 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_counter.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_counter module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_counter + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_counter_set.rst b/doc/source/kubernetes.aio.client.models.v1beta2_counter_set.rst new file mode 100644 index 0000000000..3f15a32ac2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_counter_set.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_counter\_set module +========================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta2_counter_set + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device.rst new file mode 100644 index 0000000000..2902839504 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device module +=================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_device + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_allocation_configuration.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_allocation_configuration.rst new file mode 100644 index 0000000000..1d26905e9e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_allocation_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_allocation\_configuration module +============================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_allocation_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_allocation_result.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_allocation_result.rst new file mode 100644 index 0000000000..0004a0cd96 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_allocation\_result module +======================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_allocation_result + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_attribute.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_attribute.rst new file mode 100644 index 0000000000..8fa5d2da86 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_attribute.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_attribute module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_attribute + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_capacity.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_capacity.rst new file mode 100644 index 0000000000..86f86e88cc --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_capacity.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_capacity module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_capacity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_claim.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_claim.rst new file mode 100644 index 0000000000..fdd8332e4f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_claim.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_claim module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_claim_configuration.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_claim_configuration.rst new file mode 100644 index 0000000000..ea2233c182 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_claim_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_claim\_configuration module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_claim_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_class.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_class.rst new file mode 100644 index 0000000000..7a586e9a8b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_class.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_class module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_class + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_class_configuration.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_class_configuration.rst new file mode 100644 index 0000000000..a6c724935b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_class_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_class\_configuration module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_class_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_class_list.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_class_list.rst new file mode 100644 index 0000000000..d42bcd83ed --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_class\_list module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_class_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_class_spec.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_class_spec.rst new file mode 100644 index 0000000000..e764184433 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_class_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_class\_spec module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_class_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_constraint.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_constraint.rst new file mode 100644 index 0000000000..825fd387ef --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_constraint.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_constraint module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_constraint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_counter_consumption.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_counter_consumption.rst new file mode 100644 index 0000000000..0c13a9a8f8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_counter_consumption.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_counter\_consumption module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_counter_consumption + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_request.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_request.rst new file mode 100644 index 0000000000..0b3fe38539 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_request.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_request module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_request_allocation_result.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_request_allocation_result.rst new file mode 100644 index 0000000000..256b2ba2a8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_request_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_request\_allocation\_result module +================================================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_request_allocation_result + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_selector.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_selector.rst new file mode 100644 index 0000000000..0e8eb4eeef --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_selector.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_selector module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_sub_request.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_sub_request.rst new file mode 100644 index 0000000000..888902432a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_sub_request.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_sub\_request module +================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_sub_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_taint.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_taint.rst new file mode 100644 index 0000000000..8e66124443 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_taint.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_taint module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_taint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_taint_rule.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_taint_rule.rst new file mode 100644 index 0000000000..8c64f23617 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_taint_rule.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_taint\_rule module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_taint_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_taint_rule_list.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_taint_rule_list.rst new file mode 100644 index 0000000000..6766d837f4 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_taint_rule_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_taint\_rule\_list module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_taint_rule_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_taint_rule_spec.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_taint_rule_spec.rst new file mode 100644 index 0000000000..a34b6a18d1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_taint_rule_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_taint\_rule\_spec module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_taint_rule_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_taint_rule_status.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_taint_rule_status.rst new file mode 100644 index 0000000000..65b7ac6659 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_taint_rule_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_taint\_rule\_status module +======================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_taint_rule_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_taint_selector.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_taint_selector.rst new file mode 100644 index 0000000000..d944e8f677 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_taint_selector.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_taint\_selector module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_taint_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_device_toleration.rst b/doc/source/kubernetes.aio.client.models.v1beta2_device_toleration.rst new file mode 100644 index 0000000000..39ecb428d2 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_device_toleration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_device\_toleration module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_device_toleration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_exact_device_request.rst b/doc/source/kubernetes.aio.client.models.v1beta2_exact_device_request.rst new file mode 100644 index 0000000000..4258c01964 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_exact_device_request.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_exact\_device\_request module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_exact_device_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_network_device_data.rst b/doc/source/kubernetes.aio.client.models.v1beta2_network_device_data.rst new file mode 100644 index 0000000000..8e0cbb3bcb --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_network_device_data.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_network\_device\_data module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_network_device_data + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_node_allocatable_resource_mapping.rst b/doc/source/kubernetes.aio.client.models.v1beta2_node_allocatable_resource_mapping.rst new file mode 100644 index 0000000000..dec35a7c9d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_node_allocatable_resource_mapping.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_node\_allocatable\_resource\_mapping module +================================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta2_node_allocatable_resource_mapping + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_opaque_device_configuration.rst b/doc/source/kubernetes.aio.client.models.v1beta2_opaque_device_configuration.rst new file mode 100644 index 0000000000..fb0f4f256f --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_opaque_device_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_opaque\_device\_configuration module +========================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_opaque_device_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim.rst b/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim.rst new file mode 100644 index 0000000000..7bfae1416d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_resource\_claim module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta2_resource_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_consumer_reference.rst b/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_consumer_reference.rst new file mode 100644 index 0000000000..7ea6bcb6d8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_consumer_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_resource\_claim\_consumer\_reference module +================================================================================= + +.. automodule:: kubernetes.aio.client.models.v1beta2_resource_claim_consumer_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_list.rst b/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_list.rst new file mode 100644 index 0000000000..656fc1ade0 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_resource\_claim\_list module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_resource_claim_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_spec.rst b/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_spec.rst new file mode 100644 index 0000000000..59c8530f02 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_resource\_claim\_spec module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_resource_claim_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_status.rst b/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_status.rst new file mode 100644 index 0000000000..89c89a5f48 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_resource\_claim\_status module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_resource_claim_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_template.rst b/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_template.rst new file mode 100644 index 0000000000..8f2eafdfbd --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_template.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_resource\_claim\_template module +====================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_resource_claim_template + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_template_list.rst b/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_template_list.rst new file mode 100644 index 0000000000..bac45c4860 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_template_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_resource\_claim\_template\_list module +============================================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta2_resource_claim_template_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_template_spec.rst b/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_template_spec.rst new file mode 100644 index 0000000000..739bc5d965 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_resource_claim_template_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_resource\_claim\_template\_spec module +============================================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta2_resource_claim_template_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_resource_pool.rst b/doc/source/kubernetes.aio.client.models.v1beta2_resource_pool.rst new file mode 100644 index 0000000000..faec450b37 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_resource_pool.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_resource\_pool module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_resource_pool + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_resource_slice.rst b/doc/source/kubernetes.aio.client.models.v1beta2_resource_slice.rst new file mode 100644 index 0000000000..5143708aab --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_resource_slice.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_resource\_slice module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v1beta2_resource_slice + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_resource_slice_list.rst b/doc/source/kubernetes.aio.client.models.v1beta2_resource_slice_list.rst new file mode 100644 index 0000000000..079a0247b4 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_resource_slice_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_resource\_slice\_list module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_resource_slice_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v1beta2_resource_slice_spec.rst b/doc/source/kubernetes.aio.client.models.v1beta2_resource_slice_spec.rst new file mode 100644 index 0000000000..e46b0b66b1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v1beta2_resource_slice_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v1beta2\_resource\_slice\_spec module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v1beta2_resource_slice_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_api_group_discovery.rst b/doc/source/kubernetes.aio.client.models.v2_api_group_discovery.rst new file mode 100644 index 0000000000..0216601b0d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_api_group_discovery.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_api\_group\_discovery module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v2_api_group_discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_api_group_discovery_list.rst b/doc/source/kubernetes.aio.client.models.v2_api_group_discovery_list.rst new file mode 100644 index 0000000000..dda268074a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_api_group_discovery_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_api\_group\_discovery\_list module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v2_api_group_discovery_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_api_resource_discovery.rst b/doc/source/kubernetes.aio.client.models.v2_api_resource_discovery.rst new file mode 100644 index 0000000000..1dc13a7395 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_api_resource_discovery.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_api\_resource\_discovery module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v2_api_resource_discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_api_subresource_discovery.rst b/doc/source/kubernetes.aio.client.models.v2_api_subresource_discovery.rst new file mode 100644 index 0000000000..4b0949fb6b --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_api_subresource_discovery.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_api\_subresource\_discovery module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v2_api_subresource_discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_api_version_discovery.rst b/doc/source/kubernetes.aio.client.models.v2_api_version_discovery.rst new file mode 100644 index 0000000000..fc969d191a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_api_version_discovery.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_api\_version\_discovery module +=============================================================== + +.. automodule:: kubernetes.aio.client.models.v2_api_version_discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_container_resource_metric_source.rst b/doc/source/kubernetes.aio.client.models.v2_container_resource_metric_source.rst new file mode 100644 index 0000000000..7ed872b448 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_container_resource_metric_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_container\_resource\_metric\_source module +=========================================================================== + +.. automodule:: kubernetes.aio.client.models.v2_container_resource_metric_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_container_resource_metric_status.rst b/doc/source/kubernetes.aio.client.models.v2_container_resource_metric_status.rst new file mode 100644 index 0000000000..f90267be8e --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_container_resource_metric_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_container\_resource\_metric\_status module +=========================================================================== + +.. automodule:: kubernetes.aio.client.models.v2_container_resource_metric_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_cross_version_object_reference.rst b/doc/source/kubernetes.aio.client.models.v2_cross_version_object_reference.rst new file mode 100644 index 0000000000..70e4eca00d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_cross_version_object_reference.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_cross\_version\_object\_reference module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v2_cross_version_object_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_external_metric_source.rst b/doc/source/kubernetes.aio.client.models.v2_external_metric_source.rst new file mode 100644 index 0000000000..252ef200c6 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_external_metric_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_external\_metric\_source module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v2_external_metric_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_external_metric_status.rst b/doc/source/kubernetes.aio.client.models.v2_external_metric_status.rst new file mode 100644 index 0000000000..2f9cb6858a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_external_metric_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_external\_metric\_status module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v2_external_metric_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler.rst b/doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler.rst new file mode 100644 index 0000000000..62e0b2828d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_horizontal\_pod\_autoscaler module +=================================================================== + +.. automodule:: kubernetes.aio.client.models.v2_horizontal_pod_autoscaler + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_behavior.rst b/doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_behavior.rst new file mode 100644 index 0000000000..74e3f804c9 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_behavior.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_horizontal\_pod\_autoscaler\_behavior module +============================================================================= + +.. automodule:: kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_behavior + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_condition.rst b/doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_condition.rst new file mode 100644 index 0000000000..4e1e7b7a3d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_condition.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_horizontal\_pod\_autoscaler\_condition module +============================================================================== + +.. automodule:: kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_list.rst b/doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_list.rst new file mode 100644 index 0000000000..15739518b1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_horizontal\_pod\_autoscaler\_list module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_spec.rst b/doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_spec.rst new file mode 100644 index 0000000000..bd502b7b5d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_horizontal\_pod\_autoscaler\_spec module +========================================================================= + +.. automodule:: kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_status.rst b/doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_status.rst new file mode 100644 index 0000000000..2eac797afa --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_horizontal\_pod\_autoscaler\_status module +=========================================================================== + +.. automodule:: kubernetes.aio.client.models.v2_horizontal_pod_autoscaler_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_hpa_scaling_policy.rst b/doc/source/kubernetes.aio.client.models.v2_hpa_scaling_policy.rst new file mode 100644 index 0000000000..e47535ec71 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_hpa_scaling_policy.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_hpa\_scaling\_policy module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v2_hpa_scaling_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_hpa_scaling_rules.rst b/doc/source/kubernetes.aio.client.models.v2_hpa_scaling_rules.rst new file mode 100644 index 0000000000..d96b842956 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_hpa_scaling_rules.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_hpa\_scaling\_rules module +=========================================================== + +.. automodule:: kubernetes.aio.client.models.v2_hpa_scaling_rules + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_metric_identifier.rst b/doc/source/kubernetes.aio.client.models.v2_metric_identifier.rst new file mode 100644 index 0000000000..73e082b3c7 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_metric_identifier.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_metric\_identifier module +========================================================== + +.. automodule:: kubernetes.aio.client.models.v2_metric_identifier + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_metric_spec.rst b/doc/source/kubernetes.aio.client.models.v2_metric_spec.rst new file mode 100644 index 0000000000..ec3924e174 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_metric_spec.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_metric\_spec module +==================================================== + +.. automodule:: kubernetes.aio.client.models.v2_metric_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_metric_status.rst b/doc/source/kubernetes.aio.client.models.v2_metric_status.rst new file mode 100644 index 0000000000..42d56ed251 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_metric_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_metric\_status module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v2_metric_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_metric_target.rst b/doc/source/kubernetes.aio.client.models.v2_metric_target.rst new file mode 100644 index 0000000000..fc2631ce76 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_metric_target.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_metric\_target module +====================================================== + +.. automodule:: kubernetes.aio.client.models.v2_metric_target + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_metric_value_status.rst b/doc/source/kubernetes.aio.client.models.v2_metric_value_status.rst new file mode 100644 index 0000000000..794eda18a5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_metric_value_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_metric\_value\_status module +============================================================= + +.. automodule:: kubernetes.aio.client.models.v2_metric_value_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_object_metric_source.rst b/doc/source/kubernetes.aio.client.models.v2_object_metric_source.rst new file mode 100644 index 0000000000..81a7c81286 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_object_metric_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_object\_metric\_source module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v2_object_metric_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_object_metric_status.rst b/doc/source/kubernetes.aio.client.models.v2_object_metric_status.rst new file mode 100644 index 0000000000..71451ee054 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_object_metric_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_object\_metric\_status module +============================================================== + +.. automodule:: kubernetes.aio.client.models.v2_object_metric_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_pods_metric_source.rst b/doc/source/kubernetes.aio.client.models.v2_pods_metric_source.rst new file mode 100644 index 0000000000..d37ac8a20d --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_pods_metric_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_pods\_metric\_source module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v2_pods_metric_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_pods_metric_status.rst b/doc/source/kubernetes.aio.client.models.v2_pods_metric_status.rst new file mode 100644 index 0000000000..7bfc6515b5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_pods_metric_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_pods\_metric\_status module +============================================================ + +.. automodule:: kubernetes.aio.client.models.v2_pods_metric_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_resource_metric_source.rst b/doc/source/kubernetes.aio.client.models.v2_resource_metric_source.rst new file mode 100644 index 0000000000..501bc12d04 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_resource_metric_source.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_resource\_metric\_source module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v2_resource_metric_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2_resource_metric_status.rst b/doc/source/kubernetes.aio.client.models.v2_resource_metric_status.rst new file mode 100644 index 0000000000..0d4eba2bc1 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2_resource_metric_status.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2\_resource\_metric\_status module +================================================================ + +.. automodule:: kubernetes.aio.client.models.v2_resource_metric_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2beta1_api_group_discovery.rst b/doc/source/kubernetes.aio.client.models.v2beta1_api_group_discovery.rst new file mode 100644 index 0000000000..a2e08d3bd8 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2beta1_api_group_discovery.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2beta1\_api\_group\_discovery module +================================================================== + +.. automodule:: kubernetes.aio.client.models.v2beta1_api_group_discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2beta1_api_group_discovery_list.rst b/doc/source/kubernetes.aio.client.models.v2beta1_api_group_discovery_list.rst new file mode 100644 index 0000000000..fba4b9bfe5 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2beta1_api_group_discovery_list.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2beta1\_api\_group\_discovery\_list module +======================================================================== + +.. automodule:: kubernetes.aio.client.models.v2beta1_api_group_discovery_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2beta1_api_resource_discovery.rst b/doc/source/kubernetes.aio.client.models.v2beta1_api_resource_discovery.rst new file mode 100644 index 0000000000..5b7060d74a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2beta1_api_resource_discovery.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2beta1\_api\_resource\_discovery module +===================================================================== + +.. automodule:: kubernetes.aio.client.models.v2beta1_api_resource_discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2beta1_api_subresource_discovery.rst b/doc/source/kubernetes.aio.client.models.v2beta1_api_subresource_discovery.rst new file mode 100644 index 0000000000..9186b2b349 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2beta1_api_subresource_discovery.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2beta1\_api\_subresource\_discovery module +======================================================================== + +.. automodule:: kubernetes.aio.client.models.v2beta1_api_subresource_discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.v2beta1_api_version_discovery.rst b/doc/source/kubernetes.aio.client.models.v2beta1_api_version_discovery.rst new file mode 100644 index 0000000000..d21b819cb4 --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.v2beta1_api_version_discovery.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.v2beta1\_api\_version\_discovery module +==================================================================== + +.. automodule:: kubernetes.aio.client.models.v2beta1_api_version_discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.models.version_info.rst b/doc/source/kubernetes.aio.client.models.version_info.rst new file mode 100644 index 0000000000..df91c32b8a --- /dev/null +++ b/doc/source/kubernetes.aio.client.models.version_info.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.models.version\_info module +================================================= + +.. automodule:: kubernetes.aio.client.models.version_info + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.rest.rst b/doc/source/kubernetes.aio.client.rest.rst new file mode 100644 index 0000000000..8f6a33be94 --- /dev/null +++ b/doc/source/kubernetes.aio.client.rest.rst @@ -0,0 +1,7 @@ +kubernetes.aio.client.rest module +================================= + +.. automodule:: kubernetes.aio.client.rest + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.client.rst b/doc/source/kubernetes.aio.client.rst new file mode 100644 index 0000000000..8cde40656a --- /dev/null +++ b/doc/source/kubernetes.aio.client.rst @@ -0,0 +1,31 @@ +kubernetes.aio.client package +============================= + +Subpackages +----------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.aio.client.api + kubernetes.aio.client.models + +Submodules +---------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.aio.client.api_client + kubernetes.aio.client.api_response + kubernetes.aio.client.configuration + kubernetes.aio.client.exceptions + kubernetes.aio.client.rest + +Module contents +--------------- + +.. automodule:: kubernetes.aio.client + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.config.config_exception.rst b/doc/source/kubernetes.aio.config.config_exception.rst new file mode 100644 index 0000000000..4dc34dd374 --- /dev/null +++ b/doc/source/kubernetes.aio.config.config_exception.rst @@ -0,0 +1,7 @@ +kubernetes.aio.config.config\_exception module +============================================== + +.. automodule:: kubernetes.aio.config.config_exception + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.config.dateutil.rst b/doc/source/kubernetes.aio.config.dateutil.rst new file mode 100644 index 0000000000..d7b3b6817c --- /dev/null +++ b/doc/source/kubernetes.aio.config.dateutil.rst @@ -0,0 +1,7 @@ +kubernetes.aio.config.dateutil module +===================================== + +.. automodule:: kubernetes.aio.config.dateutil + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.config.dateutil_test.rst b/doc/source/kubernetes.aio.config.dateutil_test.rst new file mode 100644 index 0000000000..9f57e64fb2 --- /dev/null +++ b/doc/source/kubernetes.aio.config.dateutil_test.rst @@ -0,0 +1,7 @@ +kubernetes.aio.config.dateutil\_test module +=========================================== + +.. automodule:: kubernetes.aio.config.dateutil_test + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.config.exec_provider.rst b/doc/source/kubernetes.aio.config.exec_provider.rst new file mode 100644 index 0000000000..a0e4015dda --- /dev/null +++ b/doc/source/kubernetes.aio.config.exec_provider.rst @@ -0,0 +1,7 @@ +kubernetes.aio.config.exec\_provider module +=========================================== + +.. automodule:: kubernetes.aio.config.exec_provider + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.config.exec_provider_test.rst b/doc/source/kubernetes.aio.config.exec_provider_test.rst new file mode 100644 index 0000000000..0d81b274aa --- /dev/null +++ b/doc/source/kubernetes.aio.config.exec_provider_test.rst @@ -0,0 +1,7 @@ +kubernetes.aio.config.exec\_provider\_test module +================================================= + +.. automodule:: kubernetes.aio.config.exec_provider_test + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.config.google_auth.rst b/doc/source/kubernetes.aio.config.google_auth.rst new file mode 100644 index 0000000000..99721329f2 --- /dev/null +++ b/doc/source/kubernetes.aio.config.google_auth.rst @@ -0,0 +1,7 @@ +kubernetes.aio.config.google\_auth module +========================================= + +.. automodule:: kubernetes.aio.config.google_auth + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.config.google_auth_test.rst b/doc/source/kubernetes.aio.config.google_auth_test.rst new file mode 100644 index 0000000000..8d01b5d2e4 --- /dev/null +++ b/doc/source/kubernetes.aio.config.google_auth_test.rst @@ -0,0 +1,7 @@ +kubernetes.aio.config.google\_auth\_test module +=============================================== + +.. automodule:: kubernetes.aio.config.google_auth_test + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.config.incluster_config.rst b/doc/source/kubernetes.aio.config.incluster_config.rst new file mode 100644 index 0000000000..3b8a463866 --- /dev/null +++ b/doc/source/kubernetes.aio.config.incluster_config.rst @@ -0,0 +1,7 @@ +kubernetes.aio.config.incluster\_config module +============================================== + +.. automodule:: kubernetes.aio.config.incluster_config + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.config.incluster_config_test.rst b/doc/source/kubernetes.aio.config.incluster_config_test.rst new file mode 100644 index 0000000000..5ea97ec593 --- /dev/null +++ b/doc/source/kubernetes.aio.config.incluster_config_test.rst @@ -0,0 +1,7 @@ +kubernetes.aio.config.incluster\_config\_test module +==================================================== + +.. automodule:: kubernetes.aio.config.incluster_config_test + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.config.kube_config.rst b/doc/source/kubernetes.aio.config.kube_config.rst new file mode 100644 index 0000000000..d908d9fcea --- /dev/null +++ b/doc/source/kubernetes.aio.config.kube_config.rst @@ -0,0 +1,7 @@ +kubernetes.aio.config.kube\_config module +========================================= + +.. automodule:: kubernetes.aio.config.kube_config + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.config.kube_config_test.rst b/doc/source/kubernetes.aio.config.kube_config_test.rst new file mode 100644 index 0000000000..5f57130107 --- /dev/null +++ b/doc/source/kubernetes.aio.config.kube_config_test.rst @@ -0,0 +1,7 @@ +kubernetes.aio.config.kube\_config\_test module +=============================================== + +.. automodule:: kubernetes.aio.config.kube_config_test + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.config.openid.rst b/doc/source/kubernetes.aio.config.openid.rst new file mode 100644 index 0000000000..97ac975c19 --- /dev/null +++ b/doc/source/kubernetes.aio.config.openid.rst @@ -0,0 +1,7 @@ +kubernetes.aio.config.openid module +=================================== + +.. automodule:: kubernetes.aio.config.openid + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.config.openid_test.rst b/doc/source/kubernetes.aio.config.openid_test.rst new file mode 100644 index 0000000000..f9fb3592c8 --- /dev/null +++ b/doc/source/kubernetes.aio.config.openid_test.rst @@ -0,0 +1,7 @@ +kubernetes.aio.config.openid\_test module +========================================= + +.. automodule:: kubernetes.aio.config.openid_test + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.config.rst b/doc/source/kubernetes.aio.config.rst new file mode 100644 index 0000000000..c5d4dec8ad --- /dev/null +++ b/doc/source/kubernetes.aio.config.rst @@ -0,0 +1,30 @@ +kubernetes.aio.config package +============================= + +Submodules +---------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.aio.config.config_exception + kubernetes.aio.config.dateutil + kubernetes.aio.config.dateutil_test + kubernetes.aio.config.exec_provider + kubernetes.aio.config.exec_provider_test + kubernetes.aio.config.google_auth + kubernetes.aio.config.google_auth_test + kubernetes.aio.config.incluster_config + kubernetes.aio.config.incluster_config_test + kubernetes.aio.config.kube_config + kubernetes.aio.config.kube_config_test + kubernetes.aio.config.openid + kubernetes.aio.config.openid_test + +Module contents +--------------- + +.. automodule:: kubernetes.aio.config + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.dynamic.client.rst b/doc/source/kubernetes.aio.dynamic.client.rst new file mode 100644 index 0000000000..acde614c48 --- /dev/null +++ b/doc/source/kubernetes.aio.dynamic.client.rst @@ -0,0 +1,7 @@ +kubernetes.aio.dynamic.client module +==================================== + +.. automodule:: kubernetes.aio.dynamic.client + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.dynamic.client_test.rst b/doc/source/kubernetes.aio.dynamic.client_test.rst new file mode 100644 index 0000000000..dea0aa121b --- /dev/null +++ b/doc/source/kubernetes.aio.dynamic.client_test.rst @@ -0,0 +1,7 @@ +kubernetes.aio.dynamic.client\_test module +========================================== + +.. automodule:: kubernetes.aio.dynamic.client_test + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.dynamic.discovery.rst b/doc/source/kubernetes.aio.dynamic.discovery.rst new file mode 100644 index 0000000000..8b761e7f70 --- /dev/null +++ b/doc/source/kubernetes.aio.dynamic.discovery.rst @@ -0,0 +1,7 @@ +kubernetes.aio.dynamic.discovery module +======================================= + +.. automodule:: kubernetes.aio.dynamic.discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.dynamic.discovery_test.rst b/doc/source/kubernetes.aio.dynamic.discovery_test.rst new file mode 100644 index 0000000000..7bc64f65aa --- /dev/null +++ b/doc/source/kubernetes.aio.dynamic.discovery_test.rst @@ -0,0 +1,7 @@ +kubernetes.aio.dynamic.discovery\_test module +============================================= + +.. automodule:: kubernetes.aio.dynamic.discovery_test + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.dynamic.exceptions.rst b/doc/source/kubernetes.aio.dynamic.exceptions.rst new file mode 100644 index 0000000000..13018e7ee2 --- /dev/null +++ b/doc/source/kubernetes.aio.dynamic.exceptions.rst @@ -0,0 +1,7 @@ +kubernetes.aio.dynamic.exceptions module +======================================== + +.. automodule:: kubernetes.aio.dynamic.exceptions + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.dynamic.resource.rst b/doc/source/kubernetes.aio.dynamic.resource.rst new file mode 100644 index 0000000000..57ff63d5af --- /dev/null +++ b/doc/source/kubernetes.aio.dynamic.resource.rst @@ -0,0 +1,7 @@ +kubernetes.aio.dynamic.resource module +====================================== + +.. automodule:: kubernetes.aio.dynamic.resource + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.dynamic.rst b/doc/source/kubernetes.aio.dynamic.rst new file mode 100644 index 0000000000..054a4e7f88 --- /dev/null +++ b/doc/source/kubernetes.aio.dynamic.rst @@ -0,0 +1,23 @@ +kubernetes.aio.dynamic package +============================== + +Submodules +---------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.aio.dynamic.client + kubernetes.aio.dynamic.client_test + kubernetes.aio.dynamic.discovery + kubernetes.aio.dynamic.discovery_test + kubernetes.aio.dynamic.exceptions + kubernetes.aio.dynamic.resource + +Module contents +--------------- + +.. automodule:: kubernetes.aio.dynamic + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.e2e_test.base.rst b/doc/source/kubernetes.aio.e2e_test.base.rst new file mode 100644 index 0000000000..1b58c5de5d --- /dev/null +++ b/doc/source/kubernetes.aio.e2e_test.base.rst @@ -0,0 +1,7 @@ +kubernetes.aio.e2e\_test.base module +==================================== + +.. automodule:: kubernetes.aio.e2e_test.base + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.e2e_test.rst b/doc/source/kubernetes.aio.e2e_test.rst new file mode 100644 index 0000000000..b72aa7c397 --- /dev/null +++ b/doc/source/kubernetes.aio.e2e_test.rst @@ -0,0 +1,22 @@ +kubernetes.aio.e2e\_test package +================================ + +Submodules +---------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.aio.e2e_test.base + kubernetes.aio.e2e_test.test_api + kubernetes.aio.e2e_test.test_apply_patch + kubernetes.aio.e2e_test.test_batch + kubernetes.aio.e2e_test.test_dynamic_client + +Module contents +--------------- + +.. automodule:: kubernetes.aio.e2e_test + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.e2e_test.test_api.rst b/doc/source/kubernetes.aio.e2e_test.test_api.rst new file mode 100644 index 0000000000..6fb23eb194 --- /dev/null +++ b/doc/source/kubernetes.aio.e2e_test.test_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.e2e\_test.test\_api module +========================================= + +.. automodule:: kubernetes.aio.e2e_test.test_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.e2e_test.test_apply_patch.rst b/doc/source/kubernetes.aio.e2e_test.test_apply_patch.rst new file mode 100644 index 0000000000..9aa2a66d96 --- /dev/null +++ b/doc/source/kubernetes.aio.e2e_test.test_apply_patch.rst @@ -0,0 +1,7 @@ +kubernetes.aio.e2e\_test.test\_apply\_patch module +================================================== + +.. automodule:: kubernetes.aio.e2e_test.test_apply_patch + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.e2e_test.test_batch.rst b/doc/source/kubernetes.aio.e2e_test.test_batch.rst new file mode 100644 index 0000000000..eba2526b40 --- /dev/null +++ b/doc/source/kubernetes.aio.e2e_test.test_batch.rst @@ -0,0 +1,7 @@ +kubernetes.aio.e2e\_test.test\_batch module +=========================================== + +.. automodule:: kubernetes.aio.e2e_test.test_batch + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.e2e_test.test_dynamic_client.rst b/doc/source/kubernetes.aio.e2e_test.test_dynamic_client.rst new file mode 100644 index 0000000000..c389be0084 --- /dev/null +++ b/doc/source/kubernetes.aio.e2e_test.test_dynamic_client.rst @@ -0,0 +1,7 @@ +kubernetes.aio.e2e\_test.test\_dynamic\_client module +===================================================== + +.. automodule:: kubernetes.aio.e2e_test.test_dynamic_client + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.rst b/doc/source/kubernetes.aio.rst new file mode 100644 index 0000000000..9ce5aaef57 --- /dev/null +++ b/doc/source/kubernetes.aio.rst @@ -0,0 +1,33 @@ +kubernetes.aio package +====================== + +Subpackages +----------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.aio.client + kubernetes.aio.config + kubernetes.aio.dynamic + kubernetes.aio.e2e_test + kubernetes.aio.stream + kubernetes.aio.test + kubernetes.aio.utils + kubernetes.aio.watch + +Submodules +---------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.aio.setup + +Module contents +--------------- + +.. automodule:: kubernetes.aio + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.setup.rst b/doc/source/kubernetes.aio.setup.rst new file mode 100644 index 0000000000..e1ae002bb9 --- /dev/null +++ b/doc/source/kubernetes.aio.setup.rst @@ -0,0 +1,7 @@ +kubernetes.aio.setup module +=========================== + +.. automodule:: kubernetes.aio.setup + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.stream.rst b/doc/source/kubernetes.aio.stream.rst new file mode 100644 index 0000000000..460a6eca90 --- /dev/null +++ b/doc/source/kubernetes.aio.stream.rst @@ -0,0 +1,19 @@ +kubernetes.aio.stream package +============================= + +Submodules +---------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.aio.stream.ws_client + kubernetes.aio.stream.ws_client_test + +Module contents +--------------- + +.. automodule:: kubernetes.aio.stream + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.stream.ws_client.rst b/doc/source/kubernetes.aio.stream.ws_client.rst new file mode 100644 index 0000000000..31ab889e2e --- /dev/null +++ b/doc/source/kubernetes.aio.stream.ws_client.rst @@ -0,0 +1,7 @@ +kubernetes.aio.stream.ws\_client module +======================================= + +.. automodule:: kubernetes.aio.stream.ws_client + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.stream.ws_client_test.rst b/doc/source/kubernetes.aio.stream.ws_client_test.rst new file mode 100644 index 0000000000..dc9fcf2baf --- /dev/null +++ b/doc/source/kubernetes.aio.stream.ws_client_test.rst @@ -0,0 +1,7 @@ +kubernetes.aio.stream.ws\_client\_test module +============================================= + +.. automodule:: kubernetes.aio.stream.ws_client_test + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.rst b/doc/source/kubernetes.aio.test.rst new file mode 100644 index 0000000000..3c7cfae8dc --- /dev/null +++ b/doc/source/kubernetes.aio.test.rst @@ -0,0 +1,83 @@ +kubernetes.aio.test package +=========================== + +Submodules +---------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.aio.test.test_admissionregistration_api + kubernetes.aio.test.test_admissionregistration_v1_api + kubernetes.aio.test.test_admissionregistration_v1alpha1_api + kubernetes.aio.test.test_admissionregistration_v1beta1_api + kubernetes.aio.test.test_apiextensions_api + kubernetes.aio.test.test_apiextensions_v1_api + kubernetes.aio.test.test_apiregistration_api + kubernetes.aio.test.test_apiregistration_v1_api + kubernetes.aio.test.test_apis_api + kubernetes.aio.test.test_apps_api + kubernetes.aio.test.test_apps_v1_api + kubernetes.aio.test.test_authentication_api + kubernetes.aio.test.test_authentication_v1_api + kubernetes.aio.test.test_authorization_api + kubernetes.aio.test.test_authorization_v1_api + kubernetes.aio.test.test_autoscaling_api + kubernetes.aio.test.test_autoscaling_v1_api + kubernetes.aio.test.test_autoscaling_v2_api + kubernetes.aio.test.test_batch_api + kubernetes.aio.test.test_batch_v1_api + kubernetes.aio.test.test_certificates_api + kubernetes.aio.test.test_certificates_v1_api + kubernetes.aio.test.test_certificates_v1alpha1_api + kubernetes.aio.test.test_certificates_v1beta1_api + kubernetes.aio.test.test_coordination_api + kubernetes.aio.test.test_coordination_v1_api + kubernetes.aio.test.test_coordination_v1alpha2_api + kubernetes.aio.test.test_coordination_v1beta1_api + kubernetes.aio.test.test_core_api + kubernetes.aio.test.test_core_v1_api + kubernetes.aio.test.test_custom_objects_api + kubernetes.aio.test.test_discovery_api + kubernetes.aio.test.test_discovery_v1_api + kubernetes.aio.test.test_events_api + kubernetes.aio.test.test_events_v1_api + kubernetes.aio.test.test_flowcontrol_apiserver_api + kubernetes.aio.test.test_flowcontrol_apiserver_v1_api + kubernetes.aio.test.test_generated_api + kubernetes.aio.test.test_internal_apiserver_api + kubernetes.aio.test.test_internal_apiserver_v1alpha1_api + kubernetes.aio.test.test_logs_api + kubernetes.aio.test.test_networking_api + kubernetes.aio.test.test_networking_v1_api + kubernetes.aio.test.test_networking_v1beta1_api + kubernetes.aio.test.test_node_api + kubernetes.aio.test.test_node_v1_api + kubernetes.aio.test.test_openid_api + kubernetes.aio.test.test_policy_api + kubernetes.aio.test.test_policy_v1_api + kubernetes.aio.test.test_rbac_authorization_api + kubernetes.aio.test.test_rbac_authorization_v1_api + kubernetes.aio.test.test_resource_api + kubernetes.aio.test.test_resource_v1_api + kubernetes.aio.test.test_resource_v1alpha3_api + kubernetes.aio.test.test_resource_v1beta1_api + kubernetes.aio.test.test_resource_v1beta2_api + kubernetes.aio.test.test_scheduling_api + kubernetes.aio.test.test_scheduling_v1_api + kubernetes.aio.test.test_scheduling_v1alpha2_api + kubernetes.aio.test.test_storage_api + kubernetes.aio.test.test_storage_v1_api + kubernetes.aio.test.test_storage_v1beta1_api + kubernetes.aio.test.test_storagemigration_api + kubernetes.aio.test.test_storagemigration_v1beta1_api + kubernetes.aio.test.test_version_api + kubernetes.aio.test.test_well_known_api + +Module contents +--------------- + +.. automodule:: kubernetes.aio.test + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_admissionregistration_api.rst b/doc/source/kubernetes.aio.test.test_admissionregistration_api.rst new file mode 100644 index 0000000000..bc875c10f7 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_admissionregistration_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_admissionregistration\_api module +=========================================================== + +.. automodule:: kubernetes.aio.test.test_admissionregistration_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_admissionregistration_v1_api.rst b/doc/source/kubernetes.aio.test.test_admissionregistration_v1_api.rst new file mode 100644 index 0000000000..fe7e0a33f8 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_admissionregistration_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_admissionregistration\_v1\_api module +=============================================================== + +.. automodule:: kubernetes.aio.test.test_admissionregistration_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_admissionregistration_v1alpha1_api.rst b/doc/source/kubernetes.aio.test.test_admissionregistration_v1alpha1_api.rst new file mode 100644 index 0000000000..47cb79fbfe --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_admissionregistration_v1alpha1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_admissionregistration\_v1alpha1\_api module +===================================================================== + +.. automodule:: kubernetes.aio.test.test_admissionregistration_v1alpha1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_admissionregistration_v1beta1_api.rst b/doc/source/kubernetes.aio.test.test_admissionregistration_v1beta1_api.rst new file mode 100644 index 0000000000..64cc512c18 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_admissionregistration_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_admissionregistration\_v1beta1\_api module +==================================================================== + +.. automodule:: kubernetes.aio.test.test_admissionregistration_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_apiextensions_api.rst b/doc/source/kubernetes.aio.test.test_apiextensions_api.rst new file mode 100644 index 0000000000..2cca5f0e51 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_apiextensions_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_apiextensions\_api module +=================================================== + +.. automodule:: kubernetes.aio.test.test_apiextensions_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_apiextensions_v1_api.rst b/doc/source/kubernetes.aio.test.test_apiextensions_v1_api.rst new file mode 100644 index 0000000000..e41ef78617 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_apiextensions_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_apiextensions\_v1\_api module +======================================================= + +.. automodule:: kubernetes.aio.test.test_apiextensions_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_apiregistration_api.rst b/doc/source/kubernetes.aio.test.test_apiregistration_api.rst new file mode 100644 index 0000000000..2fb1086749 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_apiregistration_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_apiregistration\_api module +===================================================== + +.. automodule:: kubernetes.aio.test.test_apiregistration_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_apiregistration_v1_api.rst b/doc/source/kubernetes.aio.test.test_apiregistration_v1_api.rst new file mode 100644 index 0000000000..891ba3e3a8 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_apiregistration_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_apiregistration\_v1\_api module +========================================================= + +.. automodule:: kubernetes.aio.test.test_apiregistration_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_apis_api.rst b/doc/source/kubernetes.aio.test.test_apis_api.rst new file mode 100644 index 0000000000..ee6a46f35b --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_apis_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_apis\_api module +========================================== + +.. automodule:: kubernetes.aio.test.test_apis_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_apps_api.rst b/doc/source/kubernetes.aio.test.test_apps_api.rst new file mode 100644 index 0000000000..34a35901bc --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_apps_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_apps\_api module +========================================== + +.. automodule:: kubernetes.aio.test.test_apps_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_apps_v1_api.rst b/doc/source/kubernetes.aio.test.test_apps_v1_api.rst new file mode 100644 index 0000000000..dede3d0415 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_apps_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_apps\_v1\_api module +============================================== + +.. automodule:: kubernetes.aio.test.test_apps_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_authentication_api.rst b/doc/source/kubernetes.aio.test.test_authentication_api.rst new file mode 100644 index 0000000000..c09ca14137 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_authentication_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_authentication\_api module +==================================================== + +.. automodule:: kubernetes.aio.test.test_authentication_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_authentication_v1_api.rst b/doc/source/kubernetes.aio.test.test_authentication_v1_api.rst new file mode 100644 index 0000000000..1fa0411752 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_authentication_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_authentication\_v1\_api module +======================================================== + +.. automodule:: kubernetes.aio.test.test_authentication_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_authorization_api.rst b/doc/source/kubernetes.aio.test.test_authorization_api.rst new file mode 100644 index 0000000000..9621e08a31 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_authorization_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_authorization\_api module +=================================================== + +.. automodule:: kubernetes.aio.test.test_authorization_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_authorization_v1_api.rst b/doc/source/kubernetes.aio.test.test_authorization_v1_api.rst new file mode 100644 index 0000000000..7b8a0b4d13 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_authorization_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_authorization\_v1\_api module +======================================================= + +.. automodule:: kubernetes.aio.test.test_authorization_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_autoscaling_api.rst b/doc/source/kubernetes.aio.test.test_autoscaling_api.rst new file mode 100644 index 0000000000..6b4de2c54e --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_autoscaling_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_autoscaling\_api module +================================================= + +.. automodule:: kubernetes.aio.test.test_autoscaling_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_autoscaling_v1_api.rst b/doc/source/kubernetes.aio.test.test_autoscaling_v1_api.rst new file mode 100644 index 0000000000..efab7e3248 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_autoscaling_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_autoscaling\_v1\_api module +===================================================== + +.. automodule:: kubernetes.aio.test.test_autoscaling_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_autoscaling_v2_api.rst b/doc/source/kubernetes.aio.test.test_autoscaling_v2_api.rst new file mode 100644 index 0000000000..eec947e8d2 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_autoscaling_v2_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_autoscaling\_v2\_api module +===================================================== + +.. automodule:: kubernetes.aio.test.test_autoscaling_v2_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_batch_api.rst b/doc/source/kubernetes.aio.test.test_batch_api.rst new file mode 100644 index 0000000000..039c1415ea --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_batch_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_batch\_api module +=========================================== + +.. automodule:: kubernetes.aio.test.test_batch_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_batch_v1_api.rst b/doc/source/kubernetes.aio.test.test_batch_v1_api.rst new file mode 100644 index 0000000000..f91650af77 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_batch_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_batch\_v1\_api module +=============================================== + +.. automodule:: kubernetes.aio.test.test_batch_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_certificates_api.rst b/doc/source/kubernetes.aio.test.test_certificates_api.rst new file mode 100644 index 0000000000..acc004f3ec --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_certificates_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_certificates\_api module +================================================== + +.. automodule:: kubernetes.aio.test.test_certificates_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_certificates_v1_api.rst b/doc/source/kubernetes.aio.test.test_certificates_v1_api.rst new file mode 100644 index 0000000000..5f192abad7 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_certificates_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_certificates\_v1\_api module +====================================================== + +.. automodule:: kubernetes.aio.test.test_certificates_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_certificates_v1alpha1_api.rst b/doc/source/kubernetes.aio.test.test_certificates_v1alpha1_api.rst new file mode 100644 index 0000000000..694e85db20 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_certificates_v1alpha1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_certificates\_v1alpha1\_api module +============================================================ + +.. automodule:: kubernetes.aio.test.test_certificates_v1alpha1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_certificates_v1beta1_api.rst b/doc/source/kubernetes.aio.test.test_certificates_v1beta1_api.rst new file mode 100644 index 0000000000..16cc562cc9 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_certificates_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_certificates\_v1beta1\_api module +=========================================================== + +.. automodule:: kubernetes.aio.test.test_certificates_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_coordination_api.rst b/doc/source/kubernetes.aio.test.test_coordination_api.rst new file mode 100644 index 0000000000..00781b17e6 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_coordination_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_coordination\_api module +================================================== + +.. automodule:: kubernetes.aio.test.test_coordination_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_coordination_v1_api.rst b/doc/source/kubernetes.aio.test.test_coordination_v1_api.rst new file mode 100644 index 0000000000..d21693e971 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_coordination_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_coordination\_v1\_api module +====================================================== + +.. automodule:: kubernetes.aio.test.test_coordination_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_coordination_v1alpha2_api.rst b/doc/source/kubernetes.aio.test.test_coordination_v1alpha2_api.rst new file mode 100644 index 0000000000..55b9516179 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_coordination_v1alpha2_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_coordination\_v1alpha2\_api module +============================================================ + +.. automodule:: kubernetes.aio.test.test_coordination_v1alpha2_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_coordination_v1beta1_api.rst b/doc/source/kubernetes.aio.test.test_coordination_v1beta1_api.rst new file mode 100644 index 0000000000..6ac4df5f25 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_coordination_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_coordination\_v1beta1\_api module +=========================================================== + +.. automodule:: kubernetes.aio.test.test_coordination_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_core_api.rst b/doc/source/kubernetes.aio.test.test_core_api.rst new file mode 100644 index 0000000000..12026e21d1 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_core_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_core\_api module +========================================== + +.. automodule:: kubernetes.aio.test.test_core_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_core_v1_api.rst b/doc/source/kubernetes.aio.test.test_core_v1_api.rst new file mode 100644 index 0000000000..a31f97dcb7 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_core_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_core\_v1\_api module +============================================== + +.. automodule:: kubernetes.aio.test.test_core_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_custom_objects_api.rst b/doc/source/kubernetes.aio.test.test_custom_objects_api.rst new file mode 100644 index 0000000000..9f6729c8a7 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_custom_objects_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_custom\_objects\_api module +===================================================== + +.. automodule:: kubernetes.aio.test.test_custom_objects_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_discovery_api.rst b/doc/source/kubernetes.aio.test.test_discovery_api.rst new file mode 100644 index 0000000000..6603e2aabd --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_discovery_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_discovery\_api module +=============================================== + +.. automodule:: kubernetes.aio.test.test_discovery_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_discovery_v1_api.rst b/doc/source/kubernetes.aio.test.test_discovery_v1_api.rst new file mode 100644 index 0000000000..5daf7dc5b4 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_discovery_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_discovery\_v1\_api module +=================================================== + +.. automodule:: kubernetes.aio.test.test_discovery_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_events_api.rst b/doc/source/kubernetes.aio.test.test_events_api.rst new file mode 100644 index 0000000000..bf8c086c25 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_events_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_events\_api module +============================================ + +.. automodule:: kubernetes.aio.test.test_events_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_events_v1_api.rst b/doc/source/kubernetes.aio.test.test_events_v1_api.rst new file mode 100644 index 0000000000..f0a0be49d0 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_events_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_events\_v1\_api module +================================================ + +.. automodule:: kubernetes.aio.test.test_events_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_flowcontrol_apiserver_api.rst b/doc/source/kubernetes.aio.test.test_flowcontrol_apiserver_api.rst new file mode 100644 index 0000000000..539dd3e8fa --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_flowcontrol_apiserver_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_flowcontrol\_apiserver\_api module +============================================================ + +.. automodule:: kubernetes.aio.test.test_flowcontrol_apiserver_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_flowcontrol_apiserver_v1_api.rst b/doc/source/kubernetes.aio.test.test_flowcontrol_apiserver_v1_api.rst new file mode 100644 index 0000000000..de31611fcf --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_flowcontrol_apiserver_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_flowcontrol\_apiserver\_v1\_api module +================================================================ + +.. automodule:: kubernetes.aio.test.test_flowcontrol_apiserver_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_generated_api.rst b/doc/source/kubernetes.aio.test.test_generated_api.rst new file mode 100644 index 0000000000..9260ac0f26 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_generated_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_generated\_api module +=============================================== + +.. automodule:: kubernetes.aio.test.test_generated_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_internal_apiserver_api.rst b/doc/source/kubernetes.aio.test.test_internal_apiserver_api.rst new file mode 100644 index 0000000000..11b9f3c7a6 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_internal_apiserver_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_internal\_apiserver\_api module +========================================================= + +.. automodule:: kubernetes.aio.test.test_internal_apiserver_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_internal_apiserver_v1alpha1_api.rst b/doc/source/kubernetes.aio.test.test_internal_apiserver_v1alpha1_api.rst new file mode 100644 index 0000000000..bb068ea801 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_internal_apiserver_v1alpha1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_internal\_apiserver\_v1alpha1\_api module +=================================================================== + +.. automodule:: kubernetes.aio.test.test_internal_apiserver_v1alpha1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_logs_api.rst b/doc/source/kubernetes.aio.test.test_logs_api.rst new file mode 100644 index 0000000000..9e5269adfa --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_logs_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_logs\_api module +========================================== + +.. automodule:: kubernetes.aio.test.test_logs_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_networking_api.rst b/doc/source/kubernetes.aio.test.test_networking_api.rst new file mode 100644 index 0000000000..134ca2768d --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_networking_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_networking\_api module +================================================ + +.. automodule:: kubernetes.aio.test.test_networking_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_networking_v1_api.rst b/doc/source/kubernetes.aio.test.test_networking_v1_api.rst new file mode 100644 index 0000000000..43233df72a --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_networking_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_networking\_v1\_api module +==================================================== + +.. automodule:: kubernetes.aio.test.test_networking_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_networking_v1beta1_api.rst b/doc/source/kubernetes.aio.test.test_networking_v1beta1_api.rst new file mode 100644 index 0000000000..8520a22b0d --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_networking_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_networking\_v1beta1\_api module +========================================================= + +.. automodule:: kubernetes.aio.test.test_networking_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_node_api.rst b/doc/source/kubernetes.aio.test.test_node_api.rst new file mode 100644 index 0000000000..358a91505b --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_node_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_node\_api module +========================================== + +.. automodule:: kubernetes.aio.test.test_node_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_node_v1_api.rst b/doc/source/kubernetes.aio.test.test_node_v1_api.rst new file mode 100644 index 0000000000..772413dc05 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_node_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_node\_v1\_api module +============================================== + +.. automodule:: kubernetes.aio.test.test_node_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_openid_api.rst b/doc/source/kubernetes.aio.test.test_openid_api.rst new file mode 100644 index 0000000000..ddeaf83ea7 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_openid_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_openid\_api module +============================================ + +.. automodule:: kubernetes.aio.test.test_openid_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_policy_api.rst b/doc/source/kubernetes.aio.test.test_policy_api.rst new file mode 100644 index 0000000000..8d55a5e8b3 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_policy_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_policy\_api module +============================================ + +.. automodule:: kubernetes.aio.test.test_policy_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_policy_v1_api.rst b/doc/source/kubernetes.aio.test.test_policy_v1_api.rst new file mode 100644 index 0000000000..49603c5eaa --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_policy_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_policy\_v1\_api module +================================================ + +.. automodule:: kubernetes.aio.test.test_policy_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_rbac_authorization_api.rst b/doc/source/kubernetes.aio.test.test_rbac_authorization_api.rst new file mode 100644 index 0000000000..971536e792 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_rbac_authorization_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_rbac\_authorization\_api module +========================================================= + +.. automodule:: kubernetes.aio.test.test_rbac_authorization_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_rbac_authorization_v1_api.rst b/doc/source/kubernetes.aio.test.test_rbac_authorization_v1_api.rst new file mode 100644 index 0000000000..e8c7f0c7ed --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_rbac_authorization_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_rbac\_authorization\_v1\_api module +============================================================= + +.. automodule:: kubernetes.aio.test.test_rbac_authorization_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_resource_api.rst b/doc/source/kubernetes.aio.test.test_resource_api.rst new file mode 100644 index 0000000000..cd5387dc9c --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_resource_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_resource\_api module +============================================== + +.. automodule:: kubernetes.aio.test.test_resource_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_resource_v1_api.rst b/doc/source/kubernetes.aio.test.test_resource_v1_api.rst new file mode 100644 index 0000000000..be38d297f9 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_resource_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_resource\_v1\_api module +================================================== + +.. automodule:: kubernetes.aio.test.test_resource_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_resource_v1alpha3_api.rst b/doc/source/kubernetes.aio.test.test_resource_v1alpha3_api.rst new file mode 100644 index 0000000000..8262a77925 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_resource_v1alpha3_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_resource\_v1alpha3\_api module +======================================================== + +.. automodule:: kubernetes.aio.test.test_resource_v1alpha3_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_resource_v1beta1_api.rst b/doc/source/kubernetes.aio.test.test_resource_v1beta1_api.rst new file mode 100644 index 0000000000..e05b8f7b4e --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_resource_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_resource\_v1beta1\_api module +======================================================= + +.. automodule:: kubernetes.aio.test.test_resource_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_resource_v1beta2_api.rst b/doc/source/kubernetes.aio.test.test_resource_v1beta2_api.rst new file mode 100644 index 0000000000..6ef832abd8 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_resource_v1beta2_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_resource\_v1beta2\_api module +======================================================= + +.. automodule:: kubernetes.aio.test.test_resource_v1beta2_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_scheduling_api.rst b/doc/source/kubernetes.aio.test.test_scheduling_api.rst new file mode 100644 index 0000000000..1b4de92c32 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_scheduling_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_scheduling\_api module +================================================ + +.. automodule:: kubernetes.aio.test.test_scheduling_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_scheduling_v1_api.rst b/doc/source/kubernetes.aio.test.test_scheduling_v1_api.rst new file mode 100644 index 0000000000..5f045cae98 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_scheduling_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_scheduling\_v1\_api module +==================================================== + +.. automodule:: kubernetes.aio.test.test_scheduling_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_scheduling_v1alpha2_api.rst b/doc/source/kubernetes.aio.test.test_scheduling_v1alpha2_api.rst new file mode 100644 index 0000000000..4af08ce915 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_scheduling_v1alpha2_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_scheduling\_v1alpha2\_api module +========================================================== + +.. automodule:: kubernetes.aio.test.test_scheduling_v1alpha2_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_storage_api.rst b/doc/source/kubernetes.aio.test.test_storage_api.rst new file mode 100644 index 0000000000..89280de7c3 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_storage_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_storage\_api module +============================================= + +.. automodule:: kubernetes.aio.test.test_storage_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_storage_v1_api.rst b/doc/source/kubernetes.aio.test.test_storage_v1_api.rst new file mode 100644 index 0000000000..9c8474dccd --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_storage_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_storage\_v1\_api module +================================================= + +.. automodule:: kubernetes.aio.test.test_storage_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_storage_v1beta1_api.rst b/doc/source/kubernetes.aio.test.test_storage_v1beta1_api.rst new file mode 100644 index 0000000000..abce2e36e3 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_storage_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_storage\_v1beta1\_api module +====================================================== + +.. automodule:: kubernetes.aio.test.test_storage_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_storagemigration_api.rst b/doc/source/kubernetes.aio.test.test_storagemigration_api.rst new file mode 100644 index 0000000000..9774067d62 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_storagemigration_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_storagemigration\_api module +====================================================== + +.. automodule:: kubernetes.aio.test.test_storagemigration_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_storagemigration_v1beta1_api.rst b/doc/source/kubernetes.aio.test.test_storagemigration_v1beta1_api.rst new file mode 100644 index 0000000000..f7888f245c --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_storagemigration_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_storagemigration\_v1beta1\_api module +=============================================================== + +.. automodule:: kubernetes.aio.test.test_storagemigration_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_version_api.rst b/doc/source/kubernetes.aio.test.test_version_api.rst new file mode 100644 index 0000000000..38e10eaf08 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_version_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_version\_api module +============================================= + +.. automodule:: kubernetes.aio.test.test_version_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.test.test_well_known_api.rst b/doc/source/kubernetes.aio.test.test_well_known_api.rst new file mode 100644 index 0000000000..5dbdeccec2 --- /dev/null +++ b/doc/source/kubernetes.aio.test.test_well_known_api.rst @@ -0,0 +1,7 @@ +kubernetes.aio.test.test\_well\_known\_api module +================================================= + +.. automodule:: kubernetes.aio.test.test_well_known_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.utils.create_from_yaml.rst b/doc/source/kubernetes.aio.utils.create_from_yaml.rst new file mode 100644 index 0000000000..758c0b3d28 --- /dev/null +++ b/doc/source/kubernetes.aio.utils.create_from_yaml.rst @@ -0,0 +1,7 @@ +kubernetes.aio.utils.create\_from\_yaml module +============================================== + +.. automodule:: kubernetes.aio.utils.create_from_yaml + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.utils.create_from_yaml_test.rst b/doc/source/kubernetes.aio.utils.create_from_yaml_test.rst new file mode 100644 index 0000000000..be4c941806 --- /dev/null +++ b/doc/source/kubernetes.aio.utils.create_from_yaml_test.rst @@ -0,0 +1,7 @@ +kubernetes.aio.utils.create\_from\_yaml\_test module +==================================================== + +.. automodule:: kubernetes.aio.utils.create_from_yaml_test + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.utils.retry.rst b/doc/source/kubernetes.aio.utils.retry.rst new file mode 100644 index 0000000000..2d6941099c --- /dev/null +++ b/doc/source/kubernetes.aio.utils.retry.rst @@ -0,0 +1,7 @@ +kubernetes.aio.utils.retry module +================================= + +.. automodule:: kubernetes.aio.utils.retry + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.utils.retry_test.rst b/doc/source/kubernetes.aio.utils.retry_test.rst new file mode 100644 index 0000000000..32dd952491 --- /dev/null +++ b/doc/source/kubernetes.aio.utils.retry_test.rst @@ -0,0 +1,7 @@ +kubernetes.aio.utils.retry\_test module +======================================= + +.. automodule:: kubernetes.aio.utils.retry_test + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.utils.rst b/doc/source/kubernetes.aio.utils.rst new file mode 100644 index 0000000000..b73068dc96 --- /dev/null +++ b/doc/source/kubernetes.aio.utils.rst @@ -0,0 +1,21 @@ +kubernetes.aio.utils package +============================ + +Submodules +---------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.aio.utils.create_from_yaml + kubernetes.aio.utils.create_from_yaml_test + kubernetes.aio.utils.retry + kubernetes.aio.utils.retry_test + +Module contents +--------------- + +.. automodule:: kubernetes.aio.utils + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.watch.rst b/doc/source/kubernetes.aio.watch.rst new file mode 100644 index 0000000000..a1537efdc2 --- /dev/null +++ b/doc/source/kubernetes.aio.watch.rst @@ -0,0 +1,19 @@ +kubernetes.aio.watch package +============================ + +Submodules +---------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.aio.watch.watch + kubernetes.aio.watch.watch_test + +Module contents +--------------- + +.. automodule:: kubernetes.aio.watch + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.watch.watch.rst b/doc/source/kubernetes.aio.watch.watch.rst new file mode 100644 index 0000000000..356d42c9ad --- /dev/null +++ b/doc/source/kubernetes.aio.watch.watch.rst @@ -0,0 +1,7 @@ +kubernetes.aio.watch.watch module +================================= + +.. automodule:: kubernetes.aio.watch.watch + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.aio.watch.watch_test.rst b/doc/source/kubernetes.aio.watch.watch_test.rst new file mode 100644 index 0000000000..b0599c8bf6 --- /dev/null +++ b/doc/source/kubernetes.aio.watch.watch_test.rst @@ -0,0 +1,7 @@ +kubernetes.aio.watch.watch\_test module +======================================= + +.. automodule:: kubernetes.aio.watch.watch_test + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.admissionregistration_api.rst b/doc/source/kubernetes.client.api.admissionregistration_api.rst new file mode 100644 index 0000000000..2c43928c56 --- /dev/null +++ b/doc/source/kubernetes.client.api.admissionregistration_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.admissionregistration\_api module +======================================================= + +.. automodule:: kubernetes.client.api.admissionregistration_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.admissionregistration_v1_api.rst b/doc/source/kubernetes.client.api.admissionregistration_v1_api.rst new file mode 100644 index 0000000000..ee67017bcd --- /dev/null +++ b/doc/source/kubernetes.client.api.admissionregistration_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.admissionregistration\_v1\_api module +=========================================================== + +.. automodule:: kubernetes.client.api.admissionregistration_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.admissionregistration_v1alpha1_api.rst b/doc/source/kubernetes.client.api.admissionregistration_v1alpha1_api.rst new file mode 100644 index 0000000000..d843bf024b --- /dev/null +++ b/doc/source/kubernetes.client.api.admissionregistration_v1alpha1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.admissionregistration\_v1alpha1\_api module +================================================================= + +.. automodule:: kubernetes.client.api.admissionregistration_v1alpha1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.admissionregistration_v1beta1_api.rst b/doc/source/kubernetes.client.api.admissionregistration_v1beta1_api.rst new file mode 100644 index 0000000000..fea707f53e --- /dev/null +++ b/doc/source/kubernetes.client.api.admissionregistration_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.admissionregistration\_v1beta1\_api module +================================================================ + +.. automodule:: kubernetes.client.api.admissionregistration_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.apiextensions_api.rst b/doc/source/kubernetes.client.api.apiextensions_api.rst new file mode 100644 index 0000000000..8a5a1803b6 --- /dev/null +++ b/doc/source/kubernetes.client.api.apiextensions_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.apiextensions\_api module +=============================================== + +.. automodule:: kubernetes.client.api.apiextensions_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.apiextensions_v1_api.rst b/doc/source/kubernetes.client.api.apiextensions_v1_api.rst new file mode 100644 index 0000000000..b7e934df9d --- /dev/null +++ b/doc/source/kubernetes.client.api.apiextensions_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.apiextensions\_v1\_api module +=================================================== + +.. automodule:: kubernetes.client.api.apiextensions_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.apiregistration_api.rst b/doc/source/kubernetes.client.api.apiregistration_api.rst new file mode 100644 index 0000000000..b010d862e8 --- /dev/null +++ b/doc/source/kubernetes.client.api.apiregistration_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.apiregistration\_api module +================================================= + +.. automodule:: kubernetes.client.api.apiregistration_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.apiregistration_v1_api.rst b/doc/source/kubernetes.client.api.apiregistration_v1_api.rst new file mode 100644 index 0000000000..a2a4b1325c --- /dev/null +++ b/doc/source/kubernetes.client.api.apiregistration_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.apiregistration\_v1\_api module +===================================================== + +.. automodule:: kubernetes.client.api.apiregistration_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.apis_api.rst b/doc/source/kubernetes.client.api.apis_api.rst new file mode 100644 index 0000000000..28c8a2625c --- /dev/null +++ b/doc/source/kubernetes.client.api.apis_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.apis\_api module +====================================== + +.. automodule:: kubernetes.client.api.apis_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.apps_api.rst b/doc/source/kubernetes.client.api.apps_api.rst new file mode 100644 index 0000000000..39f9d666d1 --- /dev/null +++ b/doc/source/kubernetes.client.api.apps_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.apps\_api module +====================================== + +.. automodule:: kubernetes.client.api.apps_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.apps_v1_api.rst b/doc/source/kubernetes.client.api.apps_v1_api.rst new file mode 100644 index 0000000000..df43820aa9 --- /dev/null +++ b/doc/source/kubernetes.client.api.apps_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.apps\_v1\_api module +========================================== + +.. automodule:: kubernetes.client.api.apps_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.authentication_api.rst b/doc/source/kubernetes.client.api.authentication_api.rst new file mode 100644 index 0000000000..f7e2d746ac --- /dev/null +++ b/doc/source/kubernetes.client.api.authentication_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.authentication\_api module +================================================ + +.. automodule:: kubernetes.client.api.authentication_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.authentication_v1_api.rst b/doc/source/kubernetes.client.api.authentication_v1_api.rst new file mode 100644 index 0000000000..f2edb911a6 --- /dev/null +++ b/doc/source/kubernetes.client.api.authentication_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.authentication\_v1\_api module +==================================================== + +.. automodule:: kubernetes.client.api.authentication_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.authorization_api.rst b/doc/source/kubernetes.client.api.authorization_api.rst new file mode 100644 index 0000000000..15c659eec8 --- /dev/null +++ b/doc/source/kubernetes.client.api.authorization_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.authorization\_api module +=============================================== + +.. automodule:: kubernetes.client.api.authorization_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.authorization_v1_api.rst b/doc/source/kubernetes.client.api.authorization_v1_api.rst new file mode 100644 index 0000000000..18cdbe15d3 --- /dev/null +++ b/doc/source/kubernetes.client.api.authorization_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.authorization\_v1\_api module +=================================================== + +.. automodule:: kubernetes.client.api.authorization_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.autoscaling_api.rst b/doc/source/kubernetes.client.api.autoscaling_api.rst new file mode 100644 index 0000000000..a45fc1bf4e --- /dev/null +++ b/doc/source/kubernetes.client.api.autoscaling_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.autoscaling\_api module +============================================= + +.. automodule:: kubernetes.client.api.autoscaling_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.autoscaling_v1_api.rst b/doc/source/kubernetes.client.api.autoscaling_v1_api.rst new file mode 100644 index 0000000000..7cb529bbe2 --- /dev/null +++ b/doc/source/kubernetes.client.api.autoscaling_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.autoscaling\_v1\_api module +================================================= + +.. automodule:: kubernetes.client.api.autoscaling_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.autoscaling_v2_api.rst b/doc/source/kubernetes.client.api.autoscaling_v2_api.rst new file mode 100644 index 0000000000..24d6fef229 --- /dev/null +++ b/doc/source/kubernetes.client.api.autoscaling_v2_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.autoscaling\_v2\_api module +================================================= + +.. automodule:: kubernetes.client.api.autoscaling_v2_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.batch_api.rst b/doc/source/kubernetes.client.api.batch_api.rst new file mode 100644 index 0000000000..4cfa03b56d --- /dev/null +++ b/doc/source/kubernetes.client.api.batch_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.batch\_api module +======================================= + +.. automodule:: kubernetes.client.api.batch_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.batch_v1_api.rst b/doc/source/kubernetes.client.api.batch_v1_api.rst new file mode 100644 index 0000000000..385a0b8ff8 --- /dev/null +++ b/doc/source/kubernetes.client.api.batch_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.batch\_v1\_api module +=========================================== + +.. automodule:: kubernetes.client.api.batch_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.certificates_api.rst b/doc/source/kubernetes.client.api.certificates_api.rst new file mode 100644 index 0000000000..0814bf275e --- /dev/null +++ b/doc/source/kubernetes.client.api.certificates_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.certificates\_api module +============================================== + +.. automodule:: kubernetes.client.api.certificates_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.certificates_v1_api.rst b/doc/source/kubernetes.client.api.certificates_v1_api.rst new file mode 100644 index 0000000000..42f20039c6 --- /dev/null +++ b/doc/source/kubernetes.client.api.certificates_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.certificates\_v1\_api module +================================================== + +.. automodule:: kubernetes.client.api.certificates_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.certificates_v1beta1_api.rst b/doc/source/kubernetes.client.api.certificates_v1beta1_api.rst new file mode 100644 index 0000000000..f9d1354c4a --- /dev/null +++ b/doc/source/kubernetes.client.api.certificates_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.certificates\_v1beta1\_api module +======================================================= + +.. automodule:: kubernetes.client.api.certificates_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.coordination_api.rst b/doc/source/kubernetes.client.api.coordination_api.rst new file mode 100644 index 0000000000..5eec1501ea --- /dev/null +++ b/doc/source/kubernetes.client.api.coordination_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.coordination\_api module +============================================== + +.. automodule:: kubernetes.client.api.coordination_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.coordination_v1_api.rst b/doc/source/kubernetes.client.api.coordination_v1_api.rst new file mode 100644 index 0000000000..38474a9510 --- /dev/null +++ b/doc/source/kubernetes.client.api.coordination_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.coordination\_v1\_api module +================================================== + +.. automodule:: kubernetes.client.api.coordination_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.coordination_v1alpha2_api.rst b/doc/source/kubernetes.client.api.coordination_v1alpha2_api.rst new file mode 100644 index 0000000000..746f10a042 --- /dev/null +++ b/doc/source/kubernetes.client.api.coordination_v1alpha2_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.coordination\_v1alpha2\_api module +======================================================== + +.. automodule:: kubernetes.client.api.coordination_v1alpha2_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.coordination_v1beta1_api.rst b/doc/source/kubernetes.client.api.coordination_v1beta1_api.rst new file mode 100644 index 0000000000..c5fc82b2fc --- /dev/null +++ b/doc/source/kubernetes.client.api.coordination_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.coordination\_v1beta1\_api module +======================================================= + +.. automodule:: kubernetes.client.api.coordination_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.core_api.rst b/doc/source/kubernetes.client.api.core_api.rst new file mode 100644 index 0000000000..222bb978ed --- /dev/null +++ b/doc/source/kubernetes.client.api.core_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.core\_api module +====================================== + +.. automodule:: kubernetes.client.api.core_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.core_v1_api.rst b/doc/source/kubernetes.client.api.core_v1_api.rst new file mode 100644 index 0000000000..af43403e56 --- /dev/null +++ b/doc/source/kubernetes.client.api.core_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.core\_v1\_api module +========================================== + +.. automodule:: kubernetes.client.api.core_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.custom_objects_api.rst b/doc/source/kubernetes.client.api.custom_objects_api.rst new file mode 100644 index 0000000000..54ee88d847 --- /dev/null +++ b/doc/source/kubernetes.client.api.custom_objects_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.custom\_objects\_api module +================================================= + +.. automodule:: kubernetes.client.api.custom_objects_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.discovery_api.rst b/doc/source/kubernetes.client.api.discovery_api.rst new file mode 100644 index 0000000000..e7ad03db8d --- /dev/null +++ b/doc/source/kubernetes.client.api.discovery_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.discovery\_api module +=========================================== + +.. automodule:: kubernetes.client.api.discovery_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.discovery_v1_api.rst b/doc/source/kubernetes.client.api.discovery_v1_api.rst new file mode 100644 index 0000000000..45a4471d0a --- /dev/null +++ b/doc/source/kubernetes.client.api.discovery_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.discovery\_v1\_api module +=============================================== + +.. automodule:: kubernetes.client.api.discovery_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.events_api.rst b/doc/source/kubernetes.client.api.events_api.rst new file mode 100644 index 0000000000..bc26e63d49 --- /dev/null +++ b/doc/source/kubernetes.client.api.events_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.events\_api module +======================================== + +.. automodule:: kubernetes.client.api.events_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.events_v1_api.rst b/doc/source/kubernetes.client.api.events_v1_api.rst new file mode 100644 index 0000000000..d37cbdd944 --- /dev/null +++ b/doc/source/kubernetes.client.api.events_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.events\_v1\_api module +============================================ + +.. automodule:: kubernetes.client.api.events_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.flowcontrol_apiserver_api.rst b/doc/source/kubernetes.client.api.flowcontrol_apiserver_api.rst new file mode 100644 index 0000000000..800c2f3d38 --- /dev/null +++ b/doc/source/kubernetes.client.api.flowcontrol_apiserver_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.flowcontrol\_apiserver\_api module +======================================================== + +.. automodule:: kubernetes.client.api.flowcontrol_apiserver_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.flowcontrol_apiserver_v1_api.rst b/doc/source/kubernetes.client.api.flowcontrol_apiserver_v1_api.rst new file mode 100644 index 0000000000..39df599bf2 --- /dev/null +++ b/doc/source/kubernetes.client.api.flowcontrol_apiserver_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.flowcontrol\_apiserver\_v1\_api module +============================================================ + +.. automodule:: kubernetes.client.api.flowcontrol_apiserver_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.internal_apiserver_api.rst b/doc/source/kubernetes.client.api.internal_apiserver_api.rst new file mode 100644 index 0000000000..9b4b695be8 --- /dev/null +++ b/doc/source/kubernetes.client.api.internal_apiserver_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.internal\_apiserver\_api module +===================================================== + +.. automodule:: kubernetes.client.api.internal_apiserver_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.internal_apiserver_v1alpha1_api.rst b/doc/source/kubernetes.client.api.internal_apiserver_v1alpha1_api.rst new file mode 100644 index 0000000000..78c1242646 --- /dev/null +++ b/doc/source/kubernetes.client.api.internal_apiserver_v1alpha1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.internal\_apiserver\_v1alpha1\_api module +=============================================================== + +.. automodule:: kubernetes.client.api.internal_apiserver_v1alpha1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.lifecycle_api.rst b/doc/source/kubernetes.client.api.lifecycle_api.rst new file mode 100644 index 0000000000..75b3a009d4 --- /dev/null +++ b/doc/source/kubernetes.client.api.lifecycle_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.lifecycle\_api module +=========================================== + +.. automodule:: kubernetes.client.api.lifecycle_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.lifecycle_v1alpha1_api.rst b/doc/source/kubernetes.client.api.lifecycle_v1alpha1_api.rst new file mode 100644 index 0000000000..4236df11b0 --- /dev/null +++ b/doc/source/kubernetes.client.api.lifecycle_v1alpha1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.lifecycle\_v1alpha1\_api module +===================================================== + +.. automodule:: kubernetes.client.api.lifecycle_v1alpha1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.logs_api.rst b/doc/source/kubernetes.client.api.logs_api.rst new file mode 100644 index 0000000000..1ca3d4f148 --- /dev/null +++ b/doc/source/kubernetes.client.api.logs_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.logs\_api module +====================================== + +.. automodule:: kubernetes.client.api.logs_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.networking_api.rst b/doc/source/kubernetes.client.api.networking_api.rst new file mode 100644 index 0000000000..1931c33894 --- /dev/null +++ b/doc/source/kubernetes.client.api.networking_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.networking\_api module +============================================ + +.. automodule:: kubernetes.client.api.networking_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.networking_v1_api.rst b/doc/source/kubernetes.client.api.networking_v1_api.rst new file mode 100644 index 0000000000..ef58355253 --- /dev/null +++ b/doc/source/kubernetes.client.api.networking_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.networking\_v1\_api module +================================================ + +.. automodule:: kubernetes.client.api.networking_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.node_api.rst b/doc/source/kubernetes.client.api.node_api.rst new file mode 100644 index 0000000000..8afed4ecdb --- /dev/null +++ b/doc/source/kubernetes.client.api.node_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.node\_api module +====================================== + +.. automodule:: kubernetes.client.api.node_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.node_v1_api.rst b/doc/source/kubernetes.client.api.node_v1_api.rst new file mode 100644 index 0000000000..fd581c025c --- /dev/null +++ b/doc/source/kubernetes.client.api.node_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.node\_v1\_api module +========================================== + +.. automodule:: kubernetes.client.api.node_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.openid_api.rst b/doc/source/kubernetes.client.api.openid_api.rst new file mode 100644 index 0000000000..3fa64773be --- /dev/null +++ b/doc/source/kubernetes.client.api.openid_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.openid\_api module +======================================== + +.. automodule:: kubernetes.client.api.openid_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.policy_api.rst b/doc/source/kubernetes.client.api.policy_api.rst new file mode 100644 index 0000000000..266e86fd6e --- /dev/null +++ b/doc/source/kubernetes.client.api.policy_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.policy\_api module +======================================== + +.. automodule:: kubernetes.client.api.policy_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.policy_v1_api.rst b/doc/source/kubernetes.client.api.policy_v1_api.rst new file mode 100644 index 0000000000..08b688bd3f --- /dev/null +++ b/doc/source/kubernetes.client.api.policy_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.policy\_v1\_api module +============================================ + +.. automodule:: kubernetes.client.api.policy_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.rbac_authorization_api.rst b/doc/source/kubernetes.client.api.rbac_authorization_api.rst new file mode 100644 index 0000000000..a9971c9ca8 --- /dev/null +++ b/doc/source/kubernetes.client.api.rbac_authorization_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.rbac\_authorization\_api module +===================================================== + +.. automodule:: kubernetes.client.api.rbac_authorization_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.rbac_authorization_v1_api.rst b/doc/source/kubernetes.client.api.rbac_authorization_v1_api.rst new file mode 100644 index 0000000000..afa2061a8f --- /dev/null +++ b/doc/source/kubernetes.client.api.rbac_authorization_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.rbac\_authorization\_v1\_api module +========================================================= + +.. automodule:: kubernetes.client.api.rbac_authorization_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.resource_api.rst b/doc/source/kubernetes.client.api.resource_api.rst new file mode 100644 index 0000000000..eb1a02a848 --- /dev/null +++ b/doc/source/kubernetes.client.api.resource_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.resource\_api module +========================================== + +.. automodule:: kubernetes.client.api.resource_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.resource_v1_api.rst b/doc/source/kubernetes.client.api.resource_v1_api.rst new file mode 100644 index 0000000000..79781f79b0 --- /dev/null +++ b/doc/source/kubernetes.client.api.resource_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.resource\_v1\_api module +============================================== + +.. automodule:: kubernetes.client.api.resource_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.resource_v1alpha3_api.rst b/doc/source/kubernetes.client.api.resource_v1alpha3_api.rst new file mode 100644 index 0000000000..7ebf9105bc --- /dev/null +++ b/doc/source/kubernetes.client.api.resource_v1alpha3_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.resource\_v1alpha3\_api module +==================================================== + +.. automodule:: kubernetes.client.api.resource_v1alpha3_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.resource_v1beta1_api.rst b/doc/source/kubernetes.client.api.resource_v1beta1_api.rst new file mode 100644 index 0000000000..8cb4faff5a --- /dev/null +++ b/doc/source/kubernetes.client.api.resource_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.resource\_v1beta1\_api module +=================================================== + +.. automodule:: kubernetes.client.api.resource_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.resource_v1beta2_api.rst b/doc/source/kubernetes.client.api.resource_v1beta2_api.rst new file mode 100644 index 0000000000..ac8ea792db --- /dev/null +++ b/doc/source/kubernetes.client.api.resource_v1beta2_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.resource\_v1beta2\_api module +=================================================== + +.. automodule:: kubernetes.client.api.resource_v1beta2_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.rst b/doc/source/kubernetes.client.api.rst new file mode 100644 index 0000000000..c29bb43f20 --- /dev/null +++ b/doc/source/kubernetes.client.api.rst @@ -0,0 +1,83 @@ +kubernetes.client.api package +============================= + +Submodules +---------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.client.api.admissionregistration_api + kubernetes.client.api.admissionregistration_v1_api + kubernetes.client.api.admissionregistration_v1alpha1_api + kubernetes.client.api.admissionregistration_v1beta1_api + kubernetes.client.api.apiextensions_api + kubernetes.client.api.apiextensions_v1_api + kubernetes.client.api.apiregistration_api + kubernetes.client.api.apiregistration_v1_api + kubernetes.client.api.apis_api + kubernetes.client.api.apps_api + kubernetes.client.api.apps_v1_api + kubernetes.client.api.authentication_api + kubernetes.client.api.authentication_v1_api + kubernetes.client.api.authorization_api + kubernetes.client.api.authorization_v1_api + kubernetes.client.api.autoscaling_api + kubernetes.client.api.autoscaling_v1_api + kubernetes.client.api.autoscaling_v2_api + kubernetes.client.api.batch_api + kubernetes.client.api.batch_v1_api + kubernetes.client.api.certificates_api + kubernetes.client.api.certificates_v1_api + kubernetes.client.api.certificates_v1beta1_api + kubernetes.client.api.coordination_api + kubernetes.client.api.coordination_v1_api + kubernetes.client.api.coordination_v1alpha2_api + kubernetes.client.api.coordination_v1beta1_api + kubernetes.client.api.core_api + kubernetes.client.api.core_v1_api + kubernetes.client.api.custom_objects_api + kubernetes.client.api.discovery_api + kubernetes.client.api.discovery_v1_api + kubernetes.client.api.events_api + kubernetes.client.api.events_v1_api + kubernetes.client.api.flowcontrol_apiserver_api + kubernetes.client.api.flowcontrol_apiserver_v1_api + kubernetes.client.api.internal_apiserver_api + kubernetes.client.api.internal_apiserver_v1alpha1_api + kubernetes.client.api.lifecycle_api + kubernetes.client.api.lifecycle_v1alpha1_api + kubernetes.client.api.logs_api + kubernetes.client.api.networking_api + kubernetes.client.api.networking_v1_api + kubernetes.client.api.node_api + kubernetes.client.api.node_v1_api + kubernetes.client.api.openid_api + kubernetes.client.api.policy_api + kubernetes.client.api.policy_v1_api + kubernetes.client.api.rbac_authorization_api + kubernetes.client.api.rbac_authorization_v1_api + kubernetes.client.api.resource_api + kubernetes.client.api.resource_v1_api + kubernetes.client.api.resource_v1alpha3_api + kubernetes.client.api.resource_v1beta1_api + kubernetes.client.api.resource_v1beta2_api + kubernetes.client.api.scheduling_api + kubernetes.client.api.scheduling_v1_api + kubernetes.client.api.scheduling_v1alpha3_api + kubernetes.client.api.scheduling_v1beta1_api + kubernetes.client.api.storage_api + kubernetes.client.api.storage_v1_api + kubernetes.client.api.storagemigration_api + kubernetes.client.api.storagemigration_v1_api + kubernetes.client.api.storagemigration_v1beta1_api + kubernetes.client.api.version_api + kubernetes.client.api.well_known_api + +Module contents +--------------- + +.. automodule:: kubernetes.client.api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.scheduling_api.rst b/doc/source/kubernetes.client.api.scheduling_api.rst new file mode 100644 index 0000000000..447e55c1c9 --- /dev/null +++ b/doc/source/kubernetes.client.api.scheduling_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.scheduling\_api module +============================================ + +.. automodule:: kubernetes.client.api.scheduling_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.scheduling_v1_api.rst b/doc/source/kubernetes.client.api.scheduling_v1_api.rst new file mode 100644 index 0000000000..f2824162a8 --- /dev/null +++ b/doc/source/kubernetes.client.api.scheduling_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.scheduling\_v1\_api module +================================================ + +.. automodule:: kubernetes.client.api.scheduling_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.scheduling_v1alpha3_api.rst b/doc/source/kubernetes.client.api.scheduling_v1alpha3_api.rst new file mode 100644 index 0000000000..e7b4ebbdc9 --- /dev/null +++ b/doc/source/kubernetes.client.api.scheduling_v1alpha3_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.scheduling\_v1alpha3\_api module +====================================================== + +.. automodule:: kubernetes.client.api.scheduling_v1alpha3_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.scheduling_v1beta1_api.rst b/doc/source/kubernetes.client.api.scheduling_v1beta1_api.rst new file mode 100644 index 0000000000..b52d07f5b5 --- /dev/null +++ b/doc/source/kubernetes.client.api.scheduling_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.scheduling\_v1beta1\_api module +===================================================== + +.. automodule:: kubernetes.client.api.scheduling_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.storage_api.rst b/doc/source/kubernetes.client.api.storage_api.rst new file mode 100644 index 0000000000..dce0b11f5b --- /dev/null +++ b/doc/source/kubernetes.client.api.storage_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.storage\_api module +========================================= + +.. automodule:: kubernetes.client.api.storage_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.storage_v1_api.rst b/doc/source/kubernetes.client.api.storage_v1_api.rst new file mode 100644 index 0000000000..e3344d20e0 --- /dev/null +++ b/doc/source/kubernetes.client.api.storage_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.storage\_v1\_api module +============================================= + +.. automodule:: kubernetes.client.api.storage_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.storagemigration_api.rst b/doc/source/kubernetes.client.api.storagemigration_api.rst new file mode 100644 index 0000000000..6635a6d258 --- /dev/null +++ b/doc/source/kubernetes.client.api.storagemigration_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.storagemigration\_api module +================================================== + +.. automodule:: kubernetes.client.api.storagemigration_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.storagemigration_v1_api.rst b/doc/source/kubernetes.client.api.storagemigration_v1_api.rst new file mode 100644 index 0000000000..6d8783a72d --- /dev/null +++ b/doc/source/kubernetes.client.api.storagemigration_v1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.storagemigration\_v1\_api module +====================================================== + +.. automodule:: kubernetes.client.api.storagemigration_v1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.storagemigration_v1beta1_api.rst b/doc/source/kubernetes.client.api.storagemigration_v1beta1_api.rst new file mode 100644 index 0000000000..0e3551edcd --- /dev/null +++ b/doc/source/kubernetes.client.api.storagemigration_v1beta1_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.storagemigration\_v1beta1\_api module +=========================================================== + +.. automodule:: kubernetes.client.api.storagemigration_v1beta1_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.version_api.rst b/doc/source/kubernetes.client.api.version_api.rst new file mode 100644 index 0000000000..e7998c5227 --- /dev/null +++ b/doc/source/kubernetes.client.api.version_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.version\_api module +========================================= + +.. automodule:: kubernetes.client.api.version_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api.well_known_api.rst b/doc/source/kubernetes.client.api.well_known_api.rst new file mode 100644 index 0000000000..d7383290ba --- /dev/null +++ b/doc/source/kubernetes.client.api.well_known_api.rst @@ -0,0 +1,7 @@ +kubernetes.client.api.well\_known\_api module +============================================= + +.. automodule:: kubernetes.client.api.well_known_api + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api_client.rst b/doc/source/kubernetes.client.api_client.rst new file mode 100644 index 0000000000..f88163764b --- /dev/null +++ b/doc/source/kubernetes.client.api_client.rst @@ -0,0 +1,7 @@ +kubernetes.client.api\_client module +==================================== + +.. automodule:: kubernetes.client.api_client + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.api_response.rst b/doc/source/kubernetes.client.api_response.rst new file mode 100644 index 0000000000..34b180631a --- /dev/null +++ b/doc/source/kubernetes.client.api_response.rst @@ -0,0 +1,7 @@ +kubernetes.client.api\_response module +====================================== + +.. automodule:: kubernetes.client.api_response + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.apis.rst b/doc/source/kubernetes.client.apis.rst new file mode 100644 index 0000000000..32dec66eb7 --- /dev/null +++ b/doc/source/kubernetes.client.apis.rst @@ -0,0 +1,10 @@ +kubernetes.client.apis package +============================== + +Module contents +--------------- + +.. automodule:: kubernetes.client.apis + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.configuration.rst b/doc/source/kubernetes.client.configuration.rst new file mode 100644 index 0000000000..2b382a859e --- /dev/null +++ b/doc/source/kubernetes.client.configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.configuration module +====================================== + +.. automodule:: kubernetes.client.configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.exceptions.rst b/doc/source/kubernetes.client.exceptions.rst new file mode 100644 index 0000000000..6318cbe20c --- /dev/null +++ b/doc/source/kubernetes.client.exceptions.rst @@ -0,0 +1,7 @@ +kubernetes.client.exceptions module +=================================== + +.. automodule:: kubernetes.client.exceptions + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.admissionregistration_v1_service_reference.rst b/doc/source/kubernetes.client.models.admissionregistration_v1_service_reference.rst new file mode 100644 index 0000000000..0dce7310a2 --- /dev/null +++ b/doc/source/kubernetes.client.models.admissionregistration_v1_service_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.admissionregistration\_v1\_service\_reference module +============================================================================= + +.. automodule:: kubernetes.client.models.admissionregistration_v1_service_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.admissionregistration_v1_webhook_client_config.rst b/doc/source/kubernetes.client.models.admissionregistration_v1_webhook_client_config.rst new file mode 100644 index 0000000000..b5bc3b6bae --- /dev/null +++ b/doc/source/kubernetes.client.models.admissionregistration_v1_webhook_client_config.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.admissionregistration\_v1\_webhook\_client\_config module +================================================================================== + +.. automodule:: kubernetes.client.models.admissionregistration_v1_webhook_client_config + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.apiextensions_v1_service_reference.rst b/doc/source/kubernetes.client.models.apiextensions_v1_service_reference.rst new file mode 100644 index 0000000000..184d616666 --- /dev/null +++ b/doc/source/kubernetes.client.models.apiextensions_v1_service_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.apiextensions\_v1\_service\_reference module +===================================================================== + +.. automodule:: kubernetes.client.models.apiextensions_v1_service_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.apiextensions_v1_webhook_client_config.rst b/doc/source/kubernetes.client.models.apiextensions_v1_webhook_client_config.rst new file mode 100644 index 0000000000..2b2efa4f20 --- /dev/null +++ b/doc/source/kubernetes.client.models.apiextensions_v1_webhook_client_config.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.apiextensions\_v1\_webhook\_client\_config module +========================================================================== + +.. automodule:: kubernetes.client.models.apiextensions_v1_webhook_client_config + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.apiregistration_v1_service_reference.rst b/doc/source/kubernetes.client.models.apiregistration_v1_service_reference.rst new file mode 100644 index 0000000000..b78058b619 --- /dev/null +++ b/doc/source/kubernetes.client.models.apiregistration_v1_service_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.apiregistration\_v1\_service\_reference module +======================================================================= + +.. automodule:: kubernetes.client.models.apiregistration_v1_service_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.authentication_v1_token_request.rst b/doc/source/kubernetes.client.models.authentication_v1_token_request.rst new file mode 100644 index 0000000000..6dc8fdb90b --- /dev/null +++ b/doc/source/kubernetes.client.models.authentication_v1_token_request.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.authentication\_v1\_token\_request module +================================================================== + +.. automodule:: kubernetes.client.models.authentication_v1_token_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.core_v1_endpoint_port.rst b/doc/source/kubernetes.client.models.core_v1_endpoint_port.rst new file mode 100644 index 0000000000..2b37c47fa6 --- /dev/null +++ b/doc/source/kubernetes.client.models.core_v1_endpoint_port.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.core\_v1\_endpoint\_port module +======================================================== + +.. automodule:: kubernetes.client.models.core_v1_endpoint_port + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.core_v1_event.rst b/doc/source/kubernetes.client.models.core_v1_event.rst new file mode 100644 index 0000000000..9742c568bf --- /dev/null +++ b/doc/source/kubernetes.client.models.core_v1_event.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.core\_v1\_event module +=============================================== + +.. automodule:: kubernetes.client.models.core_v1_event + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.core_v1_event_list.rst b/doc/source/kubernetes.client.models.core_v1_event_list.rst new file mode 100644 index 0000000000..6dca53732e --- /dev/null +++ b/doc/source/kubernetes.client.models.core_v1_event_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.core\_v1\_event\_list module +===================================================== + +.. automodule:: kubernetes.client.models.core_v1_event_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.core_v1_event_series.rst b/doc/source/kubernetes.client.models.core_v1_event_series.rst new file mode 100644 index 0000000000..ac631dde9c --- /dev/null +++ b/doc/source/kubernetes.client.models.core_v1_event_series.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.core\_v1\_event\_series module +======================================================= + +.. automodule:: kubernetes.client.models.core_v1_event_series + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.core_v1_resource_claim.rst b/doc/source/kubernetes.client.models.core_v1_resource_claim.rst new file mode 100644 index 0000000000..d901bffb54 --- /dev/null +++ b/doc/source/kubernetes.client.models.core_v1_resource_claim.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.core\_v1\_resource\_claim module +========================================================= + +.. automodule:: kubernetes.client.models.core_v1_resource_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.discovery_v1_endpoint_port.rst b/doc/source/kubernetes.client.models.discovery_v1_endpoint_port.rst new file mode 100644 index 0000000000..943a3f80db --- /dev/null +++ b/doc/source/kubernetes.client.models.discovery_v1_endpoint_port.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.discovery\_v1\_endpoint\_port module +============================================================= + +.. automodule:: kubernetes.client.models.discovery_v1_endpoint_port + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.events_v1_event.rst b/doc/source/kubernetes.client.models.events_v1_event.rst new file mode 100644 index 0000000000..b500e534c0 --- /dev/null +++ b/doc/source/kubernetes.client.models.events_v1_event.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.events\_v1\_event module +================================================= + +.. automodule:: kubernetes.client.models.events_v1_event + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.events_v1_event_list.rst b/doc/source/kubernetes.client.models.events_v1_event_list.rst new file mode 100644 index 0000000000..0f6f1861f0 --- /dev/null +++ b/doc/source/kubernetes.client.models.events_v1_event_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.events\_v1\_event\_list module +======================================================= + +.. automodule:: kubernetes.client.models.events_v1_event_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.events_v1_event_series.rst b/doc/source/kubernetes.client.models.events_v1_event_series.rst new file mode 100644 index 0000000000..b1c666c1f7 --- /dev/null +++ b/doc/source/kubernetes.client.models.events_v1_event_series.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.events\_v1\_event\_series module +========================================================= + +.. automodule:: kubernetes.client.models.events_v1_event_series + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.flowcontrol_v1_subject.rst b/doc/source/kubernetes.client.models.flowcontrol_v1_subject.rst new file mode 100644 index 0000000000..5032eb81d5 --- /dev/null +++ b/doc/source/kubernetes.client.models.flowcontrol_v1_subject.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.flowcontrol\_v1\_subject module +======================================================== + +.. automodule:: kubernetes.client.models.flowcontrol_v1_subject + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.rbac_v1_subject.rst b/doc/source/kubernetes.client.models.rbac_v1_subject.rst new file mode 100644 index 0000000000..336896db7c --- /dev/null +++ b/doc/source/kubernetes.client.models.rbac_v1_subject.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.rbac\_v1\_subject module +================================================= + +.. automodule:: kubernetes.client.models.rbac_v1_subject + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.resource_v1_resource_claim.rst b/doc/source/kubernetes.client.models.resource_v1_resource_claim.rst new file mode 100644 index 0000000000..24e009bbbf --- /dev/null +++ b/doc/source/kubernetes.client.models.resource_v1_resource_claim.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.resource\_v1\_resource\_claim module +============================================================= + +.. automodule:: kubernetes.client.models.resource_v1_resource_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.rst b/doc/source/kubernetes.client.models.rst new file mode 100644 index 0000000000..08cdda902e --- /dev/null +++ b/doc/source/kubernetes.client.models.rst @@ -0,0 +1,862 @@ +kubernetes.client.models package +================================ + +Submodules +---------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.client.models.admissionregistration_v1_service_reference + kubernetes.client.models.admissionregistration_v1_webhook_client_config + kubernetes.client.models.apiextensions_v1_service_reference + kubernetes.client.models.apiextensions_v1_webhook_client_config + kubernetes.client.models.apiregistration_v1_service_reference + kubernetes.client.models.authentication_v1_token_request + kubernetes.client.models.core_v1_endpoint_port + kubernetes.client.models.core_v1_event + kubernetes.client.models.core_v1_event_list + kubernetes.client.models.core_v1_event_series + kubernetes.client.models.core_v1_resource_claim + kubernetes.client.models.discovery_v1_endpoint_port + kubernetes.client.models.events_v1_event + kubernetes.client.models.events_v1_event_list + kubernetes.client.models.events_v1_event_series + kubernetes.client.models.flowcontrol_v1_subject + kubernetes.client.models.rbac_v1_subject + kubernetes.client.models.resource_v1_resource_claim + kubernetes.client.models.storage_v1_token_request + kubernetes.client.models.v1_affinity + kubernetes.client.models.v1_aggregation_rule + kubernetes.client.models.v1_allocated_device_status + kubernetes.client.models.v1_allocation_result + kubernetes.client.models.v1_api_group + kubernetes.client.models.v1_api_group_list + kubernetes.client.models.v1_api_resource + kubernetes.client.models.v1_api_resource_list + kubernetes.client.models.v1_api_service + kubernetes.client.models.v1_api_service_condition + kubernetes.client.models.v1_api_service_list + kubernetes.client.models.v1_api_service_spec + kubernetes.client.models.v1_api_service_status + kubernetes.client.models.v1_api_versions + kubernetes.client.models.v1_app_armor_profile + kubernetes.client.models.v1_apply_configuration + kubernetes.client.models.v1_attached_volume + kubernetes.client.models.v1_audit_annotation + kubernetes.client.models.v1_aws_elastic_block_store_volume_source + kubernetes.client.models.v1_azure_disk_volume_source + kubernetes.client.models.v1_azure_file_persistent_volume_source + kubernetes.client.models.v1_azure_file_volume_source + kubernetes.client.models.v1_binding + kubernetes.client.models.v1_bound_object_reference + kubernetes.client.models.v1_capabilities + kubernetes.client.models.v1_capacity_request_policy + kubernetes.client.models.v1_capacity_request_policy_range + kubernetes.client.models.v1_capacity_requirements + kubernetes.client.models.v1_cel_device_selector + kubernetes.client.models.v1_ceph_fs_persistent_volume_source + kubernetes.client.models.v1_ceph_fs_volume_source + kubernetes.client.models.v1_certificate_signing_request + kubernetes.client.models.v1_certificate_signing_request_condition + kubernetes.client.models.v1_certificate_signing_request_list + kubernetes.client.models.v1_certificate_signing_request_spec + kubernetes.client.models.v1_certificate_signing_request_status + kubernetes.client.models.v1_cinder_persistent_volume_source + kubernetes.client.models.v1_cinder_volume_source + kubernetes.client.models.v1_client_ip_config + kubernetes.client.models.v1_cluster_role + kubernetes.client.models.v1_cluster_role_binding + kubernetes.client.models.v1_cluster_role_binding_list + kubernetes.client.models.v1_cluster_role_list + kubernetes.client.models.v1_cluster_trust_bundle + kubernetes.client.models.v1_cluster_trust_bundle_list + kubernetes.client.models.v1_cluster_trust_bundle_projection + kubernetes.client.models.v1_cluster_trust_bundle_spec + kubernetes.client.models.v1_component_condition + kubernetes.client.models.v1_component_status + kubernetes.client.models.v1_component_status_list + kubernetes.client.models.v1_condition + kubernetes.client.models.v1_config_map + kubernetes.client.models.v1_config_map_env_source + kubernetes.client.models.v1_config_map_key_selector + kubernetes.client.models.v1_config_map_list + kubernetes.client.models.v1_config_map_node_config_source + kubernetes.client.models.v1_config_map_projection + kubernetes.client.models.v1_config_map_volume_source + kubernetes.client.models.v1_container + kubernetes.client.models.v1_container_extended_resource_request + kubernetes.client.models.v1_container_image + kubernetes.client.models.v1_container_port + kubernetes.client.models.v1_container_resize_policy + kubernetes.client.models.v1_container_restart_rule + kubernetes.client.models.v1_container_restart_rule_on_exit_codes + kubernetes.client.models.v1_container_state + kubernetes.client.models.v1_container_state_running + kubernetes.client.models.v1_container_state_terminated + kubernetes.client.models.v1_container_state_waiting + kubernetes.client.models.v1_container_status + kubernetes.client.models.v1_container_user + kubernetes.client.models.v1_controller_revision + kubernetes.client.models.v1_controller_revision_list + kubernetes.client.models.v1_counter + kubernetes.client.models.v1_counter_set + kubernetes.client.models.v1_cron_job + kubernetes.client.models.v1_cron_job_list + kubernetes.client.models.v1_cron_job_spec + kubernetes.client.models.v1_cron_job_status + kubernetes.client.models.v1_cross_version_object_reference + kubernetes.client.models.v1_csi_driver + kubernetes.client.models.v1_csi_driver_list + kubernetes.client.models.v1_csi_driver_spec + kubernetes.client.models.v1_csi_node + kubernetes.client.models.v1_csi_node_driver + kubernetes.client.models.v1_csi_node_list + kubernetes.client.models.v1_csi_node_spec + kubernetes.client.models.v1_csi_node_status + kubernetes.client.models.v1_csi_persistent_volume_source + kubernetes.client.models.v1_csi_storage_capacity + kubernetes.client.models.v1_csi_storage_capacity_list + kubernetes.client.models.v1_csi_volume_source + kubernetes.client.models.v1_custom_resource_column_definition + kubernetes.client.models.v1_custom_resource_conversion + kubernetes.client.models.v1_custom_resource_definition + kubernetes.client.models.v1_custom_resource_definition_condition + kubernetes.client.models.v1_custom_resource_definition_list + kubernetes.client.models.v1_custom_resource_definition_names + kubernetes.client.models.v1_custom_resource_definition_spec + kubernetes.client.models.v1_custom_resource_definition_status + kubernetes.client.models.v1_custom_resource_definition_version + kubernetes.client.models.v1_custom_resource_subresource_scale + kubernetes.client.models.v1_custom_resource_subresources + kubernetes.client.models.v1_custom_resource_validation + kubernetes.client.models.v1_daemon_endpoint + kubernetes.client.models.v1_daemon_set + kubernetes.client.models.v1_daemon_set_condition + kubernetes.client.models.v1_daemon_set_list + kubernetes.client.models.v1_daemon_set_spec + kubernetes.client.models.v1_daemon_set_status + kubernetes.client.models.v1_daemon_set_update_strategy + kubernetes.client.models.v1_delete_options + kubernetes.client.models.v1_deployment + kubernetes.client.models.v1_deployment_condition + kubernetes.client.models.v1_deployment_list + kubernetes.client.models.v1_deployment_spec + kubernetes.client.models.v1_deployment_status + kubernetes.client.models.v1_deployment_strategy + kubernetes.client.models.v1_device + kubernetes.client.models.v1_device_allocation_configuration + kubernetes.client.models.v1_device_allocation_result + kubernetes.client.models.v1_device_attribute + kubernetes.client.models.v1_device_capacity + kubernetes.client.models.v1_device_claim + kubernetes.client.models.v1_device_claim_configuration + kubernetes.client.models.v1_device_class + kubernetes.client.models.v1_device_class_configuration + kubernetes.client.models.v1_device_class_list + kubernetes.client.models.v1_device_class_spec + kubernetes.client.models.v1_device_constraint + kubernetes.client.models.v1_device_counter_consumption + kubernetes.client.models.v1_device_derived_attribute + kubernetes.client.models.v1_device_request + kubernetes.client.models.v1_device_request_allocation_result + kubernetes.client.models.v1_device_selector + kubernetes.client.models.v1_device_sub_request + kubernetes.client.models.v1_device_taint + kubernetes.client.models.v1_device_taint_rule + kubernetes.client.models.v1_device_taint_rule_list + kubernetes.client.models.v1_device_taint_rule_spec + kubernetes.client.models.v1_device_taint_rule_status + kubernetes.client.models.v1_device_taint_selector + kubernetes.client.models.v1_device_toleration + kubernetes.client.models.v1_downward_api_projection + kubernetes.client.models.v1_downward_api_volume_file + kubernetes.client.models.v1_downward_api_volume_source + kubernetes.client.models.v1_empty_dir_volume_source + kubernetes.client.models.v1_endpoint + kubernetes.client.models.v1_endpoint_address + kubernetes.client.models.v1_endpoint_conditions + kubernetes.client.models.v1_endpoint_hints + kubernetes.client.models.v1_endpoint_slice + kubernetes.client.models.v1_endpoint_slice_list + kubernetes.client.models.v1_endpoint_subset + kubernetes.client.models.v1_endpoints + kubernetes.client.models.v1_endpoints_list + kubernetes.client.models.v1_env_from_source + kubernetes.client.models.v1_env_var + kubernetes.client.models.v1_env_var_source + kubernetes.client.models.v1_ephemeral_container + kubernetes.client.models.v1_ephemeral_volume_source + kubernetes.client.models.v1_event_source + kubernetes.client.models.v1_eviction + kubernetes.client.models.v1_eviction_responder + kubernetes.client.models.v1_exact_device_request + kubernetes.client.models.v1_exec_action + kubernetes.client.models.v1_exempt_priority_level_configuration + kubernetes.client.models.v1_expression_warning + kubernetes.client.models.v1_external_documentation + kubernetes.client.models.v1_fc_volume_source + kubernetes.client.models.v1_field_selector_attributes + kubernetes.client.models.v1_field_selector_requirement + kubernetes.client.models.v1_file_key_selector + kubernetes.client.models.v1_flex_persistent_volume_source + kubernetes.client.models.v1_flex_volume_source + kubernetes.client.models.v1_flocker_volume_source + kubernetes.client.models.v1_flow_distinguisher_method + kubernetes.client.models.v1_flow_schema + kubernetes.client.models.v1_flow_schema_condition + kubernetes.client.models.v1_flow_schema_list + kubernetes.client.models.v1_flow_schema_spec + kubernetes.client.models.v1_flow_schema_status + kubernetes.client.models.v1_for_node + kubernetes.client.models.v1_for_zone + kubernetes.client.models.v1_gce_persistent_disk_volume_source + kubernetes.client.models.v1_git_repo_volume_source + kubernetes.client.models.v1_glusterfs_persistent_volume_source + kubernetes.client.models.v1_glusterfs_volume_source + kubernetes.client.models.v1_group_resource + kubernetes.client.models.v1_group_subject + kubernetes.client.models.v1_group_version_for_discovery + kubernetes.client.models.v1_group_version_kind + kubernetes.client.models.v1_grpc_action + kubernetes.client.models.v1_horizontal_pod_autoscaler + kubernetes.client.models.v1_horizontal_pod_autoscaler_list + kubernetes.client.models.v1_horizontal_pod_autoscaler_spec + kubernetes.client.models.v1_horizontal_pod_autoscaler_status + kubernetes.client.models.v1_host_alias + kubernetes.client.models.v1_host_ip + kubernetes.client.models.v1_host_path_volume_source + kubernetes.client.models.v1_http_get_action + kubernetes.client.models.v1_http_header + kubernetes.client.models.v1_http_ingress_path + kubernetes.client.models.v1_http_ingress_rule_value + kubernetes.client.models.v1_image_volume_source + kubernetes.client.models.v1_image_volume_status + kubernetes.client.models.v1_ingress + kubernetes.client.models.v1_ingress_backend + kubernetes.client.models.v1_ingress_class + kubernetes.client.models.v1_ingress_class_list + kubernetes.client.models.v1_ingress_class_parameters_reference + kubernetes.client.models.v1_ingress_class_spec + kubernetes.client.models.v1_ingress_list + kubernetes.client.models.v1_ingress_load_balancer_ingress + kubernetes.client.models.v1_ingress_load_balancer_status + kubernetes.client.models.v1_ingress_port_status + kubernetes.client.models.v1_ingress_rule + kubernetes.client.models.v1_ingress_service_backend + kubernetes.client.models.v1_ingress_spec + kubernetes.client.models.v1_ingress_status + kubernetes.client.models.v1_ingress_tls + kubernetes.client.models.v1_ip_address + kubernetes.client.models.v1_ip_address_list + kubernetes.client.models.v1_ip_address_spec + kubernetes.client.models.v1_ip_block + kubernetes.client.models.v1_iscsi_persistent_volume_source + kubernetes.client.models.v1_iscsi_volume_source + kubernetes.client.models.v1_job + kubernetes.client.models.v1_job_condition + kubernetes.client.models.v1_job_list + kubernetes.client.models.v1_job_scheduling_configuration + kubernetes.client.models.v1_job_spec + kubernetes.client.models.v1_job_status + kubernetes.client.models.v1_job_template_spec + kubernetes.client.models.v1_json_patch + kubernetes.client.models.v1_json_schema_props + kubernetes.client.models.v1_key_to_path + kubernetes.client.models.v1_label_selector + kubernetes.client.models.v1_label_selector_attributes + kubernetes.client.models.v1_label_selector_requirement + kubernetes.client.models.v1_lease + kubernetes.client.models.v1_lease_list + kubernetes.client.models.v1_lease_spec + kubernetes.client.models.v1_lifecycle + kubernetes.client.models.v1_lifecycle_handler + kubernetes.client.models.v1_limit_range + kubernetes.client.models.v1_limit_range_item + kubernetes.client.models.v1_limit_range_list + kubernetes.client.models.v1_limit_range_spec + kubernetes.client.models.v1_limit_response + kubernetes.client.models.v1_limited_priority_level_configuration + kubernetes.client.models.v1_linux_container_user + kubernetes.client.models.v1_list_meta + kubernetes.client.models.v1_load_balancer_ingress + kubernetes.client.models.v1_load_balancer_status + kubernetes.client.models.v1_local_object_reference + kubernetes.client.models.v1_local_subject_access_review + kubernetes.client.models.v1_local_volume_source + kubernetes.client.models.v1_managed_fields_entry + kubernetes.client.models.v1_match_condition + kubernetes.client.models.v1_match_resources + kubernetes.client.models.v1_modify_volume_status + kubernetes.client.models.v1_mutating_admission_policy + kubernetes.client.models.v1_mutating_admission_policy_binding + kubernetes.client.models.v1_mutating_admission_policy_binding_list + kubernetes.client.models.v1_mutating_admission_policy_binding_spec + kubernetes.client.models.v1_mutating_admission_policy_list + kubernetes.client.models.v1_mutating_admission_policy_spec + kubernetes.client.models.v1_mutating_webhook + kubernetes.client.models.v1_mutating_webhook_configuration + kubernetes.client.models.v1_mutating_webhook_configuration_list + kubernetes.client.models.v1_mutation + kubernetes.client.models.v1_named_rule_with_operations + kubernetes.client.models.v1_namespace + kubernetes.client.models.v1_namespace_condition + kubernetes.client.models.v1_namespace_list + kubernetes.client.models.v1_namespace_spec + kubernetes.client.models.v1_namespace_status + kubernetes.client.models.v1_network_device_data + kubernetes.client.models.v1_network_policy + kubernetes.client.models.v1_network_policy_egress_rule + kubernetes.client.models.v1_network_policy_ingress_rule + kubernetes.client.models.v1_network_policy_list + kubernetes.client.models.v1_network_policy_peer + kubernetes.client.models.v1_network_policy_port + kubernetes.client.models.v1_network_policy_spec + kubernetes.client.models.v1_nfs_volume_source + kubernetes.client.models.v1_node + kubernetes.client.models.v1_node_address + kubernetes.client.models.v1_node_affinity + kubernetes.client.models.v1_node_allocatable_mapped_resources + kubernetes.client.models.v1_node_allocatable_mapping + kubernetes.client.models.v1_node_allocatable_overhead + kubernetes.client.models.v1_node_allocatable_overhead_resources + kubernetes.client.models.v1_node_allocatable_resource + kubernetes.client.models.v1_node_allocatable_resource_claim_status + kubernetes.client.models.v1_node_condition + kubernetes.client.models.v1_node_config_source + kubernetes.client.models.v1_node_config_status + kubernetes.client.models.v1_node_daemon_endpoints + kubernetes.client.models.v1_node_features + kubernetes.client.models.v1_node_list + kubernetes.client.models.v1_node_pod_preemption_policy + kubernetes.client.models.v1_node_runtime_handler + kubernetes.client.models.v1_node_runtime_handler_features + kubernetes.client.models.v1_node_selector + kubernetes.client.models.v1_node_selector_requirement + kubernetes.client.models.v1_node_selector_term + kubernetes.client.models.v1_node_spec + kubernetes.client.models.v1_node_status + kubernetes.client.models.v1_node_swap_status + kubernetes.client.models.v1_node_system_info + kubernetes.client.models.v1_non_resource_attributes + kubernetes.client.models.v1_non_resource_policy_rule + kubernetes.client.models.v1_non_resource_rule + kubernetes.client.models.v1_object_field_selector + kubernetes.client.models.v1_object_meta + kubernetes.client.models.v1_object_reference + kubernetes.client.models.v1_opaque_device_configuration + kubernetes.client.models.v1_overhead + kubernetes.client.models.v1_owner_reference + kubernetes.client.models.v1_param_kind + kubernetes.client.models.v1_param_ref + kubernetes.client.models.v1_parent_reference + kubernetes.client.models.v1_persistent_volume + kubernetes.client.models.v1_persistent_volume_claim + kubernetes.client.models.v1_persistent_volume_claim_condition + kubernetes.client.models.v1_persistent_volume_claim_list + kubernetes.client.models.v1_persistent_volume_claim_spec + kubernetes.client.models.v1_persistent_volume_claim_status + kubernetes.client.models.v1_persistent_volume_claim_template + kubernetes.client.models.v1_persistent_volume_claim_volume_source + kubernetes.client.models.v1_persistent_volume_list + kubernetes.client.models.v1_persistent_volume_spec + kubernetes.client.models.v1_persistent_volume_status + kubernetes.client.models.v1_photon_persistent_disk_volume_source + kubernetes.client.models.v1_pod + kubernetes.client.models.v1_pod_affinity + kubernetes.client.models.v1_pod_affinity_term + kubernetes.client.models.v1_pod_anti_affinity + kubernetes.client.models.v1_pod_certificate_projection + kubernetes.client.models.v1_pod_certificate_request + kubernetes.client.models.v1_pod_certificate_request_list + kubernetes.client.models.v1_pod_certificate_request_spec + kubernetes.client.models.v1_pod_certificate_request_status + kubernetes.client.models.v1_pod_condition + kubernetes.client.models.v1_pod_disruption_budget + kubernetes.client.models.v1_pod_disruption_budget_list + kubernetes.client.models.v1_pod_disruption_budget_spec + kubernetes.client.models.v1_pod_disruption_budget_status + kubernetes.client.models.v1_pod_dns_config + kubernetes.client.models.v1_pod_dns_config_option + kubernetes.client.models.v1_pod_extended_resource_claim_status + kubernetes.client.models.v1_pod_failure_policy + kubernetes.client.models.v1_pod_failure_policy_on_exit_codes_requirement + kubernetes.client.models.v1_pod_failure_policy_on_pod_conditions_pattern + kubernetes.client.models.v1_pod_failure_policy_rule + kubernetes.client.models.v1_pod_ip + kubernetes.client.models.v1_pod_list + kubernetes.client.models.v1_pod_os + kubernetes.client.models.v1_pod_readiness_gate + kubernetes.client.models.v1_pod_resource_claim + kubernetes.client.models.v1_pod_resource_claim_status + kubernetes.client.models.v1_pod_scheduling_gate + kubernetes.client.models.v1_pod_scheduling_group + kubernetes.client.models.v1_pod_security_context + kubernetes.client.models.v1_pod_spec + kubernetes.client.models.v1_pod_status + kubernetes.client.models.v1_pod_template + kubernetes.client.models.v1_pod_template_list + kubernetes.client.models.v1_pod_template_spec + kubernetes.client.models.v1_pod_volume_health + kubernetes.client.models.v1_policy_rule + kubernetes.client.models.v1_policy_rules_with_subjects + kubernetes.client.models.v1_port_status + kubernetes.client.models.v1_portworx_volume_source + kubernetes.client.models.v1_preconditions + kubernetes.client.models.v1_preferred_scheduling_term + kubernetes.client.models.v1_priority_class + kubernetes.client.models.v1_priority_class_list + kubernetes.client.models.v1_priority_level_configuration + kubernetes.client.models.v1_priority_level_configuration_condition + kubernetes.client.models.v1_priority_level_configuration_list + kubernetes.client.models.v1_priority_level_configuration_reference + kubernetes.client.models.v1_priority_level_configuration_spec + kubernetes.client.models.v1_priority_level_configuration_status + kubernetes.client.models.v1_probe + kubernetes.client.models.v1_projected_volume_source + kubernetes.client.models.v1_queuing_configuration + kubernetes.client.models.v1_quobyte_volume_source + kubernetes.client.models.v1_rbd_persistent_volume_source + kubernetes.client.models.v1_rbd_volume_source + kubernetes.client.models.v1_replica_set + kubernetes.client.models.v1_replica_set_condition + kubernetes.client.models.v1_replica_set_list + kubernetes.client.models.v1_replica_set_spec + kubernetes.client.models.v1_replica_set_status + kubernetes.client.models.v1_replication_controller + kubernetes.client.models.v1_replication_controller_condition + kubernetes.client.models.v1_replication_controller_list + kubernetes.client.models.v1_replication_controller_spec + kubernetes.client.models.v1_replication_controller_status + kubernetes.client.models.v1_resource_attributes + kubernetes.client.models.v1_resource_claim_consumer_reference + kubernetes.client.models.v1_resource_claim_list + kubernetes.client.models.v1_resource_claim_spec + kubernetes.client.models.v1_resource_claim_status + kubernetes.client.models.v1_resource_claim_template + kubernetes.client.models.v1_resource_claim_template_list + kubernetes.client.models.v1_resource_claim_template_spec + kubernetes.client.models.v1_resource_field_selector + kubernetes.client.models.v1_resource_health + kubernetes.client.models.v1_resource_policy_rule + kubernetes.client.models.v1_resource_pool + kubernetes.client.models.v1_resource_quota + kubernetes.client.models.v1_resource_quota_list + kubernetes.client.models.v1_resource_quota_spec + kubernetes.client.models.v1_resource_quota_status + kubernetes.client.models.v1_resource_requirements + kubernetes.client.models.v1_resource_rule + kubernetes.client.models.v1_resource_slice + kubernetes.client.models.v1_resource_slice_list + kubernetes.client.models.v1_resource_slice_spec + kubernetes.client.models.v1_resource_status + kubernetes.client.models.v1_role + kubernetes.client.models.v1_role_binding + kubernetes.client.models.v1_role_binding_list + kubernetes.client.models.v1_role_list + kubernetes.client.models.v1_role_ref + kubernetes.client.models.v1_rolling_update_daemon_set + kubernetes.client.models.v1_rolling_update_deployment + kubernetes.client.models.v1_rolling_update_stateful_set_strategy + kubernetes.client.models.v1_rule_with_operations + kubernetes.client.models.v1_runtime_class + kubernetes.client.models.v1_runtime_class_list + kubernetes.client.models.v1_scale + kubernetes.client.models.v1_scale_io_persistent_volume_source + kubernetes.client.models.v1_scale_io_volume_source + kubernetes.client.models.v1_scale_spec + kubernetes.client.models.v1_scale_status + kubernetes.client.models.v1_scheduling + kubernetes.client.models.v1_scope_selector + kubernetes.client.models.v1_scoped_resource_selector_requirement + kubernetes.client.models.v1_se_linux_options + kubernetes.client.models.v1_seccomp_profile + kubernetes.client.models.v1_secret + kubernetes.client.models.v1_secret_env_source + kubernetes.client.models.v1_secret_key_selector + kubernetes.client.models.v1_secret_list + kubernetes.client.models.v1_secret_projection + kubernetes.client.models.v1_secret_reference + kubernetes.client.models.v1_secret_volume_source + kubernetes.client.models.v1_security_context + kubernetes.client.models.v1_selectable_field + kubernetes.client.models.v1_self_subject_access_review + kubernetes.client.models.v1_self_subject_access_review_spec + kubernetes.client.models.v1_self_subject_review + kubernetes.client.models.v1_self_subject_review_status + kubernetes.client.models.v1_self_subject_rules_review + kubernetes.client.models.v1_self_subject_rules_review_spec + kubernetes.client.models.v1_server_address_by_client_cidr + kubernetes.client.models.v1_service + kubernetes.client.models.v1_service_account + kubernetes.client.models.v1_service_account_list + kubernetes.client.models.v1_service_account_subject + kubernetes.client.models.v1_service_account_token_projection + kubernetes.client.models.v1_service_backend_port + kubernetes.client.models.v1_service_cidr + kubernetes.client.models.v1_service_cidr_list + kubernetes.client.models.v1_service_cidr_spec + kubernetes.client.models.v1_service_cidr_status + kubernetes.client.models.v1_service_list + kubernetes.client.models.v1_service_port + kubernetes.client.models.v1_service_spec + kubernetes.client.models.v1_service_status + kubernetes.client.models.v1_session_affinity_config + kubernetes.client.models.v1_shard_info + kubernetes.client.models.v1_sleep_action + kubernetes.client.models.v1_stateful_set + kubernetes.client.models.v1_stateful_set_condition + kubernetes.client.models.v1_stateful_set_list + kubernetes.client.models.v1_stateful_set_ordinals + kubernetes.client.models.v1_stateful_set_persistent_volume_claim_retention_policy + kubernetes.client.models.v1_stateful_set_spec + kubernetes.client.models.v1_stateful_set_status + kubernetes.client.models.v1_stateful_set_update_strategy + kubernetes.client.models.v1_status + kubernetes.client.models.v1_status_cause + kubernetes.client.models.v1_status_details + kubernetes.client.models.v1_storage_class + kubernetes.client.models.v1_storage_class_list + kubernetes.client.models.v1_storage_health + kubernetes.client.models.v1_storage_health_condition + kubernetes.client.models.v1_storage_os_persistent_volume_source + kubernetes.client.models.v1_storage_os_volume_source + kubernetes.client.models.v1_storage_version_migration + kubernetes.client.models.v1_storage_version_migration_list + kubernetes.client.models.v1_storage_version_migration_spec + kubernetes.client.models.v1_storage_version_migration_status + kubernetes.client.models.v1_subject_access_review + kubernetes.client.models.v1_subject_access_review_spec + kubernetes.client.models.v1_subject_access_review_status + kubernetes.client.models.v1_subject_rules_review_status + kubernetes.client.models.v1_success_policy + kubernetes.client.models.v1_success_policy_rule + kubernetes.client.models.v1_sysctl + kubernetes.client.models.v1_taint + kubernetes.client.models.v1_tcp_socket_action + kubernetes.client.models.v1_token_request_spec + kubernetes.client.models.v1_token_request_status + kubernetes.client.models.v1_token_review + kubernetes.client.models.v1_token_review_spec + kubernetes.client.models.v1_token_review_status + kubernetes.client.models.v1_toleration + kubernetes.client.models.v1_topology_selector_label_requirement + kubernetes.client.models.v1_topology_selector_term + kubernetes.client.models.v1_topology_spread_constraint + kubernetes.client.models.v1_type_checking + kubernetes.client.models.v1_typed_local_object_reference + kubernetes.client.models.v1_typed_object_reference + kubernetes.client.models.v1_uncounted_terminated_pods + kubernetes.client.models.v1_user_info + kubernetes.client.models.v1_user_subject + kubernetes.client.models.v1_validating_admission_policy + kubernetes.client.models.v1_validating_admission_policy_binding + kubernetes.client.models.v1_validating_admission_policy_binding_list + kubernetes.client.models.v1_validating_admission_policy_binding_spec + kubernetes.client.models.v1_validating_admission_policy_list + kubernetes.client.models.v1_validating_admission_policy_spec + kubernetes.client.models.v1_validating_admission_policy_status + kubernetes.client.models.v1_validating_webhook + kubernetes.client.models.v1_validating_webhook_configuration + kubernetes.client.models.v1_validating_webhook_configuration_list + kubernetes.client.models.v1_validation + kubernetes.client.models.v1_validation_rule + kubernetes.client.models.v1_variable + kubernetes.client.models.v1_volume + kubernetes.client.models.v1_volume_attachment + kubernetes.client.models.v1_volume_attachment_list + kubernetes.client.models.v1_volume_attachment_source + kubernetes.client.models.v1_volume_attachment_spec + kubernetes.client.models.v1_volume_attachment_status + kubernetes.client.models.v1_volume_attributes_class + kubernetes.client.models.v1_volume_attributes_class_list + kubernetes.client.models.v1_volume_device + kubernetes.client.models.v1_volume_error + kubernetes.client.models.v1_volume_health_condition + kubernetes.client.models.v1_volume_health_status + kubernetes.client.models.v1_volume_mount + kubernetes.client.models.v1_volume_mount_status + kubernetes.client.models.v1_volume_node_affinity + kubernetes.client.models.v1_volume_node_resources + kubernetes.client.models.v1_volume_projection + kubernetes.client.models.v1_volume_resource_requirements + kubernetes.client.models.v1_volume_status + kubernetes.client.models.v1_vsphere_virtual_disk_volume_source + kubernetes.client.models.v1_watch_event + kubernetes.client.models.v1_webhook_conversion + kubernetes.client.models.v1_weighted_pod_affinity_term + kubernetes.client.models.v1_windows_security_context_options + kubernetes.client.models.v1alpha1_apply_configuration + kubernetes.client.models.v1alpha1_eviction + kubernetes.client.models.v1alpha1_eviction_list + kubernetes.client.models.v1alpha1_eviction_pod_reference + kubernetes.client.models.v1alpha1_eviction_request + kubernetes.client.models.v1alpha1_eviction_request_list + kubernetes.client.models.v1alpha1_eviction_request_pod_reference + kubernetes.client.models.v1alpha1_eviction_request_spec + kubernetes.client.models.v1alpha1_eviction_request_status + kubernetes.client.models.v1alpha1_eviction_request_target + kubernetes.client.models.v1alpha1_eviction_spec + kubernetes.client.models.v1alpha1_eviction_status + kubernetes.client.models.v1alpha1_eviction_target + kubernetes.client.models.v1alpha1_json_patch + kubernetes.client.models.v1alpha1_match_condition + kubernetes.client.models.v1alpha1_match_resources + kubernetes.client.models.v1alpha1_mutating_admission_policy + kubernetes.client.models.v1alpha1_mutating_admission_policy_binding + kubernetes.client.models.v1alpha1_mutating_admission_policy_binding_list + kubernetes.client.models.v1alpha1_mutating_admission_policy_binding_spec + kubernetes.client.models.v1alpha1_mutating_admission_policy_list + kubernetes.client.models.v1alpha1_mutating_admission_policy_spec + kubernetes.client.models.v1alpha1_mutation + kubernetes.client.models.v1alpha1_named_rule_with_operations + kubernetes.client.models.v1alpha1_param_kind + kubernetes.client.models.v1alpha1_param_ref + kubernetes.client.models.v1alpha1_requester + kubernetes.client.models.v1alpha1_responder_status + kubernetes.client.models.v1alpha1_server_storage_version + kubernetes.client.models.v1alpha1_storage_version + kubernetes.client.models.v1alpha1_storage_version_condition + kubernetes.client.models.v1alpha1_storage_version_list + kubernetes.client.models.v1alpha1_storage_version_status + kubernetes.client.models.v1alpha1_target_responder + kubernetes.client.models.v1alpha1_variable + kubernetes.client.models.v1alpha2_lease_candidate + kubernetes.client.models.v1alpha2_lease_candidate_list + kubernetes.client.models.v1alpha2_lease_candidate_spec + kubernetes.client.models.v1alpha3_composite_disruption_mode + kubernetes.client.models.v1alpha3_composite_gang_scheduling_policy + kubernetes.client.models.v1alpha3_composite_pod_group + kubernetes.client.models.v1alpha3_composite_pod_group_list + kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_constraints + kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_policy + kubernetes.client.models.v1alpha3_composite_pod_group_spec + kubernetes.client.models.v1alpha3_composite_pod_group_status + kubernetes.client.models.v1alpha3_composite_pod_group_template + kubernetes.client.models.v1alpha3_device_taint + kubernetes.client.models.v1alpha3_device_taint_rule + kubernetes.client.models.v1alpha3_device_taint_rule_list + kubernetes.client.models.v1alpha3_device_taint_rule_spec + kubernetes.client.models.v1alpha3_device_taint_rule_status + kubernetes.client.models.v1alpha3_device_taint_selector + kubernetes.client.models.v1alpha3_disruption_mode + kubernetes.client.models.v1alpha3_gang_scheduling_policy + kubernetes.client.models.v1alpha3_partition_type_status + kubernetes.client.models.v1alpha3_pod_group + kubernetes.client.models.v1alpha3_pod_group_list + kubernetes.client.models.v1alpha3_pod_group_resource_claim + kubernetes.client.models.v1alpha3_pod_group_resource_claim_status + kubernetes.client.models.v1alpha3_pod_group_scheduling_constraints + kubernetes.client.models.v1alpha3_pod_group_scheduling_policy + kubernetes.client.models.v1alpha3_pod_group_spec + kubernetes.client.models.v1alpha3_pod_group_status + kubernetes.client.models.v1alpha3_pod_group_template + kubernetes.client.models.v1alpha3_pool_status + kubernetes.client.models.v1alpha3_resource_pool_status_request + kubernetes.client.models.v1alpha3_resource_pool_status_request_list + kubernetes.client.models.v1alpha3_resource_pool_status_request_spec + kubernetes.client.models.v1alpha3_resource_pool_status_request_status + kubernetes.client.models.v1alpha3_shareable_capacity_status + kubernetes.client.models.v1alpha3_shareable_summary_status + kubernetes.client.models.v1alpha3_topology_constraint + kubernetes.client.models.v1alpha3_typed_local_object_reference + kubernetes.client.models.v1alpha3_workload + kubernetes.client.models.v1alpha3_workload_list + kubernetes.client.models.v1alpha3_workload_pod_group_disruption_mode + kubernetes.client.models.v1alpha3_workload_pod_group_gang_scheduling_policy + kubernetes.client.models.v1alpha3_workload_pod_group_resource_claim + kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_constraints + kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_policy + kubernetes.client.models.v1alpha3_workload_reference + kubernetes.client.models.v1alpha3_workload_spec + kubernetes.client.models.v1beta1_allocated_device_status + kubernetes.client.models.v1beta1_allocation_result + kubernetes.client.models.v1beta1_apply_configuration + kubernetes.client.models.v1beta1_basic_device + kubernetes.client.models.v1beta1_capacity_request_policy + kubernetes.client.models.v1beta1_capacity_request_policy_range + kubernetes.client.models.v1beta1_capacity_requirements + kubernetes.client.models.v1beta1_cel_device_selector + kubernetes.client.models.v1beta1_cluster_trust_bundle + kubernetes.client.models.v1beta1_cluster_trust_bundle_list + kubernetes.client.models.v1beta1_cluster_trust_bundle_spec + kubernetes.client.models.v1beta1_composite_disruption_mode + kubernetes.client.models.v1beta1_composite_gang_scheduling_policy + kubernetes.client.models.v1beta1_composite_pod_group_scheduling_constraints + kubernetes.client.models.v1beta1_composite_pod_group_scheduling_policy + kubernetes.client.models.v1beta1_composite_pod_group_template + kubernetes.client.models.v1beta1_counter + kubernetes.client.models.v1beta1_counter_set + kubernetes.client.models.v1beta1_device + kubernetes.client.models.v1beta1_device_allocation_configuration + kubernetes.client.models.v1beta1_device_allocation_result + kubernetes.client.models.v1beta1_device_attribute + kubernetes.client.models.v1beta1_device_capacity + kubernetes.client.models.v1beta1_device_claim + kubernetes.client.models.v1beta1_device_claim_configuration + kubernetes.client.models.v1beta1_device_class + kubernetes.client.models.v1beta1_device_class_configuration + kubernetes.client.models.v1beta1_device_class_list + kubernetes.client.models.v1beta1_device_class_spec + kubernetes.client.models.v1beta1_device_constraint + kubernetes.client.models.v1beta1_device_counter_consumption + kubernetes.client.models.v1beta1_device_derived_attribute + kubernetes.client.models.v1beta1_device_request + kubernetes.client.models.v1beta1_device_request_allocation_result + kubernetes.client.models.v1beta1_device_selector + kubernetes.client.models.v1beta1_device_sub_request + kubernetes.client.models.v1beta1_device_taint + kubernetes.client.models.v1beta1_device_toleration + kubernetes.client.models.v1beta1_disruption_mode + kubernetes.client.models.v1beta1_gang_scheduling_policy + kubernetes.client.models.v1beta1_json_patch + kubernetes.client.models.v1beta1_lease_candidate + kubernetes.client.models.v1beta1_lease_candidate_list + kubernetes.client.models.v1beta1_lease_candidate_spec + kubernetes.client.models.v1beta1_match_condition + kubernetes.client.models.v1beta1_match_resources + kubernetes.client.models.v1beta1_mutating_admission_policy + kubernetes.client.models.v1beta1_mutating_admission_policy_binding + kubernetes.client.models.v1beta1_mutating_admission_policy_binding_list + kubernetes.client.models.v1beta1_mutating_admission_policy_binding_spec + kubernetes.client.models.v1beta1_mutating_admission_policy_list + kubernetes.client.models.v1beta1_mutating_admission_policy_spec + kubernetes.client.models.v1beta1_mutation + kubernetes.client.models.v1beta1_named_rule_with_operations + kubernetes.client.models.v1beta1_network_device_data + kubernetes.client.models.v1beta1_node_allocatable_mapping + kubernetes.client.models.v1beta1_node_allocatable_overhead + kubernetes.client.models.v1beta1_node_allocatable_resource + kubernetes.client.models.v1beta1_opaque_device_configuration + kubernetes.client.models.v1beta1_param_kind + kubernetes.client.models.v1beta1_param_ref + kubernetes.client.models.v1beta1_pod_certificate_request + kubernetes.client.models.v1beta1_pod_certificate_request_list + kubernetes.client.models.v1beta1_pod_certificate_request_spec + kubernetes.client.models.v1beta1_pod_certificate_request_status + kubernetes.client.models.v1beta1_pod_group + kubernetes.client.models.v1beta1_pod_group_list + kubernetes.client.models.v1beta1_pod_group_resource_claim + kubernetes.client.models.v1beta1_pod_group_resource_claim_status + kubernetes.client.models.v1beta1_pod_group_scheduling_constraints + kubernetes.client.models.v1beta1_pod_group_scheduling_policy + kubernetes.client.models.v1beta1_pod_group_spec + kubernetes.client.models.v1beta1_pod_group_status + kubernetes.client.models.v1beta1_pod_group_template + kubernetes.client.models.v1beta1_resource_claim + kubernetes.client.models.v1beta1_resource_claim_consumer_reference + kubernetes.client.models.v1beta1_resource_claim_list + kubernetes.client.models.v1beta1_resource_claim_spec + kubernetes.client.models.v1beta1_resource_claim_status + kubernetes.client.models.v1beta1_resource_claim_template + kubernetes.client.models.v1beta1_resource_claim_template_list + kubernetes.client.models.v1beta1_resource_claim_template_spec + kubernetes.client.models.v1beta1_resource_pool + kubernetes.client.models.v1beta1_resource_slice + kubernetes.client.models.v1beta1_resource_slice_list + kubernetes.client.models.v1beta1_resource_slice_spec + kubernetes.client.models.v1beta1_storage_version_migration + kubernetes.client.models.v1beta1_storage_version_migration_list + kubernetes.client.models.v1beta1_storage_version_migration_spec + kubernetes.client.models.v1beta1_storage_version_migration_status + kubernetes.client.models.v1beta1_topology_constraint + kubernetes.client.models.v1beta1_typed_local_object_reference + kubernetes.client.models.v1beta1_variable + kubernetes.client.models.v1beta1_workload + kubernetes.client.models.v1beta1_workload_list + kubernetes.client.models.v1beta1_workload_reference + kubernetes.client.models.v1beta1_workload_spec + kubernetes.client.models.v1beta2_allocated_device_status + kubernetes.client.models.v1beta2_allocation_result + kubernetes.client.models.v1beta2_capacity_request_policy + kubernetes.client.models.v1beta2_capacity_request_policy_range + kubernetes.client.models.v1beta2_capacity_requirements + kubernetes.client.models.v1beta2_cel_device_selector + kubernetes.client.models.v1beta2_counter + kubernetes.client.models.v1beta2_counter_set + kubernetes.client.models.v1beta2_device + kubernetes.client.models.v1beta2_device_allocation_configuration + kubernetes.client.models.v1beta2_device_allocation_result + kubernetes.client.models.v1beta2_device_attribute + kubernetes.client.models.v1beta2_device_capacity + kubernetes.client.models.v1beta2_device_claim + kubernetes.client.models.v1beta2_device_claim_configuration + kubernetes.client.models.v1beta2_device_class + kubernetes.client.models.v1beta2_device_class_configuration + kubernetes.client.models.v1beta2_device_class_list + kubernetes.client.models.v1beta2_device_class_spec + kubernetes.client.models.v1beta2_device_constraint + kubernetes.client.models.v1beta2_device_counter_consumption + kubernetes.client.models.v1beta2_device_derived_attribute + kubernetes.client.models.v1beta2_device_request + kubernetes.client.models.v1beta2_device_request_allocation_result + kubernetes.client.models.v1beta2_device_selector + kubernetes.client.models.v1beta2_device_sub_request + kubernetes.client.models.v1beta2_device_taint + kubernetes.client.models.v1beta2_device_taint_rule + kubernetes.client.models.v1beta2_device_taint_rule_list + kubernetes.client.models.v1beta2_device_taint_rule_spec + kubernetes.client.models.v1beta2_device_taint_rule_status + kubernetes.client.models.v1beta2_device_taint_selector + kubernetes.client.models.v1beta2_device_toleration + kubernetes.client.models.v1beta2_exact_device_request + kubernetes.client.models.v1beta2_network_device_data + kubernetes.client.models.v1beta2_node_allocatable_mapping + kubernetes.client.models.v1beta2_node_allocatable_overhead + kubernetes.client.models.v1beta2_node_allocatable_resource + kubernetes.client.models.v1beta2_opaque_device_configuration + kubernetes.client.models.v1beta2_resource_claim + kubernetes.client.models.v1beta2_resource_claim_consumer_reference + kubernetes.client.models.v1beta2_resource_claim_list + kubernetes.client.models.v1beta2_resource_claim_spec + kubernetes.client.models.v1beta2_resource_claim_status + kubernetes.client.models.v1beta2_resource_claim_template + kubernetes.client.models.v1beta2_resource_claim_template_list + kubernetes.client.models.v1beta2_resource_claim_template_spec + kubernetes.client.models.v1beta2_resource_pool + kubernetes.client.models.v1beta2_resource_slice + kubernetes.client.models.v1beta2_resource_slice_list + kubernetes.client.models.v1beta2_resource_slice_spec + kubernetes.client.models.v2_api_group_discovery + kubernetes.client.models.v2_api_group_discovery_list + kubernetes.client.models.v2_api_resource_discovery + kubernetes.client.models.v2_api_subresource_discovery + kubernetes.client.models.v2_api_version_discovery + kubernetes.client.models.v2_container_resource_metric_source + kubernetes.client.models.v2_container_resource_metric_status + kubernetes.client.models.v2_cross_version_object_reference + kubernetes.client.models.v2_external_metric_source + kubernetes.client.models.v2_external_metric_status + kubernetes.client.models.v2_horizontal_pod_autoscaler + kubernetes.client.models.v2_horizontal_pod_autoscaler_behavior + kubernetes.client.models.v2_horizontal_pod_autoscaler_condition + kubernetes.client.models.v2_horizontal_pod_autoscaler_list + kubernetes.client.models.v2_horizontal_pod_autoscaler_spec + kubernetes.client.models.v2_horizontal_pod_autoscaler_status + kubernetes.client.models.v2_hpa_scaling_policy + kubernetes.client.models.v2_hpa_scaling_rules + kubernetes.client.models.v2_metric_identifier + kubernetes.client.models.v2_metric_spec + kubernetes.client.models.v2_metric_status + kubernetes.client.models.v2_metric_target + kubernetes.client.models.v2_metric_value_status + kubernetes.client.models.v2_object_metric_source + kubernetes.client.models.v2_object_metric_status + kubernetes.client.models.v2_pods_metric_source + kubernetes.client.models.v2_pods_metric_status + kubernetes.client.models.v2_resource_metric_source + kubernetes.client.models.v2_resource_metric_status + kubernetes.client.models.v2beta1_api_group_discovery + kubernetes.client.models.v2beta1_api_group_discovery_list + kubernetes.client.models.v2beta1_api_resource_discovery + kubernetes.client.models.v2beta1_api_subresource_discovery + kubernetes.client.models.v2beta1_api_version_discovery + kubernetes.client.models.version_info + +Module contents +--------------- + +.. automodule:: kubernetes.client.models + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.storage_v1_token_request.rst b/doc/source/kubernetes.client.models.storage_v1_token_request.rst new file mode 100644 index 0000000000..82fe81e159 --- /dev/null +++ b/doc/source/kubernetes.client.models.storage_v1_token_request.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.storage\_v1\_token\_request module +=========================================================== + +.. automodule:: kubernetes.client.models.storage_v1_token_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_affinity.rst b/doc/source/kubernetes.client.models.v1_affinity.rst new file mode 100644 index 0000000000..04be048ecb --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_affinity.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_affinity module +============================================ + +.. automodule:: kubernetes.client.models.v1_affinity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_aggregation_rule.rst b/doc/source/kubernetes.client.models.v1_aggregation_rule.rst new file mode 100644 index 0000000000..860f036736 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_aggregation_rule.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_aggregation\_rule module +===================================================== + +.. automodule:: kubernetes.client.models.v1_aggregation_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_allocated_device_status.rst b/doc/source/kubernetes.client.models.v1_allocated_device_status.rst new file mode 100644 index 0000000000..4db716b3e4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_allocated_device_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_allocated\_device\_status module +============================================================= + +.. automodule:: kubernetes.client.models.v1_allocated_device_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_allocation_result.rst b/doc/source/kubernetes.client.models.v1_allocation_result.rst new file mode 100644 index 0000000000..6ac3915f96 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_allocation\_result module +====================================================== + +.. automodule:: kubernetes.client.models.v1_allocation_result + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_api_group.rst b/doc/source/kubernetes.client.models.v1_api_group.rst new file mode 100644 index 0000000000..fc69436932 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_api_group.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_api\_group module +============================================== + +.. automodule:: kubernetes.client.models.v1_api_group + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_api_group_list.rst b/doc/source/kubernetes.client.models.v1_api_group_list.rst new file mode 100644 index 0000000000..aee1a68fec --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_api_group_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_api\_group\_list module +==================================================== + +.. automodule:: kubernetes.client.models.v1_api_group_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_api_resource.rst b/doc/source/kubernetes.client.models.v1_api_resource.rst new file mode 100644 index 0000000000..c7b7b6a397 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_api_resource.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_api\_resource module +================================================= + +.. automodule:: kubernetes.client.models.v1_api_resource + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_api_resource_list.rst b/doc/source/kubernetes.client.models.v1_api_resource_list.rst new file mode 100644 index 0000000000..50f2706f11 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_api_resource_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_api\_resource\_list module +======================================================= + +.. automodule:: kubernetes.client.models.v1_api_resource_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_api_service.rst b/doc/source/kubernetes.client.models.v1_api_service.rst new file mode 100644 index 0000000000..02fa0b2f29 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_api_service.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_api\_service module +================================================ + +.. automodule:: kubernetes.client.models.v1_api_service + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_api_service_condition.rst b/doc/source/kubernetes.client.models.v1_api_service_condition.rst new file mode 100644 index 0000000000..b5dd446670 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_api_service_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_api\_service\_condition module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_api_service_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_api_service_list.rst b/doc/source/kubernetes.client.models.v1_api_service_list.rst new file mode 100644 index 0000000000..8c98bed56e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_api_service_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_api\_service\_list module +====================================================== + +.. automodule:: kubernetes.client.models.v1_api_service_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_api_service_spec.rst b/doc/source/kubernetes.client.models.v1_api_service_spec.rst new file mode 100644 index 0000000000..6790504bde --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_api_service_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_api\_service\_spec module +====================================================== + +.. automodule:: kubernetes.client.models.v1_api_service_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_api_service_status.rst b/doc/source/kubernetes.client.models.v1_api_service_status.rst new file mode 100644 index 0000000000..4784cdf2bd --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_api_service_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_api\_service\_status module +======================================================== + +.. automodule:: kubernetes.client.models.v1_api_service_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_api_versions.rst b/doc/source/kubernetes.client.models.v1_api_versions.rst new file mode 100644 index 0000000000..1c20d3ce96 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_api_versions.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_api\_versions module +================================================= + +.. automodule:: kubernetes.client.models.v1_api_versions + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_app_armor_profile.rst b/doc/source/kubernetes.client.models.v1_app_armor_profile.rst new file mode 100644 index 0000000000..b8e137aa43 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_app_armor_profile.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_app\_armor\_profile module +======================================================= + +.. automodule:: kubernetes.client.models.v1_app_armor_profile + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_apply_configuration.rst b/doc/source/kubernetes.client.models.v1_apply_configuration.rst new file mode 100644 index 0000000000..7d1ead87d7 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_apply_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_apply\_configuration module +======================================================== + +.. automodule:: kubernetes.client.models.v1_apply_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_attached_volume.rst b/doc/source/kubernetes.client.models.v1_attached_volume.rst new file mode 100644 index 0000000000..01936fe324 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_attached_volume.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_attached\_volume module +==================================================== + +.. automodule:: kubernetes.client.models.v1_attached_volume + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_audit_annotation.rst b/doc/source/kubernetes.client.models.v1_audit_annotation.rst new file mode 100644 index 0000000000..20793c19e4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_audit_annotation.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_audit\_annotation module +===================================================== + +.. automodule:: kubernetes.client.models.v1_audit_annotation + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_aws_elastic_block_store_volume_source.rst b/doc/source/kubernetes.client.models.v1_aws_elastic_block_store_volume_source.rst new file mode 100644 index 0000000000..9ff8f3f090 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_aws_elastic_block_store_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_aws\_elastic\_block\_store\_volume\_source module +============================================================================== + +.. automodule:: kubernetes.client.models.v1_aws_elastic_block_store_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_azure_disk_volume_source.rst b/doc/source/kubernetes.client.models.v1_azure_disk_volume_source.rst new file mode 100644 index 0000000000..9494f892f4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_azure_disk_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_azure\_disk\_volume\_source module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_azure_disk_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_azure_file_persistent_volume_source.rst b/doc/source/kubernetes.client.models.v1_azure_file_persistent_volume_source.rst new file mode 100644 index 0000000000..6d97cd127b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_azure_file_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_azure\_file\_persistent\_volume\_source module +=========================================================================== + +.. automodule:: kubernetes.client.models.v1_azure_file_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_azure_file_volume_source.rst b/doc/source/kubernetes.client.models.v1_azure_file_volume_source.rst new file mode 100644 index 0000000000..a873b64c65 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_azure_file_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_azure\_file\_volume\_source module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_azure_file_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_binding.rst b/doc/source/kubernetes.client.models.v1_binding.rst new file mode 100644 index 0000000000..16f36bd605 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_binding.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_binding module +=========================================== + +.. automodule:: kubernetes.client.models.v1_binding + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_bound_object_reference.rst b/doc/source/kubernetes.client.models.v1_bound_object_reference.rst new file mode 100644 index 0000000000..30addee717 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_bound_object_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_bound\_object\_reference module +============================================================ + +.. automodule:: kubernetes.client.models.v1_bound_object_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_capabilities.rst b/doc/source/kubernetes.client.models.v1_capabilities.rst new file mode 100644 index 0000000000..3cd1aa0437 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_capabilities.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_capabilities module +================================================ + +.. automodule:: kubernetes.client.models.v1_capabilities + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_capacity_request_policy.rst b/doc/source/kubernetes.client.models.v1_capacity_request_policy.rst new file mode 100644 index 0000000000..b2603ed011 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_capacity_request_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_capacity\_request\_policy module +============================================================= + +.. automodule:: kubernetes.client.models.v1_capacity_request_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_capacity_request_policy_range.rst b/doc/source/kubernetes.client.models.v1_capacity_request_policy_range.rst new file mode 100644 index 0000000000..ad39af6925 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_capacity_request_policy_range.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_capacity\_request\_policy\_range module +==================================================================== + +.. automodule:: kubernetes.client.models.v1_capacity_request_policy_range + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_capacity_requirements.rst b/doc/source/kubernetes.client.models.v1_capacity_requirements.rst new file mode 100644 index 0000000000..ff1331c983 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_capacity_requirements.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_capacity\_requirements module +========================================================== + +.. automodule:: kubernetes.client.models.v1_capacity_requirements + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_cel_device_selector.rst b/doc/source/kubernetes.client.models.v1_cel_device_selector.rst new file mode 100644 index 0000000000..d865fe6820 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_cel_device_selector.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_cel\_device\_selector module +========================================================= + +.. automodule:: kubernetes.client.models.v1_cel_device_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ceph_fs_persistent_volume_source.rst b/doc/source/kubernetes.client.models.v1_ceph_fs_persistent_volume_source.rst new file mode 100644 index 0000000000..1aea4f9e1d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ceph_fs_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ceph\_fs\_persistent\_volume\_source module +======================================================================== + +.. automodule:: kubernetes.client.models.v1_ceph_fs_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ceph_fs_volume_source.rst b/doc/source/kubernetes.client.models.v1_ceph_fs_volume_source.rst new file mode 100644 index 0000000000..73ce1bb238 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ceph_fs_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ceph\_fs\_volume\_source module +============================================================ + +.. automodule:: kubernetes.client.models.v1_ceph_fs_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_certificate_signing_request.rst b/doc/source/kubernetes.client.models.v1_certificate_signing_request.rst new file mode 100644 index 0000000000..ce601a7111 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_certificate_signing_request.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_certificate\_signing\_request module +================================================================= + +.. automodule:: kubernetes.client.models.v1_certificate_signing_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_certificate_signing_request_condition.rst b/doc/source/kubernetes.client.models.v1_certificate_signing_request_condition.rst new file mode 100644 index 0000000000..e8b343de23 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_certificate_signing_request_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_certificate\_signing\_request\_condition module +============================================================================ + +.. automodule:: kubernetes.client.models.v1_certificate_signing_request_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_certificate_signing_request_list.rst b/doc/source/kubernetes.client.models.v1_certificate_signing_request_list.rst new file mode 100644 index 0000000000..c8643a220c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_certificate_signing_request_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_certificate\_signing\_request\_list module +======================================================================= + +.. automodule:: kubernetes.client.models.v1_certificate_signing_request_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_certificate_signing_request_spec.rst b/doc/source/kubernetes.client.models.v1_certificate_signing_request_spec.rst new file mode 100644 index 0000000000..45fd5a269b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_certificate_signing_request_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_certificate\_signing\_request\_spec module +======================================================================= + +.. automodule:: kubernetes.client.models.v1_certificate_signing_request_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_certificate_signing_request_status.rst b/doc/source/kubernetes.client.models.v1_certificate_signing_request_status.rst new file mode 100644 index 0000000000..331f7dc440 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_certificate_signing_request_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_certificate\_signing\_request\_status module +========================================================================= + +.. automodule:: kubernetes.client.models.v1_certificate_signing_request_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_cinder_persistent_volume_source.rst b/doc/source/kubernetes.client.models.v1_cinder_persistent_volume_source.rst new file mode 100644 index 0000000000..cb9eea150d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_cinder_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_cinder\_persistent\_volume\_source module +====================================================================== + +.. automodule:: kubernetes.client.models.v1_cinder_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_cinder_volume_source.rst b/doc/source/kubernetes.client.models.v1_cinder_volume_source.rst new file mode 100644 index 0000000000..3d5505296d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_cinder_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_cinder\_volume\_source module +========================================================== + +.. automodule:: kubernetes.client.models.v1_cinder_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_client_ip_config.rst b/doc/source/kubernetes.client.models.v1_client_ip_config.rst new file mode 100644 index 0000000000..f03d5fc3b9 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_client_ip_config.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_client\_ip\_config module +====================================================== + +.. automodule:: kubernetes.client.models.v1_client_ip_config + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_cluster_role.rst b/doc/source/kubernetes.client.models.v1_cluster_role.rst new file mode 100644 index 0000000000..dedda9124e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_cluster_role.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_cluster\_role module +================================================= + +.. automodule:: kubernetes.client.models.v1_cluster_role + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_cluster_role_binding.rst b/doc/source/kubernetes.client.models.v1_cluster_role_binding.rst new file mode 100644 index 0000000000..7addcce718 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_cluster_role_binding.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_cluster\_role\_binding module +========================================================== + +.. automodule:: kubernetes.client.models.v1_cluster_role_binding + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_cluster_role_binding_list.rst b/doc/source/kubernetes.client.models.v1_cluster_role_binding_list.rst new file mode 100644 index 0000000000..49c15f8274 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_cluster_role_binding_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_cluster\_role\_binding\_list module +================================================================ + +.. automodule:: kubernetes.client.models.v1_cluster_role_binding_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_cluster_role_list.rst b/doc/source/kubernetes.client.models.v1_cluster_role_list.rst new file mode 100644 index 0000000000..51d9fb2a54 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_cluster_role_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_cluster\_role\_list module +======================================================= + +.. automodule:: kubernetes.client.models.v1_cluster_role_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_cluster_trust_bundle.rst b/doc/source/kubernetes.client.models.v1_cluster_trust_bundle.rst new file mode 100644 index 0000000000..6e9026e534 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_cluster_trust_bundle.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_cluster\_trust\_bundle module +========================================================== + +.. automodule:: kubernetes.client.models.v1_cluster_trust_bundle + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_cluster_trust_bundle_list.rst b/doc/source/kubernetes.client.models.v1_cluster_trust_bundle_list.rst new file mode 100644 index 0000000000..4fc2be684d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_cluster_trust_bundle_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_cluster\_trust\_bundle\_list module +================================================================ + +.. automodule:: kubernetes.client.models.v1_cluster_trust_bundle_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_cluster_trust_bundle_projection.rst b/doc/source/kubernetes.client.models.v1_cluster_trust_bundle_projection.rst new file mode 100644 index 0000000000..47fb13c681 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_cluster_trust_bundle_projection.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_cluster\_trust\_bundle\_projection module +====================================================================== + +.. automodule:: kubernetes.client.models.v1_cluster_trust_bundle_projection + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_cluster_trust_bundle_spec.rst b/doc/source/kubernetes.client.models.v1_cluster_trust_bundle_spec.rst new file mode 100644 index 0000000000..1e224f87d7 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_cluster_trust_bundle_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_cluster\_trust\_bundle\_spec module +================================================================ + +.. automodule:: kubernetes.client.models.v1_cluster_trust_bundle_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_component_condition.rst b/doc/source/kubernetes.client.models.v1_component_condition.rst new file mode 100644 index 0000000000..c88994d348 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_component_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_component\_condition module +======================================================== + +.. automodule:: kubernetes.client.models.v1_component_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_component_status.rst b/doc/source/kubernetes.client.models.v1_component_status.rst new file mode 100644 index 0000000000..efaa0df536 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_component_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_component\_status module +===================================================== + +.. automodule:: kubernetes.client.models.v1_component_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_component_status_list.rst b/doc/source/kubernetes.client.models.v1_component_status_list.rst new file mode 100644 index 0000000000..7236e7253a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_component_status_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_component\_status\_list module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_component_status_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_condition.rst b/doc/source/kubernetes.client.models.v1_condition.rst new file mode 100644 index 0000000000..cff0b0bd15 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_condition module +============================================= + +.. automodule:: kubernetes.client.models.v1_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_config_map.rst b/doc/source/kubernetes.client.models.v1_config_map.rst new file mode 100644 index 0000000000..de9f7342a6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_config_map.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_config\_map module +=============================================== + +.. automodule:: kubernetes.client.models.v1_config_map + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_config_map_env_source.rst b/doc/source/kubernetes.client.models.v1_config_map_env_source.rst new file mode 100644 index 0000000000..79a69c8b0d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_config_map_env_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_config\_map\_env\_source module +============================================================ + +.. automodule:: kubernetes.client.models.v1_config_map_env_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_config_map_key_selector.rst b/doc/source/kubernetes.client.models.v1_config_map_key_selector.rst new file mode 100644 index 0000000000..f67302bd21 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_config_map_key_selector.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_config\_map\_key\_selector module +============================================================== + +.. automodule:: kubernetes.client.models.v1_config_map_key_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_config_map_list.rst b/doc/source/kubernetes.client.models.v1_config_map_list.rst new file mode 100644 index 0000000000..91811dc919 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_config_map_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_config\_map\_list module +===================================================== + +.. automodule:: kubernetes.client.models.v1_config_map_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_config_map_node_config_source.rst b/doc/source/kubernetes.client.models.v1_config_map_node_config_source.rst new file mode 100644 index 0000000000..eddc16ffc7 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_config_map_node_config_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_config\_map\_node\_config\_source module +===================================================================== + +.. automodule:: kubernetes.client.models.v1_config_map_node_config_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_config_map_projection.rst b/doc/source/kubernetes.client.models.v1_config_map_projection.rst new file mode 100644 index 0000000000..594589acb5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_config_map_projection.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_config\_map\_projection module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_config_map_projection + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_config_map_volume_source.rst b/doc/source/kubernetes.client.models.v1_config_map_volume_source.rst new file mode 100644 index 0000000000..7a73868308 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_config_map_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_config\_map\_volume\_source module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_config_map_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_container.rst b/doc/source/kubernetes.client.models.v1_container.rst new file mode 100644 index 0000000000..dd50e12091 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_container.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_container module +============================================= + +.. automodule:: kubernetes.client.models.v1_container + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_container_extended_resource_request.rst b/doc/source/kubernetes.client.models.v1_container_extended_resource_request.rst new file mode 100644 index 0000000000..95c4d318e9 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_container_extended_resource_request.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_container\_extended\_resource\_request module +========================================================================== + +.. automodule:: kubernetes.client.models.v1_container_extended_resource_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_container_image.rst b/doc/source/kubernetes.client.models.v1_container_image.rst new file mode 100644 index 0000000000..8323cfc05c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_container_image.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_container\_image module +==================================================== + +.. automodule:: kubernetes.client.models.v1_container_image + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_container_port.rst b/doc/source/kubernetes.client.models.v1_container_port.rst new file mode 100644 index 0000000000..6eff032cad --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_container_port.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_container\_port module +=================================================== + +.. automodule:: kubernetes.client.models.v1_container_port + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_container_resize_policy.rst b/doc/source/kubernetes.client.models.v1_container_resize_policy.rst new file mode 100644 index 0000000000..f332be7020 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_container_resize_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_container\_resize\_policy module +============================================================= + +.. automodule:: kubernetes.client.models.v1_container_resize_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_container_restart_rule.rst b/doc/source/kubernetes.client.models.v1_container_restart_rule.rst new file mode 100644 index 0000000000..e6b47b21ba --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_container_restart_rule.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_container\_restart\_rule module +============================================================ + +.. automodule:: kubernetes.client.models.v1_container_restart_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_container_restart_rule_on_exit_codes.rst b/doc/source/kubernetes.client.models.v1_container_restart_rule_on_exit_codes.rst new file mode 100644 index 0000000000..5f5830fbcf --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_container_restart_rule_on_exit_codes.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_container\_restart\_rule\_on\_exit\_codes module +============================================================================= + +.. automodule:: kubernetes.client.models.v1_container_restart_rule_on_exit_codes + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_container_state.rst b/doc/source/kubernetes.client.models.v1_container_state.rst new file mode 100644 index 0000000000..2e7e584813 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_container_state.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_container\_state module +==================================================== + +.. automodule:: kubernetes.client.models.v1_container_state + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_container_state_running.rst b/doc/source/kubernetes.client.models.v1_container_state_running.rst new file mode 100644 index 0000000000..b62c07517b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_container_state_running.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_container\_state\_running module +============================================================= + +.. automodule:: kubernetes.client.models.v1_container_state_running + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_container_state_terminated.rst b/doc/source/kubernetes.client.models.v1_container_state_terminated.rst new file mode 100644 index 0000000000..bd1aa14291 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_container_state_terminated.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_container\_state\_terminated module +================================================================ + +.. automodule:: kubernetes.client.models.v1_container_state_terminated + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_container_state_waiting.rst b/doc/source/kubernetes.client.models.v1_container_state_waiting.rst new file mode 100644 index 0000000000..916f1fe1cb --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_container_state_waiting.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_container\_state\_waiting module +============================================================= + +.. automodule:: kubernetes.client.models.v1_container_state_waiting + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_container_status.rst b/doc/source/kubernetes.client.models.v1_container_status.rst new file mode 100644 index 0000000000..e37ee60c6f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_container_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_container\_status module +===================================================== + +.. automodule:: kubernetes.client.models.v1_container_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_container_user.rst b/doc/source/kubernetes.client.models.v1_container_user.rst new file mode 100644 index 0000000000..3b9f91282e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_container_user.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_container\_user module +=================================================== + +.. automodule:: kubernetes.client.models.v1_container_user + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_controller_revision.rst b/doc/source/kubernetes.client.models.v1_controller_revision.rst new file mode 100644 index 0000000000..5565a62983 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_controller_revision.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_controller\_revision module +======================================================== + +.. automodule:: kubernetes.client.models.v1_controller_revision + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_controller_revision_list.rst b/doc/source/kubernetes.client.models.v1_controller_revision_list.rst new file mode 100644 index 0000000000..9d8b1105e1 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_controller_revision_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_controller\_revision\_list module +============================================================== + +.. automodule:: kubernetes.client.models.v1_controller_revision_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_counter.rst b/doc/source/kubernetes.client.models.v1_counter.rst new file mode 100644 index 0000000000..ca9b1be065 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_counter.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_counter module +=========================================== + +.. automodule:: kubernetes.client.models.v1_counter + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_counter_set.rst b/doc/source/kubernetes.client.models.v1_counter_set.rst new file mode 100644 index 0000000000..9225afff30 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_counter_set.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_counter\_set module +================================================ + +.. automodule:: kubernetes.client.models.v1_counter_set + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_cron_job.rst b/doc/source/kubernetes.client.models.v1_cron_job.rst new file mode 100644 index 0000000000..51b82e2264 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_cron_job.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_cron\_job module +============================================= + +.. automodule:: kubernetes.client.models.v1_cron_job + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_cron_job_list.rst b/doc/source/kubernetes.client.models.v1_cron_job_list.rst new file mode 100644 index 0000000000..5d84e8f726 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_cron_job_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_cron\_job\_list module +=================================================== + +.. automodule:: kubernetes.client.models.v1_cron_job_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_cron_job_spec.rst b/doc/source/kubernetes.client.models.v1_cron_job_spec.rst new file mode 100644 index 0000000000..cb65e74b42 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_cron_job_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_cron\_job\_spec module +=================================================== + +.. automodule:: kubernetes.client.models.v1_cron_job_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_cron_job_status.rst b/doc/source/kubernetes.client.models.v1_cron_job_status.rst new file mode 100644 index 0000000000..f65c353d1d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_cron_job_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_cron\_job\_status module +===================================================== + +.. automodule:: kubernetes.client.models.v1_cron_job_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_cross_version_object_reference.rst b/doc/source/kubernetes.client.models.v1_cross_version_object_reference.rst new file mode 100644 index 0000000000..6ddbfb82de --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_cross_version_object_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_cross\_version\_object\_reference module +===================================================================== + +.. automodule:: kubernetes.client.models.v1_cross_version_object_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_csi_driver.rst b/doc/source/kubernetes.client.models.v1_csi_driver.rst new file mode 100644 index 0000000000..13f63f2ca1 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_csi_driver.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_csi\_driver module +=============================================== + +.. automodule:: kubernetes.client.models.v1_csi_driver + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_csi_driver_list.rst b/doc/source/kubernetes.client.models.v1_csi_driver_list.rst new file mode 100644 index 0000000000..04d34b9218 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_csi_driver_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_csi\_driver\_list module +===================================================== + +.. automodule:: kubernetes.client.models.v1_csi_driver_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_csi_driver_spec.rst b/doc/source/kubernetes.client.models.v1_csi_driver_spec.rst new file mode 100644 index 0000000000..c68d3e4c91 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_csi_driver_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_csi\_driver\_spec module +===================================================== + +.. automodule:: kubernetes.client.models.v1_csi_driver_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_csi_node.rst b/doc/source/kubernetes.client.models.v1_csi_node.rst new file mode 100644 index 0000000000..1c09442467 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_csi_node.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_csi\_node module +============================================= + +.. automodule:: kubernetes.client.models.v1_csi_node + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_csi_node_driver.rst b/doc/source/kubernetes.client.models.v1_csi_node_driver.rst new file mode 100644 index 0000000000..5217fb6a53 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_csi_node_driver.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_csi\_node\_driver module +===================================================== + +.. automodule:: kubernetes.client.models.v1_csi_node_driver + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_csi_node_list.rst b/doc/source/kubernetes.client.models.v1_csi_node_list.rst new file mode 100644 index 0000000000..d709ceab91 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_csi_node_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_csi\_node\_list module +=================================================== + +.. automodule:: kubernetes.client.models.v1_csi_node_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_csi_node_spec.rst b/doc/source/kubernetes.client.models.v1_csi_node_spec.rst new file mode 100644 index 0000000000..c28a46d788 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_csi_node_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_csi\_node\_spec module +=================================================== + +.. automodule:: kubernetes.client.models.v1_csi_node_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_csi_node_status.rst b/doc/source/kubernetes.client.models.v1_csi_node_status.rst new file mode 100644 index 0000000000..97f178b18c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_csi_node_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_csi\_node\_status module +===================================================== + +.. automodule:: kubernetes.client.models.v1_csi_node_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_csi_persistent_volume_source.rst b/doc/source/kubernetes.client.models.v1_csi_persistent_volume_source.rst new file mode 100644 index 0000000000..db1fbbb0a0 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_csi_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_csi\_persistent\_volume\_source module +=================================================================== + +.. automodule:: kubernetes.client.models.v1_csi_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_csi_storage_capacity.rst b/doc/source/kubernetes.client.models.v1_csi_storage_capacity.rst new file mode 100644 index 0000000000..f68b4e4a73 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_csi_storage_capacity.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_csi\_storage\_capacity module +========================================================== + +.. automodule:: kubernetes.client.models.v1_csi_storage_capacity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_csi_storage_capacity_list.rst b/doc/source/kubernetes.client.models.v1_csi_storage_capacity_list.rst new file mode 100644 index 0000000000..72d34d93d2 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_csi_storage_capacity_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_csi\_storage\_capacity\_list module +================================================================ + +.. automodule:: kubernetes.client.models.v1_csi_storage_capacity_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_csi_volume_source.rst b/doc/source/kubernetes.client.models.v1_csi_volume_source.rst new file mode 100644 index 0000000000..ca17290c71 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_csi_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_csi\_volume\_source module +======================================================= + +.. automodule:: kubernetes.client.models.v1_csi_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_custom_resource_column_definition.rst b/doc/source/kubernetes.client.models.v1_custom_resource_column_definition.rst new file mode 100644 index 0000000000..aa9b94bc4d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_custom_resource_column_definition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_custom\_resource\_column\_definition module +======================================================================== + +.. automodule:: kubernetes.client.models.v1_custom_resource_column_definition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_custom_resource_conversion.rst b/doc/source/kubernetes.client.models.v1_custom_resource_conversion.rst new file mode 100644 index 0000000000..dea8fcb7be --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_custom_resource_conversion.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_custom\_resource\_conversion module +================================================================ + +.. automodule:: kubernetes.client.models.v1_custom_resource_conversion + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_custom_resource_definition.rst b/doc/source/kubernetes.client.models.v1_custom_resource_definition.rst new file mode 100644 index 0000000000..c2288bc189 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_custom_resource_definition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_custom\_resource\_definition module +================================================================ + +.. automodule:: kubernetes.client.models.v1_custom_resource_definition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_custom_resource_definition_condition.rst b/doc/source/kubernetes.client.models.v1_custom_resource_definition_condition.rst new file mode 100644 index 0000000000..5caa5923f0 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_custom_resource_definition_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_custom\_resource\_definition\_condition module +=========================================================================== + +.. automodule:: kubernetes.client.models.v1_custom_resource_definition_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_custom_resource_definition_list.rst b/doc/source/kubernetes.client.models.v1_custom_resource_definition_list.rst new file mode 100644 index 0000000000..54997b3f68 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_custom_resource_definition_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_custom\_resource\_definition\_list module +====================================================================== + +.. automodule:: kubernetes.client.models.v1_custom_resource_definition_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_custom_resource_definition_names.rst b/doc/source/kubernetes.client.models.v1_custom_resource_definition_names.rst new file mode 100644 index 0000000000..45db8ce171 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_custom_resource_definition_names.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_custom\_resource\_definition\_names module +======================================================================= + +.. automodule:: kubernetes.client.models.v1_custom_resource_definition_names + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_custom_resource_definition_spec.rst b/doc/source/kubernetes.client.models.v1_custom_resource_definition_spec.rst new file mode 100644 index 0000000000..5e535e6eba --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_custom_resource_definition_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_custom\_resource\_definition\_spec module +====================================================================== + +.. automodule:: kubernetes.client.models.v1_custom_resource_definition_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_custom_resource_definition_status.rst b/doc/source/kubernetes.client.models.v1_custom_resource_definition_status.rst new file mode 100644 index 0000000000..19412cdec0 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_custom_resource_definition_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_custom\_resource\_definition\_status module +======================================================================== + +.. automodule:: kubernetes.client.models.v1_custom_resource_definition_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_custom_resource_definition_version.rst b/doc/source/kubernetes.client.models.v1_custom_resource_definition_version.rst new file mode 100644 index 0000000000..ea46e72f79 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_custom_resource_definition_version.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_custom\_resource\_definition\_version module +========================================================================= + +.. automodule:: kubernetes.client.models.v1_custom_resource_definition_version + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_custom_resource_subresource_scale.rst b/doc/source/kubernetes.client.models.v1_custom_resource_subresource_scale.rst new file mode 100644 index 0000000000..e039de4f46 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_custom_resource_subresource_scale.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_custom\_resource\_subresource\_scale module +======================================================================== + +.. automodule:: kubernetes.client.models.v1_custom_resource_subresource_scale + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_custom_resource_subresources.rst b/doc/source/kubernetes.client.models.v1_custom_resource_subresources.rst new file mode 100644 index 0000000000..4cf1ebc1b5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_custom_resource_subresources.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_custom\_resource\_subresources module +================================================================== + +.. automodule:: kubernetes.client.models.v1_custom_resource_subresources + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_custom_resource_validation.rst b/doc/source/kubernetes.client.models.v1_custom_resource_validation.rst new file mode 100644 index 0000000000..dfb285e1ae --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_custom_resource_validation.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_custom\_resource\_validation module +================================================================ + +.. automodule:: kubernetes.client.models.v1_custom_resource_validation + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_daemon_endpoint.rst b/doc/source/kubernetes.client.models.v1_daemon_endpoint.rst new file mode 100644 index 0000000000..48cf9047ee --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_daemon_endpoint.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_daemon\_endpoint module +==================================================== + +.. automodule:: kubernetes.client.models.v1_daemon_endpoint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_daemon_set.rst b/doc/source/kubernetes.client.models.v1_daemon_set.rst new file mode 100644 index 0000000000..ebfe039a81 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_daemon_set.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_daemon\_set module +=============================================== + +.. automodule:: kubernetes.client.models.v1_daemon_set + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_daemon_set_condition.rst b/doc/source/kubernetes.client.models.v1_daemon_set_condition.rst new file mode 100644 index 0000000000..6b05842743 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_daemon_set_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_daemon\_set\_condition module +========================================================== + +.. automodule:: kubernetes.client.models.v1_daemon_set_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_daemon_set_list.rst b/doc/source/kubernetes.client.models.v1_daemon_set_list.rst new file mode 100644 index 0000000000..608404bc02 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_daemon_set_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_daemon\_set\_list module +===================================================== + +.. automodule:: kubernetes.client.models.v1_daemon_set_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_daemon_set_spec.rst b/doc/source/kubernetes.client.models.v1_daemon_set_spec.rst new file mode 100644 index 0000000000..c30c4a650f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_daemon_set_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_daemon\_set\_spec module +===================================================== + +.. automodule:: kubernetes.client.models.v1_daemon_set_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_daemon_set_status.rst b/doc/source/kubernetes.client.models.v1_daemon_set_status.rst new file mode 100644 index 0000000000..7be6bebf0e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_daemon_set_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_daemon\_set\_status module +======================================================= + +.. automodule:: kubernetes.client.models.v1_daemon_set_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_daemon_set_update_strategy.rst b/doc/source/kubernetes.client.models.v1_daemon_set_update_strategy.rst new file mode 100644 index 0000000000..1b502bcef5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_daemon_set_update_strategy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_daemon\_set\_update\_strategy module +================================================================= + +.. automodule:: kubernetes.client.models.v1_daemon_set_update_strategy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_delete_options.rst b/doc/source/kubernetes.client.models.v1_delete_options.rst new file mode 100644 index 0000000000..c97d0714f2 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_delete_options.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_delete\_options module +=================================================== + +.. automodule:: kubernetes.client.models.v1_delete_options + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_deployment.rst b/doc/source/kubernetes.client.models.v1_deployment.rst new file mode 100644 index 0000000000..92198a4e6f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_deployment.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_deployment module +============================================== + +.. automodule:: kubernetes.client.models.v1_deployment + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_deployment_condition.rst b/doc/source/kubernetes.client.models.v1_deployment_condition.rst new file mode 100644 index 0000000000..5b32513e9e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_deployment_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_deployment\_condition module +========================================================= + +.. automodule:: kubernetes.client.models.v1_deployment_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_deployment_list.rst b/doc/source/kubernetes.client.models.v1_deployment_list.rst new file mode 100644 index 0000000000..e5d95a3500 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_deployment_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_deployment\_list module +==================================================== + +.. automodule:: kubernetes.client.models.v1_deployment_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_deployment_spec.rst b/doc/source/kubernetes.client.models.v1_deployment_spec.rst new file mode 100644 index 0000000000..a6c8a17956 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_deployment_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_deployment\_spec module +==================================================== + +.. automodule:: kubernetes.client.models.v1_deployment_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_deployment_status.rst b/doc/source/kubernetes.client.models.v1_deployment_status.rst new file mode 100644 index 0000000000..c50e1319d4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_deployment_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_deployment\_status module +====================================================== + +.. automodule:: kubernetes.client.models.v1_deployment_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_deployment_strategy.rst b/doc/source/kubernetes.client.models.v1_deployment_strategy.rst new file mode 100644 index 0000000000..61a1cbaf68 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_deployment_strategy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_deployment\_strategy module +======================================================== + +.. automodule:: kubernetes.client.models.v1_deployment_strategy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device.rst b/doc/source/kubernetes.client.models.v1_device.rst new file mode 100644 index 0000000000..28860e2f05 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device module +========================================== + +.. automodule:: kubernetes.client.models.v1_device + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_allocation_configuration.rst b/doc/source/kubernetes.client.models.v1_device_allocation_configuration.rst new file mode 100644 index 0000000000..7330cb629f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_allocation_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_allocation\_configuration module +===================================================================== + +.. automodule:: kubernetes.client.models.v1_device_allocation_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_allocation_result.rst b/doc/source/kubernetes.client.models.v1_device_allocation_result.rst new file mode 100644 index 0000000000..8abc7e1d8e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_allocation\_result module +============================================================== + +.. automodule:: kubernetes.client.models.v1_device_allocation_result + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_attribute.rst b/doc/source/kubernetes.client.models.v1_device_attribute.rst new file mode 100644 index 0000000000..4c30ab8b7c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_attribute.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_attribute module +===================================================== + +.. automodule:: kubernetes.client.models.v1_device_attribute + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_capacity.rst b/doc/source/kubernetes.client.models.v1_device_capacity.rst new file mode 100644 index 0000000000..e66b25874a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_capacity.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_capacity module +==================================================== + +.. automodule:: kubernetes.client.models.v1_device_capacity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_claim.rst b/doc/source/kubernetes.client.models.v1_device_claim.rst new file mode 100644 index 0000000000..3ab8762760 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_claim.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_claim module +================================================= + +.. automodule:: kubernetes.client.models.v1_device_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_claim_configuration.rst b/doc/source/kubernetes.client.models.v1_device_claim_configuration.rst new file mode 100644 index 0000000000..5fc7b7eef0 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_claim_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_claim\_configuration module +================================================================ + +.. automodule:: kubernetes.client.models.v1_device_claim_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_class.rst b/doc/source/kubernetes.client.models.v1_device_class.rst new file mode 100644 index 0000000000..346d15793e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_class.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_class module +================================================= + +.. automodule:: kubernetes.client.models.v1_device_class + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_class_configuration.rst b/doc/source/kubernetes.client.models.v1_device_class_configuration.rst new file mode 100644 index 0000000000..29052e48a6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_class_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_class\_configuration module +================================================================ + +.. automodule:: kubernetes.client.models.v1_device_class_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_class_list.rst b/doc/source/kubernetes.client.models.v1_device_class_list.rst new file mode 100644 index 0000000000..80e5dfefc0 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_class\_list module +======================================================= + +.. automodule:: kubernetes.client.models.v1_device_class_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_class_spec.rst b/doc/source/kubernetes.client.models.v1_device_class_spec.rst new file mode 100644 index 0000000000..a9c660143c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_class_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_class\_spec module +======================================================= + +.. automodule:: kubernetes.client.models.v1_device_class_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_constraint.rst b/doc/source/kubernetes.client.models.v1_device_constraint.rst new file mode 100644 index 0000000000..65cb5eddcd --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_constraint.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_constraint module +====================================================== + +.. automodule:: kubernetes.client.models.v1_device_constraint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_counter_consumption.rst b/doc/source/kubernetes.client.models.v1_device_counter_consumption.rst new file mode 100644 index 0000000000..a1b5ca7844 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_counter_consumption.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_counter\_consumption module +================================================================ + +.. automodule:: kubernetes.client.models.v1_device_counter_consumption + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_derived_attribute.rst b/doc/source/kubernetes.client.models.v1_device_derived_attribute.rst new file mode 100644 index 0000000000..ff3d744457 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_derived_attribute.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_derived\_attribute module +============================================================== + +.. automodule:: kubernetes.client.models.v1_device_derived_attribute + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_request.rst b/doc/source/kubernetes.client.models.v1_device_request.rst new file mode 100644 index 0000000000..fc64c0b46a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_request.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_request module +=================================================== + +.. automodule:: kubernetes.client.models.v1_device_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_request_allocation_result.rst b/doc/source/kubernetes.client.models.v1_device_request_allocation_result.rst new file mode 100644 index 0000000000..0ebe58b1f6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_request_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_request\_allocation\_result module +======================================================================= + +.. automodule:: kubernetes.client.models.v1_device_request_allocation_result + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_selector.rst b/doc/source/kubernetes.client.models.v1_device_selector.rst new file mode 100644 index 0000000000..a3b2f0c2c2 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_selector.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_selector module +==================================================== + +.. automodule:: kubernetes.client.models.v1_device_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_sub_request.rst b/doc/source/kubernetes.client.models.v1_device_sub_request.rst new file mode 100644 index 0000000000..72b26ae816 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_sub_request.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_sub\_request module +======================================================== + +.. automodule:: kubernetes.client.models.v1_device_sub_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_taint.rst b/doc/source/kubernetes.client.models.v1_device_taint.rst new file mode 100644 index 0000000000..859a549110 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_taint.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_taint module +================================================= + +.. automodule:: kubernetes.client.models.v1_device_taint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_taint_rule.rst b/doc/source/kubernetes.client.models.v1_device_taint_rule.rst new file mode 100644 index 0000000000..b98a8b2a09 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_taint_rule.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_taint\_rule module +======================================================= + +.. automodule:: kubernetes.client.models.v1_device_taint_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_taint_rule_list.rst b/doc/source/kubernetes.client.models.v1_device_taint_rule_list.rst new file mode 100644 index 0000000000..23beb6caec --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_taint_rule_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_taint\_rule\_list module +============================================================= + +.. automodule:: kubernetes.client.models.v1_device_taint_rule_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_taint_rule_spec.rst b/doc/source/kubernetes.client.models.v1_device_taint_rule_spec.rst new file mode 100644 index 0000000000..6254cc0520 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_taint_rule_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_taint\_rule\_spec module +============================================================= + +.. automodule:: kubernetes.client.models.v1_device_taint_rule_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_taint_rule_status.rst b/doc/source/kubernetes.client.models.v1_device_taint_rule_status.rst new file mode 100644 index 0000000000..cc6c502de5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_taint_rule_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_taint\_rule\_status module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_device_taint_rule_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_taint_selector.rst b/doc/source/kubernetes.client.models.v1_device_taint_selector.rst new file mode 100644 index 0000000000..e2a45a52db --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_taint_selector.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_taint\_selector module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_device_taint_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_device_toleration.rst b/doc/source/kubernetes.client.models.v1_device_toleration.rst new file mode 100644 index 0000000000..175d6f8896 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_device_toleration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_device\_toleration module +====================================================== + +.. automodule:: kubernetes.client.models.v1_device_toleration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_downward_api_projection.rst b/doc/source/kubernetes.client.models.v1_downward_api_projection.rst new file mode 100644 index 0000000000..e11dbeb054 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_downward_api_projection.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_downward\_api\_projection module +============================================================= + +.. automodule:: kubernetes.client.models.v1_downward_api_projection + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_downward_api_volume_file.rst b/doc/source/kubernetes.client.models.v1_downward_api_volume_file.rst new file mode 100644 index 0000000000..cff0db2693 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_downward_api_volume_file.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_downward\_api\_volume\_file module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_downward_api_volume_file + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_downward_api_volume_source.rst b/doc/source/kubernetes.client.models.v1_downward_api_volume_source.rst new file mode 100644 index 0000000000..c79c884334 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_downward_api_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_downward\_api\_volume\_source module +================================================================= + +.. automodule:: kubernetes.client.models.v1_downward_api_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_empty_dir_volume_source.rst b/doc/source/kubernetes.client.models.v1_empty_dir_volume_source.rst new file mode 100644 index 0000000000..65bec6b8d8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_empty_dir_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_empty\_dir\_volume\_source module +============================================================== + +.. automodule:: kubernetes.client.models.v1_empty_dir_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_endpoint.rst b/doc/source/kubernetes.client.models.v1_endpoint.rst new file mode 100644 index 0000000000..6162eb7ec9 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_endpoint.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_endpoint module +============================================ + +.. automodule:: kubernetes.client.models.v1_endpoint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_endpoint_address.rst b/doc/source/kubernetes.client.models.v1_endpoint_address.rst new file mode 100644 index 0000000000..20e1d9b446 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_endpoint_address.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_endpoint\_address module +===================================================== + +.. automodule:: kubernetes.client.models.v1_endpoint_address + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_endpoint_conditions.rst b/doc/source/kubernetes.client.models.v1_endpoint_conditions.rst new file mode 100644 index 0000000000..b60b46cda1 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_endpoint_conditions.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_endpoint\_conditions module +======================================================== + +.. automodule:: kubernetes.client.models.v1_endpoint_conditions + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_endpoint_hints.rst b/doc/source/kubernetes.client.models.v1_endpoint_hints.rst new file mode 100644 index 0000000000..1a1401baa7 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_endpoint_hints.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_endpoint\_hints module +=================================================== + +.. automodule:: kubernetes.client.models.v1_endpoint_hints + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_endpoint_slice.rst b/doc/source/kubernetes.client.models.v1_endpoint_slice.rst new file mode 100644 index 0000000000..f0edb27277 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_endpoint_slice.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_endpoint\_slice module +=================================================== + +.. automodule:: kubernetes.client.models.v1_endpoint_slice + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_endpoint_slice_list.rst b/doc/source/kubernetes.client.models.v1_endpoint_slice_list.rst new file mode 100644 index 0000000000..32cdc5bae0 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_endpoint_slice_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_endpoint\_slice\_list module +========================================================= + +.. automodule:: kubernetes.client.models.v1_endpoint_slice_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_endpoint_subset.rst b/doc/source/kubernetes.client.models.v1_endpoint_subset.rst new file mode 100644 index 0000000000..b3e9e738c0 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_endpoint_subset.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_endpoint\_subset module +==================================================== + +.. automodule:: kubernetes.client.models.v1_endpoint_subset + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_endpoints.rst b/doc/source/kubernetes.client.models.v1_endpoints.rst new file mode 100644 index 0000000000..2a0f621008 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_endpoints.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_endpoints module +============================================= + +.. automodule:: kubernetes.client.models.v1_endpoints + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_endpoints_list.rst b/doc/source/kubernetes.client.models.v1_endpoints_list.rst new file mode 100644 index 0000000000..89a1d42a3a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_endpoints_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_endpoints\_list module +=================================================== + +.. automodule:: kubernetes.client.models.v1_endpoints_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_env_from_source.rst b/doc/source/kubernetes.client.models.v1_env_from_source.rst new file mode 100644 index 0000000000..68b5986df2 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_env_from_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_env\_from\_source module +===================================================== + +.. automodule:: kubernetes.client.models.v1_env_from_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_env_var.rst b/doc/source/kubernetes.client.models.v1_env_var.rst new file mode 100644 index 0000000000..1630c07563 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_env_var.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_env\_var module +============================================ + +.. automodule:: kubernetes.client.models.v1_env_var + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_env_var_source.rst b/doc/source/kubernetes.client.models.v1_env_var_source.rst new file mode 100644 index 0000000000..8f8a3d1b5a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_env_var_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_env\_var\_source module +==================================================== + +.. automodule:: kubernetes.client.models.v1_env_var_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ephemeral_container.rst b/doc/source/kubernetes.client.models.v1_ephemeral_container.rst new file mode 100644 index 0000000000..3867d5e8c9 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ephemeral_container.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ephemeral\_container module +======================================================== + +.. automodule:: kubernetes.client.models.v1_ephemeral_container + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ephemeral_volume_source.rst b/doc/source/kubernetes.client.models.v1_ephemeral_volume_source.rst new file mode 100644 index 0000000000..f98d128ff8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ephemeral_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ephemeral\_volume\_source module +============================================================= + +.. automodule:: kubernetes.client.models.v1_ephemeral_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_event_source.rst b/doc/source/kubernetes.client.models.v1_event_source.rst new file mode 100644 index 0000000000..67249f85e9 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_event_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_event\_source module +================================================= + +.. automodule:: kubernetes.client.models.v1_event_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_eviction.rst b/doc/source/kubernetes.client.models.v1_eviction.rst new file mode 100644 index 0000000000..43d345fa65 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_eviction.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_eviction module +============================================ + +.. automodule:: kubernetes.client.models.v1_eviction + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_eviction_responder.rst b/doc/source/kubernetes.client.models.v1_eviction_responder.rst new file mode 100644 index 0000000000..07599d3445 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_eviction_responder.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_eviction\_responder module +======================================================= + +.. automodule:: kubernetes.client.models.v1_eviction_responder + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_exact_device_request.rst b/doc/source/kubernetes.client.models.v1_exact_device_request.rst new file mode 100644 index 0000000000..8b19586eb4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_exact_device_request.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_exact\_device\_request module +========================================================== + +.. automodule:: kubernetes.client.models.v1_exact_device_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_exec_action.rst b/doc/source/kubernetes.client.models.v1_exec_action.rst new file mode 100644 index 0000000000..db10bde3c5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_exec_action.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_exec\_action module +================================================ + +.. automodule:: kubernetes.client.models.v1_exec_action + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_exempt_priority_level_configuration.rst b/doc/source/kubernetes.client.models.v1_exempt_priority_level_configuration.rst new file mode 100644 index 0000000000..b5895ed48a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_exempt_priority_level_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_exempt\_priority\_level\_configuration module +========================================================================== + +.. automodule:: kubernetes.client.models.v1_exempt_priority_level_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_expression_warning.rst b/doc/source/kubernetes.client.models.v1_expression_warning.rst new file mode 100644 index 0000000000..1f168ed454 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_expression_warning.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_expression\_warning module +======================================================= + +.. automodule:: kubernetes.client.models.v1_expression_warning + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_external_documentation.rst b/doc/source/kubernetes.client.models.v1_external_documentation.rst new file mode 100644 index 0000000000..fd0fbc077c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_external_documentation.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_external\_documentation module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_external_documentation + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_fc_volume_source.rst b/doc/source/kubernetes.client.models.v1_fc_volume_source.rst new file mode 100644 index 0000000000..c0cd52dd22 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_fc_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_fc\_volume\_source module +====================================================== + +.. automodule:: kubernetes.client.models.v1_fc_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_field_selector_attributes.rst b/doc/source/kubernetes.client.models.v1_field_selector_attributes.rst new file mode 100644 index 0000000000..611c8419f1 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_field_selector_attributes.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_field\_selector\_attributes module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_field_selector_attributes + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_field_selector_requirement.rst b/doc/source/kubernetes.client.models.v1_field_selector_requirement.rst new file mode 100644 index 0000000000..7978c3ff0f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_field_selector_requirement.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_field\_selector\_requirement module +================================================================ + +.. automodule:: kubernetes.client.models.v1_field_selector_requirement + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_file_key_selector.rst b/doc/source/kubernetes.client.models.v1_file_key_selector.rst new file mode 100644 index 0000000000..b83a6ef3fd --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_file_key_selector.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_file\_key\_selector module +======================================================= + +.. automodule:: kubernetes.client.models.v1_file_key_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_flex_persistent_volume_source.rst b/doc/source/kubernetes.client.models.v1_flex_persistent_volume_source.rst new file mode 100644 index 0000000000..b358767de6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_flex_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_flex\_persistent\_volume\_source module +==================================================================== + +.. automodule:: kubernetes.client.models.v1_flex_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_flex_volume_source.rst b/doc/source/kubernetes.client.models.v1_flex_volume_source.rst new file mode 100644 index 0000000000..733462fea8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_flex_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_flex\_volume\_source module +======================================================== + +.. automodule:: kubernetes.client.models.v1_flex_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_flocker_volume_source.rst b/doc/source/kubernetes.client.models.v1_flocker_volume_source.rst new file mode 100644 index 0000000000..f5ec3888e4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_flocker_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_flocker\_volume\_source module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_flocker_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_flow_distinguisher_method.rst b/doc/source/kubernetes.client.models.v1_flow_distinguisher_method.rst new file mode 100644 index 0000000000..77945713bd --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_flow_distinguisher_method.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_flow\_distinguisher\_method module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_flow_distinguisher_method + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_flow_schema.rst b/doc/source/kubernetes.client.models.v1_flow_schema.rst new file mode 100644 index 0000000000..a5c82aeece --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_flow_schema.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_flow\_schema module +================================================ + +.. automodule:: kubernetes.client.models.v1_flow_schema + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_flow_schema_condition.rst b/doc/source/kubernetes.client.models.v1_flow_schema_condition.rst new file mode 100644 index 0000000000..0665065b18 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_flow_schema_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_flow\_schema\_condition module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_flow_schema_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_flow_schema_list.rst b/doc/source/kubernetes.client.models.v1_flow_schema_list.rst new file mode 100644 index 0000000000..c17b2fd1ce --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_flow_schema_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_flow\_schema\_list module +====================================================== + +.. automodule:: kubernetes.client.models.v1_flow_schema_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_flow_schema_spec.rst b/doc/source/kubernetes.client.models.v1_flow_schema_spec.rst new file mode 100644 index 0000000000..793ce57ad2 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_flow_schema_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_flow\_schema\_spec module +====================================================== + +.. automodule:: kubernetes.client.models.v1_flow_schema_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_flow_schema_status.rst b/doc/source/kubernetes.client.models.v1_flow_schema_status.rst new file mode 100644 index 0000000000..0a52b0995e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_flow_schema_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_flow\_schema\_status module +======================================================== + +.. automodule:: kubernetes.client.models.v1_flow_schema_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_for_node.rst b/doc/source/kubernetes.client.models.v1_for_node.rst new file mode 100644 index 0000000000..6c8b70a733 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_for_node.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_for\_node module +============================================= + +.. automodule:: kubernetes.client.models.v1_for_node + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_for_zone.rst b/doc/source/kubernetes.client.models.v1_for_zone.rst new file mode 100644 index 0000000000..94feefdb93 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_for_zone.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_for\_zone module +============================================= + +.. automodule:: kubernetes.client.models.v1_for_zone + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_gce_persistent_disk_volume_source.rst b/doc/source/kubernetes.client.models.v1_gce_persistent_disk_volume_source.rst new file mode 100644 index 0000000000..6d7ad5e1a9 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_gce_persistent_disk_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_gce\_persistent\_disk\_volume\_source module +========================================================================= + +.. automodule:: kubernetes.client.models.v1_gce_persistent_disk_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_git_repo_volume_source.rst b/doc/source/kubernetes.client.models.v1_git_repo_volume_source.rst new file mode 100644 index 0000000000..0a2135e44f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_git_repo_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_git\_repo\_volume\_source module +============================================================= + +.. automodule:: kubernetes.client.models.v1_git_repo_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_glusterfs_persistent_volume_source.rst b/doc/source/kubernetes.client.models.v1_glusterfs_persistent_volume_source.rst new file mode 100644 index 0000000000..72fc5d8b00 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_glusterfs_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_glusterfs\_persistent\_volume\_source module +========================================================================= + +.. automodule:: kubernetes.client.models.v1_glusterfs_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_glusterfs_volume_source.rst b/doc/source/kubernetes.client.models.v1_glusterfs_volume_source.rst new file mode 100644 index 0000000000..6fe82f48e3 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_glusterfs_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_glusterfs\_volume\_source module +============================================================= + +.. automodule:: kubernetes.client.models.v1_glusterfs_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_group_resource.rst b/doc/source/kubernetes.client.models.v1_group_resource.rst new file mode 100644 index 0000000000..4c8b68f337 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_group_resource.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_group\_resource module +=================================================== + +.. automodule:: kubernetes.client.models.v1_group_resource + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_group_subject.rst b/doc/source/kubernetes.client.models.v1_group_subject.rst new file mode 100644 index 0000000000..8319172e98 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_group_subject.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_group\_subject module +================================================== + +.. automodule:: kubernetes.client.models.v1_group_subject + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_group_version_for_discovery.rst b/doc/source/kubernetes.client.models.v1_group_version_for_discovery.rst new file mode 100644 index 0000000000..99a36f8c96 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_group_version_for_discovery.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_group\_version\_for\_discovery module +================================================================== + +.. automodule:: kubernetes.client.models.v1_group_version_for_discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_group_version_kind.rst b/doc/source/kubernetes.client.models.v1_group_version_kind.rst new file mode 100644 index 0000000000..0845e1c673 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_group_version_kind.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_group\_version\_kind module +======================================================== + +.. automodule:: kubernetes.client.models.v1_group_version_kind + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_grpc_action.rst b/doc/source/kubernetes.client.models.v1_grpc_action.rst new file mode 100644 index 0000000000..c65bf23a30 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_grpc_action.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_grpc\_action module +================================================ + +.. automodule:: kubernetes.client.models.v1_grpc_action + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_horizontal_pod_autoscaler.rst b/doc/source/kubernetes.client.models.v1_horizontal_pod_autoscaler.rst new file mode 100644 index 0000000000..2fdf935608 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_horizontal_pod_autoscaler.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_horizontal\_pod\_autoscaler module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_horizontal_pod_autoscaler + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_horizontal_pod_autoscaler_list.rst b/doc/source/kubernetes.client.models.v1_horizontal_pod_autoscaler_list.rst new file mode 100644 index 0000000000..b356207d90 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_horizontal_pod_autoscaler_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_horizontal\_pod\_autoscaler\_list module +===================================================================== + +.. automodule:: kubernetes.client.models.v1_horizontal_pod_autoscaler_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_horizontal_pod_autoscaler_spec.rst b/doc/source/kubernetes.client.models.v1_horizontal_pod_autoscaler_spec.rst new file mode 100644 index 0000000000..6fe380b981 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_horizontal_pod_autoscaler_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_horizontal\_pod\_autoscaler\_spec module +===================================================================== + +.. automodule:: kubernetes.client.models.v1_horizontal_pod_autoscaler_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_horizontal_pod_autoscaler_status.rst b/doc/source/kubernetes.client.models.v1_horizontal_pod_autoscaler_status.rst new file mode 100644 index 0000000000..b7c7cb3829 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_horizontal_pod_autoscaler_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_horizontal\_pod\_autoscaler\_status module +======================================================================= + +.. automodule:: kubernetes.client.models.v1_horizontal_pod_autoscaler_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_host_alias.rst b/doc/source/kubernetes.client.models.v1_host_alias.rst new file mode 100644 index 0000000000..9baf1764d6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_host_alias.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_host\_alias module +=============================================== + +.. automodule:: kubernetes.client.models.v1_host_alias + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_host_ip.rst b/doc/source/kubernetes.client.models.v1_host_ip.rst new file mode 100644 index 0000000000..b692fad965 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_host_ip.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_host\_ip module +============================================ + +.. automodule:: kubernetes.client.models.v1_host_ip + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_host_path_volume_source.rst b/doc/source/kubernetes.client.models.v1_host_path_volume_source.rst new file mode 100644 index 0000000000..f1ae58841a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_host_path_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_host\_path\_volume\_source module +============================================================== + +.. automodule:: kubernetes.client.models.v1_host_path_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_http_get_action.rst b/doc/source/kubernetes.client.models.v1_http_get_action.rst new file mode 100644 index 0000000000..48483aa258 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_http_get_action.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_http\_get\_action module +===================================================== + +.. automodule:: kubernetes.client.models.v1_http_get_action + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_http_header.rst b/doc/source/kubernetes.client.models.v1_http_header.rst new file mode 100644 index 0000000000..0c08ecf0e8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_http_header.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_http\_header module +================================================ + +.. automodule:: kubernetes.client.models.v1_http_header + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_http_ingress_path.rst b/doc/source/kubernetes.client.models.v1_http_ingress_path.rst new file mode 100644 index 0000000000..5bf6510e1e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_http_ingress_path.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_http\_ingress\_path module +======================================================= + +.. automodule:: kubernetes.client.models.v1_http_ingress_path + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_http_ingress_rule_value.rst b/doc/source/kubernetes.client.models.v1_http_ingress_rule_value.rst new file mode 100644 index 0000000000..2e98a6a7c8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_http_ingress_rule_value.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_http\_ingress\_rule\_value module +============================================================== + +.. automodule:: kubernetes.client.models.v1_http_ingress_rule_value + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_image_volume_source.rst b/doc/source/kubernetes.client.models.v1_image_volume_source.rst new file mode 100644 index 0000000000..b640d36ef7 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_image_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_image\_volume\_source module +========================================================= + +.. automodule:: kubernetes.client.models.v1_image_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_image_volume_status.rst b/doc/source/kubernetes.client.models.v1_image_volume_status.rst new file mode 100644 index 0000000000..daa849c684 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_image_volume_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_image\_volume\_status module +========================================================= + +.. automodule:: kubernetes.client.models.v1_image_volume_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ingress.rst b/doc/source/kubernetes.client.models.v1_ingress.rst new file mode 100644 index 0000000000..d13c620603 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ingress.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ingress module +=========================================== + +.. automodule:: kubernetes.client.models.v1_ingress + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ingress_backend.rst b/doc/source/kubernetes.client.models.v1_ingress_backend.rst new file mode 100644 index 0000000000..9c64552977 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ingress_backend.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ingress\_backend module +==================================================== + +.. automodule:: kubernetes.client.models.v1_ingress_backend + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ingress_class.rst b/doc/source/kubernetes.client.models.v1_ingress_class.rst new file mode 100644 index 0000000000..f197d83723 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ingress_class.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ingress\_class module +================================================== + +.. automodule:: kubernetes.client.models.v1_ingress_class + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ingress_class_list.rst b/doc/source/kubernetes.client.models.v1_ingress_class_list.rst new file mode 100644 index 0000000000..cb51218803 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ingress_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ingress\_class\_list module +======================================================== + +.. automodule:: kubernetes.client.models.v1_ingress_class_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ingress_class_parameters_reference.rst b/doc/source/kubernetes.client.models.v1_ingress_class_parameters_reference.rst new file mode 100644 index 0000000000..f959679c25 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ingress_class_parameters_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ingress\_class\_parameters\_reference module +========================================================================= + +.. automodule:: kubernetes.client.models.v1_ingress_class_parameters_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ingress_class_spec.rst b/doc/source/kubernetes.client.models.v1_ingress_class_spec.rst new file mode 100644 index 0000000000..2328673ac5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ingress_class_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ingress\_class\_spec module +======================================================== + +.. automodule:: kubernetes.client.models.v1_ingress_class_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ingress_list.rst b/doc/source/kubernetes.client.models.v1_ingress_list.rst new file mode 100644 index 0000000000..17677d7406 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ingress_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ingress\_list module +================================================= + +.. automodule:: kubernetes.client.models.v1_ingress_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ingress_load_balancer_ingress.rst b/doc/source/kubernetes.client.models.v1_ingress_load_balancer_ingress.rst new file mode 100644 index 0000000000..4e4e38f295 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ingress_load_balancer_ingress.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ingress\_load\_balancer\_ingress module +==================================================================== + +.. automodule:: kubernetes.client.models.v1_ingress_load_balancer_ingress + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ingress_load_balancer_status.rst b/doc/source/kubernetes.client.models.v1_ingress_load_balancer_status.rst new file mode 100644 index 0000000000..0374333937 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ingress_load_balancer_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ingress\_load\_balancer\_status module +=================================================================== + +.. automodule:: kubernetes.client.models.v1_ingress_load_balancer_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ingress_port_status.rst b/doc/source/kubernetes.client.models.v1_ingress_port_status.rst new file mode 100644 index 0000000000..0c68fef1fb --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ingress_port_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ingress\_port\_status module +========================================================= + +.. automodule:: kubernetes.client.models.v1_ingress_port_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ingress_rule.rst b/doc/source/kubernetes.client.models.v1_ingress_rule.rst new file mode 100644 index 0000000000..0016129bc4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ingress_rule.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ingress\_rule module +================================================= + +.. automodule:: kubernetes.client.models.v1_ingress_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ingress_service_backend.rst b/doc/source/kubernetes.client.models.v1_ingress_service_backend.rst new file mode 100644 index 0000000000..5c7854b6ba --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ingress_service_backend.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ingress\_service\_backend module +============================================================= + +.. automodule:: kubernetes.client.models.v1_ingress_service_backend + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ingress_spec.rst b/doc/source/kubernetes.client.models.v1_ingress_spec.rst new file mode 100644 index 0000000000..4b7fd8e940 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ingress_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ingress\_spec module +================================================= + +.. automodule:: kubernetes.client.models.v1_ingress_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ingress_status.rst b/doc/source/kubernetes.client.models.v1_ingress_status.rst new file mode 100644 index 0000000000..ae27491a3f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ingress_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ingress\_status module +=================================================== + +.. automodule:: kubernetes.client.models.v1_ingress_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ingress_tls.rst b/doc/source/kubernetes.client.models.v1_ingress_tls.rst new file mode 100644 index 0000000000..be574a276e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ingress_tls.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ingress\_tls module +================================================ + +.. automodule:: kubernetes.client.models.v1_ingress_tls + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ip_address.rst b/doc/source/kubernetes.client.models.v1_ip_address.rst new file mode 100644 index 0000000000..99645ce2f4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ip_address.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ip\_address module +=============================================== + +.. automodule:: kubernetes.client.models.v1_ip_address + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ip_address_list.rst b/doc/source/kubernetes.client.models.v1_ip_address_list.rst new file mode 100644 index 0000000000..e0004d9f15 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ip_address_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ip\_address\_list module +===================================================== + +.. automodule:: kubernetes.client.models.v1_ip_address_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ip_address_spec.rst b/doc/source/kubernetes.client.models.v1_ip_address_spec.rst new file mode 100644 index 0000000000..27325337cd --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ip_address_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ip\_address\_spec module +===================================================== + +.. automodule:: kubernetes.client.models.v1_ip_address_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_ip_block.rst b/doc/source/kubernetes.client.models.v1_ip_block.rst new file mode 100644 index 0000000000..27f0c3b177 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_ip_block.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_ip\_block module +============================================= + +.. automodule:: kubernetes.client.models.v1_ip_block + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_iscsi_persistent_volume_source.rst b/doc/source/kubernetes.client.models.v1_iscsi_persistent_volume_source.rst new file mode 100644 index 0000000000..02acd6bc6c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_iscsi_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_iscsi\_persistent\_volume\_source module +===================================================================== + +.. automodule:: kubernetes.client.models.v1_iscsi_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_iscsi_volume_source.rst b/doc/source/kubernetes.client.models.v1_iscsi_volume_source.rst new file mode 100644 index 0000000000..92bc5adf76 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_iscsi_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_iscsi\_volume\_source module +========================================================= + +.. automodule:: kubernetes.client.models.v1_iscsi_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_job.rst b/doc/source/kubernetes.client.models.v1_job.rst new file mode 100644 index 0000000000..739704e6ec --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_job.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_job module +======================================= + +.. automodule:: kubernetes.client.models.v1_job + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_job_condition.rst b/doc/source/kubernetes.client.models.v1_job_condition.rst new file mode 100644 index 0000000000..6de84b0345 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_job_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_job\_condition module +================================================== + +.. automodule:: kubernetes.client.models.v1_job_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_job_list.rst b/doc/source/kubernetes.client.models.v1_job_list.rst new file mode 100644 index 0000000000..1898a2710d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_job_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_job\_list module +============================================= + +.. automodule:: kubernetes.client.models.v1_job_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_job_scheduling_configuration.rst b/doc/source/kubernetes.client.models.v1_job_scheduling_configuration.rst new file mode 100644 index 0000000000..2fa1bec5af --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_job_scheduling_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_job\_scheduling\_configuration module +================================================================== + +.. automodule:: kubernetes.client.models.v1_job_scheduling_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_job_spec.rst b/doc/source/kubernetes.client.models.v1_job_spec.rst new file mode 100644 index 0000000000..77359dc1eb --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_job_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_job\_spec module +============================================= + +.. automodule:: kubernetes.client.models.v1_job_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_job_status.rst b/doc/source/kubernetes.client.models.v1_job_status.rst new file mode 100644 index 0000000000..86df33435c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_job_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_job\_status module +=============================================== + +.. automodule:: kubernetes.client.models.v1_job_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_job_template_spec.rst b/doc/source/kubernetes.client.models.v1_job_template_spec.rst new file mode 100644 index 0000000000..1c0ecb031f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_job_template_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_job\_template\_spec module +======================================================= + +.. automodule:: kubernetes.client.models.v1_job_template_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_json_patch.rst b/doc/source/kubernetes.client.models.v1_json_patch.rst new file mode 100644 index 0000000000..7e100f9e7a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_json_patch.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_json\_patch module +=============================================== + +.. automodule:: kubernetes.client.models.v1_json_patch + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_json_schema_props.rst b/doc/source/kubernetes.client.models.v1_json_schema_props.rst new file mode 100644 index 0000000000..ff8ad3ac93 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_json_schema_props.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_json\_schema\_props module +======================================================= + +.. automodule:: kubernetes.client.models.v1_json_schema_props + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_key_to_path.rst b/doc/source/kubernetes.client.models.v1_key_to_path.rst new file mode 100644 index 0000000000..361e9eba1e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_key_to_path.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_key\_to\_path module +================================================= + +.. automodule:: kubernetes.client.models.v1_key_to_path + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_label_selector.rst b/doc/source/kubernetes.client.models.v1_label_selector.rst new file mode 100644 index 0000000000..ea2531b304 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_label_selector.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_label\_selector module +=================================================== + +.. automodule:: kubernetes.client.models.v1_label_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_label_selector_attributes.rst b/doc/source/kubernetes.client.models.v1_label_selector_attributes.rst new file mode 100644 index 0000000000..22a1f241c8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_label_selector_attributes.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_label\_selector\_attributes module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_label_selector_attributes + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_label_selector_requirement.rst b/doc/source/kubernetes.client.models.v1_label_selector_requirement.rst new file mode 100644 index 0000000000..ea205df124 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_label_selector_requirement.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_label\_selector\_requirement module +================================================================ + +.. automodule:: kubernetes.client.models.v1_label_selector_requirement + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_lease.rst b/doc/source/kubernetes.client.models.v1_lease.rst new file mode 100644 index 0000000000..e0d4ff8c6f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_lease.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_lease module +========================================= + +.. automodule:: kubernetes.client.models.v1_lease + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_lease_list.rst b/doc/source/kubernetes.client.models.v1_lease_list.rst new file mode 100644 index 0000000000..d2c4cf8eb4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_lease_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_lease\_list module +=============================================== + +.. automodule:: kubernetes.client.models.v1_lease_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_lease_spec.rst b/doc/source/kubernetes.client.models.v1_lease_spec.rst new file mode 100644 index 0000000000..b2a41821b4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_lease_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_lease\_spec module +=============================================== + +.. automodule:: kubernetes.client.models.v1_lease_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_lifecycle.rst b/doc/source/kubernetes.client.models.v1_lifecycle.rst new file mode 100644 index 0000000000..23638f4960 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_lifecycle.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_lifecycle module +============================================= + +.. automodule:: kubernetes.client.models.v1_lifecycle + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_lifecycle_handler.rst b/doc/source/kubernetes.client.models.v1_lifecycle_handler.rst new file mode 100644 index 0000000000..e63901c570 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_lifecycle_handler.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_lifecycle\_handler module +====================================================== + +.. automodule:: kubernetes.client.models.v1_lifecycle_handler + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_limit_range.rst b/doc/source/kubernetes.client.models.v1_limit_range.rst new file mode 100644 index 0000000000..2e66257fd2 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_limit_range.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_limit\_range module +================================================ + +.. automodule:: kubernetes.client.models.v1_limit_range + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_limit_range_item.rst b/doc/source/kubernetes.client.models.v1_limit_range_item.rst new file mode 100644 index 0000000000..f20827001a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_limit_range_item.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_limit\_range\_item module +====================================================== + +.. automodule:: kubernetes.client.models.v1_limit_range_item + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_limit_range_list.rst b/doc/source/kubernetes.client.models.v1_limit_range_list.rst new file mode 100644 index 0000000000..ca4e589008 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_limit_range_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_limit\_range\_list module +====================================================== + +.. automodule:: kubernetes.client.models.v1_limit_range_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_limit_range_spec.rst b/doc/source/kubernetes.client.models.v1_limit_range_spec.rst new file mode 100644 index 0000000000..b691bcc768 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_limit_range_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_limit\_range\_spec module +====================================================== + +.. automodule:: kubernetes.client.models.v1_limit_range_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_limit_response.rst b/doc/source/kubernetes.client.models.v1_limit_response.rst new file mode 100644 index 0000000000..4122f04127 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_limit_response.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_limit\_response module +=================================================== + +.. automodule:: kubernetes.client.models.v1_limit_response + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_limited_priority_level_configuration.rst b/doc/source/kubernetes.client.models.v1_limited_priority_level_configuration.rst new file mode 100644 index 0000000000..bb949c75d4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_limited_priority_level_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_limited\_priority\_level\_configuration module +=========================================================================== + +.. automodule:: kubernetes.client.models.v1_limited_priority_level_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_linux_container_user.rst b/doc/source/kubernetes.client.models.v1_linux_container_user.rst new file mode 100644 index 0000000000..7c20f91545 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_linux_container_user.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_linux\_container\_user module +========================================================== + +.. automodule:: kubernetes.client.models.v1_linux_container_user + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_list_meta.rst b/doc/source/kubernetes.client.models.v1_list_meta.rst new file mode 100644 index 0000000000..a91e90e4ae --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_list_meta.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_list\_meta module +============================================== + +.. automodule:: kubernetes.client.models.v1_list_meta + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_load_balancer_ingress.rst b/doc/source/kubernetes.client.models.v1_load_balancer_ingress.rst new file mode 100644 index 0000000000..64551e89af --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_load_balancer_ingress.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_load\_balancer\_ingress module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_load_balancer_ingress + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_load_balancer_status.rst b/doc/source/kubernetes.client.models.v1_load_balancer_status.rst new file mode 100644 index 0000000000..fc154443a2 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_load_balancer_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_load\_balancer\_status module +========================================================== + +.. automodule:: kubernetes.client.models.v1_load_balancer_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_local_object_reference.rst b/doc/source/kubernetes.client.models.v1_local_object_reference.rst new file mode 100644 index 0000000000..7fc00072c8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_local_object_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_local\_object\_reference module +============================================================ + +.. automodule:: kubernetes.client.models.v1_local_object_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_local_subject_access_review.rst b/doc/source/kubernetes.client.models.v1_local_subject_access_review.rst new file mode 100644 index 0000000000..eee7c73a7a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_local_subject_access_review.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_local\_subject\_access\_review module +================================================================== + +.. automodule:: kubernetes.client.models.v1_local_subject_access_review + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_local_volume_source.rst b/doc/source/kubernetes.client.models.v1_local_volume_source.rst new file mode 100644 index 0000000000..8278cea3ae --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_local_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_local\_volume\_source module +========================================================= + +.. automodule:: kubernetes.client.models.v1_local_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_managed_fields_entry.rst b/doc/source/kubernetes.client.models.v1_managed_fields_entry.rst new file mode 100644 index 0000000000..2aef5b170d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_managed_fields_entry.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_managed\_fields\_entry module +========================================================== + +.. automodule:: kubernetes.client.models.v1_managed_fields_entry + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_match_condition.rst b/doc/source/kubernetes.client.models.v1_match_condition.rst new file mode 100644 index 0000000000..e68dfffd40 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_match_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_match\_condition module +==================================================== + +.. automodule:: kubernetes.client.models.v1_match_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_match_resources.rst b/doc/source/kubernetes.client.models.v1_match_resources.rst new file mode 100644 index 0000000000..360e207ae5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_match_resources.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_match\_resources module +==================================================== + +.. automodule:: kubernetes.client.models.v1_match_resources + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_modify_volume_status.rst b/doc/source/kubernetes.client.models.v1_modify_volume_status.rst new file mode 100644 index 0000000000..ae3be74665 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_modify_volume_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_modify\_volume\_status module +========================================================== + +.. automodule:: kubernetes.client.models.v1_modify_volume_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_mutating_admission_policy.rst b/doc/source/kubernetes.client.models.v1_mutating_admission_policy.rst new file mode 100644 index 0000000000..9fa8cbe5ac --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_mutating_admission_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_mutating\_admission\_policy module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_mutating_admission_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_mutating_admission_policy_binding.rst b/doc/source/kubernetes.client.models.v1_mutating_admission_policy_binding.rst new file mode 100644 index 0000000000..1c94ae3283 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_mutating_admission_policy_binding.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_mutating\_admission\_policy\_binding module +======================================================================== + +.. automodule:: kubernetes.client.models.v1_mutating_admission_policy_binding + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_mutating_admission_policy_binding_list.rst b/doc/source/kubernetes.client.models.v1_mutating_admission_policy_binding_list.rst new file mode 100644 index 0000000000..9bae360915 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_mutating_admission_policy_binding_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_mutating\_admission\_policy\_binding\_list module +============================================================================== + +.. automodule:: kubernetes.client.models.v1_mutating_admission_policy_binding_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_mutating_admission_policy_binding_spec.rst b/doc/source/kubernetes.client.models.v1_mutating_admission_policy_binding_spec.rst new file mode 100644 index 0000000000..6b267d56d8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_mutating_admission_policy_binding_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_mutating\_admission\_policy\_binding\_spec module +============================================================================== + +.. automodule:: kubernetes.client.models.v1_mutating_admission_policy_binding_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_mutating_admission_policy_list.rst b/doc/source/kubernetes.client.models.v1_mutating_admission_policy_list.rst new file mode 100644 index 0000000000..f0a16bec88 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_mutating_admission_policy_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_mutating\_admission\_policy\_list module +===================================================================== + +.. automodule:: kubernetes.client.models.v1_mutating_admission_policy_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_mutating_admission_policy_spec.rst b/doc/source/kubernetes.client.models.v1_mutating_admission_policy_spec.rst new file mode 100644 index 0000000000..8106807b32 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_mutating_admission_policy_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_mutating\_admission\_policy\_spec module +===================================================================== + +.. automodule:: kubernetes.client.models.v1_mutating_admission_policy_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_mutating_webhook.rst b/doc/source/kubernetes.client.models.v1_mutating_webhook.rst new file mode 100644 index 0000000000..65b9c97952 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_mutating_webhook.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_mutating\_webhook module +===================================================== + +.. automodule:: kubernetes.client.models.v1_mutating_webhook + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_mutating_webhook_configuration.rst b/doc/source/kubernetes.client.models.v1_mutating_webhook_configuration.rst new file mode 100644 index 0000000000..7f1eaa911a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_mutating_webhook_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_mutating\_webhook\_configuration module +==================================================================== + +.. automodule:: kubernetes.client.models.v1_mutating_webhook_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_mutating_webhook_configuration_list.rst b/doc/source/kubernetes.client.models.v1_mutating_webhook_configuration_list.rst new file mode 100644 index 0000000000..254203b0c3 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_mutating_webhook_configuration_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_mutating\_webhook\_configuration\_list module +========================================================================== + +.. automodule:: kubernetes.client.models.v1_mutating_webhook_configuration_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_mutation.rst b/doc/source/kubernetes.client.models.v1_mutation.rst new file mode 100644 index 0000000000..bd28fe8cd0 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_mutation.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_mutation module +============================================ + +.. automodule:: kubernetes.client.models.v1_mutation + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_named_rule_with_operations.rst b/doc/source/kubernetes.client.models.v1_named_rule_with_operations.rst new file mode 100644 index 0000000000..cf1b7bef8b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_named_rule_with_operations.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_named\_rule\_with\_operations module +================================================================= + +.. automodule:: kubernetes.client.models.v1_named_rule_with_operations + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_namespace.rst b/doc/source/kubernetes.client.models.v1_namespace.rst new file mode 100644 index 0000000000..46d7b728c2 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_namespace.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_namespace module +============================================= + +.. automodule:: kubernetes.client.models.v1_namespace + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_namespace_condition.rst b/doc/source/kubernetes.client.models.v1_namespace_condition.rst new file mode 100644 index 0000000000..2c58ef285c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_namespace_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_namespace\_condition module +======================================================== + +.. automodule:: kubernetes.client.models.v1_namespace_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_namespace_list.rst b/doc/source/kubernetes.client.models.v1_namespace_list.rst new file mode 100644 index 0000000000..1ec0f8f3db --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_namespace_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_namespace\_list module +=================================================== + +.. automodule:: kubernetes.client.models.v1_namespace_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_namespace_spec.rst b/doc/source/kubernetes.client.models.v1_namespace_spec.rst new file mode 100644 index 0000000000..64e0040e3e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_namespace_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_namespace\_spec module +=================================================== + +.. automodule:: kubernetes.client.models.v1_namespace_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_namespace_status.rst b/doc/source/kubernetes.client.models.v1_namespace_status.rst new file mode 100644 index 0000000000..18c1aeef04 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_namespace_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_namespace\_status module +===================================================== + +.. automodule:: kubernetes.client.models.v1_namespace_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_network_device_data.rst b/doc/source/kubernetes.client.models.v1_network_device_data.rst new file mode 100644 index 0000000000..76f4c8f450 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_network_device_data.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_network\_device\_data module +========================================================= + +.. automodule:: kubernetes.client.models.v1_network_device_data + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_network_policy.rst b/doc/source/kubernetes.client.models.v1_network_policy.rst new file mode 100644 index 0000000000..08858eb336 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_network_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_network\_policy module +=================================================== + +.. automodule:: kubernetes.client.models.v1_network_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_network_policy_egress_rule.rst b/doc/source/kubernetes.client.models.v1_network_policy_egress_rule.rst new file mode 100644 index 0000000000..ba27c7151f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_network_policy_egress_rule.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_network\_policy\_egress\_rule module +================================================================= + +.. automodule:: kubernetes.client.models.v1_network_policy_egress_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_network_policy_ingress_rule.rst b/doc/source/kubernetes.client.models.v1_network_policy_ingress_rule.rst new file mode 100644 index 0000000000..705e4dc1dd --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_network_policy_ingress_rule.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_network\_policy\_ingress\_rule module +================================================================== + +.. automodule:: kubernetes.client.models.v1_network_policy_ingress_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_network_policy_list.rst b/doc/source/kubernetes.client.models.v1_network_policy_list.rst new file mode 100644 index 0000000000..f7c30ab4c3 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_network_policy_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_network\_policy\_list module +========================================================= + +.. automodule:: kubernetes.client.models.v1_network_policy_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_network_policy_peer.rst b/doc/source/kubernetes.client.models.v1_network_policy_peer.rst new file mode 100644 index 0000000000..b3c478cc05 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_network_policy_peer.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_network\_policy\_peer module +========================================================= + +.. automodule:: kubernetes.client.models.v1_network_policy_peer + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_network_policy_port.rst b/doc/source/kubernetes.client.models.v1_network_policy_port.rst new file mode 100644 index 0000000000..b5cdfd3500 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_network_policy_port.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_network\_policy\_port module +========================================================= + +.. automodule:: kubernetes.client.models.v1_network_policy_port + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_network_policy_spec.rst b/doc/source/kubernetes.client.models.v1_network_policy_spec.rst new file mode 100644 index 0000000000..fdb39d918f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_network_policy_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_network\_policy\_spec module +========================================================= + +.. automodule:: kubernetes.client.models.v1_network_policy_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_nfs_volume_source.rst b/doc/source/kubernetes.client.models.v1_nfs_volume_source.rst new file mode 100644 index 0000000000..405b1fb92b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_nfs_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_nfs\_volume\_source module +======================================================= + +.. automodule:: kubernetes.client.models.v1_nfs_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node.rst b/doc/source/kubernetes.client.models.v1_node.rst new file mode 100644 index 0000000000..d710cb14ca --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node module +======================================== + +.. automodule:: kubernetes.client.models.v1_node + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_address.rst b/doc/source/kubernetes.client.models.v1_node_address.rst new file mode 100644 index 0000000000..a1eebe5c6d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_address.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_address module +================================================= + +.. automodule:: kubernetes.client.models.v1_node_address + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_affinity.rst b/doc/source/kubernetes.client.models.v1_node_affinity.rst new file mode 100644 index 0000000000..ff9d96d993 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_affinity.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_affinity module +================================================== + +.. automodule:: kubernetes.client.models.v1_node_affinity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_allocatable_mapped_resources.rst b/doc/source/kubernetes.client.models.v1_node_allocatable_mapped_resources.rst new file mode 100644 index 0000000000..62052cefaf --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_allocatable_mapped_resources.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_allocatable\_mapped\_resources module +======================================================================== + +.. automodule:: kubernetes.client.models.v1_node_allocatable_mapped_resources + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_allocatable_mapping.rst b/doc/source/kubernetes.client.models.v1_node_allocatable_mapping.rst new file mode 100644 index 0000000000..1f9be4a4dd --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_allocatable_mapping.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_allocatable\_mapping module +============================================================== + +.. automodule:: kubernetes.client.models.v1_node_allocatable_mapping + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_allocatable_overhead.rst b/doc/source/kubernetes.client.models.v1_node_allocatable_overhead.rst new file mode 100644 index 0000000000..4f9296eb27 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_allocatable_overhead.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_allocatable\_overhead module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_node_allocatable_overhead + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_allocatable_overhead_resources.rst b/doc/source/kubernetes.client.models.v1_node_allocatable_overhead_resources.rst new file mode 100644 index 0000000000..68894371f5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_allocatable_overhead_resources.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_allocatable\_overhead\_resources module +========================================================================== + +.. automodule:: kubernetes.client.models.v1_node_allocatable_overhead_resources + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_allocatable_resource.rst b/doc/source/kubernetes.client.models.v1_node_allocatable_resource.rst new file mode 100644 index 0000000000..2f47f444ef --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_allocatable_resource.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_allocatable\_resource module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_node_allocatable_resource + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_allocatable_resource_claim_status.rst b/doc/source/kubernetes.client.models.v1_node_allocatable_resource_claim_status.rst new file mode 100644 index 0000000000..f02253ad48 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_allocatable_resource_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_allocatable\_resource\_claim\_status module +============================================================================== + +.. automodule:: kubernetes.client.models.v1_node_allocatable_resource_claim_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_condition.rst b/doc/source/kubernetes.client.models.v1_node_condition.rst new file mode 100644 index 0000000000..677df98229 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_condition module +=================================================== + +.. automodule:: kubernetes.client.models.v1_node_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_config_source.rst b/doc/source/kubernetes.client.models.v1_node_config_source.rst new file mode 100644 index 0000000000..9cda4b56a1 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_config_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_config\_source module +======================================================== + +.. automodule:: kubernetes.client.models.v1_node_config_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_config_status.rst b/doc/source/kubernetes.client.models.v1_node_config_status.rst new file mode 100644 index 0000000000..e43345e8f4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_config_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_config\_status module +======================================================== + +.. automodule:: kubernetes.client.models.v1_node_config_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_daemon_endpoints.rst b/doc/source/kubernetes.client.models.v1_node_daemon_endpoints.rst new file mode 100644 index 0000000000..de3eb14fa9 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_daemon_endpoints.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_daemon\_endpoints module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_node_daemon_endpoints + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_features.rst b/doc/source/kubernetes.client.models.v1_node_features.rst new file mode 100644 index 0000000000..bf27ef8f66 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_features.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_features module +================================================== + +.. automodule:: kubernetes.client.models.v1_node_features + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_list.rst b/doc/source/kubernetes.client.models.v1_node_list.rst new file mode 100644 index 0000000000..de4d416a8c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_list module +============================================== + +.. automodule:: kubernetes.client.models.v1_node_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_pod_preemption_policy.rst b/doc/source/kubernetes.client.models.v1_node_pod_preemption_policy.rst new file mode 100644 index 0000000000..a607ec4faf --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_pod_preemption_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_pod\_preemption\_policy module +================================================================= + +.. automodule:: kubernetes.client.models.v1_node_pod_preemption_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_runtime_handler.rst b/doc/source/kubernetes.client.models.v1_node_runtime_handler.rst new file mode 100644 index 0000000000..306470461a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_runtime_handler.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_runtime\_handler module +========================================================== + +.. automodule:: kubernetes.client.models.v1_node_runtime_handler + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_runtime_handler_features.rst b/doc/source/kubernetes.client.models.v1_node_runtime_handler_features.rst new file mode 100644 index 0000000000..ee105a59bf --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_runtime_handler_features.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_runtime\_handler\_features module +==================================================================== + +.. automodule:: kubernetes.client.models.v1_node_runtime_handler_features + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_selector.rst b/doc/source/kubernetes.client.models.v1_node_selector.rst new file mode 100644 index 0000000000..2d2b630b74 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_selector.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_selector module +================================================== + +.. automodule:: kubernetes.client.models.v1_node_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_selector_requirement.rst b/doc/source/kubernetes.client.models.v1_node_selector_requirement.rst new file mode 100644 index 0000000000..8047000947 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_selector_requirement.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_selector\_requirement module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_node_selector_requirement + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_selector_term.rst b/doc/source/kubernetes.client.models.v1_node_selector_term.rst new file mode 100644 index 0000000000..ff514a51e1 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_selector_term.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_selector\_term module +======================================================== + +.. automodule:: kubernetes.client.models.v1_node_selector_term + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_spec.rst b/doc/source/kubernetes.client.models.v1_node_spec.rst new file mode 100644 index 0000000000..2ffd88813f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_spec module +============================================== + +.. automodule:: kubernetes.client.models.v1_node_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_status.rst b/doc/source/kubernetes.client.models.v1_node_status.rst new file mode 100644 index 0000000000..f8ac57b704 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_status module +================================================ + +.. automodule:: kubernetes.client.models.v1_node_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_swap_status.rst b/doc/source/kubernetes.client.models.v1_node_swap_status.rst new file mode 100644 index 0000000000..6bdeb3a0cd --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_swap_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_swap\_status module +====================================================== + +.. automodule:: kubernetes.client.models.v1_node_swap_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_node_system_info.rst b/doc/source/kubernetes.client.models.v1_node_system_info.rst new file mode 100644 index 0000000000..5f25eea465 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_node_system_info.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_node\_system\_info module +====================================================== + +.. automodule:: kubernetes.client.models.v1_node_system_info + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_non_resource_attributes.rst b/doc/source/kubernetes.client.models.v1_non_resource_attributes.rst new file mode 100644 index 0000000000..841cb09c8b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_non_resource_attributes.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_non\_resource\_attributes module +============================================================= + +.. automodule:: kubernetes.client.models.v1_non_resource_attributes + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_non_resource_policy_rule.rst b/doc/source/kubernetes.client.models.v1_non_resource_policy_rule.rst new file mode 100644 index 0000000000..52aad377c6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_non_resource_policy_rule.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_non\_resource\_policy\_rule module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_non_resource_policy_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_non_resource_rule.rst b/doc/source/kubernetes.client.models.v1_non_resource_rule.rst new file mode 100644 index 0000000000..54ca89739a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_non_resource_rule.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_non\_resource\_rule module +======================================================= + +.. automodule:: kubernetes.client.models.v1_non_resource_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_object_field_selector.rst b/doc/source/kubernetes.client.models.v1_object_field_selector.rst new file mode 100644 index 0000000000..b6a4eb0c1c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_object_field_selector.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_object\_field\_selector module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_object_field_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_object_meta.rst b/doc/source/kubernetes.client.models.v1_object_meta.rst new file mode 100644 index 0000000000..0af6d8ff28 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_object_meta.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_object\_meta module +================================================ + +.. automodule:: kubernetes.client.models.v1_object_meta + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_object_reference.rst b/doc/source/kubernetes.client.models.v1_object_reference.rst new file mode 100644 index 0000000000..1abfcde154 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_object_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_object\_reference module +===================================================== + +.. automodule:: kubernetes.client.models.v1_object_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_opaque_device_configuration.rst b/doc/source/kubernetes.client.models.v1_opaque_device_configuration.rst new file mode 100644 index 0000000000..3d9acacb12 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_opaque_device_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_opaque\_device\_configuration module +================================================================= + +.. automodule:: kubernetes.client.models.v1_opaque_device_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_overhead.rst b/doc/source/kubernetes.client.models.v1_overhead.rst new file mode 100644 index 0000000000..4d24ebb28b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_overhead.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_overhead module +============================================ + +.. automodule:: kubernetes.client.models.v1_overhead + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_owner_reference.rst b/doc/source/kubernetes.client.models.v1_owner_reference.rst new file mode 100644 index 0000000000..23006710c4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_owner_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_owner\_reference module +==================================================== + +.. automodule:: kubernetes.client.models.v1_owner_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_param_kind.rst b/doc/source/kubernetes.client.models.v1_param_kind.rst new file mode 100644 index 0000000000..0af0ec097d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_param_kind.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_param\_kind module +=============================================== + +.. automodule:: kubernetes.client.models.v1_param_kind + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_param_ref.rst b/doc/source/kubernetes.client.models.v1_param_ref.rst new file mode 100644 index 0000000000..64c80462ca --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_param_ref.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_param\_ref module +============================================== + +.. automodule:: kubernetes.client.models.v1_param_ref + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_parent_reference.rst b/doc/source/kubernetes.client.models.v1_parent_reference.rst new file mode 100644 index 0000000000..639199e998 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_parent_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_parent\_reference module +===================================================== + +.. automodule:: kubernetes.client.models.v1_parent_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_persistent_volume.rst b/doc/source/kubernetes.client.models.v1_persistent_volume.rst new file mode 100644 index 0000000000..7dad707fee --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_persistent_volume.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_persistent\_volume module +====================================================== + +.. automodule:: kubernetes.client.models.v1_persistent_volume + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_persistent_volume_claim.rst b/doc/source/kubernetes.client.models.v1_persistent_volume_claim.rst new file mode 100644 index 0000000000..bbb533c86b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_persistent_volume_claim.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_persistent\_volume\_claim module +============================================================= + +.. automodule:: kubernetes.client.models.v1_persistent_volume_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_persistent_volume_claim_condition.rst b/doc/source/kubernetes.client.models.v1_persistent_volume_claim_condition.rst new file mode 100644 index 0000000000..9e2afd1aed --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_persistent_volume_claim_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_persistent\_volume\_claim\_condition module +======================================================================== + +.. automodule:: kubernetes.client.models.v1_persistent_volume_claim_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_persistent_volume_claim_list.rst b/doc/source/kubernetes.client.models.v1_persistent_volume_claim_list.rst new file mode 100644 index 0000000000..aa1fe8d7c6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_persistent_volume_claim_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_persistent\_volume\_claim\_list module +=================================================================== + +.. automodule:: kubernetes.client.models.v1_persistent_volume_claim_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_persistent_volume_claim_spec.rst b/doc/source/kubernetes.client.models.v1_persistent_volume_claim_spec.rst new file mode 100644 index 0000000000..2c3765b59e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_persistent_volume_claim_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_persistent\_volume\_claim\_spec module +=================================================================== + +.. automodule:: kubernetes.client.models.v1_persistent_volume_claim_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_persistent_volume_claim_status.rst b/doc/source/kubernetes.client.models.v1_persistent_volume_claim_status.rst new file mode 100644 index 0000000000..5e02746e6a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_persistent_volume_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_persistent\_volume\_claim\_status module +===================================================================== + +.. automodule:: kubernetes.client.models.v1_persistent_volume_claim_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_persistent_volume_claim_template.rst b/doc/source/kubernetes.client.models.v1_persistent_volume_claim_template.rst new file mode 100644 index 0000000000..9435c73c0b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_persistent_volume_claim_template.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_persistent\_volume\_claim\_template module +======================================================================= + +.. automodule:: kubernetes.client.models.v1_persistent_volume_claim_template + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_persistent_volume_claim_volume_source.rst b/doc/source/kubernetes.client.models.v1_persistent_volume_claim_volume_source.rst new file mode 100644 index 0000000000..18441d28fe --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_persistent_volume_claim_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_persistent\_volume\_claim\_volume\_source module +============================================================================= + +.. automodule:: kubernetes.client.models.v1_persistent_volume_claim_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_persistent_volume_list.rst b/doc/source/kubernetes.client.models.v1_persistent_volume_list.rst new file mode 100644 index 0000000000..243ed87e93 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_persistent_volume_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_persistent\_volume\_list module +============================================================ + +.. automodule:: kubernetes.client.models.v1_persistent_volume_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_persistent_volume_spec.rst b/doc/source/kubernetes.client.models.v1_persistent_volume_spec.rst new file mode 100644 index 0000000000..e684e54fd3 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_persistent_volume_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_persistent\_volume\_spec module +============================================================ + +.. automodule:: kubernetes.client.models.v1_persistent_volume_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_persistent_volume_status.rst b/doc/source/kubernetes.client.models.v1_persistent_volume_status.rst new file mode 100644 index 0000000000..909f0be01c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_persistent_volume_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_persistent\_volume\_status module +============================================================== + +.. automodule:: kubernetes.client.models.v1_persistent_volume_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_photon_persistent_disk_volume_source.rst b/doc/source/kubernetes.client.models.v1_photon_persistent_disk_volume_source.rst new file mode 100644 index 0000000000..486fa63754 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_photon_persistent_disk_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_photon\_persistent\_disk\_volume\_source module +============================================================================ + +.. automodule:: kubernetes.client.models.v1_photon_persistent_disk_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod.rst b/doc/source/kubernetes.client.models.v1_pod.rst new file mode 100644 index 0000000000..60723c0ce1 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod module +======================================= + +.. automodule:: kubernetes.client.models.v1_pod + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_affinity.rst b/doc/source/kubernetes.client.models.v1_pod_affinity.rst new file mode 100644 index 0000000000..425d13b48f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_affinity.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_affinity module +================================================= + +.. automodule:: kubernetes.client.models.v1_pod_affinity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_affinity_term.rst b/doc/source/kubernetes.client.models.v1_pod_affinity_term.rst new file mode 100644 index 0000000000..f365ac1022 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_affinity_term.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_affinity\_term module +======================================================= + +.. automodule:: kubernetes.client.models.v1_pod_affinity_term + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_anti_affinity.rst b/doc/source/kubernetes.client.models.v1_pod_anti_affinity.rst new file mode 100644 index 0000000000..2361f60ff4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_anti_affinity.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_anti\_affinity module +======================================================= + +.. automodule:: kubernetes.client.models.v1_pod_anti_affinity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_certificate_projection.rst b/doc/source/kubernetes.client.models.v1_pod_certificate_projection.rst new file mode 100644 index 0000000000..38567dedad --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_certificate_projection.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_certificate\_projection module +================================================================ + +.. automodule:: kubernetes.client.models.v1_pod_certificate_projection + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_certificate_request.rst b/doc/source/kubernetes.client.models.v1_pod_certificate_request.rst new file mode 100644 index 0000000000..05fa525415 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_certificate_request.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_certificate\_request module +============================================================= + +.. automodule:: kubernetes.client.models.v1_pod_certificate_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_certificate_request_list.rst b/doc/source/kubernetes.client.models.v1_pod_certificate_request_list.rst new file mode 100644 index 0000000000..7f9325b9be --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_certificate_request_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_certificate\_request\_list module +=================================================================== + +.. automodule:: kubernetes.client.models.v1_pod_certificate_request_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_certificate_request_spec.rst b/doc/source/kubernetes.client.models.v1_pod_certificate_request_spec.rst new file mode 100644 index 0000000000..e7af779b61 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_certificate_request_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_certificate\_request\_spec module +=================================================================== + +.. automodule:: kubernetes.client.models.v1_pod_certificate_request_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_certificate_request_status.rst b/doc/source/kubernetes.client.models.v1_pod_certificate_request_status.rst new file mode 100644 index 0000000000..c3fabcfe61 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_certificate_request_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_certificate\_request\_status module +===================================================================== + +.. automodule:: kubernetes.client.models.v1_pod_certificate_request_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_condition.rst b/doc/source/kubernetes.client.models.v1_pod_condition.rst new file mode 100644 index 0000000000..2a01a530c2 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_condition module +================================================== + +.. automodule:: kubernetes.client.models.v1_pod_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_disruption_budget.rst b/doc/source/kubernetes.client.models.v1_pod_disruption_budget.rst new file mode 100644 index 0000000000..d2382828e4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_disruption_budget.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_disruption\_budget module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_pod_disruption_budget + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_disruption_budget_list.rst b/doc/source/kubernetes.client.models.v1_pod_disruption_budget_list.rst new file mode 100644 index 0000000000..5a5f6f02fe --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_disruption_budget_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_disruption\_budget\_list module +================================================================= + +.. automodule:: kubernetes.client.models.v1_pod_disruption_budget_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_disruption_budget_spec.rst b/doc/source/kubernetes.client.models.v1_pod_disruption_budget_spec.rst new file mode 100644 index 0000000000..4e3bec12c8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_disruption_budget_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_disruption\_budget\_spec module +================================================================= + +.. automodule:: kubernetes.client.models.v1_pod_disruption_budget_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_disruption_budget_status.rst b/doc/source/kubernetes.client.models.v1_pod_disruption_budget_status.rst new file mode 100644 index 0000000000..fdeb1722f3 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_disruption_budget_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_disruption\_budget\_status module +=================================================================== + +.. automodule:: kubernetes.client.models.v1_pod_disruption_budget_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_dns_config.rst b/doc/source/kubernetes.client.models.v1_pod_dns_config.rst new file mode 100644 index 0000000000..944a6347ca --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_dns_config.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_dns\_config module +==================================================== + +.. automodule:: kubernetes.client.models.v1_pod_dns_config + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_dns_config_option.rst b/doc/source/kubernetes.client.models.v1_pod_dns_config_option.rst new file mode 100644 index 0000000000..fa63879ef1 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_dns_config_option.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_dns\_config\_option module +============================================================ + +.. automodule:: kubernetes.client.models.v1_pod_dns_config_option + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_extended_resource_claim_status.rst b/doc/source/kubernetes.client.models.v1_pod_extended_resource_claim_status.rst new file mode 100644 index 0000000000..b05c4d51c7 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_extended_resource_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_extended\_resource\_claim\_status module +========================================================================== + +.. automodule:: kubernetes.client.models.v1_pod_extended_resource_claim_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_failure_policy.rst b/doc/source/kubernetes.client.models.v1_pod_failure_policy.rst new file mode 100644 index 0000000000..6e45c05245 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_failure_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_failure\_policy module +======================================================== + +.. automodule:: kubernetes.client.models.v1_pod_failure_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_failure_policy_on_exit_codes_requirement.rst b/doc/source/kubernetes.client.models.v1_pod_failure_policy_on_exit_codes_requirement.rst new file mode 100644 index 0000000000..c3f20429f6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_failure_policy_on_exit_codes_requirement.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_failure\_policy\_on\_exit\_codes\_requirement module +====================================================================================== + +.. automodule:: kubernetes.client.models.v1_pod_failure_policy_on_exit_codes_requirement + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_failure_policy_on_pod_conditions_pattern.rst b/doc/source/kubernetes.client.models.v1_pod_failure_policy_on_pod_conditions_pattern.rst new file mode 100644 index 0000000000..f04b54ba11 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_failure_policy_on_pod_conditions_pattern.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_failure\_policy\_on\_pod\_conditions\_pattern module +====================================================================================== + +.. automodule:: kubernetes.client.models.v1_pod_failure_policy_on_pod_conditions_pattern + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_failure_policy_rule.rst b/doc/source/kubernetes.client.models.v1_pod_failure_policy_rule.rst new file mode 100644 index 0000000000..3386bc700e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_failure_policy_rule.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_failure\_policy\_rule module +============================================================== + +.. automodule:: kubernetes.client.models.v1_pod_failure_policy_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_ip.rst b/doc/source/kubernetes.client.models.v1_pod_ip.rst new file mode 100644 index 0000000000..939d476aba --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_ip.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_ip module +=========================================== + +.. automodule:: kubernetes.client.models.v1_pod_ip + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_list.rst b/doc/source/kubernetes.client.models.v1_pod_list.rst new file mode 100644 index 0000000000..60574c4de5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_list module +============================================= + +.. automodule:: kubernetes.client.models.v1_pod_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_os.rst b/doc/source/kubernetes.client.models.v1_pod_os.rst new file mode 100644 index 0000000000..3866548e4d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_os.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_os module +=========================================== + +.. automodule:: kubernetes.client.models.v1_pod_os + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_readiness_gate.rst b/doc/source/kubernetes.client.models.v1_pod_readiness_gate.rst new file mode 100644 index 0000000000..decf15e23f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_readiness_gate.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_readiness\_gate module +======================================================== + +.. automodule:: kubernetes.client.models.v1_pod_readiness_gate + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_resource_claim.rst b/doc/source/kubernetes.client.models.v1_pod_resource_claim.rst new file mode 100644 index 0000000000..ac01c7b853 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_resource_claim.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_resource\_claim module +======================================================== + +.. automodule:: kubernetes.client.models.v1_pod_resource_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_resource_claim_status.rst b/doc/source/kubernetes.client.models.v1_pod_resource_claim_status.rst new file mode 100644 index 0000000000..0d68420577 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_resource_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_resource\_claim\_status module +================================================================ + +.. automodule:: kubernetes.client.models.v1_pod_resource_claim_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_scheduling_gate.rst b/doc/source/kubernetes.client.models.v1_pod_scheduling_gate.rst new file mode 100644 index 0000000000..10a0acbae6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_scheduling_gate.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_scheduling\_gate module +========================================================= + +.. automodule:: kubernetes.client.models.v1_pod_scheduling_gate + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_scheduling_group.rst b/doc/source/kubernetes.client.models.v1_pod_scheduling_group.rst new file mode 100644 index 0000000000..7461d72c8f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_scheduling_group.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_scheduling\_group module +========================================================== + +.. automodule:: kubernetes.client.models.v1_pod_scheduling_group + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_security_context.rst b/doc/source/kubernetes.client.models.v1_pod_security_context.rst new file mode 100644 index 0000000000..9b5824f113 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_security_context.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_security\_context module +========================================================== + +.. automodule:: kubernetes.client.models.v1_pod_security_context + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_spec.rst b/doc/source/kubernetes.client.models.v1_pod_spec.rst new file mode 100644 index 0000000000..0b14fcdddc --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_spec module +============================================= + +.. automodule:: kubernetes.client.models.v1_pod_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_status.rst b/doc/source/kubernetes.client.models.v1_pod_status.rst new file mode 100644 index 0000000000..6b41c70534 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_status module +=============================================== + +.. automodule:: kubernetes.client.models.v1_pod_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_template.rst b/doc/source/kubernetes.client.models.v1_pod_template.rst new file mode 100644 index 0000000000..483a71e2e6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_template.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_template module +================================================= + +.. automodule:: kubernetes.client.models.v1_pod_template + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_template_list.rst b/doc/source/kubernetes.client.models.v1_pod_template_list.rst new file mode 100644 index 0000000000..05ecde029a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_template_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_template\_list module +======================================================= + +.. automodule:: kubernetes.client.models.v1_pod_template_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_template_spec.rst b/doc/source/kubernetes.client.models.v1_pod_template_spec.rst new file mode 100644 index 0000000000..de8bc5068f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_template_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_template\_spec module +======================================================= + +.. automodule:: kubernetes.client.models.v1_pod_template_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_pod_volume_health.rst b/doc/source/kubernetes.client.models.v1_pod_volume_health.rst new file mode 100644 index 0000000000..ac2c6428ff --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_pod_volume_health.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_pod\_volume\_health module +======================================================= + +.. automodule:: kubernetes.client.models.v1_pod_volume_health + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_policy_rule.rst b/doc/source/kubernetes.client.models.v1_policy_rule.rst new file mode 100644 index 0000000000..9fe071f3f8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_policy_rule.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_policy\_rule module +================================================ + +.. automodule:: kubernetes.client.models.v1_policy_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_policy_rules_with_subjects.rst b/doc/source/kubernetes.client.models.v1_policy_rules_with_subjects.rst new file mode 100644 index 0000000000..2bcc7de1c5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_policy_rules_with_subjects.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_policy\_rules\_with\_subjects module +================================================================= + +.. automodule:: kubernetes.client.models.v1_policy_rules_with_subjects + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_port_status.rst b/doc/source/kubernetes.client.models.v1_port_status.rst new file mode 100644 index 0000000000..5a6afc307f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_port_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_port\_status module +================================================ + +.. automodule:: kubernetes.client.models.v1_port_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_portworx_volume_source.rst b/doc/source/kubernetes.client.models.v1_portworx_volume_source.rst new file mode 100644 index 0000000000..0b4d3dfdf9 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_portworx_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_portworx\_volume\_source module +============================================================ + +.. automodule:: kubernetes.client.models.v1_portworx_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_preconditions.rst b/doc/source/kubernetes.client.models.v1_preconditions.rst new file mode 100644 index 0000000000..14d6c4b682 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_preconditions.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_preconditions module +================================================= + +.. automodule:: kubernetes.client.models.v1_preconditions + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_preferred_scheduling_term.rst b/doc/source/kubernetes.client.models.v1_preferred_scheduling_term.rst new file mode 100644 index 0000000000..21d5688acf --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_preferred_scheduling_term.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_preferred\_scheduling\_term module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_preferred_scheduling_term + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_priority_class.rst b/doc/source/kubernetes.client.models.v1_priority_class.rst new file mode 100644 index 0000000000..de499052ab --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_priority_class.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_priority\_class module +=================================================== + +.. automodule:: kubernetes.client.models.v1_priority_class + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_priority_class_list.rst b/doc/source/kubernetes.client.models.v1_priority_class_list.rst new file mode 100644 index 0000000000..5b5f2cb688 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_priority_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_priority\_class\_list module +========================================================= + +.. automodule:: kubernetes.client.models.v1_priority_class_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_priority_level_configuration.rst b/doc/source/kubernetes.client.models.v1_priority_level_configuration.rst new file mode 100644 index 0000000000..bd0ff32fe4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_priority_level_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_priority\_level\_configuration module +================================================================== + +.. automodule:: kubernetes.client.models.v1_priority_level_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_priority_level_configuration_condition.rst b/doc/source/kubernetes.client.models.v1_priority_level_configuration_condition.rst new file mode 100644 index 0000000000..73b639a2e7 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_priority_level_configuration_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_priority\_level\_configuration\_condition module +============================================================================= + +.. automodule:: kubernetes.client.models.v1_priority_level_configuration_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_priority_level_configuration_list.rst b/doc/source/kubernetes.client.models.v1_priority_level_configuration_list.rst new file mode 100644 index 0000000000..4abfd09b22 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_priority_level_configuration_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_priority\_level\_configuration\_list module +======================================================================== + +.. automodule:: kubernetes.client.models.v1_priority_level_configuration_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_priority_level_configuration_reference.rst b/doc/source/kubernetes.client.models.v1_priority_level_configuration_reference.rst new file mode 100644 index 0000000000..2dd5f8fcc2 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_priority_level_configuration_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_priority\_level\_configuration\_reference module +============================================================================= + +.. automodule:: kubernetes.client.models.v1_priority_level_configuration_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_priority_level_configuration_spec.rst b/doc/source/kubernetes.client.models.v1_priority_level_configuration_spec.rst new file mode 100644 index 0000000000..041b18840b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_priority_level_configuration_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_priority\_level\_configuration\_spec module +======================================================================== + +.. automodule:: kubernetes.client.models.v1_priority_level_configuration_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_priority_level_configuration_status.rst b/doc/source/kubernetes.client.models.v1_priority_level_configuration_status.rst new file mode 100644 index 0000000000..e751d5c6fe --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_priority_level_configuration_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_priority\_level\_configuration\_status module +========================================================================== + +.. automodule:: kubernetes.client.models.v1_priority_level_configuration_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_probe.rst b/doc/source/kubernetes.client.models.v1_probe.rst new file mode 100644 index 0000000000..7fcb0634df --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_probe.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_probe module +========================================= + +.. automodule:: kubernetes.client.models.v1_probe + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_projected_volume_source.rst b/doc/source/kubernetes.client.models.v1_projected_volume_source.rst new file mode 100644 index 0000000000..b66aa80252 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_projected_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_projected\_volume\_source module +============================================================= + +.. automodule:: kubernetes.client.models.v1_projected_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_queuing_configuration.rst b/doc/source/kubernetes.client.models.v1_queuing_configuration.rst new file mode 100644 index 0000000000..9bc33c0f7d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_queuing_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_queuing\_configuration module +========================================================== + +.. automodule:: kubernetes.client.models.v1_queuing_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_quobyte_volume_source.rst b/doc/source/kubernetes.client.models.v1_quobyte_volume_source.rst new file mode 100644 index 0000000000..ad65894952 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_quobyte_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_quobyte\_volume\_source module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_quobyte_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_rbd_persistent_volume_source.rst b/doc/source/kubernetes.client.models.v1_rbd_persistent_volume_source.rst new file mode 100644 index 0000000000..cc03d73021 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_rbd_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_rbd\_persistent\_volume\_source module +=================================================================== + +.. automodule:: kubernetes.client.models.v1_rbd_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_rbd_volume_source.rst b/doc/source/kubernetes.client.models.v1_rbd_volume_source.rst new file mode 100644 index 0000000000..d125043774 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_rbd_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_rbd\_volume\_source module +======================================================= + +.. automodule:: kubernetes.client.models.v1_rbd_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_replica_set.rst b/doc/source/kubernetes.client.models.v1_replica_set.rst new file mode 100644 index 0000000000..d9007f3fbb --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_replica_set.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_replica\_set module +================================================ + +.. automodule:: kubernetes.client.models.v1_replica_set + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_replica_set_condition.rst b/doc/source/kubernetes.client.models.v1_replica_set_condition.rst new file mode 100644 index 0000000000..3dc783648a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_replica_set_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_replica\_set\_condition module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_replica_set_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_replica_set_list.rst b/doc/source/kubernetes.client.models.v1_replica_set_list.rst new file mode 100644 index 0000000000..1199e2e403 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_replica_set_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_replica\_set\_list module +====================================================== + +.. automodule:: kubernetes.client.models.v1_replica_set_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_replica_set_spec.rst b/doc/source/kubernetes.client.models.v1_replica_set_spec.rst new file mode 100644 index 0000000000..6d417aa8cc --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_replica_set_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_replica\_set\_spec module +====================================================== + +.. automodule:: kubernetes.client.models.v1_replica_set_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_replica_set_status.rst b/doc/source/kubernetes.client.models.v1_replica_set_status.rst new file mode 100644 index 0000000000..9c2048293d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_replica_set_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_replica\_set\_status module +======================================================== + +.. automodule:: kubernetes.client.models.v1_replica_set_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_replication_controller.rst b/doc/source/kubernetes.client.models.v1_replication_controller.rst new file mode 100644 index 0000000000..24aabc677b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_replication_controller.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_replication\_controller module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_replication_controller + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_replication_controller_condition.rst b/doc/source/kubernetes.client.models.v1_replication_controller_condition.rst new file mode 100644 index 0000000000..163ceb8c8f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_replication_controller_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_replication\_controller\_condition module +====================================================================== + +.. automodule:: kubernetes.client.models.v1_replication_controller_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_replication_controller_list.rst b/doc/source/kubernetes.client.models.v1_replication_controller_list.rst new file mode 100644 index 0000000000..031b31d4ea --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_replication_controller_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_replication\_controller\_list module +================================================================= + +.. automodule:: kubernetes.client.models.v1_replication_controller_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_replication_controller_spec.rst b/doc/source/kubernetes.client.models.v1_replication_controller_spec.rst new file mode 100644 index 0000000000..53462f9dfa --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_replication_controller_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_replication\_controller\_spec module +================================================================= + +.. automodule:: kubernetes.client.models.v1_replication_controller_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_replication_controller_status.rst b/doc/source/kubernetes.client.models.v1_replication_controller_status.rst new file mode 100644 index 0000000000..382901eeb7 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_replication_controller_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_replication\_controller\_status module +=================================================================== + +.. automodule:: kubernetes.client.models.v1_replication_controller_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_attributes.rst b/doc/source/kubernetes.client.models.v1_resource_attributes.rst new file mode 100644 index 0000000000..86ccc9d5f3 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_attributes.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_attributes module +======================================================== + +.. automodule:: kubernetes.client.models.v1_resource_attributes + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_claim_consumer_reference.rst b/doc/source/kubernetes.client.models.v1_resource_claim_consumer_reference.rst new file mode 100644 index 0000000000..4f698075a3 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_claim_consumer_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_claim\_consumer\_reference module +======================================================================== + +.. automodule:: kubernetes.client.models.v1_resource_claim_consumer_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_claim_list.rst b/doc/source/kubernetes.client.models.v1_resource_claim_list.rst new file mode 100644 index 0000000000..fd626c35e5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_claim_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_claim\_list module +========================================================= + +.. automodule:: kubernetes.client.models.v1_resource_claim_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_claim_spec.rst b/doc/source/kubernetes.client.models.v1_resource_claim_spec.rst new file mode 100644 index 0000000000..9d4609ff7a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_claim_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_claim\_spec module +========================================================= + +.. automodule:: kubernetes.client.models.v1_resource_claim_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_claim_status.rst b/doc/source/kubernetes.client.models.v1_resource_claim_status.rst new file mode 100644 index 0000000000..0f0e54248e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_claim\_status module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_resource_claim_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_claim_template.rst b/doc/source/kubernetes.client.models.v1_resource_claim_template.rst new file mode 100644 index 0000000000..62b7bc85d0 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_claim_template.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_claim\_template module +============================================================= + +.. automodule:: kubernetes.client.models.v1_resource_claim_template + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_claim_template_list.rst b/doc/source/kubernetes.client.models.v1_resource_claim_template_list.rst new file mode 100644 index 0000000000..f1f5632b89 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_claim_template_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_claim\_template\_list module +=================================================================== + +.. automodule:: kubernetes.client.models.v1_resource_claim_template_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_claim_template_spec.rst b/doc/source/kubernetes.client.models.v1_resource_claim_template_spec.rst new file mode 100644 index 0000000000..8ecb7bcb3d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_claim_template_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_claim\_template\_spec module +=================================================================== + +.. automodule:: kubernetes.client.models.v1_resource_claim_template_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_field_selector.rst b/doc/source/kubernetes.client.models.v1_resource_field_selector.rst new file mode 100644 index 0000000000..ec830fc830 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_field_selector.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_field\_selector module +============================================================= + +.. automodule:: kubernetes.client.models.v1_resource_field_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_health.rst b/doc/source/kubernetes.client.models.v1_resource_health.rst new file mode 100644 index 0000000000..c578da5751 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_health.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_health module +==================================================== + +.. automodule:: kubernetes.client.models.v1_resource_health + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_policy_rule.rst b/doc/source/kubernetes.client.models.v1_resource_policy_rule.rst new file mode 100644 index 0000000000..9bcd5ced91 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_policy_rule.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_policy\_rule module +========================================================== + +.. automodule:: kubernetes.client.models.v1_resource_policy_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_pool.rst b/doc/source/kubernetes.client.models.v1_resource_pool.rst new file mode 100644 index 0000000000..4c51de5be3 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_pool.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_pool module +================================================== + +.. automodule:: kubernetes.client.models.v1_resource_pool + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_quota.rst b/doc/source/kubernetes.client.models.v1_resource_quota.rst new file mode 100644 index 0000000000..cc47a5afbd --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_quota.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_quota module +=================================================== + +.. automodule:: kubernetes.client.models.v1_resource_quota + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_quota_list.rst b/doc/source/kubernetes.client.models.v1_resource_quota_list.rst new file mode 100644 index 0000000000..4d99072721 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_quota_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_quota\_list module +========================================================= + +.. automodule:: kubernetes.client.models.v1_resource_quota_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_quota_spec.rst b/doc/source/kubernetes.client.models.v1_resource_quota_spec.rst new file mode 100644 index 0000000000..ecc1fc91c3 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_quota_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_quota\_spec module +========================================================= + +.. automodule:: kubernetes.client.models.v1_resource_quota_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_quota_status.rst b/doc/source/kubernetes.client.models.v1_resource_quota_status.rst new file mode 100644 index 0000000000..e9c8b26ed6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_quota_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_quota\_status module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_resource_quota_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_requirements.rst b/doc/source/kubernetes.client.models.v1_resource_requirements.rst new file mode 100644 index 0000000000..6dedaf42b6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_requirements.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_requirements module +========================================================== + +.. automodule:: kubernetes.client.models.v1_resource_requirements + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_rule.rst b/doc/source/kubernetes.client.models.v1_resource_rule.rst new file mode 100644 index 0000000000..aa5cd5b772 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_rule.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_rule module +================================================== + +.. automodule:: kubernetes.client.models.v1_resource_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_slice.rst b/doc/source/kubernetes.client.models.v1_resource_slice.rst new file mode 100644 index 0000000000..f26dda2774 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_slice.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_slice module +=================================================== + +.. automodule:: kubernetes.client.models.v1_resource_slice + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_slice_list.rst b/doc/source/kubernetes.client.models.v1_resource_slice_list.rst new file mode 100644 index 0000000000..91d7d5baa9 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_slice_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_slice\_list module +========================================================= + +.. automodule:: kubernetes.client.models.v1_resource_slice_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_slice_spec.rst b/doc/source/kubernetes.client.models.v1_resource_slice_spec.rst new file mode 100644 index 0000000000..93a2bb167d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_slice_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_slice\_spec module +========================================================= + +.. automodule:: kubernetes.client.models.v1_resource_slice_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_resource_status.rst b/doc/source/kubernetes.client.models.v1_resource_status.rst new file mode 100644 index 0000000000..f75524339a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_resource_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_resource\_status module +==================================================== + +.. automodule:: kubernetes.client.models.v1_resource_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_role.rst b/doc/source/kubernetes.client.models.v1_role.rst new file mode 100644 index 0000000000..fb1bc92675 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_role.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_role module +======================================== + +.. automodule:: kubernetes.client.models.v1_role + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_role_binding.rst b/doc/source/kubernetes.client.models.v1_role_binding.rst new file mode 100644 index 0000000000..372ce7bbc6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_role_binding.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_role\_binding module +================================================= + +.. automodule:: kubernetes.client.models.v1_role_binding + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_role_binding_list.rst b/doc/source/kubernetes.client.models.v1_role_binding_list.rst new file mode 100644 index 0000000000..eaac530271 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_role_binding_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_role\_binding\_list module +======================================================= + +.. automodule:: kubernetes.client.models.v1_role_binding_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_role_list.rst b/doc/source/kubernetes.client.models.v1_role_list.rst new file mode 100644 index 0000000000..65eb80b3a2 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_role_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_role\_list module +============================================== + +.. automodule:: kubernetes.client.models.v1_role_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_role_ref.rst b/doc/source/kubernetes.client.models.v1_role_ref.rst new file mode 100644 index 0000000000..20c8b33516 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_role_ref.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_role\_ref module +============================================= + +.. automodule:: kubernetes.client.models.v1_role_ref + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_rolling_update_daemon_set.rst b/doc/source/kubernetes.client.models.v1_rolling_update_daemon_set.rst new file mode 100644 index 0000000000..693b38112b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_rolling_update_daemon_set.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_rolling\_update\_daemon\_set module +================================================================ + +.. automodule:: kubernetes.client.models.v1_rolling_update_daemon_set + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_rolling_update_deployment.rst b/doc/source/kubernetes.client.models.v1_rolling_update_deployment.rst new file mode 100644 index 0000000000..11eee4fb36 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_rolling_update_deployment.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_rolling\_update\_deployment module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_rolling_update_deployment + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_rolling_update_stateful_set_strategy.rst b/doc/source/kubernetes.client.models.v1_rolling_update_stateful_set_strategy.rst new file mode 100644 index 0000000000..4d849ef2d8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_rolling_update_stateful_set_strategy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_rolling\_update\_stateful\_set\_strategy module +============================================================================ + +.. automodule:: kubernetes.client.models.v1_rolling_update_stateful_set_strategy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_rule_with_operations.rst b/doc/source/kubernetes.client.models.v1_rule_with_operations.rst new file mode 100644 index 0000000000..582d2bb5ab --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_rule_with_operations.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_rule\_with\_operations module +========================================================== + +.. automodule:: kubernetes.client.models.v1_rule_with_operations + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_runtime_class.rst b/doc/source/kubernetes.client.models.v1_runtime_class.rst new file mode 100644 index 0000000000..40d996b32a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_runtime_class.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_runtime\_class module +================================================== + +.. automodule:: kubernetes.client.models.v1_runtime_class + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_runtime_class_list.rst b/doc/source/kubernetes.client.models.v1_runtime_class_list.rst new file mode 100644 index 0000000000..fad654c16d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_runtime_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_runtime\_class\_list module +======================================================== + +.. automodule:: kubernetes.client.models.v1_runtime_class_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_scale.rst b/doc/source/kubernetes.client.models.v1_scale.rst new file mode 100644 index 0000000000..ebdf391824 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_scale.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_scale module +========================================= + +.. automodule:: kubernetes.client.models.v1_scale + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_scale_io_persistent_volume_source.rst b/doc/source/kubernetes.client.models.v1_scale_io_persistent_volume_source.rst new file mode 100644 index 0000000000..dc671a2843 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_scale_io_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_scale\_io\_persistent\_volume\_source module +========================================================================= + +.. automodule:: kubernetes.client.models.v1_scale_io_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_scale_io_volume_source.rst b/doc/source/kubernetes.client.models.v1_scale_io_volume_source.rst new file mode 100644 index 0000000000..65fbd8d415 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_scale_io_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_scale\_io\_volume\_source module +============================================================= + +.. automodule:: kubernetes.client.models.v1_scale_io_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_scale_spec.rst b/doc/source/kubernetes.client.models.v1_scale_spec.rst new file mode 100644 index 0000000000..cc72d3de09 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_scale_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_scale\_spec module +=============================================== + +.. automodule:: kubernetes.client.models.v1_scale_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_scale_status.rst b/doc/source/kubernetes.client.models.v1_scale_status.rst new file mode 100644 index 0000000000..0fe1afc6d8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_scale_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_scale\_status module +================================================= + +.. automodule:: kubernetes.client.models.v1_scale_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_scheduling.rst b/doc/source/kubernetes.client.models.v1_scheduling.rst new file mode 100644 index 0000000000..d769ec4d74 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_scheduling.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_scheduling module +============================================== + +.. automodule:: kubernetes.client.models.v1_scheduling + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_scope_selector.rst b/doc/source/kubernetes.client.models.v1_scope_selector.rst new file mode 100644 index 0000000000..78debce1ad --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_scope_selector.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_scope\_selector module +=================================================== + +.. automodule:: kubernetes.client.models.v1_scope_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_scoped_resource_selector_requirement.rst b/doc/source/kubernetes.client.models.v1_scoped_resource_selector_requirement.rst new file mode 100644 index 0000000000..4cc905be68 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_scoped_resource_selector_requirement.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_scoped\_resource\_selector\_requirement module +=========================================================================== + +.. automodule:: kubernetes.client.models.v1_scoped_resource_selector_requirement + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_se_linux_options.rst b/doc/source/kubernetes.client.models.v1_se_linux_options.rst new file mode 100644 index 0000000000..bae8958fda --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_se_linux_options.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_se\_linux\_options module +====================================================== + +.. automodule:: kubernetes.client.models.v1_se_linux_options + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_seccomp_profile.rst b/doc/source/kubernetes.client.models.v1_seccomp_profile.rst new file mode 100644 index 0000000000..4ca8d51453 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_seccomp_profile.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_seccomp\_profile module +==================================================== + +.. automodule:: kubernetes.client.models.v1_seccomp_profile + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_secret.rst b/doc/source/kubernetes.client.models.v1_secret.rst new file mode 100644 index 0000000000..fc341c112a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_secret.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_secret module +========================================== + +.. automodule:: kubernetes.client.models.v1_secret + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_secret_env_source.rst b/doc/source/kubernetes.client.models.v1_secret_env_source.rst new file mode 100644 index 0000000000..2c5f545035 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_secret_env_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_secret\_env\_source module +======================================================= + +.. automodule:: kubernetes.client.models.v1_secret_env_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_secret_key_selector.rst b/doc/source/kubernetes.client.models.v1_secret_key_selector.rst new file mode 100644 index 0000000000..208923aba9 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_secret_key_selector.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_secret\_key\_selector module +========================================================= + +.. automodule:: kubernetes.client.models.v1_secret_key_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_secret_list.rst b/doc/source/kubernetes.client.models.v1_secret_list.rst new file mode 100644 index 0000000000..2fa7c6780b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_secret_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_secret\_list module +================================================ + +.. automodule:: kubernetes.client.models.v1_secret_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_secret_projection.rst b/doc/source/kubernetes.client.models.v1_secret_projection.rst new file mode 100644 index 0000000000..24a0ae5d07 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_secret_projection.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_secret\_projection module +====================================================== + +.. automodule:: kubernetes.client.models.v1_secret_projection + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_secret_reference.rst b/doc/source/kubernetes.client.models.v1_secret_reference.rst new file mode 100644 index 0000000000..d65e72586f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_secret_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_secret\_reference module +===================================================== + +.. automodule:: kubernetes.client.models.v1_secret_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_secret_volume_source.rst b/doc/source/kubernetes.client.models.v1_secret_volume_source.rst new file mode 100644 index 0000000000..0729924a75 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_secret_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_secret\_volume\_source module +========================================================== + +.. automodule:: kubernetes.client.models.v1_secret_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_security_context.rst b/doc/source/kubernetes.client.models.v1_security_context.rst new file mode 100644 index 0000000000..aabce215ce --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_security_context.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_security\_context module +===================================================== + +.. automodule:: kubernetes.client.models.v1_security_context + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_selectable_field.rst b/doc/source/kubernetes.client.models.v1_selectable_field.rst new file mode 100644 index 0000000000..ac891445cd --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_selectable_field.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_selectable\_field module +===================================================== + +.. automodule:: kubernetes.client.models.v1_selectable_field + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_self_subject_access_review.rst b/doc/source/kubernetes.client.models.v1_self_subject_access_review.rst new file mode 100644 index 0000000000..fc79996f5b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_self_subject_access_review.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_self\_subject\_access\_review module +================================================================= + +.. automodule:: kubernetes.client.models.v1_self_subject_access_review + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_self_subject_access_review_spec.rst b/doc/source/kubernetes.client.models.v1_self_subject_access_review_spec.rst new file mode 100644 index 0000000000..d4c2976792 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_self_subject_access_review_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_self\_subject\_access\_review\_spec module +======================================================================= + +.. automodule:: kubernetes.client.models.v1_self_subject_access_review_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_self_subject_review.rst b/doc/source/kubernetes.client.models.v1_self_subject_review.rst new file mode 100644 index 0000000000..b6005cc7dd --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_self_subject_review.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_self\_subject\_review module +========================================================= + +.. automodule:: kubernetes.client.models.v1_self_subject_review + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_self_subject_review_status.rst b/doc/source/kubernetes.client.models.v1_self_subject_review_status.rst new file mode 100644 index 0000000000..ceb0f0f750 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_self_subject_review_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_self\_subject\_review\_status module +================================================================= + +.. automodule:: kubernetes.client.models.v1_self_subject_review_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_self_subject_rules_review.rst b/doc/source/kubernetes.client.models.v1_self_subject_rules_review.rst new file mode 100644 index 0000000000..22e0a28b69 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_self_subject_rules_review.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_self\_subject\_rules\_review module +================================================================ + +.. automodule:: kubernetes.client.models.v1_self_subject_rules_review + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_self_subject_rules_review_spec.rst b/doc/source/kubernetes.client.models.v1_self_subject_rules_review_spec.rst new file mode 100644 index 0000000000..f81a6c4a4b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_self_subject_rules_review_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_self\_subject\_rules\_review\_spec module +====================================================================== + +.. automodule:: kubernetes.client.models.v1_self_subject_rules_review_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_server_address_by_client_cidr.rst b/doc/source/kubernetes.client.models.v1_server_address_by_client_cidr.rst new file mode 100644 index 0000000000..5b2854a076 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_server_address_by_client_cidr.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_server\_address\_by\_client\_cidr module +===================================================================== + +.. automodule:: kubernetes.client.models.v1_server_address_by_client_cidr + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_service.rst b/doc/source/kubernetes.client.models.v1_service.rst new file mode 100644 index 0000000000..3da06cbf07 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_service.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_service module +=========================================== + +.. automodule:: kubernetes.client.models.v1_service + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_service_account.rst b/doc/source/kubernetes.client.models.v1_service_account.rst new file mode 100644 index 0000000000..243c9faa64 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_service_account.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_service\_account module +==================================================== + +.. automodule:: kubernetes.client.models.v1_service_account + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_service_account_list.rst b/doc/source/kubernetes.client.models.v1_service_account_list.rst new file mode 100644 index 0000000000..6dbfcd8858 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_service_account_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_service\_account\_list module +========================================================== + +.. automodule:: kubernetes.client.models.v1_service_account_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_service_account_subject.rst b/doc/source/kubernetes.client.models.v1_service_account_subject.rst new file mode 100644 index 0000000000..dc0e9afff4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_service_account_subject.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_service\_account\_subject module +============================================================= + +.. automodule:: kubernetes.client.models.v1_service_account_subject + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_service_account_token_projection.rst b/doc/source/kubernetes.client.models.v1_service_account_token_projection.rst new file mode 100644 index 0000000000..83dbae5657 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_service_account_token_projection.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_service\_account\_token\_projection module +======================================================================= + +.. automodule:: kubernetes.client.models.v1_service_account_token_projection + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_service_backend_port.rst b/doc/source/kubernetes.client.models.v1_service_backend_port.rst new file mode 100644 index 0000000000..644078aa51 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_service_backend_port.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_service\_backend\_port module +========================================================== + +.. automodule:: kubernetes.client.models.v1_service_backend_port + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_service_cidr.rst b/doc/source/kubernetes.client.models.v1_service_cidr.rst new file mode 100644 index 0000000000..92492b7c48 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_service_cidr.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_service\_cidr module +================================================= + +.. automodule:: kubernetes.client.models.v1_service_cidr + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_service_cidr_list.rst b/doc/source/kubernetes.client.models.v1_service_cidr_list.rst new file mode 100644 index 0000000000..f1b6abada7 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_service_cidr_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_service\_cidr\_list module +======================================================= + +.. automodule:: kubernetes.client.models.v1_service_cidr_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_service_cidr_spec.rst b/doc/source/kubernetes.client.models.v1_service_cidr_spec.rst new file mode 100644 index 0000000000..1568979856 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_service_cidr_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_service\_cidr\_spec module +======================================================= + +.. automodule:: kubernetes.client.models.v1_service_cidr_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_service_cidr_status.rst b/doc/source/kubernetes.client.models.v1_service_cidr_status.rst new file mode 100644 index 0000000000..a7a283a6c9 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_service_cidr_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_service\_cidr\_status module +========================================================= + +.. automodule:: kubernetes.client.models.v1_service_cidr_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_service_list.rst b/doc/source/kubernetes.client.models.v1_service_list.rst new file mode 100644 index 0000000000..4097d32eb4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_service_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_service\_list module +================================================= + +.. automodule:: kubernetes.client.models.v1_service_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_service_port.rst b/doc/source/kubernetes.client.models.v1_service_port.rst new file mode 100644 index 0000000000..f01b7939fb --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_service_port.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_service\_port module +================================================= + +.. automodule:: kubernetes.client.models.v1_service_port + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_service_spec.rst b/doc/source/kubernetes.client.models.v1_service_spec.rst new file mode 100644 index 0000000000..f5889ed341 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_service_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_service\_spec module +================================================= + +.. automodule:: kubernetes.client.models.v1_service_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_service_status.rst b/doc/source/kubernetes.client.models.v1_service_status.rst new file mode 100644 index 0000000000..eda16d0180 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_service_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_service\_status module +=================================================== + +.. automodule:: kubernetes.client.models.v1_service_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_session_affinity_config.rst b/doc/source/kubernetes.client.models.v1_session_affinity_config.rst new file mode 100644 index 0000000000..51fd0f6450 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_session_affinity_config.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_session\_affinity\_config module +============================================================= + +.. automodule:: kubernetes.client.models.v1_session_affinity_config + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_shard_info.rst b/doc/source/kubernetes.client.models.v1_shard_info.rst new file mode 100644 index 0000000000..5bda11b0a5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_shard_info.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_shard\_info module +=============================================== + +.. automodule:: kubernetes.client.models.v1_shard_info + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_sleep_action.rst b/doc/source/kubernetes.client.models.v1_sleep_action.rst new file mode 100644 index 0000000000..6c582922b0 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_sleep_action.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_sleep\_action module +================================================= + +.. automodule:: kubernetes.client.models.v1_sleep_action + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_stateful_set.rst b/doc/source/kubernetes.client.models.v1_stateful_set.rst new file mode 100644 index 0000000000..ca395ae92f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_stateful_set.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_stateful\_set module +================================================= + +.. automodule:: kubernetes.client.models.v1_stateful_set + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_stateful_set_condition.rst b/doc/source/kubernetes.client.models.v1_stateful_set_condition.rst new file mode 100644 index 0000000000..27c481f358 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_stateful_set_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_stateful\_set\_condition module +============================================================ + +.. automodule:: kubernetes.client.models.v1_stateful_set_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_stateful_set_list.rst b/doc/source/kubernetes.client.models.v1_stateful_set_list.rst new file mode 100644 index 0000000000..64271f24d9 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_stateful_set_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_stateful\_set\_list module +======================================================= + +.. automodule:: kubernetes.client.models.v1_stateful_set_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_stateful_set_ordinals.rst b/doc/source/kubernetes.client.models.v1_stateful_set_ordinals.rst new file mode 100644 index 0000000000..0ff1c87cd1 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_stateful_set_ordinals.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_stateful\_set\_ordinals module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_stateful_set_ordinals + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_stateful_set_persistent_volume_claim_retention_policy.rst b/doc/source/kubernetes.client.models.v1_stateful_set_persistent_volume_claim_retention_policy.rst new file mode 100644 index 0000000000..276f9c6121 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_stateful_set_persistent_volume_claim_retention_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_stateful\_set\_persistent\_volume\_claim\_retention\_policy module +=============================================================================================== + +.. automodule:: kubernetes.client.models.v1_stateful_set_persistent_volume_claim_retention_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_stateful_set_spec.rst b/doc/source/kubernetes.client.models.v1_stateful_set_spec.rst new file mode 100644 index 0000000000..2344bf95b0 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_stateful_set_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_stateful\_set\_spec module +======================================================= + +.. automodule:: kubernetes.client.models.v1_stateful_set_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_stateful_set_status.rst b/doc/source/kubernetes.client.models.v1_stateful_set_status.rst new file mode 100644 index 0000000000..4fd836dae6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_stateful_set_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_stateful\_set\_status module +========================================================= + +.. automodule:: kubernetes.client.models.v1_stateful_set_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_stateful_set_update_strategy.rst b/doc/source/kubernetes.client.models.v1_stateful_set_update_strategy.rst new file mode 100644 index 0000000000..14e384ee60 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_stateful_set_update_strategy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_stateful\_set\_update\_strategy module +=================================================================== + +.. automodule:: kubernetes.client.models.v1_stateful_set_update_strategy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_status.rst b/doc/source/kubernetes.client.models.v1_status.rst new file mode 100644 index 0000000000..bf3808ac5d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_status module +========================================== + +.. automodule:: kubernetes.client.models.v1_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_status_cause.rst b/doc/source/kubernetes.client.models.v1_status_cause.rst new file mode 100644 index 0000000000..e11b9a05bb --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_status_cause.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_status\_cause module +================================================= + +.. automodule:: kubernetes.client.models.v1_status_cause + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_status_details.rst b/doc/source/kubernetes.client.models.v1_status_details.rst new file mode 100644 index 0000000000..28a4752b13 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_status_details.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_status\_details module +=================================================== + +.. automodule:: kubernetes.client.models.v1_status_details + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_storage_class.rst b/doc/source/kubernetes.client.models.v1_storage_class.rst new file mode 100644 index 0000000000..da8e295ca5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_storage_class.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_storage\_class module +================================================== + +.. automodule:: kubernetes.client.models.v1_storage_class + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_storage_class_list.rst b/doc/source/kubernetes.client.models.v1_storage_class_list.rst new file mode 100644 index 0000000000..12ce6d498d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_storage_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_storage\_class\_list module +======================================================== + +.. automodule:: kubernetes.client.models.v1_storage_class_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_storage_health.rst b/doc/source/kubernetes.client.models.v1_storage_health.rst new file mode 100644 index 0000000000..6d48b1efca --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_storage_health.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_storage\_health module +=================================================== + +.. automodule:: kubernetes.client.models.v1_storage_health + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_storage_health_condition.rst b/doc/source/kubernetes.client.models.v1_storage_health_condition.rst new file mode 100644 index 0000000000..bf599a6715 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_storage_health_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_storage\_health\_condition module +============================================================== + +.. automodule:: kubernetes.client.models.v1_storage_health_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_storage_os_persistent_volume_source.rst b/doc/source/kubernetes.client.models.v1_storage_os_persistent_volume_source.rst new file mode 100644 index 0000000000..9879e9381d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_storage_os_persistent_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_storage\_os\_persistent\_volume\_source module +=========================================================================== + +.. automodule:: kubernetes.client.models.v1_storage_os_persistent_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_storage_os_volume_source.rst b/doc/source/kubernetes.client.models.v1_storage_os_volume_source.rst new file mode 100644 index 0000000000..97973b3967 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_storage_os_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_storage\_os\_volume\_source module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_storage_os_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_storage_version_migration.rst b/doc/source/kubernetes.client.models.v1_storage_version_migration.rst new file mode 100644 index 0000000000..20c23f023c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_storage_version_migration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_storage\_version\_migration module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_storage_version_migration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_storage_version_migration_list.rst b/doc/source/kubernetes.client.models.v1_storage_version_migration_list.rst new file mode 100644 index 0000000000..e5945c69b2 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_storage_version_migration_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_storage\_version\_migration\_list module +===================================================================== + +.. automodule:: kubernetes.client.models.v1_storage_version_migration_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_storage_version_migration_spec.rst b/doc/source/kubernetes.client.models.v1_storage_version_migration_spec.rst new file mode 100644 index 0000000000..ebe511f0f3 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_storage_version_migration_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_storage\_version\_migration\_spec module +===================================================================== + +.. automodule:: kubernetes.client.models.v1_storage_version_migration_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_storage_version_migration_status.rst b/doc/source/kubernetes.client.models.v1_storage_version_migration_status.rst new file mode 100644 index 0000000000..e82dd3b4d6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_storage_version_migration_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_storage\_version\_migration\_status module +======================================================================= + +.. automodule:: kubernetes.client.models.v1_storage_version_migration_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_subject_access_review.rst b/doc/source/kubernetes.client.models.v1_subject_access_review.rst new file mode 100644 index 0000000000..f397ba58da --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_subject_access_review.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_subject\_access\_review module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_subject_access_review + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_subject_access_review_spec.rst b/doc/source/kubernetes.client.models.v1_subject_access_review_spec.rst new file mode 100644 index 0000000000..e995366bb5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_subject_access_review_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_subject\_access\_review\_spec module +================================================================= + +.. automodule:: kubernetes.client.models.v1_subject_access_review_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_subject_access_review_status.rst b/doc/source/kubernetes.client.models.v1_subject_access_review_status.rst new file mode 100644 index 0000000000..c720a9f90b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_subject_access_review_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_subject\_access\_review\_status module +=================================================================== + +.. automodule:: kubernetes.client.models.v1_subject_access_review_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_subject_rules_review_status.rst b/doc/source/kubernetes.client.models.v1_subject_rules_review_status.rst new file mode 100644 index 0000000000..abf44838f2 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_subject_rules_review_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_subject\_rules\_review\_status module +================================================================== + +.. automodule:: kubernetes.client.models.v1_subject_rules_review_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_success_policy.rst b/doc/source/kubernetes.client.models.v1_success_policy.rst new file mode 100644 index 0000000000..f3ceb3fb31 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_success_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_success\_policy module +=================================================== + +.. automodule:: kubernetes.client.models.v1_success_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_success_policy_rule.rst b/doc/source/kubernetes.client.models.v1_success_policy_rule.rst new file mode 100644 index 0000000000..9acd0adb73 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_success_policy_rule.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_success\_policy\_rule module +========================================================= + +.. automodule:: kubernetes.client.models.v1_success_policy_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_sysctl.rst b/doc/source/kubernetes.client.models.v1_sysctl.rst new file mode 100644 index 0000000000..4f5628ef29 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_sysctl.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_sysctl module +========================================== + +.. automodule:: kubernetes.client.models.v1_sysctl + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_taint.rst b/doc/source/kubernetes.client.models.v1_taint.rst new file mode 100644 index 0000000000..8f94f20e6a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_taint.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_taint module +========================================= + +.. automodule:: kubernetes.client.models.v1_taint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_tcp_socket_action.rst b/doc/source/kubernetes.client.models.v1_tcp_socket_action.rst new file mode 100644 index 0000000000..b449144a43 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_tcp_socket_action.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_tcp\_socket\_action module +======================================================= + +.. automodule:: kubernetes.client.models.v1_tcp_socket_action + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_token_request_spec.rst b/doc/source/kubernetes.client.models.v1_token_request_spec.rst new file mode 100644 index 0000000000..a822e689f0 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_token_request_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_token\_request\_spec module +======================================================== + +.. automodule:: kubernetes.client.models.v1_token_request_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_token_request_status.rst b/doc/source/kubernetes.client.models.v1_token_request_status.rst new file mode 100644 index 0000000000..01843f3281 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_token_request_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_token\_request\_status module +========================================================== + +.. automodule:: kubernetes.client.models.v1_token_request_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_token_review.rst b/doc/source/kubernetes.client.models.v1_token_review.rst new file mode 100644 index 0000000000..8a654e7790 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_token_review.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_token\_review module +================================================= + +.. automodule:: kubernetes.client.models.v1_token_review + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_token_review_spec.rst b/doc/source/kubernetes.client.models.v1_token_review_spec.rst new file mode 100644 index 0000000000..c5fc0f84db --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_token_review_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_token\_review\_spec module +======================================================= + +.. automodule:: kubernetes.client.models.v1_token_review_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_token_review_status.rst b/doc/source/kubernetes.client.models.v1_token_review_status.rst new file mode 100644 index 0000000000..c82421795b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_token_review_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_token\_review\_status module +========================================================= + +.. automodule:: kubernetes.client.models.v1_token_review_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_toleration.rst b/doc/source/kubernetes.client.models.v1_toleration.rst new file mode 100644 index 0000000000..1259337164 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_toleration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_toleration module +============================================== + +.. automodule:: kubernetes.client.models.v1_toleration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_topology_selector_label_requirement.rst b/doc/source/kubernetes.client.models.v1_topology_selector_label_requirement.rst new file mode 100644 index 0000000000..1cd034f974 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_topology_selector_label_requirement.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_topology\_selector\_label\_requirement module +========================================================================== + +.. automodule:: kubernetes.client.models.v1_topology_selector_label_requirement + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_topology_selector_term.rst b/doc/source/kubernetes.client.models.v1_topology_selector_term.rst new file mode 100644 index 0000000000..e43074ab88 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_topology_selector_term.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_topology\_selector\_term module +============================================================ + +.. automodule:: kubernetes.client.models.v1_topology_selector_term + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_topology_spread_constraint.rst b/doc/source/kubernetes.client.models.v1_topology_spread_constraint.rst new file mode 100644 index 0000000000..fb4e9771a2 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_topology_spread_constraint.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_topology\_spread\_constraint module +================================================================ + +.. automodule:: kubernetes.client.models.v1_topology_spread_constraint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_type_checking.rst b/doc/source/kubernetes.client.models.v1_type_checking.rst new file mode 100644 index 0000000000..673fd41f99 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_type_checking.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_type\_checking module +================================================== + +.. automodule:: kubernetes.client.models.v1_type_checking + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_typed_local_object_reference.rst b/doc/source/kubernetes.client.models.v1_typed_local_object_reference.rst new file mode 100644 index 0000000000..5086ea7df4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_typed_local_object_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_typed\_local\_object\_reference module +=================================================================== + +.. automodule:: kubernetes.client.models.v1_typed_local_object_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_typed_object_reference.rst b/doc/source/kubernetes.client.models.v1_typed_object_reference.rst new file mode 100644 index 0000000000..918c68d40d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_typed_object_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_typed\_object\_reference module +============================================================ + +.. automodule:: kubernetes.client.models.v1_typed_object_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_uncounted_terminated_pods.rst b/doc/source/kubernetes.client.models.v1_uncounted_terminated_pods.rst new file mode 100644 index 0000000000..640a9a61a7 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_uncounted_terminated_pods.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_uncounted\_terminated\_pods module +=============================================================== + +.. automodule:: kubernetes.client.models.v1_uncounted_terminated_pods + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_user_info.rst b/doc/source/kubernetes.client.models.v1_user_info.rst new file mode 100644 index 0000000000..993de828ce --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_user_info.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_user\_info module +============================================== + +.. automodule:: kubernetes.client.models.v1_user_info + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_user_subject.rst b/doc/source/kubernetes.client.models.v1_user_subject.rst new file mode 100644 index 0000000000..a3d811acf7 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_user_subject.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_user\_subject module +================================================= + +.. automodule:: kubernetes.client.models.v1_user_subject + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_validating_admission_policy.rst b/doc/source/kubernetes.client.models.v1_validating_admission_policy.rst new file mode 100644 index 0000000000..abb47a3a5b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_validating_admission_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_validating\_admission\_policy module +================================================================= + +.. automodule:: kubernetes.client.models.v1_validating_admission_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_validating_admission_policy_binding.rst b/doc/source/kubernetes.client.models.v1_validating_admission_policy_binding.rst new file mode 100644 index 0000000000..80d9a0d37b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_validating_admission_policy_binding.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_validating\_admission\_policy\_binding module +========================================================================== + +.. automodule:: kubernetes.client.models.v1_validating_admission_policy_binding + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_validating_admission_policy_binding_list.rst b/doc/source/kubernetes.client.models.v1_validating_admission_policy_binding_list.rst new file mode 100644 index 0000000000..a543c1cfc9 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_validating_admission_policy_binding_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_validating\_admission\_policy\_binding\_list module +================================================================================ + +.. automodule:: kubernetes.client.models.v1_validating_admission_policy_binding_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_validating_admission_policy_binding_spec.rst b/doc/source/kubernetes.client.models.v1_validating_admission_policy_binding_spec.rst new file mode 100644 index 0000000000..d27aa03a9b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_validating_admission_policy_binding_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_validating\_admission\_policy\_binding\_spec module +================================================================================ + +.. automodule:: kubernetes.client.models.v1_validating_admission_policy_binding_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_validating_admission_policy_list.rst b/doc/source/kubernetes.client.models.v1_validating_admission_policy_list.rst new file mode 100644 index 0000000000..dc5a3774aa --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_validating_admission_policy_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_validating\_admission\_policy\_list module +======================================================================= + +.. automodule:: kubernetes.client.models.v1_validating_admission_policy_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_validating_admission_policy_spec.rst b/doc/source/kubernetes.client.models.v1_validating_admission_policy_spec.rst new file mode 100644 index 0000000000..852d38e6f8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_validating_admission_policy_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_validating\_admission\_policy\_spec module +======================================================================= + +.. automodule:: kubernetes.client.models.v1_validating_admission_policy_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_validating_admission_policy_status.rst b/doc/source/kubernetes.client.models.v1_validating_admission_policy_status.rst new file mode 100644 index 0000000000..01777762bb --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_validating_admission_policy_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_validating\_admission\_policy\_status module +========================================================================= + +.. automodule:: kubernetes.client.models.v1_validating_admission_policy_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_validating_webhook.rst b/doc/source/kubernetes.client.models.v1_validating_webhook.rst new file mode 100644 index 0000000000..c9bb25bed7 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_validating_webhook.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_validating\_webhook module +======================================================= + +.. automodule:: kubernetes.client.models.v1_validating_webhook + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_validating_webhook_configuration.rst b/doc/source/kubernetes.client.models.v1_validating_webhook_configuration.rst new file mode 100644 index 0000000000..cd8d200cef --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_validating_webhook_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_validating\_webhook\_configuration module +====================================================================== + +.. automodule:: kubernetes.client.models.v1_validating_webhook_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_validating_webhook_configuration_list.rst b/doc/source/kubernetes.client.models.v1_validating_webhook_configuration_list.rst new file mode 100644 index 0000000000..65db1b3cb4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_validating_webhook_configuration_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_validating\_webhook\_configuration\_list module +============================================================================ + +.. automodule:: kubernetes.client.models.v1_validating_webhook_configuration_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_validation.rst b/doc/source/kubernetes.client.models.v1_validation.rst new file mode 100644 index 0000000000..420d3cd488 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_validation.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_validation module +============================================== + +.. automodule:: kubernetes.client.models.v1_validation + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_validation_rule.rst b/doc/source/kubernetes.client.models.v1_validation_rule.rst new file mode 100644 index 0000000000..f3142e3766 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_validation_rule.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_validation\_rule module +==================================================== + +.. automodule:: kubernetes.client.models.v1_validation_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_variable.rst b/doc/source/kubernetes.client.models.v1_variable.rst new file mode 100644 index 0000000000..7d7b0c0020 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_variable.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_variable module +============================================ + +.. automodule:: kubernetes.client.models.v1_variable + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume.rst b/doc/source/kubernetes.client.models.v1_volume.rst new file mode 100644 index 0000000000..791099d13b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume module +========================================== + +.. automodule:: kubernetes.client.models.v1_volume + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume_attachment.rst b/doc/source/kubernetes.client.models.v1_volume_attachment.rst new file mode 100644 index 0000000000..9d7678ab89 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume_attachment.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume\_attachment module +====================================================== + +.. automodule:: kubernetes.client.models.v1_volume_attachment + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume_attachment_list.rst b/doc/source/kubernetes.client.models.v1_volume_attachment_list.rst new file mode 100644 index 0000000000..3c215dbf10 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume_attachment_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume\_attachment\_list module +============================================================ + +.. automodule:: kubernetes.client.models.v1_volume_attachment_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume_attachment_source.rst b/doc/source/kubernetes.client.models.v1_volume_attachment_source.rst new file mode 100644 index 0000000000..78baaef783 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume_attachment_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume\_attachment\_source module +============================================================== + +.. automodule:: kubernetes.client.models.v1_volume_attachment_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume_attachment_spec.rst b/doc/source/kubernetes.client.models.v1_volume_attachment_spec.rst new file mode 100644 index 0000000000..d7bbc91814 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume_attachment_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume\_attachment\_spec module +============================================================ + +.. automodule:: kubernetes.client.models.v1_volume_attachment_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume_attachment_status.rst b/doc/source/kubernetes.client.models.v1_volume_attachment_status.rst new file mode 100644 index 0000000000..39ff8ca280 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume_attachment_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume\_attachment\_status module +============================================================== + +.. automodule:: kubernetes.client.models.v1_volume_attachment_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume_attributes_class.rst b/doc/source/kubernetes.client.models.v1_volume_attributes_class.rst new file mode 100644 index 0000000000..16cc7f43a1 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume_attributes_class.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume\_attributes\_class module +============================================================= + +.. automodule:: kubernetes.client.models.v1_volume_attributes_class + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume_attributes_class_list.rst b/doc/source/kubernetes.client.models.v1_volume_attributes_class_list.rst new file mode 100644 index 0000000000..9228fb40cb --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume_attributes_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume\_attributes\_class\_list module +=================================================================== + +.. automodule:: kubernetes.client.models.v1_volume_attributes_class_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume_device.rst b/doc/source/kubernetes.client.models.v1_volume_device.rst new file mode 100644 index 0000000000..5cb197359c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume_device.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume\_device module +================================================== + +.. automodule:: kubernetes.client.models.v1_volume_device + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume_error.rst b/doc/source/kubernetes.client.models.v1_volume_error.rst new file mode 100644 index 0000000000..ed78c26a95 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume_error.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume\_error module +================================================= + +.. automodule:: kubernetes.client.models.v1_volume_error + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume_health_condition.rst b/doc/source/kubernetes.client.models.v1_volume_health_condition.rst new file mode 100644 index 0000000000..1cc984327c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume_health_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume\_health\_condition module +============================================================= + +.. automodule:: kubernetes.client.models.v1_volume_health_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume_health_status.rst b/doc/source/kubernetes.client.models.v1_volume_health_status.rst new file mode 100644 index 0000000000..df96406212 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume_health_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume\_health\_status module +========================================================== + +.. automodule:: kubernetes.client.models.v1_volume_health_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume_mount.rst b/doc/source/kubernetes.client.models.v1_volume_mount.rst new file mode 100644 index 0000000000..0af4135b45 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume_mount.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume\_mount module +================================================= + +.. automodule:: kubernetes.client.models.v1_volume_mount + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume_mount_status.rst b/doc/source/kubernetes.client.models.v1_volume_mount_status.rst new file mode 100644 index 0000000000..bf9c509202 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume_mount_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume\_mount\_status module +========================================================= + +.. automodule:: kubernetes.client.models.v1_volume_mount_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume_node_affinity.rst b/doc/source/kubernetes.client.models.v1_volume_node_affinity.rst new file mode 100644 index 0000000000..e6b2ec1492 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume_node_affinity.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume\_node\_affinity module +========================================================== + +.. automodule:: kubernetes.client.models.v1_volume_node_affinity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume_node_resources.rst b/doc/source/kubernetes.client.models.v1_volume_node_resources.rst new file mode 100644 index 0000000000..c645b126d3 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume_node_resources.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume\_node\_resources module +=========================================================== + +.. automodule:: kubernetes.client.models.v1_volume_node_resources + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume_projection.rst b/doc/source/kubernetes.client.models.v1_volume_projection.rst new file mode 100644 index 0000000000..0997fe6706 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume_projection.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume\_projection module +====================================================== + +.. automodule:: kubernetes.client.models.v1_volume_projection + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume_resource_requirements.rst b/doc/source/kubernetes.client.models.v1_volume_resource_requirements.rst new file mode 100644 index 0000000000..7c999d88a1 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume_resource_requirements.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume\_resource\_requirements module +================================================================== + +.. automodule:: kubernetes.client.models.v1_volume_resource_requirements + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_volume_status.rst b/doc/source/kubernetes.client.models.v1_volume_status.rst new file mode 100644 index 0000000000..51ed081a55 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_volume_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_volume\_status module +================================================== + +.. automodule:: kubernetes.client.models.v1_volume_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_vsphere_virtual_disk_volume_source.rst b/doc/source/kubernetes.client.models.v1_vsphere_virtual_disk_volume_source.rst new file mode 100644 index 0000000000..5b96382188 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_vsphere_virtual_disk_volume_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_vsphere\_virtual\_disk\_volume\_source module +========================================================================== + +.. automodule:: kubernetes.client.models.v1_vsphere_virtual_disk_volume_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_watch_event.rst b/doc/source/kubernetes.client.models.v1_watch_event.rst new file mode 100644 index 0000000000..61bd04ee1a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_watch_event.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_watch\_event module +================================================ + +.. automodule:: kubernetes.client.models.v1_watch_event + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_webhook_conversion.rst b/doc/source/kubernetes.client.models.v1_webhook_conversion.rst new file mode 100644 index 0000000000..2754cd6247 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_webhook_conversion.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_webhook\_conversion module +======================================================= + +.. automodule:: kubernetes.client.models.v1_webhook_conversion + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_weighted_pod_affinity_term.rst b/doc/source/kubernetes.client.models.v1_weighted_pod_affinity_term.rst new file mode 100644 index 0000000000..2c0a225def --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_weighted_pod_affinity_term.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_weighted\_pod\_affinity\_term module +================================================================= + +.. automodule:: kubernetes.client.models.v1_weighted_pod_affinity_term + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1_windows_security_context_options.rst b/doc/source/kubernetes.client.models.v1_windows_security_context_options.rst new file mode 100644 index 0000000000..36771581b1 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1_windows_security_context_options.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1\_windows\_security\_context\_options module +======================================================================= + +.. automodule:: kubernetes.client.models.v1_windows_security_context_options + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_apply_configuration.rst b/doc/source/kubernetes.client.models.v1alpha1_apply_configuration.rst new file mode 100644 index 0000000000..dd4a2f0a37 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_apply_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_apply\_configuration module +============================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_apply_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_eviction.rst b/doc/source/kubernetes.client.models.v1alpha1_eviction.rst new file mode 100644 index 0000000000..540ac28333 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_eviction.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_eviction module +================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_eviction + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_eviction_list.rst b/doc/source/kubernetes.client.models.v1alpha1_eviction_list.rst new file mode 100644 index 0000000000..6229b34a23 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_eviction_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_eviction\_list module +======================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_eviction_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_eviction_pod_reference.rst b/doc/source/kubernetes.client.models.v1alpha1_eviction_pod_reference.rst new file mode 100644 index 0000000000..236d33b6ba --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_eviction_pod_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_eviction\_pod\_reference module +================================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_eviction_pod_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_eviction_request.rst b/doc/source/kubernetes.client.models.v1alpha1_eviction_request.rst new file mode 100644 index 0000000000..547cbb1631 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_eviction_request.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_eviction\_request module +=========================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_eviction_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_eviction_request_list.rst b/doc/source/kubernetes.client.models.v1alpha1_eviction_request_list.rst new file mode 100644 index 0000000000..ef18b29148 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_eviction_request_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_eviction\_request\_list module +================================================================= + +.. automodule:: kubernetes.client.models.v1alpha1_eviction_request_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_eviction_request_pod_reference.rst b/doc/source/kubernetes.client.models.v1alpha1_eviction_request_pod_reference.rst new file mode 100644 index 0000000000..e51f0aaf5a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_eviction_request_pod_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_eviction\_request\_pod\_reference module +=========================================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_eviction_request_pod_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_eviction_request_spec.rst b/doc/source/kubernetes.client.models.v1alpha1_eviction_request_spec.rst new file mode 100644 index 0000000000..a41f55a8f7 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_eviction_request_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_eviction\_request\_spec module +================================================================= + +.. automodule:: kubernetes.client.models.v1alpha1_eviction_request_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_eviction_request_status.rst b/doc/source/kubernetes.client.models.v1alpha1_eviction_request_status.rst new file mode 100644 index 0000000000..f897bbd1ce --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_eviction_request_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_eviction\_request\_status module +=================================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_eviction_request_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_eviction_request_target.rst b/doc/source/kubernetes.client.models.v1alpha1_eviction_request_target.rst new file mode 100644 index 0000000000..5f924138c8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_eviction_request_target.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_eviction\_request\_target module +=================================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_eviction_request_target + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_eviction_spec.rst b/doc/source/kubernetes.client.models.v1alpha1_eviction_spec.rst new file mode 100644 index 0000000000..3637534102 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_eviction_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_eviction\_spec module +======================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_eviction_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_eviction_status.rst b/doc/source/kubernetes.client.models.v1alpha1_eviction_status.rst new file mode 100644 index 0000000000..b08e545be5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_eviction_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_eviction\_status module +========================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_eviction_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_eviction_target.rst b/doc/source/kubernetes.client.models.v1alpha1_eviction_target.rst new file mode 100644 index 0000000000..064bc31f4e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_eviction_target.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_eviction\_target module +========================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_eviction_target + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_json_patch.rst b/doc/source/kubernetes.client.models.v1alpha1_json_patch.rst new file mode 100644 index 0000000000..1039e6192a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_json_patch.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_json\_patch module +===================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_json_patch + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_match_condition.rst b/doc/source/kubernetes.client.models.v1alpha1_match_condition.rst new file mode 100644 index 0000000000..f8f94c90fa --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_match_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_match\_condition module +========================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_match_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_match_resources.rst b/doc/source/kubernetes.client.models.v1alpha1_match_resources.rst new file mode 100644 index 0000000000..38e898f5c8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_match_resources.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_match\_resources module +========================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_match_resources + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy.rst b/doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy.rst new file mode 100644 index 0000000000..907a927617 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_mutating\_admission\_policy module +===================================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_mutating_admission_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_binding.rst b/doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_binding.rst new file mode 100644 index 0000000000..0adba29b79 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_binding.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_mutating\_admission\_policy\_binding module +============================================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_mutating_admission_policy_binding + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_binding_list.rst b/doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_binding_list.rst new file mode 100644 index 0000000000..f14fbe980e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_binding_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_mutating\_admission\_policy\_binding\_list module +==================================================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_mutating_admission_policy_binding_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_binding_spec.rst b/doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_binding_spec.rst new file mode 100644 index 0000000000..2e50dc7513 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_binding_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_mutating\_admission\_policy\_binding\_spec module +==================================================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_mutating_admission_policy_binding_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_list.rst b/doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_list.rst new file mode 100644 index 0000000000..38ceb65d2d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_mutating\_admission\_policy\_list module +=========================================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_mutating_admission_policy_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_spec.rst b/doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_spec.rst new file mode 100644 index 0000000000..f11319321a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_mutating_admission_policy_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_mutating\_admission\_policy\_spec module +=========================================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_mutating_admission_policy_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_mutation.rst b/doc/source/kubernetes.client.models.v1alpha1_mutation.rst new file mode 100644 index 0000000000..268a188868 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_mutation.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_mutation module +================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_mutation + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_named_rule_with_operations.rst b/doc/source/kubernetes.client.models.v1alpha1_named_rule_with_operations.rst new file mode 100644 index 0000000000..781c5c0987 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_named_rule_with_operations.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_named\_rule\_with\_operations module +======================================================================= + +.. automodule:: kubernetes.client.models.v1alpha1_named_rule_with_operations + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_param_kind.rst b/doc/source/kubernetes.client.models.v1alpha1_param_kind.rst new file mode 100644 index 0000000000..fda032a226 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_param_kind.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_param\_kind module +===================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_param_kind + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_param_ref.rst b/doc/source/kubernetes.client.models.v1alpha1_param_ref.rst new file mode 100644 index 0000000000..18a97911cc --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_param_ref.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_param\_ref module +==================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_param_ref + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_requester.rst b/doc/source/kubernetes.client.models.v1alpha1_requester.rst new file mode 100644 index 0000000000..c85045f731 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_requester.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_requester module +=================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_requester + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_responder_status.rst b/doc/source/kubernetes.client.models.v1alpha1_responder_status.rst new file mode 100644 index 0000000000..5800ba632e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_responder_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_responder\_status module +=========================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_responder_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_server_storage_version.rst b/doc/source/kubernetes.client.models.v1alpha1_server_storage_version.rst new file mode 100644 index 0000000000..5d2879a53e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_server_storage_version.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_server\_storage\_version module +================================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_server_storage_version + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_storage_version.rst b/doc/source/kubernetes.client.models.v1alpha1_storage_version.rst new file mode 100644 index 0000000000..9650ce5178 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_storage_version.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_storage\_version module +========================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_storage_version + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_storage_version_condition.rst b/doc/source/kubernetes.client.models.v1alpha1_storage_version_condition.rst new file mode 100644 index 0000000000..6739b58623 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_storage_version_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_storage\_version\_condition module +===================================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_storage_version_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_storage_version_list.rst b/doc/source/kubernetes.client.models.v1alpha1_storage_version_list.rst new file mode 100644 index 0000000000..7a8e6e8d64 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_storage_version_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_storage\_version\_list module +================================================================ + +.. automodule:: kubernetes.client.models.v1alpha1_storage_version_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_storage_version_status.rst b/doc/source/kubernetes.client.models.v1alpha1_storage_version_status.rst new file mode 100644 index 0000000000..6096aee77a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_storage_version_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_storage\_version\_status module +================================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_storage_version_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_target_responder.rst b/doc/source/kubernetes.client.models.v1alpha1_target_responder.rst new file mode 100644 index 0000000000..1e021c8802 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_target_responder.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_target\_responder module +=========================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_target_responder + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha1_variable.rst b/doc/source/kubernetes.client.models.v1alpha1_variable.rst new file mode 100644 index 0000000000..7eecf0bc27 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha1_variable.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha1\_variable module +================================================== + +.. automodule:: kubernetes.client.models.v1alpha1_variable + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha2_lease_candidate.rst b/doc/source/kubernetes.client.models.v1alpha2_lease_candidate.rst new file mode 100644 index 0000000000..9ca73a6d39 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha2_lease_candidate.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha2\_lease\_candidate module +========================================================== + +.. automodule:: kubernetes.client.models.v1alpha2_lease_candidate + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha2_lease_candidate_list.rst b/doc/source/kubernetes.client.models.v1alpha2_lease_candidate_list.rst new file mode 100644 index 0000000000..4c6cb58a97 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha2_lease_candidate_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha2\_lease\_candidate\_list module +================================================================ + +.. automodule:: kubernetes.client.models.v1alpha2_lease_candidate_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha2_lease_candidate_spec.rst b/doc/source/kubernetes.client.models.v1alpha2_lease_candidate_spec.rst new file mode 100644 index 0000000000..eb9e95535d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha2_lease_candidate_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha2\_lease\_candidate\_spec module +================================================================ + +.. automodule:: kubernetes.client.models.v1alpha2_lease_candidate_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_composite_disruption_mode.rst b/doc/source/kubernetes.client.models.v1alpha3_composite_disruption_mode.rst new file mode 100644 index 0000000000..78895c4e2b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_composite_disruption_mode.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_composite\_disruption\_mode module +===================================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_composite_disruption_mode + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_composite_gang_scheduling_policy.rst b/doc/source/kubernetes.client.models.v1alpha3_composite_gang_scheduling_policy.rst new file mode 100644 index 0000000000..b72eef97fa --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_composite_gang_scheduling_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_composite\_gang\_scheduling\_policy module +============================================================================= + +.. automodule:: kubernetes.client.models.v1alpha3_composite_gang_scheduling_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group.rst b/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group.rst new file mode 100644 index 0000000000..fad43e9259 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_composite\_pod\_group module +=============================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_composite_pod_group + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_list.rst b/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_list.rst new file mode 100644 index 0000000000..238ed8c857 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_composite\_pod\_group\_list module +===================================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_composite_pod_group_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_constraints.rst b/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_constraints.rst new file mode 100644 index 0000000000..44d3a9f1c4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_constraints.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_composite\_pod\_group\_scheduling\_constraints module +======================================================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_constraints + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_policy.rst b/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_policy.rst new file mode 100644 index 0000000000..3ca349d14d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_composite\_pod\_group\_scheduling\_policy module +=================================================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_spec.rst b/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_spec.rst new file mode 100644 index 0000000000..2d5c2ec0c2 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_composite\_pod\_group\_spec module +===================================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_composite_pod_group_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_status.rst b/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_status.rst new file mode 100644 index 0000000000..cb3170930d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_composite\_pod\_group\_status module +======================================================================= + +.. automodule:: kubernetes.client.models.v1alpha3_composite_pod_group_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_template.rst b/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_template.rst new file mode 100644 index 0000000000..dd86aa494b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_composite_pod_group_template.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_composite\_pod\_group\_template module +========================================================================= + +.. automodule:: kubernetes.client.models.v1alpha3_composite_pod_group_template + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_taint.rst b/doc/source/kubernetes.client.models.v1alpha3_device_taint.rst new file mode 100644 index 0000000000..5a5b35143b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_device_taint.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_device\_taint module +======================================================= + +.. automodule:: kubernetes.client.models.v1alpha3_device_taint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_taint_rule.rst b/doc/source/kubernetes.client.models.v1alpha3_device_taint_rule.rst new file mode 100644 index 0000000000..4fc8691b1c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_device_taint_rule.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_device\_taint\_rule module +============================================================= + +.. automodule:: kubernetes.client.models.v1alpha3_device_taint_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_taint_rule_list.rst b/doc/source/kubernetes.client.models.v1alpha3_device_taint_rule_list.rst new file mode 100644 index 0000000000..e80ee7ed1a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_device_taint_rule_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_device\_taint\_rule\_list module +=================================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_device_taint_rule_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_taint_rule_spec.rst b/doc/source/kubernetes.client.models.v1alpha3_device_taint_rule_spec.rst new file mode 100644 index 0000000000..58bd5cfaf0 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_device_taint_rule_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_device\_taint\_rule\_spec module +=================================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_device_taint_rule_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_taint_rule_status.rst b/doc/source/kubernetes.client.models.v1alpha3_device_taint_rule_status.rst new file mode 100644 index 0000000000..c26634420b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_device_taint_rule_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_device\_taint\_rule\_status module +===================================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_device_taint_rule_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_device_taint_selector.rst b/doc/source/kubernetes.client.models.v1alpha3_device_taint_selector.rst new file mode 100644 index 0000000000..feb7f8b664 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_device_taint_selector.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_device\_taint\_selector module +================================================================= + +.. automodule:: kubernetes.client.models.v1alpha3_device_taint_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_disruption_mode.rst b/doc/source/kubernetes.client.models.v1alpha3_disruption_mode.rst new file mode 100644 index 0000000000..ffa3bb9269 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_disruption_mode.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_disruption\_mode module +========================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_disruption_mode + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_gang_scheduling_policy.rst b/doc/source/kubernetes.client.models.v1alpha3_gang_scheduling_policy.rst new file mode 100644 index 0000000000..8342fe1fee --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_gang_scheduling_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_gang\_scheduling\_policy module +================================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_gang_scheduling_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_partition_type_status.rst b/doc/source/kubernetes.client.models.v1alpha3_partition_type_status.rst new file mode 100644 index 0000000000..3e36928447 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_partition_type_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_partition\_type\_status module +================================================================= + +.. automodule:: kubernetes.client.models.v1alpha3_partition_type_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_pod_group.rst b/doc/source/kubernetes.client.models.v1alpha3_pod_group.rst new file mode 100644 index 0000000000..5ede7b3acf --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_pod_group.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_pod\_group module +==================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_pod_group + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_pod_group_list.rst b/doc/source/kubernetes.client.models.v1alpha3_pod_group_list.rst new file mode 100644 index 0000000000..08a783524d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_pod_group_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_pod\_group\_list module +========================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_pod_group_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_pod_group_resource_claim.rst b/doc/source/kubernetes.client.models.v1alpha3_pod_group_resource_claim.rst new file mode 100644 index 0000000000..747e3e9155 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_pod_group_resource_claim.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_pod\_group\_resource\_claim module +===================================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_pod_group_resource_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_pod_group_resource_claim_status.rst b/doc/source/kubernetes.client.models.v1alpha3_pod_group_resource_claim_status.rst new file mode 100644 index 0000000000..0d62549426 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_pod_group_resource_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_pod\_group\_resource\_claim\_status module +============================================================================= + +.. automodule:: kubernetes.client.models.v1alpha3_pod_group_resource_claim_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_pod_group_scheduling_constraints.rst b/doc/source/kubernetes.client.models.v1alpha3_pod_group_scheduling_constraints.rst new file mode 100644 index 0000000000..74d69da924 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_pod_group_scheduling_constraints.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_pod\_group\_scheduling\_constraints module +============================================================================= + +.. automodule:: kubernetes.client.models.v1alpha3_pod_group_scheduling_constraints + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_pod_group_scheduling_policy.rst b/doc/source/kubernetes.client.models.v1alpha3_pod_group_scheduling_policy.rst new file mode 100644 index 0000000000..8fdaec94c9 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_pod_group_scheduling_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_pod\_group\_scheduling\_policy module +======================================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_pod_group_scheduling_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_pod_group_spec.rst b/doc/source/kubernetes.client.models.v1alpha3_pod_group_spec.rst new file mode 100644 index 0000000000..a98a8f6f50 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_pod_group_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_pod\_group\_spec module +========================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_pod_group_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_pod_group_status.rst b/doc/source/kubernetes.client.models.v1alpha3_pod_group_status.rst new file mode 100644 index 0000000000..e7b226bc85 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_pod_group_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_pod\_group\_status module +============================================================ + +.. automodule:: kubernetes.client.models.v1alpha3_pod_group_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_pod_group_template.rst b/doc/source/kubernetes.client.models.v1alpha3_pod_group_template.rst new file mode 100644 index 0000000000..6c9802429e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_pod_group_template.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_pod\_group\_template module +============================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_pod_group_template + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_pool_status.rst b/doc/source/kubernetes.client.models.v1alpha3_pool_status.rst new file mode 100644 index 0000000000..49e1b3eed8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_pool_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_pool\_status module +====================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_pool_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_resource_pool_status_request.rst b/doc/source/kubernetes.client.models.v1alpha3_resource_pool_status_request.rst new file mode 100644 index 0000000000..a2d2e7bdb0 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_resource_pool_status_request.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_resource\_pool\_status\_request module +========================================================================= + +.. automodule:: kubernetes.client.models.v1alpha3_resource_pool_status_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_resource_pool_status_request_list.rst b/doc/source/kubernetes.client.models.v1alpha3_resource_pool_status_request_list.rst new file mode 100644 index 0000000000..33cf0fb5ee --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_resource_pool_status_request_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_resource\_pool\_status\_request\_list module +=============================================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_resource_pool_status_request_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_resource_pool_status_request_spec.rst b/doc/source/kubernetes.client.models.v1alpha3_resource_pool_status_request_spec.rst new file mode 100644 index 0000000000..fc554d0527 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_resource_pool_status_request_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_resource\_pool\_status\_request\_spec module +=============================================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_resource_pool_status_request_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_resource_pool_status_request_status.rst b/doc/source/kubernetes.client.models.v1alpha3_resource_pool_status_request_status.rst new file mode 100644 index 0000000000..4b82577802 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_resource_pool_status_request_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_resource\_pool\_status\_request\_status module +================================================================================= + +.. automodule:: kubernetes.client.models.v1alpha3_resource_pool_status_request_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_shareable_capacity_status.rst b/doc/source/kubernetes.client.models.v1alpha3_shareable_capacity_status.rst new file mode 100644 index 0000000000..b8c75256fc --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_shareable_capacity_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_shareable\_capacity\_status module +===================================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_shareable_capacity_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_shareable_summary_status.rst b/doc/source/kubernetes.client.models.v1alpha3_shareable_summary_status.rst new file mode 100644 index 0000000000..9485bff51b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_shareable_summary_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_shareable\_summary\_status module +==================================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_shareable_summary_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_topology_constraint.rst b/doc/source/kubernetes.client.models.v1alpha3_topology_constraint.rst new file mode 100644 index 0000000000..8cdcb209a6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_topology_constraint.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_topology\_constraint module +============================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_topology_constraint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_typed_local_object_reference.rst b/doc/source/kubernetes.client.models.v1alpha3_typed_local_object_reference.rst new file mode 100644 index 0000000000..aaa4549479 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_typed_local_object_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_typed\_local\_object\_reference module +========================================================================= + +.. automodule:: kubernetes.client.models.v1alpha3_typed_local_object_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_workload.rst b/doc/source/kubernetes.client.models.v1alpha3_workload.rst new file mode 100644 index 0000000000..34c42d4d31 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_workload.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_workload module +================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_workload + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_workload_list.rst b/doc/source/kubernetes.client.models.v1alpha3_workload_list.rst new file mode 100644 index 0000000000..57c10fba0e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_workload_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_workload\_list module +======================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_workload_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_disruption_mode.rst b/doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_disruption_mode.rst new file mode 100644 index 0000000000..12ddeafa18 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_disruption_mode.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_workload\_pod\_group\_disruption\_mode module +================================================================================ + +.. automodule:: kubernetes.client.models.v1alpha3_workload_pod_group_disruption_mode + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_gang_scheduling_policy.rst b/doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_gang_scheduling_policy.rst new file mode 100644 index 0000000000..fd7d2143be --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_gang_scheduling_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_workload\_pod\_group\_gang\_scheduling\_policy module +======================================================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_workload_pod_group_gang_scheduling_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_resource_claim.rst b/doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_resource_claim.rst new file mode 100644 index 0000000000..d8a45c585a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_resource_claim.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_workload\_pod\_group\_resource\_claim module +=============================================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_workload_pod_group_resource_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_constraints.rst b/doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_constraints.rst new file mode 100644 index 0000000000..1d84579f71 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_constraints.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_workload\_pod\_group\_scheduling\_constraints module +======================================================================================= + +.. automodule:: kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_constraints + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_policy.rst b/doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_policy.rst new file mode 100644 index 0000000000..016e4b7b8b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_workload\_pod\_group\_scheduling\_policy module +================================================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_workload_reference.rst b/doc/source/kubernetes.client.models.v1alpha3_workload_reference.rst new file mode 100644 index 0000000000..4a8d5272dd --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_workload_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_workload\_reference module +============================================================= + +.. automodule:: kubernetes.client.models.v1alpha3_workload_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1alpha3_workload_spec.rst b/doc/source/kubernetes.client.models.v1alpha3_workload_spec.rst new file mode 100644 index 0000000000..b1d2f69d8f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1alpha3_workload_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1alpha3\_workload\_spec module +======================================================== + +.. automodule:: kubernetes.client.models.v1alpha3_workload_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_allocated_device_status.rst b/doc/source/kubernetes.client.models.v1beta1_allocated_device_status.rst new file mode 100644 index 0000000000..75ba712f92 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_allocated_device_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_allocated\_device\_status module +================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_allocated_device_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_allocation_result.rst b/doc/source/kubernetes.client.models.v1beta1_allocation_result.rst new file mode 100644 index 0000000000..7c4937e02c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_allocation\_result module +=========================================================== + +.. automodule:: kubernetes.client.models.v1beta1_allocation_result + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_apply_configuration.rst b/doc/source/kubernetes.client.models.v1beta1_apply_configuration.rst new file mode 100644 index 0000000000..eef7331333 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_apply_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_apply\_configuration module +============================================================= + +.. automodule:: kubernetes.client.models.v1beta1_apply_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_basic_device.rst b/doc/source/kubernetes.client.models.v1beta1_basic_device.rst new file mode 100644 index 0000000000..c741e61fb5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_basic_device.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_basic\_device module +====================================================== + +.. automodule:: kubernetes.client.models.v1beta1_basic_device + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_capacity_request_policy.rst b/doc/source/kubernetes.client.models.v1beta1_capacity_request_policy.rst new file mode 100644 index 0000000000..109a7d39d3 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_capacity_request_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_capacity\_request\_policy module +================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_capacity_request_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_capacity_request_policy_range.rst b/doc/source/kubernetes.client.models.v1beta1_capacity_request_policy_range.rst new file mode 100644 index 0000000000..dc71f4ddee --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_capacity_request_policy_range.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_capacity\_request\_policy\_range module +========================================================================= + +.. automodule:: kubernetes.client.models.v1beta1_capacity_request_policy_range + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_capacity_requirements.rst b/doc/source/kubernetes.client.models.v1beta1_capacity_requirements.rst new file mode 100644 index 0000000000..05d709198b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_capacity_requirements.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_capacity\_requirements module +=============================================================== + +.. automodule:: kubernetes.client.models.v1beta1_capacity_requirements + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_cel_device_selector.rst b/doc/source/kubernetes.client.models.v1beta1_cel_device_selector.rst new file mode 100644 index 0000000000..4281f6ac3d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_cel_device_selector.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_cel\_device\_selector module +============================================================== + +.. automodule:: kubernetes.client.models.v1beta1_cel_device_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_cluster_trust_bundle.rst b/doc/source/kubernetes.client.models.v1beta1_cluster_trust_bundle.rst new file mode 100644 index 0000000000..bdcf5362a8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_cluster_trust_bundle.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_cluster\_trust\_bundle module +=============================================================== + +.. automodule:: kubernetes.client.models.v1beta1_cluster_trust_bundle + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_cluster_trust_bundle_list.rst b/doc/source/kubernetes.client.models.v1beta1_cluster_trust_bundle_list.rst new file mode 100644 index 0000000000..560140dfc9 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_cluster_trust_bundle_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_cluster\_trust\_bundle\_list module +===================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_cluster_trust_bundle_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_cluster_trust_bundle_spec.rst b/doc/source/kubernetes.client.models.v1beta1_cluster_trust_bundle_spec.rst new file mode 100644 index 0000000000..3937936cc8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_cluster_trust_bundle_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_cluster\_trust\_bundle\_spec module +===================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_cluster_trust_bundle_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_composite_disruption_mode.rst b/doc/source/kubernetes.client.models.v1beta1_composite_disruption_mode.rst new file mode 100644 index 0000000000..bdd8254b26 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_composite_disruption_mode.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_composite\_disruption\_mode module +==================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_composite_disruption_mode + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_composite_gang_scheduling_policy.rst b/doc/source/kubernetes.client.models.v1beta1_composite_gang_scheduling_policy.rst new file mode 100644 index 0000000000..0ccda5d543 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_composite_gang_scheduling_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_composite\_gang\_scheduling\_policy module +============================================================================ + +.. automodule:: kubernetes.client.models.v1beta1_composite_gang_scheduling_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_composite_pod_group_scheduling_constraints.rst b/doc/source/kubernetes.client.models.v1beta1_composite_pod_group_scheduling_constraints.rst new file mode 100644 index 0000000000..95c8ecc8ac --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_composite_pod_group_scheduling_constraints.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_composite\_pod\_group\_scheduling\_constraints module +======================================================================================= + +.. automodule:: kubernetes.client.models.v1beta1_composite_pod_group_scheduling_constraints + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_composite_pod_group_scheduling_policy.rst b/doc/source/kubernetes.client.models.v1beta1_composite_pod_group_scheduling_policy.rst new file mode 100644 index 0000000000..276bc1838d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_composite_pod_group_scheduling_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_composite\_pod\_group\_scheduling\_policy module +================================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_composite_pod_group_scheduling_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_composite_pod_group_template.rst b/doc/source/kubernetes.client.models.v1beta1_composite_pod_group_template.rst new file mode 100644 index 0000000000..37d607404d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_composite_pod_group_template.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_composite\_pod\_group\_template module +======================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_composite_pod_group_template + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_counter.rst b/doc/source/kubernetes.client.models.v1beta1_counter.rst new file mode 100644 index 0000000000..0d672aced1 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_counter.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_counter module +================================================ + +.. automodule:: kubernetes.client.models.v1beta1_counter + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_counter_set.rst b/doc/source/kubernetes.client.models.v1beta1_counter_set.rst new file mode 100644 index 0000000000..fb3891fc3b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_counter_set.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_counter\_set module +===================================================== + +.. automodule:: kubernetes.client.models.v1beta1_counter_set + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device.rst b/doc/source/kubernetes.client.models.v1beta1_device.rst new file mode 100644 index 0000000000..7aa3a24425 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device module +=============================================== + +.. automodule:: kubernetes.client.models.v1beta1_device + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_allocation_configuration.rst b/doc/source/kubernetes.client.models.v1beta1_device_allocation_configuration.rst new file mode 100644 index 0000000000..cc98a82dc6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_allocation_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_allocation\_configuration module +========================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_device_allocation_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_allocation_result.rst b/doc/source/kubernetes.client.models.v1beta1_device_allocation_result.rst new file mode 100644 index 0000000000..9980cb801d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_allocation\_result module +=================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_device_allocation_result + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_attribute.rst b/doc/source/kubernetes.client.models.v1beta1_device_attribute.rst new file mode 100644 index 0000000000..a15021f175 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_attribute.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_attribute module +========================================================== + +.. automodule:: kubernetes.client.models.v1beta1_device_attribute + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_capacity.rst b/doc/source/kubernetes.client.models.v1beta1_device_capacity.rst new file mode 100644 index 0000000000..e9abc94207 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_capacity.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_capacity module +========================================================= + +.. automodule:: kubernetes.client.models.v1beta1_device_capacity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_claim.rst b/doc/source/kubernetes.client.models.v1beta1_device_claim.rst new file mode 100644 index 0000000000..ef22e2fd85 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_claim.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_claim module +====================================================== + +.. automodule:: kubernetes.client.models.v1beta1_device_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_claim_configuration.rst b/doc/source/kubernetes.client.models.v1beta1_device_claim_configuration.rst new file mode 100644 index 0000000000..939754c8af --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_claim_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_claim\_configuration module +===================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_device_claim_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_class.rst b/doc/source/kubernetes.client.models.v1beta1_device_class.rst new file mode 100644 index 0000000000..5da31c13ab --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_class.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_class module +====================================================== + +.. automodule:: kubernetes.client.models.v1beta1_device_class + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_class_configuration.rst b/doc/source/kubernetes.client.models.v1beta1_device_class_configuration.rst new file mode 100644 index 0000000000..74e2b5e56e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_class_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_class\_configuration module +===================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_device_class_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_class_list.rst b/doc/source/kubernetes.client.models.v1beta1_device_class_list.rst new file mode 100644 index 0000000000..3c52fa1207 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_class\_list module +============================================================ + +.. automodule:: kubernetes.client.models.v1beta1_device_class_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_class_spec.rst b/doc/source/kubernetes.client.models.v1beta1_device_class_spec.rst new file mode 100644 index 0000000000..5072260b40 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_class_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_class\_spec module +============================================================ + +.. automodule:: kubernetes.client.models.v1beta1_device_class_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_constraint.rst b/doc/source/kubernetes.client.models.v1beta1_device_constraint.rst new file mode 100644 index 0000000000..573a446fea --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_constraint.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_constraint module +=========================================================== + +.. automodule:: kubernetes.client.models.v1beta1_device_constraint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_counter_consumption.rst b/doc/source/kubernetes.client.models.v1beta1_device_counter_consumption.rst new file mode 100644 index 0000000000..6fb92c21d4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_counter_consumption.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_counter\_consumption module +===================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_device_counter_consumption + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_derived_attribute.rst b/doc/source/kubernetes.client.models.v1beta1_device_derived_attribute.rst new file mode 100644 index 0000000000..7d9693cbd1 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_derived_attribute.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_derived\_attribute module +=================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_device_derived_attribute + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_request.rst b/doc/source/kubernetes.client.models.v1beta1_device_request.rst new file mode 100644 index 0000000000..6d6fc92c35 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_request.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_request module +======================================================== + +.. automodule:: kubernetes.client.models.v1beta1_device_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_request_allocation_result.rst b/doc/source/kubernetes.client.models.v1beta1_device_request_allocation_result.rst new file mode 100644 index 0000000000..ba7d9aec1c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_request_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_request\_allocation\_result module +============================================================================ + +.. automodule:: kubernetes.client.models.v1beta1_device_request_allocation_result + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_selector.rst b/doc/source/kubernetes.client.models.v1beta1_device_selector.rst new file mode 100644 index 0000000000..ef47adb5be --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_selector.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_selector module +========================================================= + +.. automodule:: kubernetes.client.models.v1beta1_device_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_sub_request.rst b/doc/source/kubernetes.client.models.v1beta1_device_sub_request.rst new file mode 100644 index 0000000000..f2bd3df65f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_sub_request.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_sub\_request module +============================================================= + +.. automodule:: kubernetes.client.models.v1beta1_device_sub_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_taint.rst b/doc/source/kubernetes.client.models.v1beta1_device_taint.rst new file mode 100644 index 0000000000..3b6915e05a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_taint.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_taint module +====================================================== + +.. automodule:: kubernetes.client.models.v1beta1_device_taint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_device_toleration.rst b/doc/source/kubernetes.client.models.v1beta1_device_toleration.rst new file mode 100644 index 0000000000..adeb405f53 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_device_toleration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_device\_toleration module +=========================================================== + +.. automodule:: kubernetes.client.models.v1beta1_device_toleration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_disruption_mode.rst b/doc/source/kubernetes.client.models.v1beta1_disruption_mode.rst new file mode 100644 index 0000000000..eb17872573 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_disruption_mode.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_disruption\_mode module +========================================================= + +.. automodule:: kubernetes.client.models.v1beta1_disruption_mode + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_gang_scheduling_policy.rst b/doc/source/kubernetes.client.models.v1beta1_gang_scheduling_policy.rst new file mode 100644 index 0000000000..56aa0bb49f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_gang_scheduling_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_gang\_scheduling\_policy module +================================================================= + +.. automodule:: kubernetes.client.models.v1beta1_gang_scheduling_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_json_patch.rst b/doc/source/kubernetes.client.models.v1beta1_json_patch.rst new file mode 100644 index 0000000000..adc1f9e17a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_json_patch.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_json\_patch module +==================================================== + +.. automodule:: kubernetes.client.models.v1beta1_json_patch + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_lease_candidate.rst b/doc/source/kubernetes.client.models.v1beta1_lease_candidate.rst new file mode 100644 index 0000000000..2e29fcdafa --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_lease_candidate.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_lease\_candidate module +========================================================= + +.. automodule:: kubernetes.client.models.v1beta1_lease_candidate + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_lease_candidate_list.rst b/doc/source/kubernetes.client.models.v1beta1_lease_candidate_list.rst new file mode 100644 index 0000000000..764dc2fd3a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_lease_candidate_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_lease\_candidate\_list module +=============================================================== + +.. automodule:: kubernetes.client.models.v1beta1_lease_candidate_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_lease_candidate_spec.rst b/doc/source/kubernetes.client.models.v1beta1_lease_candidate_spec.rst new file mode 100644 index 0000000000..c2b51040d4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_lease_candidate_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_lease\_candidate\_spec module +=============================================================== + +.. automodule:: kubernetes.client.models.v1beta1_lease_candidate_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_match_condition.rst b/doc/source/kubernetes.client.models.v1beta1_match_condition.rst new file mode 100644 index 0000000000..44f57abdaf --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_match_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_match\_condition module +========================================================= + +.. automodule:: kubernetes.client.models.v1beta1_match_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_match_resources.rst b/doc/source/kubernetes.client.models.v1beta1_match_resources.rst new file mode 100644 index 0000000000..7ab5f73645 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_match_resources.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_match\_resources module +========================================================= + +.. automodule:: kubernetes.client.models.v1beta1_match_resources + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy.rst b/doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy.rst new file mode 100644 index 0000000000..d54ecdbf11 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_mutating\_admission\_policy module +==================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_mutating_admission_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_binding.rst b/doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_binding.rst new file mode 100644 index 0000000000..a7d0395d3c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_binding.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_mutating\_admission\_policy\_binding module +============================================================================= + +.. automodule:: kubernetes.client.models.v1beta1_mutating_admission_policy_binding + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_binding_list.rst b/doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_binding_list.rst new file mode 100644 index 0000000000..1a97944e81 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_binding_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_mutating\_admission\_policy\_binding\_list module +=================================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_mutating_admission_policy_binding_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_binding_spec.rst b/doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_binding_spec.rst new file mode 100644 index 0000000000..9cdc8e795d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_binding_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_mutating\_admission\_policy\_binding\_spec module +=================================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_mutating_admission_policy_binding_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_list.rst b/doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_list.rst new file mode 100644 index 0000000000..76aa9f3055 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_mutating\_admission\_policy\_list module +========================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_mutating_admission_policy_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_spec.rst b/doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_spec.rst new file mode 100644 index 0000000000..f6d583e9d6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_mutating_admission_policy_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_mutating\_admission\_policy\_spec module +========================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_mutating_admission_policy_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_mutation.rst b/doc/source/kubernetes.client.models.v1beta1_mutation.rst new file mode 100644 index 0000000000..05ccf23bf1 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_mutation.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_mutation module +================================================= + +.. automodule:: kubernetes.client.models.v1beta1_mutation + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_named_rule_with_operations.rst b/doc/source/kubernetes.client.models.v1beta1_named_rule_with_operations.rst new file mode 100644 index 0000000000..8474fecbf2 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_named_rule_with_operations.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_named\_rule\_with\_operations module +====================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_named_rule_with_operations + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_network_device_data.rst b/doc/source/kubernetes.client.models.v1beta1_network_device_data.rst new file mode 100644 index 0000000000..cbd3d2326b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_network_device_data.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_network\_device\_data module +============================================================== + +.. automodule:: kubernetes.client.models.v1beta1_network_device_data + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_node_allocatable_mapping.rst b/doc/source/kubernetes.client.models.v1beta1_node_allocatable_mapping.rst new file mode 100644 index 0000000000..d8ac898907 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_node_allocatable_mapping.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_node\_allocatable\_mapping module +=================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_node_allocatable_mapping + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_node_allocatable_overhead.rst b/doc/source/kubernetes.client.models.v1beta1_node_allocatable_overhead.rst new file mode 100644 index 0000000000..1b11197959 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_node_allocatable_overhead.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_node\_allocatable\_overhead module +==================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_node_allocatable_overhead + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_node_allocatable_resource.rst b/doc/source/kubernetes.client.models.v1beta1_node_allocatable_resource.rst new file mode 100644 index 0000000000..1dc300241b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_node_allocatable_resource.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_node\_allocatable\_resource module +==================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_node_allocatable_resource + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_opaque_device_configuration.rst b/doc/source/kubernetes.client.models.v1beta1_opaque_device_configuration.rst new file mode 100644 index 0000000000..fa662ce3d4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_opaque_device_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_opaque\_device\_configuration module +====================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_opaque_device_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_param_kind.rst b/doc/source/kubernetes.client.models.v1beta1_param_kind.rst new file mode 100644 index 0000000000..c59d9166eb --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_param_kind.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_param\_kind module +==================================================== + +.. automodule:: kubernetes.client.models.v1beta1_param_kind + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_param_ref.rst b/doc/source/kubernetes.client.models.v1beta1_param_ref.rst new file mode 100644 index 0000000000..985b35270b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_param_ref.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_param\_ref module +=================================================== + +.. automodule:: kubernetes.client.models.v1beta1_param_ref + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_pod_certificate_request.rst b/doc/source/kubernetes.client.models.v1beta1_pod_certificate_request.rst new file mode 100644 index 0000000000..c7cd0cde2c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_pod_certificate_request.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_pod\_certificate\_request module +================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_pod_certificate_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_pod_certificate_request_list.rst b/doc/source/kubernetes.client.models.v1beta1_pod_certificate_request_list.rst new file mode 100644 index 0000000000..e6c99e552d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_pod_certificate_request_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_pod\_certificate\_request\_list module +======================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_pod_certificate_request_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_pod_certificate_request_spec.rst b/doc/source/kubernetes.client.models.v1beta1_pod_certificate_request_spec.rst new file mode 100644 index 0000000000..af1964cd0b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_pod_certificate_request_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_pod\_certificate\_request\_spec module +======================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_pod_certificate_request_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_pod_certificate_request_status.rst b/doc/source/kubernetes.client.models.v1beta1_pod_certificate_request_status.rst new file mode 100644 index 0000000000..f3955ad181 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_pod_certificate_request_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_pod\_certificate\_request\_status module +========================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_pod_certificate_request_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_pod_group.rst b/doc/source/kubernetes.client.models.v1beta1_pod_group.rst new file mode 100644 index 0000000000..7caff59118 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_pod_group.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_pod\_group module +=================================================== + +.. automodule:: kubernetes.client.models.v1beta1_pod_group + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_pod_group_list.rst b/doc/source/kubernetes.client.models.v1beta1_pod_group_list.rst new file mode 100644 index 0000000000..6c0bc173f3 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_pod_group_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_pod\_group\_list module +========================================================= + +.. automodule:: kubernetes.client.models.v1beta1_pod_group_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_pod_group_resource_claim.rst b/doc/source/kubernetes.client.models.v1beta1_pod_group_resource_claim.rst new file mode 100644 index 0000000000..0b68b99c50 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_pod_group_resource_claim.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_pod\_group\_resource\_claim module +==================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_pod_group_resource_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_pod_group_resource_claim_status.rst b/doc/source/kubernetes.client.models.v1beta1_pod_group_resource_claim_status.rst new file mode 100644 index 0000000000..63c2ab93b8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_pod_group_resource_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_pod\_group\_resource\_claim\_status module +============================================================================ + +.. automodule:: kubernetes.client.models.v1beta1_pod_group_resource_claim_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_pod_group_scheduling_constraints.rst b/doc/source/kubernetes.client.models.v1beta1_pod_group_scheduling_constraints.rst new file mode 100644 index 0000000000..f328d1f41a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_pod_group_scheduling_constraints.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_pod\_group\_scheduling\_constraints module +============================================================================ + +.. automodule:: kubernetes.client.models.v1beta1_pod_group_scheduling_constraints + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_pod_group_scheduling_policy.rst b/doc/source/kubernetes.client.models.v1beta1_pod_group_scheduling_policy.rst new file mode 100644 index 0000000000..ef94859d19 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_pod_group_scheduling_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_pod\_group\_scheduling\_policy module +======================================================================= + +.. automodule:: kubernetes.client.models.v1beta1_pod_group_scheduling_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_pod_group_spec.rst b/doc/source/kubernetes.client.models.v1beta1_pod_group_spec.rst new file mode 100644 index 0000000000..e1e49e3cd8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_pod_group_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_pod\_group\_spec module +========================================================= + +.. automodule:: kubernetes.client.models.v1beta1_pod_group_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_pod_group_status.rst b/doc/source/kubernetes.client.models.v1beta1_pod_group_status.rst new file mode 100644 index 0000000000..f5da71785c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_pod_group_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_pod\_group\_status module +=========================================================== + +.. automodule:: kubernetes.client.models.v1beta1_pod_group_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_pod_group_template.rst b/doc/source/kubernetes.client.models.v1beta1_pod_group_template.rst new file mode 100644 index 0000000000..c57cf267a5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_pod_group_template.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_pod\_group\_template module +============================================================= + +.. automodule:: kubernetes.client.models.v1beta1_pod_group_template + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_resource_claim.rst b/doc/source/kubernetes.client.models.v1beta1_resource_claim.rst new file mode 100644 index 0000000000..74a0ee328f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_resource_claim.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_resource\_claim module +======================================================== + +.. automodule:: kubernetes.client.models.v1beta1_resource_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_resource_claim_consumer_reference.rst b/doc/source/kubernetes.client.models.v1beta1_resource_claim_consumer_reference.rst new file mode 100644 index 0000000000..e69859053e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_resource_claim_consumer_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_resource\_claim\_consumer\_reference module +============================================================================= + +.. automodule:: kubernetes.client.models.v1beta1_resource_claim_consumer_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_resource_claim_list.rst b/doc/source/kubernetes.client.models.v1beta1_resource_claim_list.rst new file mode 100644 index 0000000000..32237028fb --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_resource_claim_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_resource\_claim\_list module +============================================================== + +.. automodule:: kubernetes.client.models.v1beta1_resource_claim_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_resource_claim_spec.rst b/doc/source/kubernetes.client.models.v1beta1_resource_claim_spec.rst new file mode 100644 index 0000000000..019a25602f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_resource_claim_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_resource\_claim\_spec module +============================================================== + +.. automodule:: kubernetes.client.models.v1beta1_resource_claim_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_resource_claim_status.rst b/doc/source/kubernetes.client.models.v1beta1_resource_claim_status.rst new file mode 100644 index 0000000000..c6f7e1c3ff --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_resource_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_resource\_claim\_status module +================================================================ + +.. automodule:: kubernetes.client.models.v1beta1_resource_claim_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_resource_claim_template.rst b/doc/source/kubernetes.client.models.v1beta1_resource_claim_template.rst new file mode 100644 index 0000000000..c42cf501c2 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_resource_claim_template.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_resource\_claim\_template module +================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_resource_claim_template + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_resource_claim_template_list.rst b/doc/source/kubernetes.client.models.v1beta1_resource_claim_template_list.rst new file mode 100644 index 0000000000..f917e44807 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_resource_claim_template_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_resource\_claim\_template\_list module +======================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_resource_claim_template_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_resource_claim_template_spec.rst b/doc/source/kubernetes.client.models.v1beta1_resource_claim_template_spec.rst new file mode 100644 index 0000000000..9ac7ae93da --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_resource_claim_template_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_resource\_claim\_template\_spec module +======================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_resource_claim_template_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_resource_pool.rst b/doc/source/kubernetes.client.models.v1beta1_resource_pool.rst new file mode 100644 index 0000000000..3907f1781b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_resource_pool.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_resource\_pool module +======================================================= + +.. automodule:: kubernetes.client.models.v1beta1_resource_pool + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_resource_slice.rst b/doc/source/kubernetes.client.models.v1beta1_resource_slice.rst new file mode 100644 index 0000000000..7ca1e7d5bb --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_resource_slice.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_resource\_slice module +======================================================== + +.. automodule:: kubernetes.client.models.v1beta1_resource_slice + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_resource_slice_list.rst b/doc/source/kubernetes.client.models.v1beta1_resource_slice_list.rst new file mode 100644 index 0000000000..845217cd28 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_resource_slice_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_resource\_slice\_list module +============================================================== + +.. automodule:: kubernetes.client.models.v1beta1_resource_slice_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_resource_slice_spec.rst b/doc/source/kubernetes.client.models.v1beta1_resource_slice_spec.rst new file mode 100644 index 0000000000..7fc58e6766 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_resource_slice_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_resource\_slice\_spec module +============================================================== + +.. automodule:: kubernetes.client.models.v1beta1_resource_slice_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_storage_version_migration.rst b/doc/source/kubernetes.client.models.v1beta1_storage_version_migration.rst new file mode 100644 index 0000000000..074b9ba761 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_storage_version_migration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_storage\_version\_migration module +==================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_storage_version_migration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_storage_version_migration_list.rst b/doc/source/kubernetes.client.models.v1beta1_storage_version_migration_list.rst new file mode 100644 index 0000000000..b64c61d84a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_storage_version_migration_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_storage\_version\_migration\_list module +========================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_storage_version_migration_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_storage_version_migration_spec.rst b/doc/source/kubernetes.client.models.v1beta1_storage_version_migration_spec.rst new file mode 100644 index 0000000000..f6a35e705c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_storage_version_migration_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_storage\_version\_migration\_spec module +========================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_storage_version_migration_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_storage_version_migration_status.rst b/doc/source/kubernetes.client.models.v1beta1_storage_version_migration_status.rst new file mode 100644 index 0000000000..52c6086974 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_storage_version_migration_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_storage\_version\_migration\_status module +============================================================================ + +.. automodule:: kubernetes.client.models.v1beta1_storage_version_migration_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_topology_constraint.rst b/doc/source/kubernetes.client.models.v1beta1_topology_constraint.rst new file mode 100644 index 0000000000..34816fb03d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_topology_constraint.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_topology\_constraint module +============================================================= + +.. automodule:: kubernetes.client.models.v1beta1_topology_constraint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_typed_local_object_reference.rst b/doc/source/kubernetes.client.models.v1beta1_typed_local_object_reference.rst new file mode 100644 index 0000000000..56aed93274 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_typed_local_object_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_typed\_local\_object\_reference module +======================================================================== + +.. automodule:: kubernetes.client.models.v1beta1_typed_local_object_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_variable.rst b/doc/source/kubernetes.client.models.v1beta1_variable.rst new file mode 100644 index 0000000000..c10627ba0c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_variable.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_variable module +================================================= + +.. automodule:: kubernetes.client.models.v1beta1_variable + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_workload.rst b/doc/source/kubernetes.client.models.v1beta1_workload.rst new file mode 100644 index 0000000000..88da635bb8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_workload.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_workload module +================================================= + +.. automodule:: kubernetes.client.models.v1beta1_workload + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_workload_list.rst b/doc/source/kubernetes.client.models.v1beta1_workload_list.rst new file mode 100644 index 0000000000..5b6dec765c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_workload_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_workload\_list module +======================================================= + +.. automodule:: kubernetes.client.models.v1beta1_workload_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_workload_reference.rst b/doc/source/kubernetes.client.models.v1beta1_workload_reference.rst new file mode 100644 index 0000000000..a8240739f6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_workload_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_workload\_reference module +============================================================ + +.. automodule:: kubernetes.client.models.v1beta1_workload_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta1_workload_spec.rst b/doc/source/kubernetes.client.models.v1beta1_workload_spec.rst new file mode 100644 index 0000000000..6cfbeb0cf9 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta1_workload_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta1\_workload\_spec module +======================================================= + +.. automodule:: kubernetes.client.models.v1beta1_workload_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_allocated_device_status.rst b/doc/source/kubernetes.client.models.v1beta2_allocated_device_status.rst new file mode 100644 index 0000000000..7abf8e42f5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_allocated_device_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_allocated\_device\_status module +================================================================== + +.. automodule:: kubernetes.client.models.v1beta2_allocated_device_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_allocation_result.rst b/doc/source/kubernetes.client.models.v1beta2_allocation_result.rst new file mode 100644 index 0000000000..fe6826289d --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_allocation\_result module +=========================================================== + +.. automodule:: kubernetes.client.models.v1beta2_allocation_result + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_capacity_request_policy.rst b/doc/source/kubernetes.client.models.v1beta2_capacity_request_policy.rst new file mode 100644 index 0000000000..2f65dd2aa7 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_capacity_request_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_capacity\_request\_policy module +================================================================== + +.. automodule:: kubernetes.client.models.v1beta2_capacity_request_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_capacity_request_policy_range.rst b/doc/source/kubernetes.client.models.v1beta2_capacity_request_policy_range.rst new file mode 100644 index 0000000000..faef15c28b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_capacity_request_policy_range.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_capacity\_request\_policy\_range module +========================================================================= + +.. automodule:: kubernetes.client.models.v1beta2_capacity_request_policy_range + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_capacity_requirements.rst b/doc/source/kubernetes.client.models.v1beta2_capacity_requirements.rst new file mode 100644 index 0000000000..fd8b247217 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_capacity_requirements.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_capacity\_requirements module +=============================================================== + +.. automodule:: kubernetes.client.models.v1beta2_capacity_requirements + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_cel_device_selector.rst b/doc/source/kubernetes.client.models.v1beta2_cel_device_selector.rst new file mode 100644 index 0000000000..ae5b9281df --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_cel_device_selector.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_cel\_device\_selector module +============================================================== + +.. automodule:: kubernetes.client.models.v1beta2_cel_device_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_counter.rst b/doc/source/kubernetes.client.models.v1beta2_counter.rst new file mode 100644 index 0000000000..441b39e555 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_counter.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_counter module +================================================ + +.. automodule:: kubernetes.client.models.v1beta2_counter + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_counter_set.rst b/doc/source/kubernetes.client.models.v1beta2_counter_set.rst new file mode 100644 index 0000000000..9aeb420b81 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_counter_set.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_counter\_set module +===================================================== + +.. automodule:: kubernetes.client.models.v1beta2_counter_set + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device.rst b/doc/source/kubernetes.client.models.v1beta2_device.rst new file mode 100644 index 0000000000..1fb30bbc8e --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device module +=============================================== + +.. automodule:: kubernetes.client.models.v1beta2_device + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_allocation_configuration.rst b/doc/source/kubernetes.client.models.v1beta2_device_allocation_configuration.rst new file mode 100644 index 0000000000..3253e3ce44 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_allocation_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_allocation\_configuration module +========================================================================== + +.. automodule:: kubernetes.client.models.v1beta2_device_allocation_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_allocation_result.rst b/doc/source/kubernetes.client.models.v1beta2_device_allocation_result.rst new file mode 100644 index 0000000000..23701b1143 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_allocation\_result module +=================================================================== + +.. automodule:: kubernetes.client.models.v1beta2_device_allocation_result + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_attribute.rst b/doc/source/kubernetes.client.models.v1beta2_device_attribute.rst new file mode 100644 index 0000000000..3916776e82 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_attribute.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_attribute module +========================================================== + +.. automodule:: kubernetes.client.models.v1beta2_device_attribute + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_capacity.rst b/doc/source/kubernetes.client.models.v1beta2_device_capacity.rst new file mode 100644 index 0000000000..539f908ecd --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_capacity.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_capacity module +========================================================= + +.. automodule:: kubernetes.client.models.v1beta2_device_capacity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_claim.rst b/doc/source/kubernetes.client.models.v1beta2_device_claim.rst new file mode 100644 index 0000000000..a991caefc9 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_claim.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_claim module +====================================================== + +.. automodule:: kubernetes.client.models.v1beta2_device_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_claim_configuration.rst b/doc/source/kubernetes.client.models.v1beta2_device_claim_configuration.rst new file mode 100644 index 0000000000..a31e728fbe --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_claim_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_claim\_configuration module +===================================================================== + +.. automodule:: kubernetes.client.models.v1beta2_device_claim_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_class.rst b/doc/source/kubernetes.client.models.v1beta2_device_class.rst new file mode 100644 index 0000000000..95c72a63d1 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_class.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_class module +====================================================== + +.. automodule:: kubernetes.client.models.v1beta2_device_class + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_class_configuration.rst b/doc/source/kubernetes.client.models.v1beta2_device_class_configuration.rst new file mode 100644 index 0000000000..12204f90bd --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_class_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_class\_configuration module +===================================================================== + +.. automodule:: kubernetes.client.models.v1beta2_device_class_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_class_list.rst b/doc/source/kubernetes.client.models.v1beta2_device_class_list.rst new file mode 100644 index 0000000000..e6d18a3023 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_class_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_class\_list module +============================================================ + +.. automodule:: kubernetes.client.models.v1beta2_device_class_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_class_spec.rst b/doc/source/kubernetes.client.models.v1beta2_device_class_spec.rst new file mode 100644 index 0000000000..28c49f51d3 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_class_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_class\_spec module +============================================================ + +.. automodule:: kubernetes.client.models.v1beta2_device_class_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_constraint.rst b/doc/source/kubernetes.client.models.v1beta2_device_constraint.rst new file mode 100644 index 0000000000..cc17a8b8f1 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_constraint.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_constraint module +=========================================================== + +.. automodule:: kubernetes.client.models.v1beta2_device_constraint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_counter_consumption.rst b/doc/source/kubernetes.client.models.v1beta2_device_counter_consumption.rst new file mode 100644 index 0000000000..5bbad8fd33 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_counter_consumption.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_counter\_consumption module +===================================================================== + +.. automodule:: kubernetes.client.models.v1beta2_device_counter_consumption + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_derived_attribute.rst b/doc/source/kubernetes.client.models.v1beta2_device_derived_attribute.rst new file mode 100644 index 0000000000..1ed8bf4056 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_derived_attribute.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_derived\_attribute module +=================================================================== + +.. automodule:: kubernetes.client.models.v1beta2_device_derived_attribute + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_request.rst b/doc/source/kubernetes.client.models.v1beta2_device_request.rst new file mode 100644 index 0000000000..72236bfd9b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_request.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_request module +======================================================== + +.. automodule:: kubernetes.client.models.v1beta2_device_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_request_allocation_result.rst b/doc/source/kubernetes.client.models.v1beta2_device_request_allocation_result.rst new file mode 100644 index 0000000000..e5d9d7defe --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_request_allocation_result.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_request\_allocation\_result module +============================================================================ + +.. automodule:: kubernetes.client.models.v1beta2_device_request_allocation_result + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_selector.rst b/doc/source/kubernetes.client.models.v1beta2_device_selector.rst new file mode 100644 index 0000000000..edda78497b --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_selector.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_selector module +========================================================= + +.. automodule:: kubernetes.client.models.v1beta2_device_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_sub_request.rst b/doc/source/kubernetes.client.models.v1beta2_device_sub_request.rst new file mode 100644 index 0000000000..82f88981bb --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_sub_request.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_sub\_request module +============================================================= + +.. automodule:: kubernetes.client.models.v1beta2_device_sub_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_taint.rst b/doc/source/kubernetes.client.models.v1beta2_device_taint.rst new file mode 100644 index 0000000000..3b258a35f8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_taint.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_taint module +====================================================== + +.. automodule:: kubernetes.client.models.v1beta2_device_taint + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_taint_rule.rst b/doc/source/kubernetes.client.models.v1beta2_device_taint_rule.rst new file mode 100644 index 0000000000..1a4febbfe5 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_taint_rule.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_taint\_rule module +============================================================ + +.. automodule:: kubernetes.client.models.v1beta2_device_taint_rule + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_taint_rule_list.rst b/doc/source/kubernetes.client.models.v1beta2_device_taint_rule_list.rst new file mode 100644 index 0000000000..241425b1f6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_taint_rule_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_taint\_rule\_list module +================================================================== + +.. automodule:: kubernetes.client.models.v1beta2_device_taint_rule_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_taint_rule_spec.rst b/doc/source/kubernetes.client.models.v1beta2_device_taint_rule_spec.rst new file mode 100644 index 0000000000..4c5b1eada8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_taint_rule_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_taint\_rule\_spec module +================================================================== + +.. automodule:: kubernetes.client.models.v1beta2_device_taint_rule_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_taint_rule_status.rst b/doc/source/kubernetes.client.models.v1beta2_device_taint_rule_status.rst new file mode 100644 index 0000000000..2e4f80ff01 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_taint_rule_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_taint\_rule\_status module +==================================================================== + +.. automodule:: kubernetes.client.models.v1beta2_device_taint_rule_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_taint_selector.rst b/doc/source/kubernetes.client.models.v1beta2_device_taint_selector.rst new file mode 100644 index 0000000000..ba163580f6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_taint_selector.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_taint\_selector module +================================================================ + +.. automodule:: kubernetes.client.models.v1beta2_device_taint_selector + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_device_toleration.rst b/doc/source/kubernetes.client.models.v1beta2_device_toleration.rst new file mode 100644 index 0000000000..f341403a8c --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_device_toleration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_device\_toleration module +=========================================================== + +.. automodule:: kubernetes.client.models.v1beta2_device_toleration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_exact_device_request.rst b/doc/source/kubernetes.client.models.v1beta2_exact_device_request.rst new file mode 100644 index 0000000000..60f63890c7 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_exact_device_request.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_exact\_device\_request module +=============================================================== + +.. automodule:: kubernetes.client.models.v1beta2_exact_device_request + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_network_device_data.rst b/doc/source/kubernetes.client.models.v1beta2_network_device_data.rst new file mode 100644 index 0000000000..dd544e95e0 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_network_device_data.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_network\_device\_data module +============================================================== + +.. automodule:: kubernetes.client.models.v1beta2_network_device_data + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_node_allocatable_mapping.rst b/doc/source/kubernetes.client.models.v1beta2_node_allocatable_mapping.rst new file mode 100644 index 0000000000..c9f61c4edb --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_node_allocatable_mapping.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_node\_allocatable\_mapping module +=================================================================== + +.. automodule:: kubernetes.client.models.v1beta2_node_allocatable_mapping + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_node_allocatable_overhead.rst b/doc/source/kubernetes.client.models.v1beta2_node_allocatable_overhead.rst new file mode 100644 index 0000000000..6e5c3d12b8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_node_allocatable_overhead.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_node\_allocatable\_overhead module +==================================================================== + +.. automodule:: kubernetes.client.models.v1beta2_node_allocatable_overhead + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_node_allocatable_resource.rst b/doc/source/kubernetes.client.models.v1beta2_node_allocatable_resource.rst new file mode 100644 index 0000000000..cb1c14a2bc --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_node_allocatable_resource.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_node\_allocatable\_resource module +==================================================================== + +.. automodule:: kubernetes.client.models.v1beta2_node_allocatable_resource + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_opaque_device_configuration.rst b/doc/source/kubernetes.client.models.v1beta2_opaque_device_configuration.rst new file mode 100644 index 0000000000..4df4d10c75 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_opaque_device_configuration.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_opaque\_device\_configuration module +====================================================================== + +.. automodule:: kubernetes.client.models.v1beta2_opaque_device_configuration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_resource_claim.rst b/doc/source/kubernetes.client.models.v1beta2_resource_claim.rst new file mode 100644 index 0000000000..e16d9008ca --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_resource_claim.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_resource\_claim module +======================================================== + +.. automodule:: kubernetes.client.models.v1beta2_resource_claim + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_resource_claim_consumer_reference.rst b/doc/source/kubernetes.client.models.v1beta2_resource_claim_consumer_reference.rst new file mode 100644 index 0000000000..ceeb4d195f --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_resource_claim_consumer_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_resource\_claim\_consumer\_reference module +============================================================================= + +.. automodule:: kubernetes.client.models.v1beta2_resource_claim_consumer_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_resource_claim_list.rst b/doc/source/kubernetes.client.models.v1beta2_resource_claim_list.rst new file mode 100644 index 0000000000..7800c7ef96 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_resource_claim_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_resource\_claim\_list module +============================================================== + +.. automodule:: kubernetes.client.models.v1beta2_resource_claim_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_resource_claim_spec.rst b/doc/source/kubernetes.client.models.v1beta2_resource_claim_spec.rst new file mode 100644 index 0000000000..62906073b3 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_resource_claim_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_resource\_claim\_spec module +============================================================== + +.. automodule:: kubernetes.client.models.v1beta2_resource_claim_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_resource_claim_status.rst b/doc/source/kubernetes.client.models.v1beta2_resource_claim_status.rst new file mode 100644 index 0000000000..5b7c53b8da --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_resource_claim_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_resource\_claim\_status module +================================================================ + +.. automodule:: kubernetes.client.models.v1beta2_resource_claim_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_resource_claim_template.rst b/doc/source/kubernetes.client.models.v1beta2_resource_claim_template.rst new file mode 100644 index 0000000000..9048c99684 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_resource_claim_template.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_resource\_claim\_template module +================================================================== + +.. automodule:: kubernetes.client.models.v1beta2_resource_claim_template + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_resource_claim_template_list.rst b/doc/source/kubernetes.client.models.v1beta2_resource_claim_template_list.rst new file mode 100644 index 0000000000..7a93738e8a --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_resource_claim_template_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_resource\_claim\_template\_list module +======================================================================== + +.. automodule:: kubernetes.client.models.v1beta2_resource_claim_template_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_resource_claim_template_spec.rst b/doc/source/kubernetes.client.models.v1beta2_resource_claim_template_spec.rst new file mode 100644 index 0000000000..b88ee28ada --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_resource_claim_template_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_resource\_claim\_template\_spec module +======================================================================== + +.. automodule:: kubernetes.client.models.v1beta2_resource_claim_template_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_resource_pool.rst b/doc/source/kubernetes.client.models.v1beta2_resource_pool.rst new file mode 100644 index 0000000000..f308024816 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_resource_pool.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_resource\_pool module +======================================================= + +.. automodule:: kubernetes.client.models.v1beta2_resource_pool + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_resource_slice.rst b/doc/source/kubernetes.client.models.v1beta2_resource_slice.rst new file mode 100644 index 0000000000..08adc5dc81 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_resource_slice.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_resource\_slice module +======================================================== + +.. automodule:: kubernetes.client.models.v1beta2_resource_slice + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_resource_slice_list.rst b/doc/source/kubernetes.client.models.v1beta2_resource_slice_list.rst new file mode 100644 index 0000000000..e723d5f559 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_resource_slice_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_resource\_slice\_list module +============================================================== + +.. automodule:: kubernetes.client.models.v1beta2_resource_slice_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v1beta2_resource_slice_spec.rst b/doc/source/kubernetes.client.models.v1beta2_resource_slice_spec.rst new file mode 100644 index 0000000000..4446af43e4 --- /dev/null +++ b/doc/source/kubernetes.client.models.v1beta2_resource_slice_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v1beta2\_resource\_slice\_spec module +============================================================== + +.. automodule:: kubernetes.client.models.v1beta2_resource_slice_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_api_group_discovery.rst b/doc/source/kubernetes.client.models.v2_api_group_discovery.rst new file mode 100644 index 0000000000..de3c9f43a6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_api_group_discovery.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_api\_group\_discovery module +========================================================= + +.. automodule:: kubernetes.client.models.v2_api_group_discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_api_group_discovery_list.rst b/doc/source/kubernetes.client.models.v2_api_group_discovery_list.rst new file mode 100644 index 0000000000..62e807b1d8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_api_group_discovery_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_api\_group\_discovery\_list module +=============================================================== + +.. automodule:: kubernetes.client.models.v2_api_group_discovery_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_api_resource_discovery.rst b/doc/source/kubernetes.client.models.v2_api_resource_discovery.rst new file mode 100644 index 0000000000..57e2d3eb43 --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_api_resource_discovery.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_api\_resource\_discovery module +============================================================ + +.. automodule:: kubernetes.client.models.v2_api_resource_discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_api_subresource_discovery.rst b/doc/source/kubernetes.client.models.v2_api_subresource_discovery.rst new file mode 100644 index 0000000000..fc9715b3de --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_api_subresource_discovery.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_api\_subresource\_discovery module +=============================================================== + +.. automodule:: kubernetes.client.models.v2_api_subresource_discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_api_version_discovery.rst b/doc/source/kubernetes.client.models.v2_api_version_discovery.rst new file mode 100644 index 0000000000..125167a7ce --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_api_version_discovery.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_api\_version\_discovery module +=========================================================== + +.. automodule:: kubernetes.client.models.v2_api_version_discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_container_resource_metric_source.rst b/doc/source/kubernetes.client.models.v2_container_resource_metric_source.rst new file mode 100644 index 0000000000..8512972cb9 --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_container_resource_metric_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_container\_resource\_metric\_source module +======================================================================= + +.. automodule:: kubernetes.client.models.v2_container_resource_metric_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_container_resource_metric_status.rst b/doc/source/kubernetes.client.models.v2_container_resource_metric_status.rst new file mode 100644 index 0000000000..bf70fb40e6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_container_resource_metric_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_container\_resource\_metric\_status module +======================================================================= + +.. automodule:: kubernetes.client.models.v2_container_resource_metric_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_cross_version_object_reference.rst b/doc/source/kubernetes.client.models.v2_cross_version_object_reference.rst new file mode 100644 index 0000000000..434bfe281e --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_cross_version_object_reference.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_cross\_version\_object\_reference module +===================================================================== + +.. automodule:: kubernetes.client.models.v2_cross_version_object_reference + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_external_metric_source.rst b/doc/source/kubernetes.client.models.v2_external_metric_source.rst new file mode 100644 index 0000000000..f408db1b1a --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_external_metric_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_external\_metric\_source module +============================================================ + +.. automodule:: kubernetes.client.models.v2_external_metric_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_external_metric_status.rst b/doc/source/kubernetes.client.models.v2_external_metric_status.rst new file mode 100644 index 0000000000..9a2407622b --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_external_metric_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_external\_metric\_status module +============================================================ + +.. automodule:: kubernetes.client.models.v2_external_metric_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler.rst b/doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler.rst new file mode 100644 index 0000000000..f6416bea6f --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_horizontal\_pod\_autoscaler module +=============================================================== + +.. automodule:: kubernetes.client.models.v2_horizontal_pod_autoscaler + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_behavior.rst b/doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_behavior.rst new file mode 100644 index 0000000000..9f9fe48ede --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_behavior.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_horizontal\_pod\_autoscaler\_behavior module +========================================================================= + +.. automodule:: kubernetes.client.models.v2_horizontal_pod_autoscaler_behavior + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_condition.rst b/doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_condition.rst new file mode 100644 index 0000000000..9247e05c6e --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_condition.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_horizontal\_pod\_autoscaler\_condition module +========================================================================== + +.. automodule:: kubernetes.client.models.v2_horizontal_pod_autoscaler_condition + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_list.rst b/doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_list.rst new file mode 100644 index 0000000000..b657adeda6 --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_horizontal\_pod\_autoscaler\_list module +===================================================================== + +.. automodule:: kubernetes.client.models.v2_horizontal_pod_autoscaler_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_spec.rst b/doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_spec.rst new file mode 100644 index 0000000000..02f91093fd --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_horizontal\_pod\_autoscaler\_spec module +===================================================================== + +.. automodule:: kubernetes.client.models.v2_horizontal_pod_autoscaler_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_status.rst b/doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_status.rst new file mode 100644 index 0000000000..95e8f3770f --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_horizontal_pod_autoscaler_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_horizontal\_pod\_autoscaler\_status module +======================================================================= + +.. automodule:: kubernetes.client.models.v2_horizontal_pod_autoscaler_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_hpa_scaling_policy.rst b/doc/source/kubernetes.client.models.v2_hpa_scaling_policy.rst new file mode 100644 index 0000000000..3ea27ed9e0 --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_hpa_scaling_policy.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_hpa\_scaling\_policy module +======================================================== + +.. automodule:: kubernetes.client.models.v2_hpa_scaling_policy + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_hpa_scaling_rules.rst b/doc/source/kubernetes.client.models.v2_hpa_scaling_rules.rst new file mode 100644 index 0000000000..df3645386e --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_hpa_scaling_rules.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_hpa\_scaling\_rules module +======================================================= + +.. automodule:: kubernetes.client.models.v2_hpa_scaling_rules + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_metric_identifier.rst b/doc/source/kubernetes.client.models.v2_metric_identifier.rst new file mode 100644 index 0000000000..c290bcc393 --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_metric_identifier.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_metric\_identifier module +====================================================== + +.. automodule:: kubernetes.client.models.v2_metric_identifier + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_metric_spec.rst b/doc/source/kubernetes.client.models.v2_metric_spec.rst new file mode 100644 index 0000000000..d9f2d6b400 --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_metric_spec.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_metric\_spec module +================================================ + +.. automodule:: kubernetes.client.models.v2_metric_spec + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_metric_status.rst b/doc/source/kubernetes.client.models.v2_metric_status.rst new file mode 100644 index 0000000000..cd30fd1fae --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_metric_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_metric\_status module +================================================== + +.. automodule:: kubernetes.client.models.v2_metric_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_metric_target.rst b/doc/source/kubernetes.client.models.v2_metric_target.rst new file mode 100644 index 0000000000..17e99de671 --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_metric_target.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_metric\_target module +================================================== + +.. automodule:: kubernetes.client.models.v2_metric_target + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_metric_value_status.rst b/doc/source/kubernetes.client.models.v2_metric_value_status.rst new file mode 100644 index 0000000000..b360fecf80 --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_metric_value_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_metric\_value\_status module +========================================================= + +.. automodule:: kubernetes.client.models.v2_metric_value_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_object_metric_source.rst b/doc/source/kubernetes.client.models.v2_object_metric_source.rst new file mode 100644 index 0000000000..a4cfa644f7 --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_object_metric_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_object\_metric\_source module +========================================================== + +.. automodule:: kubernetes.client.models.v2_object_metric_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_object_metric_status.rst b/doc/source/kubernetes.client.models.v2_object_metric_status.rst new file mode 100644 index 0000000000..cadfde5f89 --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_object_metric_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_object\_metric\_status module +========================================================== + +.. automodule:: kubernetes.client.models.v2_object_metric_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_pods_metric_source.rst b/doc/source/kubernetes.client.models.v2_pods_metric_source.rst new file mode 100644 index 0000000000..bb7d19518f --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_pods_metric_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_pods\_metric\_source module +======================================================== + +.. automodule:: kubernetes.client.models.v2_pods_metric_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_pods_metric_status.rst b/doc/source/kubernetes.client.models.v2_pods_metric_status.rst new file mode 100644 index 0000000000..bd9699adaf --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_pods_metric_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_pods\_metric\_status module +======================================================== + +.. automodule:: kubernetes.client.models.v2_pods_metric_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_resource_metric_source.rst b/doc/source/kubernetes.client.models.v2_resource_metric_source.rst new file mode 100644 index 0000000000..93d869922c --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_resource_metric_source.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_resource\_metric\_source module +============================================================ + +.. automodule:: kubernetes.client.models.v2_resource_metric_source + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2_resource_metric_status.rst b/doc/source/kubernetes.client.models.v2_resource_metric_status.rst new file mode 100644 index 0000000000..0c4047b169 --- /dev/null +++ b/doc/source/kubernetes.client.models.v2_resource_metric_status.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2\_resource\_metric\_status module +============================================================ + +.. automodule:: kubernetes.client.models.v2_resource_metric_status + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2beta1_api_group_discovery.rst b/doc/source/kubernetes.client.models.v2beta1_api_group_discovery.rst new file mode 100644 index 0000000000..a67826e2fb --- /dev/null +++ b/doc/source/kubernetes.client.models.v2beta1_api_group_discovery.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2beta1\_api\_group\_discovery module +============================================================== + +.. automodule:: kubernetes.client.models.v2beta1_api_group_discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2beta1_api_group_discovery_list.rst b/doc/source/kubernetes.client.models.v2beta1_api_group_discovery_list.rst new file mode 100644 index 0000000000..8b96895eaa --- /dev/null +++ b/doc/source/kubernetes.client.models.v2beta1_api_group_discovery_list.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2beta1\_api\_group\_discovery\_list module +==================================================================== + +.. automodule:: kubernetes.client.models.v2beta1_api_group_discovery_list + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2beta1_api_resource_discovery.rst b/doc/source/kubernetes.client.models.v2beta1_api_resource_discovery.rst new file mode 100644 index 0000000000..3dc5eb46f0 --- /dev/null +++ b/doc/source/kubernetes.client.models.v2beta1_api_resource_discovery.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2beta1\_api\_resource\_discovery module +================================================================= + +.. automodule:: kubernetes.client.models.v2beta1_api_resource_discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2beta1_api_subresource_discovery.rst b/doc/source/kubernetes.client.models.v2beta1_api_subresource_discovery.rst new file mode 100644 index 0000000000..3e75823ba8 --- /dev/null +++ b/doc/source/kubernetes.client.models.v2beta1_api_subresource_discovery.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2beta1\_api\_subresource\_discovery module +==================================================================== + +.. automodule:: kubernetes.client.models.v2beta1_api_subresource_discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.v2beta1_api_version_discovery.rst b/doc/source/kubernetes.client.models.v2beta1_api_version_discovery.rst new file mode 100644 index 0000000000..b123ae547a --- /dev/null +++ b/doc/source/kubernetes.client.models.v2beta1_api_version_discovery.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.v2beta1\_api\_version\_discovery module +================================================================ + +.. automodule:: kubernetes.client.models.v2beta1_api_version_discovery + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.models.version_info.rst b/doc/source/kubernetes.client.models.version_info.rst new file mode 100644 index 0000000000..43208ee706 --- /dev/null +++ b/doc/source/kubernetes.client.models.version_info.rst @@ -0,0 +1,7 @@ +kubernetes.client.models.version\_info module +============================================= + +.. automodule:: kubernetes.client.models.version_info + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.rest.rst b/doc/source/kubernetes.client.rest.rst new file mode 100644 index 0000000000..6929ca8508 --- /dev/null +++ b/doc/source/kubernetes.client.rest.rst @@ -0,0 +1,7 @@ +kubernetes.client.rest module +============================= + +.. automodule:: kubernetes.client.rest + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.client.rst b/doc/source/kubernetes.client.rst new file mode 100644 index 0000000000..3dc1a4f2e7 --- /dev/null +++ b/doc/source/kubernetes.client.rst @@ -0,0 +1,32 @@ +kubernetes.client package +========================= + +Subpackages +----------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.client.api + kubernetes.client.apis + kubernetes.client.models + +Submodules +---------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.client.api_client + kubernetes.client.api_response + kubernetes.client.configuration + kubernetes.client.exceptions + kubernetes.client.rest + +Module contents +--------------- + +.. automodule:: kubernetes.client + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.e2e_test.base.rst b/doc/source/kubernetes.e2e_test.base.rst new file mode 100644 index 0000000000..3cbd1e3cda --- /dev/null +++ b/doc/source/kubernetes.e2e_test.base.rst @@ -0,0 +1,7 @@ +kubernetes.e2e\_test.base module +================================ + +.. automodule:: kubernetes.e2e_test.base + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.e2e_test.port_server.rst b/doc/source/kubernetes.e2e_test.port_server.rst new file mode 100644 index 0000000000..afffac2afc --- /dev/null +++ b/doc/source/kubernetes.e2e_test.port_server.rst @@ -0,0 +1,7 @@ +kubernetes.e2e\_test.port\_server module +======================================== + +.. automodule:: kubernetes.e2e_test.port_server + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.e2e_test.rst b/doc/source/kubernetes.e2e_test.rst new file mode 100644 index 0000000000..54bdfb1116 --- /dev/null +++ b/doc/source/kubernetes.e2e_test.rst @@ -0,0 +1,26 @@ +kubernetes.e2e\_test package +============================ + +Submodules +---------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.e2e_test.base + kubernetes.e2e_test.port_server + kubernetes.e2e_test.test_apps + kubernetes.e2e_test.test_batch + kubernetes.e2e_test.test_client + kubernetes.e2e_test.test_informer + kubernetes.e2e_test.test_issue_2387_proxy_ssl_context + kubernetes.e2e_test.test_utils + kubernetes.e2e_test.test_watch + +Module contents +--------------- + +.. automodule:: kubernetes.e2e_test + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.e2e_test.test_apps.rst b/doc/source/kubernetes.e2e_test.test_apps.rst new file mode 100644 index 0000000000..967382a5d9 --- /dev/null +++ b/doc/source/kubernetes.e2e_test.test_apps.rst @@ -0,0 +1,7 @@ +kubernetes.e2e\_test.test\_apps module +====================================== + +.. automodule:: kubernetes.e2e_test.test_apps + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.e2e_test.test_batch.rst b/doc/source/kubernetes.e2e_test.test_batch.rst new file mode 100644 index 0000000000..36e0d7e728 --- /dev/null +++ b/doc/source/kubernetes.e2e_test.test_batch.rst @@ -0,0 +1,7 @@ +kubernetes.e2e\_test.test\_batch module +======================================= + +.. automodule:: kubernetes.e2e_test.test_batch + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.e2e_test.test_client.rst b/doc/source/kubernetes.e2e_test.test_client.rst new file mode 100644 index 0000000000..efeef16478 --- /dev/null +++ b/doc/source/kubernetes.e2e_test.test_client.rst @@ -0,0 +1,7 @@ +kubernetes.e2e\_test.test\_client module +======================================== + +.. automodule:: kubernetes.e2e_test.test_client + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.e2e_test.test_informer.rst b/doc/source/kubernetes.e2e_test.test_informer.rst new file mode 100644 index 0000000000..f8fd3739db --- /dev/null +++ b/doc/source/kubernetes.e2e_test.test_informer.rst @@ -0,0 +1,7 @@ +kubernetes.e2e\_test.test\_informer module +========================================== + +.. automodule:: kubernetes.e2e_test.test_informer + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.e2e_test.test_issue_2387_proxy_ssl_context.rst b/doc/source/kubernetes.e2e_test.test_issue_2387_proxy_ssl_context.rst new file mode 100644 index 0000000000..c535bf8769 --- /dev/null +++ b/doc/source/kubernetes.e2e_test.test_issue_2387_proxy_ssl_context.rst @@ -0,0 +1,7 @@ +kubernetes.e2e\_test.test\_issue\_2387\_proxy\_ssl\_context module +================================================================== + +.. automodule:: kubernetes.e2e_test.test_issue_2387_proxy_ssl_context + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.e2e_test.test_utils.rst b/doc/source/kubernetes.e2e_test.test_utils.rst new file mode 100644 index 0000000000..ddc91cb9e1 --- /dev/null +++ b/doc/source/kubernetes.e2e_test.test_utils.rst @@ -0,0 +1,7 @@ +kubernetes.e2e\_test.test\_utils module +======================================= + +.. automodule:: kubernetes.e2e_test.test_utils + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.e2e_test.test_watch.rst b/doc/source/kubernetes.e2e_test.test_watch.rst new file mode 100644 index 0000000000..3abdd68806 --- /dev/null +++ b/doc/source/kubernetes.e2e_test.test_watch.rst @@ -0,0 +1,7 @@ +kubernetes.e2e\_test.test\_watch module +======================================= + +.. automodule:: kubernetes.e2e_test.test_watch + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.informer.cache.rst b/doc/source/kubernetes.informer.cache.rst new file mode 100644 index 0000000000..3e00806fb7 --- /dev/null +++ b/doc/source/kubernetes.informer.cache.rst @@ -0,0 +1,7 @@ +kubernetes.informer.cache module +================================ + +.. automodule:: kubernetes.informer.cache + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.informer.informer.rst b/doc/source/kubernetes.informer.informer.rst new file mode 100644 index 0000000000..4c637bac26 --- /dev/null +++ b/doc/source/kubernetes.informer.informer.rst @@ -0,0 +1,7 @@ +kubernetes.informer.informer module +=================================== + +.. automodule:: kubernetes.informer.informer + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.informer.rst b/doc/source/kubernetes.informer.rst new file mode 100644 index 0000000000..63a84c6c11 --- /dev/null +++ b/doc/source/kubernetes.informer.rst @@ -0,0 +1,19 @@ +kubernetes.informer package +=========================== + +Submodules +---------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.informer.cache + kubernetes.informer.informer + +Module contents +--------------- + +.. automodule:: kubernetes.informer + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.rst b/doc/source/kubernetes.rst new file mode 100644 index 0000000000..b591e1145e --- /dev/null +++ b/doc/source/kubernetes.rst @@ -0,0 +1,27 @@ +kubernetes package +================== + +Subpackages +----------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.aio + kubernetes.client + kubernetes.config + kubernetes.dynamic + kubernetes.e2e_test + kubernetes.informer + kubernetes.leaderelection + kubernetes.stream + kubernetes.utils + kubernetes.watch + +Module contents +--------------- + +.. automodule:: kubernetes + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.utils.create_from_yaml.rst b/doc/source/kubernetes.utils.create_from_yaml.rst new file mode 100644 index 0000000000..42d1e5a06a --- /dev/null +++ b/doc/source/kubernetes.utils.create_from_yaml.rst @@ -0,0 +1,7 @@ +kubernetes.utils.create\_from\_yaml module +========================================== + +.. automodule:: kubernetes.utils.create_from_yaml + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.utils.duration.rst b/doc/source/kubernetes.utils.duration.rst new file mode 100644 index 0000000000..18dc8a1888 --- /dev/null +++ b/doc/source/kubernetes.utils.duration.rst @@ -0,0 +1,7 @@ +kubernetes.utils.duration module +================================ + +.. automodule:: kubernetes.utils.duration + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.utils.metrics.rst b/doc/source/kubernetes.utils.metrics.rst new file mode 100644 index 0000000000..795e89237f --- /dev/null +++ b/doc/source/kubernetes.utils.metrics.rst @@ -0,0 +1,7 @@ +kubernetes.utils.metrics module +=============================== + +.. automodule:: kubernetes.utils.metrics + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.utils.quantity.rst b/doc/source/kubernetes.utils.quantity.rst new file mode 100644 index 0000000000..22dc80ab6e --- /dev/null +++ b/doc/source/kubernetes.utils.quantity.rst @@ -0,0 +1,7 @@ +kubernetes.utils.quantity module +================================ + +.. automodule:: kubernetes.utils.quantity + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.utils.retry.rst b/doc/source/kubernetes.utils.retry.rst new file mode 100644 index 0000000000..8f0ba5a27b --- /dev/null +++ b/doc/source/kubernetes.utils.retry.rst @@ -0,0 +1,7 @@ +kubernetes.utils.retry module +============================= + +.. automodule:: kubernetes.utils.retry + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.utils.retry_test.rst b/doc/source/kubernetes.utils.retry_test.rst new file mode 100644 index 0000000000..3b28814635 --- /dev/null +++ b/doc/source/kubernetes.utils.retry_test.rst @@ -0,0 +1,7 @@ +kubernetes.utils.retry\_test module +=================================== + +.. automodule:: kubernetes.utils.retry_test + :members: + :show-inheritance: + :undoc-members: diff --git a/doc/source/kubernetes.utils.rst b/doc/source/kubernetes.utils.rst new file mode 100644 index 0000000000..ffcb94d255 --- /dev/null +++ b/doc/source/kubernetes.utils.rst @@ -0,0 +1,23 @@ +kubernetes.utils package +======================== + +Submodules +---------- + +.. toctree:: + :maxdepth: 4 + + kubernetes.utils.create_from_yaml + kubernetes.utils.duration + kubernetes.utils.metrics + kubernetes.utils.quantity + kubernetes.utils.retry + kubernetes.utils.retry_test + +Module contents +--------------- + +.. automodule:: kubernetes.utils + :members: + :show-inheritance: + :undoc-members: diff --git a/kubernetes/client/api/custom_objects_api.py b/kubernetes/client/api/custom_objects_api.py index 4791237b31..fff568ba8b 100644 --- a/kubernetes/client/api/custom_objects_api.py +++ b/kubernetes/client/api/custom_objects_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. From 9eaf6ad8a3ce25d8882424429e7ddc520e171443 Mon Sep 17 00:00:00 2001 From: yliao Date: Fri, 28 Aug 2026 21:41:22 +0000 Subject: [PATCH 4/6] generated API change --- kubernetes/aio/client/api/__init__.py | 27 +- .../client/api/admissionregistration_api.py | 5 +- .../api/admissionregistration_v1_api.py | 2 +- .../api/admissionregistration_v1alpha1_api.py | 2 +- .../api/admissionregistration_v1beta1_api.py | 2 +- .../aio/client/api/apiextensions_api.py | 5 +- .../aio/client/api/apiextensions_v1_api.py | 2 +- .../aio/client/api/apiregistration_api.py | 5 +- .../aio/client/api/apiregistration_v1_api.py | 2 +- kubernetes/aio/client/api/apis_api.py | 5 +- kubernetes/aio/client/api/apps_api.py | 5 +- kubernetes/aio/client/api/apps_v1_api.py | 2 +- .../aio/client/api/authentication_api.py | 5 +- .../aio/client/api/authentication_v1_api.py | 2 +- .../aio/client/api/authorization_api.py | 5 +- .../aio/client/api/authorization_v1_api.py | 2 +- kubernetes/aio/client/api/autoscaling_api.py | 5 +- .../aio/client/api/autoscaling_v1_api.py | 2 +- .../aio/client/api/autoscaling_v2_api.py | 2 +- kubernetes/aio/client/api/batch_api.py | 5 +- kubernetes/aio/client/api/batch_v1_api.py | 2 +- kubernetes/aio/client/api/certificates_api.py | 5 +- .../aio/client/api/certificates_v1_api.py | 9405 ++- .../client/api/certificates_v1beta1_api.py | 2 +- kubernetes/aio/client/api/coordination_api.py | 5 +- .../aio/client/api/coordination_v1_api.py | 2 +- .../client/api/coordination_v1alpha2_api.py | 2 +- .../client/api/coordination_v1beta1_api.py | 2 +- kubernetes/aio/client/api/core_api.py | 5 +- kubernetes/aio/client/api/core_v1_api.py | 2 +- .../aio/client/api/custom_objects_api.py | 2 +- kubernetes/aio/client/api/discovery_api.py | 5 +- kubernetes/aio/client/api/discovery_v1_api.py | 2 +- kubernetes/aio/client/api/events_api.py | 5 +- kubernetes/aio/client/api/events_v1_api.py | 2 +- .../client/api/flowcontrol_apiserver_api.py | 5 +- .../api/flowcontrol_apiserver_v1_api.py | 2 +- .../aio/client/api/internal_apiserver_api.py | 5 +- .../api/internal_apiserver_v1alpha1_api.py | 2 +- kubernetes/aio/client/api/lifecycle_api.py | 305 + .../aio/client/api/lifecycle_v1alpha1_api.py | 9068 +++ kubernetes/aio/client/api/logs_api.py | 2 +- kubernetes/aio/client/api/networking_api.py | 5 +- .../aio/client/api/networking_v1_api.py | 2 +- kubernetes/aio/client/api/node_api.py | 5 +- kubernetes/aio/client/api/node_v1_api.py | 2 +- kubernetes/aio/client/api/openid_api.py | 2 +- kubernetes/aio/client/api/policy_api.py | 5 +- kubernetes/aio/client/api/policy_v1_api.py | 2 +- .../aio/client/api/rbac_authorization_api.py | 5 +- .../client/api/rbac_authorization_v1_api.py | 2 +- kubernetes/aio/client/api/resource_api.py | 5 +- kubernetes/aio/client/api/resource_v1_api.py | 8765 ++- .../aio/client/api/resource_v1alpha3_api.py | 2 +- .../aio/client/api/resource_v1beta1_api.py | 2 +- .../aio/client/api/resource_v1beta2_api.py | 2 +- kubernetes/aio/client/api/scheduling_api.py | 5 +- .../aio/client/api/scheduling_v1_api.py | 2 +- .../aio/client/api/scheduling_v1alpha3_api.py | 12375 ++++ ...lpha2_api.py => scheduling_v1beta1_api.py} | 322 +- kubernetes/aio/client/api/storage_api.py | 5 +- kubernetes/aio/client/api/storage_v1_api.py | 1773 +- .../aio/client/api/storage_v1beta1_api.py | 3052 - .../aio/client/api/storagemigration_api.py | 5 +- ...pha1_api.py => storagemigration_v1_api.py} | 2073 +- .../api/storagemigration_v1beta1_api.py | 2 +- kubernetes/aio/client/api/version_api.py | 2 +- kubernetes/aio/client/api/well_known_api.py | 2 +- kubernetes/aio/client/models/__init__.py | 431 +- ...issionregistration_v1_service_reference.py | 2 +- ...onregistration_v1_webhook_client_config.py | 2 +- .../apiextensions_v1_service_reference.py | 2 +- .../apiextensions_v1_webhook_client_config.py | 2 +- .../apiregistration_v1_service_reference.py | 2 +- .../models/authentication_v1_token_request.py | 2 +- .../client/models/core_v1_endpoint_port.py | 2 +- kubernetes/aio/client/models/core_v1_event.py | 2 +- .../aio/client/models/core_v1_event_list.py | 2 +- .../aio/client/models/core_v1_event_series.py | 2 +- .../client/models/core_v1_resource_claim.py | 2 +- .../models/discovery_v1_endpoint_port.py | 2 +- .../aio/client/models/events_v1_event.py | 2 +- .../aio/client/models/events_v1_event_list.py | 2 +- .../client/models/events_v1_event_series.py | 2 +- .../client/models/flowcontrol_v1_subject.py | 2 +- .../aio/client/models/rbac_v1_subject.py | 10 +- .../models/resource_v1_resource_claim.py | 4 +- .../client/models/storage_v1_token_request.py | 2 +- kubernetes/aio/client/models/v1_affinity.py | 2 +- .../aio/client/models/v1_aggregation_rule.py | 4 +- .../models/v1_allocated_device_status.py | 2 +- .../aio/client/models/v1_allocation_result.py | 2 +- kubernetes/aio/client/models/v1_api_group.py | 2 +- .../aio/client/models/v1_api_group_list.py | 2 +- .../aio/client/models/v1_api_resource.py | 2 +- .../aio/client/models/v1_api_resource_list.py | 2 +- .../aio/client/models/v1_api_service.py | 2 +- .../client/models/v1_api_service_condition.py | 2 +- .../aio/client/models/v1_api_service_list.py | 2 +- .../aio/client/models/v1_api_service_spec.py | 2 +- .../client/models/v1_api_service_status.py | 2 +- .../aio/client/models/v1_api_versions.py | 2 +- .../aio/client/models/v1_app_armor_profile.py | 2 +- .../client/models/v1_apply_configuration.py | 2 +- .../aio/client/models/v1_attached_volume.py | 2 +- .../aio/client/models/v1_audit_annotation.py | 2 +- ...1_aws_elastic_block_store_volume_source.py | 2 +- .../models/v1_azure_disk_volume_source.py | 2 +- .../v1_azure_file_persistent_volume_source.py | 2 +- .../models/v1_azure_file_volume_source.py | 2 +- kubernetes/aio/client/models/v1_binding.py | 2 +- .../models/v1_bound_object_reference.py | 4 +- .../aio/client/models/v1_capabilities.py | 2 +- .../models/v1_capacity_request_policy.py | 2 +- .../v1_capacity_request_policy_range.py | 4 +- .../client/models/v1_capacity_requirements.py | 2 +- .../client/models/v1_cel_device_selector.py | 4 +- .../v1_ceph_fs_persistent_volume_source.py | 2 +- .../client/models/v1_ceph_fs_volume_source.py | 2 +- .../models/v1_certificate_signing_request.py | 2 +- ...1_certificate_signing_request_condition.py | 2 +- .../v1_certificate_signing_request_list.py | 2 +- .../v1_certificate_signing_request_spec.py | 2 +- .../v1_certificate_signing_request_status.py | 2 +- .../v1_cinder_persistent_volume_source.py | 2 +- .../client/models/v1_cinder_volume_source.py | 2 +- .../aio/client/models/v1_client_ip_config.py | 2 +- .../aio/client/models/v1_cluster_role.py | 4 +- .../client/models/v1_cluster_role_binding.py | 4 +- .../models/v1_cluster_role_binding_list.py | 2 +- .../aio/client/models/v1_cluster_role_list.py | 2 +- ...t_bundle.py => v1_cluster_trust_bundle.py} | 22 +- ...ist.py => v1_cluster_trust_bundle_list.py} | 20 +- .../v1_cluster_trust_bundle_projection.py | 17 +- .../models/v1_cluster_trust_bundle_spec.py} | 12 +- .../client/models/v1_component_condition.py | 2 +- .../aio/client/models/v1_component_status.py | 2 +- .../client/models/v1_component_status_list.py | 2 +- kubernetes/aio/client/models/v1_condition.py | 2 +- kubernetes/aio/client/models/v1_config_map.py | 4 +- .../client/models/v1_config_map_env_source.py | 4 +- .../models/v1_config_map_key_selector.py | 4 +- .../aio/client/models/v1_config_map_list.py | 2 +- .../v1_config_map_node_config_source.py | 2 +- .../client/models/v1_config_map_projection.py | 2 +- .../models/v1_config_map_volume_source.py | 12 +- kubernetes/aio/client/models/v1_container.py | 2 +- .../v1_container_extended_resource_request.py | 2 +- .../aio/client/models/v1_container_image.py | 2 +- .../aio/client/models/v1_container_port.py | 2 +- .../models/v1_container_resize_policy.py | 2 +- .../models/v1_container_restart_rule.py | 2 +- ...v1_container_restart_rule_on_exit_codes.py | 2 +- .../aio/client/models/v1_container_state.py | 2 +- .../models/v1_container_state_running.py | 2 +- .../models/v1_container_state_terminated.py | 2 +- .../models/v1_container_state_waiting.py | 2 +- .../aio/client/models/v1_container_status.py | 2 +- .../aio/client/models/v1_container_user.py | 2 +- .../client/models/v1_controller_revision.py | 6 +- .../models/v1_controller_revision_list.py | 2 +- kubernetes/aio/client/models/v1_counter.py | 2 +- .../aio/client/models/v1_counter_set.py | 2 +- kubernetes/aio/client/models/v1_cron_job.py | 2 +- .../aio/client/models/v1_cron_job_list.py | 2 +- .../aio/client/models/v1_cron_job_spec.py | 2 +- .../aio/client/models/v1_cron_job_status.py | 2 +- .../v1_cross_version_object_reference.py | 2 +- kubernetes/aio/client/models/v1_csi_driver.py | 2 +- .../aio/client/models/v1_csi_driver_list.py | 2 +- .../aio/client/models/v1_csi_driver_spec.py | 4 +- kubernetes/aio/client/models/v1_csi_node.py | 19 +- .../aio/client/models/v1_csi_node_driver.py | 2 +- .../aio/client/models/v1_csi_node_list.py | 2 +- .../aio/client/models/v1_csi_node_spec.py | 2 +- .../aio/client/models/v1_csi_node_status.py | 239 + .../models/v1_csi_persistent_volume_source.py | 2 +- .../client/models/v1_csi_storage_capacity.py | 2 +- .../models/v1_csi_storage_capacity_list.py | 2 +- .../aio/client/models/v1_csi_volume_source.py | 2 +- .../v1_custom_resource_column_definition.py | 2 +- .../models/v1_custom_resource_conversion.py | 2 +- .../models/v1_custom_resource_definition.py | 2 +- ...v1_custom_resource_definition_condition.py | 2 +- .../v1_custom_resource_definition_list.py | 2 +- .../v1_custom_resource_definition_names.py | 2 +- .../v1_custom_resource_definition_spec.py | 2 +- .../v1_custom_resource_definition_status.py | 2 +- .../v1_custom_resource_definition_version.py | 2 +- .../v1_custom_resource_subresource_scale.py | 2 +- .../models/v1_custom_resource_subresources.py | 2 +- .../models/v1_custom_resource_validation.py | 2 +- .../aio/client/models/v1_daemon_endpoint.py | 2 +- kubernetes/aio/client/models/v1_daemon_set.py | 4 +- .../client/models/v1_daemon_set_condition.py | 6 +- .../aio/client/models/v1_daemon_set_list.py | 2 +- .../aio/client/models/v1_daemon_set_spec.py | 2 +- .../aio/client/models/v1_daemon_set_status.py | 2 +- .../models/v1_daemon_set_update_strategy.py | 2 +- .../aio/client/models/v1_delete_options.py | 2 +- kubernetes/aio/client/models/v1_deployment.py | 4 +- .../client/models/v1_deployment_condition.py | 6 +- .../aio/client/models/v1_deployment_list.py | 2 +- .../aio/client/models/v1_deployment_spec.py | 2 +- .../aio/client/models/v1_deployment_status.py | 2 +- .../client/models/v1_deployment_strategy.py | 2 +- kubernetes/aio/client/models/v1_device.py | 38 +- .../v1_device_allocation_configuration.py | 2 +- .../models/v1_device_allocation_result.py | 2 +- .../aio/client/models/v1_device_attribute.py | 2 +- .../aio/client/models/v1_device_capacity.py | 2 +- .../aio/client/models/v1_device_claim.py | 2 +- .../models/v1_device_claim_configuration.py | 2 +- .../aio/client/models/v1_device_class.py | 4 +- .../models/v1_device_class_configuration.py | 2 +- .../aio/client/models/v1_device_class_list.py | 2 +- .../aio/client/models/v1_device_class_spec.py | 4 +- .../aio/client/models/v1_device_constraint.py | 2 +- .../models/v1_device_counter_consumption.py | 14 +- .../models/v1_device_derived_attribute.py | 214 + .../aio/client/models/v1_device_request.py | 2 +- .../v1_device_request_allocation_result.py | 12 +- .../aio/client/models/v1_device_selector.py | 2 +- .../client/models/v1_device_sub_request.py | 19 +- .../aio/client/models/v1_device_taint.py | 2 +- ...ervice_cidr.py => v1_device_taint_rule.py} | 30 +- ...r_list.py => v1_device_taint_rule_list.py} | 22 +- .../models/v1_device_taint_rule_spec.py | 245 + ...atus.py => v1_device_taint_rule_status.py} | 16 +- .../client/models/v1_device_taint_selector.py | 219 + .../aio/client/models/v1_device_toleration.py | 2 +- .../models/v1_downward_api_projection.py | 2 +- .../models/v1_downward_api_volume_file.py | 15 +- .../models/v1_downward_api_volume_source.py | 12 +- .../models/v1_empty_dir_volume_source.py | 11 +- kubernetes/aio/client/models/v1_endpoint.py | 2 +- .../aio/client/models/v1_endpoint_address.py | 2 +- .../client/models/v1_endpoint_conditions.py | 2 +- .../aio/client/models/v1_endpoint_hints.py | 2 +- .../aio/client/models/v1_endpoint_slice.py | 2 +- .../client/models/v1_endpoint_slice_list.py | 2 +- .../aio/client/models/v1_endpoint_subset.py | 2 +- kubernetes/aio/client/models/v1_endpoints.py | 2 +- .../aio/client/models/v1_endpoints_list.py | 2 +- .../aio/client/models/v1_env_from_source.py | 2 +- kubernetes/aio/client/models/v1_env_var.py | 2 +- .../aio/client/models/v1_env_var_source.py | 2 +- .../client/models/v1_ephemeral_container.py | 2 +- .../models/v1_ephemeral_volume_source.py | 2 +- .../aio/client/models/v1_event_source.py | 2 +- kubernetes/aio/client/models/v1_eviction.py | 2 +- .../client/models/v1_eviction_responder.py | 214 + .../client/models/v1_exact_device_request.py | 19 +- .../aio/client/models/v1_exec_action.py | 2 +- .../v1_exempt_priority_level_configuration.py | 2 +- .../client/models/v1_expression_warning.py | 2 +- .../models/v1_external_documentation.py | 2 +- .../aio/client/models/v1_fc_volume_source.py | 2 +- .../models/v1_field_selector_attributes.py | 2 +- .../models/v1_field_selector_requirement.py | 2 +- .../aio/client/models/v1_file_key_selector.py | 2 +- .../v1_flex_persistent_volume_source.py | 2 +- .../client/models/v1_flex_volume_source.py | 2 +- .../client/models/v1_flocker_volume_source.py | 2 +- .../models/v1_flow_distinguisher_method.py | 2 +- .../aio/client/models/v1_flow_schema.py | 4 +- .../client/models/v1_flow_schema_condition.py | 6 +- .../aio/client/models/v1_flow_schema_list.py | 2 +- .../aio/client/models/v1_flow_schema_spec.py | 2 +- .../client/models/v1_flow_schema_status.py | 2 +- kubernetes/aio/client/models/v1_for_node.py | 2 +- kubernetes/aio/client/models/v1_for_zone.py | 2 +- .../v1_gce_persistent_disk_volume_source.py | 2 +- .../models/v1_git_repo_volume_source.py | 2 +- .../v1_glusterfs_persistent_volume_source.py | 2 +- .../models/v1_glusterfs_volume_source.py | 2 +- .../aio/client/models/v1_group_resource.py | 2 +- .../aio/client/models/v1_group_subject.py | 2 +- .../models/v1_group_version_for_discovery.py | 2 +- .../client/models/v1_group_version_kind.py | 2 +- .../aio/client/models/v1_grpc_action.py | 9 +- .../models/v1_horizontal_pod_autoscaler.py | 2 +- .../v1_horizontal_pod_autoscaler_list.py | 2 +- .../v1_horizontal_pod_autoscaler_spec.py | 2 +- .../v1_horizontal_pod_autoscaler_status.py | 2 +- kubernetes/aio/client/models/v1_host_alias.py | 2 +- kubernetes/aio/client/models/v1_host_ip.py | 2 +- .../models/v1_host_path_volume_source.py | 2 +- .../aio/client/models/v1_http_get_action.py | 9 +- .../aio/client/models/v1_http_header.py | 2 +- .../aio/client/models/v1_http_ingress_path.py | 2 +- .../models/v1_http_ingress_rule_value.py | 2 +- .../client/models/v1_image_volume_source.py | 2 +- .../client/models/v1_image_volume_status.py | 2 +- kubernetes/aio/client/models/v1_ingress.py | 2 +- .../aio/client/models/v1_ingress_backend.py | 2 +- .../aio/client/models/v1_ingress_class.py | 2 +- .../client/models/v1_ingress_class_list.py | 2 +- .../v1_ingress_class_parameters_reference.py | 2 +- .../client/models/v1_ingress_class_spec.py | 2 +- .../aio/client/models/v1_ingress_list.py | 2 +- .../v1_ingress_load_balancer_ingress.py | 2 +- .../models/v1_ingress_load_balancer_status.py | 2 +- .../client/models/v1_ingress_port_status.py | 2 +- .../aio/client/models/v1_ingress_rule.py | 2 +- .../models/v1_ingress_service_backend.py | 2 +- .../aio/client/models/v1_ingress_spec.py | 2 +- .../aio/client/models/v1_ingress_status.py | 2 +- .../aio/client/models/v1_ingress_tls.py | 2 +- kubernetes/aio/client/models/v1_ip_address.py | 2 +- .../aio/client/models/v1_ip_address_list.py | 2 +- .../aio/client/models/v1_ip_address_spec.py | 2 +- kubernetes/aio/client/models/v1_ip_block.py | 2 +- .../v1_iscsi_persistent_volume_source.py | 2 +- .../client/models/v1_iscsi_volume_source.py | 2 +- kubernetes/aio/client/models/v1_job.py | 2 +- .../aio/client/models/v1_job_condition.py | 2 +- kubernetes/aio/client/models/v1_job_list.py | 2 +- .../models/v1_job_scheduling_configuration.py | 275 + kubernetes/aio/client/models/v1_job_spec.py | 13 +- kubernetes/aio/client/models/v1_job_status.py | 4 +- .../aio/client/models/v1_job_template_spec.py | 2 +- kubernetes/aio/client/models/v1_json_patch.py | 2 +- .../aio/client/models/v1_json_schema_props.py | 2 +- .../aio/client/models/v1_key_to_path.py | 15 +- .../aio/client/models/v1_label_selector.py | 2 +- .../models/v1_label_selector_attributes.py | 2 +- .../models/v1_label_selector_requirement.py | 2 +- kubernetes/aio/client/models/v1_lease.py | 2 +- kubernetes/aio/client/models/v1_lease_list.py | 2 +- kubernetes/aio/client/models/v1_lease_spec.py | 6 +- kubernetes/aio/client/models/v1_lifecycle.py | 2 +- .../aio/client/models/v1_lifecycle_handler.py | 2 +- .../aio/client/models/v1_limit_range.py | 2 +- .../aio/client/models/v1_limit_range_item.py | 2 +- .../aio/client/models/v1_limit_range_list.py | 2 +- .../aio/client/models/v1_limit_range_spec.py | 2 +- .../aio/client/models/v1_limit_response.py | 2 +- ...v1_limited_priority_level_configuration.py | 4 +- .../client/models/v1_linux_container_user.py | 2 +- kubernetes/aio/client/models/v1_list_meta.py | 2 +- .../client/models/v1_load_balancer_ingress.py | 2 +- .../client/models/v1_load_balancer_status.py | 2 +- .../models/v1_local_object_reference.py | 2 +- .../models/v1_local_subject_access_review.py | 2 +- .../client/models/v1_local_volume_source.py | 2 +- .../client/models/v1_managed_fields_entry.py | 2 +- .../aio/client/models/v1_match_condition.py | 2 +- .../aio/client/models/v1_match_resources.py | 2 +- .../client/models/v1_modify_volume_status.py | 2 +- .../models/v1_mutating_admission_policy.py | 2 +- .../v1_mutating_admission_policy_binding.py | 2 +- ..._mutating_admission_policy_binding_list.py | 2 +- ..._mutating_admission_policy_binding_spec.py | 2 +- .../v1_mutating_admission_policy_list.py | 2 +- .../v1_mutating_admission_policy_spec.py | 2 +- .../aio/client/models/v1_mutating_webhook.py | 2 +- .../v1_mutating_webhook_configuration.py | 2 +- .../v1_mutating_webhook_configuration_list.py | 2 +- kubernetes/aio/client/models/v1_mutation.py | 2 +- .../models/v1_named_rule_with_operations.py | 2 +- kubernetes/aio/client/models/v1_namespace.py | 2 +- .../client/models/v1_namespace_condition.py | 2 +- .../aio/client/models/v1_namespace_list.py | 2 +- .../aio/client/models/v1_namespace_spec.py | 2 +- .../aio/client/models/v1_namespace_status.py | 2 +- .../client/models/v1_network_device_data.py | 2 +- .../aio/client/models/v1_network_policy.py | 2 +- .../models/v1_network_policy_egress_rule.py | 2 +- .../models/v1_network_policy_ingress_rule.py | 2 +- .../client/models/v1_network_policy_list.py | 2 +- .../client/models/v1_network_policy_peer.py | 2 +- .../client/models/v1_network_policy_port.py | 2 +- .../client/models/v1_network_policy_spec.py | 2 +- .../aio/client/models/v1_nfs_volume_source.py | 2 +- kubernetes/aio/client/models/v1_node.py | 2 +- .../aio/client/models/v1_node_address.py | 2 +- .../aio/client/models/v1_node_affinity.py | 2 +- .../v1_node_allocatable_mapped_resources.py | 214 + ...ping.py => v1_node_allocatable_mapping.py} | 48 +- .../models/v1_node_allocatable_overhead.py | 240 + .../v1_node_allocatable_overhead_resources.py | 245 + .../models/v1_node_allocatable_resource.py | 222 + ..._node_allocatable_resource_claim_status.py | 39 +- .../aio/client/models/v1_node_condition.py | 2 +- .../client/models/v1_node_config_source.py | 2 +- .../client/models/v1_node_config_status.py | 2 +- .../client/models/v1_node_daemon_endpoints.py | 2 +- .../aio/client/models/v1_node_features.py | 2 +- kubernetes/aio/client/models/v1_node_list.py | 2 +- .../models/v1_node_pod_preemption_policy.py | 232 + .../client/models/v1_node_runtime_handler.py | 2 +- .../v1_node_runtime_handler_features.py | 2 +- .../aio/client/models/v1_node_selector.py | 2 +- .../models/v1_node_selector_requirement.py | 2 +- .../client/models/v1_node_selector_term.py | 2 +- kubernetes/aio/client/models/v1_node_spec.py | 16 +- .../aio/client/models/v1_node_status.py | 2 +- .../aio/client/models/v1_node_swap_status.py | 2 +- .../aio/client/models/v1_node_system_info.py | 14 +- .../models/v1_non_resource_attributes.py | 2 +- .../models/v1_non_resource_policy_rule.py | 2 +- .../aio/client/models/v1_non_resource_rule.py | 2 +- .../client/models/v1_object_field_selector.py | 2 +- .../aio/client/models/v1_object_meta.py | 2 +- .../aio/client/models/v1_object_reference.py | 2 +- .../models/v1_opaque_device_configuration.py | 2 +- kubernetes/aio/client/models/v1_overhead.py | 2 +- .../aio/client/models/v1_owner_reference.py | 2 +- kubernetes/aio/client/models/v1_param_kind.py | 2 +- kubernetes/aio/client/models/v1_param_ref.py | 2 +- .../aio/client/models/v1_parent_reference.py | 10 +- .../aio/client/models/v1_persistent_volume.py | 2 +- .../models/v1_persistent_volume_claim.py | 2 +- .../v1_persistent_volume_claim_condition.py | 2 +- .../models/v1_persistent_volume_claim_list.py | 2 +- .../models/v1_persistent_volume_claim_spec.py | 2 +- .../v1_persistent_volume_claim_status.py | 16 +- .../v1_persistent_volume_claim_template.py | 2 +- ...1_persistent_volume_claim_volume_source.py | 2 +- .../models/v1_persistent_volume_list.py | 2 +- .../models/v1_persistent_volume_spec.py | 2 +- .../models/v1_persistent_volume_status.py | 2 +- ...v1_photon_persistent_disk_volume_source.py | 2 +- kubernetes/aio/client/models/v1_pod.py | 2 +- .../aio/client/models/v1_pod_affinity.py | 2 +- .../aio/client/models/v1_pod_affinity_term.py | 2 +- .../aio/client/models/v1_pod_anti_affinity.py | 2 +- .../models/v1_pod_certificate_projection.py | 9 +- .../models/v1_pod_certificate_request.py | 264 + .../models/v1_pod_certificate_request_list.py | 258 + .../models/v1_pod_certificate_request_spec.py | 312 + .../v1_pod_certificate_request_status.py | 269 + .../aio/client/models/v1_pod_condition.py | 2 +- .../client/models/v1_pod_disruption_budget.py | 2 +- .../models/v1_pod_disruption_budget_list.py | 2 +- .../models/v1_pod_disruption_budget_spec.py | 8 +- .../models/v1_pod_disruption_budget_status.py | 2 +- .../aio/client/models/v1_pod_dns_config.py | 2 +- .../client/models/v1_pod_dns_config_option.py | 2 +- .../v1_pod_extended_resource_claim_status.py | 2 +- .../client/models/v1_pod_failure_policy.py | 2 +- ...ailure_policy_on_exit_codes_requirement.py | 2 +- ...ailure_policy_on_pod_conditions_pattern.py | 2 +- .../models/v1_pod_failure_policy_rule.py | 2 +- kubernetes/aio/client/models/v1_pod_ip.py | 2 +- kubernetes/aio/client/models/v1_pod_list.py | 2 +- kubernetes/aio/client/models/v1_pod_os.py | 2 +- .../client/models/v1_pod_readiness_gate.py | 2 +- .../client/models/v1_pod_resource_claim.py | 2 +- .../models/v1_pod_resource_claim_status.py | 2 +- .../client/models/v1_pod_scheduling_gate.py | 2 +- .../client/models/v1_pod_scheduling_group.py | 2 +- .../client/models/v1_pod_security_context.py | 4 +- kubernetes/aio/client/models/v1_pod_spec.py | 23 +- kubernetes/aio/client/models/v1_pod_status.py | 25 +- .../aio/client/models/v1_pod_template.py | 2 +- .../aio/client/models/v1_pod_template_list.py | 2 +- .../aio/client/models/v1_pod_template_spec.py | 2 +- .../aio/client/models/v1_pod_volume_health.py | 253 + .../aio/client/models/v1_policy_rule.py | 12 +- .../models/v1_policy_rules_with_subjects.py | 2 +- .../aio/client/models/v1_port_status.py | 2 +- .../models/v1_portworx_volume_source.py | 2 +- .../aio/client/models/v1_preconditions.py | 2 +- .../models/v1_preferred_scheduling_term.py | 2 +- .../aio/client/models/v1_priority_class.py | 2 +- .../client/models/v1_priority_class_list.py | 2 +- .../models/v1_priority_level_configuration.py | 4 +- ..._priority_level_configuration_condition.py | 6 +- .../v1_priority_level_configuration_list.py | 2 +- ..._priority_level_configuration_reference.py | 2 +- .../v1_priority_level_configuration_spec.py | 2 +- .../v1_priority_level_configuration_status.py | 2 +- kubernetes/aio/client/models/v1_probe.py | 2 +- .../models/v1_projected_volume_source.py | 12 +- .../client/models/v1_queuing_configuration.py | 2 +- .../client/models/v1_quobyte_volume_source.py | 2 +- .../models/v1_rbd_persistent_volume_source.py | 2 +- .../aio/client/models/v1_rbd_volume_source.py | 2 +- .../aio/client/models/v1_replica_set.py | 4 +- .../client/models/v1_replica_set_condition.py | 6 +- .../aio/client/models/v1_replica_set_list.py | 2 +- .../aio/client/models/v1_replica_set_spec.py | 2 +- .../client/models/v1_replica_set_status.py | 2 +- .../models/v1_replication_controller.py | 2 +- .../v1_replication_controller_condition.py | 2 +- .../models/v1_replication_controller_list.py | 2 +- .../models/v1_replication_controller_spec.py | 2 +- .../v1_replication_controller_status.py | 2 +- .../client/models/v1_resource_attributes.py | 2 +- .../v1_resource_claim_consumer_reference.py | 2 +- .../client/models/v1_resource_claim_list.py | 2 +- .../client/models/v1_resource_claim_spec.py | 2 +- .../client/models/v1_resource_claim_status.py | 2 +- .../models/v1_resource_claim_template.py | 4 +- .../models/v1_resource_claim_template_list.py | 2 +- .../models/v1_resource_claim_template_spec.py | 4 +- .../models/v1_resource_field_selector.py | 2 +- .../aio/client/models/v1_resource_health.py | 2 +- .../client/models/v1_resource_policy_rule.py | 2 +- .../aio/client/models/v1_resource_pool.py | 4 +- .../aio/client/models/v1_resource_quota.py | 2 +- .../client/models/v1_resource_quota_list.py | 2 +- .../client/models/v1_resource_quota_spec.py | 2 +- .../client/models/v1_resource_quota_status.py | 2 +- .../client/models/v1_resource_requirements.py | 2 +- .../aio/client/models/v1_resource_rule.py | 2 +- .../aio/client/models/v1_resource_slice.py | 2 +- .../client/models/v1_resource_slice_list.py | 2 +- .../client/models/v1_resource_slice_spec.py | 26 +- .../aio/client/models/v1_resource_status.py | 4 +- kubernetes/aio/client/models/v1_role.py | 4 +- .../aio/client/models/v1_role_binding.py | 4 +- .../aio/client/models/v1_role_binding_list.py | 2 +- kubernetes/aio/client/models/v1_role_list.py | 2 +- kubernetes/aio/client/models/v1_role_ref.py | 8 +- .../models/v1_rolling_update_daemon_set.py | 2 +- .../models/v1_rolling_update_deployment.py | 2 +- ...v1_rolling_update_stateful_set_strategy.py | 2 +- .../client/models/v1_rule_with_operations.py | 2 +- .../aio/client/models/v1_runtime_class.py | 2 +- .../client/models/v1_runtime_class_list.py | 2 +- kubernetes/aio/client/models/v1_scale.py | 2 +- .../v1_scale_io_persistent_volume_source.py | 2 +- .../models/v1_scale_io_volume_source.py | 2 +- kubernetes/aio/client/models/v1_scale_spec.py | 2 +- .../aio/client/models/v1_scale_status.py | 2 +- kubernetes/aio/client/models/v1_scheduling.py | 2 +- .../aio/client/models/v1_scope_selector.py | 2 +- ...v1_scoped_resource_selector_requirement.py | 2 +- .../aio/client/models/v1_se_linux_options.py | 2 +- .../aio/client/models/v1_seccomp_profile.py | 2 +- kubernetes/aio/client/models/v1_secret.py | 2 +- .../aio/client/models/v1_secret_env_source.py | 2 +- .../client/models/v1_secret_key_selector.py | 2 +- .../aio/client/models/v1_secret_list.py | 2 +- .../aio/client/models/v1_secret_projection.py | 2 +- .../aio/client/models/v1_secret_reference.py | 2 +- .../client/models/v1_secret_volume_source.py | 12 +- .../aio/client/models/v1_security_context.py | 2 +- .../aio/client/models/v1_selectable_field.py | 2 +- .../models/v1_self_subject_access_review.py | 2 +- .../v1_self_subject_access_review_spec.py | 2 +- .../client/models/v1_self_subject_review.py | 2 +- .../models/v1_self_subject_review_status.py | 2 +- .../models/v1_self_subject_rules_review.py | 2 +- .../v1_self_subject_rules_review_spec.py | 2 +- .../v1_server_address_by_client_cidr.py | 2 +- kubernetes/aio/client/models/v1_service.py | 2 +- .../aio/client/models/v1_service_account.py | 2 +- .../client/models/v1_service_account_list.py | 2 +- .../models/v1_service_account_subject.py | 2 +- .../v1_service_account_token_projection.py | 15 +- .../client/models/v1_service_backend_port.py | 2 +- .../aio/client/models/v1_service_cidr.py | 2 +- .../aio/client/models/v1_service_cidr_list.py | 2 +- .../aio/client/models/v1_service_cidr_spec.py | 4 +- .../client/models/v1_service_cidr_status.py | 2 +- .../aio/client/models/v1_service_list.py | 2 +- .../aio/client/models/v1_service_port.py | 2 +- .../aio/client/models/v1_service_spec.py | 2 +- .../aio/client/models/v1_service_status.py | 2 +- .../models/v1_session_affinity_config.py | 2 +- kubernetes/aio/client/models/v1_shard_info.py | 2 +- .../aio/client/models/v1_sleep_action.py | 2 +- .../aio/client/models/v1_stateful_set.py | 4 +- .../models/v1_stateful_set_condition.py | 6 +- .../aio/client/models/v1_stateful_set_list.py | 2 +- .../client/models/v1_stateful_set_ordinals.py | 2 +- ...ersistent_volume_claim_retention_policy.py | 2 +- .../aio/client/models/v1_stateful_set_spec.py | 2 +- .../client/models/v1_stateful_set_status.py | 2 +- .../models/v1_stateful_set_update_strategy.py | 2 +- kubernetes/aio/client/models/v1_status.py | 2 +- .../aio/client/models/v1_status_cause.py | 2 +- .../aio/client/models/v1_status_details.py | 2 +- .../aio/client/models/v1_storage_class.py | 2 +- .../client/models/v1_storage_class_list.py | 2 +- .../aio/client/models/v1_storage_health.py | 244 + .../models/v1_storage_health_condition.py | 264 + .../v1_storage_os_persistent_volume_source.py | 2 +- .../models/v1_storage_os_volume_source.py | 2 +- .../models/v1_storage_version_migration.py | 264 + .../v1_storage_version_migration_list.py | 258 + .../v1_storage_version_migration_spec.py | 213 + .../v1_storage_version_migration_status.py | 244 + .../client/models/v1_subject_access_review.py | 2 +- .../models/v1_subject_access_review_spec.py | 2 +- .../models/v1_subject_access_review_status.py | 2 +- .../models/v1_subject_rules_review_status.py | 2 +- .../aio/client/models/v1_success_policy.py | 2 +- .../client/models/v1_success_policy_rule.py | 2 +- kubernetes/aio/client/models/v1_sysctl.py | 2 +- kubernetes/aio/client/models/v1_taint.py | 2 +- .../aio/client/models/v1_tcp_socket_action.py | 2 +- .../client/models/v1_token_request_spec.py | 9 +- .../client/models/v1_token_request_status.py | 2 +- .../aio/client/models/v1_token_review.py | 2 +- .../aio/client/models/v1_token_review_spec.py | 2 +- .../client/models/v1_token_review_status.py | 2 +- kubernetes/aio/client/models/v1_toleration.py | 2 +- .../v1_topology_selector_label_requirement.py | 2 +- .../models/v1_topology_selector_term.py | 2 +- .../models/v1_topology_spread_constraint.py | 2 +- .../aio/client/models/v1_type_checking.py | 2 +- .../models/v1_typed_local_object_reference.py | 2 +- .../models/v1_typed_object_reference.py | 2 +- .../models/v1_uncounted_terminated_pods.py | 2 +- kubernetes/aio/client/models/v1_user_info.py | 2 +- .../aio/client/models/v1_user_subject.py | 2 +- .../models/v1_validating_admission_policy.py | 2 +- .../v1_validating_admission_policy_binding.py | 2 +- ...alidating_admission_policy_binding_list.py | 2 +- ...alidating_admission_policy_binding_spec.py | 2 +- .../v1_validating_admission_policy_list.py | 2 +- .../v1_validating_admission_policy_spec.py | 2 +- .../v1_validating_admission_policy_status.py | 2 +- .../client/models/v1_validating_webhook.py | 2 +- .../v1_validating_webhook_configuration.py | 2 +- ...1_validating_webhook_configuration_list.py | 2 +- kubernetes/aio/client/models/v1_validation.py | 2 +- .../aio/client/models/v1_validation_rule.py | 2 +- kubernetes/aio/client/models/v1_variable.py | 2 +- kubernetes/aio/client/models/v1_volume.py | 2 +- .../aio/client/models/v1_volume_attachment.py | 2 +- .../models/v1_volume_attachment_list.py | 2 +- .../models/v1_volume_attachment_source.py | 2 +- .../models/v1_volume_attachment_spec.py | 2 +- .../models/v1_volume_attachment_status.py | 2 +- .../models/v1_volume_attributes_class.py | 4 +- .../models/v1_volume_attributes_class_list.py | 2 +- .../aio/client/models/v1_volume_device.py | 2 +- .../aio/client/models/v1_volume_error.py | 2 +- .../models/v1_volume_health_condition.py | 219 + .../client/models/v1_volume_health_status.py | 248 + .../aio/client/models/v1_volume_mount.py | 14 +- .../client/models/v1_volume_mount_status.py | 2 +- .../client/models/v1_volume_node_affinity.py | 2 +- .../client/models/v1_volume_node_resources.py | 2 +- .../aio/client/models/v1_volume_projection.py | 2 +- .../models/v1_volume_resource_requirements.py | 2 +- .../aio/client/models/v1_volume_status.py | 2 +- .../v1_vsphere_virtual_disk_volume_source.py | 2 +- .../aio/client/models/v1_watch_event.py | 2 +- .../client/models/v1_webhook_conversion.py | 2 +- .../models/v1_weighted_pod_affinity_term.py | 2 +- .../v1_windows_security_context_options.py | 2 +- .../models/v1alpha1_apply_configuration.py | 2 +- .../aio/client/models/v1alpha1_eviction.py | 264 + ...ress_list.py => v1alpha1_eviction_list.py} | 22 +- .../models/v1alpha1_eviction_pod_reference.py | 214 + .../models/v1alpha1_eviction_request.py | 264 + .../models/v1alpha1_eviction_request_list.py | 258 + ...v1alpha1_eviction_request_pod_reference.py | 214 + .../models/v1alpha1_eviction_request_spec.py | 223 + .../v1alpha1_eviction_request_status.py | 244 + .../v1alpha1_eviction_request_target.py} | 34 +- .../client/models/v1alpha1_eviction_spec.py | 213 + .../client/models/v1alpha1_eviction_status.py | 283 + .../client/models/v1alpha1_eviction_target.py | 213 + .../aio/client/models/v1alpha1_json_patch.py | 2 +- .../client/models/v1alpha1_match_condition.py | 2 +- .../client/models/v1alpha1_match_resources.py | 2 +- .../v1alpha1_mutating_admission_policy.py | 2 +- ...lpha1_mutating_admission_policy_binding.py | 2 +- ..._mutating_admission_policy_binding_list.py | 2 +- ..._mutating_admission_policy_binding_spec.py | 2 +- ...v1alpha1_mutating_admission_policy_list.py | 2 +- ...v1alpha1_mutating_admission_policy_spec.py | 2 +- .../aio/client/models/v1alpha1_mutation.py | 2 +- .../v1alpha1_named_rule_with_operations.py | 2 +- .../aio/client/models/v1alpha1_param_kind.py | 2 +- .../aio/client/models/v1alpha1_param_ref.py | 2 +- .../aio/client/models/v1alpha1_requester.py | 214 + .../models/v1alpha1_responder_status.py | 267 + .../models/v1alpha1_server_storage_version.py | 2 +- .../client/models/v1alpha1_storage_version.py | 2 +- .../v1alpha1_storage_version_condition.py | 2 +- .../models/v1alpha1_storage_version_list.py | 2 +- .../models/v1alpha1_storage_version_status.py | 2 +- .../models/v1alpha1_target_responder.py | 219 + .../aio/client/models/v1alpha1_variable.py | 2 +- .../client/models/v1alpha2_lease_candidate.py | 2 +- .../models/v1alpha2_lease_candidate_list.py | 2 +- .../models/v1alpha2_lease_candidate_spec.py | 14 +- .../v1alpha3_composite_disruption_mode.py | 214 + ...alpha3_composite_gang_scheduling_policy.py | 232 + .../models/v1alpha3_composite_pod_group.py | 264 + .../v1alpha3_composite_pod_group_list.py | 258 + ...posite_pod_group_scheduling_constraints.py | 216 + ...3_composite_pod_group_scheduling_policy.py | 218 + .../v1alpha3_composite_pod_group_spec.py | 301 + .../v1alpha3_composite_pod_group_status.py | 216 + .../v1alpha3_composite_pod_group_template.py | 318 + .../client/models/v1alpha3_device_taint.py | 2 +- .../models/v1alpha3_device_taint_rule.py | 2 +- .../models/v1alpha3_device_taint_rule_list.py | 2 +- .../models/v1alpha3_device_taint_rule_spec.py | 2 +- .../v1alpha3_device_taint_rule_status.py | 2 +- .../models/v1alpha3_device_taint_selector.py | 2 +- .../client/models/v1alpha3_disruption_mode.py | 214 + ....py => v1alpha3_gang_scheduling_policy.py} | 14 +- .../models/v1alpha3_partition_type_status.py | 224 + ...ha2_pod_group.py => v1alpha3_pod_group.py} | 28 +- ...oup_list.py => v1alpha3_pod_group_list.py} | 20 +- ...y => v1alpha3_pod_group_resource_claim.py} | 18 +- ...alpha3_pod_group_resource_claim_status.py} | 16 +- ...lpha3_pod_group_scheduling_constraints.py} | 20 +- .../v1alpha3_pod_group_scheduling_policy.py | 218 + ...oup_spec.py => v1alpha3_pod_group_spec.py} | 94 +- ...status.py => v1alpha3_pod_group_status.py} | 22 +- .../models/v1alpha3_pod_group_template.py} | 62 +- .../aio/client/models/v1alpha3_pool_status.py | 31 +- .../v1alpha3_resource_pool_status_request.py | 2 +- ...lpha3_resource_pool_status_request_list.py | 2 +- ...lpha3_resource_pool_status_request_spec.py | 12 +- ...ha3_resource_pool_status_request_status.py | 2 +- ... => v1alpha3_shareable_capacity_status.py} | 50 +- .../v1alpha3_shareable_summary_status.py | 252 + ...int.py => v1alpha3_topology_constraint.py} | 14 +- .../v1alpha3_typed_local_object_reference.py} | 18 +- ...lpha2_workload.py => v1alpha3_workload.py} | 20 +- ...load_list.py => v1alpha3_workload_list.py} | 20 +- ...pha3_workload_pod_group_disruption_mode.py | 214 + ...rkload_pod_group_gang_scheduling_policy.py | 232 + ...lpha3_workload_pod_group_resource_claim.py | 245 + ...rkload_pod_group_scheduling_constraints.py | 216 + ...a3_workload_pod_group_scheduling_policy.py | 218 + ...ence.py => v1alpha3_workload_reference.py} | 34 +- .../client/models/v1alpha3_workload_spec.py} | 45 +- .../models/v1beta1_allocated_device_status.py | 2 +- .../models/v1beta1_allocation_result.py | 2 +- .../models/v1beta1_apply_configuration.py | 2 +- .../aio/client/models/v1beta1_basic_device.py | 38 +- .../models/v1beta1_capacity_request_policy.py | 2 +- .../v1beta1_capacity_request_policy_range.py | 4 +- .../models/v1beta1_capacity_requirements.py | 2 +- .../models/v1beta1_cel_device_selector.py | 4 +- .../models/v1beta1_cluster_trust_bundle.py | 4 +- .../v1beta1_cluster_trust_bundle_list.py | 2 +- .../v1beta1_cluster_trust_bundle_spec.py | 2 +- .../v1beta1_composite_disruption_mode.py | 214 + ...beta1_composite_gang_scheduling_policy.py} | 38 +- ...posite_pod_group_scheduling_constraints.py | 216 + ..._composite_pod_group_scheduling_policy.py} | 24 +- .../v1beta1_composite_pod_group_template.py | 318 + .../aio/client/models/v1beta1_counter.py | 2 +- .../aio/client/models/v1beta1_counter_set.py | 2 +- .../aio/client/models/v1beta1_device.py | 2 +- ...v1beta1_device_allocation_configuration.py | 2 +- .../v1beta1_device_allocation_result.py | 2 +- .../client/models/v1beta1_device_attribute.py | 2 +- .../client/models/v1beta1_device_capacity.py | 2 +- .../aio/client/models/v1beta1_device_claim.py | 2 +- .../v1beta1_device_claim_configuration.py | 2 +- .../aio/client/models/v1beta1_device_class.py | 4 +- .../v1beta1_device_class_configuration.py | 2 +- .../models/v1beta1_device_class_list.py | 2 +- .../models/v1beta1_device_class_spec.py | 4 +- .../models/v1beta1_device_constraint.py | 2 +- .../v1beta1_device_counter_consumption.py | 14 +- .../v1beta1_device_derived_attribute.py | 214 + .../client/models/v1beta1_device_request.py | 19 +- ...1beta1_device_request_allocation_result.py | 12 +- .../client/models/v1beta1_device_selector.py | 2 +- .../models/v1beta1_device_sub_request.py | 19 +- .../aio/client/models/v1beta1_device_taint.py | 2 +- .../models/v1beta1_device_toleration.py | 2 +- .../client/models/v1beta1_disruption_mode.py | 214 + .../models/v1beta1_gang_scheduling_policy.py | 232 + .../aio/client/models/v1beta1_json_patch.py | 2 +- .../client/models/v1beta1_lease_candidate.py | 2 +- .../models/v1beta1_lease_candidate_list.py | 2 +- .../models/v1beta1_lease_candidate_spec.py | 14 +- .../client/models/v1beta1_match_condition.py | 2 +- .../client/models/v1beta1_match_resources.py | 2 +- .../v1beta1_mutating_admission_policy.py | 2 +- ...beta1_mutating_admission_policy_binding.py | 2 +- ..._mutating_admission_policy_binding_list.py | 2 +- ..._mutating_admission_policy_binding_spec.py | 2 +- .../v1beta1_mutating_admission_policy_list.py | 2 +- .../v1beta1_mutating_admission_policy_spec.py | 2 +- .../aio/client/models/v1beta1_mutation.py | 2 +- .../v1beta1_named_rule_with_operations.py | 2 +- .../models/v1beta1_network_device_data.py | 2 +- ...py => v1beta1_node_allocatable_mapping.py} | 48 +- .../v1beta1_node_allocatable_overhead.py | 240 + .../v1beta1_node_allocatable_resource.py | 222 + .../v1beta1_opaque_device_configuration.py | 2 +- .../aio/client/models/v1beta1_param_kind.py | 2 +- .../aio/client/models/v1beta1_param_ref.py | 2 +- .../models/v1beta1_pod_certificate_request.py | 2 +- .../v1beta1_pod_certificate_request_list.py | 2 +- .../v1beta1_pod_certificate_request_spec.py | 2 +- .../v1beta1_pod_certificate_request_status.py | 2 +- .../aio/client/models/v1beta1_pod_group.py | 264 + .../client/models/v1beta1_pod_group_list.py | 258 + .../v1beta1_pod_group_resource_claim.py | 245 + ...v1beta1_pod_group_resource_claim_status.py | 237 + ...1beta1_pod_group_scheduling_constraints.py | 216 + .../v1beta1_pod_group_scheduling_policy.py | 218 + .../client/models/v1beta1_pod_group_spec.py | 316 + .../client/models/v1beta1_pod_group_status.py | 251 + .../models/v1beta1_pod_group_template.py | 301 + .../client/models/v1beta1_resource_claim.py | 4 +- ...beta1_resource_claim_consumer_reference.py | 2 +- .../models/v1beta1_resource_claim_list.py | 2 +- .../models/v1beta1_resource_claim_spec.py | 2 +- .../models/v1beta1_resource_claim_status.py | 2 +- .../models/v1beta1_resource_claim_template.py | 4 +- .../v1beta1_resource_claim_template_list.py | 2 +- .../v1beta1_resource_claim_template_spec.py | 4 +- .../client/models/v1beta1_resource_pool.py | 4 +- .../client/models/v1beta1_resource_slice.py | 2 +- .../models/v1beta1_resource_slice_list.py | 2 +- .../models/v1beta1_resource_slice_spec.py | 26 +- .../v1beta1_storage_version_migration.py | 2 +- .../v1beta1_storage_version_migration_list.py | 2 +- .../v1beta1_storage_version_migration_spec.py | 2 +- ...1beta1_storage_version_migration_status.py | 2 +- ...spec.py => v1beta1_topology_constraint.py} | 28 +- .../v1beta1_typed_local_object_reference.py | 242 + .../aio/client/models/v1beta1_variable.py | 2 +- .../models/v1beta1_volume_attributes_class.py | 259 - .../v1beta1_volume_attributes_class_list.py | 258 - ...eta1_ip_address.py => v1beta1_workload.py} | 22 +- .../client/models/v1beta1_workload_list.py | 258 + .../models/v1beta1_workload_reference.py} | 34 +- .../client/models/v1beta1_workload_spec.py | 266 + .../models/v1beta2_allocated_device_status.py | 2 +- .../models/v1beta2_allocation_result.py | 2 +- .../models/v1beta2_capacity_request_policy.py | 2 +- .../v1beta2_capacity_request_policy_range.py | 4 +- .../models/v1beta2_capacity_requirements.py | 2 +- .../models/v1beta2_cel_device_selector.py | 4 +- .../aio/client/models/v1beta2_counter.py | 2 +- .../aio/client/models/v1beta2_counter_set.py | 2 +- .../aio/client/models/v1beta2_device.py | 38 +- ...v1beta2_device_allocation_configuration.py | 2 +- .../v1beta2_device_allocation_result.py | 2 +- .../client/models/v1beta2_device_attribute.py | 2 +- .../client/models/v1beta2_device_capacity.py | 2 +- .../aio/client/models/v1beta2_device_claim.py | 2 +- .../v1beta2_device_claim_configuration.py | 2 +- .../aio/client/models/v1beta2_device_class.py | 4 +- .../v1beta2_device_class_configuration.py | 2 +- .../models/v1beta2_device_class_list.py | 2 +- .../models/v1beta2_device_class_spec.py | 4 +- .../models/v1beta2_device_constraint.py | 2 +- .../v1beta2_device_counter_consumption.py | 14 +- .../v1beta2_device_derived_attribute.py | 214 + .../client/models/v1beta2_device_request.py | 2 +- ...1beta2_device_request_allocation_result.py | 12 +- .../client/models/v1beta2_device_selector.py | 2 +- .../models/v1beta2_device_sub_request.py | 19 +- .../aio/client/models/v1beta2_device_taint.py | 2 +- .../models/v1beta2_device_taint_rule.py | 2 +- .../models/v1beta2_device_taint_rule_list.py | 2 +- .../models/v1beta2_device_taint_rule_spec.py | 2 +- .../v1beta2_device_taint_rule_status.py | 2 +- .../models/v1beta2_device_taint_selector.py | 2 +- .../models/v1beta2_device_toleration.py | 2 +- .../models/v1beta2_exact_device_request.py | 19 +- .../models/v1beta2_network_device_data.py | 2 +- .../v1beta2_node_allocatable_mapping.py | 248 + .../v1beta2_node_allocatable_overhead.py | 240 + .../v1beta2_node_allocatable_resource.py | 222 + .../v1beta2_opaque_device_configuration.py | 2 +- .../client/models/v1beta2_resource_claim.py | 4 +- ...beta2_resource_claim_consumer_reference.py | 2 +- .../models/v1beta2_resource_claim_list.py | 2 +- .../models/v1beta2_resource_claim_spec.py | 2 +- .../models/v1beta2_resource_claim_status.py | 2 +- .../models/v1beta2_resource_claim_template.py | 4 +- .../v1beta2_resource_claim_template_list.py | 2 +- .../v1beta2_resource_claim_template_spec.py | 4 +- .../client/models/v1beta2_resource_pool.py | 4 +- .../client/models/v1beta2_resource_slice.py | 2 +- .../models/v1beta2_resource_slice_list.py | 2 +- .../models/v1beta2_resource_slice_spec.py | 26 +- .../client/models/v2_api_group_discovery.py | 2 +- .../models/v2_api_group_discovery_list.py | 2 +- .../models/v2_api_resource_discovery.py | 2 +- .../models/v2_api_subresource_discovery.py | 2 +- .../client/models/v2_api_version_discovery.py | 2 +- .../v2_container_resource_metric_source.py | 2 +- .../v2_container_resource_metric_status.py | 2 +- .../v2_cross_version_object_reference.py | 2 +- .../models/v2_external_metric_source.py | 2 +- .../models/v2_external_metric_status.py | 2 +- .../models/v2_horizontal_pod_autoscaler.py | 2 +- .../v2_horizontal_pod_autoscaler_behavior.py | 2 +- .../v2_horizontal_pod_autoscaler_condition.py | 14 +- .../v2_horizontal_pod_autoscaler_list.py | 2 +- .../v2_horizontal_pod_autoscaler_spec.py | 2 +- .../v2_horizontal_pod_autoscaler_status.py | 2 +- .../client/models/v2_hpa_scaling_policy.py | 2 +- .../aio/client/models/v2_hpa_scaling_rules.py | 6 +- .../aio/client/models/v2_metric_identifier.py | 2 +- .../aio/client/models/v2_metric_spec.py | 2 +- .../aio/client/models/v2_metric_status.py | 2 +- .../aio/client/models/v2_metric_target.py | 2 +- .../client/models/v2_metric_value_status.py | 4 +- .../client/models/v2_object_metric_source.py | 2 +- .../client/models/v2_object_metric_status.py | 2 +- .../client/models/v2_pods_metric_source.py | 2 +- .../client/models/v2_pods_metric_status.py | 2 +- .../models/v2_resource_metric_source.py | 2 +- .../models/v2_resource_metric_status.py | 2 +- .../models/v2beta1_api_group_discovery.py | 2 +- .../v2beta1_api_group_discovery_list.py | 2 +- .../models/v2beta1_api_resource_discovery.py | 2 +- .../v2beta1_api_subresource_discovery.py | 2 +- .../models/v2beta1_api_version_discovery.py | 2 +- kubernetes/aio/client/models/version_info.py | 2 +- .../aio/docs/AdmissionregistrationApi.md | 2 +- kubernetes/aio/docs/ApiextensionsApi.md | 2 +- kubernetes/aio/docs/ApiregistrationApi.md | 2 +- kubernetes/aio/docs/ApisApi.md | 2 +- kubernetes/aio/docs/AppsApi.md | 2 +- kubernetes/aio/docs/AuthenticationApi.md | 2 +- kubernetes/aio/docs/AuthorizationApi.md | 2 +- kubernetes/aio/docs/AutoscalingApi.md | 2 +- kubernetes/aio/docs/BatchApi.md | 2 +- kubernetes/aio/docs/CertificatesApi.md | 2 +- kubernetes/aio/docs/CertificatesV1Api.md | 2034 +- kubernetes/aio/docs/CoordinationApi.md | 2 +- kubernetes/aio/docs/CoreApi.md | 2 +- kubernetes/aio/docs/DiscoveryApi.md | 2 +- kubernetes/aio/docs/EventsApi.md | 2 +- .../aio/docs/FlowcontrolApiserverApi.md | 2 +- kubernetes/aio/docs/InternalApiserverApi.md | 2 +- kubernetes/aio/docs/LifecycleApi.md | 81 + ...gV1beta1Api.md => LifecycleV1alpha1Api.md} | 904 +- kubernetes/aio/docs/NetworkingApi.md | 2 +- kubernetes/aio/docs/NodeApi.md | 2 +- kubernetes/aio/docs/PolicyApi.md | 2 +- kubernetes/aio/docs/RbacAuthorizationApi.md | 2 +- kubernetes/aio/docs/RbacV1Subject.md | 8 +- kubernetes/aio/docs/ResourceApi.md | 2 +- kubernetes/aio/docs/ResourceV1Api.md | 1408 +- .../aio/docs/ResourceV1ResourceClaim.md | 2 +- kubernetes/aio/docs/SchedulingApi.md | 2 +- kubernetes/aio/docs/SchedulingV1alpha3Api.md | 2905 + ...V1alpha2Api.md => SchedulingV1beta1Api.md} | 272 +- kubernetes/aio/docs/StorageApi.md | 2 +- kubernetes/aio/docs/StorageV1Api.md | 260 + kubernetes/aio/docs/StorageV1beta1Api.md | 732 - kubernetes/aio/docs/StoragemigrationApi.md | 2 +- ...1alpha1Api.md => StoragemigrationV1Api.md} | 470 +- kubernetes/aio/docs/V1AggregationRule.md | 2 +- kubernetes/aio/docs/V1BoundObjectReference.md | 2 +- kubernetes/aio/docs/V1CELDeviceSelector.md | 2 +- kubernetes/aio/docs/V1CSIDriverSpec.md | 2 +- kubernetes/aio/docs/V1CSINode.md | 1 + kubernetes/aio/docs/V1CSINodeStatus.md | 28 + .../aio/docs/V1CapacityRequestPolicyRange.md | 2 +- kubernetes/aio/docs/V1ClusterRole.md | 2 +- kubernetes/aio/docs/V1ClusterRoleBinding.md | 2 +- .../docs/V1ClusterTrustBundle.md} | 20 +- .../docs/V1ClusterTrustBundleList.md} | 18 +- .../docs/V1ClusterTrustBundleProjection.md | 1 + .../docs/V1ClusterTrustBundleSpec.md} | 16 +- kubernetes/aio/docs/V1ConfigMap.md | 2 +- kubernetes/aio/docs/V1ConfigMapEnvSource.md | 2 +- kubernetes/aio/docs/V1ConfigMapKeySelector.md | 2 +- .../aio/docs/V1ConfigMapVolumeSource.md | 1 + kubernetes/aio/docs/V1ControllerRevision.md | 4 +- kubernetes/aio/docs/V1DaemonSet.md | 2 +- kubernetes/aio/docs/V1DaemonSetCondition.md | 4 +- kubernetes/aio/docs/V1Deployment.md | 2 +- kubernetes/aio/docs/V1DeploymentCondition.md | 4 +- kubernetes/aio/docs/V1Device.md | 2 +- kubernetes/aio/docs/V1DeviceClass.md | 2 +- kubernetes/aio/docs/V1DeviceClassSpec.md | 2 +- .../aio/docs/V1DeviceCounterConsumption.md | 1 + .../aio/docs/V1DeviceDerivedAttribute.md | 29 + .../docs/V1DeviceRequestAllocationResult.md | 1 + kubernetes/aio/docs/V1DeviceSubRequest.md | 1 + kubernetes/aio/docs/V1DeviceTaintRule.md | 32 + .../docs/V1DeviceTaintRuleList.md} | 20 +- kubernetes/aio/docs/V1DeviceTaintRuleSpec.md | 29 + .../aio/docs/V1DeviceTaintRuleStatus.md | 28 + kubernetes/aio/docs/V1DeviceTaintSelector.md | 30 + .../aio/docs/V1DownwardAPIVolumeFile.md | 1 + .../aio/docs/V1DownwardAPIVolumeSource.md | 1 + kubernetes/aio/docs/V1EmptyDirVolumeSource.md | 1 + kubernetes/aio/docs/V1EvictionResponder.md | 29 + kubernetes/aio/docs/V1ExactDeviceRequest.md | 1 + kubernetes/aio/docs/V1FlowSchema.md | 2 +- kubernetes/aio/docs/V1FlowSchemaCondition.md | 4 +- kubernetes/aio/docs/V1GRPCAction.md | 1 + kubernetes/aio/docs/V1HTTPGetAction.md | 1 + .../aio/docs/V1JobSchedulingConfiguration.md | 31 + kubernetes/aio/docs/V1JobSpec.md | 1 + kubernetes/aio/docs/V1JobStatus.md | 2 +- kubernetes/aio/docs/V1KeyToPath.md | 1 + kubernetes/aio/docs/V1LeaseSpec.md | 4 +- .../V1LimitedPriorityLevelConfiguration.md | 2 +- .../docs/V1NodeAllocatableMappedResources.md | 29 + .../aio/docs/V1NodeAllocatableMapping.md | 30 + .../aio/docs/V1NodeAllocatableOverhead.md | 29 + .../V1NodeAllocatableOverheadResources.md | 30 + .../aio/docs/V1NodeAllocatableResource.md | 29 + .../V1NodeAllocatableResourceClaimStatus.md | 3 +- .../docs/V1NodeAllocatableResourceMapping.md | 29 - .../aio/docs/V1NodePodPreemptionPolicy.md | 28 + kubernetes/aio/docs/V1NodeSpec.md | 1 + kubernetes/aio/docs/V1NodeSystemInfo.md | 1 + kubernetes/aio/docs/V1ParentReference.md | 8 +- .../aio/docs/V1PersistentVolumeClaimStatus.md | 1 + .../aio/docs/V1PodCertificateProjection.md | 1 + .../aio/docs/V1PodCertificateRequest.md | 32 + .../aio/docs/V1PodCertificateRequestList.md | 31 + .../aio/docs/V1PodCertificateRequestSpec.md | 37 + .../aio/docs/V1PodCertificateRequestStatus.md | 32 + .../aio/docs/V1PodDisruptionBudgetSpec.md | 6 +- kubernetes/aio/docs/V1PodSecurityContext.md | 2 +- kubernetes/aio/docs/V1PodSpec.md | 5 +- kubernetes/aio/docs/V1PodStatus.md | 1 + kubernetes/aio/docs/V1PodVolumeHealth.md | 30 + kubernetes/aio/docs/V1PolicyRule.md | 10 +- .../aio/docs/V1PriorityLevelConfiguration.md | 2 +- .../V1PriorityLevelConfigurationCondition.md | 4 +- .../aio/docs/V1ProjectedVolumeSource.md | 1 + kubernetes/aio/docs/V1ReplicaSet.md | 2 +- kubernetes/aio/docs/V1ReplicaSetCondition.md | 4 +- .../aio/docs/V1ResourceClaimTemplate.md | 2 +- .../aio/docs/V1ResourceClaimTemplateSpec.md | 2 +- kubernetes/aio/docs/V1ResourcePool.md | 2 +- kubernetes/aio/docs/V1ResourceSliceSpec.md | 2 + kubernetes/aio/docs/V1ResourceStatus.md | 2 +- kubernetes/aio/docs/V1Role.md | 2 +- kubernetes/aio/docs/V1RoleBinding.md | 2 +- kubernetes/aio/docs/V1RoleRef.md | 6 +- kubernetes/aio/docs/V1SecretVolumeSource.md | 1 + .../docs/V1ServiceAccountTokenProjection.md | 1 + kubernetes/aio/docs/V1ServiceCIDRSpec.md | 2 +- kubernetes/aio/docs/V1StatefulSet.md | 2 +- kubernetes/aio/docs/V1StatefulSetCondition.md | 4 +- kubernetes/aio/docs/V1StorageHealth.md | 29 + .../aio/docs/V1StorageHealthCondition.md | 33 + .../aio/docs/V1StorageVersionMigration.md | 32 + .../aio/docs/V1StorageVersionMigrationList.md | 31 + .../aio/docs/V1StorageVersionMigrationSpec.md | 28 + .../docs/V1StorageVersionMigrationStatus.md | 29 + kubernetes/aio/docs/V1TokenRequestSpec.md | 1 + .../aio/docs/V1VolumeAttributesClass.md | 2 +- .../aio/docs/V1VolumeHealthCondition.md | 30 + kubernetes/aio/docs/V1VolumeHealthStatus.md | 29 + kubernetes/aio/docs/V1VolumeMount.md | 3 +- kubernetes/aio/docs/V1alpha1Eviction.md | 32 + ...AddressList.md => V1alpha1EvictionList.md} | 20 +- .../aio/docs/V1alpha1EvictionPodReference.md | 29 + .../aio/docs/V1alpha1EvictionRequest.md | 32 + .../aio/docs/V1alpha1EvictionRequestList.md | 31 + .../V1alpha1EvictionRequestPodReference.md | 29 + .../aio/docs/V1alpha1EvictionRequestSpec.md | 30 + .../aio/docs/V1alpha1EvictionRequestStatus.md | 29 + .../aio/docs/V1alpha1EvictionRequestTarget.md | 28 + kubernetes/aio/docs/V1alpha1EvictionSpec.md | 28 + kubernetes/aio/docs/V1alpha1EvictionStatus.md | 32 + kubernetes/aio/docs/V1alpha1EvictionTarget.md | 28 + kubernetes/aio/docs/V1alpha1Requester.md | 29 + .../aio/docs/V1alpha1ResponderStatus.md | 33 + .../aio/docs/V1alpha1TargetResponder.md | 30 + .../aio/docs/V1alpha2GangSchedulingPolicy.md | 28 - .../aio/docs/V1alpha2LeaseCandidateSpec.md | 12 +- .../docs/V1alpha2PodGroupSchedulingPolicy.md | 29 - kubernetes/aio/docs/V1alpha2PodGroupSpec.md | 34 - kubernetes/aio/docs/V1alpha2PodGroupStatus.md | 29 - .../aio/docs/V1alpha2PodGroupTemplate.md | 34 - .../docs/V1alpha2PodGroupTemplateReference.md | 28 - ...alpha2WorkloadPodGroupTemplateReference.md | 29 - kubernetes/aio/docs/V1alpha2WorkloadSpec.md | 29 - .../docs/V1alpha3CompositeDisruptionMode.md | 29 + .../V1alpha3CompositeGangSchedulingPolicy.md | 28 + .../aio/docs/V1alpha3CompositePodGroup.md | 32 + .../aio/docs/V1alpha3CompositePodGroupList.md | 31 + ...3CompositePodGroupSchedulingConstraints.md | 28 + ...alpha3CompositePodGroupSchedulingPolicy.md | 29 + .../aio/docs/V1alpha3CompositePodGroupSpec.md | 35 + .../docs/V1alpha3CompositePodGroupStatus.md | 28 + .../docs/V1alpha3CompositePodGroupTemplate.md | 36 + kubernetes/aio/docs/V1alpha3DisruptionMode.md | 29 + .../aio/docs/V1alpha3GangSchedulingPolicy.md | 28 + .../aio/docs/V1alpha3PartitionTypeStatus.md | 31 + ...1alpha2PodGroup.md => V1alpha3PodGroup.md} | 20 +- ...odGroupList.md => V1alpha3PodGroupList.md} | 18 +- ...im.md => V1alpha3PodGroupResourceClaim.md} | 22 +- ...=> V1alpha3PodGroupResourceClaimStatus.md} | 20 +- ... V1alpha3PodGroupSchedulingConstraints.md} | 18 +- .../docs/V1alpha3PodGroupSchedulingPolicy.md | 29 + kubernetes/aio/docs/V1alpha3PodGroupSpec.md | 36 + kubernetes/aio/docs/V1alpha3PodGroupStatus.md | 29 + .../aio/docs/V1alpha3PodGroupTemplate.md | 35 + kubernetes/aio/docs/V1alpha3PoolStatus.md | 2 + .../V1alpha3ResourcePoolStatusRequestSpec.md | 1 + .../docs/V1alpha3ShareableCapacityStatus.md | 31 + .../docs/V1alpha3ShareableSummaryStatus.md | 30 + ...raint.md => V1alpha3TopologyConstraint.md} | 18 +- ...d => V1alpha3TypedLocalObjectReference.md} | 22 +- ...1alpha2Workload.md => V1alpha3Workload.md} | 18 +- ...orkloadList.md => V1alpha3WorkloadList.md} | 18 +- .../V1alpha3WorkloadPodGroupDisruptionMode.md | 29 + ...ha3WorkloadPodGroupGangSchedulingPolicy.md | 28 + .../V1alpha3WorkloadPodGroupResourceClaim.md | 30 + ...a3WorkloadPodGroupSchedulingConstraints.md | 28 + ...1alpha3WorkloadPodGroupSchedulingPolicy.md | 29 + .../aio/docs/V1alpha3WorkloadReference.md | 29 + kubernetes/aio/docs/V1alpha3WorkloadSpec.md | 30 + kubernetes/aio/docs/V1beta1BasicDevice.md | 2 +- .../aio/docs/V1beta1CELDeviceSelector.md | 2 +- .../docs/V1beta1CapacityRequestPolicyRange.md | 2 +- .../aio/docs/V1beta1ClusterTrustBundle.md | 2 +- .../docs/V1beta1CompositeDisruptionMode.md | 29 + .../V1beta1CompositeGangSchedulingPolicy.md | 28 + ...1CompositePodGroupSchedulingConstraints.md | 28 + ...1beta1CompositePodGroupSchedulingPolicy.md | 29 + .../docs/V1beta1CompositePodGroupTemplate.md | 36 + kubernetes/aio/docs/V1beta1DeviceClass.md | 2 +- kubernetes/aio/docs/V1beta1DeviceClassSpec.md | 2 +- .../docs/V1beta1DeviceCounterConsumption.md | 1 + .../aio/docs/V1beta1DeviceDerivedAttribute.md | 29 + kubernetes/aio/docs/V1beta1DeviceRequest.md | 1 + .../V1beta1DeviceRequestAllocationResult.md | 1 + .../aio/docs/V1beta1DeviceSubRequest.md | 1 + kubernetes/aio/docs/V1beta1DisruptionMode.md | 29 + .../aio/docs/V1beta1GangSchedulingPolicy.md | 28 + kubernetes/aio/docs/V1beta1IPAddress.md | 31 - kubernetes/aio/docs/V1beta1IPAddressSpec.md | 28 - .../aio/docs/V1beta1LeaseCandidateSpec.md | 12 +- .../aio/docs/V1beta1NodeAllocatableMapping.md | 30 + .../docs/V1beta1NodeAllocatableOverhead.md | 29 + .../docs/V1beta1NodeAllocatableResource.md | 29 + .../V1beta1NodeAllocatableResourceMapping.md | 29 - kubernetes/aio/docs/V1beta1ParentReference.md | 31 - .../docs/V1beta1PodGroup.md} | 22 +- kubernetes/aio/docs/V1beta1PodGroupList.md | 31 + .../aio/docs/V1beta1PodGroupResourceClaim.md | 30 + .../V1beta1PodGroupResourceClaimStatus.md | 29 + .../V1beta1PodGroupSchedulingConstraints.md | 28 + .../docs/V1beta1PodGroupSchedulingPolicy.md | 29 + kubernetes/aio/docs/V1beta1PodGroupSpec.md | 36 + kubernetes/aio/docs/V1beta1PodGroupStatus.md | 29 + .../aio/docs/V1beta1PodGroupTemplate.md | 35 + kubernetes/aio/docs/V1beta1ResourceClaim.md | 2 +- .../aio/docs/V1beta1ResourceClaimTemplate.md | 2 +- .../docs/V1beta1ResourceClaimTemplateSpec.md | 2 +- kubernetes/aio/docs/V1beta1ResourcePool.md | 2 +- .../aio/docs/V1beta1ResourceSliceSpec.md | 2 + kubernetes/aio/docs/V1beta1ServiceCIDRSpec.md | 28 - .../aio/docs/V1beta1ServiceCIDRStatus.md | 28 - .../aio/docs/V1beta1TopologyConstraint.md | 28 + .../docs/V1beta1TypedLocalObjectReference.md | 30 + .../aio/docs/V1beta1VolumeAttributesClass.md | 32 - .../docs/V1beta1VolumeAttributesClassList.md | 31 - kubernetes/aio/docs/V1beta1Workload.md | 31 + .../docs/V1beta1WorkloadList.md} | 20 +- .../aio/docs/V1beta1WorkloadReference.md | 29 + kubernetes/aio/docs/V1beta1WorkloadSpec.md | 30 + .../aio/docs/V1beta2CELDeviceSelector.md | 2 +- .../docs/V1beta2CapacityRequestPolicyRange.md | 2 +- kubernetes/aio/docs/V1beta2Device.md | 2 +- kubernetes/aio/docs/V1beta2DeviceClass.md | 2 +- kubernetes/aio/docs/V1beta2DeviceClassSpec.md | 2 +- .../docs/V1beta2DeviceCounterConsumption.md | 1 + .../aio/docs/V1beta2DeviceDerivedAttribute.md | 29 + .../V1beta2DeviceRequestAllocationResult.md | 1 + .../aio/docs/V1beta2DeviceSubRequest.md | 1 + .../aio/docs/V1beta2ExactDeviceRequest.md | 1 + .../aio/docs/V1beta2NodeAllocatableMapping.md | 30 + .../docs/V1beta2NodeAllocatableOverhead.md | 29 + .../docs/V1beta2NodeAllocatableResource.md | 29 + .../V1beta2NodeAllocatableResourceMapping.md | 29 - kubernetes/aio/docs/V1beta2ResourceClaim.md | 2 +- .../aio/docs/V1beta2ResourceClaimTemplate.md | 2 +- .../docs/V1beta2ResourceClaimTemplateSpec.md | 2 +- kubernetes/aio/docs/V1beta2ResourcePool.md | 2 +- .../aio/docs/V1beta2ResourceSliceSpec.md | 2 + kubernetes/aio/docs/V2HPAScalingRules.md | 4 +- .../V2HorizontalPodAutoscalerCondition.md | 1 + kubernetes/aio/docs/V2MetricValueStatus.md | 2 +- kubernetes/aio/swagger.json.unprocessed | 30474 ++++++---- kubernetes/client/api/__init__.py | 27 +- .../client/api/admissionregistration_api.py | 5 +- .../api/admissionregistration_v1_api.py | 2 +- .../api/admissionregistration_v1alpha1_api.py | 2 +- .../api/admissionregistration_v1beta1_api.py | 2 +- kubernetes/client/api/apiextensions_api.py | 5 +- kubernetes/client/api/apiextensions_v1_api.py | 2 +- kubernetes/client/api/apiregistration_api.py | 5 +- .../client/api/apiregistration_v1_api.py | 2 +- kubernetes/client/api/apis_api.py | 5 +- kubernetes/client/api/apps_api.py | 5 +- kubernetes/client/api/apps_v1_api.py | 2 +- kubernetes/client/api/authentication_api.py | 5 +- .../client/api/authentication_v1_api.py | 2 +- kubernetes/client/api/authorization_api.py | 5 +- kubernetes/client/api/authorization_v1_api.py | 2 +- kubernetes/client/api/autoscaling_api.py | 5 +- kubernetes/client/api/autoscaling_v1_api.py | 2 +- kubernetes/client/api/autoscaling_v2_api.py | 2 +- kubernetes/client/api/batch_api.py | 5 +- kubernetes/client/api/batch_v1_api.py | 2 +- kubernetes/client/api/certificates_api.py | 5 +- kubernetes/client/api/certificates_v1_api.py | 7553 ++- .../client/api/certificates_v1beta1_api.py | 2 +- kubernetes/client/api/coordination_api.py | 5 +- kubernetes/client/api/coordination_v1_api.py | 2 +- .../client/api/coordination_v1alpha2_api.py | 2 +- .../client/api/coordination_v1beta1_api.py | 2 +- kubernetes/client/api/core_api.py | 5 +- kubernetes/client/api/core_v1_api.py | 2 +- kubernetes/client/api/discovery_api.py | 5 +- kubernetes/client/api/discovery_v1_api.py | 2 +- kubernetes/client/api/events_api.py | 5 +- kubernetes/client/api/events_v1_api.py | 2 +- .../client/api/flowcontrol_apiserver_api.py | 5 +- .../api/flowcontrol_apiserver_v1_api.py | 2 +- .../client/api/internal_apiserver_api.py | 5 +- .../api/internal_apiserver_v1alpha1_api.py | 2 +- kubernetes/client/api/lifecycle_api.py | 267 + .../api/lifecycle_v1alpha1_api.py} | 5235 +- kubernetes/client/api/logs_api.py | 2 +- kubernetes/client/api/networking_api.py | 5 +- kubernetes/client/api/networking_v1_api.py | 2 +- kubernetes/client/api/node_api.py | 5 +- kubernetes/client/api/node_v1_api.py | 2 +- kubernetes/client/api/openid_api.py | 2 +- kubernetes/client/api/policy_api.py | 5 +- kubernetes/client/api/policy_v1_api.py | 2 +- .../client/api/rbac_authorization_api.py | 5 +- .../client/api/rbac_authorization_v1_api.py | 2 +- kubernetes/client/api/resource_api.py | 5 +- kubernetes/client/api/resource_v1_api.py | 6500 +- .../client/api/resource_v1alpha3_api.py | 2 +- kubernetes/client/api/resource_v1beta1_api.py | 2 +- kubernetes/client/api/resource_v1beta2_api.py | 2 +- kubernetes/client/api/scheduling_api.py | 5 +- kubernetes/client/api/scheduling_v1_api.py | 2 +- ...eta1_api.py => scheduling_v1alpha3_api.py} | 6652 +- ...lpha2_api.py => scheduling_v1beta1_api.py} | 252 +- kubernetes/client/api/storage_api.py | 5 +- kubernetes/client/api/storage_v1_api.py | 1322 +- kubernetes/client/api/storage_v1beta1_api.py | 2512 - kubernetes/client/api/storagemigration_api.py | 5 +- ...pha1_api.py => storagemigration_v1_api.py} | 1772 +- .../api/storagemigration_v1beta1_api.py | 2 +- kubernetes/client/api/version_api.py | 2 +- kubernetes/client/api/well_known_api.py | 2 +- kubernetes/client/models/__init__.py | 431 +- ...issionregistration_v1_service_reference.py | 2 +- ...onregistration_v1_webhook_client_config.py | 2 +- .../apiextensions_v1_service_reference.py | 2 +- .../apiextensions_v1_webhook_client_config.py | 2 +- .../apiregistration_v1_service_reference.py | 2 +- .../models/authentication_v1_token_request.py | 2 +- .../client/models/core_v1_endpoint_port.py | 2 +- kubernetes/client/models/core_v1_event.py | 2 +- .../client/models/core_v1_event_list.py | 2 +- .../client/models/core_v1_event_series.py | 2 +- .../client/models/core_v1_resource_claim.py | 2 +- .../models/discovery_v1_endpoint_port.py | 2 +- kubernetes/client/models/events_v1_event.py | 2 +- .../client/models/events_v1_event_list.py | 2 +- .../client/models/events_v1_event_series.py | 2 +- .../client/models/flowcontrol_v1_subject.py | 2 +- kubernetes/client/models/rbac_v1_subject.py | 10 +- .../models/resource_v1_resource_claim.py | 4 +- .../client/models/storage_v1_token_request.py | 2 +- kubernetes/client/models/v1_affinity.py | 2 +- .../client/models/v1_aggregation_rule.py | 4 +- .../models/v1_allocated_device_status.py | 2 +- .../client/models/v1_allocation_result.py | 2 +- kubernetes/client/models/v1_api_group.py | 2 +- kubernetes/client/models/v1_api_group_list.py | 2 +- kubernetes/client/models/v1_api_resource.py | 2 +- .../client/models/v1_api_resource_list.py | 2 +- kubernetes/client/models/v1_api_service.py | 2 +- .../client/models/v1_api_service_condition.py | 2 +- .../client/models/v1_api_service_list.py | 2 +- .../client/models/v1_api_service_spec.py | 2 +- .../client/models/v1_api_service_status.py | 2 +- kubernetes/client/models/v1_api_versions.py | 2 +- .../client/models/v1_app_armor_profile.py | 2 +- .../client/models/v1_apply_configuration.py | 2 +- .../client/models/v1_attached_volume.py | 2 +- .../client/models/v1_audit_annotation.py | 2 +- ...1_aws_elastic_block_store_volume_source.py | 2 +- .../models/v1_azure_disk_volume_source.py | 2 +- .../v1_azure_file_persistent_volume_source.py | 2 +- .../models/v1_azure_file_volume_source.py | 2 +- kubernetes/client/models/v1_binding.py | 2 +- .../models/v1_bound_object_reference.py | 4 +- kubernetes/client/models/v1_capabilities.py | 2 +- .../models/v1_capacity_request_policy.py | 2 +- .../v1_capacity_request_policy_range.py | 4 +- .../client/models/v1_capacity_requirements.py | 2 +- .../client/models/v1_cel_device_selector.py | 4 +- .../v1_ceph_fs_persistent_volume_source.py | 2 +- .../client/models/v1_ceph_fs_volume_source.py | 2 +- .../models/v1_certificate_signing_request.py | 2 +- ...1_certificate_signing_request_condition.py | 2 +- .../v1_certificate_signing_request_list.py | 2 +- .../v1_certificate_signing_request_spec.py | 2 +- .../v1_certificate_signing_request_status.py | 2 +- .../v1_cinder_persistent_volume_source.py | 2 +- .../client/models/v1_cinder_volume_source.py | 2 +- .../client/models/v1_client_ip_config.py | 2 +- kubernetes/client/models/v1_cluster_role.py | 4 +- .../client/models/v1_cluster_role_binding.py | 4 +- .../models/v1_cluster_role_binding_list.py | 2 +- .../client/models/v1_cluster_role_list.py | 2 +- ...t_bundle.py => v1_cluster_trust_bundle.py} | 22 +- ...ist.py => v1_cluster_trust_bundle_list.py} | 20 +- .../v1_cluster_trust_bundle_projection.py | 17 +- .../models/v1_cluster_trust_bundle_spec.py} | 12 +- .../client/models/v1_component_condition.py | 2 +- .../client/models/v1_component_status.py | 2 +- .../client/models/v1_component_status_list.py | 2 +- kubernetes/client/models/v1_condition.py | 2 +- kubernetes/client/models/v1_config_map.py | 4 +- .../client/models/v1_config_map_env_source.py | 4 +- .../models/v1_config_map_key_selector.py | 4 +- .../client/models/v1_config_map_list.py | 2 +- .../v1_config_map_node_config_source.py | 2 +- .../client/models/v1_config_map_projection.py | 2 +- .../models/v1_config_map_volume_source.py | 12 +- kubernetes/client/models/v1_container.py | 2 +- .../v1_container_extended_resource_request.py | 2 +- .../client/models/v1_container_image.py | 2 +- kubernetes/client/models/v1_container_port.py | 2 +- .../models/v1_container_resize_policy.py | 2 +- .../models/v1_container_restart_rule.py | 2 +- ...v1_container_restart_rule_on_exit_codes.py | 2 +- .../client/models/v1_container_state.py | 2 +- .../models/v1_container_state_running.py | 2 +- .../models/v1_container_state_terminated.py | 2 +- .../models/v1_container_state_waiting.py | 2 +- .../client/models/v1_container_status.py | 2 +- kubernetes/client/models/v1_container_user.py | 2 +- .../client/models/v1_controller_revision.py | 6 +- .../models/v1_controller_revision_list.py | 2 +- kubernetes/client/models/v1_counter.py | 2 +- kubernetes/client/models/v1_counter_set.py | 2 +- kubernetes/client/models/v1_cron_job.py | 2 +- kubernetes/client/models/v1_cron_job_list.py | 2 +- kubernetes/client/models/v1_cron_job_spec.py | 2 +- .../client/models/v1_cron_job_status.py | 2 +- .../v1_cross_version_object_reference.py | 2 +- kubernetes/client/models/v1_csi_driver.py | 2 +- .../client/models/v1_csi_driver_list.py | 2 +- .../client/models/v1_csi_driver_spec.py | 4 +- kubernetes/client/models/v1_csi_node.py | 19 +- .../client/models/v1_csi_node_driver.py | 2 +- kubernetes/client/models/v1_csi_node_list.py | 2 +- kubernetes/client/models/v1_csi_node_spec.py | 2 +- .../client/models/v1_csi_node_status.py | 239 + .../models/v1_csi_persistent_volume_source.py | 2 +- .../client/models/v1_csi_storage_capacity.py | 2 +- .../models/v1_csi_storage_capacity_list.py | 2 +- .../client/models/v1_csi_volume_source.py | 2 +- .../v1_custom_resource_column_definition.py | 2 +- .../models/v1_custom_resource_conversion.py | 2 +- .../models/v1_custom_resource_definition.py | 2 +- ...v1_custom_resource_definition_condition.py | 2 +- .../v1_custom_resource_definition_list.py | 2 +- .../v1_custom_resource_definition_names.py | 2 +- .../v1_custom_resource_definition_spec.py | 2 +- .../v1_custom_resource_definition_status.py | 2 +- .../v1_custom_resource_definition_version.py | 2 +- .../v1_custom_resource_subresource_scale.py | 2 +- .../models/v1_custom_resource_subresources.py | 2 +- .../models/v1_custom_resource_validation.py | 2 +- .../client/models/v1_daemon_endpoint.py | 2 +- kubernetes/client/models/v1_daemon_set.py | 4 +- .../client/models/v1_daemon_set_condition.py | 6 +- .../client/models/v1_daemon_set_list.py | 2 +- .../client/models/v1_daemon_set_spec.py | 2 +- .../client/models/v1_daemon_set_status.py | 2 +- .../models/v1_daemon_set_update_strategy.py | 2 +- kubernetes/client/models/v1_delete_options.py | 2 +- kubernetes/client/models/v1_deployment.py | 4 +- .../client/models/v1_deployment_condition.py | 6 +- .../client/models/v1_deployment_list.py | 2 +- .../client/models/v1_deployment_spec.py | 2 +- .../client/models/v1_deployment_status.py | 2 +- .../client/models/v1_deployment_strategy.py | 2 +- kubernetes/client/models/v1_device.py | 38 +- .../v1_device_allocation_configuration.py | 2 +- .../models/v1_device_allocation_result.py | 2 +- .../client/models/v1_device_attribute.py | 2 +- .../client/models/v1_device_capacity.py | 2 +- kubernetes/client/models/v1_device_claim.py | 2 +- .../models/v1_device_claim_configuration.py | 2 +- kubernetes/client/models/v1_device_class.py | 4 +- .../models/v1_device_class_configuration.py | 2 +- .../client/models/v1_device_class_list.py | 2 +- .../client/models/v1_device_class_spec.py | 4 +- .../client/models/v1_device_constraint.py | 2 +- .../models/v1_device_counter_consumption.py | 14 +- .../models/v1_device_derived_attribute.py | 214 + kubernetes/client/models/v1_device_request.py | 2 +- .../v1_device_request_allocation_result.py | 12 +- .../client/models/v1_device_selector.py | 2 +- .../client/models/v1_device_sub_request.py | 19 +- kubernetes/client/models/v1_device_taint.py | 2 +- ...ervice_cidr.py => v1_device_taint_rule.py} | 30 +- ...r_list.py => v1_device_taint_rule_list.py} | 22 +- .../models/v1_device_taint_rule_spec.py | 245 + ...atus.py => v1_device_taint_rule_status.py} | 16 +- .../client/models/v1_device_taint_selector.py | 219 + .../client/models/v1_device_toleration.py | 2 +- .../models/v1_downward_api_projection.py | 2 +- .../models/v1_downward_api_volume_file.py | 15 +- .../models/v1_downward_api_volume_source.py | 12 +- .../models/v1_empty_dir_volume_source.py | 11 +- kubernetes/client/models/v1_endpoint.py | 2 +- .../client/models/v1_endpoint_address.py | 2 +- .../client/models/v1_endpoint_conditions.py | 2 +- kubernetes/client/models/v1_endpoint_hints.py | 2 +- kubernetes/client/models/v1_endpoint_slice.py | 2 +- .../client/models/v1_endpoint_slice_list.py | 2 +- .../client/models/v1_endpoint_subset.py | 2 +- kubernetes/client/models/v1_endpoints.py | 2 +- kubernetes/client/models/v1_endpoints_list.py | 2 +- .../client/models/v1_env_from_source.py | 2 +- kubernetes/client/models/v1_env_var.py | 2 +- kubernetes/client/models/v1_env_var_source.py | 2 +- .../client/models/v1_ephemeral_container.py | 2 +- .../models/v1_ephemeral_volume_source.py | 2 +- kubernetes/client/models/v1_event_source.py | 2 +- kubernetes/client/models/v1_eviction.py | 2 +- .../client/models/v1_eviction_responder.py | 214 + .../client/models/v1_exact_device_request.py | 19 +- kubernetes/client/models/v1_exec_action.py | 2 +- .../v1_exempt_priority_level_configuration.py | 2 +- .../client/models/v1_expression_warning.py | 2 +- .../models/v1_external_documentation.py | 2 +- .../client/models/v1_fc_volume_source.py | 2 +- .../models/v1_field_selector_attributes.py | 2 +- .../models/v1_field_selector_requirement.py | 2 +- .../client/models/v1_file_key_selector.py | 2 +- .../v1_flex_persistent_volume_source.py | 2 +- .../client/models/v1_flex_volume_source.py | 2 +- .../client/models/v1_flocker_volume_source.py | 2 +- .../models/v1_flow_distinguisher_method.py | 2 +- kubernetes/client/models/v1_flow_schema.py | 4 +- .../client/models/v1_flow_schema_condition.py | 6 +- .../client/models/v1_flow_schema_list.py | 2 +- .../client/models/v1_flow_schema_spec.py | 2 +- .../client/models/v1_flow_schema_status.py | 2 +- kubernetes/client/models/v1_for_node.py | 2 +- kubernetes/client/models/v1_for_zone.py | 2 +- .../v1_gce_persistent_disk_volume_source.py | 2 +- .../models/v1_git_repo_volume_source.py | 2 +- .../v1_glusterfs_persistent_volume_source.py | 2 +- .../models/v1_glusterfs_volume_source.py | 2 +- kubernetes/client/models/v1_group_resource.py | 2 +- kubernetes/client/models/v1_group_subject.py | 2 +- .../models/v1_group_version_for_discovery.py | 2 +- .../client/models/v1_group_version_kind.py | 2 +- kubernetes/client/models/v1_grpc_action.py | 9 +- .../models/v1_horizontal_pod_autoscaler.py | 2 +- .../v1_horizontal_pod_autoscaler_list.py | 2 +- .../v1_horizontal_pod_autoscaler_spec.py | 2 +- .../v1_horizontal_pod_autoscaler_status.py | 2 +- kubernetes/client/models/v1_host_alias.py | 2 +- kubernetes/client/models/v1_host_ip.py | 2 +- .../models/v1_host_path_volume_source.py | 2 +- .../client/models/v1_http_get_action.py | 9 +- kubernetes/client/models/v1_http_header.py | 2 +- .../client/models/v1_http_ingress_path.py | 2 +- .../models/v1_http_ingress_rule_value.py | 2 +- .../client/models/v1_image_volume_source.py | 2 +- .../client/models/v1_image_volume_status.py | 2 +- kubernetes/client/models/v1_ingress.py | 2 +- .../client/models/v1_ingress_backend.py | 2 +- kubernetes/client/models/v1_ingress_class.py | 2 +- .../client/models/v1_ingress_class_list.py | 2 +- .../v1_ingress_class_parameters_reference.py | 2 +- .../client/models/v1_ingress_class_spec.py | 2 +- kubernetes/client/models/v1_ingress_list.py | 2 +- .../v1_ingress_load_balancer_ingress.py | 2 +- .../models/v1_ingress_load_balancer_status.py | 2 +- .../client/models/v1_ingress_port_status.py | 2 +- kubernetes/client/models/v1_ingress_rule.py | 2 +- .../models/v1_ingress_service_backend.py | 2 +- kubernetes/client/models/v1_ingress_spec.py | 2 +- kubernetes/client/models/v1_ingress_status.py | 2 +- kubernetes/client/models/v1_ingress_tls.py | 2 +- kubernetes/client/models/v1_ip_address.py | 2 +- .../client/models/v1_ip_address_list.py | 2 +- .../client/models/v1_ip_address_spec.py | 2 +- kubernetes/client/models/v1_ip_block.py | 2 +- .../v1_iscsi_persistent_volume_source.py | 2 +- .../client/models/v1_iscsi_volume_source.py | 2 +- kubernetes/client/models/v1_job.py | 2 +- kubernetes/client/models/v1_job_condition.py | 2 +- kubernetes/client/models/v1_job_list.py | 2 +- .../models/v1_job_scheduling_configuration.py | 275 + kubernetes/client/models/v1_job_spec.py | 13 +- kubernetes/client/models/v1_job_status.py | 4 +- .../client/models/v1_job_template_spec.py | 2 +- kubernetes/client/models/v1_json_patch.py | 2 +- .../client/models/v1_json_schema_props.py | 2 +- kubernetes/client/models/v1_key_to_path.py | 15 +- kubernetes/client/models/v1_label_selector.py | 2 +- .../models/v1_label_selector_attributes.py | 2 +- .../models/v1_label_selector_requirement.py | 2 +- kubernetes/client/models/v1_lease.py | 2 +- kubernetes/client/models/v1_lease_list.py | 2 +- kubernetes/client/models/v1_lease_spec.py | 6 +- kubernetes/client/models/v1_lifecycle.py | 2 +- .../client/models/v1_lifecycle_handler.py | 2 +- kubernetes/client/models/v1_limit_range.py | 2 +- .../client/models/v1_limit_range_item.py | 2 +- .../client/models/v1_limit_range_list.py | 2 +- .../client/models/v1_limit_range_spec.py | 2 +- kubernetes/client/models/v1_limit_response.py | 2 +- ...v1_limited_priority_level_configuration.py | 4 +- .../client/models/v1_linux_container_user.py | 2 +- kubernetes/client/models/v1_list_meta.py | 2 +- .../client/models/v1_load_balancer_ingress.py | 2 +- .../client/models/v1_load_balancer_status.py | 2 +- .../models/v1_local_object_reference.py | 2 +- .../models/v1_local_subject_access_review.py | 2 +- .../client/models/v1_local_volume_source.py | 2 +- .../client/models/v1_managed_fields_entry.py | 2 +- .../client/models/v1_match_condition.py | 2 +- .../client/models/v1_match_resources.py | 2 +- .../client/models/v1_modify_volume_status.py | 2 +- .../models/v1_mutating_admission_policy.py | 2 +- .../v1_mutating_admission_policy_binding.py | 2 +- ..._mutating_admission_policy_binding_list.py | 2 +- ..._mutating_admission_policy_binding_spec.py | 2 +- .../v1_mutating_admission_policy_list.py | 2 +- .../v1_mutating_admission_policy_spec.py | 2 +- .../client/models/v1_mutating_webhook.py | 2 +- .../v1_mutating_webhook_configuration.py | 2 +- .../v1_mutating_webhook_configuration_list.py | 2 +- kubernetes/client/models/v1_mutation.py | 2 +- .../models/v1_named_rule_with_operations.py | 2 +- kubernetes/client/models/v1_namespace.py | 2 +- .../client/models/v1_namespace_condition.py | 2 +- kubernetes/client/models/v1_namespace_list.py | 2 +- kubernetes/client/models/v1_namespace_spec.py | 2 +- .../client/models/v1_namespace_status.py | 2 +- .../client/models/v1_network_device_data.py | 2 +- kubernetes/client/models/v1_network_policy.py | 2 +- .../models/v1_network_policy_egress_rule.py | 2 +- .../models/v1_network_policy_ingress_rule.py | 2 +- .../client/models/v1_network_policy_list.py | 2 +- .../client/models/v1_network_policy_peer.py | 2 +- .../client/models/v1_network_policy_port.py | 2 +- .../client/models/v1_network_policy_spec.py | 2 +- .../client/models/v1_nfs_volume_source.py | 2 +- kubernetes/client/models/v1_node.py | 2 +- kubernetes/client/models/v1_node_address.py | 2 +- kubernetes/client/models/v1_node_affinity.py | 2 +- .../v1_node_allocatable_mapped_resources.py | 214 + .../models/v1_node_allocatable_mapping.py} | 48 +- .../models/v1_node_allocatable_overhead.py | 240 + .../v1_node_allocatable_overhead_resources.py | 245 + .../models/v1_node_allocatable_resource.py | 222 + ..._node_allocatable_resource_claim_status.py | 39 +- kubernetes/client/models/v1_node_condition.py | 2 +- .../client/models/v1_node_config_source.py | 2 +- .../client/models/v1_node_config_status.py | 2 +- .../client/models/v1_node_daemon_endpoints.py | 2 +- kubernetes/client/models/v1_node_features.py | 2 +- kubernetes/client/models/v1_node_list.py | 2 +- .../models/v1_node_pod_preemption_policy.py | 232 + .../client/models/v1_node_runtime_handler.py | 2 +- .../v1_node_runtime_handler_features.py | 2 +- kubernetes/client/models/v1_node_selector.py | 2 +- .../models/v1_node_selector_requirement.py | 2 +- .../client/models/v1_node_selector_term.py | 2 +- kubernetes/client/models/v1_node_spec.py | 16 +- kubernetes/client/models/v1_node_status.py | 2 +- .../client/models/v1_node_swap_status.py | 2 +- .../client/models/v1_node_system_info.py | 14 +- .../models/v1_non_resource_attributes.py | 2 +- .../models/v1_non_resource_policy_rule.py | 2 +- .../client/models/v1_non_resource_rule.py | 2 +- .../client/models/v1_object_field_selector.py | 2 +- kubernetes/client/models/v1_object_meta.py | 2 +- .../client/models/v1_object_reference.py | 2 +- .../models/v1_opaque_device_configuration.py | 2 +- kubernetes/client/models/v1_overhead.py | 2 +- .../client/models/v1_owner_reference.py | 2 +- kubernetes/client/models/v1_param_kind.py | 2 +- kubernetes/client/models/v1_param_ref.py | 2 +- .../client/models/v1_parent_reference.py | 10 +- .../client/models/v1_persistent_volume.py | 2 +- .../models/v1_persistent_volume_claim.py | 2 +- .../v1_persistent_volume_claim_condition.py | 2 +- .../models/v1_persistent_volume_claim_list.py | 2 +- .../models/v1_persistent_volume_claim_spec.py | 2 +- .../v1_persistent_volume_claim_status.py | 16 +- .../v1_persistent_volume_claim_template.py | 2 +- ...1_persistent_volume_claim_volume_source.py | 2 +- .../models/v1_persistent_volume_list.py | 2 +- .../models/v1_persistent_volume_spec.py | 2 +- .../models/v1_persistent_volume_status.py | 2 +- ...v1_photon_persistent_disk_volume_source.py | 2 +- kubernetes/client/models/v1_pod.py | 2 +- kubernetes/client/models/v1_pod_affinity.py | 2 +- .../client/models/v1_pod_affinity_term.py | 2 +- .../client/models/v1_pod_anti_affinity.py | 2 +- .../models/v1_pod_certificate_projection.py | 9 +- .../models/v1_pod_certificate_request.py | 264 + .../models/v1_pod_certificate_request_list.py | 258 + .../models/v1_pod_certificate_request_spec.py | 312 + .../v1_pod_certificate_request_status.py | 269 + kubernetes/client/models/v1_pod_condition.py | 2 +- .../client/models/v1_pod_disruption_budget.py | 2 +- .../models/v1_pod_disruption_budget_list.py | 2 +- .../models/v1_pod_disruption_budget_spec.py | 8 +- .../models/v1_pod_disruption_budget_status.py | 2 +- kubernetes/client/models/v1_pod_dns_config.py | 2 +- .../client/models/v1_pod_dns_config_option.py | 2 +- .../v1_pod_extended_resource_claim_status.py | 2 +- .../client/models/v1_pod_failure_policy.py | 2 +- ...ailure_policy_on_exit_codes_requirement.py | 2 +- ...ailure_policy_on_pod_conditions_pattern.py | 2 +- .../models/v1_pod_failure_policy_rule.py | 2 +- kubernetes/client/models/v1_pod_ip.py | 2 +- kubernetes/client/models/v1_pod_list.py | 2 +- kubernetes/client/models/v1_pod_os.py | 2 +- .../client/models/v1_pod_readiness_gate.py | 2 +- .../client/models/v1_pod_resource_claim.py | 2 +- .../models/v1_pod_resource_claim_status.py | 2 +- .../client/models/v1_pod_scheduling_gate.py | 2 +- .../client/models/v1_pod_scheduling_group.py | 2 +- .../client/models/v1_pod_security_context.py | 4 +- kubernetes/client/models/v1_pod_spec.py | 23 +- kubernetes/client/models/v1_pod_status.py | 25 +- kubernetes/client/models/v1_pod_template.py | 2 +- .../client/models/v1_pod_template_list.py | 2 +- .../client/models/v1_pod_template_spec.py | 2 +- .../client/models/v1_pod_volume_health.py | 253 + kubernetes/client/models/v1_policy_rule.py | 12 +- .../models/v1_policy_rules_with_subjects.py | 2 +- kubernetes/client/models/v1_port_status.py | 2 +- .../models/v1_portworx_volume_source.py | 2 +- kubernetes/client/models/v1_preconditions.py | 2 +- .../models/v1_preferred_scheduling_term.py | 2 +- kubernetes/client/models/v1_priority_class.py | 2 +- .../client/models/v1_priority_class_list.py | 2 +- .../models/v1_priority_level_configuration.py | 4 +- ..._priority_level_configuration_condition.py | 6 +- .../v1_priority_level_configuration_list.py | 2 +- ..._priority_level_configuration_reference.py | 2 +- .../v1_priority_level_configuration_spec.py | 2 +- .../v1_priority_level_configuration_status.py | 2 +- kubernetes/client/models/v1_probe.py | 2 +- .../models/v1_projected_volume_source.py | 12 +- .../client/models/v1_queuing_configuration.py | 2 +- .../client/models/v1_quobyte_volume_source.py | 2 +- .../models/v1_rbd_persistent_volume_source.py | 2 +- .../client/models/v1_rbd_volume_source.py | 2 +- kubernetes/client/models/v1_replica_set.py | 4 +- .../client/models/v1_replica_set_condition.py | 6 +- .../client/models/v1_replica_set_list.py | 2 +- .../client/models/v1_replica_set_spec.py | 2 +- .../client/models/v1_replica_set_status.py | 2 +- .../models/v1_replication_controller.py | 2 +- .../v1_replication_controller_condition.py | 2 +- .../models/v1_replication_controller_list.py | 2 +- .../models/v1_replication_controller_spec.py | 2 +- .../v1_replication_controller_status.py | 2 +- .../client/models/v1_resource_attributes.py | 2 +- .../v1_resource_claim_consumer_reference.py | 2 +- .../client/models/v1_resource_claim_list.py | 2 +- .../client/models/v1_resource_claim_spec.py | 2 +- .../client/models/v1_resource_claim_status.py | 2 +- .../models/v1_resource_claim_template.py | 4 +- .../models/v1_resource_claim_template_list.py | 2 +- .../models/v1_resource_claim_template_spec.py | 4 +- .../models/v1_resource_field_selector.py | 2 +- .../client/models/v1_resource_health.py | 2 +- .../client/models/v1_resource_policy_rule.py | 2 +- kubernetes/client/models/v1_resource_pool.py | 4 +- kubernetes/client/models/v1_resource_quota.py | 2 +- .../client/models/v1_resource_quota_list.py | 2 +- .../client/models/v1_resource_quota_spec.py | 2 +- .../client/models/v1_resource_quota_status.py | 2 +- .../client/models/v1_resource_requirements.py | 2 +- kubernetes/client/models/v1_resource_rule.py | 2 +- kubernetes/client/models/v1_resource_slice.py | 2 +- .../client/models/v1_resource_slice_list.py | 2 +- .../client/models/v1_resource_slice_spec.py | 26 +- .../client/models/v1_resource_status.py | 4 +- kubernetes/client/models/v1_role.py | 4 +- kubernetes/client/models/v1_role_binding.py | 4 +- .../client/models/v1_role_binding_list.py | 2 +- kubernetes/client/models/v1_role_list.py | 2 +- kubernetes/client/models/v1_role_ref.py | 8 +- .../models/v1_rolling_update_daemon_set.py | 2 +- .../models/v1_rolling_update_deployment.py | 2 +- ...v1_rolling_update_stateful_set_strategy.py | 2 +- .../client/models/v1_rule_with_operations.py | 2 +- kubernetes/client/models/v1_runtime_class.py | 2 +- .../client/models/v1_runtime_class_list.py | 2 +- kubernetes/client/models/v1_scale.py | 2 +- .../v1_scale_io_persistent_volume_source.py | 2 +- .../models/v1_scale_io_volume_source.py | 2 +- kubernetes/client/models/v1_scale_spec.py | 2 +- kubernetes/client/models/v1_scale_status.py | 2 +- kubernetes/client/models/v1_scheduling.py | 2 +- kubernetes/client/models/v1_scope_selector.py | 2 +- ...v1_scoped_resource_selector_requirement.py | 2 +- .../client/models/v1_se_linux_options.py | 2 +- .../client/models/v1_seccomp_profile.py | 2 +- kubernetes/client/models/v1_secret.py | 2 +- .../client/models/v1_secret_env_source.py | 2 +- .../client/models/v1_secret_key_selector.py | 2 +- kubernetes/client/models/v1_secret_list.py | 2 +- .../client/models/v1_secret_projection.py | 2 +- .../client/models/v1_secret_reference.py | 2 +- .../client/models/v1_secret_volume_source.py | 12 +- .../client/models/v1_security_context.py | 2 +- .../client/models/v1_selectable_field.py | 2 +- .../models/v1_self_subject_access_review.py | 2 +- .../v1_self_subject_access_review_spec.py | 2 +- .../client/models/v1_self_subject_review.py | 2 +- .../models/v1_self_subject_review_status.py | 2 +- .../models/v1_self_subject_rules_review.py | 2 +- .../v1_self_subject_rules_review_spec.py | 2 +- .../v1_server_address_by_client_cidr.py | 2 +- kubernetes/client/models/v1_service.py | 2 +- .../client/models/v1_service_account.py | 2 +- .../client/models/v1_service_account_list.py | 2 +- .../models/v1_service_account_subject.py | 2 +- .../v1_service_account_token_projection.py | 15 +- .../client/models/v1_service_backend_port.py | 2 +- kubernetes/client/models/v1_service_cidr.py | 2 +- .../client/models/v1_service_cidr_list.py | 2 +- .../client/models/v1_service_cidr_spec.py | 4 +- .../client/models/v1_service_cidr_status.py | 2 +- kubernetes/client/models/v1_service_list.py | 2 +- kubernetes/client/models/v1_service_port.py | 2 +- kubernetes/client/models/v1_service_spec.py | 2 +- kubernetes/client/models/v1_service_status.py | 2 +- .../models/v1_session_affinity_config.py | 2 +- kubernetes/client/models/v1_shard_info.py | 2 +- kubernetes/client/models/v1_sleep_action.py | 2 +- kubernetes/client/models/v1_stateful_set.py | 4 +- .../models/v1_stateful_set_condition.py | 6 +- .../client/models/v1_stateful_set_list.py | 2 +- .../client/models/v1_stateful_set_ordinals.py | 2 +- ...ersistent_volume_claim_retention_policy.py | 2 +- .../client/models/v1_stateful_set_spec.py | 2 +- .../client/models/v1_stateful_set_status.py | 2 +- .../models/v1_stateful_set_update_strategy.py | 2 +- kubernetes/client/models/v1_status.py | 2 +- kubernetes/client/models/v1_status_cause.py | 2 +- kubernetes/client/models/v1_status_details.py | 2 +- kubernetes/client/models/v1_storage_class.py | 2 +- .../client/models/v1_storage_class_list.py | 2 +- kubernetes/client/models/v1_storage_health.py | 244 + .../models/v1_storage_health_condition.py | 264 + .../v1_storage_os_persistent_volume_source.py | 2 +- .../models/v1_storage_os_volume_source.py | 2 +- .../models/v1_storage_version_migration.py | 264 + .../v1_storage_version_migration_list.py | 258 + .../v1_storage_version_migration_spec.py | 213 + .../v1_storage_version_migration_status.py | 244 + .../client/models/v1_subject_access_review.py | 2 +- .../models/v1_subject_access_review_spec.py | 2 +- .../models/v1_subject_access_review_status.py | 2 +- .../models/v1_subject_rules_review_status.py | 2 +- kubernetes/client/models/v1_success_policy.py | 2 +- .../client/models/v1_success_policy_rule.py | 2 +- kubernetes/client/models/v1_sysctl.py | 2 +- kubernetes/client/models/v1_taint.py | 2 +- .../client/models/v1_tcp_socket_action.py | 2 +- .../client/models/v1_token_request_spec.py | 9 +- .../client/models/v1_token_request_status.py | 2 +- kubernetes/client/models/v1_token_review.py | 2 +- .../client/models/v1_token_review_spec.py | 2 +- .../client/models/v1_token_review_status.py | 2 +- kubernetes/client/models/v1_toleration.py | 2 +- .../v1_topology_selector_label_requirement.py | 2 +- .../models/v1_topology_selector_term.py | 2 +- .../models/v1_topology_spread_constraint.py | 2 +- kubernetes/client/models/v1_type_checking.py | 2 +- .../models/v1_typed_local_object_reference.py | 2 +- .../models/v1_typed_object_reference.py | 2 +- .../models/v1_uncounted_terminated_pods.py | 2 +- kubernetes/client/models/v1_user_info.py | 2 +- kubernetes/client/models/v1_user_subject.py | 2 +- .../models/v1_validating_admission_policy.py | 2 +- .../v1_validating_admission_policy_binding.py | 2 +- ...alidating_admission_policy_binding_list.py | 2 +- ...alidating_admission_policy_binding_spec.py | 2 +- .../v1_validating_admission_policy_list.py | 2 +- .../v1_validating_admission_policy_spec.py | 2 +- .../v1_validating_admission_policy_status.py | 2 +- .../client/models/v1_validating_webhook.py | 2 +- .../v1_validating_webhook_configuration.py | 2 +- ...1_validating_webhook_configuration_list.py | 2 +- kubernetes/client/models/v1_validation.py | 2 +- .../client/models/v1_validation_rule.py | 2 +- kubernetes/client/models/v1_variable.py | 2 +- kubernetes/client/models/v1_volume.py | 2 +- .../client/models/v1_volume_attachment.py | 2 +- .../models/v1_volume_attachment_list.py | 2 +- .../models/v1_volume_attachment_source.py | 2 +- .../models/v1_volume_attachment_spec.py | 2 +- .../models/v1_volume_attachment_status.py | 2 +- .../models/v1_volume_attributes_class.py | 4 +- .../models/v1_volume_attributes_class_list.py | 2 +- kubernetes/client/models/v1_volume_device.py | 2 +- kubernetes/client/models/v1_volume_error.py | 2 +- .../models/v1_volume_health_condition.py | 219 + .../client/models/v1_volume_health_status.py | 248 + kubernetes/client/models/v1_volume_mount.py | 14 +- .../client/models/v1_volume_mount_status.py | 2 +- .../client/models/v1_volume_node_affinity.py | 2 +- .../client/models/v1_volume_node_resources.py | 2 +- .../client/models/v1_volume_projection.py | 2 +- .../models/v1_volume_resource_requirements.py | 2 +- kubernetes/client/models/v1_volume_status.py | 2 +- .../v1_vsphere_virtual_disk_volume_source.py | 2 +- kubernetes/client/models/v1_watch_event.py | 2 +- .../client/models/v1_webhook_conversion.py | 2 +- .../models/v1_weighted_pod_affinity_term.py | 2 +- .../v1_windows_security_context_options.py | 2 +- .../models/v1alpha1_apply_configuration.py | 2 +- kubernetes/client/models/v1alpha1_eviction.py | 264 + ...ress_list.py => v1alpha1_eviction_list.py} | 22 +- .../models/v1alpha1_eviction_pod_reference.py | 214 + .../models/v1alpha1_eviction_request.py | 264 + .../models/v1alpha1_eviction_request_list.py | 258 + ...v1alpha1_eviction_request_pod_reference.py | 214 + .../models/v1alpha1_eviction_request_spec.py | 223 + .../v1alpha1_eviction_request_status.py | 244 + .../v1alpha1_eviction_request_target.py} | 34 +- .../client/models/v1alpha1_eviction_spec.py | 213 + .../client/models/v1alpha1_eviction_status.py | 283 + .../client/models/v1alpha1_eviction_target.py | 213 + .../client/models/v1alpha1_json_patch.py | 2 +- .../client/models/v1alpha1_match_condition.py | 2 +- .../client/models/v1alpha1_match_resources.py | 2 +- .../v1alpha1_mutating_admission_policy.py | 2 +- ...lpha1_mutating_admission_policy_binding.py | 2 +- ..._mutating_admission_policy_binding_list.py | 2 +- ..._mutating_admission_policy_binding_spec.py | 2 +- ...v1alpha1_mutating_admission_policy_list.py | 2 +- ...v1alpha1_mutating_admission_policy_spec.py | 2 +- kubernetes/client/models/v1alpha1_mutation.py | 2 +- .../v1alpha1_named_rule_with_operations.py | 2 +- .../client/models/v1alpha1_param_kind.py | 2 +- .../client/models/v1alpha1_param_ref.py | 2 +- .../client/models/v1alpha1_requester.py | 214 + .../models/v1alpha1_responder_status.py | 267 + .../models/v1alpha1_server_storage_version.py | 2 +- .../client/models/v1alpha1_storage_version.py | 2 +- .../v1alpha1_storage_version_condition.py | 2 +- .../models/v1alpha1_storage_version_list.py | 2 +- .../models/v1alpha1_storage_version_status.py | 2 +- .../models/v1alpha1_target_responder.py | 219 + kubernetes/client/models/v1alpha1_variable.py | 2 +- .../client/models/v1alpha2_lease_candidate.py | 2 +- .../models/v1alpha2_lease_candidate_list.py | 2 +- .../models/v1alpha2_lease_candidate_spec.py | 14 +- .../v1alpha3_composite_disruption_mode.py | 214 + ...alpha3_composite_gang_scheduling_policy.py | 232 + .../models/v1alpha3_composite_pod_group.py | 264 + .../v1alpha3_composite_pod_group_list.py | 258 + ...posite_pod_group_scheduling_constraints.py | 216 + ...3_composite_pod_group_scheduling_policy.py | 218 + .../v1alpha3_composite_pod_group_spec.py | 301 + .../v1alpha3_composite_pod_group_status.py | 216 + .../v1alpha3_composite_pod_group_template.py | 318 + .../client/models/v1alpha3_device_taint.py | 2 +- .../models/v1alpha3_device_taint_rule.py | 2 +- .../models/v1alpha3_device_taint_rule_list.py | 2 +- .../models/v1alpha3_device_taint_rule_spec.py | 2 +- .../v1alpha3_device_taint_rule_status.py | 2 +- .../models/v1alpha3_device_taint_selector.py | 2 +- .../client/models/v1alpha3_disruption_mode.py | 214 + ....py => v1alpha3_gang_scheduling_policy.py} | 14 +- .../models/v1alpha3_partition_type_status.py | 224 + ...ha2_pod_group.py => v1alpha3_pod_group.py} | 28 +- ...oup_list.py => v1alpha3_pod_group_list.py} | 20 +- ...y => v1alpha3_pod_group_resource_claim.py} | 18 +- ...alpha3_pod_group_resource_claim_status.py} | 16 +- ...lpha3_pod_group_scheduling_constraints.py} | 20 +- .../v1alpha3_pod_group_scheduling_policy.py | 218 + ...oup_spec.py => v1alpha3_pod_group_spec.py} | 94 +- ...status.py => v1alpha3_pod_group_status.py} | 22 +- .../models/v1alpha3_pod_group_template.py} | 62 +- .../client/models/v1alpha3_pool_status.py | 31 +- .../v1alpha3_resource_pool_status_request.py | 2 +- ...lpha3_resource_pool_status_request_list.py | 2 +- ...lpha3_resource_pool_status_request_spec.py | 12 +- ...ha3_resource_pool_status_request_status.py | 2 +- ... => v1alpha3_shareable_capacity_status.py} | 50 +- .../v1alpha3_shareable_summary_status.py | 252 + ...int.py => v1alpha3_topology_constraint.py} | 14 +- .../v1alpha3_typed_local_object_reference.py} | 18 +- ...lpha2_workload.py => v1alpha3_workload.py} | 20 +- ...load_list.py => v1alpha3_workload_list.py} | 20 +- ...pha3_workload_pod_group_disruption_mode.py | 214 + ...rkload_pod_group_gang_scheduling_policy.py | 232 + ...lpha3_workload_pod_group_resource_claim.py | 245 + ...rkload_pod_group_scheduling_constraints.py | 216 + ...a3_workload_pod_group_scheduling_policy.py | 218 + .../models/v1alpha3_workload_reference.py | 240 + .../models/v1alpha3_workload_spec.py} | 45 +- .../models/v1beta1_allocated_device_status.py | 2 +- .../models/v1beta1_allocation_result.py | 2 +- .../models/v1beta1_apply_configuration.py | 2 +- .../client/models/v1beta1_basic_device.py | 38 +- .../models/v1beta1_capacity_request_policy.py | 2 +- .../v1beta1_capacity_request_policy_range.py | 4 +- .../models/v1beta1_capacity_requirements.py | 2 +- .../models/v1beta1_cel_device_selector.py | 4 +- .../models/v1beta1_cluster_trust_bundle.py | 4 +- .../v1beta1_cluster_trust_bundle_list.py | 2 +- .../v1beta1_cluster_trust_bundle_spec.py | 2 +- .../v1beta1_composite_disruption_mode.py | 214 + ...beta1_composite_gang_scheduling_policy.py} | 38 +- ...posite_pod_group_scheduling_constraints.py | 216 + ..._composite_pod_group_scheduling_policy.py} | 24 +- .../v1beta1_composite_pod_group_template.py | 318 + kubernetes/client/models/v1beta1_counter.py | 2 +- .../client/models/v1beta1_counter_set.py | 2 +- kubernetes/client/models/v1beta1_device.py | 2 +- ...v1beta1_device_allocation_configuration.py | 2 +- .../v1beta1_device_allocation_result.py | 2 +- .../client/models/v1beta1_device_attribute.py | 2 +- .../client/models/v1beta1_device_capacity.py | 2 +- .../client/models/v1beta1_device_claim.py | 2 +- .../v1beta1_device_claim_configuration.py | 2 +- .../client/models/v1beta1_device_class.py | 4 +- .../v1beta1_device_class_configuration.py | 2 +- .../models/v1beta1_device_class_list.py | 2 +- .../models/v1beta1_device_class_spec.py | 4 +- .../models/v1beta1_device_constraint.py | 2 +- .../v1beta1_device_counter_consumption.py | 14 +- .../v1beta1_device_derived_attribute.py | 214 + .../client/models/v1beta1_device_request.py | 19 +- ...1beta1_device_request_allocation_result.py | 12 +- .../client/models/v1beta1_device_selector.py | 2 +- .../models/v1beta1_device_sub_request.py | 19 +- .../client/models/v1beta1_device_taint.py | 2 +- .../models/v1beta1_device_toleration.py | 2 +- .../client/models/v1beta1_disruption_mode.py | 214 + .../models/v1beta1_gang_scheduling_policy.py | 232 + .../client/models/v1beta1_json_patch.py | 2 +- .../client/models/v1beta1_lease_candidate.py | 2 +- .../models/v1beta1_lease_candidate_list.py | 2 +- .../models/v1beta1_lease_candidate_spec.py | 14 +- .../client/models/v1beta1_match_condition.py | 2 +- .../client/models/v1beta1_match_resources.py | 2 +- .../v1beta1_mutating_admission_policy.py | 2 +- ...beta1_mutating_admission_policy_binding.py | 2 +- ..._mutating_admission_policy_binding_list.py | 2 +- ..._mutating_admission_policy_binding_spec.py | 2 +- .../v1beta1_mutating_admission_policy_list.py | 2 +- .../v1beta1_mutating_admission_policy_spec.py | 2 +- kubernetes/client/models/v1beta1_mutation.py | 2 +- .../v1beta1_named_rule_with_operations.py | 2 +- .../models/v1beta1_network_device_data.py | 2 +- ...py => v1beta1_node_allocatable_mapping.py} | 48 +- .../v1beta1_node_allocatable_overhead.py | 240 + .../v1beta1_node_allocatable_resource.py | 222 + ...beta1_node_allocatable_resource_mapping.py | 240 - .../v1beta1_opaque_device_configuration.py | 2 +- .../client/models/v1beta1_param_kind.py | 2 +- kubernetes/client/models/v1beta1_param_ref.py | 2 +- .../models/v1beta1_pod_certificate_request.py | 2 +- .../v1beta1_pod_certificate_request_list.py | 2 +- .../v1beta1_pod_certificate_request_spec.py | 2 +- .../v1beta1_pod_certificate_request_status.py | 2 +- kubernetes/client/models/v1beta1_pod_group.py | 264 + .../client/models/v1beta1_pod_group_list.py | 258 + .../v1beta1_pod_group_resource_claim.py | 245 + ...v1beta1_pod_group_resource_claim_status.py | 237 + ...1beta1_pod_group_scheduling_constraints.py | 216 + .../v1beta1_pod_group_scheduling_policy.py | 218 + .../client/models/v1beta1_pod_group_spec.py | 316 + .../client/models/v1beta1_pod_group_status.py | 251 + .../models/v1beta1_pod_group_template.py | 301 + .../client/models/v1beta1_resource_claim.py | 4 +- ...beta1_resource_claim_consumer_reference.py | 2 +- .../models/v1beta1_resource_claim_list.py | 2 +- .../models/v1beta1_resource_claim_spec.py | 2 +- .../models/v1beta1_resource_claim_status.py | 2 +- .../models/v1beta1_resource_claim_template.py | 4 +- .../v1beta1_resource_claim_template_list.py | 2 +- .../v1beta1_resource_claim_template_spec.py | 4 +- .../client/models/v1beta1_resource_pool.py | 4 +- .../client/models/v1beta1_resource_slice.py | 2 +- .../models/v1beta1_resource_slice_list.py | 2 +- .../models/v1beta1_resource_slice_spec.py | 26 +- .../v1beta1_storage_version_migration.py | 2 +- .../v1beta1_storage_version_migration_list.py | 2 +- .../v1beta1_storage_version_migration_spec.py | 2 +- ...1beta1_storage_version_migration_status.py | 2 +- ...spec.py => v1beta1_topology_constraint.py} | 28 +- .../v1beta1_typed_local_object_reference.py | 242 + kubernetes/client/models/v1beta1_variable.py | 2 +- .../models/v1beta1_volume_attributes_class.py | 259 - .../v1beta1_volume_attributes_class_list.py | 258 - ...eta1_ip_address.py => v1beta1_workload.py} | 22 +- .../client/models/v1beta1_workload_list.py | 258 + .../models/v1beta1_workload_reference.py | 240 + .../client/models/v1beta1_workload_spec.py | 266 + .../models/v1beta2_allocated_device_status.py | 2 +- .../models/v1beta2_allocation_result.py | 2 +- .../models/v1beta2_capacity_request_policy.py | 2 +- .../v1beta2_capacity_request_policy_range.py | 4 +- .../models/v1beta2_capacity_requirements.py | 2 +- .../models/v1beta2_cel_device_selector.py | 4 +- kubernetes/client/models/v1beta2_counter.py | 2 +- .../client/models/v1beta2_counter_set.py | 2 +- kubernetes/client/models/v1beta2_device.py | 38 +- ...v1beta2_device_allocation_configuration.py | 2 +- .../v1beta2_device_allocation_result.py | 2 +- .../client/models/v1beta2_device_attribute.py | 2 +- .../client/models/v1beta2_device_capacity.py | 2 +- .../client/models/v1beta2_device_claim.py | 2 +- .../v1beta2_device_claim_configuration.py | 2 +- .../client/models/v1beta2_device_class.py | 4 +- .../v1beta2_device_class_configuration.py | 2 +- .../models/v1beta2_device_class_list.py | 2 +- .../models/v1beta2_device_class_spec.py | 4 +- .../models/v1beta2_device_constraint.py | 2 +- .../v1beta2_device_counter_consumption.py | 14 +- .../v1beta2_device_derived_attribute.py | 214 + .../client/models/v1beta2_device_request.py | 2 +- ...1beta2_device_request_allocation_result.py | 12 +- .../client/models/v1beta2_device_selector.py | 2 +- .../models/v1beta2_device_sub_request.py | 19 +- .../client/models/v1beta2_device_taint.py | 2 +- .../models/v1beta2_device_taint_rule.py | 2 +- .../models/v1beta2_device_taint_rule_list.py | 2 +- .../models/v1beta2_device_taint_rule_spec.py | 2 +- .../v1beta2_device_taint_rule_status.py | 2 +- .../models/v1beta2_device_taint_selector.py | 2 +- .../models/v1beta2_device_toleration.py | 2 +- .../models/v1beta2_exact_device_request.py | 19 +- .../models/v1beta2_network_device_data.py | 2 +- .../v1beta2_node_allocatable_mapping.py | 248 + .../v1beta2_node_allocatable_overhead.py | 240 + .../v1beta2_node_allocatable_resource.py | 222 + ...beta2_node_allocatable_resource_mapping.py | 240 - .../v1beta2_opaque_device_configuration.py | 2 +- .../client/models/v1beta2_resource_claim.py | 4 +- ...beta2_resource_claim_consumer_reference.py | 2 +- .../models/v1beta2_resource_claim_list.py | 2 +- .../models/v1beta2_resource_claim_spec.py | 2 +- .../models/v1beta2_resource_claim_status.py | 2 +- .../models/v1beta2_resource_claim_template.py | 4 +- .../v1beta2_resource_claim_template_list.py | 2 +- .../v1beta2_resource_claim_template_spec.py | 4 +- .../client/models/v1beta2_resource_pool.py | 4 +- .../client/models/v1beta2_resource_slice.py | 2 +- .../models/v1beta2_resource_slice_list.py | 2 +- .../models/v1beta2_resource_slice_spec.py | 26 +- .../client/models/v2_api_group_discovery.py | 2 +- .../models/v2_api_group_discovery_list.py | 2 +- .../models/v2_api_resource_discovery.py | 2 +- .../models/v2_api_subresource_discovery.py | 2 +- .../client/models/v2_api_version_discovery.py | 2 +- .../v2_container_resource_metric_source.py | 2 +- .../v2_container_resource_metric_status.py | 2 +- .../v2_cross_version_object_reference.py | 2 +- .../models/v2_external_metric_source.py | 2 +- .../models/v2_external_metric_status.py | 2 +- .../models/v2_horizontal_pod_autoscaler.py | 2 +- .../v2_horizontal_pod_autoscaler_behavior.py | 2 +- .../v2_horizontal_pod_autoscaler_condition.py | 14 +- .../v2_horizontal_pod_autoscaler_list.py | 2 +- .../v2_horizontal_pod_autoscaler_spec.py | 2 +- .../v2_horizontal_pod_autoscaler_status.py | 2 +- .../client/models/v2_hpa_scaling_policy.py | 2 +- .../client/models/v2_hpa_scaling_rules.py | 6 +- .../client/models/v2_metric_identifier.py | 2 +- kubernetes/client/models/v2_metric_spec.py | 2 +- kubernetes/client/models/v2_metric_status.py | 2 +- kubernetes/client/models/v2_metric_target.py | 2 +- .../client/models/v2_metric_value_status.py | 4 +- .../client/models/v2_object_metric_source.py | 2 +- .../client/models/v2_object_metric_status.py | 2 +- .../client/models/v2_pods_metric_source.py | 2 +- .../client/models/v2_pods_metric_status.py | 2 +- .../models/v2_resource_metric_source.py | 2 +- .../models/v2_resource_metric_status.py | 2 +- .../models/v2beta1_api_group_discovery.py | 2 +- .../v2beta1_api_group_discovery_list.py | 2 +- .../models/v2beta1_api_resource_discovery.py | 2 +- .../v2beta1_api_subresource_discovery.py | 2 +- .../models/v2beta1_api_version_discovery.py | 2 +- kubernetes/client/models/version_info.py | 2 +- kubernetes/docs/AdmissionregistrationApi.md | 2 +- kubernetes/docs/ApiextensionsApi.md | 2 +- kubernetes/docs/ApiregistrationApi.md | 2 +- kubernetes/docs/ApisApi.md | 2 +- kubernetes/docs/AppsApi.md | 2 +- kubernetes/docs/AuthenticationApi.md | 2 +- kubernetes/docs/AuthorizationApi.md | 2 +- kubernetes/docs/AutoscalingApi.md | 2 +- kubernetes/docs/BatchApi.md | 2 +- kubernetes/docs/CertificatesApi.md | 2 +- kubernetes/docs/CertificatesV1Api.md | 2034 +- kubernetes/docs/CertificatesV1alpha1Api.md | 731 - kubernetes/docs/CoordinationApi.md | 2 +- kubernetes/docs/CoreApi.md | 2 +- kubernetes/docs/DiscoveryApi.md | 2 +- kubernetes/docs/EventsApi.md | 2 +- kubernetes/docs/FlowcontrolApiserverApi.md | 2 +- kubernetes/docs/InternalApiserverApi.md | 2 +- kubernetes/docs/LifecycleApi.md | 81 + ...gV1beta1Api.md => LifecycleV1alpha1Api.md} | 904 +- kubernetes/docs/NetworkingApi.md | 2 +- kubernetes/docs/NodeApi.md | 2 +- kubernetes/docs/PolicyApi.md | 2 +- kubernetes/docs/RbacAuthorizationApi.md | 2 +- kubernetes/docs/RbacV1Subject.md | 8 +- kubernetes/docs/ResourceApi.md | 2 +- kubernetes/docs/ResourceV1Api.md | 1408 +- kubernetes/docs/ResourceV1ResourceClaim.md | 2 +- kubernetes/docs/SchedulingApi.md | 2 +- kubernetes/docs/SchedulingV1alpha3Api.md | 2905 + ...V1alpha2Api.md => SchedulingV1beta1Api.md} | 272 +- kubernetes/docs/StorageApi.md | 2 +- kubernetes/docs/StorageV1Api.md | 260 + kubernetes/docs/StoragemigrationApi.md | 2 +- ...V1beta1Api.md => StoragemigrationV1Api.md} | 429 +- kubernetes/docs/V1AggregationRule.md | 2 +- kubernetes/docs/V1BoundObjectReference.md | 2 +- kubernetes/docs/V1CELDeviceSelector.md | 2 +- kubernetes/docs/V1CSIDriverSpec.md | 2 +- kubernetes/docs/V1CSINode.md | 1 + kubernetes/docs/V1CSINodeStatus.md | 28 + .../docs/V1CapacityRequestPolicyRange.md | 2 +- kubernetes/docs/V1ClusterRole.md | 2 +- kubernetes/docs/V1ClusterRoleBinding.md | 2 +- .../V1ClusterTrustBundle.md} | 20 +- .../V1ClusterTrustBundleList.md} | 18 +- .../docs/V1ClusterTrustBundleProjection.md | 1 + .../V1ClusterTrustBundleSpec.md} | 16 +- kubernetes/docs/V1ConfigMap.md | 2 +- kubernetes/docs/V1ConfigMapEnvSource.md | 2 +- kubernetes/docs/V1ConfigMapKeySelector.md | 2 +- kubernetes/docs/V1ConfigMapVolumeSource.md | 1 + kubernetes/docs/V1ControllerRevision.md | 4 +- kubernetes/docs/V1DaemonSet.md | 2 +- kubernetes/docs/V1DaemonSetCondition.md | 4 +- kubernetes/docs/V1Deployment.md | 2 +- kubernetes/docs/V1DeploymentCondition.md | 4 +- kubernetes/docs/V1Device.md | 2 +- kubernetes/docs/V1DeviceClass.md | 2 +- kubernetes/docs/V1DeviceClassSpec.md | 2 +- kubernetes/docs/V1DeviceCounterConsumption.md | 1 + kubernetes/docs/V1DeviceDerivedAttribute.md | 29 + .../docs/V1DeviceRequestAllocationResult.md | 1 + kubernetes/docs/V1DeviceSubRequest.md | 1 + kubernetes/docs/V1DeviceTaintRule.md | 32 + .../V1DeviceTaintRuleList.md} | 20 +- kubernetes/docs/V1DeviceTaintRuleSpec.md | 29 + kubernetes/docs/V1DeviceTaintRuleStatus.md | 28 + kubernetes/docs/V1DeviceTaintSelector.md | 30 + kubernetes/docs/V1DownwardAPIVolumeFile.md | 1 + kubernetes/docs/V1DownwardAPIVolumeSource.md | 1 + kubernetes/docs/V1EmptyDirVolumeSource.md | 1 + kubernetes/docs/V1EvictionResponder.md | 29 + kubernetes/docs/V1ExactDeviceRequest.md | 1 + kubernetes/docs/V1FlowSchema.md | 2 +- kubernetes/docs/V1FlowSchemaCondition.md | 4 +- kubernetes/docs/V1GRPCAction.md | 1 + kubernetes/docs/V1HTTPGetAction.md | 1 + .../docs/V1JobSchedulingConfiguration.md | 31 + kubernetes/docs/V1JobSpec.md | 1 + kubernetes/docs/V1JobStatus.md | 2 +- kubernetes/docs/V1KeyToPath.md | 1 + kubernetes/docs/V1LeaseSpec.md | 4 +- .../V1LimitedPriorityLevelConfiguration.md | 2 +- .../docs/V1NodeAllocatableMappedResources.md | 29 + kubernetes/docs/V1NodeAllocatableMapping.md | 30 + kubernetes/docs/V1NodeAllocatableOverhead.md | 29 + .../V1NodeAllocatableOverheadResources.md | 30 + kubernetes/docs/V1NodeAllocatableResource.md | 29 + .../V1NodeAllocatableResourceClaimStatus.md | 3 +- .../docs/V1NodeAllocatableResourceMapping.md | 29 - kubernetes/docs/V1NodePodPreemptionPolicy.md | 28 + kubernetes/docs/V1NodeSpec.md | 1 + kubernetes/docs/V1NodeSystemInfo.md | 1 + kubernetes/docs/V1ParentReference.md | 8 +- .../docs/V1PersistentVolumeClaimStatus.md | 1 + kubernetes/docs/V1PodCertificateProjection.md | 1 + kubernetes/docs/V1PodCertificateRequest.md | 32 + .../docs/V1PodCertificateRequestList.md | 31 + .../docs/V1PodCertificateRequestSpec.md | 37 + .../docs/V1PodCertificateRequestStatus.md | 32 + kubernetes/docs/V1PodDisruptionBudgetSpec.md | 6 +- kubernetes/docs/V1PodSecurityContext.md | 2 +- kubernetes/docs/V1PodSpec.md | 5 +- kubernetes/docs/V1PodStatus.md | 1 + kubernetes/docs/V1PodVolumeHealth.md | 30 + kubernetes/docs/V1PolicyRule.md | 10 +- .../docs/V1PriorityLevelConfiguration.md | 2 +- .../V1PriorityLevelConfigurationCondition.md | 4 +- kubernetes/docs/V1ProjectedVolumeSource.md | 1 + kubernetes/docs/V1ReplicaSet.md | 2 +- kubernetes/docs/V1ReplicaSetCondition.md | 4 +- kubernetes/docs/V1ResourceClaimTemplate.md | 2 +- .../docs/V1ResourceClaimTemplateSpec.md | 2 +- kubernetes/docs/V1ResourcePool.md | 2 +- kubernetes/docs/V1ResourceSliceSpec.md | 2 + kubernetes/docs/V1ResourceStatus.md | 2 +- kubernetes/docs/V1Role.md | 2 +- kubernetes/docs/V1RoleBinding.md | 2 +- kubernetes/docs/V1RoleRef.md | 6 +- kubernetes/docs/V1SecretVolumeSource.md | 1 + .../docs/V1ServiceAccountTokenProjection.md | 1 + kubernetes/docs/V1ServiceCIDRSpec.md | 2 +- kubernetes/docs/V1StatefulSet.md | 2 +- kubernetes/docs/V1StatefulSetCondition.md | 4 +- kubernetes/docs/V1StorageHealth.md | 29 + kubernetes/docs/V1StorageHealthCondition.md | 33 + kubernetes/docs/V1StorageVersionMigration.md | 32 + .../docs/V1StorageVersionMigrationList.md | 31 + .../docs/V1StorageVersionMigrationSpec.md | 28 + .../docs/V1StorageVersionMigrationStatus.md | 29 + kubernetes/docs/V1TokenRequestSpec.md | 1 + kubernetes/docs/V1VolumeAttributesClass.md | 2 +- kubernetes/docs/V1VolumeHealthCondition.md | 30 + kubernetes/docs/V1VolumeHealthStatus.md | 29 + kubernetes/docs/V1VolumeMount.md | 3 +- kubernetes/docs/V1alpha1Eviction.md | 32 + kubernetes/docs/V1alpha1EvictionList.md | 31 + .../docs/V1alpha1EvictionPodReference.md | 29 + kubernetes/docs/V1alpha1EvictionRequest.md | 32 + .../docs/V1alpha1EvictionRequestList.md | 31 + .../V1alpha1EvictionRequestPodReference.md | 29 + .../docs/V1alpha1EvictionRequestSpec.md | 30 + .../docs/V1alpha1EvictionRequestStatus.md | 29 + .../docs/V1alpha1EvictionRequestTarget.md | 28 + kubernetes/docs/V1alpha1EvictionSpec.md | 28 + kubernetes/docs/V1alpha1EvictionStatus.md | 32 + kubernetes/docs/V1alpha1EvictionTarget.md | 28 + kubernetes/docs/V1alpha1Requester.md | 29 + kubernetes/docs/V1alpha1ResponderStatus.md | 33 + kubernetes/docs/V1alpha1TargetResponder.md | 30 + .../docs/V1alpha2GangSchedulingPolicy.md | 28 - kubernetes/docs/V1alpha2LeaseCandidateSpec.md | 12 +- .../docs/V1alpha2PodGroupSchedulingPolicy.md | 29 - kubernetes/docs/V1alpha2PodGroupSpec.md | 34 - kubernetes/docs/V1alpha2PodGroupStatus.md | 29 - kubernetes/docs/V1alpha2PodGroupTemplate.md | 34 - .../docs/V1alpha2PodGroupTemplateReference.md | 28 - ...alpha2WorkloadPodGroupTemplateReference.md | 29 - kubernetes/docs/V1alpha2WorkloadSpec.md | 29 - .../docs/V1alpha3CompositeDisruptionMode.md | 29 + .../V1alpha3CompositeGangSchedulingPolicy.md | 28 + kubernetes/docs/V1alpha3CompositePodGroup.md | 32 + .../docs/V1alpha3CompositePodGroupList.md | 31 + ...3CompositePodGroupSchedulingConstraints.md | 28 + ...alpha3CompositePodGroupSchedulingPolicy.md | 29 + .../docs/V1alpha3CompositePodGroupSpec.md | 35 + .../docs/V1alpha3CompositePodGroupStatus.md | 28 + .../docs/V1alpha3CompositePodGroupTemplate.md | 36 + kubernetes/docs/V1alpha3DisruptionMode.md | 29 + .../docs/V1alpha3GangSchedulingPolicy.md | 28 + .../docs/V1alpha3PartitionTypeStatus.md | 31 + ...1alpha2PodGroup.md => V1alpha3PodGroup.md} | 20 +- ...odGroupList.md => V1alpha3PodGroupList.md} | 18 +- ...im.md => V1alpha3PodGroupResourceClaim.md} | 22 +- ...=> V1alpha3PodGroupResourceClaimStatus.md} | 20 +- ... V1alpha3PodGroupSchedulingConstraints.md} | 18 +- .../docs/V1alpha3PodGroupSchedulingPolicy.md | 29 + kubernetes/docs/V1alpha3PodGroupSpec.md | 36 + kubernetes/docs/V1alpha3PodGroupStatus.md | 29 + kubernetes/docs/V1alpha3PodGroupTemplate.md | 35 + kubernetes/docs/V1alpha3PoolStatus.md | 2 + .../V1alpha3ResourcePoolStatusRequestSpec.md | 1 + .../docs/V1alpha3ShareableCapacityStatus.md | 31 + .../docs/V1alpha3ShareableSummaryStatus.md | 30 + ...raint.md => V1alpha3TopologyConstraint.md} | 18 +- ...d => V1alpha3TypedLocalObjectReference.md} | 22 +- ...1alpha2Workload.md => V1alpha3Workload.md} | 18 +- ...orkloadList.md => V1alpha3WorkloadList.md} | 18 +- .../V1alpha3WorkloadPodGroupDisruptionMode.md | 29 + ...ha3WorkloadPodGroupGangSchedulingPolicy.md | 28 + .../V1alpha3WorkloadPodGroupResourceClaim.md | 30 + ...a3WorkloadPodGroupSchedulingConstraints.md | 28 + ...1alpha3WorkloadPodGroupSchedulingPolicy.md | 29 + kubernetes/docs/V1alpha3WorkloadReference.md | 29 + kubernetes/docs/V1alpha3WorkloadSpec.md | 30 + kubernetes/docs/V1beta1BasicDevice.md | 2 +- kubernetes/docs/V1beta1CELDeviceSelector.md | 2 +- .../docs/V1beta1CapacityRequestPolicyRange.md | 2 +- kubernetes/docs/V1beta1ClusterTrustBundle.md | 2 +- .../docs/V1beta1CompositeDisruptionMode.md | 29 + .../V1beta1CompositeGangSchedulingPolicy.md | 28 + ...1CompositePodGroupSchedulingConstraints.md | 28 + ...1beta1CompositePodGroupSchedulingPolicy.md | 29 + .../docs/V1beta1CompositePodGroupTemplate.md | 36 + kubernetes/docs/V1beta1DeviceClass.md | 2 +- kubernetes/docs/V1beta1DeviceClassSpec.md | 2 +- .../docs/V1beta1DeviceCounterConsumption.md | 1 + .../docs/V1beta1DeviceDerivedAttribute.md | 29 + kubernetes/docs/V1beta1DeviceRequest.md | 1 + .../V1beta1DeviceRequestAllocationResult.md | 1 + kubernetes/docs/V1beta1DeviceSubRequest.md | 1 + kubernetes/docs/V1beta1DisruptionMode.md | 29 + .../docs/V1beta1GangSchedulingPolicy.md | 28 + kubernetes/docs/V1beta1IPAddress.md | 31 - kubernetes/docs/V1beta1IPAddressSpec.md | 28 - kubernetes/docs/V1beta1LeaseCandidateSpec.md | 12 +- .../docs/V1beta1NodeAllocatableMapping.md | 30 + .../docs/V1beta1NodeAllocatableOverhead.md | 29 + .../docs/V1beta1NodeAllocatableResource.md | 29 + .../V1beta1NodeAllocatableResourceMapping.md | 29 - kubernetes/docs/V1beta1ParentReference.md | 31 - .../V1beta1PodGroup.md} | 22 +- kubernetes/docs/V1beta1PodGroupList.md | 31 + .../docs/V1beta1PodGroupResourceClaim.md | 30 + .../V1beta1PodGroupResourceClaimStatus.md | 29 + .../V1beta1PodGroupSchedulingConstraints.md | 28 + .../docs/V1beta1PodGroupSchedulingPolicy.md | 29 + kubernetes/docs/V1beta1PodGroupSpec.md | 36 + kubernetes/docs/V1beta1PodGroupStatus.md | 29 + kubernetes/docs/V1beta1PodGroupTemplate.md | 35 + kubernetes/docs/V1beta1ResourceClaim.md | 2 +- .../docs/V1beta1ResourceClaimTemplate.md | 2 +- .../docs/V1beta1ResourceClaimTemplateSpec.md | 2 +- kubernetes/docs/V1beta1ResourcePool.md | 2 +- kubernetes/docs/V1beta1ResourceSliceSpec.md | 2 + kubernetes/docs/V1beta1ServiceCIDRSpec.md | 28 - kubernetes/docs/V1beta1ServiceCIDRStatus.md | 28 - kubernetes/docs/V1beta1TopologyConstraint.md | 28 + .../docs/V1beta1TypedLocalObjectReference.md | 30 + .../docs/V1beta1VolumeAttributesClass.md | 32 - .../docs/V1beta1VolumeAttributesClassList.md | 31 - kubernetes/docs/V1beta1Workload.md | 31 + kubernetes/docs/V1beta1WorkloadList.md | 31 + kubernetes/docs/V1beta1WorkloadReference.md | 29 + kubernetes/docs/V1beta1WorkloadSpec.md | 30 + kubernetes/docs/V1beta2CELDeviceSelector.md | 2 +- .../docs/V1beta2CapacityRequestPolicyRange.md | 2 +- kubernetes/docs/V1beta2Device.md | 2 +- kubernetes/docs/V1beta2DeviceClass.md | 2 +- kubernetes/docs/V1beta2DeviceClassSpec.md | 2 +- .../docs/V1beta2DeviceCounterConsumption.md | 1 + .../docs/V1beta2DeviceDerivedAttribute.md | 29 + .../V1beta2DeviceRequestAllocationResult.md | 1 + kubernetes/docs/V1beta2DeviceSubRequest.md | 1 + kubernetes/docs/V1beta2ExactDeviceRequest.md | 1 + .../docs/V1beta2NodeAllocatableMapping.md | 30 + .../docs/V1beta2NodeAllocatableOverhead.md | 29 + .../docs/V1beta2NodeAllocatableResource.md | 29 + .../V1beta2NodeAllocatableResourceMapping.md | 29 - kubernetes/docs/V1beta2ResourceClaim.md | 2 +- .../docs/V1beta2ResourceClaimTemplate.md | 2 +- .../docs/V1beta2ResourceClaimTemplateSpec.md | 2 +- kubernetes/docs/V1beta2ResourcePool.md | 2 +- kubernetes/docs/V1beta2ResourceSliceSpec.md | 2 + kubernetes/docs/V2HPAScalingRules.md | 4 +- .../V2HorizontalPodAutoscalerCondition.md | 1 + kubernetes/docs/V2MetricValueStatus.md | 2 +- kubernetes/swagger.json.unprocessed | 30474 ++++++---- scripts/swagger.json | 50303 +++++++++------- 2372 files changed, 195254 insertions(+), 69204 deletions(-) create mode 100644 kubernetes/aio/client/api/lifecycle_api.py create mode 100644 kubernetes/aio/client/api/lifecycle_v1alpha1_api.py create mode 100644 kubernetes/aio/client/api/scheduling_v1alpha3_api.py rename kubernetes/aio/client/api/{scheduling_v1alpha2_api.py => scheduling_v1beta1_api.py} (98%) delete mode 100644 kubernetes/aio/client/api/storage_v1beta1_api.py rename kubernetes/aio/client/api/{certificates_v1alpha1_api.py => storagemigration_v1_api.py} (77%) rename kubernetes/aio/client/models/{v1alpha1_cluster_trust_bundle.py => v1_cluster_trust_bundle.py} (89%) rename kubernetes/aio/client/models/{v1alpha1_cluster_trust_bundle_list.py => v1_cluster_trust_bundle_list.py} (91%) rename kubernetes/{client/models/v1alpha1_cluster_trust_bundle_spec.py => aio/client/models/v1_cluster_trust_bundle_spec.py} (95%) create mode 100644 kubernetes/aio/client/models/v1_csi_node_status.py create mode 100644 kubernetes/aio/client/models/v1_device_derived_attribute.py rename kubernetes/aio/client/models/{v1beta1_service_cidr.py => v1_device_taint_rule.py} (89%) rename kubernetes/aio/client/models/{v1beta1_service_cidr_list.py => v1_device_taint_rule_list.py} (92%) create mode 100644 kubernetes/aio/client/models/v1_device_taint_rule_spec.py rename kubernetes/aio/client/models/{v1beta1_service_cidr_status.py => v1_device_taint_rule_status.py} (82%) create mode 100644 kubernetes/aio/client/models/v1_device_taint_selector.py create mode 100644 kubernetes/aio/client/models/v1_eviction_responder.py create mode 100644 kubernetes/aio/client/models/v1_job_scheduling_configuration.py create mode 100644 kubernetes/aio/client/models/v1_node_allocatable_mapped_resources.py rename kubernetes/aio/client/models/{v1beta1_node_allocatable_resource_mapping.py => v1_node_allocatable_mapping.py} (66%) create mode 100644 kubernetes/aio/client/models/v1_node_allocatable_overhead.py create mode 100644 kubernetes/aio/client/models/v1_node_allocatable_overhead_resources.py create mode 100644 kubernetes/aio/client/models/v1_node_allocatable_resource.py create mode 100644 kubernetes/aio/client/models/v1_node_pod_preemption_policy.py create mode 100644 kubernetes/aio/client/models/v1_pod_certificate_request.py create mode 100644 kubernetes/aio/client/models/v1_pod_certificate_request_list.py create mode 100644 kubernetes/aio/client/models/v1_pod_certificate_request_spec.py create mode 100644 kubernetes/aio/client/models/v1_pod_certificate_request_status.py create mode 100644 kubernetes/aio/client/models/v1_pod_volume_health.py create mode 100644 kubernetes/aio/client/models/v1_storage_health.py create mode 100644 kubernetes/aio/client/models/v1_storage_health_condition.py create mode 100644 kubernetes/aio/client/models/v1_storage_version_migration.py create mode 100644 kubernetes/aio/client/models/v1_storage_version_migration_list.py create mode 100644 kubernetes/aio/client/models/v1_storage_version_migration_spec.py create mode 100644 kubernetes/aio/client/models/v1_storage_version_migration_status.py create mode 100644 kubernetes/aio/client/models/v1_volume_health_condition.py create mode 100644 kubernetes/aio/client/models/v1_volume_health_status.py create mode 100644 kubernetes/aio/client/models/v1alpha1_eviction.py rename kubernetes/aio/client/models/{v1beta1_ip_address_list.py => v1alpha1_eviction_list.py} (93%) create mode 100644 kubernetes/aio/client/models/v1alpha1_eviction_pod_reference.py create mode 100644 kubernetes/aio/client/models/v1alpha1_eviction_request.py create mode 100644 kubernetes/aio/client/models/v1alpha1_eviction_request_list.py create mode 100644 kubernetes/aio/client/models/v1alpha1_eviction_request_pod_reference.py create mode 100644 kubernetes/aio/client/models/v1alpha1_eviction_request_spec.py create mode 100644 kubernetes/aio/client/models/v1alpha1_eviction_request_status.py rename kubernetes/{client/models/v1alpha2_pod_group_template_reference.py => aio/client/models/v1alpha1_eviction_request_target.py} (82%) create mode 100644 kubernetes/aio/client/models/v1alpha1_eviction_spec.py create mode 100644 kubernetes/aio/client/models/v1alpha1_eviction_status.py create mode 100644 kubernetes/aio/client/models/v1alpha1_eviction_target.py create mode 100644 kubernetes/aio/client/models/v1alpha1_requester.py create mode 100644 kubernetes/aio/client/models/v1alpha1_responder_status.py create mode 100644 kubernetes/aio/client/models/v1alpha1_target_responder.py create mode 100644 kubernetes/aio/client/models/v1alpha3_composite_disruption_mode.py create mode 100644 kubernetes/aio/client/models/v1alpha3_composite_gang_scheduling_policy.py create mode 100644 kubernetes/aio/client/models/v1alpha3_composite_pod_group.py create mode 100644 kubernetes/aio/client/models/v1alpha3_composite_pod_group_list.py create mode 100644 kubernetes/aio/client/models/v1alpha3_composite_pod_group_scheduling_constraints.py create mode 100644 kubernetes/aio/client/models/v1alpha3_composite_pod_group_scheduling_policy.py create mode 100644 kubernetes/aio/client/models/v1alpha3_composite_pod_group_spec.py create mode 100644 kubernetes/aio/client/models/v1alpha3_composite_pod_group_status.py create mode 100644 kubernetes/aio/client/models/v1alpha3_composite_pod_group_template.py create mode 100644 kubernetes/aio/client/models/v1alpha3_disruption_mode.py rename kubernetes/aio/client/models/{v1alpha2_gang_scheduling_policy.py => v1alpha3_gang_scheduling_policy.py} (87%) create mode 100644 kubernetes/aio/client/models/v1alpha3_partition_type_status.py rename kubernetes/aio/client/models/{v1alpha2_pod_group.py => v1alpha3_pod_group.py} (92%) rename kubernetes/aio/client/models/{v1alpha2_pod_group_list.py => v1alpha3_pod_group_list.py} (93%) rename kubernetes/aio/client/models/{v1alpha2_pod_group_resource_claim.py => v1alpha3_pod_group_resource_claim.py} (94%) rename kubernetes/{client/models/v1alpha2_pod_group_resource_claim_status.py => aio/client/models/v1alpha3_pod_group_resource_claim_status.py} (94%) rename kubernetes/aio/client/models/{v1alpha2_pod_group_scheduling_constraints.py => v1alpha3_pod_group_scheduling_constraints.py} (90%) create mode 100644 kubernetes/aio/client/models/v1alpha3_pod_group_scheduling_policy.py rename kubernetes/aio/client/models/{v1alpha2_pod_group_spec.py => v1alpha3_pod_group_spec.py} (66%) rename kubernetes/aio/client/models/{v1alpha2_pod_group_status.py => v1alpha3_pod_group_status.py} (82%) rename kubernetes/{client/models/v1alpha2_pod_group_template.py => aio/client/models/v1alpha3_pod_group_template.py} (75%) rename kubernetes/aio/client/models/{v1beta1_parent_reference.py => v1alpha3_shareable_capacity_status.py} (78%) create mode 100644 kubernetes/aio/client/models/v1alpha3_shareable_summary_status.py rename kubernetes/aio/client/models/{v1alpha2_topology_constraint.py => v1alpha3_topology_constraint.py} (93%) rename kubernetes/{client/models/v1alpha2_typed_local_object_reference.py => aio/client/models/v1alpha3_typed_local_object_reference.py} (93%) rename kubernetes/aio/client/models/{v1alpha2_workload.py => v1alpha3_workload.py} (94%) rename kubernetes/aio/client/models/{v1alpha2_workload_list.py => v1alpha3_workload_list.py} (93%) create mode 100644 kubernetes/aio/client/models/v1alpha3_workload_pod_group_disruption_mode.py create mode 100644 kubernetes/aio/client/models/v1alpha3_workload_pod_group_gang_scheduling_policy.py create mode 100644 kubernetes/aio/client/models/v1alpha3_workload_pod_group_resource_claim.py create mode 100644 kubernetes/aio/client/models/v1alpha3_workload_pod_group_scheduling_constraints.py create mode 100644 kubernetes/aio/client/models/v1alpha3_workload_pod_group_scheduling_policy.py rename kubernetes/aio/client/models/{v1alpha2_workload_pod_group_template_reference.py => v1alpha3_workload_reference.py} (82%) rename kubernetes/{client/models/v1alpha2_workload_spec.py => aio/client/models/v1alpha3_workload_spec.py} (70%) create mode 100644 kubernetes/aio/client/models/v1beta1_composite_disruption_mode.py rename kubernetes/aio/client/models/{v1beta1_ip_address_spec.py => v1beta1_composite_gang_scheduling_policy.py} (81%) create mode 100644 kubernetes/aio/client/models/v1beta1_composite_pod_group_scheduling_constraints.py rename kubernetes/aio/client/models/{v1alpha2_pod_group_scheduling_policy.py => v1beta1_composite_pod_group_scheduling_policy.py} (85%) create mode 100644 kubernetes/aio/client/models/v1beta1_composite_pod_group_template.py create mode 100644 kubernetes/aio/client/models/v1beta1_device_derived_attribute.py create mode 100644 kubernetes/aio/client/models/v1beta1_disruption_mode.py create mode 100644 kubernetes/aio/client/models/v1beta1_gang_scheduling_policy.py rename kubernetes/aio/client/models/{v1_node_allocatable_resource_mapping.py => v1beta1_node_allocatable_mapping.py} (66%) create mode 100644 kubernetes/aio/client/models/v1beta1_node_allocatable_overhead.py create mode 100644 kubernetes/aio/client/models/v1beta1_node_allocatable_resource.py create mode 100644 kubernetes/aio/client/models/v1beta1_pod_group.py create mode 100644 kubernetes/aio/client/models/v1beta1_pod_group_list.py create mode 100644 kubernetes/aio/client/models/v1beta1_pod_group_resource_claim.py create mode 100644 kubernetes/aio/client/models/v1beta1_pod_group_resource_claim_status.py create mode 100644 kubernetes/aio/client/models/v1beta1_pod_group_scheduling_constraints.py create mode 100644 kubernetes/aio/client/models/v1beta1_pod_group_scheduling_policy.py create mode 100644 kubernetes/aio/client/models/v1beta1_pod_group_spec.py create mode 100644 kubernetes/aio/client/models/v1beta1_pod_group_status.py create mode 100644 kubernetes/aio/client/models/v1beta1_pod_group_template.py rename kubernetes/aio/client/models/{v1beta1_service_cidr_spec.py => v1beta1_topology_constraint.py} (84%) create mode 100644 kubernetes/aio/client/models/v1beta1_typed_local_object_reference.py delete mode 100644 kubernetes/aio/client/models/v1beta1_volume_attributes_class.py delete mode 100644 kubernetes/aio/client/models/v1beta1_volume_attributes_class_list.py rename kubernetes/aio/client/models/{v1beta1_ip_address.py => v1beta1_workload.py} (88%) create mode 100644 kubernetes/aio/client/models/v1beta1_workload_list.py rename kubernetes/{client/models/v1alpha2_workload_pod_group_template_reference.py => aio/client/models/v1beta1_workload_reference.py} (82%) create mode 100644 kubernetes/aio/client/models/v1beta1_workload_spec.py create mode 100644 kubernetes/aio/client/models/v1beta2_device_derived_attribute.py create mode 100644 kubernetes/aio/client/models/v1beta2_node_allocatable_mapping.py create mode 100644 kubernetes/aio/client/models/v1beta2_node_allocatable_overhead.py create mode 100644 kubernetes/aio/client/models/v1beta2_node_allocatable_resource.py create mode 100644 kubernetes/aio/docs/LifecycleApi.md rename kubernetes/aio/docs/{NetworkingV1beta1Api.md => LifecycleV1alpha1Api.md} (64%) create mode 100644 kubernetes/aio/docs/SchedulingV1alpha3Api.md rename kubernetes/aio/docs/{SchedulingV1alpha2Api.md => SchedulingV1beta1Api.md} (93%) delete mode 100644 kubernetes/aio/docs/StorageV1beta1Api.md rename kubernetes/aio/docs/{CertificatesV1alpha1Api.md => StoragemigrationV1Api.md} (71%) create mode 100644 kubernetes/aio/docs/V1CSINodeStatus.md rename kubernetes/{docs/V1alpha1ClusterTrustBundle.md => aio/docs/V1ClusterTrustBundle.md} (61%) rename kubernetes/{docs/V1alpha1ClusterTrustBundleList.md => aio/docs/V1ClusterTrustBundleList.md} (61%) rename kubernetes/{docs/V1alpha1ClusterTrustBundleSpec.md => aio/docs/V1ClusterTrustBundleSpec.md} (76%) create mode 100644 kubernetes/aio/docs/V1DeviceDerivedAttribute.md create mode 100644 kubernetes/aio/docs/V1DeviceTaintRule.md rename kubernetes/{docs/V1beta1ServiceCIDRList.md => aio/docs/V1DeviceTaintRuleList.md} (63%) create mode 100644 kubernetes/aio/docs/V1DeviceTaintRuleSpec.md create mode 100644 kubernetes/aio/docs/V1DeviceTaintRuleStatus.md create mode 100644 kubernetes/aio/docs/V1DeviceTaintSelector.md create mode 100644 kubernetes/aio/docs/V1EvictionResponder.md create mode 100644 kubernetes/aio/docs/V1JobSchedulingConfiguration.md create mode 100644 kubernetes/aio/docs/V1NodeAllocatableMappedResources.md create mode 100644 kubernetes/aio/docs/V1NodeAllocatableMapping.md create mode 100644 kubernetes/aio/docs/V1NodeAllocatableOverhead.md create mode 100644 kubernetes/aio/docs/V1NodeAllocatableOverheadResources.md create mode 100644 kubernetes/aio/docs/V1NodeAllocatableResource.md delete mode 100644 kubernetes/aio/docs/V1NodeAllocatableResourceMapping.md create mode 100644 kubernetes/aio/docs/V1NodePodPreemptionPolicy.md create mode 100644 kubernetes/aio/docs/V1PodCertificateRequest.md create mode 100644 kubernetes/aio/docs/V1PodCertificateRequestList.md create mode 100644 kubernetes/aio/docs/V1PodCertificateRequestSpec.md create mode 100644 kubernetes/aio/docs/V1PodCertificateRequestStatus.md create mode 100644 kubernetes/aio/docs/V1PodVolumeHealth.md create mode 100644 kubernetes/aio/docs/V1StorageHealth.md create mode 100644 kubernetes/aio/docs/V1StorageHealthCondition.md create mode 100644 kubernetes/aio/docs/V1StorageVersionMigration.md create mode 100644 kubernetes/aio/docs/V1StorageVersionMigrationList.md create mode 100644 kubernetes/aio/docs/V1StorageVersionMigrationSpec.md create mode 100644 kubernetes/aio/docs/V1StorageVersionMigrationStatus.md create mode 100644 kubernetes/aio/docs/V1VolumeHealthCondition.md create mode 100644 kubernetes/aio/docs/V1VolumeHealthStatus.md create mode 100644 kubernetes/aio/docs/V1alpha1Eviction.md rename kubernetes/aio/docs/{V1beta1IPAddressList.md => V1alpha1EvictionList.md} (63%) create mode 100644 kubernetes/aio/docs/V1alpha1EvictionPodReference.md create mode 100644 kubernetes/aio/docs/V1alpha1EvictionRequest.md create mode 100644 kubernetes/aio/docs/V1alpha1EvictionRequestList.md create mode 100644 kubernetes/aio/docs/V1alpha1EvictionRequestPodReference.md create mode 100644 kubernetes/aio/docs/V1alpha1EvictionRequestSpec.md create mode 100644 kubernetes/aio/docs/V1alpha1EvictionRequestStatus.md create mode 100644 kubernetes/aio/docs/V1alpha1EvictionRequestTarget.md create mode 100644 kubernetes/aio/docs/V1alpha1EvictionSpec.md create mode 100644 kubernetes/aio/docs/V1alpha1EvictionStatus.md create mode 100644 kubernetes/aio/docs/V1alpha1EvictionTarget.md create mode 100644 kubernetes/aio/docs/V1alpha1Requester.md create mode 100644 kubernetes/aio/docs/V1alpha1ResponderStatus.md create mode 100644 kubernetes/aio/docs/V1alpha1TargetResponder.md delete mode 100644 kubernetes/aio/docs/V1alpha2GangSchedulingPolicy.md delete mode 100644 kubernetes/aio/docs/V1alpha2PodGroupSchedulingPolicy.md delete mode 100644 kubernetes/aio/docs/V1alpha2PodGroupSpec.md delete mode 100644 kubernetes/aio/docs/V1alpha2PodGroupStatus.md delete mode 100644 kubernetes/aio/docs/V1alpha2PodGroupTemplate.md delete mode 100644 kubernetes/aio/docs/V1alpha2PodGroupTemplateReference.md delete mode 100644 kubernetes/aio/docs/V1alpha2WorkloadPodGroupTemplateReference.md delete mode 100644 kubernetes/aio/docs/V1alpha2WorkloadSpec.md create mode 100644 kubernetes/aio/docs/V1alpha3CompositeDisruptionMode.md create mode 100644 kubernetes/aio/docs/V1alpha3CompositeGangSchedulingPolicy.md create mode 100644 kubernetes/aio/docs/V1alpha3CompositePodGroup.md create mode 100644 kubernetes/aio/docs/V1alpha3CompositePodGroupList.md create mode 100644 kubernetes/aio/docs/V1alpha3CompositePodGroupSchedulingConstraints.md create mode 100644 kubernetes/aio/docs/V1alpha3CompositePodGroupSchedulingPolicy.md create mode 100644 kubernetes/aio/docs/V1alpha3CompositePodGroupSpec.md create mode 100644 kubernetes/aio/docs/V1alpha3CompositePodGroupStatus.md create mode 100644 kubernetes/aio/docs/V1alpha3CompositePodGroupTemplate.md create mode 100644 kubernetes/aio/docs/V1alpha3DisruptionMode.md create mode 100644 kubernetes/aio/docs/V1alpha3GangSchedulingPolicy.md create mode 100644 kubernetes/aio/docs/V1alpha3PartitionTypeStatus.md rename kubernetes/aio/docs/{V1alpha2PodGroup.md => V1alpha3PodGroup.md} (71%) rename kubernetes/aio/docs/{V1alpha2PodGroupList.md => V1alpha3PodGroupList.md} (69%) rename kubernetes/aio/docs/{V1alpha2PodGroupResourceClaim.md => V1alpha3PodGroupResourceClaim.md} (71%) rename kubernetes/aio/docs/{V1alpha2PodGroupResourceClaimStatus.md => V1alpha3PodGroupResourceClaimStatus.md} (61%) rename kubernetes/aio/docs/{V1alpha2PodGroupSchedulingConstraints.md => V1alpha3PodGroupSchedulingConstraints.md} (52%) create mode 100644 kubernetes/aio/docs/V1alpha3PodGroupSchedulingPolicy.md create mode 100644 kubernetes/aio/docs/V1alpha3PodGroupSpec.md create mode 100644 kubernetes/aio/docs/V1alpha3PodGroupStatus.md create mode 100644 kubernetes/aio/docs/V1alpha3PodGroupTemplate.md create mode 100644 kubernetes/aio/docs/V1alpha3ShareableCapacityStatus.md create mode 100644 kubernetes/aio/docs/V1alpha3ShareableSummaryStatus.md rename kubernetes/aio/docs/{V1alpha2TopologyConstraint.md => V1alpha3TopologyConstraint.md} (57%) rename kubernetes/aio/docs/{V1alpha2TypedLocalObjectReference.md => V1alpha3TypedLocalObjectReference.md} (53%) rename kubernetes/aio/docs/{V1alpha2Workload.md => V1alpha3Workload.md} (73%) rename kubernetes/aio/docs/{V1alpha2WorkloadList.md => V1alpha3WorkloadList.md} (69%) create mode 100644 kubernetes/aio/docs/V1alpha3WorkloadPodGroupDisruptionMode.md create mode 100644 kubernetes/aio/docs/V1alpha3WorkloadPodGroupGangSchedulingPolicy.md create mode 100644 kubernetes/aio/docs/V1alpha3WorkloadPodGroupResourceClaim.md create mode 100644 kubernetes/aio/docs/V1alpha3WorkloadPodGroupSchedulingConstraints.md create mode 100644 kubernetes/aio/docs/V1alpha3WorkloadPodGroupSchedulingPolicy.md create mode 100644 kubernetes/aio/docs/V1alpha3WorkloadReference.md create mode 100644 kubernetes/aio/docs/V1alpha3WorkloadSpec.md create mode 100644 kubernetes/aio/docs/V1beta1CompositeDisruptionMode.md create mode 100644 kubernetes/aio/docs/V1beta1CompositeGangSchedulingPolicy.md create mode 100644 kubernetes/aio/docs/V1beta1CompositePodGroupSchedulingConstraints.md create mode 100644 kubernetes/aio/docs/V1beta1CompositePodGroupSchedulingPolicy.md create mode 100644 kubernetes/aio/docs/V1beta1CompositePodGroupTemplate.md create mode 100644 kubernetes/aio/docs/V1beta1DeviceDerivedAttribute.md create mode 100644 kubernetes/aio/docs/V1beta1DisruptionMode.md create mode 100644 kubernetes/aio/docs/V1beta1GangSchedulingPolicy.md delete mode 100644 kubernetes/aio/docs/V1beta1IPAddress.md delete mode 100644 kubernetes/aio/docs/V1beta1IPAddressSpec.md create mode 100644 kubernetes/aio/docs/V1beta1NodeAllocatableMapping.md create mode 100644 kubernetes/aio/docs/V1beta1NodeAllocatableOverhead.md create mode 100644 kubernetes/aio/docs/V1beta1NodeAllocatableResource.md delete mode 100644 kubernetes/aio/docs/V1beta1NodeAllocatableResourceMapping.md delete mode 100644 kubernetes/aio/docs/V1beta1ParentReference.md rename kubernetes/{docs/V1beta1ServiceCIDR.md => aio/docs/V1beta1PodGroup.md} (59%) create mode 100644 kubernetes/aio/docs/V1beta1PodGroupList.md create mode 100644 kubernetes/aio/docs/V1beta1PodGroupResourceClaim.md create mode 100644 kubernetes/aio/docs/V1beta1PodGroupResourceClaimStatus.md create mode 100644 kubernetes/aio/docs/V1beta1PodGroupSchedulingConstraints.md create mode 100644 kubernetes/aio/docs/V1beta1PodGroupSchedulingPolicy.md create mode 100644 kubernetes/aio/docs/V1beta1PodGroupSpec.md create mode 100644 kubernetes/aio/docs/V1beta1PodGroupStatus.md create mode 100644 kubernetes/aio/docs/V1beta1PodGroupTemplate.md delete mode 100644 kubernetes/aio/docs/V1beta1ServiceCIDRSpec.md delete mode 100644 kubernetes/aio/docs/V1beta1ServiceCIDRStatus.md create mode 100644 kubernetes/aio/docs/V1beta1TopologyConstraint.md create mode 100644 kubernetes/aio/docs/V1beta1TypedLocalObjectReference.md delete mode 100644 kubernetes/aio/docs/V1beta1VolumeAttributesClass.md delete mode 100644 kubernetes/aio/docs/V1beta1VolumeAttributesClassList.md create mode 100644 kubernetes/aio/docs/V1beta1Workload.md rename kubernetes/{docs/V1beta1IPAddressList.md => aio/docs/V1beta1WorkloadList.md} (63%) create mode 100644 kubernetes/aio/docs/V1beta1WorkloadReference.md create mode 100644 kubernetes/aio/docs/V1beta1WorkloadSpec.md create mode 100644 kubernetes/aio/docs/V1beta2DeviceDerivedAttribute.md create mode 100644 kubernetes/aio/docs/V1beta2NodeAllocatableMapping.md create mode 100644 kubernetes/aio/docs/V1beta2NodeAllocatableOverhead.md create mode 100644 kubernetes/aio/docs/V1beta2NodeAllocatableResource.md delete mode 100644 kubernetes/aio/docs/V1beta2NodeAllocatableResourceMapping.md create mode 100644 kubernetes/client/api/lifecycle_api.py rename kubernetes/{aio/client/api/networking_v1beta1_api.py => client/api/lifecycle_v1alpha1_api.py} (81%) rename kubernetes/client/api/{networking_v1beta1_api.py => scheduling_v1alpha3_api.py} (50%) rename kubernetes/client/api/{scheduling_v1alpha2_api.py => scheduling_v1beta1_api.py} (98%) delete mode 100644 kubernetes/client/api/storage_v1beta1_api.py rename kubernetes/client/api/{certificates_v1alpha1_api.py => storagemigration_v1_api.py} (77%) rename kubernetes/client/models/{v1alpha1_cluster_trust_bundle.py => v1_cluster_trust_bundle.py} (89%) rename kubernetes/client/models/{v1alpha1_cluster_trust_bundle_list.py => v1_cluster_trust_bundle_list.py} (91%) rename kubernetes/{aio/client/models/v1alpha1_cluster_trust_bundle_spec.py => client/models/v1_cluster_trust_bundle_spec.py} (95%) create mode 100644 kubernetes/client/models/v1_csi_node_status.py create mode 100644 kubernetes/client/models/v1_device_derived_attribute.py rename kubernetes/client/models/{v1beta1_service_cidr.py => v1_device_taint_rule.py} (89%) rename kubernetes/client/models/{v1beta1_service_cidr_list.py => v1_device_taint_rule_list.py} (92%) create mode 100644 kubernetes/client/models/v1_device_taint_rule_spec.py rename kubernetes/client/models/{v1beta1_service_cidr_status.py => v1_device_taint_rule_status.py} (82%) create mode 100644 kubernetes/client/models/v1_device_taint_selector.py create mode 100644 kubernetes/client/models/v1_eviction_responder.py create mode 100644 kubernetes/client/models/v1_job_scheduling_configuration.py create mode 100644 kubernetes/client/models/v1_node_allocatable_mapped_resources.py rename kubernetes/{aio/client/models/v1beta2_node_allocatable_resource_mapping.py => client/models/v1_node_allocatable_mapping.py} (66%) create mode 100644 kubernetes/client/models/v1_node_allocatable_overhead.py create mode 100644 kubernetes/client/models/v1_node_allocatable_overhead_resources.py create mode 100644 kubernetes/client/models/v1_node_allocatable_resource.py create mode 100644 kubernetes/client/models/v1_node_pod_preemption_policy.py create mode 100644 kubernetes/client/models/v1_pod_certificate_request.py create mode 100644 kubernetes/client/models/v1_pod_certificate_request_list.py create mode 100644 kubernetes/client/models/v1_pod_certificate_request_spec.py create mode 100644 kubernetes/client/models/v1_pod_certificate_request_status.py create mode 100644 kubernetes/client/models/v1_pod_volume_health.py create mode 100644 kubernetes/client/models/v1_storage_health.py create mode 100644 kubernetes/client/models/v1_storage_health_condition.py create mode 100644 kubernetes/client/models/v1_storage_version_migration.py create mode 100644 kubernetes/client/models/v1_storage_version_migration_list.py create mode 100644 kubernetes/client/models/v1_storage_version_migration_spec.py create mode 100644 kubernetes/client/models/v1_storage_version_migration_status.py create mode 100644 kubernetes/client/models/v1_volume_health_condition.py create mode 100644 kubernetes/client/models/v1_volume_health_status.py create mode 100644 kubernetes/client/models/v1alpha1_eviction.py rename kubernetes/client/models/{v1beta1_ip_address_list.py => v1alpha1_eviction_list.py} (93%) create mode 100644 kubernetes/client/models/v1alpha1_eviction_pod_reference.py create mode 100644 kubernetes/client/models/v1alpha1_eviction_request.py create mode 100644 kubernetes/client/models/v1alpha1_eviction_request_list.py create mode 100644 kubernetes/client/models/v1alpha1_eviction_request_pod_reference.py create mode 100644 kubernetes/client/models/v1alpha1_eviction_request_spec.py create mode 100644 kubernetes/client/models/v1alpha1_eviction_request_status.py rename kubernetes/{aio/client/models/v1alpha2_pod_group_template_reference.py => client/models/v1alpha1_eviction_request_target.py} (82%) create mode 100644 kubernetes/client/models/v1alpha1_eviction_spec.py create mode 100644 kubernetes/client/models/v1alpha1_eviction_status.py create mode 100644 kubernetes/client/models/v1alpha1_eviction_target.py create mode 100644 kubernetes/client/models/v1alpha1_requester.py create mode 100644 kubernetes/client/models/v1alpha1_responder_status.py create mode 100644 kubernetes/client/models/v1alpha1_target_responder.py create mode 100644 kubernetes/client/models/v1alpha3_composite_disruption_mode.py create mode 100644 kubernetes/client/models/v1alpha3_composite_gang_scheduling_policy.py create mode 100644 kubernetes/client/models/v1alpha3_composite_pod_group.py create mode 100644 kubernetes/client/models/v1alpha3_composite_pod_group_list.py create mode 100644 kubernetes/client/models/v1alpha3_composite_pod_group_scheduling_constraints.py create mode 100644 kubernetes/client/models/v1alpha3_composite_pod_group_scheduling_policy.py create mode 100644 kubernetes/client/models/v1alpha3_composite_pod_group_spec.py create mode 100644 kubernetes/client/models/v1alpha3_composite_pod_group_status.py create mode 100644 kubernetes/client/models/v1alpha3_composite_pod_group_template.py create mode 100644 kubernetes/client/models/v1alpha3_disruption_mode.py rename kubernetes/client/models/{v1alpha2_gang_scheduling_policy.py => v1alpha3_gang_scheduling_policy.py} (87%) create mode 100644 kubernetes/client/models/v1alpha3_partition_type_status.py rename kubernetes/client/models/{v1alpha2_pod_group.py => v1alpha3_pod_group.py} (92%) rename kubernetes/client/models/{v1alpha2_pod_group_list.py => v1alpha3_pod_group_list.py} (94%) rename kubernetes/client/models/{v1alpha2_pod_group_resource_claim.py => v1alpha3_pod_group_resource_claim.py} (94%) rename kubernetes/{aio/client/models/v1alpha2_pod_group_resource_claim_status.py => client/models/v1alpha3_pod_group_resource_claim_status.py} (94%) rename kubernetes/client/models/{v1alpha2_pod_group_scheduling_constraints.py => v1alpha3_pod_group_scheduling_constraints.py} (90%) create mode 100644 kubernetes/client/models/v1alpha3_pod_group_scheduling_policy.py rename kubernetes/client/models/{v1alpha2_pod_group_spec.py => v1alpha3_pod_group_spec.py} (66%) rename kubernetes/client/models/{v1alpha2_pod_group_status.py => v1alpha3_pod_group_status.py} (82%) rename kubernetes/{aio/client/models/v1alpha2_pod_group_template.py => client/models/v1alpha3_pod_group_template.py} (76%) rename kubernetes/client/models/{v1beta1_parent_reference.py => v1alpha3_shareable_capacity_status.py} (78%) create mode 100644 kubernetes/client/models/v1alpha3_shareable_summary_status.py rename kubernetes/client/models/{v1alpha2_topology_constraint.py => v1alpha3_topology_constraint.py} (93%) rename kubernetes/{aio/client/models/v1alpha2_typed_local_object_reference.py => client/models/v1alpha3_typed_local_object_reference.py} (93%) rename kubernetes/client/models/{v1alpha2_workload.py => v1alpha3_workload.py} (94%) rename kubernetes/client/models/{v1alpha2_workload_list.py => v1alpha3_workload_list.py} (94%) create mode 100644 kubernetes/client/models/v1alpha3_workload_pod_group_disruption_mode.py create mode 100644 kubernetes/client/models/v1alpha3_workload_pod_group_gang_scheduling_policy.py create mode 100644 kubernetes/client/models/v1alpha3_workload_pod_group_resource_claim.py create mode 100644 kubernetes/client/models/v1alpha3_workload_pod_group_scheduling_constraints.py create mode 100644 kubernetes/client/models/v1alpha3_workload_pod_group_scheduling_policy.py create mode 100644 kubernetes/client/models/v1alpha3_workload_reference.py rename kubernetes/{aio/client/models/v1alpha2_workload_spec.py => client/models/v1alpha3_workload_spec.py} (70%) create mode 100644 kubernetes/client/models/v1beta1_composite_disruption_mode.py rename kubernetes/client/models/{v1beta1_ip_address_spec.py => v1beta1_composite_gang_scheduling_policy.py} (81%) create mode 100644 kubernetes/client/models/v1beta1_composite_pod_group_scheduling_constraints.py rename kubernetes/client/models/{v1alpha2_pod_group_scheduling_policy.py => v1beta1_composite_pod_group_scheduling_policy.py} (85%) create mode 100644 kubernetes/client/models/v1beta1_composite_pod_group_template.py create mode 100644 kubernetes/client/models/v1beta1_device_derived_attribute.py create mode 100644 kubernetes/client/models/v1beta1_disruption_mode.py create mode 100644 kubernetes/client/models/v1beta1_gang_scheduling_policy.py rename kubernetes/client/models/{v1_node_allocatable_resource_mapping.py => v1beta1_node_allocatable_mapping.py} (66%) create mode 100644 kubernetes/client/models/v1beta1_node_allocatable_overhead.py create mode 100644 kubernetes/client/models/v1beta1_node_allocatable_resource.py delete mode 100644 kubernetes/client/models/v1beta1_node_allocatable_resource_mapping.py create mode 100644 kubernetes/client/models/v1beta1_pod_group.py create mode 100644 kubernetes/client/models/v1beta1_pod_group_list.py create mode 100644 kubernetes/client/models/v1beta1_pod_group_resource_claim.py create mode 100644 kubernetes/client/models/v1beta1_pod_group_resource_claim_status.py create mode 100644 kubernetes/client/models/v1beta1_pod_group_scheduling_constraints.py create mode 100644 kubernetes/client/models/v1beta1_pod_group_scheduling_policy.py create mode 100644 kubernetes/client/models/v1beta1_pod_group_spec.py create mode 100644 kubernetes/client/models/v1beta1_pod_group_status.py create mode 100644 kubernetes/client/models/v1beta1_pod_group_template.py rename kubernetes/client/models/{v1beta1_service_cidr_spec.py => v1beta1_topology_constraint.py} (84%) create mode 100644 kubernetes/client/models/v1beta1_typed_local_object_reference.py delete mode 100644 kubernetes/client/models/v1beta1_volume_attributes_class.py delete mode 100644 kubernetes/client/models/v1beta1_volume_attributes_class_list.py rename kubernetes/client/models/{v1beta1_ip_address.py => v1beta1_workload.py} (88%) create mode 100644 kubernetes/client/models/v1beta1_workload_list.py create mode 100644 kubernetes/client/models/v1beta1_workload_reference.py create mode 100644 kubernetes/client/models/v1beta1_workload_spec.py create mode 100644 kubernetes/client/models/v1beta2_device_derived_attribute.py create mode 100644 kubernetes/client/models/v1beta2_node_allocatable_mapping.py create mode 100644 kubernetes/client/models/v1beta2_node_allocatable_overhead.py create mode 100644 kubernetes/client/models/v1beta2_node_allocatable_resource.py delete mode 100644 kubernetes/client/models/v1beta2_node_allocatable_resource_mapping.py delete mode 100644 kubernetes/docs/CertificatesV1alpha1Api.md create mode 100644 kubernetes/docs/LifecycleApi.md rename kubernetes/docs/{NetworkingV1beta1Api.md => LifecycleV1alpha1Api.md} (64%) create mode 100644 kubernetes/docs/SchedulingV1alpha3Api.md rename kubernetes/docs/{SchedulingV1alpha2Api.md => SchedulingV1beta1Api.md} (93%) rename kubernetes/docs/{StorageV1beta1Api.md => StoragemigrationV1Api.md} (71%) create mode 100644 kubernetes/docs/V1CSINodeStatus.md rename kubernetes/{aio/docs/V1alpha1ClusterTrustBundle.md => docs/V1ClusterTrustBundle.md} (61%) rename kubernetes/{aio/docs/V1alpha1ClusterTrustBundleList.md => docs/V1ClusterTrustBundleList.md} (60%) rename kubernetes/{aio/docs/V1alpha1ClusterTrustBundleSpec.md => docs/V1ClusterTrustBundleSpec.md} (75%) create mode 100644 kubernetes/docs/V1DeviceDerivedAttribute.md create mode 100644 kubernetes/docs/V1DeviceTaintRule.md rename kubernetes/{aio/docs/V1beta1ServiceCIDRList.md => docs/V1DeviceTaintRuleList.md} (63%) create mode 100644 kubernetes/docs/V1DeviceTaintRuleSpec.md create mode 100644 kubernetes/docs/V1DeviceTaintRuleStatus.md create mode 100644 kubernetes/docs/V1DeviceTaintSelector.md create mode 100644 kubernetes/docs/V1EvictionResponder.md create mode 100644 kubernetes/docs/V1JobSchedulingConfiguration.md create mode 100644 kubernetes/docs/V1NodeAllocatableMappedResources.md create mode 100644 kubernetes/docs/V1NodeAllocatableMapping.md create mode 100644 kubernetes/docs/V1NodeAllocatableOverhead.md create mode 100644 kubernetes/docs/V1NodeAllocatableOverheadResources.md create mode 100644 kubernetes/docs/V1NodeAllocatableResource.md delete mode 100644 kubernetes/docs/V1NodeAllocatableResourceMapping.md create mode 100644 kubernetes/docs/V1NodePodPreemptionPolicy.md create mode 100644 kubernetes/docs/V1PodCertificateRequest.md create mode 100644 kubernetes/docs/V1PodCertificateRequestList.md create mode 100644 kubernetes/docs/V1PodCertificateRequestSpec.md create mode 100644 kubernetes/docs/V1PodCertificateRequestStatus.md create mode 100644 kubernetes/docs/V1PodVolumeHealth.md create mode 100644 kubernetes/docs/V1StorageHealth.md create mode 100644 kubernetes/docs/V1StorageHealthCondition.md create mode 100644 kubernetes/docs/V1StorageVersionMigration.md create mode 100644 kubernetes/docs/V1StorageVersionMigrationList.md create mode 100644 kubernetes/docs/V1StorageVersionMigrationSpec.md create mode 100644 kubernetes/docs/V1StorageVersionMigrationStatus.md create mode 100644 kubernetes/docs/V1VolumeHealthCondition.md create mode 100644 kubernetes/docs/V1VolumeHealthStatus.md create mode 100644 kubernetes/docs/V1alpha1Eviction.md create mode 100644 kubernetes/docs/V1alpha1EvictionList.md create mode 100644 kubernetes/docs/V1alpha1EvictionPodReference.md create mode 100644 kubernetes/docs/V1alpha1EvictionRequest.md create mode 100644 kubernetes/docs/V1alpha1EvictionRequestList.md create mode 100644 kubernetes/docs/V1alpha1EvictionRequestPodReference.md create mode 100644 kubernetes/docs/V1alpha1EvictionRequestSpec.md create mode 100644 kubernetes/docs/V1alpha1EvictionRequestStatus.md create mode 100644 kubernetes/docs/V1alpha1EvictionRequestTarget.md create mode 100644 kubernetes/docs/V1alpha1EvictionSpec.md create mode 100644 kubernetes/docs/V1alpha1EvictionStatus.md create mode 100644 kubernetes/docs/V1alpha1EvictionTarget.md create mode 100644 kubernetes/docs/V1alpha1Requester.md create mode 100644 kubernetes/docs/V1alpha1ResponderStatus.md create mode 100644 kubernetes/docs/V1alpha1TargetResponder.md delete mode 100644 kubernetes/docs/V1alpha2GangSchedulingPolicy.md delete mode 100644 kubernetes/docs/V1alpha2PodGroupSchedulingPolicy.md delete mode 100644 kubernetes/docs/V1alpha2PodGroupSpec.md delete mode 100644 kubernetes/docs/V1alpha2PodGroupStatus.md delete mode 100644 kubernetes/docs/V1alpha2PodGroupTemplate.md delete mode 100644 kubernetes/docs/V1alpha2PodGroupTemplateReference.md delete mode 100644 kubernetes/docs/V1alpha2WorkloadPodGroupTemplateReference.md delete mode 100644 kubernetes/docs/V1alpha2WorkloadSpec.md create mode 100644 kubernetes/docs/V1alpha3CompositeDisruptionMode.md create mode 100644 kubernetes/docs/V1alpha3CompositeGangSchedulingPolicy.md create mode 100644 kubernetes/docs/V1alpha3CompositePodGroup.md create mode 100644 kubernetes/docs/V1alpha3CompositePodGroupList.md create mode 100644 kubernetes/docs/V1alpha3CompositePodGroupSchedulingConstraints.md create mode 100644 kubernetes/docs/V1alpha3CompositePodGroupSchedulingPolicy.md create mode 100644 kubernetes/docs/V1alpha3CompositePodGroupSpec.md create mode 100644 kubernetes/docs/V1alpha3CompositePodGroupStatus.md create mode 100644 kubernetes/docs/V1alpha3CompositePodGroupTemplate.md create mode 100644 kubernetes/docs/V1alpha3DisruptionMode.md create mode 100644 kubernetes/docs/V1alpha3GangSchedulingPolicy.md create mode 100644 kubernetes/docs/V1alpha3PartitionTypeStatus.md rename kubernetes/docs/{V1alpha2PodGroup.md => V1alpha3PodGroup.md} (71%) rename kubernetes/docs/{V1alpha2PodGroupList.md => V1alpha3PodGroupList.md} (69%) rename kubernetes/docs/{V1alpha2PodGroupResourceClaim.md => V1alpha3PodGroupResourceClaim.md} (71%) rename kubernetes/docs/{V1alpha2PodGroupResourceClaimStatus.md => V1alpha3PodGroupResourceClaimStatus.md} (61%) rename kubernetes/docs/{V1alpha2PodGroupSchedulingConstraints.md => V1alpha3PodGroupSchedulingConstraints.md} (52%) create mode 100644 kubernetes/docs/V1alpha3PodGroupSchedulingPolicy.md create mode 100644 kubernetes/docs/V1alpha3PodGroupSpec.md create mode 100644 kubernetes/docs/V1alpha3PodGroupStatus.md create mode 100644 kubernetes/docs/V1alpha3PodGroupTemplate.md create mode 100644 kubernetes/docs/V1alpha3ShareableCapacityStatus.md create mode 100644 kubernetes/docs/V1alpha3ShareableSummaryStatus.md rename kubernetes/docs/{V1alpha2TopologyConstraint.md => V1alpha3TopologyConstraint.md} (57%) rename kubernetes/docs/{V1alpha2TypedLocalObjectReference.md => V1alpha3TypedLocalObjectReference.md} (53%) rename kubernetes/docs/{V1alpha2Workload.md => V1alpha3Workload.md} (74%) rename kubernetes/docs/{V1alpha2WorkloadList.md => V1alpha3WorkloadList.md} (69%) create mode 100644 kubernetes/docs/V1alpha3WorkloadPodGroupDisruptionMode.md create mode 100644 kubernetes/docs/V1alpha3WorkloadPodGroupGangSchedulingPolicy.md create mode 100644 kubernetes/docs/V1alpha3WorkloadPodGroupResourceClaim.md create mode 100644 kubernetes/docs/V1alpha3WorkloadPodGroupSchedulingConstraints.md create mode 100644 kubernetes/docs/V1alpha3WorkloadPodGroupSchedulingPolicy.md create mode 100644 kubernetes/docs/V1alpha3WorkloadReference.md create mode 100644 kubernetes/docs/V1alpha3WorkloadSpec.md create mode 100644 kubernetes/docs/V1beta1CompositeDisruptionMode.md create mode 100644 kubernetes/docs/V1beta1CompositeGangSchedulingPolicy.md create mode 100644 kubernetes/docs/V1beta1CompositePodGroupSchedulingConstraints.md create mode 100644 kubernetes/docs/V1beta1CompositePodGroupSchedulingPolicy.md create mode 100644 kubernetes/docs/V1beta1CompositePodGroupTemplate.md create mode 100644 kubernetes/docs/V1beta1DeviceDerivedAttribute.md create mode 100644 kubernetes/docs/V1beta1DisruptionMode.md create mode 100644 kubernetes/docs/V1beta1GangSchedulingPolicy.md delete mode 100644 kubernetes/docs/V1beta1IPAddress.md delete mode 100644 kubernetes/docs/V1beta1IPAddressSpec.md create mode 100644 kubernetes/docs/V1beta1NodeAllocatableMapping.md create mode 100644 kubernetes/docs/V1beta1NodeAllocatableOverhead.md create mode 100644 kubernetes/docs/V1beta1NodeAllocatableResource.md delete mode 100644 kubernetes/docs/V1beta1NodeAllocatableResourceMapping.md delete mode 100644 kubernetes/docs/V1beta1ParentReference.md rename kubernetes/{aio/docs/V1beta1ServiceCIDR.md => docs/V1beta1PodGroup.md} (59%) create mode 100644 kubernetes/docs/V1beta1PodGroupList.md create mode 100644 kubernetes/docs/V1beta1PodGroupResourceClaim.md create mode 100644 kubernetes/docs/V1beta1PodGroupResourceClaimStatus.md create mode 100644 kubernetes/docs/V1beta1PodGroupSchedulingConstraints.md create mode 100644 kubernetes/docs/V1beta1PodGroupSchedulingPolicy.md create mode 100644 kubernetes/docs/V1beta1PodGroupSpec.md create mode 100644 kubernetes/docs/V1beta1PodGroupStatus.md create mode 100644 kubernetes/docs/V1beta1PodGroupTemplate.md delete mode 100644 kubernetes/docs/V1beta1ServiceCIDRSpec.md delete mode 100644 kubernetes/docs/V1beta1ServiceCIDRStatus.md create mode 100644 kubernetes/docs/V1beta1TopologyConstraint.md create mode 100644 kubernetes/docs/V1beta1TypedLocalObjectReference.md delete mode 100644 kubernetes/docs/V1beta1VolumeAttributesClass.md delete mode 100644 kubernetes/docs/V1beta1VolumeAttributesClassList.md create mode 100644 kubernetes/docs/V1beta1Workload.md create mode 100644 kubernetes/docs/V1beta1WorkloadList.md create mode 100644 kubernetes/docs/V1beta1WorkloadReference.md create mode 100644 kubernetes/docs/V1beta1WorkloadSpec.md create mode 100644 kubernetes/docs/V1beta2DeviceDerivedAttribute.md create mode 100644 kubernetes/docs/V1beta2NodeAllocatableMapping.md create mode 100644 kubernetes/docs/V1beta2NodeAllocatableOverhead.md create mode 100644 kubernetes/docs/V1beta2NodeAllocatableResource.md delete mode 100644 kubernetes/docs/V1beta2NodeAllocatableResourceMapping.md diff --git a/kubernetes/aio/client/api/__init__.py b/kubernetes/aio/client/api/__init__.py index 184d2b4f2b..89c53a28eb 100644 --- a/kubernetes/aio/client/api/__init__.py +++ b/kubernetes/aio/client/api/__init__.py @@ -24,7 +24,6 @@ "BatchV1Api", "CertificatesApi", "CertificatesV1Api", - "CertificatesV1alpha1Api", "CertificatesV1beta1Api", "CoordinationApi", "CoordinationV1Api", @@ -41,10 +40,11 @@ "FlowcontrolApiserverV1Api", "InternalApiserverApi", "InternalApiserverV1alpha1Api", + "LifecycleApi", + "LifecycleV1alpha1Api", "LogsApi", "NetworkingApi", "NetworkingV1Api", - "NetworkingV1beta1Api", "NodeApi", "NodeV1Api", "OpenidApi", @@ -59,11 +59,12 @@ "ResourceV1beta2Api", "SchedulingApi", "SchedulingV1Api", - "SchedulingV1alpha2Api", + "SchedulingV1alpha3Api", + "SchedulingV1beta1Api", "StorageApi", "StorageV1Api", - "StorageV1beta1Api", "StoragemigrationApi", + "StoragemigrationV1Api", "StoragemigrationV1beta1Api", "VersionApi", ] @@ -95,7 +96,6 @@ from kubernetes.aio.client.api.batch_v1_api import BatchV1Api from kubernetes.aio.client.api.certificates_api import CertificatesApi from kubernetes.aio.client.api.certificates_v1_api import CertificatesV1Api - from kubernetes.aio.client.api.certificates_v1alpha1_api import CertificatesV1alpha1Api from kubernetes.aio.client.api.certificates_v1beta1_api import CertificatesV1beta1Api from kubernetes.aio.client.api.coordination_api import CoordinationApi from kubernetes.aio.client.api.coordination_v1_api import CoordinationV1Api @@ -112,10 +112,11 @@ from kubernetes.aio.client.api.flowcontrol_apiserver_v1_api import FlowcontrolApiserverV1Api from kubernetes.aio.client.api.internal_apiserver_api import InternalApiserverApi from kubernetes.aio.client.api.internal_apiserver_v1alpha1_api import InternalApiserverV1alpha1Api + from kubernetes.aio.client.api.lifecycle_api import LifecycleApi + from kubernetes.aio.client.api.lifecycle_v1alpha1_api import LifecycleV1alpha1Api from kubernetes.aio.client.api.logs_api import LogsApi from kubernetes.aio.client.api.networking_api import NetworkingApi from kubernetes.aio.client.api.networking_v1_api import NetworkingV1Api - from kubernetes.aio.client.api.networking_v1beta1_api import NetworkingV1beta1Api from kubernetes.aio.client.api.node_api import NodeApi from kubernetes.aio.client.api.node_v1_api import NodeV1Api from kubernetes.aio.client.api.openid_api import OpenidApi @@ -130,11 +131,12 @@ from kubernetes.aio.client.api.resource_v1beta2_api import ResourceV1beta2Api from kubernetes.aio.client.api.scheduling_api import SchedulingApi from kubernetes.aio.client.api.scheduling_v1_api import SchedulingV1Api - from kubernetes.aio.client.api.scheduling_v1alpha2_api import SchedulingV1alpha2Api + from kubernetes.aio.client.api.scheduling_v1alpha3_api import SchedulingV1alpha3Api + from kubernetes.aio.client.api.scheduling_v1beta1_api import SchedulingV1beta1Api from kubernetes.aio.client.api.storage_api import StorageApi from kubernetes.aio.client.api.storage_v1_api import StorageV1Api - from kubernetes.aio.client.api.storage_v1beta1_api import StorageV1beta1Api from kubernetes.aio.client.api.storagemigration_api import StoragemigrationApi + from kubernetes.aio.client.api.storagemigration_v1_api import StoragemigrationV1Api from kubernetes.aio.client.api.storagemigration_v1beta1_api import StoragemigrationV1beta1Api from kubernetes.aio.client.api.version_api import VersionApi @@ -165,7 +167,6 @@ "BatchV1Api": ".batch_v1_api", "CertificatesApi": ".certificates_api", "CertificatesV1Api": ".certificates_v1_api", - "CertificatesV1alpha1Api": ".certificates_v1alpha1_api", "CertificatesV1beta1Api": ".certificates_v1beta1_api", "CoordinationApi": ".coordination_api", "CoordinationV1Api": ".coordination_v1_api", @@ -182,10 +183,11 @@ "FlowcontrolApiserverV1Api": ".flowcontrol_apiserver_v1_api", "InternalApiserverApi": ".internal_apiserver_api", "InternalApiserverV1alpha1Api": ".internal_apiserver_v1alpha1_api", + "LifecycleApi": ".lifecycle_api", + "LifecycleV1alpha1Api": ".lifecycle_v1alpha1_api", "LogsApi": ".logs_api", "NetworkingApi": ".networking_api", "NetworkingV1Api": ".networking_v1_api", - "NetworkingV1beta1Api": ".networking_v1beta1_api", "NodeApi": ".node_api", "NodeV1Api": ".node_v1_api", "OpenidApi": ".openid_api", @@ -200,11 +202,12 @@ "ResourceV1beta2Api": ".resource_v1beta2_api", "SchedulingApi": ".scheduling_api", "SchedulingV1Api": ".scheduling_v1_api", - "SchedulingV1alpha2Api": ".scheduling_v1alpha2_api", + "SchedulingV1alpha3Api": ".scheduling_v1alpha3_api", + "SchedulingV1beta1Api": ".scheduling_v1beta1_api", "StorageApi": ".storage_api", "StorageV1Api": ".storage_v1_api", - "StorageV1beta1Api": ".storage_v1beta1_api", "StoragemigrationApi": ".storagemigration_api", + "StoragemigrationV1Api": ".storagemigration_v1_api", "StoragemigrationV1beta1Api": ".storagemigration_v1beta1_api", "VersionApi": ".version_api", } diff --git a/kubernetes/aio/client/api/admissionregistration_api.py b/kubernetes/aio/client/api/admissionregistration_api.py index 6c27db8069..9437195ec0 100644 --- a/kubernetes/aio/client/api/admissionregistration_api.py +++ b/kubernetes/aio/client/api/admissionregistration_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/admissionregistration_v1_api.py b/kubernetes/aio/client/api/admissionregistration_v1_api.py index 2114815c52..e19362df2a 100644 --- a/kubernetes/aio/client/api/admissionregistration_v1_api.py +++ b/kubernetes/aio/client/api/admissionregistration_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/admissionregistration_v1alpha1_api.py b/kubernetes/aio/client/api/admissionregistration_v1alpha1_api.py index e42918b075..f36e8c8719 100644 --- a/kubernetes/aio/client/api/admissionregistration_v1alpha1_api.py +++ b/kubernetes/aio/client/api/admissionregistration_v1alpha1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/admissionregistration_v1beta1_api.py b/kubernetes/aio/client/api/admissionregistration_v1beta1_api.py index 95cf2676bd..30070f9607 100644 --- a/kubernetes/aio/client/api/admissionregistration_v1beta1_api.py +++ b/kubernetes/aio/client/api/admissionregistration_v1beta1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/apiextensions_api.py b/kubernetes/aio/client/api/apiextensions_api.py index 4dfbfb68a3..b1f90bb32e 100644 --- a/kubernetes/aio/client/api/apiextensions_api.py +++ b/kubernetes/aio/client/api/apiextensions_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/apiextensions_v1_api.py b/kubernetes/aio/client/api/apiextensions_v1_api.py index b97b54033a..0911f44926 100644 --- a/kubernetes/aio/client/api/apiextensions_v1_api.py +++ b/kubernetes/aio/client/api/apiextensions_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/apiregistration_api.py b/kubernetes/aio/client/api/apiregistration_api.py index 25f7596374..04ad23255c 100644 --- a/kubernetes/aio/client/api/apiregistration_api.py +++ b/kubernetes/aio/client/api/apiregistration_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/apiregistration_v1_api.py b/kubernetes/aio/client/api/apiregistration_v1_api.py index 070b176081..5704c1e6a1 100644 --- a/kubernetes/aio/client/api/apiregistration_v1_api.py +++ b/kubernetes/aio/client/api/apiregistration_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/apis_api.py b/kubernetes/aio/client/api/apis_api.py index bfd46b2a2b..52222959ea 100644 --- a/kubernetes/aio/client/api/apis_api.py +++ b/kubernetes/aio/client/api/apis_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_versions_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/apps_api.py b/kubernetes/aio/client/api/apps_api.py index ac483db175..5c4052d0c8 100644 --- a/kubernetes/aio/client/api/apps_api.py +++ b/kubernetes/aio/client/api/apps_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/apps_v1_api.py b/kubernetes/aio/client/api/apps_v1_api.py index af556b8aa8..a9aea2b6b8 100644 --- a/kubernetes/aio/client/api/apps_v1_api.py +++ b/kubernetes/aio/client/api/apps_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/authentication_api.py b/kubernetes/aio/client/api/authentication_api.py index c7260d148f..8f1e416a54 100644 --- a/kubernetes/aio/client/api/authentication_api.py +++ b/kubernetes/aio/client/api/authentication_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/authentication_v1_api.py b/kubernetes/aio/client/api/authentication_v1_api.py index 6fcd1eed90..f07d331f39 100644 --- a/kubernetes/aio/client/api/authentication_v1_api.py +++ b/kubernetes/aio/client/api/authentication_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/authorization_api.py b/kubernetes/aio/client/api/authorization_api.py index 54a211afeb..05fe399716 100644 --- a/kubernetes/aio/client/api/authorization_api.py +++ b/kubernetes/aio/client/api/authorization_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/authorization_v1_api.py b/kubernetes/aio/client/api/authorization_v1_api.py index 664a6b2bd0..c39bf81877 100644 --- a/kubernetes/aio/client/api/authorization_v1_api.py +++ b/kubernetes/aio/client/api/authorization_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/autoscaling_api.py b/kubernetes/aio/client/api/autoscaling_api.py index 295a43fd5c..3006589ea2 100644 --- a/kubernetes/aio/client/api/autoscaling_api.py +++ b/kubernetes/aio/client/api/autoscaling_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/autoscaling_v1_api.py b/kubernetes/aio/client/api/autoscaling_v1_api.py index d8b39eea98..d6272b9c77 100644 --- a/kubernetes/aio/client/api/autoscaling_v1_api.py +++ b/kubernetes/aio/client/api/autoscaling_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/autoscaling_v2_api.py b/kubernetes/aio/client/api/autoscaling_v2_api.py index 7c13cac195..8d9ea17fd4 100644 --- a/kubernetes/aio/client/api/autoscaling_v2_api.py +++ b/kubernetes/aio/client/api/autoscaling_v2_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/batch_api.py b/kubernetes/aio/client/api/batch_api.py index 8c86220e78..4391221d98 100644 --- a/kubernetes/aio/client/api/batch_api.py +++ b/kubernetes/aio/client/api/batch_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/batch_v1_api.py b/kubernetes/aio/client/api/batch_v1_api.py index aa2acd6ac2..373935bda3 100644 --- a/kubernetes/aio/client/api/batch_v1_api.py +++ b/kubernetes/aio/client/api/batch_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/certificates_api.py b/kubernetes/aio/client/api/certificates_api.py index a75b7093d7..d2a447b3f8 100644 --- a/kubernetes/aio/client/api/certificates_api.py +++ b/kubernetes/aio/client/api/certificates_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/certificates_v1_api.py b/kubernetes/aio/client/api/certificates_v1_api.py index e338fe4cad..a76aebbf98 100644 --- a/kubernetes/aio/client/api/certificates_v1_api.py +++ b/kubernetes/aio/client/api/certificates_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,7 +21,11 @@ from kubernetes.aio.client.models.v1_api_resource_list import V1APIResourceList from kubernetes.aio.client.models.v1_certificate_signing_request import V1CertificateSigningRequest from kubernetes.aio.client.models.v1_certificate_signing_request_list import V1CertificateSigningRequestList +from kubernetes.aio.client.models.v1_cluster_trust_bundle import V1ClusterTrustBundle +from kubernetes.aio.client.models.v1_cluster_trust_bundle_list import V1ClusterTrustBundleList from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.aio.client.models.v1_pod_certificate_request import V1PodCertificateRequest +from kubernetes.aio.client.models.v1_pod_certificate_request_list import V1PodCertificateRequestList from kubernetes.aio.client.models.v1_status import V1Status from kubernetes.aio.client.api_client import ApiClient, RequestSerialized @@ -404,16 +408,13 @@ async def _create_certificate_signing_request_serialize( @validate_call(config={'defer_build': True}) - async def delete_certificate_signing_request( + async def create_cluster_trust_bundle( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: V1ClusterTrustBundle, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - body: Optional[V1DeleteOptions] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -426,27 +427,21 @@ async def delete_certificate_signing_request( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """delete_certificate_signing_request + ) -> V1ClusterTrustBundle: + """create_cluster_trust_bundle - delete a CertificateSigningRequest + create a ClusterTrustBundle - :param name: name of the CertificateSigningRequest (required) - :type name: str + :param body: (required) + :type body: V1ClusterTrustBundle :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param body: - :type body: V1DeleteOptions + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -469,15 +464,12 @@ async def delete_certificate_signing_request( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_certificate_signing_request_serialize( - name=name, + _param = await self._create_cluster_trust_bundle_serialize( + body=body, pretty=pretty, dry_run=dry_run, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - body=body, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -485,8 +477,9 @@ async def delete_certificate_signing_request( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '202': "object", + '200': "V1ClusterTrustBundle", + '201': "V1ClusterTrustBundle", + '202': "V1ClusterTrustBundle", '401': None, } response_data = await self.api_client.call_api( @@ -501,16 +494,13 @@ async def delete_certificate_signing_request( @validate_call(config={'defer_build': True}) - async def delete_certificate_signing_request_with_http_info( + async def create_cluster_trust_bundle_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: V1ClusterTrustBundle, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - body: Optional[V1DeleteOptions] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -523,27 +513,21 @@ async def delete_certificate_signing_request_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """delete_certificate_signing_request + ) -> ApiResponse[V1ClusterTrustBundle]: + """create_cluster_trust_bundle - delete a CertificateSigningRequest + create a ClusterTrustBundle - :param name: name of the CertificateSigningRequest (required) - :type name: str + :param body: (required) + :type body: V1ClusterTrustBundle :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param body: - :type body: V1DeleteOptions + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -566,15 +550,12 @@ async def delete_certificate_signing_request_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_certificate_signing_request_serialize( - name=name, + _param = await self._create_cluster_trust_bundle_serialize( + body=body, pretty=pretty, dry_run=dry_run, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - body=body, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -582,8 +563,9 @@ async def delete_certificate_signing_request_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '202': "object", + '200': "V1ClusterTrustBundle", + '201': "V1ClusterTrustBundle", + '202': "V1ClusterTrustBundle", '401': None, } response_data = await self.api_client.call_api( @@ -598,16 +580,13 @@ async def delete_certificate_signing_request_with_http_info( @validate_call(config={'defer_build': True}) - async def delete_certificate_signing_request_without_preload_content( + async def create_cluster_trust_bundle_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: V1ClusterTrustBundle, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - body: Optional[V1DeleteOptions] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -621,26 +600,20 @@ async def delete_certificate_signing_request_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_certificate_signing_request + """create_cluster_trust_bundle - delete a CertificateSigningRequest + create a ClusterTrustBundle - :param name: name of the CertificateSigningRequest (required) - :type name: str + :param body: (required) + :type body: V1ClusterTrustBundle :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param body: - :type body: V1DeleteOptions + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -663,15 +636,12 @@ async def delete_certificate_signing_request_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_certificate_signing_request_serialize( - name=name, + _param = await self._create_cluster_trust_bundle_serialize( + body=body, pretty=pretty, dry_run=dry_run, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - body=body, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -679,8 +649,9 @@ async def delete_certificate_signing_request_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '202': "object", + '200': "V1ClusterTrustBundle", + '201': "V1ClusterTrustBundle", + '202': "V1ClusterTrustBundle", '401': None, } response_data = await self.api_client.call_api( @@ -691,16 +662,13 @@ async def delete_certificate_signing_request_without_preload_content( return response_data.response - async def _delete_certificate_signing_request_serialize( + async def _create_cluster_trust_bundle_serialize( self, - name, + body, pretty, dry_run, - grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential, - orphan_dependents, - propagation_policy, - body, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -722,8 +690,6 @@ async def _delete_certificate_signing_request_serialize( _body_params: Optional[bytes] = None # process the path parameters - if name is not None: - _path_params['name'] = name # process the query parameters if pretty is not None: @@ -733,21 +699,13 @@ async def _delete_certificate_signing_request_serialize( _query_params.append(('dryRun', dry_run)) - if grace_period_seconds is not None: - - _query_params.append(('gracePeriodSeconds', grace_period_seconds)) - - if ignore_store_read_error_with_cluster_breaking_potential is not None: - - _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) - - if orphan_dependents is not None: + if field_manager is not None: - _query_params.append(('orphanDependents', orphan_dependents)) + _query_params.append(('fieldManager', field_manager)) - if propagation_policy is not None: + if field_validation is not None: - _query_params.append(('propagationPolicy', propagation_policy)) + _query_params.append(('fieldValidation', field_validation)) # process the header parameters # process the form parameters @@ -774,8 +732,8 @@ async def _delete_certificate_signing_request_serialize( ] return await self.api_client.param_serialize( - method='DELETE', - resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}', + method='POST', + resource_path='/apis/certificates.k8s.io/v1/clustertrustbundles', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -792,24 +750,14 @@ async def _delete_certificate_signing_request_serialize( @validate_call(config={'defer_build': True}) - async def delete_collection_certificate_signing_request( + async def create_namespaced_pod_certificate_request( self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1PodCertificateRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -822,43 +770,23 @@ async def delete_collection_certificate_signing_request( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1Status: - """delete_collection_certificate_signing_request + ) -> V1PodCertificateRequest: + """create_namespaced_pod_certificate_request - delete collection of CertificateSigningRequest + create a PodCertificateRequest + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1PodCertificateRequest :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). :type pretty: str - :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. - :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -881,23 +809,13 @@ async def delete_collection_certificate_signing_request( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_certificate_signing_request_serialize( + _param = await self._create_namespaced_pod_certificate_request_serialize( + namespace=namespace, + body=body, pretty=pretty, - _continue=_continue, dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -905,7 +823,9 @@ async def delete_collection_certificate_signing_request( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", + '202': "V1PodCertificateRequest", '401': None, } response_data = await self.api_client.call_api( @@ -920,24 +840,14 @@ async def delete_collection_certificate_signing_request( @validate_call(config={'defer_build': True}) - async def delete_collection_certificate_signing_request_with_http_info( + async def create_namespaced_pod_certificate_request_with_http_info( self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1PodCertificateRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -950,43 +860,23 @@ async def delete_collection_certificate_signing_request_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1Status]: - """delete_collection_certificate_signing_request + ) -> ApiResponse[V1PodCertificateRequest]: + """create_namespaced_pod_certificate_request - delete collection of CertificateSigningRequest + create a PodCertificateRequest + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1PodCertificateRequest :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). :type pretty: str - :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. - :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1009,23 +899,13 @@ async def delete_collection_certificate_signing_request_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_certificate_signing_request_serialize( + _param = await self._create_namespaced_pod_certificate_request_serialize( + namespace=namespace, + body=body, pretty=pretty, - _continue=_continue, dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1033,7 +913,9 @@ async def delete_collection_certificate_signing_request_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", + '202': "V1PodCertificateRequest", '401': None, } response_data = await self.api_client.call_api( @@ -1048,24 +930,14 @@ async def delete_collection_certificate_signing_request_with_http_info( @validate_call(config={'defer_build': True}) - async def delete_collection_certificate_signing_request_without_preload_content( + async def create_namespaced_pod_certificate_request_without_preload_content( self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1PodCertificateRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1079,42 +951,22 @@ async def delete_collection_certificate_signing_request_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_collection_certificate_signing_request + """create_namespaced_pod_certificate_request - delete collection of CertificateSigningRequest + create a PodCertificateRequest + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1PodCertificateRequest :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). :type pretty: str - :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. - :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1137,23 +989,13 @@ async def delete_collection_certificate_signing_request_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_certificate_signing_request_serialize( + _param = await self._create_namespaced_pod_certificate_request_serialize( + namespace=namespace, + body=body, pretty=pretty, - _continue=_continue, dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1161,7 +1003,9 @@ async def delete_collection_certificate_signing_request_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", + '202': "V1PodCertificateRequest", '401': None, } response_data = await self.api_client.call_api( @@ -1172,24 +1016,14 @@ async def delete_collection_certificate_signing_request_without_preload_content( return response_data.response - async def _delete_collection_certificate_signing_request_serialize( + async def _create_namespaced_pod_certificate_request_serialize( self, + namespace, + body, pretty, - _continue, dry_run, - field_selector, - grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential, - label_selector, - limit, - orphan_dependents, - propagation_policy, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - body, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -1211,66 +1045,24 @@ async def _delete_collection_certificate_signing_request_serialize( _body_params: Optional[bytes] = None # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if _continue is not None: - - _query_params.append(('continue', _continue)) - if dry_run is not None: _query_params.append(('dryRun', dry_run)) - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if grace_period_seconds is not None: - - _query_params.append(('gracePeriodSeconds', grace_period_seconds)) - - if ignore_store_read_error_with_cluster_breaking_potential is not None: - - _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if orphan_dependents is not None: - - _query_params.append(('orphanDependents', orphan_dependents)) - - if propagation_policy is not None: - - _query_params.append(('propagationPolicy', propagation_policy)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: + if field_manager is not None: - _query_params.append(('shardSelector', shard_selector)) + _query_params.append(('fieldManager', field_manager)) - if timeout_seconds is not None: + if field_validation is not None: - _query_params.append(('timeoutSeconds', timeout_seconds)) + _query_params.append(('fieldValidation', field_validation)) # process the header parameters # process the form parameters @@ -1297,8 +1089,8 @@ async def _delete_collection_certificate_signing_request_serialize( ] return await self.api_client.param_serialize( - method='DELETE', - resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests', + method='POST', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1315,8 +1107,16 @@ async def _delete_collection_certificate_signing_request_serialize( @validate_call(config={'defer_build': True}) - async def get_api_resources( + async def delete_certificate_signing_request( self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1329,11 +1129,27 @@ async def get_api_resources( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1APIResourceList: - """get_api_resources + ) -> object: + """delete_certificate_signing_request - get available resources + delete a CertificateSigningRequest + :param name: name of the CertificateSigningRequest (required) + :type name: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1356,7 +1172,15 @@ async def get_api_resources( :return: Returns the result object. """ # noqa: E501 - _param = await self._get_api_resources_serialize( + _param = await self._delete_certificate_signing_request_serialize( + name=name, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1364,7 +1188,8 @@ async def get_api_resources( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1APIResourceList", + '200': "object", + '202': "object", '401': None, } response_data = await self.api_client.call_api( @@ -1379,8 +1204,16 @@ async def get_api_resources( @validate_call(config={'defer_build': True}) - async def get_api_resources_with_http_info( + async def delete_certificate_signing_request_with_http_info( self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1393,21 +1226,7436 @@ async def get_api_resources_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1APIResourceList]: - """get_api_resources + ) -> ApiResponse[object]: + """delete_certificate_signing_request - get available resources + delete a CertificateSigningRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. + :param name: name of the CertificateSigningRequest (required) + :type name: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_certificate_signing_request_serialize( + name=name, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def delete_certificate_signing_request_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_certificate_signing_request + + delete a CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_certificate_signing_request_serialize( + name=name, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _delete_certificate_signing_request_serialize( + self, + name, + pretty, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def delete_cluster_trust_bundle( + self, + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """delete_cluster_trust_bundle + + delete a ClusterTrustBundle + + :param name: name of the ClusterTrustBundle (required) + :type name: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_cluster_trust_bundle_serialize( + name=name, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def delete_cluster_trust_bundle_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """delete_cluster_trust_bundle + + delete a ClusterTrustBundle + + :param name: name of the ClusterTrustBundle (required) + :type name: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_cluster_trust_bundle_serialize( + name=name, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def delete_cluster_trust_bundle_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_cluster_trust_bundle + + delete a ClusterTrustBundle + + :param name: name of the ClusterTrustBundle (required) + :type name: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_cluster_trust_bundle_serialize( + name=name, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _delete_cluster_trust_bundle_serialize( + self, + name, + pretty, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/certificates.k8s.io/v1/clustertrustbundles/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def delete_collection_certificate_signing_request( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1Status: + """delete_collection_certificate_signing_request + + delete collection of CertificateSigningRequest + + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_certificate_signing_request_serialize( + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def delete_collection_certificate_signing_request_with_http_info( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1Status]: + """delete_collection_certificate_signing_request + + delete collection of CertificateSigningRequest + + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_certificate_signing_request_serialize( + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def delete_collection_certificate_signing_request_without_preload_content( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_collection_certificate_signing_request + + delete collection of CertificateSigningRequest + + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_certificate_signing_request_serialize( + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _delete_collection_certificate_signing_request_serialize( + self, + pretty, + _continue, + dry_run, + field_selector, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, + orphan_dependents, + propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def delete_collection_cluster_trust_bundle( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1Status: + """delete_collection_cluster_trust_bundle + + delete collection of ClusterTrustBundle + + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_cluster_trust_bundle_serialize( + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def delete_collection_cluster_trust_bundle_with_http_info( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1Status]: + """delete_collection_cluster_trust_bundle + + delete collection of ClusterTrustBundle + + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_cluster_trust_bundle_serialize( + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def delete_collection_cluster_trust_bundle_without_preload_content( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_collection_cluster_trust_bundle + + delete collection of ClusterTrustBundle + + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_cluster_trust_bundle_serialize( + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _delete_collection_cluster_trust_bundle_serialize( + self, + pretty, + _continue, + dry_run, + field_selector, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, + orphan_dependents, + propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/certificates.k8s.io/v1/clustertrustbundles', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def delete_collection_namespaced_pod_certificate_request( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1Status: + """delete_collection_namespaced_pod_certificate_request + + delete collection of PodCertificateRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_namespaced_pod_certificate_request_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def delete_collection_namespaced_pod_certificate_request_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1Status]: + """delete_collection_namespaced_pod_certificate_request + + delete collection of PodCertificateRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_namespaced_pod_certificate_request_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def delete_collection_namespaced_pod_certificate_request_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_collection_namespaced_pod_certificate_request + + delete collection of PodCertificateRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_namespaced_pod_certificate_request_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _delete_collection_namespaced_pod_certificate_request_serialize( + self, + namespace, + pretty, + _continue, + dry_run, + field_selector, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, + orphan_dependents, + propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def delete_namespaced_pod_certificate_request( + self, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """delete_namespaced_pod_certificate_request + + delete a PodCertificateRequest + + :param name: name of the PodCertificateRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_namespaced_pod_certificate_request_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def delete_namespaced_pod_certificate_request_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """delete_namespaced_pod_certificate_request + + delete a PodCertificateRequest + + :param name: name of the PodCertificateRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_namespaced_pod_certificate_request_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def delete_namespaced_pod_certificate_request_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_namespaced_pod_certificate_request + + delete a PodCertificateRequest + + :param name: name of the PodCertificateRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_namespaced_pod_certificate_request_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _delete_namespaced_pod_certificate_request_serialize( + self, + name, + namespace, + pretty, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def get_api_resources( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1APIResourceList: + """get_api_resources + + get available resources + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._get_api_resources_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1APIResourceList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def get_api_resources_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1APIResourceList]: + """get_api_resources + + get available resources + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._get_api_resources_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1APIResourceList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def get_api_resources_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_api_resources + + get available resources + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._get_api_resources_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1APIResourceList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _get_api_resources_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/certificates.k8s.io/v1/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_certificate_signing_request( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1CertificateSigningRequestList: + """list_certificate_signing_request + + list or watch objects of kind CertificateSigningRequest + + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_certificate_signing_request_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequestList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_certificate_signing_request_with_http_info( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1CertificateSigningRequestList]: + """list_certificate_signing_request + + list or watch objects of kind CertificateSigningRequest + + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_certificate_signing_request_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequestList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_certificate_signing_request_without_preload_content( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_certificate_signing_request + + list or watch objects of kind CertificateSigningRequest + + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_certificate_signing_request_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequestList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_certificate_signing_request_serialize( + self, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_cluster_trust_bundle( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1ClusterTrustBundleList: + """list_cluster_trust_bundle + + list or watch objects of kind ClusterTrustBundle + + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_cluster_trust_bundle_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ClusterTrustBundleList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_cluster_trust_bundle_with_http_info( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1ClusterTrustBundleList]: + """list_cluster_trust_bundle + + list or watch objects of kind ClusterTrustBundle + + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_cluster_trust_bundle_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ClusterTrustBundleList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_cluster_trust_bundle_without_preload_content( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_cluster_trust_bundle + + list or watch objects of kind ClusterTrustBundle + + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_cluster_trust_bundle_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ClusterTrustBundleList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_cluster_trust_bundle_serialize( + self, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/certificates.k8s.io/v1/clustertrustbundles', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_pod_certificate_request( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1PodCertificateRequestList: + """list_namespaced_pod_certificate_request + + list or watch objects of kind PodCertificateRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_pod_certificate_request_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequestList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_pod_certificate_request_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1PodCertificateRequestList]: + """list_namespaced_pod_certificate_request + + list or watch objects of kind PodCertificateRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_pod_certificate_request_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequestList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_pod_certificate_request_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_namespaced_pod_certificate_request + + list or watch objects of kind PodCertificateRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_pod_certificate_request_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequestList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_namespaced_pod_certificate_request_serialize( + self, + namespace, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_pod_certificate_request_for_all_namespaces( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1PodCertificateRequestList: + """list_pod_certificate_request_for_all_namespaces + + list or watch objects of kind PodCertificateRequest + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_pod_certificate_request_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequestList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_pod_certificate_request_for_all_namespaces_with_http_info( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1PodCertificateRequestList]: + """list_pod_certificate_request_for_all_namespaces + + list or watch objects of kind PodCertificateRequest + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_pod_certificate_request_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequestList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_pod_certificate_request_for_all_namespaces_without_preload_content( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_pod_certificate_request_for_all_namespaces + + list or watch objects of kind PodCertificateRequest + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_pod_certificate_request_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequestList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_pod_certificate_request_for_all_namespaces_serialize( + self, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + pretty, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/certificates.k8s.io/v1/podcertificaterequests', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_certificate_signing_request( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1CertificateSigningRequest: + """patch_certificate_signing_request + + partially update the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_certificate_signing_request_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_certificate_signing_request_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1CertificateSigningRequest]: + """patch_certificate_signing_request + + partially update the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_certificate_signing_request_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_certificate_signing_request_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_certificate_signing_request + + partially update the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_certificate_signing_request_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_certificate_signing_request_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_certificate_signing_request_approval( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1CertificateSigningRequest: + """patch_certificate_signing_request_approval + + partially update approval of the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_certificate_signing_request_approval_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_certificate_signing_request_approval_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1CertificateSigningRequest]: + """patch_certificate_signing_request_approval + + partially update approval of the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_certificate_signing_request_approval_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_certificate_signing_request_approval_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_certificate_signing_request_approval + + partially update approval of the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_certificate_signing_request_approval_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_certificate_signing_request_approval_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_certificate_signing_request_status( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1CertificateSigningRequest: + """patch_certificate_signing_request_status + + partially update status of the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_certificate_signing_request_status_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_certificate_signing_request_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1CertificateSigningRequest]: + """patch_certificate_signing_request_status + + partially update status of the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_certificate_signing_request_status_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_certificate_signing_request_status_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_certificate_signing_request_status + + partially update status of the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_certificate_signing_request_status_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_certificate_signing_request_status_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_cluster_trust_bundle( + self, + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1ClusterTrustBundle: + """patch_cluster_trust_bundle + + partially update the specified ClusterTrustBundle + + :param name: name of the ClusterTrustBundle (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_cluster_trust_bundle_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ClusterTrustBundle", + '201': "V1ClusterTrustBundle", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_cluster_trust_bundle_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1ClusterTrustBundle]: + """patch_cluster_trust_bundle + + partially update the specified ClusterTrustBundle + + :param name: name of the ClusterTrustBundle (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_cluster_trust_bundle_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ClusterTrustBundle", + '201': "V1ClusterTrustBundle", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_cluster_trust_bundle_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_cluster_trust_bundle + + partially update the specified ClusterTrustBundle + + :param name: name of the ClusterTrustBundle (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_cluster_trust_bundle_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ClusterTrustBundle", + '201': "V1ClusterTrustBundle", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_cluster_trust_bundle_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/certificates.k8s.io/v1/clustertrustbundles/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_pod_certificate_request( + self, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1PodCertificateRequest: + """patch_namespaced_pod_certificate_request + + partially update the specified PodCertificateRequest + + :param name: name of the PodCertificateRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_pod_certificate_request_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_pod_certificate_request_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1PodCertificateRequest]: + """patch_namespaced_pod_certificate_request + + partially update the specified PodCertificateRequest + + :param name: name of the PodCertificateRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_pod_certificate_request_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_pod_certificate_request_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_namespaced_pod_certificate_request + + partially update the specified PodCertificateRequest + + :param name: name of the PodCertificateRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_pod_certificate_request_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_namespaced_pod_certificate_request_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_pod_certificate_request_status( + self, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1PodCertificateRequest: + """patch_namespaced_pod_certificate_request_status + + partially update status of the specified PodCertificateRequest + + :param name: name of the PodCertificateRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_pod_certificate_request_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_pod_certificate_request_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1PodCertificateRequest]: + """patch_namespaced_pod_certificate_request_status + + partially update status of the specified PodCertificateRequest + + :param name: name of the PodCertificateRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_pod_certificate_request_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_pod_certificate_request_status_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_namespaced_pod_certificate_request_status + + partially update status of the specified PodCertificateRequest + + :param name: name of the PodCertificateRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_pod_certificate_request_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_namespaced_pod_certificate_request_status_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def read_certificate_signing_request( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1CertificateSigningRequest: + """read_certificate_signing_request + + read the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_certificate_signing_request_serialize( + name=name, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def read_certificate_signing_request_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1CertificateSigningRequest]: + """read_certificate_signing_request + + read the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_certificate_signing_request_serialize( + name=name, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def read_certificate_signing_request_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """read_certificate_signing_request + + read the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_certificate_signing_request_serialize( + name=name, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _read_certificate_signing_request_serialize( + self, + name, + pretty, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def read_certificate_signing_request_approval( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1CertificateSigningRequest: + """read_certificate_signing_request_approval + + read approval of the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. :type _content_type: str, Optional :param _headers: set to override the headers for a single request; this effectively ignores the headers @@ -1420,7 +8668,9 @@ async def get_api_resources_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._get_api_resources_serialize( + _param = await self._read_certificate_signing_request_approval_serialize( + name=name, + pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1428,7 +8678,79 @@ async def get_api_resources_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1APIResourceList", + '200': "V1CertificateSigningRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def read_certificate_signing_request_approval_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1CertificateSigningRequest]: + """read_certificate_signing_request_approval + + read approval of the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_certificate_signing_request_approval_serialize( + name=name, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", '401': None, } response_data = await self.api_client.call_api( @@ -1443,8 +8765,10 @@ async def get_api_resources_with_http_info( @validate_call(config={'defer_build': True}) - async def get_api_resources_without_preload_content( + async def read_certificate_signing_request_approval_without_preload_content( self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1458,10 +8782,14 @@ async def get_api_resources_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_api_resources + """read_certificate_signing_request_approval - get available resources + read approval of the specified CertificateSigningRequest + :param name: name of the CertificateSigningRequest (required) + :type name: str + :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). + :type pretty: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1484,7 +8812,9 @@ async def get_api_resources_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._get_api_resources_serialize( + _param = await self._read_certificate_signing_request_approval_serialize( + name=name, + pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1492,7 +8822,7 @@ async def get_api_resources_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1APIResourceList", + '200': "V1CertificateSigningRequest", '401': None, } response_data = await self.api_client.call_api( @@ -1503,8 +8833,10 @@ async def get_api_resources_without_preload_content( return response_data.response - async def _get_api_resources_serialize( + async def _read_certificate_signing_request_approval_serialize( self, + name, + pretty, _request_auth, _content_type, _headers, @@ -1526,7 +8858,13 @@ async def _get_api_resources_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + # process the header parameters # process the form parameters # process the body parameter @@ -1551,7 +8889,7 @@ async def _get_api_resources_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/certificates.k8s.io/v1/', + resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1568,20 +8906,10 @@ async def _get_api_resources_serialize( @validate_call(config={'defer_build': True}) - async def list_certificate_signing_request( + async def read_certificate_signing_request_status( self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1594,35 +8922,15 @@ async def list_certificate_signing_request( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CertificateSigningRequestList: - """list_certificate_signing_request + ) -> V1CertificateSigningRequest: + """read_certificate_signing_request_status - list or watch objects of kind CertificateSigningRequest + read status of the specified CertificateSigningRequest + :param name: name of the CertificateSigningRequest (required) + :type name: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1645,19 +8953,9 @@ async def list_certificate_signing_request( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_certificate_signing_request_serialize( + _param = await self._read_certificate_signing_request_status_serialize( + name=name, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1665,7 +8963,7 @@ async def list_certificate_signing_request( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequestList", + '200': "V1CertificateSigningRequest", '401': None, } response_data = await self.api_client.call_api( @@ -1680,20 +8978,10 @@ async def list_certificate_signing_request( @validate_call(config={'defer_build': True}) - async def list_certificate_signing_request_with_http_info( + async def read_certificate_signing_request_status_with_http_info( self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1706,35 +8994,15 @@ async def list_certificate_signing_request_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1CertificateSigningRequestList]: - """list_certificate_signing_request + ) -> ApiResponse[V1CertificateSigningRequest]: + """read_certificate_signing_request_status - list or watch objects of kind CertificateSigningRequest + read status of the specified CertificateSigningRequest + :param name: name of the CertificateSigningRequest (required) + :type name: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1757,19 +9025,9 @@ async def list_certificate_signing_request_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_certificate_signing_request_serialize( + _param = await self._read_certificate_signing_request_status_serialize( + name=name, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1777,7 +9035,7 @@ async def list_certificate_signing_request_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequestList", + '200': "V1CertificateSigningRequest", '401': None, } response_data = await self.api_client.call_api( @@ -1792,20 +9050,10 @@ async def list_certificate_signing_request_with_http_info( @validate_call(config={'defer_build': True}) - async def list_certificate_signing_request_without_preload_content( + async def read_certificate_signing_request_status_without_preload_content( self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1819,34 +9067,14 @@ async def list_certificate_signing_request_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """list_certificate_signing_request + """read_certificate_signing_request_status - list or watch objects of kind CertificateSigningRequest + read status of the specified CertificateSigningRequest + :param name: name of the CertificateSigningRequest (required) + :type name: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1869,19 +9097,9 @@ async def list_certificate_signing_request_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_certificate_signing_request_serialize( + _param = await self._read_certificate_signing_request_status_serialize( + name=name, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1889,7 +9107,7 @@ async def list_certificate_signing_request_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequestList", + '200': "V1CertificateSigningRequest", '401': None, } response_data = await self.api_client.call_api( @@ -1900,20 +9118,10 @@ async def list_certificate_signing_request_without_preload_content( return response_data.response - async def _list_certificate_signing_request_serialize( + async def _read_certificate_signing_request_status_serialize( self, + name, pretty, - allow_watch_bookmarks, - _continue, - field_selector, - label_selector, - limit, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - watch, _request_auth, _content_type, _headers, @@ -1935,55 +9143,13 @@ async def _list_certificate_signing_request_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if allow_watch_bookmarks is not None: - - _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) - - if _continue is not None: - - _query_params.append(('continue', _continue)) - - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: - - _query_params.append(('shardSelector', shard_selector)) - - if timeout_seconds is not None: - - _query_params.append(('timeoutSeconds', timeout_seconds)) - - if watch is not None: - - _query_params.append(('watch', watch)) - # process the header parameters # process the form parameters # process the body parameter @@ -1996,10 +9162,7 @@ async def _list_certificate_signing_request_serialize( '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' ] ) @@ -2011,7 +9174,7 @@ async def _list_certificate_signing_request_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests', + resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2028,15 +9191,10 @@ async def _list_certificate_signing_request_serialize( @validate_call(config={'defer_build': True}) - async def patch_certificate_signing_request( + async def read_cluster_trust_bundle( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2048,26 +9206,16 @@ async def patch_certificate_signing_request( _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CertificateSigningRequest: - """patch_certificate_signing_request - - partially update the specified CertificateSigningRequest - - :param name: name of the CertificateSigningRequest (required) - :type name: str - :param body: (required) - :type body: object - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1ClusterTrustBundle: + """read_cluster_trust_bundle + + read the specified ClusterTrustBundle + + :param name: name of the ClusterTrustBundle (required) + :type name: str + :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). + :type pretty: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2090,14 +9238,9 @@ async def patch_certificate_signing_request( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_certificate_signing_request_serialize( + _param = await self._read_cluster_trust_bundle_serialize( name=name, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2105,8 +9248,7 @@ async def patch_certificate_signing_request( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1ClusterTrustBundle", '401': None, } response_data = await self.api_client.call_api( @@ -2121,15 +9263,10 @@ async def patch_certificate_signing_request( @validate_call(config={'defer_build': True}) - async def patch_certificate_signing_request_with_http_info( + async def read_cluster_trust_bundle_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2142,25 +9279,15 @@ async def patch_certificate_signing_request_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1CertificateSigningRequest]: - """patch_certificate_signing_request + ) -> ApiResponse[V1ClusterTrustBundle]: + """read_cluster_trust_bundle - partially update the specified CertificateSigningRequest + read the specified ClusterTrustBundle - :param name: name of the CertificateSigningRequest (required) + :param name: name of the ClusterTrustBundle (required) :type name: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2183,14 +9310,9 @@ async def patch_certificate_signing_request_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_certificate_signing_request_serialize( + _param = await self._read_cluster_trust_bundle_serialize( name=name, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2198,8 +9320,7 @@ async def patch_certificate_signing_request_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1ClusterTrustBundle", '401': None, } response_data = await self.api_client.call_api( @@ -2214,15 +9335,10 @@ async def patch_certificate_signing_request_with_http_info( @validate_call(config={'defer_build': True}) - async def patch_certificate_signing_request_without_preload_content( + async def read_cluster_trust_bundle_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2236,24 +9352,14 @@ async def patch_certificate_signing_request_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """patch_certificate_signing_request + """read_cluster_trust_bundle - partially update the specified CertificateSigningRequest + read the specified ClusterTrustBundle - :param name: name of the CertificateSigningRequest (required) + :param name: name of the ClusterTrustBundle (required) :type name: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2276,14 +9382,9 @@ async def patch_certificate_signing_request_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_certificate_signing_request_serialize( + _param = await self._read_cluster_trust_bundle_serialize( name=name, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2291,8 +9392,7 @@ async def patch_certificate_signing_request_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1ClusterTrustBundle", '401': None, } response_data = await self.api_client.call_api( @@ -2303,15 +9403,10 @@ async def patch_certificate_signing_request_without_preload_content( return response_data.response - async def _patch_certificate_signing_request_serialize( + async def _read_cluster_trust_bundle_serialize( self, name, - body, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -2340,27 +9435,9 @@ async def _patch_certificate_signing_request_serialize( _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -2374,23 +9451,6 @@ async def _patch_certificate_signing_request_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2398,8 +9458,8 @@ async def _patch_certificate_signing_request_serialize( ] return await self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}', + method='GET', + resource_path='/apis/certificates.k8s.io/v1/clustertrustbundles/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2416,15 +9476,11 @@ async def _patch_certificate_signing_request_serialize( @validate_call(config={'defer_build': True}) - async def patch_certificate_signing_request_approval( + async def read_namespaced_pod_certificate_request( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2437,25 +9493,17 @@ async def patch_certificate_signing_request_approval( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CertificateSigningRequest: - """patch_certificate_signing_request_approval + ) -> V1PodCertificateRequest: + """read_namespaced_pod_certificate_request - partially update approval of the specified CertificateSigningRequest + read the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2478,14 +9526,10 @@ async def patch_certificate_signing_request_approval( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_certificate_signing_request_approval_serialize( + _param = await self._read_namespaced_pod_certificate_request_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2493,8 +9537,7 @@ async def patch_certificate_signing_request_approval( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", '401': None, } response_data = await self.api_client.call_api( @@ -2509,15 +9552,11 @@ async def patch_certificate_signing_request_approval( @validate_call(config={'defer_build': True}) - async def patch_certificate_signing_request_approval_with_http_info( + async def read_namespaced_pod_certificate_request_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2530,25 +9569,17 @@ async def patch_certificate_signing_request_approval_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1CertificateSigningRequest]: - """patch_certificate_signing_request_approval + ) -> ApiResponse[V1PodCertificateRequest]: + """read_namespaced_pod_certificate_request - partially update approval of the specified CertificateSigningRequest + read the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2571,14 +9602,10 @@ async def patch_certificate_signing_request_approval_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_certificate_signing_request_approval_serialize( + _param = await self._read_namespaced_pod_certificate_request_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2586,8 +9613,7 @@ async def patch_certificate_signing_request_approval_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", '401': None, } response_data = await self.api_client.call_api( @@ -2602,15 +9628,11 @@ async def patch_certificate_signing_request_approval_with_http_info( @validate_call(config={'defer_build': True}) - async def patch_certificate_signing_request_approval_without_preload_content( + async def read_namespaced_pod_certificate_request_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2624,24 +9646,16 @@ async def patch_certificate_signing_request_approval_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """patch_certificate_signing_request_approval + """read_namespaced_pod_certificate_request - partially update approval of the specified CertificateSigningRequest + read the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2664,14 +9678,10 @@ async def patch_certificate_signing_request_approval_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_certificate_signing_request_approval_serialize( + _param = await self._read_namespaced_pod_certificate_request_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2679,8 +9689,7 @@ async def patch_certificate_signing_request_approval_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", '401': None, } response_data = await self.api_client.call_api( @@ -2691,15 +9700,11 @@ async def patch_certificate_signing_request_approval_without_preload_content( return response_data.response - async def _patch_certificate_signing_request_approval_serialize( + async def _read_namespaced_pod_certificate_request_serialize( self, name, - body, + namespace, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -2723,32 +9728,16 @@ async def _patch_certificate_signing_request_approval_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -2762,23 +9751,6 @@ async def _patch_certificate_signing_request_approval_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2786,8 +9758,8 @@ async def _patch_certificate_signing_request_approval_serialize( ] return await self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval', + method='GET', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2804,15 +9776,11 @@ async def _patch_certificate_signing_request_approval_serialize( @validate_call(config={'defer_build': True}) - async def patch_certificate_signing_request_status( + async def read_namespaced_pod_certificate_request_status( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2825,25 +9793,17 @@ async def patch_certificate_signing_request_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CertificateSigningRequest: - """patch_certificate_signing_request_status + ) -> V1PodCertificateRequest: + """read_namespaced_pod_certificate_request_status - partially update status of the specified CertificateSigningRequest + read status of the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2866,14 +9826,10 @@ async def patch_certificate_signing_request_status( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_certificate_signing_request_status_serialize( + _param = await self._read_namespaced_pod_certificate_request_status_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2881,8 +9837,7 @@ async def patch_certificate_signing_request_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", '401': None, } response_data = await self.api_client.call_api( @@ -2897,15 +9852,11 @@ async def patch_certificate_signing_request_status( @validate_call(config={'defer_build': True}) - async def patch_certificate_signing_request_status_with_http_info( + async def read_namespaced_pod_certificate_request_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2918,25 +9869,17 @@ async def patch_certificate_signing_request_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1CertificateSigningRequest]: - """patch_certificate_signing_request_status + ) -> ApiResponse[V1PodCertificateRequest]: + """read_namespaced_pod_certificate_request_status - partially update status of the specified CertificateSigningRequest + read status of the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2959,14 +9902,10 @@ async def patch_certificate_signing_request_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_certificate_signing_request_status_serialize( + _param = await self._read_namespaced_pod_certificate_request_status_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2974,8 +9913,7 @@ async def patch_certificate_signing_request_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", '401': None, } response_data = await self.api_client.call_api( @@ -2990,15 +9928,11 @@ async def patch_certificate_signing_request_status_with_http_info( @validate_call(config={'defer_build': True}) - async def patch_certificate_signing_request_status_without_preload_content( + async def read_namespaced_pod_certificate_request_status_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3012,24 +9946,16 @@ async def patch_certificate_signing_request_status_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """patch_certificate_signing_request_status + """read_namespaced_pod_certificate_request_status - partially update status of the specified CertificateSigningRequest + read status of the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3052,14 +9978,10 @@ async def patch_certificate_signing_request_status_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_certificate_signing_request_status_serialize( + _param = await self._read_namespaced_pod_certificate_request_status_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3067,8 +9989,7 @@ async def patch_certificate_signing_request_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", '401': None, } response_data = await self.api_client.call_api( @@ -3079,15 +10000,11 @@ async def patch_certificate_signing_request_status_without_preload_content( return response_data.response - async def _patch_certificate_signing_request_status_serialize( + async def _read_namespaced_pod_certificate_request_status_serialize( self, name, - body, + namespace, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -3111,32 +10028,16 @@ async def _patch_certificate_signing_request_status_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -3150,23 +10051,6 @@ async def _patch_certificate_signing_request_status_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3174,8 +10058,8 @@ async def _patch_certificate_signing_request_status_serialize( ] return await self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status', + method='GET', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3192,10 +10076,14 @@ async def _patch_certificate_signing_request_status_serialize( @validate_call(config={'defer_build': True}) - async def read_certificate_signing_request( + async def replace_certificate_signing_request( self, name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: V1CertificateSigningRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3209,14 +10097,22 @@ async def read_certificate_signing_request( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1CertificateSigningRequest: - """read_certificate_signing_request + """replace_certificate_signing_request - read the specified CertificateSigningRequest + replace the specified CertificateSigningRequest :param name: name of the CertificateSigningRequest (required) :type name: str + :param body: (required) + :type body: V1CertificateSigningRequest :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3239,9 +10135,13 @@ async def read_certificate_signing_request( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_certificate_signing_request_serialize( + _param = await self._replace_certificate_signing_request_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3250,6 +10150,7 @@ async def read_certificate_signing_request( _response_types_map: Dict[str, Optional[str]] = { '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", '401': None, } response_data = await self.api_client.call_api( @@ -3264,10 +10165,14 @@ async def read_certificate_signing_request( @validate_call(config={'defer_build': True}) - async def read_certificate_signing_request_with_http_info( + async def replace_certificate_signing_request_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: V1CertificateSigningRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3281,14 +10186,22 @@ async def read_certificate_signing_request_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[V1CertificateSigningRequest]: - """read_certificate_signing_request + """replace_certificate_signing_request - read the specified CertificateSigningRequest + replace the specified CertificateSigningRequest :param name: name of the CertificateSigningRequest (required) :type name: str + :param body: (required) + :type body: V1CertificateSigningRequest :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3311,9 +10224,13 @@ async def read_certificate_signing_request_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_certificate_signing_request_serialize( + _param = await self._replace_certificate_signing_request_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3322,6 +10239,7 @@ async def read_certificate_signing_request_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", '401': None, } response_data = await self.api_client.call_api( @@ -3336,10 +10254,14 @@ async def read_certificate_signing_request_with_http_info( @validate_call(config={'defer_build': True}) - async def read_certificate_signing_request_without_preload_content( + async def replace_certificate_signing_request_without_preload_content( self, name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: V1CertificateSigningRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3353,14 +10275,22 @@ async def read_certificate_signing_request_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """read_certificate_signing_request + """replace_certificate_signing_request - read the specified CertificateSigningRequest + replace the specified CertificateSigningRequest :param name: name of the CertificateSigningRequest (required) :type name: str + :param body: (required) + :type body: V1CertificateSigningRequest :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3383,9 +10313,13 @@ async def read_certificate_signing_request_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_certificate_signing_request_serialize( + _param = await self._replace_certificate_signing_request_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3394,6 +10328,7 @@ async def read_certificate_signing_request_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", '401': None, } response_data = await self.api_client.call_api( @@ -3404,10 +10339,14 @@ async def read_certificate_signing_request_without_preload_content( return response_data.response - async def _read_certificate_signing_request_serialize( + async def _replace_certificate_signing_request_serialize( self, name, + body, pretty, + dry_run, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -3436,9 +10375,23 @@ async def _read_certificate_signing_request_serialize( _query_params.append(('pretty', pretty)) + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -3459,7 +10412,7 @@ async def _read_certificate_signing_request_serialize( ] return await self.api_client.param_serialize( - method='GET', + method='PUT', resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}', path_params=_path_params, query_params=_query_params, @@ -3477,10 +10430,14 @@ async def _read_certificate_signing_request_serialize( @validate_call(config={'defer_build': True}) - async def read_certificate_signing_request_approval( + async def replace_certificate_signing_request_approval( self, name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: V1CertificateSigningRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3494,14 +10451,22 @@ async def read_certificate_signing_request_approval( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1CertificateSigningRequest: - """read_certificate_signing_request_approval + """replace_certificate_signing_request_approval - read approval of the specified CertificateSigningRequest + replace approval of the specified CertificateSigningRequest :param name: name of the CertificateSigningRequest (required) :type name: str + :param body: (required) + :type body: V1CertificateSigningRequest :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3524,9 +10489,13 @@ async def read_certificate_signing_request_approval( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_certificate_signing_request_approval_serialize( + _param = await self._replace_certificate_signing_request_approval_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3535,6 +10504,7 @@ async def read_certificate_signing_request_approval( _response_types_map: Dict[str, Optional[str]] = { '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", '401': None, } response_data = await self.api_client.call_api( @@ -3549,10 +10519,14 @@ async def read_certificate_signing_request_approval( @validate_call(config={'defer_build': True}) - async def read_certificate_signing_request_approval_with_http_info( + async def replace_certificate_signing_request_approval_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: V1CertificateSigningRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3566,14 +10540,22 @@ async def read_certificate_signing_request_approval_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[V1CertificateSigningRequest]: - """read_certificate_signing_request_approval + """replace_certificate_signing_request_approval - read approval of the specified CertificateSigningRequest + replace approval of the specified CertificateSigningRequest :param name: name of the CertificateSigningRequest (required) :type name: str + :param body: (required) + :type body: V1CertificateSigningRequest :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3596,9 +10578,13 @@ async def read_certificate_signing_request_approval_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_certificate_signing_request_approval_serialize( + _param = await self._replace_certificate_signing_request_approval_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3607,6 +10593,7 @@ async def read_certificate_signing_request_approval_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", '401': None, } response_data = await self.api_client.call_api( @@ -3621,10 +10608,14 @@ async def read_certificate_signing_request_approval_with_http_info( @validate_call(config={'defer_build': True}) - async def read_certificate_signing_request_approval_without_preload_content( + async def replace_certificate_signing_request_approval_without_preload_content( self, name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: V1CertificateSigningRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3638,14 +10629,22 @@ async def read_certificate_signing_request_approval_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """read_certificate_signing_request_approval + """replace_certificate_signing_request_approval - read approval of the specified CertificateSigningRequest + replace approval of the specified CertificateSigningRequest :param name: name of the CertificateSigningRequest (required) :type name: str + :param body: (required) + :type body: V1CertificateSigningRequest :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3668,9 +10667,13 @@ async def read_certificate_signing_request_approval_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_certificate_signing_request_approval_serialize( + _param = await self._replace_certificate_signing_request_approval_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3679,6 +10682,7 @@ async def read_certificate_signing_request_approval_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", '401': None, } response_data = await self.api_client.call_api( @@ -3689,10 +10693,14 @@ async def read_certificate_signing_request_approval_without_preload_content( return response_data.response - async def _read_certificate_signing_request_approval_serialize( + async def _replace_certificate_signing_request_approval_serialize( self, name, + body, pretty, + dry_run, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -3721,9 +10729,23 @@ async def _read_certificate_signing_request_approval_serialize( _query_params.append(('pretty', pretty)) + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -3744,7 +10766,7 @@ async def _read_certificate_signing_request_approval_serialize( ] return await self.api_client.param_serialize( - method='GET', + method='PUT', resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval', path_params=_path_params, query_params=_query_params, @@ -3762,10 +10784,14 @@ async def _read_certificate_signing_request_approval_serialize( @validate_call(config={'defer_build': True}) - async def read_certificate_signing_request_status( + async def replace_certificate_signing_request_status( self, name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: V1CertificateSigningRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3779,14 +10805,22 @@ async def read_certificate_signing_request_status( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1CertificateSigningRequest: - """read_certificate_signing_request_status + """replace_certificate_signing_request_status - read status of the specified CertificateSigningRequest + replace status of the specified CertificateSigningRequest :param name: name of the CertificateSigningRequest (required) :type name: str + :param body: (required) + :type body: V1CertificateSigningRequest :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3809,9 +10843,13 @@ async def read_certificate_signing_request_status( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_certificate_signing_request_status_serialize( + _param = await self._replace_certificate_signing_request_status_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3820,6 +10858,7 @@ async def read_certificate_signing_request_status( _response_types_map: Dict[str, Optional[str]] = { '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", '401': None, } response_data = await self.api_client.call_api( @@ -3834,10 +10873,14 @@ async def read_certificate_signing_request_status( @validate_call(config={'defer_build': True}) - async def read_certificate_signing_request_status_with_http_info( + async def replace_certificate_signing_request_status_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: V1CertificateSigningRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3851,14 +10894,22 @@ async def read_certificate_signing_request_status_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[V1CertificateSigningRequest]: - """read_certificate_signing_request_status + """replace_certificate_signing_request_status - read status of the specified CertificateSigningRequest + replace status of the specified CertificateSigningRequest :param name: name of the CertificateSigningRequest (required) :type name: str + :param body: (required) + :type body: V1CertificateSigningRequest :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3881,9 +10932,13 @@ async def read_certificate_signing_request_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_certificate_signing_request_status_serialize( + _param = await self._replace_certificate_signing_request_status_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3892,6 +10947,7 @@ async def read_certificate_signing_request_status_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", '401': None, } response_data = await self.api_client.call_api( @@ -3906,10 +10962,14 @@ async def read_certificate_signing_request_status_with_http_info( @validate_call(config={'defer_build': True}) - async def read_certificate_signing_request_status_without_preload_content( + async def replace_certificate_signing_request_status_without_preload_content( self, name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: V1CertificateSigningRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3923,14 +10983,22 @@ async def read_certificate_signing_request_status_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """read_certificate_signing_request_status + """replace_certificate_signing_request_status - read status of the specified CertificateSigningRequest + replace status of the specified CertificateSigningRequest :param name: name of the CertificateSigningRequest (required) :type name: str + :param body: (required) + :type body: V1CertificateSigningRequest :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3953,9 +11021,13 @@ async def read_certificate_signing_request_status_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_certificate_signing_request_status_serialize( + _param = await self._replace_certificate_signing_request_status_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3964,6 +11036,7 @@ async def read_certificate_signing_request_status_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", '401': None, } response_data = await self.api_client.call_api( @@ -3974,10 +11047,14 @@ async def read_certificate_signing_request_status_without_preload_content( return response_data.response - async def _read_certificate_signing_request_status_serialize( + async def _replace_certificate_signing_request_status_serialize( self, name, + body, pretty, + dry_run, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -4006,9 +11083,23 @@ async def _read_certificate_signing_request_status_serialize( _query_params.append(('pretty', pretty)) + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -4029,7 +11120,7 @@ async def _read_certificate_signing_request_status_serialize( ] return await self.api_client.param_serialize( - method='GET', + method='PUT', resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status', path_params=_path_params, query_params=_query_params, @@ -4047,10 +11138,10 @@ async def _read_certificate_signing_request_status_serialize( @validate_call(config={'defer_build': True}) - async def replace_certificate_signing_request( + async def replace_cluster_trust_bundle( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: V1CertificateSigningRequest, + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + body: V1ClusterTrustBundle, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -4067,15 +11158,15 @@ async def replace_certificate_signing_request( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CertificateSigningRequest: - """replace_certificate_signing_request + ) -> V1ClusterTrustBundle: + """replace_cluster_trust_bundle - replace the specified CertificateSigningRequest + replace the specified ClusterTrustBundle - :param name: name of the CertificateSigningRequest (required) + :param name: name of the ClusterTrustBundle (required) :type name: str :param body: (required) - :type body: V1CertificateSigningRequest + :type body: V1ClusterTrustBundle :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -4106,7 +11197,7 @@ async def replace_certificate_signing_request( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_certificate_signing_request_serialize( + _param = await self._replace_cluster_trust_bundle_serialize( name=name, body=body, pretty=pretty, @@ -4120,8 +11211,8 @@ async def replace_certificate_signing_request( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1ClusterTrustBundle", + '201': "V1ClusterTrustBundle", '401': None, } response_data = await self.api_client.call_api( @@ -4136,10 +11227,10 @@ async def replace_certificate_signing_request( @validate_call(config={'defer_build': True}) - async def replace_certificate_signing_request_with_http_info( + async def replace_cluster_trust_bundle_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: V1CertificateSigningRequest, + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + body: V1ClusterTrustBundle, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -4156,15 +11247,15 @@ async def replace_certificate_signing_request_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1CertificateSigningRequest]: - """replace_certificate_signing_request + ) -> ApiResponse[V1ClusterTrustBundle]: + """replace_cluster_trust_bundle - replace the specified CertificateSigningRequest + replace the specified ClusterTrustBundle - :param name: name of the CertificateSigningRequest (required) + :param name: name of the ClusterTrustBundle (required) :type name: str :param body: (required) - :type body: V1CertificateSigningRequest + :type body: V1ClusterTrustBundle :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -4195,7 +11286,7 @@ async def replace_certificate_signing_request_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_certificate_signing_request_serialize( + _param = await self._replace_cluster_trust_bundle_serialize( name=name, body=body, pretty=pretty, @@ -4209,8 +11300,8 @@ async def replace_certificate_signing_request_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1ClusterTrustBundle", + '201': "V1ClusterTrustBundle", '401': None, } response_data = await self.api_client.call_api( @@ -4225,10 +11316,10 @@ async def replace_certificate_signing_request_with_http_info( @validate_call(config={'defer_build': True}) - async def replace_certificate_signing_request_without_preload_content( + async def replace_cluster_trust_bundle_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: V1CertificateSigningRequest, + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + body: V1ClusterTrustBundle, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -4246,14 +11337,14 @@ async def replace_certificate_signing_request_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """replace_certificate_signing_request + """replace_cluster_trust_bundle - replace the specified CertificateSigningRequest + replace the specified ClusterTrustBundle - :param name: name of the CertificateSigningRequest (required) + :param name: name of the ClusterTrustBundle (required) :type name: str :param body: (required) - :type body: V1CertificateSigningRequest + :type body: V1ClusterTrustBundle :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -4284,7 +11375,7 @@ async def replace_certificate_signing_request_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_certificate_signing_request_serialize( + _param = await self._replace_cluster_trust_bundle_serialize( name=name, body=body, pretty=pretty, @@ -4298,8 +11389,8 @@ async def replace_certificate_signing_request_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1ClusterTrustBundle", + '201': "V1ClusterTrustBundle", '401': None, } response_data = await self.api_client.call_api( @@ -4310,7 +11401,7 @@ async def replace_certificate_signing_request_without_preload_content( return response_data.response - async def _replace_certificate_signing_request_serialize( + async def _replace_cluster_trust_bundle_serialize( self, name, body, @@ -4384,7 +11475,7 @@ async def _replace_certificate_signing_request_serialize( return await self.api_client.param_serialize( method='PUT', - resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}', + resource_path='/apis/certificates.k8s.io/v1/clustertrustbundles/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4401,10 +11492,11 @@ async def _replace_certificate_signing_request_serialize( @validate_call(config={'defer_build': True}) - async def replace_certificate_signing_request_approval( + async def replace_namespaced_pod_certificate_request( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: V1CertificateSigningRequest, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1PodCertificateRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -4421,15 +11513,17 @@ async def replace_certificate_signing_request_approval( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CertificateSigningRequest: - """replace_certificate_signing_request_approval + ) -> V1PodCertificateRequest: + """replace_namespaced_pod_certificate_request - replace approval of the specified CertificateSigningRequest + replace the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1CertificateSigningRequest + :type body: V1PodCertificateRequest :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -4460,8 +11554,9 @@ async def replace_certificate_signing_request_approval( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_certificate_signing_request_approval_serialize( + _param = await self._replace_namespaced_pod_certificate_request_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -4474,8 +11569,8 @@ async def replace_certificate_signing_request_approval( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", '401': None, } response_data = await self.api_client.call_api( @@ -4490,10 +11585,11 @@ async def replace_certificate_signing_request_approval( @validate_call(config={'defer_build': True}) - async def replace_certificate_signing_request_approval_with_http_info( + async def replace_namespaced_pod_certificate_request_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: V1CertificateSigningRequest, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1PodCertificateRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -4510,15 +11606,17 @@ async def replace_certificate_signing_request_approval_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1CertificateSigningRequest]: - """replace_certificate_signing_request_approval + ) -> ApiResponse[V1PodCertificateRequest]: + """replace_namespaced_pod_certificate_request - replace approval of the specified CertificateSigningRequest + replace the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1CertificateSigningRequest + :type body: V1PodCertificateRequest :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -4549,8 +11647,9 @@ async def replace_certificate_signing_request_approval_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_certificate_signing_request_approval_serialize( + _param = await self._replace_namespaced_pod_certificate_request_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -4563,8 +11662,8 @@ async def replace_certificate_signing_request_approval_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", '401': None, } response_data = await self.api_client.call_api( @@ -4579,10 +11678,11 @@ async def replace_certificate_signing_request_approval_with_http_info( @validate_call(config={'defer_build': True}) - async def replace_certificate_signing_request_approval_without_preload_content( + async def replace_namespaced_pod_certificate_request_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: V1CertificateSigningRequest, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1PodCertificateRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -4600,14 +11700,16 @@ async def replace_certificate_signing_request_approval_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """replace_certificate_signing_request_approval + """replace_namespaced_pod_certificate_request - replace approval of the specified CertificateSigningRequest + replace the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1CertificateSigningRequest + :type body: V1PodCertificateRequest :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -4638,8 +11740,9 @@ async def replace_certificate_signing_request_approval_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_certificate_signing_request_approval_serialize( + _param = await self._replace_namespaced_pod_certificate_request_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -4652,8 +11755,8 @@ async def replace_certificate_signing_request_approval_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", '401': None, } response_data = await self.api_client.call_api( @@ -4664,9 +11767,10 @@ async def replace_certificate_signing_request_approval_without_preload_content( return response_data.response - async def _replace_certificate_signing_request_approval_serialize( + async def _replace_namespaced_pod_certificate_request_serialize( self, name, + namespace, body, pretty, dry_run, @@ -4695,6 +11799,8 @@ async def _replace_certificate_signing_request_approval_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -4738,7 +11844,7 @@ async def _replace_certificate_signing_request_approval_serialize( return await self.api_client.param_serialize( method='PUT', - resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4755,10 +11861,11 @@ async def _replace_certificate_signing_request_approval_serialize( @validate_call(config={'defer_build': True}) - async def replace_certificate_signing_request_status( + async def replace_namespaced_pod_certificate_request_status( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: V1CertificateSigningRequest, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1PodCertificateRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -4775,15 +11882,17 @@ async def replace_certificate_signing_request_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CertificateSigningRequest: - """replace_certificate_signing_request_status + ) -> V1PodCertificateRequest: + """replace_namespaced_pod_certificate_request_status - replace status of the specified CertificateSigningRequest + replace status of the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1CertificateSigningRequest + :type body: V1PodCertificateRequest :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -4814,8 +11923,9 @@ async def replace_certificate_signing_request_status( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_certificate_signing_request_status_serialize( + _param = await self._replace_namespaced_pod_certificate_request_status_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -4828,8 +11938,8 @@ async def replace_certificate_signing_request_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", '401': None, } response_data = await self.api_client.call_api( @@ -4844,10 +11954,11 @@ async def replace_certificate_signing_request_status( @validate_call(config={'defer_build': True}) - async def replace_certificate_signing_request_status_with_http_info( + async def replace_namespaced_pod_certificate_request_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: V1CertificateSigningRequest, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1PodCertificateRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -4864,15 +11975,17 @@ async def replace_certificate_signing_request_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1CertificateSigningRequest]: - """replace_certificate_signing_request_status + ) -> ApiResponse[V1PodCertificateRequest]: + """replace_namespaced_pod_certificate_request_status - replace status of the specified CertificateSigningRequest + replace status of the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1CertificateSigningRequest + :type body: V1PodCertificateRequest :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -4903,8 +12016,9 @@ async def replace_certificate_signing_request_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_certificate_signing_request_status_serialize( + _param = await self._replace_namespaced_pod_certificate_request_status_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -4917,8 +12031,8 @@ async def replace_certificate_signing_request_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", '401': None, } response_data = await self.api_client.call_api( @@ -4933,10 +12047,11 @@ async def replace_certificate_signing_request_status_with_http_info( @validate_call(config={'defer_build': True}) - async def replace_certificate_signing_request_status_without_preload_content( + async def replace_namespaced_pod_certificate_request_status_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: V1CertificateSigningRequest, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1PodCertificateRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -4954,14 +12069,16 @@ async def replace_certificate_signing_request_status_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """replace_certificate_signing_request_status + """replace_namespaced_pod_certificate_request_status - replace status of the specified CertificateSigningRequest + replace status of the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1CertificateSigningRequest + :type body: V1PodCertificateRequest :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -4992,8 +12109,9 @@ async def replace_certificate_signing_request_status_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_certificate_signing_request_status_serialize( + _param = await self._replace_namespaced_pod_certificate_request_status_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -5006,8 +12124,8 @@ async def replace_certificate_signing_request_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", '401': None, } response_data = await self.api_client.call_api( @@ -5018,9 +12136,10 @@ async def replace_certificate_signing_request_status_without_preload_content( return response_data.response - async def _replace_certificate_signing_request_status_serialize( + async def _replace_namespaced_pod_certificate_request_status_serialize( self, name, + namespace, body, pretty, dry_run, @@ -5049,6 +12168,8 @@ async def _replace_certificate_signing_request_status_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -5092,7 +12213,7 @@ async def _replace_certificate_signing_request_status_serialize( return await self.api_client.param_serialize( method='PUT', - resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/kubernetes/aio/client/api/certificates_v1beta1_api.py b/kubernetes/aio/client/api/certificates_v1beta1_api.py index 75aee8b0c7..19c3ea6926 100644 --- a/kubernetes/aio/client/api/certificates_v1beta1_api.py +++ b/kubernetes/aio/client/api/certificates_v1beta1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/coordination_api.py b/kubernetes/aio/client/api/coordination_api.py index 9697862679..a21d5de8ce 100644 --- a/kubernetes/aio/client/api/coordination_api.py +++ b/kubernetes/aio/client/api/coordination_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/coordination_v1_api.py b/kubernetes/aio/client/api/coordination_v1_api.py index a0a1c6ed18..ebd0d5815e 100644 --- a/kubernetes/aio/client/api/coordination_v1_api.py +++ b/kubernetes/aio/client/api/coordination_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/coordination_v1alpha2_api.py b/kubernetes/aio/client/api/coordination_v1alpha2_api.py index e2ed2fe896..e857f76c4d 100644 --- a/kubernetes/aio/client/api/coordination_v1alpha2_api.py +++ b/kubernetes/aio/client/api/coordination_v1alpha2_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/coordination_v1beta1_api.py b/kubernetes/aio/client/api/coordination_v1beta1_api.py index 431561b48a..6401a62ccd 100644 --- a/kubernetes/aio/client/api/coordination_v1beta1_api.py +++ b/kubernetes/aio/client/api/coordination_v1beta1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/core_api.py b/kubernetes/aio/client/api/core_api.py index 79477ecb91..93d0333efa 100644 --- a/kubernetes/aio/client/api/core_api.py +++ b/kubernetes/aio/client/api/core_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_versions_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/core_v1_api.py b/kubernetes/aio/client/api/core_v1_api.py index 4c044c496c..467f91f4cc 100644 --- a/kubernetes/aio/client/api/core_v1_api.py +++ b/kubernetes/aio/client/api/core_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/custom_objects_api.py b/kubernetes/aio/client/api/custom_objects_api.py index aa9ffb7247..42cfb00b57 100644 --- a/kubernetes/aio/client/api/custom_objects_api.py +++ b/kubernetes/aio/client/api/custom_objects_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/discovery_api.py b/kubernetes/aio/client/api/discovery_api.py index b108a86572..b80c434d04 100644 --- a/kubernetes/aio/client/api/discovery_api.py +++ b/kubernetes/aio/client/api/discovery_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/discovery_v1_api.py b/kubernetes/aio/client/api/discovery_v1_api.py index f8d025f5bc..0c8eb9ef9a 100644 --- a/kubernetes/aio/client/api/discovery_v1_api.py +++ b/kubernetes/aio/client/api/discovery_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/events_api.py b/kubernetes/aio/client/api/events_api.py index 15ae2d41fa..12b7828c1d 100644 --- a/kubernetes/aio/client/api/events_api.py +++ b/kubernetes/aio/client/api/events_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/events_v1_api.py b/kubernetes/aio/client/api/events_v1_api.py index bf1c3eeee0..b43edd3bc0 100644 --- a/kubernetes/aio/client/api/events_v1_api.py +++ b/kubernetes/aio/client/api/events_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/flowcontrol_apiserver_api.py b/kubernetes/aio/client/api/flowcontrol_apiserver_api.py index fbba00d431..bcf921bcb8 100644 --- a/kubernetes/aio/client/api/flowcontrol_apiserver_api.py +++ b/kubernetes/aio/client/api/flowcontrol_apiserver_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/flowcontrol_apiserver_v1_api.py b/kubernetes/aio/client/api/flowcontrol_apiserver_v1_api.py index 5219d442ff..696886ea65 100644 --- a/kubernetes/aio/client/api/flowcontrol_apiserver_v1_api.py +++ b/kubernetes/aio/client/api/flowcontrol_apiserver_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/internal_apiserver_api.py b/kubernetes/aio/client/api/internal_apiserver_api.py index 9108096b1f..6fb26eec7a 100644 --- a/kubernetes/aio/client/api/internal_apiserver_api.py +++ b/kubernetes/aio/client/api/internal_apiserver_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/internal_apiserver_v1alpha1_api.py b/kubernetes/aio/client/api/internal_apiserver_v1alpha1_api.py index 064a1f3f6f..b4d961acc7 100644 --- a/kubernetes/aio/client/api/internal_apiserver_v1alpha1_api.py +++ b/kubernetes/aio/client/api/internal_apiserver_v1alpha1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/lifecycle_api.py b/kubernetes/aio/client/api/lifecycle_api.py new file mode 100644 index 0000000000..c1857cb967 --- /dev/null +++ b/kubernetes/aio/client/api/lifecycle_api.py @@ -0,0 +1,305 @@ +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from kubernetes.aio.client.models.v1_api_group import V1APIGroup + +from kubernetes.aio.client.api_client import ApiClient, RequestSerialized +from kubernetes.aio.client.api_response import ApiResponse +from kubernetes.aio.client.rest import RESTResponseType + + +class LifecycleApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + # api_client remains publicly assignable. Retain the client acquired at + # construction so reassignment cannot transfer or discard ownership. + if api_client is None: + api_client, owns_api_client = ApiClient._get_default_or_new() + else: + owns_api_client = False + self.api_client = api_client + self._owned_api_client: Optional[ApiClient] = ( + api_client if owns_api_client else None + ) + + async def close(self) -> None: + owned_api_client = self._owned_api_client + self._owned_api_client = None + if owned_api_client is not None: + await owned_api_client.close() + + async def __aenter__(self): + return self + + async def __aexit__(self, exc_type, exc_value, traceback): + await self.close() + + + @validate_call(config={'defer_build': True}) + async def get_api_group( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1APIGroup: + """get_api_group + + get information of a group + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._get_api_group_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1APIGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def get_api_group_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1APIGroup]: + """get_api_group + + get information of a group + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._get_api_group_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1APIGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def get_api_group_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_api_group + + get information of a group + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._get_api_group_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1APIGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _get_api_group_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/lifecycle.k8s.io/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) diff --git a/kubernetes/aio/client/api/lifecycle_v1alpha1_api.py b/kubernetes/aio/client/api/lifecycle_v1alpha1_api.py new file mode 100644 index 0000000000..957887af26 --- /dev/null +++ b/kubernetes/aio/client/api/lifecycle_v1alpha1_api.py @@ -0,0 +1,9068 @@ +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import warnings +from pydantic import BaseModel, validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictBool, StrictInt, StrictStr +from typing import Any, Dict, Optional +from typing_extensions import Annotated +from kubernetes.aio.client.models.v1_api_resource_list import V1APIResourceList +from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.aio.client.models.v1_status import V1Status +from kubernetes.aio.client.models.v1alpha1_eviction import V1alpha1Eviction +from kubernetes.aio.client.models.v1alpha1_eviction_list import V1alpha1EvictionList +from kubernetes.aio.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest +from kubernetes.aio.client.models.v1alpha1_eviction_request_list import V1alpha1EvictionRequestList + +from kubernetes.aio.client.api_client import ApiClient, RequestSerialized +from kubernetes.aio.client.api_response import ApiResponse +from kubernetes.aio.client.rest import RESTResponseType + + +class LifecycleV1alpha1Api: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + # api_client remains publicly assignable. Retain the client acquired at + # construction so reassignment cannot transfer or discard ownership. + if api_client is None: + api_client, owns_api_client = ApiClient._get_default_or_new() + else: + owns_api_client = False + self.api_client = api_client + self._owned_api_client: Optional[ApiClient] = ( + api_client if owns_api_client else None + ) + + async def close(self) -> None: + owned_api_client = self._owned_api_client + self._owned_api_client = None + if owned_api_client is not None: + await owned_api_client.close() + + async def __aenter__(self): + return self + + async def __aexit__(self, exc_type, exc_value, traceback): + await self.close() + + + @validate_call(config={'defer_build': True}) + async def create_namespaced_eviction( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1Eviction, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1Eviction: + """create_namespaced_eviction + + create an Eviction + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1Eviction + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._create_namespaced_eviction_serialize( + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '202': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def create_namespaced_eviction_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1Eviction, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha1Eviction]: + """create_namespaced_eviction + + create an Eviction + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1Eviction + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._create_namespaced_eviction_serialize( + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '202': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def create_namespaced_eviction_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1Eviction, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """create_namespaced_eviction + + create an Eviction + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1Eviction + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._create_namespaced_eviction_serialize( + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '202': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _create_namespaced_eviction_serialize( + self, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='POST', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def create_namespaced_eviction_request( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1EvictionRequest, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1EvictionRequest: + """create_namespaced_eviction_request + + create an EvictionRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1EvictionRequest + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._create_namespaced_eviction_request_serialize( + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '202': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def create_namespaced_eviction_request_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1EvictionRequest, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha1EvictionRequest]: + """create_namespaced_eviction_request + + create an EvictionRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1EvictionRequest + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._create_namespaced_eviction_request_serialize( + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '202': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def create_namespaced_eviction_request_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1EvictionRequest, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """create_namespaced_eviction_request + + create an EvictionRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1EvictionRequest + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._create_namespaced_eviction_request_serialize( + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '202': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _create_namespaced_eviction_request_serialize( + self, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='POST', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def delete_collection_namespaced_eviction( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1Status: + """delete_collection_namespaced_eviction + + delete collection of Eviction + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_namespaced_eviction_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def delete_collection_namespaced_eviction_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1Status]: + """delete_collection_namespaced_eviction + + delete collection of Eviction + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_namespaced_eviction_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def delete_collection_namespaced_eviction_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_collection_namespaced_eviction + + delete collection of Eviction + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_namespaced_eviction_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _delete_collection_namespaced_eviction_serialize( + self, + namespace, + pretty, + _continue, + dry_run, + field_selector, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, + orphan_dependents, + propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def delete_collection_namespaced_eviction_request( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1Status: + """delete_collection_namespaced_eviction_request + + delete collection of EvictionRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_namespaced_eviction_request_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def delete_collection_namespaced_eviction_request_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1Status]: + """delete_collection_namespaced_eviction_request + + delete collection of EvictionRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_namespaced_eviction_request_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def delete_collection_namespaced_eviction_request_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_collection_namespaced_eviction_request + + delete collection of EvictionRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_namespaced_eviction_request_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _delete_collection_namespaced_eviction_request_serialize( + self, + namespace, + pretty, + _continue, + dry_run, + field_selector, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, + orphan_dependents, + propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def delete_namespaced_eviction( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """delete_namespaced_eviction + + delete an Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_namespaced_eviction_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def delete_namespaced_eviction_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """delete_namespaced_eviction + + delete an Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_namespaced_eviction_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def delete_namespaced_eviction_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_namespaced_eviction + + delete an Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_namespaced_eviction_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _delete_namespaced_eviction_serialize( + self, + name, + namespace, + pretty, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def delete_namespaced_eviction_request( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """delete_namespaced_eviction_request + + delete an EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_namespaced_eviction_request_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def delete_namespaced_eviction_request_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """delete_namespaced_eviction_request + + delete an EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_namespaced_eviction_request_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def delete_namespaced_eviction_request_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_namespaced_eviction_request + + delete an EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_namespaced_eviction_request_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _delete_namespaced_eviction_request_serialize( + self, + name, + namespace, + pretty, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def get_api_resources( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1APIResourceList: + """get_api_resources + + get available resources + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._get_api_resources_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1APIResourceList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def get_api_resources_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1APIResourceList]: + """get_api_resources + + get available resources + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._get_api_resources_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1APIResourceList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def get_api_resources_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_api_resources + + get available resources + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._get_api_resources_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1APIResourceList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _get_api_resources_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_eviction_for_all_namespaces( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1EvictionList: + """list_eviction_for_all_namespaces + + list or watch objects of kind Eviction + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_eviction_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_eviction_for_all_namespaces_with_http_info( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha1EvictionList]: + """list_eviction_for_all_namespaces + + list or watch objects of kind Eviction + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_eviction_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_eviction_for_all_namespaces_without_preload_content( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_eviction_for_all_namespaces + + list or watch objects of kind Eviction + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_eviction_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_eviction_for_all_namespaces_serialize( + self, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + pretty, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/evictions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_eviction_request_for_all_namespaces( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1EvictionRequestList: + """list_eviction_request_for_all_namespaces + + list or watch objects of kind EvictionRequest + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_eviction_request_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequestList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_eviction_request_for_all_namespaces_with_http_info( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha1EvictionRequestList]: + """list_eviction_request_for_all_namespaces + + list or watch objects of kind EvictionRequest + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_eviction_request_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequestList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_eviction_request_for_all_namespaces_without_preload_content( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_eviction_request_for_all_namespaces + + list or watch objects of kind EvictionRequest + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_eviction_request_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequestList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_eviction_request_for_all_namespaces_serialize( + self, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + pretty, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/evictionrequests', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_eviction( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1EvictionList: + """list_namespaced_eviction + + list or watch objects of kind Eviction + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_eviction_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_eviction_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha1EvictionList]: + """list_namespaced_eviction + + list or watch objects of kind Eviction + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_eviction_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_eviction_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_namespaced_eviction + + list or watch objects of kind Eviction + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_eviction_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_namespaced_eviction_serialize( + self, + namespace, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_eviction_request( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1EvictionRequestList: + """list_namespaced_eviction_request + + list or watch objects of kind EvictionRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_eviction_request_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequestList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_eviction_request_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha1EvictionRequestList]: + """list_namespaced_eviction_request + + list or watch objects of kind EvictionRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_eviction_request_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequestList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_eviction_request_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_namespaced_eviction_request + + list or watch objects of kind EvictionRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_eviction_request_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequestList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_namespaced_eviction_request_serialize( + self, + namespace, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_eviction( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1Eviction: + """patch_namespaced_eviction + + partially update the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_eviction_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_eviction_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha1Eviction]: + """patch_namespaced_eviction + + partially update the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_eviction_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_eviction_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_namespaced_eviction + + partially update the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_eviction_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_namespaced_eviction_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_eviction_request( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1EvictionRequest: + """patch_namespaced_eviction_request + + partially update the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_eviction_request_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_eviction_request_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha1EvictionRequest]: + """patch_namespaced_eviction_request + + partially update the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_eviction_request_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_eviction_request_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_namespaced_eviction_request + + partially update the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_eviction_request_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_namespaced_eviction_request_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_eviction_request_status( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1EvictionRequest: + """patch_namespaced_eviction_request_status + + partially update status of the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_eviction_request_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_eviction_request_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha1EvictionRequest]: + """patch_namespaced_eviction_request_status + + partially update status of the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_eviction_request_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_eviction_request_status_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_namespaced_eviction_request_status + + partially update status of the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_eviction_request_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_namespaced_eviction_request_status_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_eviction_status( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1Eviction: + """patch_namespaced_eviction_status + + partially update status of the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_eviction_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_eviction_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha1Eviction]: + """patch_namespaced_eviction_status + + partially update status of the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_eviction_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_eviction_status_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_namespaced_eviction_status + + partially update status of the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_eviction_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_namespaced_eviction_status_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_eviction( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1Eviction: + """read_namespaced_eviction + + read the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_eviction_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_eviction_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha1Eviction]: + """read_namespaced_eviction + + read the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_eviction_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_eviction_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """read_namespaced_eviction + + read the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_eviction_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _read_namespaced_eviction_serialize( + self, + name, + namespace, + pretty, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_eviction_request( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1EvictionRequest: + """read_namespaced_eviction_request + + read the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_eviction_request_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_eviction_request_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha1EvictionRequest]: + """read_namespaced_eviction_request + + read the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_eviction_request_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_eviction_request_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """read_namespaced_eviction_request + + read the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_eviction_request_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _read_namespaced_eviction_request_serialize( + self, + name, + namespace, + pretty, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_eviction_request_status( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1EvictionRequest: + """read_namespaced_eviction_request_status + + read status of the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_eviction_request_status_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_eviction_request_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha1EvictionRequest]: + """read_namespaced_eviction_request_status + + read status of the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_eviction_request_status_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_eviction_request_status_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """read_namespaced_eviction_request_status + + read status of the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_eviction_request_status_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _read_namespaced_eviction_request_status_serialize( + self, + name, + namespace, + pretty, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_eviction_status( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1Eviction: + """read_namespaced_eviction_status + + read status of the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_eviction_status_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_eviction_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha1Eviction]: + """read_namespaced_eviction_status + + read status of the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_eviction_status_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_eviction_status_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """read_namespaced_eviction_status + + read status of the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_eviction_status_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _read_namespaced_eviction_status_serialize( + self, + name, + namespace, + pretty, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_eviction( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1Eviction, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1Eviction: + """replace_namespaced_eviction + + replace the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1Eviction + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_eviction_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_eviction_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1Eviction, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha1Eviction]: + """replace_namespaced_eviction + + replace the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1Eviction + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_eviction_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_eviction_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1Eviction, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """replace_namespaced_eviction + + replace the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1Eviction + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_eviction_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _replace_namespaced_eviction_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PUT', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_eviction_request( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1EvictionRequest, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1EvictionRequest: + """replace_namespaced_eviction_request + + replace the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1EvictionRequest + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_eviction_request_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_eviction_request_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1EvictionRequest, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha1EvictionRequest]: + """replace_namespaced_eviction_request + + replace the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1EvictionRequest + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_eviction_request_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_eviction_request_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1EvictionRequest, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """replace_namespaced_eviction_request + + replace the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1EvictionRequest + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_eviction_request_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _replace_namespaced_eviction_request_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PUT', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_eviction_request_status( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1EvictionRequest, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1EvictionRequest: + """replace_namespaced_eviction_request_status + + replace status of the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1EvictionRequest + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_eviction_request_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_eviction_request_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1EvictionRequest, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha1EvictionRequest]: + """replace_namespaced_eviction_request_status + + replace status of the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1EvictionRequest + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_eviction_request_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_eviction_request_status_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1EvictionRequest, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """replace_namespaced_eviction_request_status + + replace status of the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1EvictionRequest + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_eviction_request_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _replace_namespaced_eviction_request_status_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PUT', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_eviction_status( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1Eviction, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1Eviction: + """replace_namespaced_eviction_status + + replace status of the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1Eviction + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_eviction_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_eviction_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1Eviction, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha1Eviction]: + """replace_namespaced_eviction_status + + replace status of the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1Eviction + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_eviction_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_eviction_status_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1Eviction, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """replace_namespaced_eviction_status + + replace status of the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1Eviction + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_eviction_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _replace_namespaced_eviction_status_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PUT', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) diff --git a/kubernetes/aio/client/api/logs_api.py b/kubernetes/aio/client/api/logs_api.py index 16971f56cc..70459edf07 100644 --- a/kubernetes/aio/client/api/logs_api.py +++ b/kubernetes/aio/client/api/logs_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/networking_api.py b/kubernetes/aio/client/api/networking_api.py index 6dcde619ad..35930bc693 100644 --- a/kubernetes/aio/client/api/networking_api.py +++ b/kubernetes/aio/client/api/networking_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/networking_v1_api.py b/kubernetes/aio/client/api/networking_v1_api.py index 38d57269f1..230980ef31 100644 --- a/kubernetes/aio/client/api/networking_v1_api.py +++ b/kubernetes/aio/client/api/networking_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/node_api.py b/kubernetes/aio/client/api/node_api.py index d312a553fe..1bdb3d2299 100644 --- a/kubernetes/aio/client/api/node_api.py +++ b/kubernetes/aio/client/api/node_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/node_v1_api.py b/kubernetes/aio/client/api/node_v1_api.py index 54e875fcaf..61c429c059 100644 --- a/kubernetes/aio/client/api/node_v1_api.py +++ b/kubernetes/aio/client/api/node_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/openid_api.py b/kubernetes/aio/client/api/openid_api.py index 7000520f78..df96bff641 100644 --- a/kubernetes/aio/client/api/openid_api.py +++ b/kubernetes/aio/client/api/openid_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/policy_api.py b/kubernetes/aio/client/api/policy_api.py index 9d6528437c..96fe08008b 100644 --- a/kubernetes/aio/client/api/policy_api.py +++ b/kubernetes/aio/client/api/policy_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/policy_v1_api.py b/kubernetes/aio/client/api/policy_v1_api.py index b734ed7b39..166fe05e63 100644 --- a/kubernetes/aio/client/api/policy_v1_api.py +++ b/kubernetes/aio/client/api/policy_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/rbac_authorization_api.py b/kubernetes/aio/client/api/rbac_authorization_api.py index 09aae2c1e4..80540d5462 100644 --- a/kubernetes/aio/client/api/rbac_authorization_api.py +++ b/kubernetes/aio/client/api/rbac_authorization_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/rbac_authorization_v1_api.py b/kubernetes/aio/client/api/rbac_authorization_v1_api.py index 8d80a4e7e0..27554d441c 100644 --- a/kubernetes/aio/client/api/rbac_authorization_v1_api.py +++ b/kubernetes/aio/client/api/rbac_authorization_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/resource_api.py b/kubernetes/aio/client/api/resource_api.py index a70e7129c0..2bb1121adf 100644 --- a/kubernetes/aio/client/api/resource_api.py +++ b/kubernetes/aio/client/api/resource_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/resource_v1_api.py b/kubernetes/aio/client/api/resource_v1_api.py index f8e1c18200..2972c0070a 100644 --- a/kubernetes/aio/client/api/resource_v1_api.py +++ b/kubernetes/aio/client/api/resource_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -23,6 +23,8 @@ from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions from kubernetes.aio.client.models.v1_device_class import V1DeviceClass from kubernetes.aio.client.models.v1_device_class_list import V1DeviceClassList +from kubernetes.aio.client.models.v1_device_taint_rule import V1DeviceTaintRule +from kubernetes.aio.client.models.v1_device_taint_rule_list import V1DeviceTaintRuleList from kubernetes.aio.client.models.v1_resource_claim_list import V1ResourceClaimList from kubernetes.aio.client.models.v1_resource_claim_template import V1ResourceClaimTemplate from kubernetes.aio.client.models.v1_resource_claim_template_list import V1ResourceClaimTemplateList @@ -410,10 +412,9 @@ async def _create_device_class_serialize( @validate_call(config={'defer_build': True}) - async def create_namespaced_resource_claim( + async def create_device_taint_rule( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: ResourceV1ResourceClaim, + body: V1DeviceTaintRule, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -430,15 +431,13 @@ async def create_namespaced_resource_claim( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ResourceV1ResourceClaim: - """create_namespaced_resource_claim + ) -> V1DeviceTaintRule: + """create_device_taint_rule - create a ResourceClaim + create a DeviceTaintRule - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :param body: (required) - :type body: ResourceV1ResourceClaim + :type body: V1DeviceTaintRule :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -469,8 +468,7 @@ async def create_namespaced_resource_claim( :return: Returns the result object. """ # noqa: E501 - _param = await self._create_namespaced_resource_claim_serialize( - namespace=namespace, + _param = await self._create_device_taint_rule_serialize( body=body, pretty=pretty, dry_run=dry_run, @@ -483,9 +481,9 @@ async def create_namespaced_resource_claim( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '201': "ResourceV1ResourceClaim", - '202': "ResourceV1ResourceClaim", + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", + '202': "V1DeviceTaintRule", '401': None, } response_data = await self.api_client.call_api( @@ -500,10 +498,9 @@ async def create_namespaced_resource_claim( @validate_call(config={'defer_build': True}) - async def create_namespaced_resource_claim_with_http_info( + async def create_device_taint_rule_with_http_info( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: ResourceV1ResourceClaim, + body: V1DeviceTaintRule, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -520,15 +517,13 @@ async def create_namespaced_resource_claim_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ResourceV1ResourceClaim]: - """create_namespaced_resource_claim + ) -> ApiResponse[V1DeviceTaintRule]: + """create_device_taint_rule - create a ResourceClaim + create a DeviceTaintRule - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :param body: (required) - :type body: ResourceV1ResourceClaim + :type body: V1DeviceTaintRule :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -559,8 +554,7 @@ async def create_namespaced_resource_claim_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._create_namespaced_resource_claim_serialize( - namespace=namespace, + _param = await self._create_device_taint_rule_serialize( body=body, pretty=pretty, dry_run=dry_run, @@ -573,9 +567,9 @@ async def create_namespaced_resource_claim_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '201': "ResourceV1ResourceClaim", - '202': "ResourceV1ResourceClaim", + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", + '202': "V1DeviceTaintRule", '401': None, } response_data = await self.api_client.call_api( @@ -590,10 +584,9 @@ async def create_namespaced_resource_claim_with_http_info( @validate_call(config={'defer_build': True}) - async def create_namespaced_resource_claim_without_preload_content( + async def create_device_taint_rule_without_preload_content( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: ResourceV1ResourceClaim, + body: V1DeviceTaintRule, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -611,14 +604,12 @@ async def create_namespaced_resource_claim_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """create_namespaced_resource_claim + """create_device_taint_rule - create a ResourceClaim + create a DeviceTaintRule - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :param body: (required) - :type body: ResourceV1ResourceClaim + :type body: V1DeviceTaintRule :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -649,8 +640,7 @@ async def create_namespaced_resource_claim_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._create_namespaced_resource_claim_serialize( - namespace=namespace, + _param = await self._create_device_taint_rule_serialize( body=body, pretty=pretty, dry_run=dry_run, @@ -663,9 +653,9 @@ async def create_namespaced_resource_claim_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '201': "ResourceV1ResourceClaim", - '202': "ResourceV1ResourceClaim", + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", + '202': "V1DeviceTaintRule", '401': None, } response_data = await self.api_client.call_api( @@ -676,9 +666,8 @@ async def create_namespaced_resource_claim_without_preload_content( return response_data.response - async def _create_namespaced_resource_claim_serialize( + async def _create_device_taint_rule_serialize( self, - namespace, body, pretty, dry_run, @@ -705,8 +694,6 @@ async def _create_namespaced_resource_claim_serialize( _body_params: Optional[bytes] = None # process the path parameters - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -750,7 +737,7 @@ async def _create_namespaced_resource_claim_serialize( return await self.api_client.param_serialize( method='POST', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -767,10 +754,10 @@ async def _create_namespaced_resource_claim_serialize( @validate_call(config={'defer_build': True}) - async def create_namespaced_resource_claim_template( + async def create_namespaced_resource_claim( self, namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1ResourceClaimTemplate, + body: ResourceV1ResourceClaim, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -787,15 +774,15 @@ async def create_namespaced_resource_claim_template( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceClaimTemplate: - """create_namespaced_resource_claim_template + ) -> ResourceV1ResourceClaim: + """create_namespaced_resource_claim - create a ResourceClaimTemplate + create a ResourceClaim :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1ResourceClaimTemplate + :type body: ResourceV1ResourceClaim :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -826,7 +813,7 @@ async def create_namespaced_resource_claim_template( :return: Returns the result object. """ # noqa: E501 - _param = await self._create_namespaced_resource_claim_template_serialize( + _param = await self._create_namespaced_resource_claim_serialize( namespace=namespace, body=body, pretty=pretty, @@ -840,9 +827,9 @@ async def create_namespaced_resource_claim_template( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", - '201': "V1ResourceClaimTemplate", - '202': "V1ResourceClaimTemplate", + '200': "ResourceV1ResourceClaim", + '201': "ResourceV1ResourceClaim", + '202': "ResourceV1ResourceClaim", '401': None, } response_data = await self.api_client.call_api( @@ -857,10 +844,10 @@ async def create_namespaced_resource_claim_template( @validate_call(config={'defer_build': True}) - async def create_namespaced_resource_claim_template_with_http_info( + async def create_namespaced_resource_claim_with_http_info( self, namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1ResourceClaimTemplate, + body: ResourceV1ResourceClaim, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -877,15 +864,15 @@ async def create_namespaced_resource_claim_template_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ResourceClaimTemplate]: - """create_namespaced_resource_claim_template + ) -> ApiResponse[ResourceV1ResourceClaim]: + """create_namespaced_resource_claim - create a ResourceClaimTemplate + create a ResourceClaim :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1ResourceClaimTemplate + :type body: ResourceV1ResourceClaim :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -916,7 +903,7 @@ async def create_namespaced_resource_claim_template_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._create_namespaced_resource_claim_template_serialize( + _param = await self._create_namespaced_resource_claim_serialize( namespace=namespace, body=body, pretty=pretty, @@ -930,9 +917,9 @@ async def create_namespaced_resource_claim_template_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", - '201': "V1ResourceClaimTemplate", - '202': "V1ResourceClaimTemplate", + '200': "ResourceV1ResourceClaim", + '201': "ResourceV1ResourceClaim", + '202': "ResourceV1ResourceClaim", '401': None, } response_data = await self.api_client.call_api( @@ -947,10 +934,10 @@ async def create_namespaced_resource_claim_template_with_http_info( @validate_call(config={'defer_build': True}) - async def create_namespaced_resource_claim_template_without_preload_content( + async def create_namespaced_resource_claim_without_preload_content( self, namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1ResourceClaimTemplate, + body: ResourceV1ResourceClaim, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -968,14 +955,14 @@ async def create_namespaced_resource_claim_template_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """create_namespaced_resource_claim_template + """create_namespaced_resource_claim - create a ResourceClaimTemplate + create a ResourceClaim :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1ResourceClaimTemplate + :type body: ResourceV1ResourceClaim :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -1006,7 +993,7 @@ async def create_namespaced_resource_claim_template_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._create_namespaced_resource_claim_template_serialize( + _param = await self._create_namespaced_resource_claim_serialize( namespace=namespace, body=body, pretty=pretty, @@ -1020,9 +1007,9 @@ async def create_namespaced_resource_claim_template_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", - '201': "V1ResourceClaimTemplate", - '202': "V1ResourceClaimTemplate", + '200': "ResourceV1ResourceClaim", + '201': "ResourceV1ResourceClaim", + '202': "ResourceV1ResourceClaim", '401': None, } response_data = await self.api_client.call_api( @@ -1033,7 +1020,7 @@ async def create_namespaced_resource_claim_template_without_preload_content( return response_data.response - async def _create_namespaced_resource_claim_template_serialize( + async def _create_namespaced_resource_claim_serialize( self, namespace, body, @@ -1107,7 +1094,7 @@ async def _create_namespaced_resource_claim_template_serialize( return await self.api_client.param_serialize( method='POST', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1124,9 +1111,10 @@ async def _create_namespaced_resource_claim_template_serialize( @validate_call(config={'defer_build': True}) - async def create_resource_slice( + async def create_namespaced_resource_claim_template( self, - body: V1ResourceSlice, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1ResourceClaimTemplate, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -1143,13 +1131,15 @@ async def create_resource_slice( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceSlice: - """create_resource_slice + ) -> V1ResourceClaimTemplate: + """create_namespaced_resource_claim_template - create a ResourceSlice + create a ResourceClaimTemplate + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1ResourceSlice + :type body: V1ResourceClaimTemplate :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -1180,7 +1170,8 @@ async def create_resource_slice( :return: Returns the result object. """ # noqa: E501 - _param = await self._create_resource_slice_serialize( + _param = await self._create_namespaced_resource_claim_template_serialize( + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -1193,9 +1184,9 @@ async def create_resource_slice( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", - '201': "V1ResourceSlice", - '202': "V1ResourceSlice", + '200': "V1ResourceClaimTemplate", + '201': "V1ResourceClaimTemplate", + '202': "V1ResourceClaimTemplate", '401': None, } response_data = await self.api_client.call_api( @@ -1210,9 +1201,10 @@ async def create_resource_slice( @validate_call(config={'defer_build': True}) - async def create_resource_slice_with_http_info( + async def create_namespaced_resource_claim_template_with_http_info( self, - body: V1ResourceSlice, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1ResourceClaimTemplate, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -1229,13 +1221,15 @@ async def create_resource_slice_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ResourceSlice]: - """create_resource_slice + ) -> ApiResponse[V1ResourceClaimTemplate]: + """create_namespaced_resource_claim_template - create a ResourceSlice + create a ResourceClaimTemplate + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1ResourceSlice + :type body: V1ResourceClaimTemplate :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -1266,7 +1260,8 @@ async def create_resource_slice_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._create_resource_slice_serialize( + _param = await self._create_namespaced_resource_claim_template_serialize( + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -1279,9 +1274,9 @@ async def create_resource_slice_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", - '201': "V1ResourceSlice", - '202': "V1ResourceSlice", + '200': "V1ResourceClaimTemplate", + '201': "V1ResourceClaimTemplate", + '202': "V1ResourceClaimTemplate", '401': None, } response_data = await self.api_client.call_api( @@ -1296,9 +1291,10 @@ async def create_resource_slice_with_http_info( @validate_call(config={'defer_build': True}) - async def create_resource_slice_without_preload_content( + async def create_namespaced_resource_claim_template_without_preload_content( self, - body: V1ResourceSlice, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1ResourceClaimTemplate, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -1316,12 +1312,14 @@ async def create_resource_slice_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """create_resource_slice + """create_namespaced_resource_claim_template - create a ResourceSlice + create a ResourceClaimTemplate + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1ResourceSlice + :type body: V1ResourceClaimTemplate :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -1352,7 +1350,8 @@ async def create_resource_slice_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._create_resource_slice_serialize( + _param = await self._create_namespaced_resource_claim_template_serialize( + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -1365,9 +1364,9 @@ async def create_resource_slice_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", - '201': "V1ResourceSlice", - '202': "V1ResourceSlice", + '200': "V1ResourceClaimTemplate", + '201': "V1ResourceClaimTemplate", + '202': "V1ResourceClaimTemplate", '401': None, } response_data = await self.api_client.call_api( @@ -1378,8 +1377,9 @@ async def create_resource_slice_without_preload_content( return response_data.response - async def _create_resource_slice_serialize( + async def _create_namespaced_resource_claim_template_serialize( self, + namespace, body, pretty, dry_run, @@ -1406,6 +1406,8 @@ async def _create_resource_slice_serialize( _body_params: Optional[bytes] = None # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -1449,7 +1451,7 @@ async def _create_resource_slice_serialize( return await self.api_client.param_serialize( method='POST', - resource_path='/apis/resource.k8s.io/v1/resourceslices', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1466,24 +1468,13 @@ async def _create_resource_slice_serialize( @validate_call(config={'defer_build': True}) - async def delete_collection_device_class( + async def create_resource_slice( self, + body: V1ResourceSlice, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1496,43 +1487,21 @@ async def delete_collection_device_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1Status: - """delete_collection_device_class + ) -> V1ResourceSlice: + """create_resource_slice - delete collection of DeviceClass + create a ResourceSlice + :param body: (required) + :type body: V1ResourceSlice :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). :type pretty: str - :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. - :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1555,23 +1524,12 @@ async def delete_collection_device_class( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_device_class_serialize( + _param = await self._create_resource_slice_serialize( + body=body, pretty=pretty, - _continue=_continue, dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1579,7 +1537,9 @@ async def delete_collection_device_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", + '200': "V1ResourceSlice", + '201': "V1ResourceSlice", + '202': "V1ResourceSlice", '401': None, } response_data = await self.api_client.call_api( @@ -1594,24 +1554,13 @@ async def delete_collection_device_class( @validate_call(config={'defer_build': True}) - async def delete_collection_device_class_with_http_info( + async def create_resource_slice_with_http_info( self, + body: V1ResourceSlice, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1624,43 +1573,21 @@ async def delete_collection_device_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1Status]: - """delete_collection_device_class + ) -> ApiResponse[V1ResourceSlice]: + """create_resource_slice - delete collection of DeviceClass + create a ResourceSlice + :param body: (required) + :type body: V1ResourceSlice :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). :type pretty: str - :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. - :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1683,23 +1610,12 @@ async def delete_collection_device_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_device_class_serialize( + _param = await self._create_resource_slice_serialize( + body=body, pretty=pretty, - _continue=_continue, dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1707,7 +1623,9 @@ async def delete_collection_device_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", + '200': "V1ResourceSlice", + '201': "V1ResourceSlice", + '202': "V1ResourceSlice", '401': None, } response_data = await self.api_client.call_api( @@ -1722,24 +1640,13 @@ async def delete_collection_device_class_with_http_info( @validate_call(config={'defer_build': True}) - async def delete_collection_device_class_without_preload_content( + async def create_resource_slice_without_preload_content( self, + body: V1ResourceSlice, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1753,42 +1660,20 @@ async def delete_collection_device_class_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_collection_device_class + """create_resource_slice - delete collection of DeviceClass + create a ResourceSlice + :param body: (required) + :type body: V1ResourceSlice :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). :type pretty: str - :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. - :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1811,23 +1696,12 @@ async def delete_collection_device_class_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_device_class_serialize( + _param = await self._create_resource_slice_serialize( + body=body, pretty=pretty, - _continue=_continue, dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1835,7 +1709,9 @@ async def delete_collection_device_class_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", + '200': "V1ResourceSlice", + '201': "V1ResourceSlice", + '202': "V1ResourceSlice", '401': None, } response_data = await self.api_client.call_api( @@ -1846,24 +1722,13 @@ async def delete_collection_device_class_without_preload_content( return response_data.response - async def _delete_collection_device_class_serialize( + async def _create_resource_slice_serialize( self, + body, pretty, - _continue, dry_run, - field_selector, - grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential, - label_selector, - limit, - orphan_dependents, - propagation_policy, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - body, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -1890,61 +1755,17 @@ async def _delete_collection_device_class_serialize( _query_params.append(('pretty', pretty)) - if _continue is not None: - - _query_params.append(('continue', _continue)) - if dry_run is not None: _query_params.append(('dryRun', dry_run)) - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if grace_period_seconds is not None: - - _query_params.append(('gracePeriodSeconds', grace_period_seconds)) - - if ignore_store_read_error_with_cluster_breaking_potential is not None: - - _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if orphan_dependents is not None: - - _query_params.append(('orphanDependents', orphan_dependents)) - - if propagation_policy is not None: - - _query_params.append(('propagationPolicy', propagation_policy)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: + if field_manager is not None: - _query_params.append(('shardSelector', shard_selector)) + _query_params.append(('fieldManager', field_manager)) - if timeout_seconds is not None: + if field_validation is not None: - _query_params.append(('timeoutSeconds', timeout_seconds)) + _query_params.append(('fieldValidation', field_validation)) # process the header parameters # process the form parameters @@ -1971,8 +1792,8 @@ async def _delete_collection_device_class_serialize( ] return await self.api_client.param_serialize( - method='DELETE', - resource_path='/apis/resource.k8s.io/v1/deviceclasses', + method='POST', + resource_path='/apis/resource.k8s.io/v1/resourceslices', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1989,9 +1810,8 @@ async def _delete_collection_device_class_serialize( @validate_call(config={'defer_build': True}) - async def delete_collection_namespaced_resource_claim( + async def delete_collection_device_class( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -2021,12 +1841,10 @@ async def delete_collection_namespaced_resource_claim( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1Status: - """delete_collection_namespaced_resource_claim + """delete_collection_device_class - delete collection of ResourceClaim + delete collection of DeviceClass - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :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. @@ -2081,8 +1899,7 @@ async def delete_collection_namespaced_resource_claim( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_namespaced_resource_claim_serialize( - namespace=namespace, + _param = await self._delete_collection_device_class_serialize( pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -2121,9 +1938,8 @@ async def delete_collection_namespaced_resource_claim( @validate_call(config={'defer_build': True}) - async def delete_collection_namespaced_resource_claim_with_http_info( + async def delete_collection_device_class_with_http_info( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -2153,12 +1969,10 @@ async def delete_collection_namespaced_resource_claim_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[V1Status]: - """delete_collection_namespaced_resource_claim + """delete_collection_device_class - delete collection of ResourceClaim + delete collection of DeviceClass - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :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. @@ -2213,8 +2027,7 @@ async def delete_collection_namespaced_resource_claim_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_namespaced_resource_claim_serialize( - namespace=namespace, + _param = await self._delete_collection_device_class_serialize( pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -2253,9 +2066,8 @@ async def delete_collection_namespaced_resource_claim_with_http_info( @validate_call(config={'defer_build': True}) - async def delete_collection_namespaced_resource_claim_without_preload_content( + async def delete_collection_device_class_without_preload_content( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -2285,12 +2097,10 @@ async def delete_collection_namespaced_resource_claim_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_collection_namespaced_resource_claim + """delete_collection_device_class - delete collection of ResourceClaim + delete collection of DeviceClass - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :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. @@ -2345,8 +2155,7 @@ async def delete_collection_namespaced_resource_claim_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_namespaced_resource_claim_serialize( - namespace=namespace, + _param = await self._delete_collection_device_class_serialize( pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -2381,9 +2190,8 @@ async def delete_collection_namespaced_resource_claim_without_preload_content( return response_data.response - async def _delete_collection_namespaced_resource_claim_serialize( + async def _delete_collection_device_class_serialize( self, - namespace, pretty, _continue, dry_run, @@ -2421,8 +2229,6 @@ async def _delete_collection_namespaced_resource_claim_serialize( _body_params: Optional[bytes] = None # process the path parameters - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -2510,7 +2316,7 @@ async def _delete_collection_namespaced_resource_claim_serialize( return await self.api_client.param_serialize( method='DELETE', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims', + resource_path='/apis/resource.k8s.io/v1/deviceclasses', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2527,9 +2333,8 @@ async def _delete_collection_namespaced_resource_claim_serialize( @validate_call(config={'defer_build': True}) - async def delete_collection_namespaced_resource_claim_template( + async def delete_collection_device_taint_rule( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -2559,12 +2364,10 @@ async def delete_collection_namespaced_resource_claim_template( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1Status: - """delete_collection_namespaced_resource_claim_template + """delete_collection_device_taint_rule - delete collection of ResourceClaimTemplate + delete collection of DeviceTaintRule - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :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. @@ -2619,8 +2422,7 @@ async def delete_collection_namespaced_resource_claim_template( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_namespaced_resource_claim_template_serialize( - namespace=namespace, + _param = await self._delete_collection_device_taint_rule_serialize( pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -2659,9 +2461,8 @@ async def delete_collection_namespaced_resource_claim_template( @validate_call(config={'defer_build': True}) - async def delete_collection_namespaced_resource_claim_template_with_http_info( + async def delete_collection_device_taint_rule_with_http_info( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -2691,12 +2492,10 @@ async def delete_collection_namespaced_resource_claim_template_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[V1Status]: - """delete_collection_namespaced_resource_claim_template + """delete_collection_device_taint_rule - delete collection of ResourceClaimTemplate + delete collection of DeviceTaintRule - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :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. @@ -2751,8 +2550,7 @@ async def delete_collection_namespaced_resource_claim_template_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_namespaced_resource_claim_template_serialize( - namespace=namespace, + _param = await self._delete_collection_device_taint_rule_serialize( pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -2791,9 +2589,8 @@ async def delete_collection_namespaced_resource_claim_template_with_http_info( @validate_call(config={'defer_build': True}) - async def delete_collection_namespaced_resource_claim_template_without_preload_content( + async def delete_collection_device_taint_rule_without_preload_content( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -2823,12 +2620,10 @@ async def delete_collection_namespaced_resource_claim_template_without_preload_c _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_collection_namespaced_resource_claim_template + """delete_collection_device_taint_rule - delete collection of ResourceClaimTemplate + delete collection of DeviceTaintRule - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :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. @@ -2883,8 +2678,7 @@ async def delete_collection_namespaced_resource_claim_template_without_preload_c :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_namespaced_resource_claim_template_serialize( - namespace=namespace, + _param = await self._delete_collection_device_taint_rule_serialize( pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -2919,9 +2713,8 @@ async def delete_collection_namespaced_resource_claim_template_without_preload_c return response_data.response - async def _delete_collection_namespaced_resource_claim_template_serialize( + async def _delete_collection_device_taint_rule_serialize( self, - namespace, pretty, _continue, dry_run, @@ -2959,8 +2752,6 @@ async def _delete_collection_namespaced_resource_claim_template_serialize( _body_params: Optional[bytes] = None # process the path parameters - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -3048,7 +2839,7 @@ async def _delete_collection_namespaced_resource_claim_template_serialize( return await self.api_client.param_serialize( method='DELETE', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3065,8 +2856,9 @@ async def _delete_collection_namespaced_resource_claim_template_serialize( @validate_call(config={'defer_build': True}) - async def delete_collection_resource_slice( + async def delete_collection_namespaced_resource_claim( self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -3096,10 +2888,12 @@ async def delete_collection_resource_slice( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1Status: - """delete_collection_resource_slice + """delete_collection_namespaced_resource_claim - delete collection of ResourceSlice + delete collection of ResourceClaim + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :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. @@ -3154,7 +2948,8 @@ async def delete_collection_resource_slice( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_resource_slice_serialize( + _param = await self._delete_collection_namespaced_resource_claim_serialize( + namespace=namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -3193,8 +2988,9 @@ async def delete_collection_resource_slice( @validate_call(config={'defer_build': True}) - async def delete_collection_resource_slice_with_http_info( + async def delete_collection_namespaced_resource_claim_with_http_info( self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -3224,10 +3020,12 @@ async def delete_collection_resource_slice_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[V1Status]: - """delete_collection_resource_slice + """delete_collection_namespaced_resource_claim - delete collection of ResourceSlice + delete collection of ResourceClaim + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :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. @@ -3282,7 +3080,8 @@ async def delete_collection_resource_slice_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_resource_slice_serialize( + _param = await self._delete_collection_namespaced_resource_claim_serialize( + namespace=namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -3321,8 +3120,9 @@ async def delete_collection_resource_slice_with_http_info( @validate_call(config={'defer_build': True}) - async def delete_collection_resource_slice_without_preload_content( + async def delete_collection_namespaced_resource_claim_without_preload_content( self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -3352,10 +3152,12 @@ async def delete_collection_resource_slice_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_collection_resource_slice + """delete_collection_namespaced_resource_claim - delete collection of ResourceSlice + delete collection of ResourceClaim + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :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. @@ -3410,7 +3212,8 @@ async def delete_collection_resource_slice_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_resource_slice_serialize( + _param = await self._delete_collection_namespaced_resource_claim_serialize( + namespace=namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -3445,8 +3248,9 @@ async def delete_collection_resource_slice_without_preload_content( return response_data.response - async def _delete_collection_resource_slice_serialize( + async def _delete_collection_namespaced_resource_claim_serialize( self, + namespace, pretty, _continue, dry_run, @@ -3484,6 +3288,8 @@ async def _delete_collection_resource_slice_serialize( _body_params: Optional[bytes] = None # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -3571,7 +3377,7 @@ async def _delete_collection_resource_slice_serialize( return await self.api_client.param_serialize( method='DELETE', - resource_path='/apis/resource.k8s.io/v1/resourceslices', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3588,15 +3394,24 @@ async def _delete_collection_resource_slice_serialize( @validate_call(config={'defer_build': True}) - async def delete_device_class( + async def delete_collection_namespaced_resource_claim_template( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, @@ -3610,25 +3425,43 @@ async def delete_device_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceClass: - """delete_device_class + ) -> V1Status: + """delete_collection_namespaced_resource_claim_template - delete a DeviceClass + delete collection of ResourceClaimTemplate - :param name: name of the DeviceClass (required) - :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one @@ -3653,14 +3486,23 @@ async def delete_device_class( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_device_class_serialize( - name=name, + _param = await self._delete_collection_namespaced_resource_claim_template_serialize( + namespace=namespace, pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -3669,8 +3511,7 @@ async def delete_device_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", - '202': "V1DeviceClass", + '200': "V1Status", '401': None, } response_data = await self.api_client.call_api( @@ -3685,15 +3526,24 @@ async def delete_device_class( @validate_call(config={'defer_build': True}) - async def delete_device_class_with_http_info( + async def delete_collection_namespaced_resource_claim_template_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, @@ -3707,25 +3557,43 @@ async def delete_device_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1DeviceClass]: - """delete_device_class + ) -> ApiResponse[V1Status]: + """delete_collection_namespaced_resource_claim_template - delete a DeviceClass + delete collection of ResourceClaimTemplate - :param name: name of the DeviceClass (required) - :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one @@ -3750,14 +3618,23 @@ async def delete_device_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_device_class_serialize( - name=name, + _param = await self._delete_collection_namespaced_resource_claim_template_serialize( + namespace=namespace, pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -3766,8 +3643,7 @@ async def delete_device_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", - '202': "V1DeviceClass", + '200': "V1Status", '401': None, } response_data = await self.api_client.call_api( @@ -3782,15 +3658,24 @@ async def delete_device_class_with_http_info( @validate_call(config={'defer_build': True}) - async def delete_device_class_without_preload_content( + async def delete_collection_namespaced_resource_claim_template_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, @@ -3805,30 +3690,48 @@ async def delete_device_class_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_device_class + """delete_collection_namespaced_resource_claim_template - delete a DeviceClass + delete collection of ResourceClaimTemplate - :param name: name of the DeviceClass (required) - :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str - :param body: - :type body: V1DeleteOptions - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :type _request_timeout: int, tuple(int, int), optional :param _request_auth: set to override the auth_settings for an a single request; this effectively ignores the @@ -3847,14 +3750,23 @@ async def delete_device_class_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_device_class_serialize( - name=name, + _param = await self._delete_collection_namespaced_resource_claim_template_serialize( + namespace=namespace, pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -3863,8 +3775,7 @@ async def delete_device_class_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", - '202': "V1DeviceClass", + '200': "V1Status", '401': None, } response_data = await self.api_client.call_api( @@ -3875,15 +3786,24 @@ async def delete_device_class_without_preload_content( return response_data.response - async def _delete_device_class_serialize( + async def _delete_collection_namespaced_resource_claim_template_serialize( self, - name, + namespace, pretty, + _continue, dry_run, + field_selector, grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, orphan_dependents, propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, body, _request_auth, _content_type, @@ -3906,17 +3826,25 @@ async def _delete_device_class_serialize( _body_params: Optional[bytes] = None # process the path parameters - if name is not None: - _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) + if _continue is not None: + + _query_params.append(('continue', _continue)) + if dry_run is not None: _query_params.append(('dryRun', dry_run)) + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + if grace_period_seconds is not None: _query_params.append(('gracePeriodSeconds', grace_period_seconds)) @@ -3925,6 +3853,14 @@ async def _delete_device_class_serialize( _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + if orphan_dependents is not None: _query_params.append(('orphanDependents', orphan_dependents)) @@ -3933,6 +3869,26 @@ async def _delete_device_class_serialize( _query_params.append(('propagationPolicy', propagation_policy)) + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + # process the header parameters # process the form parameters # process the body parameter @@ -3959,7 +3915,7 @@ async def _delete_device_class_serialize( return await self.api_client.param_serialize( method='DELETE', - resource_path='/apis/resource.k8s.io/v1/deviceclasses/{name}', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3976,16 +3932,23 @@ async def _delete_device_class_serialize( @validate_call(config={'defer_build': True}) - async def delete_namespaced_resource_claim( + async def delete_collection_resource_slice( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, @@ -3999,27 +3962,41 @@ async def delete_namespaced_resource_claim( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ResourceV1ResourceClaim: - """delete_namespaced_resource_claim + ) -> V1Status: + """delete_collection_resource_slice - delete a ResourceClaim + delete collection of ResourceSlice - :param name: name of the ResourceClaim (required) - :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one @@ -4044,15 +4021,22 @@ async def delete_namespaced_resource_claim( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_namespaced_resource_claim_serialize( - name=name, - namespace=namespace, + _param = await self._delete_collection_resource_slice_serialize( pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -4061,8 +4045,7 @@ async def delete_namespaced_resource_claim( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '202': "ResourceV1ResourceClaim", + '200': "V1Status", '401': None, } response_data = await self.api_client.call_api( @@ -4077,16 +4060,23 @@ async def delete_namespaced_resource_claim( @validate_call(config={'defer_build': True}) - async def delete_namespaced_resource_claim_with_http_info( + async def delete_collection_resource_slice_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, @@ -4100,27 +4090,41 @@ async def delete_namespaced_resource_claim_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ResourceV1ResourceClaim]: - """delete_namespaced_resource_claim + ) -> ApiResponse[V1Status]: + """delete_collection_resource_slice - delete a ResourceClaim + delete collection of ResourceSlice - :param name: name of the ResourceClaim (required) - :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one @@ -4145,15 +4149,22 @@ async def delete_namespaced_resource_claim_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_namespaced_resource_claim_serialize( - name=name, - namespace=namespace, + _param = await self._delete_collection_resource_slice_serialize( pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -4162,8 +4173,7 @@ async def delete_namespaced_resource_claim_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '202': "ResourceV1ResourceClaim", + '200': "V1Status", '401': None, } response_data = await self.api_client.call_api( @@ -4178,16 +4188,23 @@ async def delete_namespaced_resource_claim_with_http_info( @validate_call(config={'defer_build': True}) - async def delete_namespaced_resource_claim_without_preload_content( + async def delete_collection_resource_slice_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, @@ -4202,26 +4219,40 @@ async def delete_namespaced_resource_claim_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_namespaced_resource_claim + """delete_collection_resource_slice - delete a ResourceClaim + delete collection of ResourceSlice - :param name: name of the ResourceClaim (required) - :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one @@ -4246,15 +4277,22 @@ async def delete_namespaced_resource_claim_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_namespaced_resource_claim_serialize( - name=name, - namespace=namespace, + _param = await self._delete_collection_resource_slice_serialize( pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -4263,8 +4301,7 @@ async def delete_namespaced_resource_claim_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '202': "ResourceV1ResourceClaim", + '200': "V1Status", '401': None, } response_data = await self.api_client.call_api( @@ -4275,16 +4312,23 @@ async def delete_namespaced_resource_claim_without_preload_content( return response_data.response - async def _delete_namespaced_resource_claim_serialize( + async def _delete_collection_resource_slice_serialize( self, - name, - namespace, pretty, + _continue, dry_run, + field_selector, grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, orphan_dependents, propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, body, _request_auth, _content_type, @@ -4307,19 +4351,23 @@ async def _delete_namespaced_resource_claim_serialize( _body_params: Optional[bytes] = None # process the path parameters - if name is not None: - _path_params['name'] = name - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) + if _continue is not None: + + _query_params.append(('continue', _continue)) + if dry_run is not None: _query_params.append(('dryRun', dry_run)) + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + if grace_period_seconds is not None: _query_params.append(('gracePeriodSeconds', grace_period_seconds)) @@ -4328,6 +4376,14 @@ async def _delete_namespaced_resource_claim_serialize( _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + if orphan_dependents is not None: _query_params.append(('orphanDependents', orphan_dependents)) @@ -4336,6 +4392,26 @@ async def _delete_namespaced_resource_claim_serialize( _query_params.append(('propagationPolicy', propagation_policy)) + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + # process the header parameters # process the form parameters # process the body parameter @@ -4362,7 +4438,7 @@ async def _delete_namespaced_resource_claim_serialize( return await self.api_client.param_serialize( method='DELETE', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', + resource_path='/apis/resource.k8s.io/v1/resourceslices', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4379,10 +4455,9 @@ async def _delete_namespaced_resource_claim_serialize( @validate_call(config={'defer_build': True}) - async def delete_namespaced_resource_claim_template( + async def delete_device_class( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, @@ -4402,15 +4477,13 @@ async def delete_namespaced_resource_claim_template( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceClaimTemplate: - """delete_namespaced_resource_claim_template + ) -> V1DeviceClass: + """delete_device_class - delete a ResourceClaimTemplate + delete a DeviceClass - :param name: name of the ResourceClaimTemplate (required) + :param name: name of the DeviceClass (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -4447,9 +4520,8 @@ async def delete_namespaced_resource_claim_template( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_namespaced_resource_claim_template_serialize( + _param = await self._delete_device_class_serialize( name=name, - namespace=namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, @@ -4464,8 +4536,8 @@ async def delete_namespaced_resource_claim_template( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", - '202': "V1ResourceClaimTemplate", + '200': "V1DeviceClass", + '202': "V1DeviceClass", '401': None, } response_data = await self.api_client.call_api( @@ -4480,10 +4552,9 @@ async def delete_namespaced_resource_claim_template( @validate_call(config={'defer_build': True}) - async def delete_namespaced_resource_claim_template_with_http_info( + async def delete_device_class_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, @@ -4503,15 +4574,13 @@ async def delete_namespaced_resource_claim_template_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ResourceClaimTemplate]: - """delete_namespaced_resource_claim_template + ) -> ApiResponse[V1DeviceClass]: + """delete_device_class - delete a ResourceClaimTemplate + delete a DeviceClass - :param name: name of the ResourceClaimTemplate (required) + :param name: name of the DeviceClass (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -4548,9 +4617,8 @@ async def delete_namespaced_resource_claim_template_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_namespaced_resource_claim_template_serialize( + _param = await self._delete_device_class_serialize( name=name, - namespace=namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, @@ -4565,8 +4633,8 @@ async def delete_namespaced_resource_claim_template_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", - '202': "V1ResourceClaimTemplate", + '200': "V1DeviceClass", + '202': "V1DeviceClass", '401': None, } response_data = await self.api_client.call_api( @@ -4581,10 +4649,9 @@ async def delete_namespaced_resource_claim_template_with_http_info( @validate_call(config={'defer_build': True}) - async def delete_namespaced_resource_claim_template_without_preload_content( + async def delete_device_class_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, @@ -4605,14 +4672,12 @@ async def delete_namespaced_resource_claim_template_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_namespaced_resource_claim_template + """delete_device_class - delete a ResourceClaimTemplate + delete a DeviceClass - :param name: name of the ResourceClaimTemplate (required) + :param name: name of the DeviceClass (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -4649,9 +4714,8 @@ async def delete_namespaced_resource_claim_template_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_namespaced_resource_claim_template_serialize( + _param = await self._delete_device_class_serialize( name=name, - namespace=namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, @@ -4666,8 +4730,8 @@ async def delete_namespaced_resource_claim_template_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", - '202': "V1ResourceClaimTemplate", + '200': "V1DeviceClass", + '202': "V1DeviceClass", '401': None, } response_data = await self.api_client.call_api( @@ -4678,10 +4742,9 @@ async def delete_namespaced_resource_claim_template_without_preload_content( return response_data.response - async def _delete_namespaced_resource_claim_template_serialize( + async def _delete_device_class_serialize( self, name, - namespace, pretty, dry_run, grace_period_seconds, @@ -4712,8 +4775,6 @@ async def _delete_namespaced_resource_claim_template_serialize( # process the path parameters if name is not None: _path_params['name'] = name - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -4765,7 +4826,7 @@ async def _delete_namespaced_resource_claim_template_serialize( return await self.api_client.param_serialize( method='DELETE', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', + resource_path='/apis/resource.k8s.io/v1/deviceclasses/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4782,9 +4843,9 @@ async def _delete_namespaced_resource_claim_template_serialize( @validate_call(config={'defer_build': True}) - async def delete_resource_slice( + async def delete_device_taint_rule( self, - name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, @@ -4804,12 +4865,12 @@ async def delete_resource_slice( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceSlice: - """delete_resource_slice + ) -> object: + """delete_device_taint_rule - delete a ResourceSlice + delete a DeviceTaintRule - :param name: name of the ResourceSlice (required) + :param name: name of the DeviceTaintRule (required) :type name: str :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). :type pretty: str @@ -4847,7 +4908,7 @@ async def delete_resource_slice( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_resource_slice_serialize( + _param = await self._delete_device_taint_rule_serialize( name=name, pretty=pretty, dry_run=dry_run, @@ -4863,8 +4924,8 @@ async def delete_resource_slice( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", - '202': "V1ResourceSlice", + '200': "object", + '202': "object", '401': None, } response_data = await self.api_client.call_api( @@ -4879,9 +4940,9 @@ async def delete_resource_slice( @validate_call(config={'defer_build': True}) - async def delete_resource_slice_with_http_info( + async def delete_device_taint_rule_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, @@ -4901,12 +4962,12 @@ async def delete_resource_slice_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ResourceSlice]: - """delete_resource_slice + ) -> ApiResponse[object]: + """delete_device_taint_rule - delete a ResourceSlice + delete a DeviceTaintRule - :param name: name of the ResourceSlice (required) + :param name: name of the DeviceTaintRule (required) :type name: str :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). :type pretty: str @@ -4944,7 +5005,7 @@ async def delete_resource_slice_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_resource_slice_serialize( + _param = await self._delete_device_taint_rule_serialize( name=name, pretty=pretty, dry_run=dry_run, @@ -4960,8 +5021,8 @@ async def delete_resource_slice_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", - '202': "V1ResourceSlice", + '200': "object", + '202': "object", '401': None, } response_data = await self.api_client.call_api( @@ -4976,9 +5037,9 @@ async def delete_resource_slice_with_http_info( @validate_call(config={'defer_build': True}) - async def delete_resource_slice_without_preload_content( + async def delete_device_taint_rule_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, @@ -4999,11 +5060,11 @@ async def delete_resource_slice_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_resource_slice + """delete_device_taint_rule - delete a ResourceSlice + delete a DeviceTaintRule - :param name: name of the ResourceSlice (required) + :param name: name of the DeviceTaintRule (required) :type name: str :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). :type pretty: str @@ -5041,7 +5102,7 @@ async def delete_resource_slice_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_resource_slice_serialize( + _param = await self._delete_device_taint_rule_serialize( name=name, pretty=pretty, dry_run=dry_run, @@ -5057,8 +5118,8 @@ async def delete_resource_slice_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", - '202': "V1ResourceSlice", + '200': "object", + '202': "object", '401': None, } response_data = await self.api_client.call_api( @@ -5069,7 +5130,7 @@ async def delete_resource_slice_without_preload_content( return response_data.response - async def _delete_resource_slice_serialize( + async def _delete_device_taint_rule_serialize( self, name, pretty, @@ -5153,7 +5214,7 @@ async def _delete_resource_slice_serialize( return await self.api_client.param_serialize( method='DELETE', - resource_path='/apis/resource.k8s.io/v1/resourceslices/{name}', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5170,8 +5231,17 @@ async def _delete_resource_slice_serialize( @validate_call(config={'defer_build': True}) - async def get_api_resources( + async def delete_namespaced_resource_claim( self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5184,11 +5254,29 @@ async def get_api_resources( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1APIResourceList: - """get_api_resources + ) -> ResourceV1ResourceClaim: + """delete_namespaced_resource_claim - get available resources + delete a ResourceClaim + :param name: name of the ResourceClaim (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5211,7 +5299,16 @@ async def get_api_resources( :return: Returns the result object. """ # noqa: E501 - _param = await self._get_api_resources_serialize( + _param = await self._delete_namespaced_resource_claim_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5219,7 +5316,8 @@ async def get_api_resources( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1APIResourceList", + '200': "ResourceV1ResourceClaim", + '202': "ResourceV1ResourceClaim", '401': None, } response_data = await self.api_client.call_api( @@ -5234,8 +5332,17 @@ async def get_api_resources( @validate_call(config={'defer_build': True}) - async def get_api_resources_with_http_info( + async def delete_namespaced_resource_claim_with_http_info( self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5248,11 +5355,29 @@ async def get_api_resources_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1APIResourceList]: - """get_api_resources + ) -> ApiResponse[ResourceV1ResourceClaim]: + """delete_namespaced_resource_claim - get available resources + delete a ResourceClaim + :param name: name of the ResourceClaim (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5275,7 +5400,16 @@ async def get_api_resources_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._get_api_resources_serialize( + _param = await self._delete_namespaced_resource_claim_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5283,7 +5417,8 @@ async def get_api_resources_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1APIResourceList", + '200': "ResourceV1ResourceClaim", + '202': "ResourceV1ResourceClaim", '401': None, } response_data = await self.api_client.call_api( @@ -5298,10 +5433,19 @@ async def get_api_resources_with_http_info( @validate_call(config={'defer_build': True}) - async def get_api_resources_without_preload_content( + async def delete_namespaced_resource_claim_without_preload_content( self, - _request_timeout: Union[ - None, + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], @@ -5313,10 +5457,28 @@ async def get_api_resources_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_api_resources + """delete_namespaced_resource_claim - get available resources + delete a ResourceClaim + :param name: name of the ResourceClaim (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5339,7 +5501,16 @@ async def get_api_resources_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._get_api_resources_serialize( + _param = await self._delete_namespaced_resource_claim_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5347,7 +5518,8 @@ async def get_api_resources_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1APIResourceList", + '200': "ResourceV1ResourceClaim", + '202': "ResourceV1ResourceClaim", '401': None, } response_data = await self.api_client.call_api( @@ -5358,8 +5530,17 @@ async def get_api_resources_without_preload_content( return response_data.response - async def _get_api_resources_serialize( + async def _delete_namespaced_resource_claim_serialize( self, + name, + namespace, + pretty, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, _request_auth, _content_type, _headers, @@ -5381,10 +5562,40 @@ async def _get_api_resources_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -5405,8 +5616,8 @@ async def _get_api_resources_serialize( ] return await self.api_client.param_serialize( - method='GET', - resource_path='/apis/resource.k8s.io/v1/', + method='DELETE', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5423,20 +5634,17 @@ async def _get_api_resources_serialize( @validate_call(config={'defer_build': True}) - async def list_device_class( + async def delete_namespaced_resource_claim_template( self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5449,35 +5657,29 @@ async def list_device_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceClassList: - """list_device_class + ) -> V1ResourceClaimTemplate: + """delete_namespaced_resource_claim_template - list or watch objects of kind DeviceClass + delete a ResourceClaimTemplate + :param name: name of the ResourceClaimTemplate (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5500,19 +5702,16 @@ async def list_device_class( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_device_class_serialize( + _param = await self._delete_namespaced_resource_claim_template_serialize( + name=name, + namespace=namespace, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5520,7 +5719,8 @@ async def list_device_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClassList", + '200': "V1ResourceClaimTemplate", + '202': "V1ResourceClaimTemplate", '401': None, } response_data = await self.api_client.call_api( @@ -5535,20 +5735,17 @@ async def list_device_class( @validate_call(config={'defer_build': True}) - async def list_device_class_with_http_info( + async def delete_namespaced_resource_claim_template_with_http_info( self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5561,35 +5758,29 @@ async def list_device_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1DeviceClassList]: - """list_device_class + ) -> ApiResponse[V1ResourceClaimTemplate]: + """delete_namespaced_resource_claim_template - list or watch objects of kind DeviceClass + delete a ResourceClaimTemplate + :param name: name of the ResourceClaimTemplate (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5612,19 +5803,16 @@ async def list_device_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_device_class_serialize( + _param = await self._delete_namespaced_resource_claim_template_serialize( + name=name, + namespace=namespace, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5632,7 +5820,8 @@ async def list_device_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClassList", + '200': "V1ResourceClaimTemplate", + '202': "V1ResourceClaimTemplate", '401': None, } response_data = await self.api_client.call_api( @@ -5647,20 +5836,17 @@ async def list_device_class_with_http_info( @validate_call(config={'defer_build': True}) - async def list_device_class_without_preload_content( + async def delete_namespaced_resource_claim_template_without_preload_content( self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5674,34 +5860,28 @@ async def list_device_class_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """list_device_class + """delete_namespaced_resource_claim_template - list or watch objects of kind DeviceClass + delete a ResourceClaimTemplate + :param name: name of the ResourceClaimTemplate (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5724,19 +5904,16 @@ async def list_device_class_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_device_class_serialize( + _param = await self._delete_namespaced_resource_claim_template_serialize( + name=name, + namespace=namespace, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5744,7 +5921,8 @@ async def list_device_class_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClassList", + '200': "V1ResourceClaimTemplate", + '202': "V1ResourceClaimTemplate", '401': None, } response_data = await self.api_client.call_api( @@ -5755,20 +5933,17 @@ async def list_device_class_without_preload_content( return response_data.response - async def _list_device_class_serialize( + async def _delete_namespaced_resource_claim_template_serialize( self, + name, + namespace, pretty, - allow_watch_bookmarks, - _continue, - field_selector, - label_selector, - limit, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - watch, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, _request_auth, _content_type, _headers, @@ -5790,58 +5965,40 @@ async def _list_device_class_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if allow_watch_bookmarks is not None: - - _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) - - if _continue is not None: - - _query_params.append(('continue', _continue)) - - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: + if dry_run is not None: - _query_params.append(('resourceVersionMatch', resource_version_match)) + _query_params.append(('dryRun', dry_run)) - if send_initial_events is not None: + if grace_period_seconds is not None: - _query_params.append(('sendInitialEvents', send_initial_events)) + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) - if shard_selector is not None: + if ignore_store_read_error_with_cluster_breaking_potential is not None: - _query_params.append(('shardSelector', shard_selector)) + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) - if timeout_seconds is not None: + if orphan_dependents is not None: - _query_params.append(('timeoutSeconds', timeout_seconds)) + _query_params.append(('orphanDependents', orphan_dependents)) - if watch is not None: + if propagation_policy is not None: - _query_params.append(('watch', watch)) + _query_params.append(('propagationPolicy', propagation_policy)) # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -5851,10 +6008,7 @@ async def _list_device_class_serialize( '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' ] ) @@ -5865,8 +6019,8 @@ async def _list_device_class_serialize( ] return await self.api_client.param_serialize( - method='GET', - resource_path='/apis/resource.k8s.io/v1/deviceclasses', + method='DELETE', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5883,21 +6037,16 @@ async def _list_device_class_serialize( @validate_call(config={'defer_build': True}) - async def list_namespaced_resource_claim( + async def delete_resource_slice( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5910,37 +6059,27 @@ async def list_namespaced_resource_claim( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceClaimList: - """list_namespaced_resource_claim + ) -> V1ResourceSlice: + """delete_resource_slice - list or watch objects of kind ResourceClaim + delete a ResourceSlice - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str + :param name: name of the ResourceSlice (required) + :type name: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5963,20 +6102,15 @@ async def list_namespaced_resource_claim( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_namespaced_resource_claim_serialize( - namespace=namespace, + _param = await self._delete_resource_slice_serialize( + name=name, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5984,7 +6118,8 @@ async def list_namespaced_resource_claim( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimList", + '200': "V1ResourceSlice", + '202': "V1ResourceSlice", '401': None, } response_data = await self.api_client.call_api( @@ -5999,21 +6134,16 @@ async def list_namespaced_resource_claim( @validate_call(config={'defer_build': True}) - async def list_namespaced_resource_claim_with_http_info( + async def delete_resource_slice_with_http_info( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6026,37 +6156,27 @@ async def list_namespaced_resource_claim_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ResourceClaimList]: - """list_namespaced_resource_claim + ) -> ApiResponse[V1ResourceSlice]: + """delete_resource_slice - list or watch objects of kind ResourceClaim + delete a ResourceSlice - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str + :param name: name of the ResourceSlice (required) + :type name: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6079,20 +6199,15 @@ async def list_namespaced_resource_claim_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_namespaced_resource_claim_serialize( - namespace=namespace, + _param = await self._delete_resource_slice_serialize( + name=name, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6100,7 +6215,8 @@ async def list_namespaced_resource_claim_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimList", + '200': "V1ResourceSlice", + '202': "V1ResourceSlice", '401': None, } response_data = await self.api_client.call_api( @@ -6115,21 +6231,16 @@ async def list_namespaced_resource_claim_with_http_info( @validate_call(config={'defer_build': True}) - async def list_namespaced_resource_claim_without_preload_content( + async def delete_resource_slice_without_preload_content( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6143,36 +6254,26 @@ async def list_namespaced_resource_claim_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """list_namespaced_resource_claim + """delete_resource_slice - list or watch objects of kind ResourceClaim + delete a ResourceSlice - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str + :param name: name of the ResourceSlice (required) + :type name: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6195,20 +6296,15 @@ async def list_namespaced_resource_claim_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_namespaced_resource_claim_serialize( - namespace=namespace, + _param = await self._delete_resource_slice_serialize( + name=name, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6216,7 +6312,8 @@ async def list_namespaced_resource_claim_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimList", + '200': "V1ResourceSlice", + '202': "V1ResourceSlice", '401': None, } response_data = await self.api_client.call_api( @@ -6227,21 +6324,16 @@ async def list_namespaced_resource_claim_without_preload_content( return response_data.response - async def _list_namespaced_resource_claim_serialize( + async def _delete_resource_slice_serialize( self, - namespace, + name, pretty, - allow_watch_bookmarks, - _continue, - field_selector, - label_selector, - limit, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - watch, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, _request_auth, _content_type, _headers, @@ -6263,75 +6355,50 @@ async def _list_namespaced_resource_claim_serialize( _body_params: Optional[bytes] = None # process the path parameters - if namespace is not None: - _path_params['namespace'] = namespace + if name is not None: + _path_params['name'] = name # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if allow_watch_bookmarks is not None: - - _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + if dry_run is not None: - if _continue is not None: + _query_params.append(('dryRun', dry_run)) - _query_params.append(('continue', _continue)) + if grace_period_seconds is not None: - if field_selector is not None: + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) - _query_params.append(('fieldSelector', field_selector)) + if ignore_store_read_error_with_cluster_breaking_potential is not None: - if label_selector is not None: + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) - _query_params.append(('labelSelector', label_selector)) + if orphan_dependents is not None: - if limit is not None: + _query_params.append(('orphanDependents', orphan_dependents)) - _query_params.append(('limit', limit)) + if propagation_policy is not None: - if resource_version is not None: + _query_params.append(('propagationPolicy', propagation_policy)) - _query_params.append(('resourceVersion', resource_version)) + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body - if resource_version_match is not None: - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: - - _query_params.append(('shardSelector', shard_selector)) - - if timeout_seconds is not None: - - _query_params.append(('timeoutSeconds', timeout_seconds)) - - if watch is not None: - - _query_params.append(('watch', watch)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor', - 'application/json;stream=watch', - 'application/vnd.kubernetes.protobuf;stream=watch', - 'application/cbor-seq' - ] - ) + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) # authentication setting @@ -6340,8 +6407,8 @@ async def _list_namespaced_resource_claim_serialize( ] return await self.api_client.param_serialize( - method='GET', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims', + method='DELETE', + resource_path='/apis/resource.k8s.io/v1/resourceslices/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6358,21 +6425,8 @@ async def _list_namespaced_resource_claim_serialize( @validate_call(config={'defer_build': True}) - async def list_namespaced_resource_claim_template( + async def get_api_resources( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6385,37 +6439,11 @@ async def list_namespaced_resource_claim_template( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceClaimTemplateList: - """list_namespaced_resource_claim_template + ) -> V1APIResourceList: + """get_api_resources - list or watch objects of kind ResourceClaimTemplate + get available resources - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :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). - :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6438,20 +6466,7 @@ async def list_namespaced_resource_claim_template( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_namespaced_resource_claim_template_serialize( - namespace=namespace, - pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + _param = await self._get_api_resources_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6459,7 +6474,7 @@ async def list_namespaced_resource_claim_template( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplateList", + '200': "V1APIResourceList", '401': None, } response_data = await self.api_client.call_api( @@ -6474,21 +6489,8 @@ async def list_namespaced_resource_claim_template( @validate_call(config={'defer_build': True}) - async def list_namespaced_resource_claim_template_with_http_info( + async def get_api_resources_with_http_info( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6501,37 +6503,11 @@ async def list_namespaced_resource_claim_template_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ResourceClaimTemplateList]: - """list_namespaced_resource_claim_template + ) -> ApiResponse[V1APIResourceList]: + """get_api_resources - list or watch objects of kind ResourceClaimTemplate + get available resources - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :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). - :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6554,20 +6530,7 @@ async def list_namespaced_resource_claim_template_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_namespaced_resource_claim_template_serialize( - namespace=namespace, - pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + _param = await self._get_api_resources_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6575,7 +6538,7 @@ async def list_namespaced_resource_claim_template_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplateList", + '200': "V1APIResourceList", '401': None, } response_data = await self.api_client.call_api( @@ -6590,21 +6553,8 @@ async def list_namespaced_resource_claim_template_with_http_info( @validate_call(config={'defer_build': True}) - async def list_namespaced_resource_claim_template_without_preload_content( + async def get_api_resources_without_preload_content( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6618,36 +6568,10 @@ async def list_namespaced_resource_claim_template_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """list_namespaced_resource_claim_template + """get_api_resources - list or watch objects of kind ResourceClaimTemplate + get available resources - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :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). - :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6670,20 +6594,7 @@ async def list_namespaced_resource_claim_template_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_namespaced_resource_claim_template_serialize( - namespace=namespace, - pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + _param = await self._get_api_resources_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6691,7 +6602,7 @@ async def list_namespaced_resource_claim_template_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplateList", + '200': "V1APIResourceList", '401': None, } response_data = await self.api_client.call_api( @@ -6702,21 +6613,8 @@ async def list_namespaced_resource_claim_template_without_preload_content( return response_data.response - async def _list_namespaced_resource_claim_template_serialize( + async def _get_api_resources_serialize( self, - namespace, - pretty, - allow_watch_bookmarks, - _continue, - field_selector, - label_selector, - limit, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - watch, _request_auth, _content_type, _headers, @@ -6738,60 +6636,10 @@ async def _list_namespaced_resource_claim_template_serialize( _body_params: Optional[bytes] = None # process the path parameters - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters - if pretty is not None: - - _query_params.append(('pretty', pretty)) - - if allow_watch_bookmarks is not None: - - _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) - - if _continue is not None: - - _query_params.append(('continue', _continue)) - - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: - - _query_params.append(('shardSelector', shard_selector)) - - if timeout_seconds is not None: - - _query_params.append(('timeoutSeconds', timeout_seconds)) - - if watch is not None: - - _query_params.append(('watch', watch)) - - # process the header parameters - # process the form parameters - # process the body parameter + # process the header parameters + # process the form parameters + # process the body parameter # set the HTTP header `Accept` @@ -6801,10 +6649,7 @@ async def _list_namespaced_resource_claim_template_serialize( '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' ] ) @@ -6816,7 +6661,7 @@ async def _list_namespaced_resource_claim_template_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates', + resource_path='/apis/resource.k8s.io/v1/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6833,14 +6678,14 @@ async def _list_namespaced_resource_claim_template_serialize( @validate_call(config={'defer_build': True}) - async def list_resource_claim_for_all_namespaces( + async def list_device_class( self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, @@ -6859,11 +6704,13 @@ async def list_resource_claim_for_all_namespaces( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceClaimList: - """list_resource_claim_for_all_namespaces + ) -> V1DeviceClassList: + """list_device_class - list or watch objects of kind ResourceClaim + list or watch objects of kind DeviceClass + :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). + :type pretty: str :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. :type allow_watch_bookmarks: bool :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. @@ -6874,8 +6721,6 @@ async def list_resource_claim_for_all_namespaces( :type label_selector: str :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. :type limit: int - :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). - :type pretty: str :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset :type resource_version: str :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset @@ -6910,13 +6755,13 @@ async def list_resource_claim_for_all_namespaces( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_resource_claim_for_all_namespaces_serialize( + _param = await self._list_device_class_serialize( + pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, - pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, @@ -6930,7 +6775,7 @@ async def list_resource_claim_for_all_namespaces( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimList", + '200': "V1DeviceClassList", '401': None, } response_data = await self.api_client.call_api( @@ -6945,14 +6790,14 @@ async def list_resource_claim_for_all_namespaces( @validate_call(config={'defer_build': True}) - async def list_resource_claim_for_all_namespaces_with_http_info( + async def list_device_class_with_http_info( self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, @@ -6971,11 +6816,13 @@ async def list_resource_claim_for_all_namespaces_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ResourceClaimList]: - """list_resource_claim_for_all_namespaces + ) -> ApiResponse[V1DeviceClassList]: + """list_device_class - list or watch objects of kind ResourceClaim + list or watch objects of kind DeviceClass + :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). + :type pretty: str :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. :type allow_watch_bookmarks: bool :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. @@ -6986,8 +6833,6 @@ async def list_resource_claim_for_all_namespaces_with_http_info( :type label_selector: str :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. :type limit: int - :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). - :type pretty: str :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset :type resource_version: str :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset @@ -7022,13 +6867,13 @@ async def list_resource_claim_for_all_namespaces_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_resource_claim_for_all_namespaces_serialize( + _param = await self._list_device_class_serialize( + pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, - pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, @@ -7042,7 +6887,7 @@ async def list_resource_claim_for_all_namespaces_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimList", + '200': "V1DeviceClassList", '401': None, } response_data = await self.api_client.call_api( @@ -7057,14 +6902,14 @@ async def list_resource_claim_for_all_namespaces_with_http_info( @validate_call(config={'defer_build': True}) - async def list_resource_claim_for_all_namespaces_without_preload_content( + async def list_device_class_without_preload_content( self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, @@ -7084,10 +6929,12 @@ async def list_resource_claim_for_all_namespaces_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """list_resource_claim_for_all_namespaces + """list_device_class - list or watch objects of kind ResourceClaim + list or watch objects of kind DeviceClass + :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). + :type pretty: str :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. :type allow_watch_bookmarks: bool :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. @@ -7098,8 +6945,6 @@ async def list_resource_claim_for_all_namespaces_without_preload_content( :type label_selector: str :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. :type limit: int - :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). - :type pretty: str :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset :type resource_version: str :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset @@ -7134,13 +6979,13 @@ async def list_resource_claim_for_all_namespaces_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_resource_claim_for_all_namespaces_serialize( + _param = await self._list_device_class_serialize( + pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, - pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, @@ -7154,7 +6999,7 @@ async def list_resource_claim_for_all_namespaces_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimList", + '200': "V1DeviceClassList", '401': None, } response_data = await self.api_client.call_api( @@ -7165,14 +7010,14 @@ async def list_resource_claim_for_all_namespaces_without_preload_content( return response_data.response - async def _list_resource_claim_for_all_namespaces_serialize( + async def _list_device_class_serialize( self, + pretty, allow_watch_bookmarks, _continue, field_selector, label_selector, limit, - pretty, resource_version, resource_version_match, send_initial_events, @@ -7201,6 +7046,10 @@ async def _list_resource_claim_for_all_namespaces_serialize( # process the path parameters # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + if allow_watch_bookmarks is not None: _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) @@ -7221,10 +7070,6 @@ async def _list_resource_claim_for_all_namespaces_serialize( _query_params.append(('limit', limit)) - if pretty is not None: - - _query_params.append(('pretty', pretty)) - if resource_version is not None: _query_params.append(('resourceVersion', resource_version)) @@ -7276,7 +7121,7 @@ async def _list_resource_claim_for_all_namespaces_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/resource.k8s.io/v1/resourceclaims', + resource_path='/apis/resource.k8s.io/v1/deviceclasses', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7293,14 +7138,14 @@ async def _list_resource_claim_for_all_namespaces_serialize( @validate_call(config={'defer_build': True}) - async def list_resource_claim_template_for_all_namespaces( + async def list_device_taint_rule( self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, @@ -7319,11 +7164,13 @@ async def list_resource_claim_template_for_all_namespaces( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceClaimTemplateList: - """list_resource_claim_template_for_all_namespaces + ) -> V1DeviceTaintRuleList: + """list_device_taint_rule - list or watch objects of kind ResourceClaimTemplate + list or watch objects of kind DeviceTaintRule + :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). + :type pretty: str :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. :type allow_watch_bookmarks: bool :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. @@ -7334,8 +7181,118 @@ async def list_resource_claim_template_for_all_namespaces( :type label_selector: str :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. :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_device_taint_rule_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceTaintRuleList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_device_taint_rule_with_http_info( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1DeviceTaintRuleList]: + """list_device_taint_rule + + list or watch objects of kind DeviceTaintRule + :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). :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset :type resource_version: str :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset @@ -7370,19 +7327,4248 @@ async def list_resource_claim_template_for_all_namespaces( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_resource_claim_template_for_all_namespaces_serialize( - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, + _param = await self._list_device_taint_rule_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceTaintRuleList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_device_taint_rule_without_preload_content( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_device_taint_rule + + list or watch objects of kind DeviceTaintRule + + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_device_taint_rule_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceTaintRuleList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_device_taint_rule_serialize( + self, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_resource_claim( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1ResourceClaimList: + """list_namespaced_resource_claim + + list or watch objects of kind ResourceClaim + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_resource_claim_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_resource_claim_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1ResourceClaimList]: + """list_namespaced_resource_claim + + list or watch objects of kind ResourceClaim + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_resource_claim_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_resource_claim_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_namespaced_resource_claim + + list or watch objects of kind ResourceClaim + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_resource_claim_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_namespaced_resource_claim_serialize( + self, + namespace, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_resource_claim_template( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1ResourceClaimTemplateList: + """list_namespaced_resource_claim_template + + list or watch objects of kind ResourceClaimTemplate + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_resource_claim_template_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimTemplateList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_resource_claim_template_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1ResourceClaimTemplateList]: + """list_namespaced_resource_claim_template + + list or watch objects of kind ResourceClaimTemplate + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_resource_claim_template_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimTemplateList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_resource_claim_template_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_namespaced_resource_claim_template + + list or watch objects of kind ResourceClaimTemplate + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_resource_claim_template_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimTemplateList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_namespaced_resource_claim_template_serialize( + self, + namespace, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_resource_claim_for_all_namespaces( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1ResourceClaimList: + """list_resource_claim_for_all_namespaces + + list or watch objects of kind ResourceClaim + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_resource_claim_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_resource_claim_for_all_namespaces_with_http_info( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1ResourceClaimList]: + """list_resource_claim_for_all_namespaces + + list or watch objects of kind ResourceClaim + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_resource_claim_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_resource_claim_for_all_namespaces_without_preload_content( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_resource_claim_for_all_namespaces + + list or watch objects of kind ResourceClaim + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_resource_claim_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_resource_claim_for_all_namespaces_serialize( + self, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + pretty, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/resource.k8s.io/v1/resourceclaims', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_resource_claim_template_for_all_namespaces( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1ResourceClaimTemplateList: + """list_resource_claim_template_for_all_namespaces + + list or watch objects of kind ResourceClaimTemplate + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_resource_claim_template_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimTemplateList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_resource_claim_template_for_all_namespaces_with_http_info( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1ResourceClaimTemplateList]: + """list_resource_claim_template_for_all_namespaces + + list or watch objects of kind ResourceClaimTemplate + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_resource_claim_template_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimTemplateList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_resource_claim_template_for_all_namespaces_without_preload_content( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_resource_claim_template_for_all_namespaces + + list or watch objects of kind ResourceClaimTemplate + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_resource_claim_template_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimTemplateList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_resource_claim_template_for_all_namespaces_serialize( + self, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + pretty, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/resource.k8s.io/v1/resourceclaimtemplates', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_resource_slice( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1ResourceSliceList: + """list_resource_slice + + list or watch objects of kind ResourceSlice + + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_resource_slice_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceSliceList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_resource_slice_with_http_info( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1ResourceSliceList]: + """list_resource_slice + + list or watch objects of kind ResourceSlice + + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_resource_slice_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceSliceList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_resource_slice_without_preload_content( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_resource_slice + + list or watch objects of kind ResourceSlice + + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_resource_slice_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceSliceList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_resource_slice_serialize( + self, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/resource.k8s.io/v1/resourceslices', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_device_class( + self, + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1DeviceClass: + """patch_device_class + + partially update the specified DeviceClass + + :param name: name of the DeviceClass (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_device_class_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceClass", + '201': "V1DeviceClass", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_device_class_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1DeviceClass]: + """patch_device_class + + partially update the specified DeviceClass + + :param name: name of the DeviceClass (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_device_class_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceClass", + '201': "V1DeviceClass", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_device_class_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_device_class + + partially update the specified DeviceClass + + :param name: name of the DeviceClass (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_device_class_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceClass", + '201': "V1DeviceClass", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_device_class_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/resource.k8s.io/v1/deviceclasses/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_device_taint_rule( + self, + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1DeviceTaintRule: + """patch_device_taint_rule + + partially update the specified DeviceTaintRule + + :param name: name of the DeviceTaintRule (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_device_taint_rule_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_device_taint_rule_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1DeviceTaintRule]: + """patch_device_taint_rule + + partially update the specified DeviceTaintRule + + :param name: name of the DeviceTaintRule (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_device_taint_rule_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_device_taint_rule_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_device_taint_rule + + partially update the specified DeviceTaintRule + + :param name: name of the DeviceTaintRule (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_device_taint_rule_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_device_taint_rule_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_device_taint_rule_status( + self, + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1DeviceTaintRule: + """patch_device_taint_rule_status + + partially update status of the specified DeviceTaintRule + + :param name: name of the DeviceTaintRule (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_device_taint_rule_status_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_device_taint_rule_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1DeviceTaintRule]: + """patch_device_taint_rule_status + + partially update status of the specified DeviceTaintRule + + :param name: name of the DeviceTaintRule (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_device_taint_rule_status_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_device_taint_rule_status_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_device_taint_rule_status + + partially update status of the specified DeviceTaintRule + + :param name: name of the DeviceTaintRule (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_device_taint_rule_status_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_device_taint_rule_status_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_resource_claim( + self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ResourceV1ResourceClaim: + """patch_namespaced_resource_claim + + partially update the specified ResourceClaim + + :param name: name of the ResourceClaim (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_resource_claim_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ResourceV1ResourceClaim", + '201': "ResourceV1ResourceClaim", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_resource_claim_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ResourceV1ResourceClaim]: + """patch_namespaced_resource_claim + + partially update the specified ResourceClaim + + :param name: name of the ResourceClaim (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_resource_claim_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ResourceV1ResourceClaim", + '201': "ResourceV1ResourceClaim", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_resource_claim_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_namespaced_resource_claim + + partially update the specified ResourceClaim + + :param name: name of the ResourceClaim (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_resource_claim_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ResourceV1ResourceClaim", + '201': "ResourceV1ResourceClaim", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_namespaced_resource_claim_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_resource_claim_status( + self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ResourceV1ResourceClaim: + """patch_namespaced_resource_claim_status + + partially update status of the specified ResourceClaim + + :param name: name of the ResourceClaim (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_resource_claim_status_serialize( + name=name, + namespace=namespace, + body=body, pretty=pretty, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7390,7 +11576,8 @@ async def list_resource_claim_template_for_all_namespaces( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplateList", + '200': "ResourceV1ResourceClaim", + '201': "ResourceV1ResourceClaim", '401': None, } response_data = await self.api_client.call_api( @@ -7405,20 +11592,16 @@ async def list_resource_claim_template_for_all_namespaces( @validate_call(config={'defer_build': True}) - async def list_resource_claim_template_for_all_namespaces_with_http_info( + async def patch_namespaced_resource_claim_status_with_http_info( self, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7431,35 +11614,27 @@ async def list_resource_claim_template_for_all_namespaces_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ResourceClaimTemplateList]: - """list_resource_claim_template_for_all_namespaces + ) -> ApiResponse[ResourceV1ResourceClaim]: + """patch_namespaced_resource_claim_status - list or watch objects of kind ResourceClaimTemplate + partially update status of the specified ResourceClaim - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int + :param name: name of the ResourceClaim (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object :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). :type pretty: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7482,19 +11657,15 @@ async def list_resource_claim_template_for_all_namespaces_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_resource_claim_template_for_all_namespaces_serialize( - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, + _param = await self._patch_namespaced_resource_claim_status_serialize( + name=name, + namespace=namespace, + body=body, pretty=pretty, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7502,7 +11673,8 @@ async def list_resource_claim_template_for_all_namespaces_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplateList", + '200': "ResourceV1ResourceClaim", + '201': "ResourceV1ResourceClaim", '401': None, } response_data = await self.api_client.call_api( @@ -7517,20 +11689,16 @@ async def list_resource_claim_template_for_all_namespaces_with_http_info( @validate_call(config={'defer_build': True}) - async def list_resource_claim_template_for_all_namespaces_without_preload_content( + async def patch_namespaced_resource_claim_status_without_preload_content( self, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7544,34 +11712,26 @@ async def list_resource_claim_template_for_all_namespaces_without_preload_conten _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """list_resource_claim_template_for_all_namespaces + """patch_namespaced_resource_claim_status - list or watch objects of kind ResourceClaimTemplate + partially update status of the specified ResourceClaim - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int + :param name: name of the ResourceClaim (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object :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). :type pretty: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7594,19 +11754,15 @@ async def list_resource_claim_template_for_all_namespaces_without_preload_conten :return: Returns the result object. """ # noqa: E501 - _param = await self._list_resource_claim_template_for_all_namespaces_serialize( - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, + _param = await self._patch_namespaced_resource_claim_status_serialize( + name=name, + namespace=namespace, + body=body, pretty=pretty, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7614,7 +11770,8 @@ async def list_resource_claim_template_for_all_namespaces_without_preload_conten ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplateList", + '200': "ResourceV1ResourceClaim", + '201': "ResourceV1ResourceClaim", '401': None, } response_data = await self.api_client.call_api( @@ -7625,20 +11782,16 @@ async def list_resource_claim_template_for_all_namespaces_without_preload_conten return response_data.response - async def _list_resource_claim_template_for_all_namespaces_serialize( + async def _patch_namespaced_resource_claim_status_serialize( self, - allow_watch_bookmarks, - _continue, - field_selector, - label_selector, - limit, + name, + namespace, + body, pretty, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - watch, + dry_run, + field_manager, + field_validation, + force, _request_auth, _content_type, _headers, @@ -7660,58 +11813,36 @@ async def _list_resource_claim_template_for_all_namespaces_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters - if allow_watch_bookmarks is not None: - - _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) - - if _continue is not None: - - _query_params.append(('continue', _continue)) - - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - if pretty is not None: _query_params.append(('pretty', pretty)) - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: + if dry_run is not None: - _query_params.append(('sendInitialEvents', send_initial_events)) + _query_params.append(('dryRun', dry_run)) - if shard_selector is not None: + if field_manager is not None: - _query_params.append(('shardSelector', shard_selector)) + _query_params.append(('fieldManager', field_manager)) - if timeout_seconds is not None: + if field_validation is not None: - _query_params.append(('timeoutSeconds', timeout_seconds)) + _query_params.append(('fieldValidation', field_validation)) - if watch is not None: + if force is not None: - _query_params.append(('watch', watch)) + _query_params.append(('force', force)) # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -7721,13 +11852,27 @@ async def _list_resource_claim_template_for_all_namespaces_serialize( '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' ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -7735,8 +11880,8 @@ async def _list_resource_claim_template_for_all_namespaces_serialize( ] return await self.api_client.param_serialize( - method='GET', - resource_path='/apis/resource.k8s.io/v1/resourceclaimtemplates', + method='PATCH', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7753,20 +11898,16 @@ async def _list_resource_claim_template_for_all_namespaces_serialize( @validate_call(config={'defer_build': True}) - async def list_resource_slice( + async def patch_namespaced_resource_claim_template( self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7779,35 +11920,27 @@ async def list_resource_slice( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceSliceList: - """list_resource_slice + ) -> V1ResourceClaimTemplate: + """patch_namespaced_resource_claim_template - list or watch objects of kind ResourceSlice + partially update the specified ResourceClaimTemplate + :param name: name of the ResourceClaimTemplate (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7830,19 +11963,15 @@ async def list_resource_slice( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_resource_slice_serialize( + _param = await self._patch_namespaced_resource_claim_template_serialize( + name=name, + namespace=namespace, + body=body, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7850,7 +11979,8 @@ async def list_resource_slice( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSliceList", + '200': "V1ResourceClaimTemplate", + '201': "V1ResourceClaimTemplate", '401': None, } response_data = await self.api_client.call_api( @@ -7865,20 +11995,16 @@ async def list_resource_slice( @validate_call(config={'defer_build': True}) - async def list_resource_slice_with_http_info( + async def patch_namespaced_resource_claim_template_with_http_info( self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7891,35 +12017,27 @@ async def list_resource_slice_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ResourceSliceList]: - """list_resource_slice + ) -> ApiResponse[V1ResourceClaimTemplate]: + """patch_namespaced_resource_claim_template - list or watch objects of kind ResourceSlice + partially update the specified ResourceClaimTemplate + :param name: name of the ResourceClaimTemplate (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7942,19 +12060,15 @@ async def list_resource_slice_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_resource_slice_serialize( + _param = await self._patch_namespaced_resource_claim_template_serialize( + name=name, + namespace=namespace, + body=body, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7962,7 +12076,8 @@ async def list_resource_slice_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSliceList", + '200': "V1ResourceClaimTemplate", + '201': "V1ResourceClaimTemplate", '401': None, } response_data = await self.api_client.call_api( @@ -7977,20 +12092,16 @@ async def list_resource_slice_with_http_info( @validate_call(config={'defer_build': True}) - async def list_resource_slice_without_preload_content( + async def patch_namespaced_resource_claim_template_without_preload_content( self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8004,34 +12115,26 @@ async def list_resource_slice_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """list_resource_slice + """patch_namespaced_resource_claim_template - list or watch objects of kind ResourceSlice + partially update the specified ResourceClaimTemplate + :param name: name of the ResourceClaimTemplate (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8054,19 +12157,15 @@ async def list_resource_slice_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_resource_slice_serialize( + _param = await self._patch_namespaced_resource_claim_template_serialize( + name=name, + namespace=namespace, + body=body, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8074,7 +12173,8 @@ async def list_resource_slice_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSliceList", + '200': "V1ResourceClaimTemplate", + '201': "V1ResourceClaimTemplate", '401': None, } response_data = await self.api_client.call_api( @@ -8085,20 +12185,16 @@ async def list_resource_slice_without_preload_content( return response_data.response - async def _list_resource_slice_serialize( + async def _patch_namespaced_resource_claim_template_serialize( self, + name, + namespace, + body, pretty, - allow_watch_bookmarks, - _continue, - field_selector, - label_selector, - limit, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - watch, + dry_run, + field_manager, + field_validation, + force, _request_auth, _content_type, _headers, @@ -8120,58 +12216,36 @@ async def _list_resource_slice_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if allow_watch_bookmarks is not None: - - _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) - - if _continue is not None: - - _query_params.append(('continue', _continue)) - - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: + if dry_run is not None: - _query_params.append(('sendInitialEvents', send_initial_events)) + _query_params.append(('dryRun', dry_run)) - if shard_selector is not None: + if field_manager is not None: - _query_params.append(('shardSelector', shard_selector)) + _query_params.append(('fieldManager', field_manager)) - if timeout_seconds is not None: + if field_validation is not None: - _query_params.append(('timeoutSeconds', timeout_seconds)) + _query_params.append(('fieldValidation', field_validation)) - if watch is not None: + if force is not None: - _query_params.append(('watch', watch)) + _query_params.append(('force', force)) # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -8181,13 +12255,27 @@ async def _list_resource_slice_serialize( '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' ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -8195,8 +12283,8 @@ async def _list_resource_slice_serialize( ] return await self.api_client.param_serialize( - method='GET', - resource_path='/apis/resource.k8s.io/v1/resourceslices', + method='PATCH', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8213,9 +12301,9 @@ async def _list_resource_slice_serialize( @validate_call(config={'defer_build': True}) - async def patch_device_class( + async def patch_resource_slice( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -8234,12 +12322,12 @@ async def patch_device_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceClass: - """patch_device_class + ) -> V1ResourceSlice: + """patch_resource_slice - partially update the specified DeviceClass + partially update the specified ResourceSlice - :param name: name of the DeviceClass (required) + :param name: name of the ResourceSlice (required) :type name: str :param body: (required) :type body: object @@ -8275,7 +12363,7 @@ async def patch_device_class( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_device_class_serialize( + _param = await self._patch_resource_slice_serialize( name=name, body=body, pretty=pretty, @@ -8290,8 +12378,8 @@ async def patch_device_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", - '201': "V1DeviceClass", + '200': "V1ResourceSlice", + '201': "V1ResourceSlice", '401': None, } response_data = await self.api_client.call_api( @@ -8306,9 +12394,9 @@ async def patch_device_class( @validate_call(config={'defer_build': True}) - async def patch_device_class_with_http_info( + async def patch_resource_slice_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -8327,12 +12415,12 @@ async def patch_device_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1DeviceClass]: - """patch_device_class + ) -> ApiResponse[V1ResourceSlice]: + """patch_resource_slice - partially update the specified DeviceClass + partially update the specified ResourceSlice - :param name: name of the DeviceClass (required) + :param name: name of the ResourceSlice (required) :type name: str :param body: (required) :type body: object @@ -8368,7 +12456,7 @@ async def patch_device_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_device_class_serialize( + _param = await self._patch_resource_slice_serialize( name=name, body=body, pretty=pretty, @@ -8383,8 +12471,8 @@ async def patch_device_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", - '201': "V1DeviceClass", + '200': "V1ResourceSlice", + '201': "V1ResourceSlice", '401': None, } response_data = await self.api_client.call_api( @@ -8399,9 +12487,9 @@ async def patch_device_class_with_http_info( @validate_call(config={'defer_build': True}) - async def patch_device_class_without_preload_content( + async def patch_resource_slice_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -8421,11 +12509,11 @@ async def patch_device_class_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """patch_device_class + """patch_resource_slice - partially update the specified DeviceClass + partially update the specified ResourceSlice - :param name: name of the DeviceClass (required) + :param name: name of the ResourceSlice (required) :type name: str :param body: (required) :type body: object @@ -8461,7 +12549,7 @@ async def patch_device_class_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_device_class_serialize( + _param = await self._patch_resource_slice_serialize( name=name, body=body, pretty=pretty, @@ -8476,8 +12564,8 @@ async def patch_device_class_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", - '201': "V1DeviceClass", + '200': "V1ResourceSlice", + '201': "V1ResourceSlice", '401': None, } response_data = await self.api_client.call_api( @@ -8488,7 +12576,7 @@ async def patch_device_class_without_preload_content( return response_data.response - async def _patch_device_class_serialize( + async def _patch_resource_slice_serialize( self, name, body, @@ -8584,7 +12672,7 @@ async def _patch_device_class_serialize( return await self.api_client.param_serialize( method='PATCH', - resource_path='/apis/resource.k8s.io/v1/deviceclasses/{name}', + resource_path='/apis/resource.k8s.io/v1/resourceslices/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8601,16 +12689,10 @@ async def _patch_device_class_serialize( @validate_call(config={'defer_build': True}) - async def patch_namespaced_resource_claim( + async def read_device_class( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8623,27 +12705,15 @@ async def patch_namespaced_resource_claim( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ResourceV1ResourceClaim: - """patch_namespaced_resource_claim + ) -> V1DeviceClass: + """read_device_class - partially update the specified ResourceClaim + read the specified DeviceClass - :param name: name of the ResourceClaim (required) + :param name: name of the DeviceClass (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8666,15 +12736,9 @@ async def patch_namespaced_resource_claim( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_namespaced_resource_claim_serialize( + _param = await self._read_device_class_serialize( name=name, - namespace=namespace, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8682,8 +12746,7 @@ async def patch_namespaced_resource_claim( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '201': "ResourceV1ResourceClaim", + '200': "V1DeviceClass", '401': None, } response_data = await self.api_client.call_api( @@ -8698,16 +12761,10 @@ async def patch_namespaced_resource_claim( @validate_call(config={'defer_build': True}) - async def patch_namespaced_resource_claim_with_http_info( + async def read_device_class_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8720,27 +12777,15 @@ async def patch_namespaced_resource_claim_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ResourceV1ResourceClaim]: - """patch_namespaced_resource_claim - - partially update the specified ResourceClaim + ) -> ApiResponse[V1DeviceClass]: + """read_device_class - :param name: name of the ResourceClaim (required) - :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :param body: (required) - :type body: object - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool + read the specified DeviceClass + + :param name: name of the DeviceClass (required) + :type name: str + :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). + :type pretty: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8763,15 +12808,9 @@ async def patch_namespaced_resource_claim_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_namespaced_resource_claim_serialize( + _param = await self._read_device_class_serialize( name=name, - namespace=namespace, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8779,8 +12818,7 @@ async def patch_namespaced_resource_claim_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '201': "ResourceV1ResourceClaim", + '200': "V1DeviceClass", '401': None, } response_data = await self.api_client.call_api( @@ -8795,16 +12833,10 @@ async def patch_namespaced_resource_claim_with_http_info( @validate_call(config={'defer_build': True}) - async def patch_namespaced_resource_claim_without_preload_content( + async def read_device_class_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8818,26 +12850,14 @@ async def patch_namespaced_resource_claim_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """patch_namespaced_resource_claim + """read_device_class - partially update the specified ResourceClaim + read the specified DeviceClass - :param name: name of the ResourceClaim (required) + :param name: name of the DeviceClass (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8860,15 +12880,9 @@ async def patch_namespaced_resource_claim_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_namespaced_resource_claim_serialize( + _param = await self._read_device_class_serialize( name=name, - namespace=namespace, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8876,8 +12890,7 @@ async def patch_namespaced_resource_claim_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '201': "ResourceV1ResourceClaim", + '200': "V1DeviceClass", '401': None, } response_data = await self.api_client.call_api( @@ -8888,16 +12901,10 @@ async def patch_namespaced_resource_claim_without_preload_content( return response_data.response - async def _patch_namespaced_resource_claim_serialize( + async def _read_device_class_serialize( self, name, - namespace, - body, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -8921,34 +12928,14 @@ async def _patch_namespaced_resource_claim_serialize( # process the path parameters if name is not None: _path_params['name'] = name - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -8962,23 +12949,6 @@ async def _patch_namespaced_resource_claim_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -8986,8 +12956,8 @@ async def _patch_namespaced_resource_claim_serialize( ] return await self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', + method='GET', + resource_path='/apis/resource.k8s.io/v1/deviceclasses/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9004,16 +12974,10 @@ async def _patch_namespaced_resource_claim_serialize( @validate_call(config={'defer_build': True}) - async def patch_namespaced_resource_claim_status( + async def read_device_taint_rule( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9026,27 +12990,15 @@ async def patch_namespaced_resource_claim_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ResourceV1ResourceClaim: - """patch_namespaced_resource_claim_status + ) -> V1DeviceTaintRule: + """read_device_taint_rule - partially update status of the specified ResourceClaim + read the specified DeviceTaintRule - :param name: name of the ResourceClaim (required) + :param name: name of the DeviceTaintRule (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9069,15 +13021,9 @@ async def patch_namespaced_resource_claim_status( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_namespaced_resource_claim_status_serialize( + _param = await self._read_device_taint_rule_serialize( name=name, - namespace=namespace, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9085,8 +13031,7 @@ async def patch_namespaced_resource_claim_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '201': "ResourceV1ResourceClaim", + '200': "V1DeviceTaintRule", '401': None, } response_data = await self.api_client.call_api( @@ -9101,16 +13046,10 @@ async def patch_namespaced_resource_claim_status( @validate_call(config={'defer_build': True}) - async def patch_namespaced_resource_claim_status_with_http_info( + async def read_device_taint_rule_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9123,27 +13062,15 @@ async def patch_namespaced_resource_claim_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ResourceV1ResourceClaim]: - """patch_namespaced_resource_claim_status + ) -> ApiResponse[V1DeviceTaintRule]: + """read_device_taint_rule - partially update status of the specified ResourceClaim + read the specified DeviceTaintRule - :param name: name of the ResourceClaim (required) + :param name: name of the DeviceTaintRule (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9166,15 +13093,9 @@ async def patch_namespaced_resource_claim_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_namespaced_resource_claim_status_serialize( + _param = await self._read_device_taint_rule_serialize( name=name, - namespace=namespace, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9182,8 +13103,7 @@ async def patch_namespaced_resource_claim_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '201': "ResourceV1ResourceClaim", + '200': "V1DeviceTaintRule", '401': None, } response_data = await self.api_client.call_api( @@ -9198,16 +13118,10 @@ async def patch_namespaced_resource_claim_status_with_http_info( @validate_call(config={'defer_build': True}) - async def patch_namespaced_resource_claim_status_without_preload_content( + async def read_device_taint_rule_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9221,26 +13135,14 @@ async def patch_namespaced_resource_claim_status_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """patch_namespaced_resource_claim_status + """read_device_taint_rule - partially update status of the specified ResourceClaim + read the specified DeviceTaintRule - :param name: name of the ResourceClaim (required) + :param name: name of the DeviceTaintRule (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9263,15 +13165,9 @@ async def patch_namespaced_resource_claim_status_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_namespaced_resource_claim_status_serialize( + _param = await self._read_device_taint_rule_serialize( name=name, - namespace=namespace, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9279,8 +13175,7 @@ async def patch_namespaced_resource_claim_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '201': "ResourceV1ResourceClaim", + '200': "V1DeviceTaintRule", '401': None, } response_data = await self.api_client.call_api( @@ -9291,16 +13186,10 @@ async def patch_namespaced_resource_claim_status_without_preload_content( return response_data.response - async def _patch_namespaced_resource_claim_status_serialize( + async def _read_device_taint_rule_serialize( self, name, - namespace, - body, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -9324,64 +13213,27 @@ async def _patch_namespaced_resource_claim_status_serialize( # process the path parameters if name is not None: _path_params['name'] = name - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor' - ] - ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type + # authentication setting _auth_settings: List[str] = [ @@ -9389,8 +13241,8 @@ async def _patch_namespaced_resource_claim_status_serialize( ] return await self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status', + method='GET', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9407,16 +13259,10 @@ async def _patch_namespaced_resource_claim_status_serialize( @validate_call(config={'defer_build': True}) - async def patch_namespaced_resource_claim_template( + async def read_device_taint_rule_status( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9429,27 +13275,15 @@ async def patch_namespaced_resource_claim_template( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceClaimTemplate: - """patch_namespaced_resource_claim_template + ) -> V1DeviceTaintRule: + """read_device_taint_rule_status - partially update the specified ResourceClaimTemplate + read status of the specified DeviceTaintRule - :param name: name of the ResourceClaimTemplate (required) + :param name: name of the DeviceTaintRule (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9472,15 +13306,9 @@ async def patch_namespaced_resource_claim_template( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_namespaced_resource_claim_template_serialize( + _param = await self._read_device_taint_rule_status_serialize( name=name, - namespace=namespace, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9488,8 +13316,7 @@ async def patch_namespaced_resource_claim_template( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", - '201': "V1ResourceClaimTemplate", + '200': "V1DeviceTaintRule", '401': None, } response_data = await self.api_client.call_api( @@ -9504,16 +13331,10 @@ async def patch_namespaced_resource_claim_template( @validate_call(config={'defer_build': True}) - async def patch_namespaced_resource_claim_template_with_http_info( + async def read_device_taint_rule_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9526,27 +13347,15 @@ async def patch_namespaced_resource_claim_template_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ResourceClaimTemplate]: - """patch_namespaced_resource_claim_template + ) -> ApiResponse[V1DeviceTaintRule]: + """read_device_taint_rule_status - partially update the specified ResourceClaimTemplate + read status of the specified DeviceTaintRule - :param name: name of the ResourceClaimTemplate (required) + :param name: name of the DeviceTaintRule (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9569,15 +13378,9 @@ async def patch_namespaced_resource_claim_template_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_namespaced_resource_claim_template_serialize( + _param = await self._read_device_taint_rule_status_serialize( name=name, - namespace=namespace, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9585,8 +13388,7 @@ async def patch_namespaced_resource_claim_template_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", - '201': "V1ResourceClaimTemplate", + '200': "V1DeviceTaintRule", '401': None, } response_data = await self.api_client.call_api( @@ -9601,16 +13403,10 @@ async def patch_namespaced_resource_claim_template_with_http_info( @validate_call(config={'defer_build': True}) - async def patch_namespaced_resource_claim_template_without_preload_content( + async def read_device_taint_rule_status_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9624,26 +13420,14 @@ async def patch_namespaced_resource_claim_template_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """patch_namespaced_resource_claim_template + """read_device_taint_rule_status - partially update the specified ResourceClaimTemplate + read status of the specified DeviceTaintRule - :param name: name of the ResourceClaimTemplate (required) + :param name: name of the DeviceTaintRule (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9666,15 +13450,9 @@ async def patch_namespaced_resource_claim_template_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_namespaced_resource_claim_template_serialize( + _param = await self._read_device_taint_rule_status_serialize( name=name, - namespace=namespace, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9682,8 +13460,7 @@ async def patch_namespaced_resource_claim_template_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", - '201': "V1ResourceClaimTemplate", + '200': "V1DeviceTaintRule", '401': None, } response_data = await self.api_client.call_api( @@ -9694,16 +13471,10 @@ async def patch_namespaced_resource_claim_template_without_preload_content( return response_data.response - async def _patch_namespaced_resource_claim_template_serialize( + async def _read_device_taint_rule_status_serialize( self, name, - namespace, - body, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -9727,34 +13498,14 @@ async def _patch_namespaced_resource_claim_template_serialize( # process the path parameters if name is not None: _path_params['name'] = name - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -9768,23 +13519,6 @@ async def _patch_namespaced_resource_claim_template_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -9792,8 +13526,8 @@ async def _patch_namespaced_resource_claim_template_serialize( ] return await self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', + method='GET', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9810,15 +13544,11 @@ async def _patch_namespaced_resource_claim_template_serialize( @validate_call(config={'defer_build': True}) - async def patch_resource_slice( + async def read_namespaced_resource_claim( self, - name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9831,25 +13561,17 @@ async def patch_resource_slice( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceSlice: - """patch_resource_slice + ) -> ResourceV1ResourceClaim: + """read_namespaced_resource_claim - partially update the specified ResourceSlice + read the specified ResourceClaim - :param name: name of the ResourceSlice (required) + :param name: name of the ResourceClaim (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9872,14 +13594,10 @@ async def patch_resource_slice( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_resource_slice_serialize( + _param = await self._read_namespaced_resource_claim_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9887,8 +13605,7 @@ async def patch_resource_slice( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", - '201': "V1ResourceSlice", + '200': "ResourceV1ResourceClaim", '401': None, } response_data = await self.api_client.call_api( @@ -9903,15 +13620,11 @@ async def patch_resource_slice( @validate_call(config={'defer_build': True}) - async def patch_resource_slice_with_http_info( + async def read_namespaced_resource_claim_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9924,25 +13637,17 @@ async def patch_resource_slice_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ResourceSlice]: - """patch_resource_slice + ) -> ApiResponse[ResourceV1ResourceClaim]: + """read_namespaced_resource_claim - partially update the specified ResourceSlice + read the specified ResourceClaim - :param name: name of the ResourceSlice (required) + :param name: name of the ResourceClaim (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9965,14 +13670,10 @@ async def patch_resource_slice_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_resource_slice_serialize( + _param = await self._read_namespaced_resource_claim_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9980,8 +13681,7 @@ async def patch_resource_slice_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", - '201': "V1ResourceSlice", + '200': "ResourceV1ResourceClaim", '401': None, } response_data = await self.api_client.call_api( @@ -9996,15 +13696,11 @@ async def patch_resource_slice_with_http_info( @validate_call(config={'defer_build': True}) - async def patch_resource_slice_without_preload_content( + async def read_namespaced_resource_claim_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10018,24 +13714,16 @@ async def patch_resource_slice_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """patch_resource_slice + """read_namespaced_resource_claim - partially update the specified ResourceSlice + read the specified ResourceClaim - :param name: name of the ResourceSlice (required) + :param name: name of the ResourceClaim (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10058,14 +13746,10 @@ async def patch_resource_slice_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_resource_slice_serialize( + _param = await self._read_namespaced_resource_claim_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10073,8 +13757,7 @@ async def patch_resource_slice_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", - '201': "V1ResourceSlice", + '200': "ResourceV1ResourceClaim", '401': None, } response_data = await self.api_client.call_api( @@ -10085,15 +13768,11 @@ async def patch_resource_slice_without_preload_content( return response_data.response - async def _patch_resource_slice_serialize( + async def _read_namespaced_resource_claim_serialize( self, name, - body, + namespace, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -10117,32 +13796,16 @@ async def _patch_resource_slice_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -10156,23 +13819,6 @@ async def _patch_resource_slice_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -10180,8 +13826,8 @@ async def _patch_resource_slice_serialize( ] return await self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/resource.k8s.io/v1/resourceslices/{name}', + method='GET', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10198,9 +13844,10 @@ async def _patch_resource_slice_serialize( @validate_call(config={'defer_build': True}) - async def read_device_class( + async def read_namespaced_resource_claim_status( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -10214,13 +13861,15 @@ async def read_device_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceClass: - """read_device_class + ) -> ResourceV1ResourceClaim: + """read_namespaced_resource_claim_status - read the specified DeviceClass + read status of the specified ResourceClaim - :param name: name of the DeviceClass (required) + :param name: name of the ResourceClaim (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :param _request_timeout: timeout setting for this request. If one @@ -10245,8 +13894,9 @@ async def read_device_class( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_device_class_serialize( + _param = await self._read_namespaced_resource_claim_status_serialize( name=name, + namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -10255,7 +13905,7 @@ async def read_device_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", + '200': "ResourceV1ResourceClaim", '401': None, } response_data = await self.api_client.call_api( @@ -10270,9 +13920,10 @@ async def read_device_class( @validate_call(config={'defer_build': True}) - async def read_device_class_with_http_info( + async def read_namespaced_resource_claim_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -10286,13 +13937,15 @@ async def read_device_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1DeviceClass]: - """read_device_class + ) -> ApiResponse[ResourceV1ResourceClaim]: + """read_namespaced_resource_claim_status - read the specified DeviceClass + read status of the specified ResourceClaim - :param name: name of the DeviceClass (required) + :param name: name of the ResourceClaim (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :param _request_timeout: timeout setting for this request. If one @@ -10317,8 +13970,9 @@ async def read_device_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_device_class_serialize( + _param = await self._read_namespaced_resource_claim_status_serialize( name=name, + namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -10327,7 +13981,7 @@ async def read_device_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", + '200': "ResourceV1ResourceClaim", '401': None, } response_data = await self.api_client.call_api( @@ -10342,9 +13996,10 @@ async def read_device_class_with_http_info( @validate_call(config={'defer_build': True}) - async def read_device_class_without_preload_content( + async def read_namespaced_resource_claim_status_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -10359,12 +14014,14 @@ async def read_device_class_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """read_device_class + """read_namespaced_resource_claim_status - read the specified DeviceClass + read status of the specified ResourceClaim - :param name: name of the DeviceClass (required) + :param name: name of the ResourceClaim (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :param _request_timeout: timeout setting for this request. If one @@ -10389,8 +14046,9 @@ async def read_device_class_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_device_class_serialize( + _param = await self._read_namespaced_resource_claim_status_serialize( name=name, + namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -10399,7 +14057,7 @@ async def read_device_class_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", + '200': "ResourceV1ResourceClaim", '401': None, } response_data = await self.api_client.call_api( @@ -10410,9 +14068,10 @@ async def read_device_class_without_preload_content( return response_data.response - async def _read_device_class_serialize( + async def _read_namespaced_resource_claim_status_serialize( self, name, + namespace, pretty, _request_auth, _content_type, @@ -10437,6 +14096,8 @@ async def _read_device_class_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -10466,7 +14127,7 @@ async def _read_device_class_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/resource.k8s.io/v1/deviceclasses/{name}', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10483,9 +14144,9 @@ async def _read_device_class_serialize( @validate_call(config={'defer_build': True}) - async def read_namespaced_resource_claim( + async def read_namespaced_resource_claim_template( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ @@ -10500,12 +14161,12 @@ async def read_namespaced_resource_claim( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ResourceV1ResourceClaim: - """read_namespaced_resource_claim + ) -> V1ResourceClaimTemplate: + """read_namespaced_resource_claim_template - read the specified ResourceClaim + read the specified ResourceClaimTemplate - :param name: name of the ResourceClaim (required) + :param name: name of the ResourceClaimTemplate (required) :type name: str :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str @@ -10533,7 +14194,7 @@ async def read_namespaced_resource_claim( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_namespaced_resource_claim_serialize( + _param = await self._read_namespaced_resource_claim_template_serialize( name=name, namespace=namespace, pretty=pretty, @@ -10544,7 +14205,7 @@ async def read_namespaced_resource_claim( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", + '200': "V1ResourceClaimTemplate", '401': None, } response_data = await self.api_client.call_api( @@ -10559,9 +14220,9 @@ async def read_namespaced_resource_claim( @validate_call(config={'defer_build': True}) - async def read_namespaced_resource_claim_with_http_info( + async def read_namespaced_resource_claim_template_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ @@ -10576,12 +14237,12 @@ async def read_namespaced_resource_claim_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ResourceV1ResourceClaim]: - """read_namespaced_resource_claim + ) -> ApiResponse[V1ResourceClaimTemplate]: + """read_namespaced_resource_claim_template - read the specified ResourceClaim + read the specified ResourceClaimTemplate - :param name: name of the ResourceClaim (required) + :param name: name of the ResourceClaimTemplate (required) :type name: str :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str @@ -10609,7 +14270,7 @@ async def read_namespaced_resource_claim_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_namespaced_resource_claim_serialize( + _param = await self._read_namespaced_resource_claim_template_serialize( name=name, namespace=namespace, pretty=pretty, @@ -10620,7 +14281,7 @@ async def read_namespaced_resource_claim_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", + '200': "V1ResourceClaimTemplate", '401': None, } response_data = await self.api_client.call_api( @@ -10635,9 +14296,9 @@ async def read_namespaced_resource_claim_with_http_info( @validate_call(config={'defer_build': True}) - async def read_namespaced_resource_claim_without_preload_content( + async def read_namespaced_resource_claim_template_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ @@ -10653,11 +14314,11 @@ async def read_namespaced_resource_claim_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """read_namespaced_resource_claim + """read_namespaced_resource_claim_template - read the specified ResourceClaim + read the specified ResourceClaimTemplate - :param name: name of the ResourceClaim (required) + :param name: name of the ResourceClaimTemplate (required) :type name: str :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str @@ -10685,7 +14346,7 @@ async def read_namespaced_resource_claim_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_namespaced_resource_claim_serialize( + _param = await self._read_namespaced_resource_claim_template_serialize( name=name, namespace=namespace, pretty=pretty, @@ -10696,7 +14357,7 @@ async def read_namespaced_resource_claim_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", + '200': "V1ResourceClaimTemplate", '401': None, } response_data = await self.api_client.call_api( @@ -10707,7 +14368,7 @@ async def read_namespaced_resource_claim_without_preload_content( return response_data.response - async def _read_namespaced_resource_claim_serialize( + async def _read_namespaced_resource_claim_template_serialize( self, name, namespace, @@ -10766,7 +14427,7 @@ async def _read_namespaced_resource_claim_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10783,10 +14444,9 @@ async def _read_namespaced_resource_claim_serialize( @validate_call(config={'defer_build': True}) - async def read_namespaced_resource_claim_status( + async def read_resource_slice( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -10800,15 +14460,13 @@ async def read_namespaced_resource_claim_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ResourceV1ResourceClaim: - """read_namespaced_resource_claim_status + ) -> V1ResourceSlice: + """read_resource_slice - read status of the specified ResourceClaim + read the specified ResourceSlice - :param name: name of the ResourceClaim (required) + :param name: name of the ResourceSlice (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :param _request_timeout: timeout setting for this request. If one @@ -10833,9 +14491,8 @@ async def read_namespaced_resource_claim_status( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_namespaced_resource_claim_status_serialize( + _param = await self._read_resource_slice_serialize( name=name, - namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -10844,7 +14501,7 @@ async def read_namespaced_resource_claim_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", + '200': "V1ResourceSlice", '401': None, } response_data = await self.api_client.call_api( @@ -10859,10 +14516,9 @@ async def read_namespaced_resource_claim_status( @validate_call(config={'defer_build': True}) - async def read_namespaced_resource_claim_status_with_http_info( + async def read_resource_slice_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -10876,15 +14532,13 @@ async def read_namespaced_resource_claim_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ResourceV1ResourceClaim]: - """read_namespaced_resource_claim_status + ) -> ApiResponse[V1ResourceSlice]: + """read_resource_slice - read status of the specified ResourceClaim + read the specified ResourceSlice - :param name: name of the ResourceClaim (required) + :param name: name of the ResourceSlice (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :param _request_timeout: timeout setting for this request. If one @@ -10909,9 +14563,8 @@ async def read_namespaced_resource_claim_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_namespaced_resource_claim_status_serialize( + _param = await self._read_resource_slice_serialize( name=name, - namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -10920,7 +14573,7 @@ async def read_namespaced_resource_claim_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", + '200': "V1ResourceSlice", '401': None, } response_data = await self.api_client.call_api( @@ -10935,10 +14588,9 @@ async def read_namespaced_resource_claim_status_with_http_info( @validate_call(config={'defer_build': True}) - async def read_namespaced_resource_claim_status_without_preload_content( + async def read_resource_slice_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -10953,14 +14605,12 @@ async def read_namespaced_resource_claim_status_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """read_namespaced_resource_claim_status + """read_resource_slice - read status of the specified ResourceClaim + read the specified ResourceSlice - :param name: name of the ResourceClaim (required) + :param name: name of the ResourceSlice (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :param _request_timeout: timeout setting for this request. If one @@ -10985,9 +14635,8 @@ async def read_namespaced_resource_claim_status_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_namespaced_resource_claim_status_serialize( + _param = await self._read_resource_slice_serialize( name=name, - namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -10996,7 +14645,7 @@ async def read_namespaced_resource_claim_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", + '200': "V1ResourceSlice", '401': None, } response_data = await self.api_client.call_api( @@ -11007,10 +14656,9 @@ async def read_namespaced_resource_claim_status_without_preload_content( return response_data.response - async def _read_namespaced_resource_claim_status_serialize( + async def _read_resource_slice_serialize( self, name, - namespace, pretty, _request_auth, _content_type, @@ -11035,8 +14683,6 @@ async def _read_namespaced_resource_claim_status_serialize( # process the path parameters if name is not None: _path_params['name'] = name - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -11066,7 +14712,7 @@ async def _read_namespaced_resource_claim_status_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status', + resource_path='/apis/resource.k8s.io/v1/resourceslices/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11083,11 +14729,14 @@ async def _read_namespaced_resource_claim_status_serialize( @validate_call(config={'defer_build': True}) - async def read_namespaced_resource_claim_template( + async def replace_device_class( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + body: V1DeviceClass, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11100,17 +14749,23 @@ async def read_namespaced_resource_claim_template( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceClaimTemplate: - """read_namespaced_resource_claim_template + ) -> V1DeviceClass: + """replace_device_class - read the specified ResourceClaimTemplate + replace the specified DeviceClass - :param name: name of the ResourceClaimTemplate (required) + :param name: name of the DeviceClass (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str + :param body: (required) + :type body: V1DeviceClass :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11133,10 +14788,13 @@ async def read_namespaced_resource_claim_template( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_namespaced_resource_claim_template_serialize( + _param = await self._replace_device_class_serialize( name=name, - namespace=namespace, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11144,7 +14802,8 @@ async def read_namespaced_resource_claim_template( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", + '200': "V1DeviceClass", + '201': "V1DeviceClass", '401': None, } response_data = await self.api_client.call_api( @@ -11159,11 +14818,14 @@ async def read_namespaced_resource_claim_template( @validate_call(config={'defer_build': True}) - async def read_namespaced_resource_claim_template_with_http_info( + async def replace_device_class_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + body: V1DeviceClass, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11176,17 +14838,23 @@ async def read_namespaced_resource_claim_template_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ResourceClaimTemplate]: - """read_namespaced_resource_claim_template + ) -> ApiResponse[V1DeviceClass]: + """replace_device_class - read the specified ResourceClaimTemplate + replace the specified DeviceClass - :param name: name of the ResourceClaimTemplate (required) + :param name: name of the DeviceClass (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str + :param body: (required) + :type body: V1DeviceClass :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11209,10 +14877,13 @@ async def read_namespaced_resource_claim_template_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_namespaced_resource_claim_template_serialize( + _param = await self._replace_device_class_serialize( name=name, - namespace=namespace, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11220,7 +14891,8 @@ async def read_namespaced_resource_claim_template_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", + '200': "V1DeviceClass", + '201': "V1DeviceClass", '401': None, } response_data = await self.api_client.call_api( @@ -11235,11 +14907,14 @@ async def read_namespaced_resource_claim_template_with_http_info( @validate_call(config={'defer_build': True}) - async def read_namespaced_resource_claim_template_without_preload_content( + async def replace_device_class_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + body: V1DeviceClass, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11253,16 +14928,22 @@ async def read_namespaced_resource_claim_template_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """read_namespaced_resource_claim_template + """replace_device_class - read the specified ResourceClaimTemplate + replace the specified DeviceClass - :param name: name of the ResourceClaimTemplate (required) + :param name: name of the DeviceClass (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str + :param body: (required) + :type body: V1DeviceClass :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11285,10 +14966,13 @@ async def read_namespaced_resource_claim_template_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_namespaced_resource_claim_template_serialize( + _param = await self._replace_device_class_serialize( name=name, - namespace=namespace, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11296,7 +14980,8 @@ async def read_namespaced_resource_claim_template_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", + '200': "V1DeviceClass", + '201': "V1DeviceClass", '401': None, } response_data = await self.api_client.call_api( @@ -11307,11 +14992,14 @@ async def read_namespaced_resource_claim_template_without_preload_content( return response_data.response - async def _read_namespaced_resource_claim_template_serialize( + async def _replace_device_class_serialize( self, name, - namespace, + body, pretty, + dry_run, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -11335,16 +15023,28 @@ async def _read_namespaced_resource_claim_template_serialize( # process the path parameters if name is not None: _path_params['name'] = name - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -11365,8 +15065,8 @@ async def _read_namespaced_resource_claim_template_serialize( ] return await self.api_client.param_serialize( - method='GET', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', + method='PUT', + resource_path='/apis/resource.k8s.io/v1/deviceclasses/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11383,10 +15083,14 @@ async def _read_namespaced_resource_claim_template_serialize( @validate_call(config={'defer_build': True}) - async def read_resource_slice( + async def replace_device_taint_rule( self, - name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: V1DeviceTaintRule, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11399,15 +15103,23 @@ async def read_resource_slice( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceSlice: - """read_resource_slice + ) -> V1DeviceTaintRule: + """replace_device_taint_rule - read the specified ResourceSlice + replace the specified DeviceTaintRule - :param name: name of the ResourceSlice (required) + :param name: name of the DeviceTaintRule (required) :type name: str + :param body: (required) + :type body: V1DeviceTaintRule :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11430,9 +15142,13 @@ async def read_resource_slice( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_resource_slice_serialize( + _param = await self._replace_device_taint_rule_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11440,7 +15156,8 @@ async def read_resource_slice( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", '401': None, } response_data = await self.api_client.call_api( @@ -11455,10 +15172,14 @@ async def read_resource_slice( @validate_call(config={'defer_build': True}) - async def read_resource_slice_with_http_info( + async def replace_device_taint_rule_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: V1DeviceTaintRule, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11471,15 +15192,23 @@ async def read_resource_slice_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ResourceSlice]: - """read_resource_slice + ) -> ApiResponse[V1DeviceTaintRule]: + """replace_device_taint_rule - read the specified ResourceSlice + replace the specified DeviceTaintRule - :param name: name of the ResourceSlice (required) + :param name: name of the DeviceTaintRule (required) :type name: str + :param body: (required) + :type body: V1DeviceTaintRule :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11502,9 +15231,13 @@ async def read_resource_slice_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_resource_slice_serialize( + _param = await self._replace_device_taint_rule_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11512,7 +15245,8 @@ async def read_resource_slice_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", '401': None, } response_data = await self.api_client.call_api( @@ -11527,10 +15261,14 @@ async def read_resource_slice_with_http_info( @validate_call(config={'defer_build': True}) - async def read_resource_slice_without_preload_content( + async def replace_device_taint_rule_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: V1DeviceTaintRule, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11544,14 +15282,22 @@ async def read_resource_slice_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """read_resource_slice + """replace_device_taint_rule - read the specified ResourceSlice + replace the specified DeviceTaintRule - :param name: name of the ResourceSlice (required) + :param name: name of the DeviceTaintRule (required) :type name: str + :param body: (required) + :type body: V1DeviceTaintRule :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11574,9 +15320,13 @@ async def read_resource_slice_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_resource_slice_serialize( + _param = await self._replace_device_taint_rule_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11584,7 +15334,8 @@ async def read_resource_slice_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", '401': None, } response_data = await self.api_client.call_api( @@ -11595,10 +15346,14 @@ async def read_resource_slice_without_preload_content( return response_data.response - async def _read_resource_slice_serialize( + async def _replace_device_taint_rule_serialize( self, name, + body, pretty, + dry_run, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -11627,9 +15382,23 @@ async def _read_resource_slice_serialize( _query_params.append(('pretty', pretty)) + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -11650,8 +15419,8 @@ async def _read_resource_slice_serialize( ] return await self.api_client.param_serialize( - method='GET', - resource_path='/apis/resource.k8s.io/v1/resourceslices/{name}', + method='PUT', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11668,10 +15437,10 @@ async def _read_resource_slice_serialize( @validate_call(config={'defer_build': True}) - async def replace_device_class( + async def replace_device_taint_rule_status( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], - body: V1DeviceClass, + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: V1DeviceTaintRule, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -11688,15 +15457,15 @@ async def replace_device_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceClass: - """replace_device_class + ) -> V1DeviceTaintRule: + """replace_device_taint_rule_status - replace the specified DeviceClass + replace status of the specified DeviceTaintRule - :param name: name of the DeviceClass (required) + :param name: name of the DeviceTaintRule (required) :type name: str :param body: (required) - :type body: V1DeviceClass + :type body: V1DeviceTaintRule :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -11727,7 +15496,7 @@ async def replace_device_class( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_device_class_serialize( + _param = await self._replace_device_taint_rule_status_serialize( name=name, body=body, pretty=pretty, @@ -11741,8 +15510,8 @@ async def replace_device_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", - '201': "V1DeviceClass", + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", '401': None, } response_data = await self.api_client.call_api( @@ -11757,10 +15526,10 @@ async def replace_device_class( @validate_call(config={'defer_build': True}) - async def replace_device_class_with_http_info( + async def replace_device_taint_rule_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], - body: V1DeviceClass, + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: V1DeviceTaintRule, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -11777,15 +15546,15 @@ async def replace_device_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1DeviceClass]: - """replace_device_class + ) -> ApiResponse[V1DeviceTaintRule]: + """replace_device_taint_rule_status - replace the specified DeviceClass + replace status of the specified DeviceTaintRule - :param name: name of the DeviceClass (required) + :param name: name of the DeviceTaintRule (required) :type name: str :param body: (required) - :type body: V1DeviceClass + :type body: V1DeviceTaintRule :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -11816,7 +15585,7 @@ async def replace_device_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_device_class_serialize( + _param = await self._replace_device_taint_rule_status_serialize( name=name, body=body, pretty=pretty, @@ -11830,8 +15599,8 @@ async def replace_device_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", - '201': "V1DeviceClass", + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", '401': None, } response_data = await self.api_client.call_api( @@ -11846,10 +15615,10 @@ async def replace_device_class_with_http_info( @validate_call(config={'defer_build': True}) - async def replace_device_class_without_preload_content( + async def replace_device_taint_rule_status_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], - body: V1DeviceClass, + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: V1DeviceTaintRule, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -11867,14 +15636,14 @@ async def replace_device_class_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """replace_device_class + """replace_device_taint_rule_status - replace the specified DeviceClass + replace status of the specified DeviceTaintRule - :param name: name of the DeviceClass (required) + :param name: name of the DeviceTaintRule (required) :type name: str :param body: (required) - :type body: V1DeviceClass + :type body: V1DeviceTaintRule :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -11905,7 +15674,7 @@ async def replace_device_class_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_device_class_serialize( + _param = await self._replace_device_taint_rule_status_serialize( name=name, body=body, pretty=pretty, @@ -11919,8 +15688,8 @@ async def replace_device_class_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", - '201': "V1DeviceClass", + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", '401': None, } response_data = await self.api_client.call_api( @@ -11931,7 +15700,7 @@ async def replace_device_class_without_preload_content( return response_data.response - async def _replace_device_class_serialize( + async def _replace_device_taint_rule_status_serialize( self, name, body, @@ -12005,7 +15774,7 @@ async def _replace_device_class_serialize( return await self.api_client.param_serialize( method='PUT', - resource_path='/apis/resource.k8s.io/v1/deviceclasses/{name}', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/kubernetes/aio/client/api/resource_v1alpha3_api.py b/kubernetes/aio/client/api/resource_v1alpha3_api.py index c9669da860..5778fa0241 100644 --- a/kubernetes/aio/client/api/resource_v1alpha3_api.py +++ b/kubernetes/aio/client/api/resource_v1alpha3_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/resource_v1beta1_api.py b/kubernetes/aio/client/api/resource_v1beta1_api.py index e4dbb70f88..d69800aec2 100644 --- a/kubernetes/aio/client/api/resource_v1beta1_api.py +++ b/kubernetes/aio/client/api/resource_v1beta1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/resource_v1beta2_api.py b/kubernetes/aio/client/api/resource_v1beta2_api.py index dd3919584f..5ee6283d72 100644 --- a/kubernetes/aio/client/api/resource_v1beta2_api.py +++ b/kubernetes/aio/client/api/resource_v1beta2_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/scheduling_api.py b/kubernetes/aio/client/api/scheduling_api.py index 48f2703a62..67b9d31709 100644 --- a/kubernetes/aio/client/api/scheduling_api.py +++ b/kubernetes/aio/client/api/scheduling_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/scheduling_v1_api.py b/kubernetes/aio/client/api/scheduling_v1_api.py index 736bafc9ba..523b5e1146 100644 --- a/kubernetes/aio/client/api/scheduling_v1_api.py +++ b/kubernetes/aio/client/api/scheduling_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/scheduling_v1alpha3_api.py b/kubernetes/aio/client/api/scheduling_v1alpha3_api.py new file mode 100644 index 0000000000..4e3823b0b5 --- /dev/null +++ b/kubernetes/aio/client/api/scheduling_v1alpha3_api.py @@ -0,0 +1,12375 @@ +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import warnings +from pydantic import BaseModel, validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictBool, StrictInt, StrictStr +from typing import Any, Dict, Optional +from typing_extensions import Annotated +from kubernetes.aio.client.models.v1_api_resource_list import V1APIResourceList +from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.aio.client.models.v1_status import V1Status +from kubernetes.aio.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup +from kubernetes.aio.client.models.v1alpha3_composite_pod_group_list import V1alpha3CompositePodGroupList +from kubernetes.aio.client.models.v1alpha3_pod_group import V1alpha3PodGroup +from kubernetes.aio.client.models.v1alpha3_pod_group_list import V1alpha3PodGroupList +from kubernetes.aio.client.models.v1alpha3_workload import V1alpha3Workload +from kubernetes.aio.client.models.v1alpha3_workload_list import V1alpha3WorkloadList + +from kubernetes.aio.client.api_client import ApiClient, RequestSerialized +from kubernetes.aio.client.api_response import ApiResponse +from kubernetes.aio.client.rest import RESTResponseType + + +class SchedulingV1alpha3Api: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + # api_client remains publicly assignable. Retain the client acquired at + # construction so reassignment cannot transfer or discard ownership. + if api_client is None: + api_client, owns_api_client = ApiClient._get_default_or_new() + else: + owns_api_client = False + self.api_client = api_client + self._owned_api_client: Optional[ApiClient] = ( + api_client if owns_api_client else None + ) + + async def close(self) -> None: + owned_api_client = self._owned_api_client + self._owned_api_client = None + if owned_api_client is not None: + await owned_api_client.close() + + async def __aenter__(self): + return self + + async def __aexit__(self, exc_type, exc_value, traceback): + await self.close() + + + @validate_call(config={'defer_build': True}) + async def create_namespaced_composite_pod_group( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3CompositePodGroup, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3CompositePodGroup: + """create_namespaced_composite_pod_group + + create a CompositePodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3CompositePodGroup + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._create_namespaced_composite_pod_group_serialize( + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '202': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def create_namespaced_composite_pod_group_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3CompositePodGroup, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3CompositePodGroup]: + """create_namespaced_composite_pod_group + + create a CompositePodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3CompositePodGroup + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._create_namespaced_composite_pod_group_serialize( + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '202': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def create_namespaced_composite_pod_group_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3CompositePodGroup, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """create_namespaced_composite_pod_group + + create a CompositePodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3CompositePodGroup + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._create_namespaced_composite_pod_group_serialize( + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '202': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _create_namespaced_composite_pod_group_serialize( + self, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='POST', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def create_namespaced_pod_group( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3PodGroup, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3PodGroup: + """create_namespaced_pod_group + + create a PodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3PodGroup + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._create_namespaced_pod_group_serialize( + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '202': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def create_namespaced_pod_group_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3PodGroup, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3PodGroup]: + """create_namespaced_pod_group + + create a PodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3PodGroup + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._create_namespaced_pod_group_serialize( + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '202': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def create_namespaced_pod_group_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3PodGroup, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """create_namespaced_pod_group + + create a PodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3PodGroup + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._create_namespaced_pod_group_serialize( + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '202': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _create_namespaced_pod_group_serialize( + self, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='POST', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def create_namespaced_workload( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3Workload, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3Workload: + """create_namespaced_workload + + create a Workload + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3Workload + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._create_namespaced_workload_serialize( + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3Workload", + '201': "V1alpha3Workload", + '202': "V1alpha3Workload", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def create_namespaced_workload_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3Workload, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3Workload]: + """create_namespaced_workload + + create a Workload + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3Workload + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._create_namespaced_workload_serialize( + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3Workload", + '201': "V1alpha3Workload", + '202': "V1alpha3Workload", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def create_namespaced_workload_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3Workload, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """create_namespaced_workload + + create a Workload + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3Workload + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._create_namespaced_workload_serialize( + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3Workload", + '201': "V1alpha3Workload", + '202': "V1alpha3Workload", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _create_namespaced_workload_serialize( + self, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='POST', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def delete_collection_namespaced_composite_pod_group( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1Status: + """delete_collection_namespaced_composite_pod_group + + delete collection of CompositePodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_namespaced_composite_pod_group_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def delete_collection_namespaced_composite_pod_group_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1Status]: + """delete_collection_namespaced_composite_pod_group + + delete collection of CompositePodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_namespaced_composite_pod_group_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def delete_collection_namespaced_composite_pod_group_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_collection_namespaced_composite_pod_group + + delete collection of CompositePodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_namespaced_composite_pod_group_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _delete_collection_namespaced_composite_pod_group_serialize( + self, + namespace, + pretty, + _continue, + dry_run, + field_selector, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, + orphan_dependents, + propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def delete_collection_namespaced_pod_group( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1Status: + """delete_collection_namespaced_pod_group + + delete collection of PodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_namespaced_pod_group_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def delete_collection_namespaced_pod_group_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1Status]: + """delete_collection_namespaced_pod_group + + delete collection of PodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_namespaced_pod_group_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def delete_collection_namespaced_pod_group_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_collection_namespaced_pod_group + + delete collection of PodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_namespaced_pod_group_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _delete_collection_namespaced_pod_group_serialize( + self, + namespace, + pretty, + _continue, + dry_run, + field_selector, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, + orphan_dependents, + propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def delete_collection_namespaced_workload( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1Status: + """delete_collection_namespaced_workload + + delete collection of Workload + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_namespaced_workload_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def delete_collection_namespaced_workload_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1Status]: + """delete_collection_namespaced_workload + + delete collection of Workload + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_namespaced_workload_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def delete_collection_namespaced_workload_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_collection_namespaced_workload + + delete collection of Workload + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_collection_namespaced_workload_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _delete_collection_namespaced_workload_serialize( + self, + namespace, + pretty, + _continue, + dry_run, + field_selector, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, + orphan_dependents, + propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def delete_namespaced_composite_pod_group( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """delete_namespaced_composite_pod_group + + delete a CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_namespaced_composite_pod_group_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def delete_namespaced_composite_pod_group_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """delete_namespaced_composite_pod_group + + delete a CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_namespaced_composite_pod_group_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def delete_namespaced_composite_pod_group_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_namespaced_composite_pod_group + + delete a CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_namespaced_composite_pod_group_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _delete_namespaced_composite_pod_group_serialize( + self, + name, + namespace, + pretty, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def delete_namespaced_pod_group( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """delete_namespaced_pod_group + + delete a PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_namespaced_pod_group_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def delete_namespaced_pod_group_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """delete_namespaced_pod_group + + delete a PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_namespaced_pod_group_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def delete_namespaced_pod_group_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_namespaced_pod_group + + delete a PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_namespaced_pod_group_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _delete_namespaced_pod_group_serialize( + self, + name, + namespace, + pretty, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def delete_namespaced_workload( + self, + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """delete_namespaced_workload + + delete a Workload + + :param name: name of the Workload (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_namespaced_workload_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def delete_namespaced_workload_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """delete_namespaced_workload + + delete a Workload + + :param name: name of the Workload (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_namespaced_workload_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def delete_namespaced_workload_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_namespaced_workload + + delete a Workload + + :param name: name of the Workload (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._delete_namespaced_workload_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _delete_namespaced_workload_serialize( + self, + name, + namespace, + pretty, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def get_api_resources( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1APIResourceList: + """get_api_resources + + get available resources + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._get_api_resources_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1APIResourceList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def get_api_resources_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1APIResourceList]: + """get_api_resources + + get available resources + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._get_api_resources_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1APIResourceList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def get_api_resources_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_api_resources + + get available resources + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._get_api_resources_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1APIResourceList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _get_api_resources_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_composite_pod_group_for_all_namespaces( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3CompositePodGroupList: + """list_composite_pod_group_for_all_namespaces + + list or watch objects of kind CompositePodGroup + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_composite_pod_group_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroupList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_composite_pod_group_for_all_namespaces_with_http_info( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3CompositePodGroupList]: + """list_composite_pod_group_for_all_namespaces + + list or watch objects of kind CompositePodGroup + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_composite_pod_group_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroupList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_composite_pod_group_for_all_namespaces_without_preload_content( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_composite_pod_group_for_all_namespaces + + list or watch objects of kind CompositePodGroup + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_composite_pod_group_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroupList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_composite_pod_group_for_all_namespaces_serialize( + self, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + pretty, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/compositepodgroups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_composite_pod_group( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3CompositePodGroupList: + """list_namespaced_composite_pod_group + + list or watch objects of kind CompositePodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_composite_pod_group_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroupList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_composite_pod_group_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3CompositePodGroupList]: + """list_namespaced_composite_pod_group + + list or watch objects of kind CompositePodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_composite_pod_group_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroupList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_composite_pod_group_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_namespaced_composite_pod_group + + list or watch objects of kind CompositePodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_composite_pod_group_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroupList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_namespaced_composite_pod_group_serialize( + self, + namespace, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_pod_group( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3PodGroupList: + """list_namespaced_pod_group + + list or watch objects of kind PodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_pod_group_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroupList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_pod_group_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3PodGroupList]: + """list_namespaced_pod_group + + list or watch objects of kind PodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_pod_group_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroupList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_pod_group_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_namespaced_pod_group + + list or watch objects of kind PodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_pod_group_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroupList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_namespaced_pod_group_serialize( + self, + namespace, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_workload( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3WorkloadList: + """list_namespaced_workload + + list or watch objects of kind Workload + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_workload_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3WorkloadList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_workload_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3WorkloadList]: + """list_namespaced_workload + + list or watch objects of kind Workload + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_workload_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3WorkloadList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_namespaced_workload_without_preload_content( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_namespaced_workload + + list or watch objects of kind Workload + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_namespaced_workload_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3WorkloadList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_namespaced_workload_serialize( + self, + namespace, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_pod_group_for_all_namespaces( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3PodGroupList: + """list_pod_group_for_all_namespaces + + list or watch objects of kind PodGroup + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_pod_group_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroupList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_pod_group_for_all_namespaces_with_http_info( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3PodGroupList]: + """list_pod_group_for_all_namespaces + + list or watch objects of kind PodGroup + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_pod_group_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroupList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_pod_group_for_all_namespaces_without_preload_content( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_pod_group_for_all_namespaces + + list or watch objects of kind PodGroup + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_pod_group_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroupList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_pod_group_for_all_namespaces_serialize( + self, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + pretty, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/podgroups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def list_workload_for_all_namespaces( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3WorkloadList: + """list_workload_for_all_namespaces + + list or watch objects of kind Workload + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_workload_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3WorkloadList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def list_workload_for_all_namespaces_with_http_info( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3WorkloadList]: + """list_workload_for_all_namespaces + + list or watch objects of kind Workload + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_workload_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3WorkloadList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def list_workload_for_all_namespaces_without_preload_content( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """list_workload_for_all_namespaces + + list or watch objects of kind Workload + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._list_workload_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3WorkloadList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_workload_for_all_namespaces_serialize( + self, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + pretty, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/workloads', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_composite_pod_group( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3CompositePodGroup: + """patch_namespaced_composite_pod_group + + partially update the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_composite_pod_group_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_composite_pod_group_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3CompositePodGroup]: + """patch_namespaced_composite_pod_group + + partially update the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_composite_pod_group_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_composite_pod_group_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_namespaced_composite_pod_group + + partially update the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_composite_pod_group_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_namespaced_composite_pod_group_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_composite_pod_group_status( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3CompositePodGroup: + """patch_namespaced_composite_pod_group_status + + partially update status of the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_composite_pod_group_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_composite_pod_group_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3CompositePodGroup]: + """patch_namespaced_composite_pod_group_status + + partially update status of the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_composite_pod_group_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_composite_pod_group_status_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_namespaced_composite_pod_group_status + + partially update status of the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_composite_pod_group_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_namespaced_composite_pod_group_status_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_pod_group( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3PodGroup: + """patch_namespaced_pod_group + + partially update the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_pod_group_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_pod_group_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3PodGroup]: + """patch_namespaced_pod_group + + partially update the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_pod_group_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_pod_group_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_namespaced_pod_group + + partially update the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_pod_group_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_namespaced_pod_group_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_pod_group_status( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3PodGroup: + """patch_namespaced_pod_group_status + + partially update status of the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_pod_group_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_pod_group_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3PodGroup]: + """patch_namespaced_pod_group_status + + partially update status of the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_pod_group_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_pod_group_status_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_namespaced_pod_group_status + + partially update status of the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_pod_group_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_namespaced_pod_group_status_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_workload( + self, + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3Workload: + """patch_namespaced_workload + + partially update the specified Workload + + :param name: name of the Workload (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_workload_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3Workload", + '201': "V1alpha3Workload", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_workload_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3Workload]: + """patch_namespaced_workload + + partially update the specified Workload + + :param name: name of the Workload (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_workload_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3Workload", + '201': "V1alpha3Workload", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_namespaced_workload_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_namespaced_workload + + partially update the specified Workload + + :param name: name of the Workload (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_namespaced_workload_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3Workload", + '201': "V1alpha3Workload", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_namespaced_workload_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_composite_pod_group( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3CompositePodGroup: + """read_namespaced_composite_pod_group + + read the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_composite_pod_group_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_composite_pod_group_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3CompositePodGroup]: + """read_namespaced_composite_pod_group + + read the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_composite_pod_group_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_composite_pod_group_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """read_namespaced_composite_pod_group + + read the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_composite_pod_group_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _read_namespaced_composite_pod_group_serialize( + self, + name, + namespace, + pretty, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_composite_pod_group_status( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3CompositePodGroup: + """read_namespaced_composite_pod_group_status + + read status of the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_composite_pod_group_status_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_composite_pod_group_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3CompositePodGroup]: + """read_namespaced_composite_pod_group_status + + read status of the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_composite_pod_group_status_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_composite_pod_group_status_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """read_namespaced_composite_pod_group_status + + read status of the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_composite_pod_group_status_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _read_namespaced_composite_pod_group_status_serialize( + self, + name, + namespace, + pretty, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_pod_group( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3PodGroup: + """read_namespaced_pod_group + + read the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_pod_group_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_pod_group_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3PodGroup]: + """read_namespaced_pod_group + + read the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_pod_group_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_pod_group_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """read_namespaced_pod_group + + read the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_pod_group_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _read_namespaced_pod_group_serialize( + self, + name, + namespace, + pretty, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_pod_group_status( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3PodGroup: + """read_namespaced_pod_group_status + + read status of the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_pod_group_status_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_pod_group_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3PodGroup]: + """read_namespaced_pod_group_status + + read status of the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_pod_group_status_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_pod_group_status_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """read_namespaced_pod_group_status + + read status of the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_pod_group_status_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _read_namespaced_pod_group_status_serialize( + self, + name, + namespace, + pretty, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_workload( + self, + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3Workload: + """read_namespaced_workload + + read the specified Workload + + :param name: name of the Workload (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_workload_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3Workload", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_workload_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3Workload]: + """read_namespaced_workload + + read the specified Workload + + :param name: name of the Workload (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_workload_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3Workload", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def read_namespaced_workload_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """read_namespaced_workload + + read the specified Workload + + :param name: name of the Workload (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_namespaced_workload_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3Workload", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _read_namespaced_workload_serialize( + self, + name, + namespace, + pretty, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_composite_pod_group( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3CompositePodGroup, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3CompositePodGroup: + """replace_namespaced_composite_pod_group + + replace the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3CompositePodGroup + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_composite_pod_group_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_composite_pod_group_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3CompositePodGroup, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3CompositePodGroup]: + """replace_namespaced_composite_pod_group + + replace the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3CompositePodGroup + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_composite_pod_group_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_composite_pod_group_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3CompositePodGroup, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """replace_namespaced_composite_pod_group + + replace the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3CompositePodGroup + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_composite_pod_group_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _replace_namespaced_composite_pod_group_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PUT', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_composite_pod_group_status( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3CompositePodGroup, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3CompositePodGroup: + """replace_namespaced_composite_pod_group_status + + replace status of the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3CompositePodGroup + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_composite_pod_group_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_composite_pod_group_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3CompositePodGroup, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3CompositePodGroup]: + """replace_namespaced_composite_pod_group_status + + replace status of the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3CompositePodGroup + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_composite_pod_group_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_composite_pod_group_status_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3CompositePodGroup, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """replace_namespaced_composite_pod_group_status + + replace status of the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3CompositePodGroup + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_composite_pod_group_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _replace_namespaced_composite_pod_group_status_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PUT', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_pod_group( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3PodGroup, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3PodGroup: + """replace_namespaced_pod_group + + replace the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3PodGroup + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_pod_group_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_pod_group_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3PodGroup, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3PodGroup]: + """replace_namespaced_pod_group + + replace the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3PodGroup + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_pod_group_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_pod_group_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3PodGroup, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """replace_namespaced_pod_group + + replace the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3PodGroup + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_pod_group_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _replace_namespaced_pod_group_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PUT', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_pod_group_status( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3PodGroup, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3PodGroup: + """replace_namespaced_pod_group_status + + replace status of the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3PodGroup + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_pod_group_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_pod_group_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3PodGroup, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3PodGroup]: + """replace_namespaced_pod_group_status + + replace status of the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3PodGroup + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_pod_group_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_pod_group_status_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3PodGroup, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """replace_namespaced_pod_group_status + + replace status of the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3PodGroup + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_pod_group_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _replace_namespaced_pod_group_status_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PUT', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_workload( + self, + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3Workload, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3Workload: + """replace_namespaced_workload + + replace the specified Workload + + :param name: name of the Workload (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3Workload + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_workload_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3Workload", + '201': "V1alpha3Workload", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_workload_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3Workload, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1alpha3Workload]: + """replace_namespaced_workload + + replace the specified Workload + + :param name: name of the Workload (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3Workload + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_workload_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3Workload", + '201': "V1alpha3Workload", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def replace_namespaced_workload_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3Workload, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """replace_namespaced_workload + + replace the specified Workload + + :param name: name of the Workload (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3Workload + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._replace_namespaced_workload_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3Workload", + '201': "V1alpha3Workload", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _replace_namespaced_workload_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PUT', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) diff --git a/kubernetes/aio/client/api/scheduling_v1alpha2_api.py b/kubernetes/aio/client/api/scheduling_v1beta1_api.py similarity index 98% rename from kubernetes/aio/client/api/scheduling_v1alpha2_api.py rename to kubernetes/aio/client/api/scheduling_v1beta1_api.py index e09d01e9f1..71e748a274 100644 --- a/kubernetes/aio/client/api/scheduling_v1alpha2_api.py +++ b/kubernetes/aio/client/api/scheduling_v1beta1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,17 +21,17 @@ from kubernetes.aio.client.models.v1_api_resource_list import V1APIResourceList from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions from kubernetes.aio.client.models.v1_status import V1Status -from kubernetes.aio.client.models.v1alpha2_pod_group import V1alpha2PodGroup -from kubernetes.aio.client.models.v1alpha2_pod_group_list import V1alpha2PodGroupList -from kubernetes.aio.client.models.v1alpha2_workload import V1alpha2Workload -from kubernetes.aio.client.models.v1alpha2_workload_list import V1alpha2WorkloadList +from kubernetes.aio.client.models.v1beta1_pod_group import V1beta1PodGroup +from kubernetes.aio.client.models.v1beta1_pod_group_list import V1beta1PodGroupList +from kubernetes.aio.client.models.v1beta1_workload import V1beta1Workload +from kubernetes.aio.client.models.v1beta1_workload_list import V1beta1WorkloadList from kubernetes.aio.client.api_client import ApiClient, RequestSerialized from kubernetes.aio.client.api_response import ApiResponse from kubernetes.aio.client.rest import RESTResponseType -class SchedulingV1alpha2Api: +class SchedulingV1beta1Api: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech @@ -67,7 +67,7 @@ async def __aexit__(self, exc_type, exc_value, traceback): async def create_namespaced_pod_group( self, namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2PodGroup, + body: V1beta1PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -84,7 +84,7 @@ async def create_namespaced_pod_group( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2PodGroup: + ) -> V1beta1PodGroup: """create_namespaced_pod_group create a PodGroup @@ -92,7 +92,7 @@ async def create_namespaced_pod_group( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2PodGroup + :type body: V1beta1PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -137,9 +137,9 @@ async def create_namespaced_pod_group( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", - '202': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", + '202': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -157,7 +157,7 @@ async def create_namespaced_pod_group( async def create_namespaced_pod_group_with_http_info( self, namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2PodGroup, + body: V1beta1PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -174,7 +174,7 @@ async def create_namespaced_pod_group_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha2PodGroup]: + ) -> ApiResponse[V1beta1PodGroup]: """create_namespaced_pod_group create a PodGroup @@ -182,7 +182,7 @@ async def create_namespaced_pod_group_with_http_info( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2PodGroup + :type body: V1beta1PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -227,9 +227,9 @@ async def create_namespaced_pod_group_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", - '202': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", + '202': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -247,7 +247,7 @@ async def create_namespaced_pod_group_with_http_info( async def create_namespaced_pod_group_without_preload_content( self, namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2PodGroup, + body: V1beta1PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -272,7 +272,7 @@ async def create_namespaced_pod_group_without_preload_content( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2PodGroup + :type body: V1beta1PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -317,9 +317,9 @@ async def create_namespaced_pod_group_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", - '202': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", + '202': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -404,7 +404,7 @@ async def _create_namespaced_pod_group_serialize( return await self.api_client.param_serialize( method='POST', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -424,7 +424,7 @@ async def _create_namespaced_pod_group_serialize( async def create_namespaced_workload( self, namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2Workload, + body: V1beta1Workload, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -441,7 +441,7 @@ async def create_namespaced_workload( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2Workload: + ) -> V1beta1Workload: """create_namespaced_workload create a Workload @@ -449,7 +449,7 @@ async def create_namespaced_workload( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2Workload + :type body: V1beta1Workload :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -494,9 +494,9 @@ async def create_namespaced_workload( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", - '201': "V1alpha2Workload", - '202': "V1alpha2Workload", + '200': "V1beta1Workload", + '201': "V1beta1Workload", + '202': "V1beta1Workload", '401': None, } response_data = await self.api_client.call_api( @@ -514,7 +514,7 @@ async def create_namespaced_workload( async def create_namespaced_workload_with_http_info( self, namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2Workload, + body: V1beta1Workload, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -531,7 +531,7 @@ async def create_namespaced_workload_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha2Workload]: + ) -> ApiResponse[V1beta1Workload]: """create_namespaced_workload create a Workload @@ -539,7 +539,7 @@ async def create_namespaced_workload_with_http_info( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2Workload + :type body: V1beta1Workload :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -584,9 +584,9 @@ async def create_namespaced_workload_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", - '201': "V1alpha2Workload", - '202': "V1alpha2Workload", + '200': "V1beta1Workload", + '201': "V1beta1Workload", + '202': "V1beta1Workload", '401': None, } response_data = await self.api_client.call_api( @@ -604,7 +604,7 @@ async def create_namespaced_workload_with_http_info( async def create_namespaced_workload_without_preload_content( self, namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2Workload, + body: V1beta1Workload, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -629,7 +629,7 @@ async def create_namespaced_workload_without_preload_content( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2Workload + :type body: V1beta1Workload :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -674,9 +674,9 @@ async def create_namespaced_workload_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", - '201': "V1alpha2Workload", - '202': "V1alpha2Workload", + '200': "V1beta1Workload", + '201': "V1beta1Workload", + '202': "V1beta1Workload", '401': None, } response_data = await self.api_client.call_api( @@ -761,7 +761,7 @@ async def _create_namespaced_workload_serialize( return await self.api_client.param_serialize( method='POST', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1299,7 +1299,7 @@ async def _delete_collection_namespaced_pod_group_serialize( return await self.api_client.param_serialize( method='DELETE', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1837,7 +1837,7 @@ async def _delete_collection_namespaced_workload_serialize( return await self.api_client.param_serialize( method='DELETE', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2240,7 +2240,7 @@ async def _delete_namespaced_pod_group_serialize( return await self.api_client.param_serialize( method='DELETE', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2643,7 +2643,7 @@ async def _delete_namespaced_workload_serialize( return await self.api_client.param_serialize( method='DELETE', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2896,7 +2896,7 @@ async def _get_api_resources_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/scheduling.k8s.io/v1alpha2/', + resource_path='/apis/scheduling.k8s.io/v1beta1/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2940,7 +2940,7 @@ async def list_namespaced_pod_group( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2PodGroupList: + ) -> V1beta1PodGroupList: """list_namespaced_pod_group list or watch objects of kind PodGroup @@ -3014,7 +3014,7 @@ async def list_namespaced_pod_group( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroupList", + '200': "V1beta1PodGroupList", '401': None, } response_data = await self.api_client.call_api( @@ -3056,7 +3056,7 @@ async def list_namespaced_pod_group_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha2PodGroupList]: + ) -> ApiResponse[V1beta1PodGroupList]: """list_namespaced_pod_group list or watch objects of kind PodGroup @@ -3130,7 +3130,7 @@ async def list_namespaced_pod_group_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroupList", + '200': "V1beta1PodGroupList", '401': None, } response_data = await self.api_client.call_api( @@ -3246,7 +3246,7 @@ async def list_namespaced_pod_group_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroupList", + '200': "V1beta1PodGroupList", '401': None, } response_data = await self.api_client.call_api( @@ -3371,7 +3371,7 @@ async def _list_namespaced_pod_group_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3415,7 +3415,7 @@ async def list_namespaced_workload( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2WorkloadList: + ) -> V1beta1WorkloadList: """list_namespaced_workload list or watch objects of kind Workload @@ -3489,7 +3489,7 @@ async def list_namespaced_workload( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2WorkloadList", + '200': "V1beta1WorkloadList", '401': None, } response_data = await self.api_client.call_api( @@ -3531,7 +3531,7 @@ async def list_namespaced_workload_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha2WorkloadList]: + ) -> ApiResponse[V1beta1WorkloadList]: """list_namespaced_workload list or watch objects of kind Workload @@ -3605,7 +3605,7 @@ async def list_namespaced_workload_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2WorkloadList", + '200': "V1beta1WorkloadList", '401': None, } response_data = await self.api_client.call_api( @@ -3721,7 +3721,7 @@ async def list_namespaced_workload_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2WorkloadList", + '200': "V1beta1WorkloadList", '401': None, } response_data = await self.api_client.call_api( @@ -3846,7 +3846,7 @@ async def _list_namespaced_workload_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3889,7 +3889,7 @@ async def list_pod_group_for_all_namespaces( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2PodGroupList: + ) -> V1beta1PodGroupList: """list_pod_group_for_all_namespaces list or watch objects of kind PodGroup @@ -3960,7 +3960,7 @@ async def list_pod_group_for_all_namespaces( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroupList", + '200': "V1beta1PodGroupList", '401': None, } response_data = await self.api_client.call_api( @@ -4001,7 +4001,7 @@ async def list_pod_group_for_all_namespaces_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha2PodGroupList]: + ) -> ApiResponse[V1beta1PodGroupList]: """list_pod_group_for_all_namespaces list or watch objects of kind PodGroup @@ -4072,7 +4072,7 @@ async def list_pod_group_for_all_namespaces_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroupList", + '200': "V1beta1PodGroupList", '401': None, } response_data = await self.api_client.call_api( @@ -4184,7 +4184,7 @@ async def list_pod_group_for_all_namespaces_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroupList", + '200': "V1beta1PodGroupList", '401': None, } response_data = await self.api_client.call_api( @@ -4306,7 +4306,7 @@ async def _list_pod_group_for_all_namespaces_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/scheduling.k8s.io/v1alpha2/podgroups', + resource_path='/apis/scheduling.k8s.io/v1beta1/podgroups', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4349,7 +4349,7 @@ async def list_workload_for_all_namespaces( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2WorkloadList: + ) -> V1beta1WorkloadList: """list_workload_for_all_namespaces list or watch objects of kind Workload @@ -4420,7 +4420,7 @@ async def list_workload_for_all_namespaces( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2WorkloadList", + '200': "V1beta1WorkloadList", '401': None, } response_data = await self.api_client.call_api( @@ -4461,7 +4461,7 @@ async def list_workload_for_all_namespaces_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha2WorkloadList]: + ) -> ApiResponse[V1beta1WorkloadList]: """list_workload_for_all_namespaces list or watch objects of kind Workload @@ -4532,7 +4532,7 @@ async def list_workload_for_all_namespaces_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2WorkloadList", + '200': "V1beta1WorkloadList", '401': None, } response_data = await self.api_client.call_api( @@ -4644,7 +4644,7 @@ async def list_workload_for_all_namespaces_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2WorkloadList", + '200': "V1beta1WorkloadList", '401': None, } response_data = await self.api_client.call_api( @@ -4766,7 +4766,7 @@ async def _list_workload_for_all_namespaces_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/scheduling.k8s.io/v1alpha2/workloads', + resource_path='/apis/scheduling.k8s.io/v1beta1/workloads', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4805,7 +4805,7 @@ async def patch_namespaced_pod_group( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2PodGroup: + ) -> V1beta1PodGroup: """patch_namespaced_pod_group partially update the specified PodGroup @@ -4864,8 +4864,8 @@ async def patch_namespaced_pod_group( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -4902,7 +4902,7 @@ async def patch_namespaced_pod_group_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha2PodGroup]: + ) -> ApiResponse[V1beta1PodGroup]: """patch_namespaced_pod_group partially update the specified PodGroup @@ -4961,8 +4961,8 @@ async def patch_namespaced_pod_group_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -5058,8 +5058,8 @@ async def patch_namespaced_pod_group_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -5169,7 +5169,7 @@ async def _patch_namespaced_pod_group_serialize( return await self.api_client.param_serialize( method='PATCH', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5208,7 +5208,7 @@ async def patch_namespaced_pod_group_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2PodGroup: + ) -> V1beta1PodGroup: """patch_namespaced_pod_group_status partially update status of the specified PodGroup @@ -5267,8 +5267,8 @@ async def patch_namespaced_pod_group_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -5305,7 +5305,7 @@ async def patch_namespaced_pod_group_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha2PodGroup]: + ) -> ApiResponse[V1beta1PodGroup]: """patch_namespaced_pod_group_status partially update status of the specified PodGroup @@ -5364,8 +5364,8 @@ async def patch_namespaced_pod_group_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -5461,8 +5461,8 @@ async def patch_namespaced_pod_group_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -5572,7 +5572,7 @@ async def _patch_namespaced_pod_group_status_serialize( return await self.api_client.param_serialize( method='PATCH', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5611,7 +5611,7 @@ async def patch_namespaced_workload( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2Workload: + ) -> V1beta1Workload: """patch_namespaced_workload partially update the specified Workload @@ -5670,8 +5670,8 @@ async def patch_namespaced_workload( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", - '201': "V1alpha2Workload", + '200': "V1beta1Workload", + '201': "V1beta1Workload", '401': None, } response_data = await self.api_client.call_api( @@ -5708,7 +5708,7 @@ async def patch_namespaced_workload_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha2Workload]: + ) -> ApiResponse[V1beta1Workload]: """patch_namespaced_workload partially update the specified Workload @@ -5767,8 +5767,8 @@ async def patch_namespaced_workload_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", - '201': "V1alpha2Workload", + '200': "V1beta1Workload", + '201': "V1beta1Workload", '401': None, } response_data = await self.api_client.call_api( @@ -5864,8 +5864,8 @@ async def patch_namespaced_workload_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", - '201': "V1alpha2Workload", + '200': "V1beta1Workload", + '201': "V1beta1Workload", '401': None, } response_data = await self.api_client.call_api( @@ -5975,7 +5975,7 @@ async def _patch_namespaced_workload_serialize( return await self.api_client.param_serialize( method='PATCH', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6009,7 +6009,7 @@ async def read_namespaced_pod_group( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2PodGroup: + ) -> V1beta1PodGroup: """read_namespaced_pod_group read the specified PodGroup @@ -6053,7 +6053,7 @@ async def read_namespaced_pod_group( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -6085,7 +6085,7 @@ async def read_namespaced_pod_group_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha2PodGroup]: + ) -> ApiResponse[V1beta1PodGroup]: """read_namespaced_pod_group read the specified PodGroup @@ -6129,7 +6129,7 @@ async def read_namespaced_pod_group_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -6205,7 +6205,7 @@ async def read_namespaced_pod_group_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -6275,7 +6275,7 @@ async def _read_namespaced_pod_group_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6309,7 +6309,7 @@ async def read_namespaced_pod_group_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2PodGroup: + ) -> V1beta1PodGroup: """read_namespaced_pod_group_status read status of the specified PodGroup @@ -6353,7 +6353,7 @@ async def read_namespaced_pod_group_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -6385,7 +6385,7 @@ async def read_namespaced_pod_group_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha2PodGroup]: + ) -> ApiResponse[V1beta1PodGroup]: """read_namespaced_pod_group_status read status of the specified PodGroup @@ -6429,7 +6429,7 @@ async def read_namespaced_pod_group_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -6505,7 +6505,7 @@ async def read_namespaced_pod_group_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -6575,7 +6575,7 @@ async def _read_namespaced_pod_group_status_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6609,7 +6609,7 @@ async def read_namespaced_workload( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2Workload: + ) -> V1beta1Workload: """read_namespaced_workload read the specified Workload @@ -6653,7 +6653,7 @@ async def read_namespaced_workload( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", + '200': "V1beta1Workload", '401': None, } response_data = await self.api_client.call_api( @@ -6685,7 +6685,7 @@ async def read_namespaced_workload_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha2Workload]: + ) -> ApiResponse[V1beta1Workload]: """read_namespaced_workload read the specified Workload @@ -6729,7 +6729,7 @@ async def read_namespaced_workload_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", + '200': "V1beta1Workload", '401': None, } response_data = await self.api_client.call_api( @@ -6805,7 +6805,7 @@ async def read_namespaced_workload_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", + '200': "V1beta1Workload", '401': None, } response_data = await self.api_client.call_api( @@ -6875,7 +6875,7 @@ async def _read_namespaced_workload_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6896,7 +6896,7 @@ async def replace_namespaced_pod_group( self, name: Annotated[StrictStr, Field(description="name of the PodGroup")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2PodGroup, + body: V1beta1PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -6913,7 +6913,7 @@ async def replace_namespaced_pod_group( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2PodGroup: + ) -> V1beta1PodGroup: """replace_namespaced_pod_group replace the specified PodGroup @@ -6923,7 +6923,7 @@ async def replace_namespaced_pod_group( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2PodGroup + :type body: V1beta1PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -6969,8 +6969,8 @@ async def replace_namespaced_pod_group( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -6989,7 +6989,7 @@ async def replace_namespaced_pod_group_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the PodGroup")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2PodGroup, + body: V1beta1PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -7006,7 +7006,7 @@ async def replace_namespaced_pod_group_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha2PodGroup]: + ) -> ApiResponse[V1beta1PodGroup]: """replace_namespaced_pod_group replace the specified PodGroup @@ -7016,7 +7016,7 @@ async def replace_namespaced_pod_group_with_http_info( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2PodGroup + :type body: V1beta1PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -7062,8 +7062,8 @@ async def replace_namespaced_pod_group_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -7082,7 +7082,7 @@ async def replace_namespaced_pod_group_without_preload_content( self, name: Annotated[StrictStr, Field(description="name of the PodGroup")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2PodGroup, + body: V1beta1PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -7109,7 +7109,7 @@ async def replace_namespaced_pod_group_without_preload_content( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2PodGroup + :type body: V1beta1PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -7155,8 +7155,8 @@ async def replace_namespaced_pod_group_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -7244,7 +7244,7 @@ async def _replace_namespaced_pod_group_serialize( return await self.api_client.param_serialize( method='PUT', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7265,7 +7265,7 @@ async def replace_namespaced_pod_group_status( self, name: Annotated[StrictStr, Field(description="name of the PodGroup")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2PodGroup, + body: V1beta1PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -7282,7 +7282,7 @@ async def replace_namespaced_pod_group_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2PodGroup: + ) -> V1beta1PodGroup: """replace_namespaced_pod_group_status replace status of the specified PodGroup @@ -7292,7 +7292,7 @@ async def replace_namespaced_pod_group_status( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2PodGroup + :type body: V1beta1PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -7338,8 +7338,8 @@ async def replace_namespaced_pod_group_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -7358,7 +7358,7 @@ async def replace_namespaced_pod_group_status_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the PodGroup")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2PodGroup, + body: V1beta1PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -7375,7 +7375,7 @@ async def replace_namespaced_pod_group_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha2PodGroup]: + ) -> ApiResponse[V1beta1PodGroup]: """replace_namespaced_pod_group_status replace status of the specified PodGroup @@ -7385,7 +7385,7 @@ async def replace_namespaced_pod_group_status_with_http_info( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2PodGroup + :type body: V1beta1PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -7431,8 +7431,8 @@ async def replace_namespaced_pod_group_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -7451,7 +7451,7 @@ async def replace_namespaced_pod_group_status_without_preload_content( self, name: Annotated[StrictStr, Field(description="name of the PodGroup")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2PodGroup, + body: V1beta1PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -7478,7 +7478,7 @@ async def replace_namespaced_pod_group_status_without_preload_content( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2PodGroup + :type body: V1beta1PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -7524,8 +7524,8 @@ async def replace_namespaced_pod_group_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } response_data = await self.api_client.call_api( @@ -7613,7 +7613,7 @@ async def _replace_namespaced_pod_group_status_serialize( return await self.api_client.param_serialize( method='PUT', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7634,7 +7634,7 @@ async def replace_namespaced_workload( self, name: Annotated[StrictStr, Field(description="name of the Workload")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2Workload, + body: V1beta1Workload, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -7651,7 +7651,7 @@ async def replace_namespaced_workload( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2Workload: + ) -> V1beta1Workload: """replace_namespaced_workload replace the specified Workload @@ -7661,7 +7661,7 @@ async def replace_namespaced_workload( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2Workload + :type body: V1beta1Workload :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -7707,8 +7707,8 @@ async def replace_namespaced_workload( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", - '201': "V1alpha2Workload", + '200': "V1beta1Workload", + '201': "V1beta1Workload", '401': None, } response_data = await self.api_client.call_api( @@ -7727,7 +7727,7 @@ async def replace_namespaced_workload_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the Workload")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2Workload, + body: V1beta1Workload, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -7744,7 +7744,7 @@ async def replace_namespaced_workload_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha2Workload]: + ) -> ApiResponse[V1beta1Workload]: """replace_namespaced_workload replace the specified Workload @@ -7754,7 +7754,7 @@ async def replace_namespaced_workload_with_http_info( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2Workload + :type body: V1beta1Workload :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -7800,8 +7800,8 @@ async def replace_namespaced_workload_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", - '201': "V1alpha2Workload", + '200': "V1beta1Workload", + '201': "V1beta1Workload", '401': None, } response_data = await self.api_client.call_api( @@ -7820,7 +7820,7 @@ async def replace_namespaced_workload_without_preload_content( self, name: Annotated[StrictStr, Field(description="name of the Workload")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2Workload, + body: V1beta1Workload, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -7847,7 +7847,7 @@ async def replace_namespaced_workload_without_preload_content( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2Workload + :type body: V1beta1Workload :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -7893,8 +7893,8 @@ async def replace_namespaced_workload_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", - '201': "V1alpha2Workload", + '200': "V1beta1Workload", + '201': "V1beta1Workload", '401': None, } response_data = await self.api_client.call_api( @@ -7982,7 +7982,7 @@ async def _replace_namespaced_workload_serialize( return await self.api_client.param_serialize( method='PUT', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/kubernetes/aio/client/api/storage_api.py b/kubernetes/aio/client/api/storage_api.py index af50a518d2..fabfec0960 100644 --- a/kubernetes/aio/client/api/storage_api.py +++ b/kubernetes/aio/client/api/storage_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/storage_v1_api.py b/kubernetes/aio/client/api/storage_v1_api.py index d6934142bc..445cc29453 100644 --- a/kubernetes/aio/client/api/storage_v1_api.py +++ b/kubernetes/aio/client/api/storage_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -11899,10 +11899,9 @@ async def _patch_csi_node_serialize( @validate_call(config={'defer_build': True}) - async def patch_namespaced_csi_storage_capacity( + async def patch_csi_node_status( self, - name: Annotated[StrictStr, Field(description="name of the CSIStorageCapacity")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the CSINode")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -11921,15 +11920,13 @@ async def patch_namespaced_csi_storage_capacity( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CSIStorageCapacity: - """patch_namespaced_csi_storage_capacity + ) -> V1CSINode: + """patch_csi_node_status - partially update the specified CSIStorageCapacity + partially update status of the specified CSINode - :param name: name of the CSIStorageCapacity (required) + :param name: name of the CSINode (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :param body: (required) :type body: object :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). @@ -11964,9 +11961,8 @@ async def patch_namespaced_csi_storage_capacity( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_namespaced_csi_storage_capacity_serialize( + _param = await self._patch_csi_node_status_serialize( name=name, - namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -11980,8 +11976,8 @@ async def patch_namespaced_csi_storage_capacity( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSIStorageCapacity", - '201': "V1CSIStorageCapacity", + '200': "V1CSINode", + '201': "V1CSINode", '401': None, } response_data = await self.api_client.call_api( @@ -11996,10 +11992,9 @@ async def patch_namespaced_csi_storage_capacity( @validate_call(config={'defer_build': True}) - async def patch_namespaced_csi_storage_capacity_with_http_info( + async def patch_csi_node_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CSIStorageCapacity")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the CSINode")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -12018,15 +12013,13 @@ async def patch_namespaced_csi_storage_capacity_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1CSIStorageCapacity]: - """patch_namespaced_csi_storage_capacity + ) -> ApiResponse[V1CSINode]: + """patch_csi_node_status - partially update the specified CSIStorageCapacity + partially update status of the specified CSINode - :param name: name of the CSIStorageCapacity (required) + :param name: name of the CSINode (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :param body: (required) :type body: object :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). @@ -12061,9 +12054,8 @@ async def patch_namespaced_csi_storage_capacity_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_namespaced_csi_storage_capacity_serialize( + _param = await self._patch_csi_node_status_serialize( name=name, - namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -12077,8 +12069,8 @@ async def patch_namespaced_csi_storage_capacity_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSIStorageCapacity", - '201': "V1CSIStorageCapacity", + '200': "V1CSINode", + '201': "V1CSINode", '401': None, } response_data = await self.api_client.call_api( @@ -12093,10 +12085,9 @@ async def patch_namespaced_csi_storage_capacity_with_http_info( @validate_call(config={'defer_build': True}) - async def patch_namespaced_csi_storage_capacity_without_preload_content( + async def patch_csi_node_status_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the CSIStorageCapacity")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the CSINode")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -12116,14 +12107,12 @@ async def patch_namespaced_csi_storage_capacity_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """patch_namespaced_csi_storage_capacity + """patch_csi_node_status - partially update the specified CSIStorageCapacity + partially update status of the specified CSINode - :param name: name of the CSIStorageCapacity (required) + :param name: name of the CSINode (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :param body: (required) :type body: object :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). @@ -12158,9 +12147,8 @@ async def patch_namespaced_csi_storage_capacity_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_namespaced_csi_storage_capacity_serialize( + _param = await self._patch_csi_node_status_serialize( name=name, - namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -12174,8 +12162,8 @@ async def patch_namespaced_csi_storage_capacity_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSIStorageCapacity", - '201': "V1CSIStorageCapacity", + '200': "V1CSINode", + '201': "V1CSINode", '401': None, } response_data = await self.api_client.call_api( @@ -12186,10 +12174,9 @@ async def patch_namespaced_csi_storage_capacity_without_preload_content( return response_data.response - async def _patch_namespaced_csi_storage_capacity_serialize( + async def _patch_csi_node_status_serialize( self, name, - namespace, body, pretty, dry_run, @@ -12219,8 +12206,6 @@ async def _patch_namespaced_csi_storage_capacity_serialize( # process the path parameters if name is not None: _path_params['name'] = name - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -12285,7 +12270,7 @@ async def _patch_namespaced_csi_storage_capacity_serialize( return await self.api_client.param_serialize( method='PATCH', - resource_path='/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}', + resource_path='/apis/storage.k8s.io/v1/csinodes/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12302,9 +12287,10 @@ async def _patch_namespaced_csi_storage_capacity_serialize( @validate_call(config={'defer_build': True}) - async def patch_storage_class( + async def patch_namespaced_csi_storage_capacity( self, - name: Annotated[StrictStr, Field(description="name of the StorageClass")], + name: Annotated[StrictStr, Field(description="name of the CSIStorageCapacity")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -12323,13 +12309,15 @@ async def patch_storage_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1StorageClass: - """patch_storage_class + ) -> V1CSIStorageCapacity: + """patch_namespaced_csi_storage_capacity - partially update the specified StorageClass + partially update the specified CSIStorageCapacity - :param name: name of the StorageClass (required) + :param name: name of the CSIStorageCapacity (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) :type body: object :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). @@ -12364,8 +12352,9 @@ async def patch_storage_class( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_storage_class_serialize( + _param = await self._patch_namespaced_csi_storage_capacity_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -12379,8 +12368,8 @@ async def patch_storage_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1StorageClass", - '201': "V1StorageClass", + '200': "V1CSIStorageCapacity", + '201': "V1CSIStorageCapacity", '401': None, } response_data = await self.api_client.call_api( @@ -12395,9 +12384,10 @@ async def patch_storage_class( @validate_call(config={'defer_build': True}) - async def patch_storage_class_with_http_info( + async def patch_namespaced_csi_storage_capacity_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the StorageClass")], + name: Annotated[StrictStr, Field(description="name of the CSIStorageCapacity")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -12416,13 +12406,15 @@ async def patch_storage_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1StorageClass]: - """patch_storage_class + ) -> ApiResponse[V1CSIStorageCapacity]: + """patch_namespaced_csi_storage_capacity - partially update the specified StorageClass + partially update the specified CSIStorageCapacity - :param name: name of the StorageClass (required) + :param name: name of the CSIStorageCapacity (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) :type body: object :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). @@ -12457,8 +12449,9 @@ async def patch_storage_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_storage_class_serialize( + _param = await self._patch_namespaced_csi_storage_capacity_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -12472,8 +12465,8 @@ async def patch_storage_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1StorageClass", - '201': "V1StorageClass", + '200': "V1CSIStorageCapacity", + '201': "V1CSIStorageCapacity", '401': None, } response_data = await self.api_client.call_api( @@ -12488,9 +12481,10 @@ async def patch_storage_class_with_http_info( @validate_call(config={'defer_build': True}) - async def patch_storage_class_without_preload_content( + async def patch_namespaced_csi_storage_capacity_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the StorageClass")], + name: Annotated[StrictStr, Field(description="name of the CSIStorageCapacity")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -12510,12 +12504,14 @@ async def patch_storage_class_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """patch_storage_class + """patch_namespaced_csi_storage_capacity - partially update the specified StorageClass + partially update the specified CSIStorageCapacity - :param name: name of the StorageClass (required) + :param name: name of the CSIStorageCapacity (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) :type body: object :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). @@ -12550,8 +12546,9 @@ async def patch_storage_class_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_storage_class_serialize( + _param = await self._patch_namespaced_csi_storage_capacity_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -12565,8 +12562,8 @@ async def patch_storage_class_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1StorageClass", - '201': "V1StorageClass", + '200': "V1CSIStorageCapacity", + '201': "V1CSIStorageCapacity", '401': None, } response_data = await self.api_client.call_api( @@ -12577,9 +12574,10 @@ async def patch_storage_class_without_preload_content( return response_data.response - async def _patch_storage_class_serialize( + async def _patch_namespaced_csi_storage_capacity_serialize( self, name, + namespace, body, pretty, dry_run, @@ -12609,6 +12607,8 @@ async def _patch_storage_class_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -12673,7 +12673,7 @@ async def _patch_storage_class_serialize( return await self.api_client.param_serialize( method='PATCH', - resource_path='/apis/storage.k8s.io/v1/storageclasses/{name}', + resource_path='/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12690,9 +12690,9 @@ async def _patch_storage_class_serialize( @validate_call(config={'defer_build': True}) - async def patch_volume_attachment( + async def patch_storage_class( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], + name: Annotated[StrictStr, Field(description="name of the StorageClass")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -12711,12 +12711,12 @@ async def patch_volume_attachment( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1VolumeAttachment: - """patch_volume_attachment + ) -> V1StorageClass: + """patch_storage_class - partially update the specified VolumeAttachment + partially update the specified StorageClass - :param name: name of the VolumeAttachment (required) + :param name: name of the StorageClass (required) :type name: str :param body: (required) :type body: object @@ -12752,7 +12752,7 @@ async def patch_volume_attachment( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_volume_attachment_serialize( + _param = await self._patch_storage_class_serialize( name=name, body=body, pretty=pretty, @@ -12767,8 +12767,8 @@ async def patch_volume_attachment( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttachment", - '201': "V1VolumeAttachment", + '200': "V1StorageClass", + '201': "V1StorageClass", '401': None, } response_data = await self.api_client.call_api( @@ -12783,9 +12783,9 @@ async def patch_volume_attachment( @validate_call(config={'defer_build': True}) - async def patch_volume_attachment_with_http_info( + async def patch_storage_class_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], + name: Annotated[StrictStr, Field(description="name of the StorageClass")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -12804,12 +12804,12 @@ async def patch_volume_attachment_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1VolumeAttachment]: - """patch_volume_attachment + ) -> ApiResponse[V1StorageClass]: + """patch_storage_class - partially update the specified VolumeAttachment + partially update the specified StorageClass - :param name: name of the VolumeAttachment (required) + :param name: name of the StorageClass (required) :type name: str :param body: (required) :type body: object @@ -12845,7 +12845,7 @@ async def patch_volume_attachment_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_volume_attachment_serialize( + _param = await self._patch_storage_class_serialize( name=name, body=body, pretty=pretty, @@ -12860,8 +12860,8 @@ async def patch_volume_attachment_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttachment", - '201': "V1VolumeAttachment", + '200': "V1StorageClass", + '201': "V1StorageClass", '401': None, } response_data = await self.api_client.call_api( @@ -12876,9 +12876,9 @@ async def patch_volume_attachment_with_http_info( @validate_call(config={'defer_build': True}) - async def patch_volume_attachment_without_preload_content( + async def patch_storage_class_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], + name: Annotated[StrictStr, Field(description="name of the StorageClass")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -12898,11 +12898,11 @@ async def patch_volume_attachment_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """patch_volume_attachment + """patch_storage_class - partially update the specified VolumeAttachment + partially update the specified StorageClass - :param name: name of the VolumeAttachment (required) + :param name: name of the StorageClass (required) :type name: str :param body: (required) :type body: object @@ -12938,7 +12938,7 @@ async def patch_volume_attachment_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_volume_attachment_serialize( + _param = await self._patch_storage_class_serialize( name=name, body=body, pretty=pretty, @@ -12953,8 +12953,8 @@ async def patch_volume_attachment_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttachment", - '201': "V1VolumeAttachment", + '200': "V1StorageClass", + '201': "V1StorageClass", '401': None, } response_data = await self.api_client.call_api( @@ -12965,7 +12965,7 @@ async def patch_volume_attachment_without_preload_content( return response_data.response - async def _patch_volume_attachment_serialize( + async def _patch_storage_class_serialize( self, name, body, @@ -13061,7 +13061,7 @@ async def _patch_volume_attachment_serialize( return await self.api_client.param_serialize( method='PATCH', - resource_path='/apis/storage.k8s.io/v1/volumeattachments/{name}', + resource_path='/apis/storage.k8s.io/v1/storageclasses/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13078,7 +13078,7 @@ async def _patch_volume_attachment_serialize( @validate_call(config={'defer_build': True}) - async def patch_volume_attachment_status( + async def patch_volume_attachment( self, name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], @@ -13100,9 +13100,9 @@ async def patch_volume_attachment_status( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1VolumeAttachment: - """patch_volume_attachment_status + """patch_volume_attachment - partially update status of the specified VolumeAttachment + partially update the specified VolumeAttachment :param name: name of the VolumeAttachment (required) :type name: str @@ -13140,7 +13140,7 @@ async def patch_volume_attachment_status( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_volume_attachment_status_serialize( + _param = await self._patch_volume_attachment_serialize( name=name, body=body, pretty=pretty, @@ -13171,7 +13171,7 @@ async def patch_volume_attachment_status( @validate_call(config={'defer_build': True}) - async def patch_volume_attachment_status_with_http_info( + async def patch_volume_attachment_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], @@ -13193,9 +13193,9 @@ async def patch_volume_attachment_status_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[V1VolumeAttachment]: - """patch_volume_attachment_status + """patch_volume_attachment - partially update status of the specified VolumeAttachment + partially update the specified VolumeAttachment :param name: name of the VolumeAttachment (required) :type name: str @@ -13233,7 +13233,7 @@ async def patch_volume_attachment_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_volume_attachment_status_serialize( + _param = await self._patch_volume_attachment_serialize( name=name, body=body, pretty=pretty, @@ -13264,7 +13264,7 @@ async def patch_volume_attachment_status_with_http_info( @validate_call(config={'defer_build': True}) - async def patch_volume_attachment_status_without_preload_content( + async def patch_volume_attachment_without_preload_content( self, name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], @@ -13286,9 +13286,9 @@ async def patch_volume_attachment_status_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """patch_volume_attachment_status + """patch_volume_attachment - partially update status of the specified VolumeAttachment + partially update the specified VolumeAttachment :param name: name of the VolumeAttachment (required) :type name: str @@ -13326,7 +13326,7 @@ async def patch_volume_attachment_status_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_volume_attachment_status_serialize( + _param = await self._patch_volume_attachment_serialize( name=name, body=body, pretty=pretty, @@ -13353,7 +13353,7 @@ async def patch_volume_attachment_status_without_preload_content( return response_data.response - async def _patch_volume_attachment_status_serialize( + async def _patch_volume_attachment_serialize( self, name, body, @@ -13449,7 +13449,7 @@ async def _patch_volume_attachment_status_serialize( return await self.api_client.param_serialize( method='PATCH', - resource_path='/apis/storage.k8s.io/v1/volumeattachments/{name}/status', + resource_path='/apis/storage.k8s.io/v1/volumeattachments/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13466,9 +13466,9 @@ async def _patch_volume_attachment_status_serialize( @validate_call(config={'defer_build': True}) - async def patch_volume_attributes_class( + async def patch_volume_attachment_status( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], + name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -13487,12 +13487,12 @@ async def patch_volume_attributes_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1VolumeAttributesClass: - """patch_volume_attributes_class + ) -> V1VolumeAttachment: + """patch_volume_attachment_status - partially update the specified VolumeAttributesClass + partially update status of the specified VolumeAttachment - :param name: name of the VolumeAttributesClass (required) + :param name: name of the VolumeAttachment (required) :type name: str :param body: (required) :type body: object @@ -13528,7 +13528,7 @@ async def patch_volume_attributes_class( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_volume_attributes_class_serialize( + _param = await self._patch_volume_attachment_status_serialize( name=name, body=body, pretty=pretty, @@ -13543,8 +13543,8 @@ async def patch_volume_attributes_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttributesClass", - '201': "V1VolumeAttributesClass", + '200': "V1VolumeAttachment", + '201': "V1VolumeAttachment", '401': None, } response_data = await self.api_client.call_api( @@ -13559,9 +13559,9 @@ async def patch_volume_attributes_class( @validate_call(config={'defer_build': True}) - async def patch_volume_attributes_class_with_http_info( + async def patch_volume_attachment_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], + name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -13580,12 +13580,12 @@ async def patch_volume_attributes_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1VolumeAttributesClass]: - """patch_volume_attributes_class + ) -> ApiResponse[V1VolumeAttachment]: + """patch_volume_attachment_status - partially update the specified VolumeAttributesClass + partially update status of the specified VolumeAttachment - :param name: name of the VolumeAttributesClass (required) + :param name: name of the VolumeAttachment (required) :type name: str :param body: (required) :type body: object @@ -13621,7 +13621,7 @@ async def patch_volume_attributes_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_volume_attributes_class_serialize( + _param = await self._patch_volume_attachment_status_serialize( name=name, body=body, pretty=pretty, @@ -13636,8 +13636,8 @@ async def patch_volume_attributes_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttributesClass", - '201': "V1VolumeAttributesClass", + '200': "V1VolumeAttachment", + '201': "V1VolumeAttachment", '401': None, } response_data = await self.api_client.call_api( @@ -13652,9 +13652,9 @@ async def patch_volume_attributes_class_with_http_info( @validate_call(config={'defer_build': True}) - async def patch_volume_attributes_class_without_preload_content( + async def patch_volume_attachment_status_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], + name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -13674,11 +13674,11 @@ async def patch_volume_attributes_class_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """patch_volume_attributes_class + """patch_volume_attachment_status - partially update the specified VolumeAttributesClass + partially update status of the specified VolumeAttachment - :param name: name of the VolumeAttributesClass (required) + :param name: name of the VolumeAttachment (required) :type name: str :param body: (required) :type body: object @@ -13714,7 +13714,7 @@ async def patch_volume_attributes_class_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_volume_attributes_class_serialize( + _param = await self._patch_volume_attachment_status_serialize( name=name, body=body, pretty=pretty, @@ -13729,8 +13729,8 @@ async def patch_volume_attributes_class_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttributesClass", - '201': "V1VolumeAttributesClass", + '200': "V1VolumeAttachment", + '201': "V1VolumeAttachment", '401': None, } response_data = await self.api_client.call_api( @@ -13741,7 +13741,7 @@ async def patch_volume_attributes_class_without_preload_content( return response_data.response - async def _patch_volume_attributes_class_serialize( + async def _patch_volume_attachment_status_serialize( self, name, body, @@ -13827,8 +13827,966 @@ async def _patch_volume_attributes_class_serialize( ] ) ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/storage.k8s.io/v1/volumeattachments/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_volume_attributes_class( + self, + name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1VolumeAttributesClass: + """patch_volume_attributes_class + + partially update the specified VolumeAttributesClass + + :param name: name of the VolumeAttributesClass (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_volume_attributes_class_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1VolumeAttributesClass", + '201': "V1VolumeAttributesClass", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_volume_attributes_class_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1VolumeAttributesClass]: + """patch_volume_attributes_class + + partially update the specified VolumeAttributesClass + + :param name: name of the VolumeAttributesClass (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_volume_attributes_class_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1VolumeAttributesClass", + '201': "V1VolumeAttributesClass", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_volume_attributes_class_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_volume_attributes_class + + partially update the specified VolumeAttributesClass + + :param name: name of the VolumeAttributesClass (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_volume_attributes_class_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1VolumeAttributesClass", + '201': "V1VolumeAttributesClass", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_volume_attributes_class_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/storage.k8s.io/v1/volumeattributesclasses/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def read_csi_driver( + self, + name: Annotated[StrictStr, Field(description="name of the CSIDriver")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1CSIDriver: + """read_csi_driver + + read the specified CSIDriver + + :param name: name of the CSIDriver (required) + :type name: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_csi_driver_serialize( + name=name, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CSIDriver", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def read_csi_driver_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CSIDriver")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1CSIDriver]: + """read_csi_driver + + read the specified CSIDriver + + :param name: name of the CSIDriver (required) + :type name: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_csi_driver_serialize( + name=name, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CSIDriver", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def read_csi_driver_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the CSIDriver")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """read_csi_driver + + read the specified CSIDriver + + :param name: name of the CSIDriver (required) + :type name: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_csi_driver_serialize( + name=name, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CSIDriver", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _read_csi_driver_serialize( + self, + name, + pretty, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/storage.k8s.io/v1/csidrivers/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def read_csi_node( + self, + name: Annotated[StrictStr, Field(description="name of the CSINode")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1CSINode: + """read_csi_node + + read the specified CSINode + + :param name: name of the CSINode (required) + :type name: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_csi_node_serialize( + name=name, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CSINode", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def read_csi_node_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CSINode")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1CSINode]: + """read_csi_node + + read the specified CSINode + + :param name: name of the CSINode (required) + :type name: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_csi_node_serialize( + name=name, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CSINode", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def read_csi_node_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the CSINode")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """read_csi_node + + read the specified CSINode + + :param name: name of the CSINode (required) + :type name: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_csi_node_serialize( + name=name, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CSINode", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _read_csi_node_serialize( + self, + name, + pretty, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + # authentication setting _auth_settings: List[str] = [ @@ -13836,8 +14794,8 @@ async def _patch_volume_attributes_class_serialize( ] return await self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/storage.k8s.io/v1/volumeattributesclasses/{name}', + method='GET', + resource_path='/apis/storage.k8s.io/v1/csinodes/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13854,9 +14812,9 @@ async def _patch_volume_attributes_class_serialize( @validate_call(config={'defer_build': True}) - async def read_csi_driver( + async def read_csi_node_status( self, - name: Annotated[StrictStr, Field(description="name of the CSIDriver")], + name: Annotated[StrictStr, Field(description="name of the CSINode")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -13870,12 +14828,12 @@ async def read_csi_driver( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CSIDriver: - """read_csi_driver + ) -> V1CSINode: + """read_csi_node_status - read the specified CSIDriver + read status of the specified CSINode - :param name: name of the CSIDriver (required) + :param name: name of the CSINode (required) :type name: str :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). :type pretty: str @@ -13901,7 +14859,7 @@ async def read_csi_driver( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_csi_driver_serialize( + _param = await self._read_csi_node_status_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -13911,7 +14869,7 @@ async def read_csi_driver( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSIDriver", + '200': "V1CSINode", '401': None, } response_data = await self.api_client.call_api( @@ -13926,9 +14884,9 @@ async def read_csi_driver( @validate_call(config={'defer_build': True}) - async def read_csi_driver_with_http_info( + async def read_csi_node_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CSIDriver")], + name: Annotated[StrictStr, Field(description="name of the CSINode")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -13942,12 +14900,12 @@ async def read_csi_driver_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1CSIDriver]: - """read_csi_driver + ) -> ApiResponse[V1CSINode]: + """read_csi_node_status - read the specified CSIDriver + read status of the specified CSINode - :param name: name of the CSIDriver (required) + :param name: name of the CSINode (required) :type name: str :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). :type pretty: str @@ -13973,7 +14931,7 @@ async def read_csi_driver_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_csi_driver_serialize( + _param = await self._read_csi_node_status_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -13983,7 +14941,7 @@ async def read_csi_driver_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSIDriver", + '200': "V1CSINode", '401': None, } response_data = await self.api_client.call_api( @@ -13998,9 +14956,9 @@ async def read_csi_driver_with_http_info( @validate_call(config={'defer_build': True}) - async def read_csi_driver_without_preload_content( + async def read_csi_node_status_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the CSIDriver")], + name: Annotated[StrictStr, Field(description="name of the CSINode")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -14015,11 +14973,11 @@ async def read_csi_driver_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """read_csi_driver + """read_csi_node_status - read the specified CSIDriver + read status of the specified CSINode - :param name: name of the CSIDriver (required) + :param name: name of the CSINode (required) :type name: str :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). :type pretty: str @@ -14045,7 +15003,7 @@ async def read_csi_driver_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_csi_driver_serialize( + _param = await self._read_csi_node_status_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -14055,7 +15013,7 @@ async def read_csi_driver_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSIDriver", + '200': "V1CSINode", '401': None, } response_data = await self.api_client.call_api( @@ -14066,7 +15024,7 @@ async def read_csi_driver_without_preload_content( return response_data.response - async def _read_csi_driver_serialize( + async def _read_csi_node_status_serialize( self, name, pretty, @@ -14122,7 +15080,7 @@ async def _read_csi_driver_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/storage.k8s.io/v1/csidrivers/{name}', + resource_path='/apis/storage.k8s.io/v1/csinodes/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14139,9 +15097,10 @@ async def _read_csi_driver_serialize( @validate_call(config={'defer_build': True}) - async def read_csi_node( + async def read_namespaced_csi_storage_capacity( self, - name: Annotated[StrictStr, Field(description="name of the CSINode")], + name: Annotated[StrictStr, Field(description="name of the CSIStorageCapacity")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -14155,13 +15114,15 @@ async def read_csi_node( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CSINode: - """read_csi_node + ) -> V1CSIStorageCapacity: + """read_namespaced_csi_storage_capacity - read the specified CSINode + read the specified CSIStorageCapacity - :param name: name of the CSINode (required) + :param name: name of the CSIStorageCapacity (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :param _request_timeout: timeout setting for this request. If one @@ -14186,8 +15147,9 @@ async def read_csi_node( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_csi_node_serialize( + _param = await self._read_namespaced_csi_storage_capacity_serialize( name=name, + namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -14196,7 +15158,7 @@ async def read_csi_node( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSINode", + '200': "V1CSIStorageCapacity", '401': None, } response_data = await self.api_client.call_api( @@ -14211,9 +15173,10 @@ async def read_csi_node( @validate_call(config={'defer_build': True}) - async def read_csi_node_with_http_info( + async def read_namespaced_csi_storage_capacity_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CSINode")], + name: Annotated[StrictStr, Field(description="name of the CSIStorageCapacity")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -14227,13 +15190,15 @@ async def read_csi_node_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1CSINode]: - """read_csi_node + ) -> ApiResponse[V1CSIStorageCapacity]: + """read_namespaced_csi_storage_capacity - read the specified CSINode + read the specified CSIStorageCapacity - :param name: name of the CSINode (required) + :param name: name of the CSIStorageCapacity (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :param _request_timeout: timeout setting for this request. If one @@ -14258,8 +15223,9 @@ async def read_csi_node_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_csi_node_serialize( + _param = await self._read_namespaced_csi_storage_capacity_serialize( name=name, + namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -14268,7 +15234,7 @@ async def read_csi_node_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSINode", + '200': "V1CSIStorageCapacity", '401': None, } response_data = await self.api_client.call_api( @@ -14283,9 +15249,10 @@ async def read_csi_node_with_http_info( @validate_call(config={'defer_build': True}) - async def read_csi_node_without_preload_content( + async def read_namespaced_csi_storage_capacity_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the CSINode")], + name: Annotated[StrictStr, Field(description="name of the CSIStorageCapacity")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -14300,12 +15267,14 @@ async def read_csi_node_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """read_csi_node + """read_namespaced_csi_storage_capacity - read the specified CSINode + read the specified CSIStorageCapacity - :param name: name of the CSINode (required) + :param name: name of the CSIStorageCapacity (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :param _request_timeout: timeout setting for this request. If one @@ -14330,8 +15299,9 @@ async def read_csi_node_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_csi_node_serialize( + _param = await self._read_namespaced_csi_storage_capacity_serialize( name=name, + namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -14340,7 +15310,7 @@ async def read_csi_node_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSINode", + '200': "V1CSIStorageCapacity", '401': None, } response_data = await self.api_client.call_api( @@ -14351,9 +15321,10 @@ async def read_csi_node_without_preload_content( return response_data.response - async def _read_csi_node_serialize( + async def _read_namespaced_csi_storage_capacity_serialize( self, name, + namespace, pretty, _request_auth, _content_type, @@ -14378,6 +15349,8 @@ async def _read_csi_node_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -14407,7 +15380,7 @@ async def _read_csi_node_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/storage.k8s.io/v1/csinodes/{name}', + resource_path='/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14424,10 +15397,9 @@ async def _read_csi_node_serialize( @validate_call(config={'defer_build': True}) - async def read_namespaced_csi_storage_capacity( + async def read_storage_class( self, - name: Annotated[StrictStr, Field(description="name of the CSIStorageCapacity")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the StorageClass")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -14441,15 +15413,13 @@ async def read_namespaced_csi_storage_capacity( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CSIStorageCapacity: - """read_namespaced_csi_storage_capacity + ) -> V1StorageClass: + """read_storage_class - read the specified CSIStorageCapacity + read the specified StorageClass - :param name: name of the CSIStorageCapacity (required) + :param name: name of the StorageClass (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :param _request_timeout: timeout setting for this request. If one @@ -14474,9 +15444,8 @@ async def read_namespaced_csi_storage_capacity( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_namespaced_csi_storage_capacity_serialize( + _param = await self._read_storage_class_serialize( name=name, - namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -14485,7 +15454,7 @@ async def read_namespaced_csi_storage_capacity( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSIStorageCapacity", + '200': "V1StorageClass", '401': None, } response_data = await self.api_client.call_api( @@ -14500,10 +15469,9 @@ async def read_namespaced_csi_storage_capacity( @validate_call(config={'defer_build': True}) - async def read_namespaced_csi_storage_capacity_with_http_info( + async def read_storage_class_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CSIStorageCapacity")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the StorageClass")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -14517,15 +15485,13 @@ async def read_namespaced_csi_storage_capacity_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1CSIStorageCapacity]: - """read_namespaced_csi_storage_capacity + ) -> ApiResponse[V1StorageClass]: + """read_storage_class - read the specified CSIStorageCapacity + read the specified StorageClass - :param name: name of the CSIStorageCapacity (required) + :param name: name of the StorageClass (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :param _request_timeout: timeout setting for this request. If one @@ -14550,9 +15516,8 @@ async def read_namespaced_csi_storage_capacity_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_namespaced_csi_storage_capacity_serialize( + _param = await self._read_storage_class_serialize( name=name, - namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -14561,7 +15526,7 @@ async def read_namespaced_csi_storage_capacity_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSIStorageCapacity", + '200': "V1StorageClass", '401': None, } response_data = await self.api_client.call_api( @@ -14576,10 +15541,9 @@ async def read_namespaced_csi_storage_capacity_with_http_info( @validate_call(config={'defer_build': True}) - async def read_namespaced_csi_storage_capacity_without_preload_content( + async def read_storage_class_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the CSIStorageCapacity")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the StorageClass")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -14594,14 +15558,12 @@ async def read_namespaced_csi_storage_capacity_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """read_namespaced_csi_storage_capacity + """read_storage_class - read the specified CSIStorageCapacity + read the specified StorageClass - :param name: name of the CSIStorageCapacity (required) + :param name: name of the StorageClass (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :param _request_timeout: timeout setting for this request. If one @@ -14626,9 +15588,8 @@ async def read_namespaced_csi_storage_capacity_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_namespaced_csi_storage_capacity_serialize( + _param = await self._read_storage_class_serialize( name=name, - namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -14637,7 +15598,7 @@ async def read_namespaced_csi_storage_capacity_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSIStorageCapacity", + '200': "V1StorageClass", '401': None, } response_data = await self.api_client.call_api( @@ -14648,10 +15609,9 @@ async def read_namespaced_csi_storage_capacity_without_preload_content( return response_data.response - async def _read_namespaced_csi_storage_capacity_serialize( + async def _read_storage_class_serialize( self, name, - namespace, pretty, _request_auth, _content_type, @@ -14676,8 +15636,6 @@ async def _read_namespaced_csi_storage_capacity_serialize( # process the path parameters if name is not None: _path_params['name'] = name - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -14707,7 +15665,7 @@ async def _read_namespaced_csi_storage_capacity_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}', + resource_path='/apis/storage.k8s.io/v1/storageclasses/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14724,9 +15682,9 @@ async def _read_namespaced_csi_storage_capacity_serialize( @validate_call(config={'defer_build': True}) - async def read_storage_class( + async def read_volume_attachment( self, - name: Annotated[StrictStr, Field(description="name of the StorageClass")], + name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -14740,12 +15698,12 @@ async def read_storage_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1StorageClass: - """read_storage_class + ) -> V1VolumeAttachment: + """read_volume_attachment - read the specified StorageClass + read the specified VolumeAttachment - :param name: name of the StorageClass (required) + :param name: name of the VolumeAttachment (required) :type name: str :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). :type pretty: str @@ -14771,7 +15729,7 @@ async def read_storage_class( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_storage_class_serialize( + _param = await self._read_volume_attachment_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -14781,7 +15739,7 @@ async def read_storage_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1StorageClass", + '200': "V1VolumeAttachment", '401': None, } response_data = await self.api_client.call_api( @@ -14796,9 +15754,9 @@ async def read_storage_class( @validate_call(config={'defer_build': True}) - async def read_storage_class_with_http_info( + async def read_volume_attachment_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the StorageClass")], + name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -14812,12 +15770,12 @@ async def read_storage_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1StorageClass]: - """read_storage_class + ) -> ApiResponse[V1VolumeAttachment]: + """read_volume_attachment - read the specified StorageClass + read the specified VolumeAttachment - :param name: name of the StorageClass (required) + :param name: name of the VolumeAttachment (required) :type name: str :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). :type pretty: str @@ -14843,7 +15801,7 @@ async def read_storage_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_storage_class_serialize( + _param = await self._read_volume_attachment_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -14853,7 +15811,7 @@ async def read_storage_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1StorageClass", + '200': "V1VolumeAttachment", '401': None, } response_data = await self.api_client.call_api( @@ -14868,9 +15826,9 @@ async def read_storage_class_with_http_info( @validate_call(config={'defer_build': True}) - async def read_storage_class_without_preload_content( + async def read_volume_attachment_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the StorageClass")], + name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -14885,11 +15843,11 @@ async def read_storage_class_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """read_storage_class + """read_volume_attachment - read the specified StorageClass + read the specified VolumeAttachment - :param name: name of the StorageClass (required) + :param name: name of the VolumeAttachment (required) :type name: str :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). :type pretty: str @@ -14915,7 +15873,7 @@ async def read_storage_class_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_storage_class_serialize( + _param = await self._read_volume_attachment_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -14925,7 +15883,7 @@ async def read_storage_class_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1StorageClass", + '200': "V1VolumeAttachment", '401': None, } response_data = await self.api_client.call_api( @@ -14936,7 +15894,7 @@ async def read_storage_class_without_preload_content( return response_data.response - async def _read_storage_class_serialize( + async def _read_volume_attachment_serialize( self, name, pretty, @@ -14992,7 +15950,7 @@ async def _read_storage_class_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/storage.k8s.io/v1/storageclasses/{name}', + resource_path='/apis/storage.k8s.io/v1/volumeattachments/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15009,7 +15967,7 @@ async def _read_storage_class_serialize( @validate_call(config={'defer_build': True}) - async def read_volume_attachment( + async def read_volume_attachment_status( self, name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, @@ -15026,9 +15984,9 @@ async def read_volume_attachment( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1VolumeAttachment: - """read_volume_attachment + """read_volume_attachment_status - read the specified VolumeAttachment + read status of the specified VolumeAttachment :param name: name of the VolumeAttachment (required) :type name: str @@ -15056,7 +16014,7 @@ async def read_volume_attachment( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_volume_attachment_serialize( + _param = await self._read_volume_attachment_status_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -15081,7 +16039,7 @@ async def read_volume_attachment( @validate_call(config={'defer_build': True}) - async def read_volume_attachment_with_http_info( + async def read_volume_attachment_status_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, @@ -15098,9 +16056,9 @@ async def read_volume_attachment_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[V1VolumeAttachment]: - """read_volume_attachment + """read_volume_attachment_status - read the specified VolumeAttachment + read status of the specified VolumeAttachment :param name: name of the VolumeAttachment (required) :type name: str @@ -15128,7 +16086,7 @@ async def read_volume_attachment_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_volume_attachment_serialize( + _param = await self._read_volume_attachment_status_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -15153,7 +16111,7 @@ async def read_volume_attachment_with_http_info( @validate_call(config={'defer_build': True}) - async def read_volume_attachment_without_preload_content( + async def read_volume_attachment_status_without_preload_content( self, name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, @@ -15170,9 +16128,9 @@ async def read_volume_attachment_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """read_volume_attachment + """read_volume_attachment_status - read the specified VolumeAttachment + read status of the specified VolumeAttachment :param name: name of the VolumeAttachment (required) :type name: str @@ -15200,7 +16158,7 @@ async def read_volume_attachment_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_volume_attachment_serialize( + _param = await self._read_volume_attachment_status_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -15221,7 +16179,7 @@ async def read_volume_attachment_without_preload_content( return response_data.response - async def _read_volume_attachment_serialize( + async def _read_volume_attachment_status_serialize( self, name, pretty, @@ -15277,7 +16235,7 @@ async def _read_volume_attachment_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/storage.k8s.io/v1/volumeattachments/{name}', + resource_path='/apis/storage.k8s.io/v1/volumeattachments/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15294,9 +16252,9 @@ async def _read_volume_attachment_serialize( @validate_call(config={'defer_build': True}) - async def read_volume_attachment_status( + async def read_volume_attributes_class( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], + name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -15310,12 +16268,12 @@ async def read_volume_attachment_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1VolumeAttachment: - """read_volume_attachment_status + ) -> V1VolumeAttributesClass: + """read_volume_attributes_class - read status of the specified VolumeAttachment + read the specified VolumeAttributesClass - :param name: name of the VolumeAttachment (required) + :param name: name of the VolumeAttributesClass (required) :type name: str :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). :type pretty: str @@ -15341,7 +16299,7 @@ async def read_volume_attachment_status( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_volume_attachment_status_serialize( + _param = await self._read_volume_attributes_class_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -15351,7 +16309,7 @@ async def read_volume_attachment_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttachment", + '200': "V1VolumeAttributesClass", '401': None, } response_data = await self.api_client.call_api( @@ -15366,9 +16324,9 @@ async def read_volume_attachment_status( @validate_call(config={'defer_build': True}) - async def read_volume_attachment_status_with_http_info( + async def read_volume_attributes_class_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], + name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -15382,12 +16340,12 @@ async def read_volume_attachment_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1VolumeAttachment]: - """read_volume_attachment_status + ) -> ApiResponse[V1VolumeAttributesClass]: + """read_volume_attributes_class - read status of the specified VolumeAttachment + read the specified VolumeAttributesClass - :param name: name of the VolumeAttachment (required) + :param name: name of the VolumeAttributesClass (required) :type name: str :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). :type pretty: str @@ -15413,7 +16371,7 @@ async def read_volume_attachment_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_volume_attachment_status_serialize( + _param = await self._read_volume_attributes_class_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -15423,7 +16381,7 @@ async def read_volume_attachment_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttachment", + '200': "V1VolumeAttributesClass", '401': None, } response_data = await self.api_client.call_api( @@ -15438,9 +16396,9 @@ async def read_volume_attachment_status_with_http_info( @validate_call(config={'defer_build': True}) - async def read_volume_attachment_status_without_preload_content( + async def read_volume_attributes_class_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], + name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _request_timeout: Union[ None, @@ -15455,11 +16413,11 @@ async def read_volume_attachment_status_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """read_volume_attachment_status + """read_volume_attributes_class - read status of the specified VolumeAttachment + read the specified VolumeAttributesClass - :param name: name of the VolumeAttachment (required) + :param name: name of the VolumeAttributesClass (required) :type name: str :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). :type pretty: str @@ -15485,7 +16443,7 @@ async def read_volume_attachment_status_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_volume_attachment_status_serialize( + _param = await self._read_volume_attributes_class_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -15495,7 +16453,7 @@ async def read_volume_attachment_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttachment", + '200': "V1VolumeAttributesClass", '401': None, } response_data = await self.api_client.call_api( @@ -15506,7 +16464,7 @@ async def read_volume_attachment_status_without_preload_content( return response_data.response - async def _read_volume_attachment_status_serialize( + async def _read_volume_attributes_class_serialize( self, name, pretty, @@ -15562,7 +16520,7 @@ async def _read_volume_attachment_status_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/storage.k8s.io/v1/volumeattachments/{name}/status', + resource_path='/apis/storage.k8s.io/v1/volumeattributesclasses/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15579,10 +16537,14 @@ async def _read_volume_attachment_status_serialize( @validate_call(config={'defer_build': True}) - async def read_volume_attributes_class( + async def replace_csi_driver( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], + name: Annotated[StrictStr, Field(description="name of the CSIDriver")], + body: V1CSIDriver, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15595,15 +16557,23 @@ async def read_volume_attributes_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1VolumeAttributesClass: - """read_volume_attributes_class + ) -> V1CSIDriver: + """replace_csi_driver - read the specified VolumeAttributesClass + replace the specified CSIDriver - :param name: name of the VolumeAttributesClass (required) + :param name: name of the CSIDriver (required) :type name: str + :param body: (required) + :type body: V1CSIDriver :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15626,9 +16596,13 @@ async def read_volume_attributes_class( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_volume_attributes_class_serialize( + _param = await self._replace_csi_driver_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15636,7 +16610,8 @@ async def read_volume_attributes_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttributesClass", + '200': "V1CSIDriver", + '201': "V1CSIDriver", '401': None, } response_data = await self.api_client.call_api( @@ -15651,10 +16626,14 @@ async def read_volume_attributes_class( @validate_call(config={'defer_build': True}) - async def read_volume_attributes_class_with_http_info( + async def replace_csi_driver_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], + name: Annotated[StrictStr, Field(description="name of the CSIDriver")], + body: V1CSIDriver, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15667,15 +16646,23 @@ async def read_volume_attributes_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1VolumeAttributesClass]: - """read_volume_attributes_class + ) -> ApiResponse[V1CSIDriver]: + """replace_csi_driver - read the specified VolumeAttributesClass + replace the specified CSIDriver - :param name: name of the VolumeAttributesClass (required) + :param name: name of the CSIDriver (required) :type name: str + :param body: (required) + :type body: V1CSIDriver :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15698,9 +16685,13 @@ async def read_volume_attributes_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_volume_attributes_class_serialize( + _param = await self._replace_csi_driver_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15708,7 +16699,8 @@ async def read_volume_attributes_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttributesClass", + '200': "V1CSIDriver", + '201': "V1CSIDriver", '401': None, } response_data = await self.api_client.call_api( @@ -15723,10 +16715,14 @@ async def read_volume_attributes_class_with_http_info( @validate_call(config={'defer_build': True}) - async def read_volume_attributes_class_without_preload_content( + async def replace_csi_driver_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], + name: Annotated[StrictStr, Field(description="name of the CSIDriver")], + body: V1CSIDriver, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15740,14 +16736,22 @@ async def read_volume_attributes_class_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """read_volume_attributes_class + """replace_csi_driver - read the specified VolumeAttributesClass + replace the specified CSIDriver - :param name: name of the VolumeAttributesClass (required) + :param name: name of the CSIDriver (required) :type name: str + :param body: (required) + :type body: V1CSIDriver :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15770,9 +16774,13 @@ async def read_volume_attributes_class_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_volume_attributes_class_serialize( + _param = await self._replace_csi_driver_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15780,7 +16788,8 @@ async def read_volume_attributes_class_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttributesClass", + '200': "V1CSIDriver", + '201': "V1CSIDriver", '401': None, } response_data = await self.api_client.call_api( @@ -15791,10 +16800,14 @@ async def read_volume_attributes_class_without_preload_content( return response_data.response - async def _read_volume_attributes_class_serialize( + async def _replace_csi_driver_serialize( self, name, + body, pretty, + dry_run, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -15823,9 +16836,23 @@ async def _read_volume_attributes_class_serialize( _query_params.append(('pretty', pretty)) + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -15846,8 +16873,8 @@ async def _read_volume_attributes_class_serialize( ] return await self.api_client.param_serialize( - method='GET', - resource_path='/apis/storage.k8s.io/v1/volumeattributesclasses/{name}', + method='PUT', + resource_path='/apis/storage.k8s.io/v1/csidrivers/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15864,10 +16891,10 @@ async def _read_volume_attributes_class_serialize( @validate_call(config={'defer_build': True}) - async def replace_csi_driver( + async def replace_csi_node( self, - name: Annotated[StrictStr, Field(description="name of the CSIDriver")], - body: V1CSIDriver, + name: Annotated[StrictStr, Field(description="name of the CSINode")], + body: V1CSINode, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -15884,15 +16911,15 @@ async def replace_csi_driver( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CSIDriver: - """replace_csi_driver + ) -> V1CSINode: + """replace_csi_node - replace the specified CSIDriver + replace the specified CSINode - :param name: name of the CSIDriver (required) + :param name: name of the CSINode (required) :type name: str :param body: (required) - :type body: V1CSIDriver + :type body: V1CSINode :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -15923,7 +16950,7 @@ async def replace_csi_driver( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_csi_driver_serialize( + _param = await self._replace_csi_node_serialize( name=name, body=body, pretty=pretty, @@ -15937,8 +16964,8 @@ async def replace_csi_driver( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSIDriver", - '201': "V1CSIDriver", + '200': "V1CSINode", + '201': "V1CSINode", '401': None, } response_data = await self.api_client.call_api( @@ -15953,10 +16980,10 @@ async def replace_csi_driver( @validate_call(config={'defer_build': True}) - async def replace_csi_driver_with_http_info( + async def replace_csi_node_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CSIDriver")], - body: V1CSIDriver, + name: Annotated[StrictStr, Field(description="name of the CSINode")], + body: V1CSINode, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -15973,15 +17000,15 @@ async def replace_csi_driver_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1CSIDriver]: - """replace_csi_driver + ) -> ApiResponse[V1CSINode]: + """replace_csi_node - replace the specified CSIDriver + replace the specified CSINode - :param name: name of the CSIDriver (required) + :param name: name of the CSINode (required) :type name: str :param body: (required) - :type body: V1CSIDriver + :type body: V1CSINode :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -16012,7 +17039,7 @@ async def replace_csi_driver_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_csi_driver_serialize( + _param = await self._replace_csi_node_serialize( name=name, body=body, pretty=pretty, @@ -16026,8 +17053,8 @@ async def replace_csi_driver_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSIDriver", - '201': "V1CSIDriver", + '200': "V1CSINode", + '201': "V1CSINode", '401': None, } response_data = await self.api_client.call_api( @@ -16042,10 +17069,10 @@ async def replace_csi_driver_with_http_info( @validate_call(config={'defer_build': True}) - async def replace_csi_driver_without_preload_content( + async def replace_csi_node_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the CSIDriver")], - body: V1CSIDriver, + name: Annotated[StrictStr, Field(description="name of the CSINode")], + body: V1CSINode, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -16063,14 +17090,14 @@ async def replace_csi_driver_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """replace_csi_driver + """replace_csi_node - replace the specified CSIDriver + replace the specified CSINode - :param name: name of the CSIDriver (required) + :param name: name of the CSINode (required) :type name: str :param body: (required) - :type body: V1CSIDriver + :type body: V1CSINode :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -16101,7 +17128,7 @@ async def replace_csi_driver_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_csi_driver_serialize( + _param = await self._replace_csi_node_serialize( name=name, body=body, pretty=pretty, @@ -16115,8 +17142,8 @@ async def replace_csi_driver_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSIDriver", - '201': "V1CSIDriver", + '200': "V1CSINode", + '201': "V1CSINode", '401': None, } response_data = await self.api_client.call_api( @@ -16127,7 +17154,7 @@ async def replace_csi_driver_without_preload_content( return response_data.response - async def _replace_csi_driver_serialize( + async def _replace_csi_node_serialize( self, name, body, @@ -16201,7 +17228,7 @@ async def _replace_csi_driver_serialize( return await self.api_client.param_serialize( method='PUT', - resource_path='/apis/storage.k8s.io/v1/csidrivers/{name}', + resource_path='/apis/storage.k8s.io/v1/csinodes/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -16218,7 +17245,7 @@ async def _replace_csi_driver_serialize( @validate_call(config={'defer_build': True}) - async def replace_csi_node( + async def replace_csi_node_status( self, name: Annotated[StrictStr, Field(description="name of the CSINode")], body: V1CSINode, @@ -16239,9 +17266,9 @@ async def replace_csi_node( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1CSINode: - """replace_csi_node + """replace_csi_node_status - replace the specified CSINode + replace status of the specified CSINode :param name: name of the CSINode (required) :type name: str @@ -16277,7 +17304,7 @@ async def replace_csi_node( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_csi_node_serialize( + _param = await self._replace_csi_node_status_serialize( name=name, body=body, pretty=pretty, @@ -16307,7 +17334,7 @@ async def replace_csi_node( @validate_call(config={'defer_build': True}) - async def replace_csi_node_with_http_info( + async def replace_csi_node_status_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the CSINode")], body: V1CSINode, @@ -16328,9 +17355,9 @@ async def replace_csi_node_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[V1CSINode]: - """replace_csi_node + """replace_csi_node_status - replace the specified CSINode + replace status of the specified CSINode :param name: name of the CSINode (required) :type name: str @@ -16366,7 +17393,7 @@ async def replace_csi_node_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_csi_node_serialize( + _param = await self._replace_csi_node_status_serialize( name=name, body=body, pretty=pretty, @@ -16396,7 +17423,7 @@ async def replace_csi_node_with_http_info( @validate_call(config={'defer_build': True}) - async def replace_csi_node_without_preload_content( + async def replace_csi_node_status_without_preload_content( self, name: Annotated[StrictStr, Field(description="name of the CSINode")], body: V1CSINode, @@ -16417,9 +17444,9 @@ async def replace_csi_node_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """replace_csi_node + """replace_csi_node_status - replace the specified CSINode + replace status of the specified CSINode :param name: name of the CSINode (required) :type name: str @@ -16455,7 +17482,7 @@ async def replace_csi_node_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_csi_node_serialize( + _param = await self._replace_csi_node_status_serialize( name=name, body=body, pretty=pretty, @@ -16481,7 +17508,7 @@ async def replace_csi_node_without_preload_content( return response_data.response - async def _replace_csi_node_serialize( + async def _replace_csi_node_status_serialize( self, name, body, @@ -16555,7 +17582,7 @@ async def _replace_csi_node_serialize( return await self.api_client.param_serialize( method='PUT', - resource_path='/apis/storage.k8s.io/v1/csinodes/{name}', + resource_path='/apis/storage.k8s.io/v1/csinodes/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/kubernetes/aio/client/api/storage_v1beta1_api.py b/kubernetes/aio/client/api/storage_v1beta1_api.py deleted file mode 100644 index a35e7ed366..0000000000 --- a/kubernetes/aio/client/api/storage_v1beta1_api.py +++ /dev/null @@ -1,3052 +0,0 @@ -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: release-1.36 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import warnings -from pydantic import BaseModel, validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictBool, StrictInt, StrictStr -from typing import Any, Dict, Optional -from typing_extensions import Annotated -from kubernetes.aio.client.models.v1_api_resource_list import V1APIResourceList -from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions -from kubernetes.aio.client.models.v1_status import V1Status -from kubernetes.aio.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass -from kubernetes.aio.client.models.v1beta1_volume_attributes_class_list import V1beta1VolumeAttributesClassList - -from kubernetes.aio.client.api_client import ApiClient, RequestSerialized -from kubernetes.aio.client.api_response import ApiResponse -from kubernetes.aio.client.rest import RESTResponseType - - -class StorageV1beta1Api: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - # api_client remains publicly assignable. Retain the client acquired at - # construction so reassignment cannot transfer or discard ownership. - if api_client is None: - api_client, owns_api_client = ApiClient._get_default_or_new() - else: - owns_api_client = False - self.api_client = api_client - self._owned_api_client: Optional[ApiClient] = ( - api_client if owns_api_client else None - ) - - async def close(self) -> None: - owned_api_client = self._owned_api_client - self._owned_api_client = None - if owned_api_client is not None: - await owned_api_client.close() - - async def __aenter__(self): - return self - - async def __aexit__(self, exc_type, exc_value, traceback): - await self.close() - - - @validate_call(config={'defer_build': True}) - async def create_volume_attributes_class( - self, - body: V1beta1VolumeAttributesClass, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1VolumeAttributesClass: - """create_volume_attributes_class - - create a VolumeAttributesClass - - :param body: (required) - :type body: V1beta1VolumeAttributesClass - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._create_volume_attributes_class_serialize( - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '201': "V1beta1VolumeAttributesClass", - '202': "V1beta1VolumeAttributesClass", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def create_volume_attributes_class_with_http_info( - self, - body: V1beta1VolumeAttributesClass, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1VolumeAttributesClass]: - """create_volume_attributes_class - - create a VolumeAttributesClass - - :param body: (required) - :type body: V1beta1VolumeAttributesClass - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._create_volume_attributes_class_serialize( - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '201': "V1beta1VolumeAttributesClass", - '202': "V1beta1VolumeAttributesClass", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call(config={'defer_build': True}) - async def create_volume_attributes_class_without_preload_content( - self, - body: V1beta1VolumeAttributesClass, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """create_volume_attributes_class - - create a VolumeAttributesClass - - :param body: (required) - :type body: V1beta1VolumeAttributesClass - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._create_volume_attributes_class_serialize( - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '201': "V1beta1VolumeAttributesClass", - '202': "V1beta1VolumeAttributesClass", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout - ) - return response_data.response - - - async def _create_volume_attributes_class_serialize( - self, - body, - pretty, - dry_run, - field_manager, - field_validation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if pretty is not None: - - _query_params.append(('pretty', pretty)) - - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - # process the header parameters - # process the form parameters - # process the body parameter - if body is not None: - _body_params = body - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'BearerToken' - ] - - return await self.api_client.param_serialize( - method='POST', - resource_path='/apis/storage.k8s.io/v1beta1/volumeattributesclasses', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call(config={'defer_build': True}) - async def delete_collection_volume_attributes_class( - self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1Status: - """delete_collection_volume_attributes_class - - delete collection of VolumeAttributesClass - - :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). - :type pretty: str - :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. - :type _continue: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._delete_collection_volume_attributes_class_serialize( - pretty=pretty, - _continue=_continue, - dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def delete_collection_volume_attributes_class_with_http_info( - self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1Status]: - """delete_collection_volume_attributes_class - - delete collection of VolumeAttributesClass - - :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). - :type pretty: str - :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. - :type _continue: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._delete_collection_volume_attributes_class_serialize( - pretty=pretty, - _continue=_continue, - dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call(config={'defer_build': True}) - async def delete_collection_volume_attributes_class_without_preload_content( - self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """delete_collection_volume_attributes_class - - delete collection of VolumeAttributesClass - - :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). - :type pretty: str - :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. - :type _continue: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._delete_collection_volume_attributes_class_serialize( - pretty=pretty, - _continue=_continue, - dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout - ) - return response_data.response - - - async def _delete_collection_volume_attributes_class_serialize( - self, - pretty, - _continue, - dry_run, - field_selector, - grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential, - label_selector, - limit, - orphan_dependents, - propagation_policy, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - body, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if pretty is not None: - - _query_params.append(('pretty', pretty)) - - if _continue is not None: - - _query_params.append(('continue', _continue)) - - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if grace_period_seconds is not None: - - _query_params.append(('gracePeriodSeconds', grace_period_seconds)) - - if ignore_store_read_error_with_cluster_breaking_potential is not None: - - _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if orphan_dependents is not None: - - _query_params.append(('orphanDependents', orphan_dependents)) - - if propagation_policy is not None: - - _query_params.append(('propagationPolicy', propagation_policy)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: - - _query_params.append(('shardSelector', shard_selector)) - - if timeout_seconds is not None: - - _query_params.append(('timeoutSeconds', timeout_seconds)) - - # process the header parameters - # process the form parameters - # process the body parameter - if body is not None: - _body_params = body - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'BearerToken' - ] - - return await self.api_client.param_serialize( - method='DELETE', - resource_path='/apis/storage.k8s.io/v1beta1/volumeattributesclasses', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call(config={'defer_build': True}) - async def delete_volume_attributes_class( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - body: Optional[V1DeleteOptions] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1VolumeAttributesClass: - """delete_volume_attributes_class - - delete a VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param body: - :type body: V1DeleteOptions - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._delete_volume_attributes_class_serialize( - name=name, - pretty=pretty, - dry_run=dry_run, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '202': "V1beta1VolumeAttributesClass", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def delete_volume_attributes_class_with_http_info( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - body: Optional[V1DeleteOptions] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1VolumeAttributesClass]: - """delete_volume_attributes_class - - delete a VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param body: - :type body: V1DeleteOptions - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._delete_volume_attributes_class_serialize( - name=name, - pretty=pretty, - dry_run=dry_run, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '202': "V1beta1VolumeAttributesClass", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call(config={'defer_build': True}) - async def delete_volume_attributes_class_without_preload_content( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - body: Optional[V1DeleteOptions] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """delete_volume_attributes_class - - delete a VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param body: - :type body: V1DeleteOptions - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._delete_volume_attributes_class_serialize( - name=name, - pretty=pretty, - dry_run=dry_run, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '202': "V1beta1VolumeAttributesClass", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout - ) - return response_data.response - - - async def _delete_volume_attributes_class_serialize( - self, - name, - pretty, - dry_run, - grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential, - orphan_dependents, - propagation_policy, - body, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if name is not None: - _path_params['name'] = name - # process the query parameters - if pretty is not None: - - _query_params.append(('pretty', pretty)) - - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if grace_period_seconds is not None: - - _query_params.append(('gracePeriodSeconds', grace_period_seconds)) - - if ignore_store_read_error_with_cluster_breaking_potential is not None: - - _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) - - if orphan_dependents is not None: - - _query_params.append(('orphanDependents', orphan_dependents)) - - if propagation_policy is not None: - - _query_params.append(('propagationPolicy', propagation_policy)) - - # process the header parameters - # process the form parameters - # process the body parameter - if body is not None: - _body_params = body - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'BearerToken' - ] - - return await self.api_client.param_serialize( - method='DELETE', - resource_path='/apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call(config={'defer_build': True}) - async def get_api_resources( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1APIResourceList: - """get_api_resources - - get available resources - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._get_api_resources_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1APIResourceList", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def get_api_resources_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1APIResourceList]: - """get_api_resources - - get available resources - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._get_api_resources_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1APIResourceList", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call(config={'defer_build': True}) - async def get_api_resources_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """get_api_resources - - get available resources - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._get_api_resources_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1APIResourceList", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout - ) - return response_data.response - - - async def _get_api_resources_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'BearerToken' - ] - - return await self.api_client.param_serialize( - method='GET', - resource_path='/apis/storage.k8s.io/v1beta1/', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call(config={'defer_build': True}) - async def list_volume_attributes_class( - self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1VolumeAttributesClassList: - """list_volume_attributes_class - - list or watch objects of kind VolumeAttributesClass - - :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). - :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._list_volume_attributes_class_serialize( - pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClassList", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def list_volume_attributes_class_with_http_info( - self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1VolumeAttributesClassList]: - """list_volume_attributes_class - - list or watch objects of kind VolumeAttributesClass - - :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). - :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._list_volume_attributes_class_serialize( - pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClassList", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call(config={'defer_build': True}) - async def list_volume_attributes_class_without_preload_content( - self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """list_volume_attributes_class - - list or watch objects of kind VolumeAttributesClass - - :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). - :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._list_volume_attributes_class_serialize( - pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClassList", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout - ) - return response_data.response - - - async def _list_volume_attributes_class_serialize( - self, - pretty, - allow_watch_bookmarks, - _continue, - field_selector, - label_selector, - limit, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - watch, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if pretty is not None: - - _query_params.append(('pretty', pretty)) - - if allow_watch_bookmarks is not None: - - _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) - - if _continue is not None: - - _query_params.append(('continue', _continue)) - - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: - - _query_params.append(('shardSelector', shard_selector)) - - if timeout_seconds is not None: - - _query_params.append(('timeoutSeconds', timeout_seconds)) - - if watch is not None: - - _query_params.append(('watch', watch)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor', - 'application/json;stream=watch', - 'application/vnd.kubernetes.protobuf;stream=watch', - 'application/cbor-seq' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'BearerToken' - ] - - return await self.api_client.param_serialize( - method='GET', - resource_path='/apis/storage.k8s.io/v1beta1/volumeattributesclasses', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call(config={'defer_build': True}) - async def patch_volume_attributes_class( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1VolumeAttributesClass: - """patch_volume_attributes_class - - partially update the specified VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :param body: (required) - :type body: object - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._patch_volume_attributes_class_serialize( - name=name, - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '201': "V1beta1VolumeAttributesClass", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def patch_volume_attributes_class_with_http_info( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1VolumeAttributesClass]: - """patch_volume_attributes_class - - partially update the specified VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :param body: (required) - :type body: object - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._patch_volume_attributes_class_serialize( - name=name, - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '201': "V1beta1VolumeAttributesClass", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call(config={'defer_build': True}) - async def patch_volume_attributes_class_without_preload_content( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """patch_volume_attributes_class - - partially update the specified VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :param body: (required) - :type body: object - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._patch_volume_attributes_class_serialize( - name=name, - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '201': "V1beta1VolumeAttributesClass", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout - ) - return response_data.response - - - async def _patch_volume_attributes_class_serialize( - self, - name, - body, - pretty, - dry_run, - field_manager, - field_validation, - force, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if name is not None: - _path_params['name'] = name - # process the query parameters - if pretty is not None: - - _query_params.append(('pretty', pretty)) - - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - - # process the header parameters - # process the form parameters - # process the body parameter - if body is not None: - _body_params = body - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'BearerToken' - ] - - return await self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call(config={'defer_build': True}) - async def read_volume_attributes_class( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1VolumeAttributesClass: - """read_volume_attributes_class - - read the specified VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :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). - :type pretty: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._read_volume_attributes_class_serialize( - name=name, - pretty=pretty, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def read_volume_attributes_class_with_http_info( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1VolumeAttributesClass]: - """read_volume_attributes_class - - read the specified VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :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). - :type pretty: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._read_volume_attributes_class_serialize( - name=name, - pretty=pretty, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call(config={'defer_build': True}) - async def read_volume_attributes_class_without_preload_content( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """read_volume_attributes_class - - read the specified VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :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). - :type pretty: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._read_volume_attributes_class_serialize( - name=name, - pretty=pretty, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout - ) - return response_data.response - - - async def _read_volume_attributes_class_serialize( - self, - name, - pretty, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if name is not None: - _path_params['name'] = name - # process the query parameters - if pretty is not None: - - _query_params.append(('pretty', pretty)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'BearerToken' - ] - - return await self.api_client.param_serialize( - method='GET', - resource_path='/apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call(config={'defer_build': True}) - async def replace_volume_attributes_class( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - body: V1beta1VolumeAttributesClass, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1VolumeAttributesClass: - """replace_volume_attributes_class - - replace the specified VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :param body: (required) - :type body: V1beta1VolumeAttributesClass - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._replace_volume_attributes_class_serialize( - name=name, - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '201': "V1beta1VolumeAttributesClass", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def replace_volume_attributes_class_with_http_info( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - body: V1beta1VolumeAttributesClass, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1VolumeAttributesClass]: - """replace_volume_attributes_class - - replace the specified VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :param body: (required) - :type body: V1beta1VolumeAttributesClass - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._replace_volume_attributes_class_serialize( - name=name, - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '201': "V1beta1VolumeAttributesClass", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call(config={'defer_build': True}) - async def replace_volume_attributes_class_without_preload_content( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - body: V1beta1VolumeAttributesClass, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """replace_volume_attributes_class - - replace the specified VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :param body: (required) - :type body: V1beta1VolumeAttributesClass - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._replace_volume_attributes_class_serialize( - name=name, - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '201': "V1beta1VolumeAttributesClass", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout - ) - return response_data.response - - - async def _replace_volume_attributes_class_serialize( - self, - name, - body, - pretty, - dry_run, - field_manager, - field_validation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if name is not None: - _path_params['name'] = name - # process the query parameters - if pretty is not None: - - _query_params.append(('pretty', pretty)) - - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - # process the header parameters - # process the form parameters - # process the body parameter - if body is not None: - _body_params = body - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'BearerToken' - ] - - return await self.api_client.param_serialize( - method='PUT', - resource_path='/apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) diff --git a/kubernetes/aio/client/api/storagemigration_api.py b/kubernetes/aio/client/api/storagemigration_api.py index ea8511a44d..dd5155b9a8 100644 --- a/kubernetes/aio/client/api/storagemigration_api.py +++ b/kubernetes/aio/client/api/storagemigration_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -278,7 +278,8 @@ async def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/aio/client/api/certificates_v1alpha1_api.py b/kubernetes/aio/client/api/storagemigration_v1_api.py similarity index 77% rename from kubernetes/aio/client/api/certificates_v1alpha1_api.py rename to kubernetes/aio/client/api/storagemigration_v1_api.py index 2585a26724..d2371d203e 100644 --- a/kubernetes/aio/client/api/certificates_v1alpha1_api.py +++ b/kubernetes/aio/client/api/storagemigration_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,15 +21,15 @@ from kubernetes.aio.client.models.v1_api_resource_list import V1APIResourceList from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions from kubernetes.aio.client.models.v1_status import V1Status -from kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle -from kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_list import V1alpha1ClusterTrustBundleList +from kubernetes.aio.client.models.v1_storage_version_migration import V1StorageVersionMigration +from kubernetes.aio.client.models.v1_storage_version_migration_list import V1StorageVersionMigrationList from kubernetes.aio.client.api_client import ApiClient, RequestSerialized from kubernetes.aio.client.api_response import ApiResponse from kubernetes.aio.client.rest import RESTResponseType -class CertificatesV1alpha1Api: +class StoragemigrationV1Api: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech @@ -62,9 +62,9 @@ async def __aexit__(self, exc_type, exc_value, traceback): @validate_call(config={'defer_build': True}) - async def create_cluster_trust_bundle( + async def create_storage_version_migration( self, - body: V1alpha1ClusterTrustBundle, + body: V1StorageVersionMigration, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -81,13 +81,13 @@ async def create_cluster_trust_bundle( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha1ClusterTrustBundle: - """create_cluster_trust_bundle + ) -> V1StorageVersionMigration: + """create_storage_version_migration - create a ClusterTrustBundle + create a StorageVersionMigration :param body: (required) - :type body: V1alpha1ClusterTrustBundle + :type body: V1StorageVersionMigration :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -118,7 +118,7 @@ async def create_cluster_trust_bundle( :return: Returns the result object. """ # noqa: E501 - _param = await self._create_cluster_trust_bundle_serialize( + _param = await self._create_storage_version_migration_serialize( body=body, pretty=pretty, dry_run=dry_run, @@ -131,9 +131,9 @@ async def create_cluster_trust_bundle( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", - '201': "V1alpha1ClusterTrustBundle", - '202': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", + '202': "V1StorageVersionMigration", '401': None, } response_data = await self.api_client.call_api( @@ -148,9 +148,9 @@ async def create_cluster_trust_bundle( @validate_call(config={'defer_build': True}) - async def create_cluster_trust_bundle_with_http_info( + async def create_storage_version_migration_with_http_info( self, - body: V1alpha1ClusterTrustBundle, + body: V1StorageVersionMigration, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -167,13 +167,13 @@ async def create_cluster_trust_bundle_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha1ClusterTrustBundle]: - """create_cluster_trust_bundle + ) -> ApiResponse[V1StorageVersionMigration]: + """create_storage_version_migration - create a ClusterTrustBundle + create a StorageVersionMigration :param body: (required) - :type body: V1alpha1ClusterTrustBundle + :type body: V1StorageVersionMigration :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -204,7 +204,7 @@ async def create_cluster_trust_bundle_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._create_cluster_trust_bundle_serialize( + _param = await self._create_storage_version_migration_serialize( body=body, pretty=pretty, dry_run=dry_run, @@ -217,9 +217,9 @@ async def create_cluster_trust_bundle_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", - '201': "V1alpha1ClusterTrustBundle", - '202': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", + '202': "V1StorageVersionMigration", '401': None, } response_data = await self.api_client.call_api( @@ -234,9 +234,9 @@ async def create_cluster_trust_bundle_with_http_info( @validate_call(config={'defer_build': True}) - async def create_cluster_trust_bundle_without_preload_content( + async def create_storage_version_migration_without_preload_content( self, - body: V1alpha1ClusterTrustBundle, + body: V1StorageVersionMigration, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -254,12 +254,12 @@ async def create_cluster_trust_bundle_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """create_cluster_trust_bundle + """create_storage_version_migration - create a ClusterTrustBundle + create a StorageVersionMigration :param body: (required) - :type body: V1alpha1ClusterTrustBundle + :type body: V1StorageVersionMigration :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -290,7 +290,7 @@ async def create_cluster_trust_bundle_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._create_cluster_trust_bundle_serialize( + _param = await self._create_storage_version_migration_serialize( body=body, pretty=pretty, dry_run=dry_run, @@ -303,9 +303,9 @@ async def create_cluster_trust_bundle_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", - '201': "V1alpha1ClusterTrustBundle", - '202': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", + '202': "V1StorageVersionMigration", '401': None, } response_data = await self.api_client.call_api( @@ -316,7 +316,7 @@ async def create_cluster_trust_bundle_without_preload_content( return response_data.response - async def _create_cluster_trust_bundle_serialize( + async def _create_storage_version_migration_serialize( self, body, pretty, @@ -387,7 +387,7 @@ async def _create_cluster_trust_bundle_serialize( return await self.api_client.param_serialize( method='POST', - resource_path='/apis/certificates.k8s.io/v1alpha1/clustertrustbundles', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -404,15 +404,23 @@ async def _create_cluster_trust_bundle_serialize( @validate_call(config={'defer_build': True}) - async def delete_cluster_trust_bundle( + async def delete_collection_storage_version_migration( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, @@ -426,25 +434,41 @@ async def delete_cluster_trust_bundle( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """delete_cluster_trust_bundle + ) -> V1Status: + """delete_collection_storage_version_migration - delete a ClusterTrustBundle + delete collection of StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) - :type name: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one @@ -469,14 +493,22 @@ async def delete_cluster_trust_bundle( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_cluster_trust_bundle_serialize( - name=name, + _param = await self._delete_collection_storage_version_migration_serialize( pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -485,8 +517,7 @@ async def delete_cluster_trust_bundle( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '202': "object", + '200': "V1Status", '401': None, } response_data = await self.api_client.call_api( @@ -501,15 +532,23 @@ async def delete_cluster_trust_bundle( @validate_call(config={'defer_build': True}) - async def delete_cluster_trust_bundle_with_http_info( + async def delete_collection_storage_version_migration_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, @@ -523,25 +562,41 @@ async def delete_cluster_trust_bundle_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """delete_cluster_trust_bundle + ) -> ApiResponse[V1Status]: + """delete_collection_storage_version_migration - delete a ClusterTrustBundle + delete collection of StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) - :type name: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one @@ -566,14 +621,22 @@ async def delete_cluster_trust_bundle_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_cluster_trust_bundle_serialize( - name=name, + _param = await self._delete_collection_storage_version_migration_serialize( pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -582,8 +645,7 @@ async def delete_cluster_trust_bundle_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '202': "object", + '200': "V1Status", '401': None, } response_data = await self.api_client.call_api( @@ -598,15 +660,23 @@ async def delete_cluster_trust_bundle_with_http_info( @validate_call(config={'defer_build': True}) - async def delete_cluster_trust_bundle_without_preload_content( + async def delete_collection_storage_version_migration_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, @@ -621,24 +691,40 @@ async def delete_cluster_trust_bundle_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_cluster_trust_bundle + """delete_collection_storage_version_migration - delete a ClusterTrustBundle + delete collection of StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) - :type name: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one @@ -663,14 +749,22 @@ async def delete_cluster_trust_bundle_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_cluster_trust_bundle_serialize( - name=name, + _param = await self._delete_collection_storage_version_migration_serialize( pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -679,8 +773,7 @@ async def delete_cluster_trust_bundle_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '202': "object", + '200': "V1Status", '401': None, } response_data = await self.api_client.call_api( @@ -691,15 +784,23 @@ async def delete_cluster_trust_bundle_without_preload_content( return response_data.response - async def _delete_cluster_trust_bundle_serialize( + async def _delete_collection_storage_version_migration_serialize( self, - name, pretty, + _continue, dry_run, + field_selector, grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, orphan_dependents, propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, body, _request_auth, _content_type, @@ -722,17 +823,23 @@ async def _delete_cluster_trust_bundle_serialize( _body_params: Optional[bytes] = None # process the path parameters - if name is not None: - _path_params['name'] = name # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) + if _continue is not None: + + _query_params.append(('continue', _continue)) + if dry_run is not None: _query_params.append(('dryRun', dry_run)) + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + if grace_period_seconds is not None: _query_params.append(('gracePeriodSeconds', grace_period_seconds)) @@ -741,6 +848,14 @@ async def _delete_cluster_trust_bundle_serialize( _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + if orphan_dependents is not None: _query_params.append(('orphanDependents', orphan_dependents)) @@ -749,6 +864,26 @@ async def _delete_cluster_trust_bundle_serialize( _query_params.append(('propagationPolicy', propagation_policy)) + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + # process the header parameters # process the form parameters # process the body parameter @@ -775,7 +910,7 @@ async def _delete_cluster_trust_bundle_serialize( return await self.api_client.param_serialize( method='DELETE', - resource_path='/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -792,23 +927,15 @@ async def _delete_cluster_trust_bundle_serialize( @validate_call(config={'defer_build': True}) - async def delete_collection_cluster_trust_bundle( + async def delete_storage_version_migration( self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, @@ -822,41 +949,25 @@ async def delete_collection_cluster_trust_bundle( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1Status: - """delete_collection_cluster_trust_bundle + ) -> object: + """delete_storage_version_migration - delete collection of ClusterTrustBundle + delete a StorageVersionMigration + :param name: name of the StorageVersionMigration (required) + :type name: str :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). :type pretty: str - :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. - :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one @@ -881,22 +992,14 @@ async def delete_collection_cluster_trust_bundle( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_cluster_trust_bundle_serialize( + _param = await self._delete_storage_version_migration_serialize( + name=name, pretty=pretty, - _continue=_continue, dry_run=dry_run, - field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -905,7 +1008,8 @@ async def delete_collection_cluster_trust_bundle( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", + '200': "object", + '202': "object", '401': None, } response_data = await self.api_client.call_api( @@ -920,23 +1024,15 @@ async def delete_collection_cluster_trust_bundle( @validate_call(config={'defer_build': True}) - async def delete_collection_cluster_trust_bundle_with_http_info( + async def delete_storage_version_migration_with_http_info( self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, @@ -950,41 +1046,25 @@ async def delete_collection_cluster_trust_bundle_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1Status]: - """delete_collection_cluster_trust_bundle + ) -> ApiResponse[object]: + """delete_storage_version_migration - delete collection of ClusterTrustBundle + delete a StorageVersionMigration + :param name: name of the StorageVersionMigration (required) + :type name: str :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). :type pretty: str - :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. - :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one @@ -1009,22 +1089,14 @@ async def delete_collection_cluster_trust_bundle_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_cluster_trust_bundle_serialize( + _param = await self._delete_storage_version_migration_serialize( + name=name, pretty=pretty, - _continue=_continue, dry_run=dry_run, - field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -1033,7 +1105,8 @@ async def delete_collection_cluster_trust_bundle_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", + '200': "object", + '202': "object", '401': None, } response_data = await self.api_client.call_api( @@ -1048,23 +1121,15 @@ async def delete_collection_cluster_trust_bundle_with_http_info( @validate_call(config={'defer_build': True}) - async def delete_collection_cluster_trust_bundle_without_preload_content( + async def delete_storage_version_migration_without_preload_content( self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, _request_timeout: Union[ None, @@ -1079,40 +1144,24 @@ async def delete_collection_cluster_trust_bundle_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_collection_cluster_trust_bundle + """delete_storage_version_migration - delete collection of ClusterTrustBundle + delete a StorageVersionMigration + :param name: name of the StorageVersionMigration (required) + :type name: str :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). :type pretty: str - :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. - :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param _request_timeout: timeout setting for this request. If one @@ -1137,22 +1186,14 @@ async def delete_collection_cluster_trust_bundle_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_cluster_trust_bundle_serialize( + _param = await self._delete_storage_version_migration_serialize( + name=name, pretty=pretty, - _continue=_continue, dry_run=dry_run, - field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -1161,7 +1202,8 @@ async def delete_collection_cluster_trust_bundle_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", + '200': "object", + '202': "object", '401': None, } response_data = await self.api_client.call_api( @@ -1172,23 +1214,15 @@ async def delete_collection_cluster_trust_bundle_without_preload_content( return response_data.response - async def _delete_collection_cluster_trust_bundle_serialize( + async def _delete_storage_version_migration_serialize( self, + name, pretty, - _continue, dry_run, - field_selector, grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential, - label_selector, - limit, orphan_dependents, propagation_policy, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, body, _request_auth, _content_type, @@ -1211,23 +1245,17 @@ async def _delete_collection_cluster_trust_bundle_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if _continue is not None: - - _query_params.append(('continue', _continue)) - if dry_run is not None: _query_params.append(('dryRun', dry_run)) - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - if grace_period_seconds is not None: _query_params.append(('gracePeriodSeconds', grace_period_seconds)) @@ -1236,14 +1264,6 @@ async def _delete_collection_cluster_trust_bundle_serialize( _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - if orphan_dependents is not None: _query_params.append(('orphanDependents', orphan_dependents)) @@ -1252,26 +1272,6 @@ async def _delete_collection_cluster_trust_bundle_serialize( _query_params.append(('propagationPolicy', propagation_policy)) - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: - - _query_params.append(('shardSelector', shard_selector)) - - if timeout_seconds is not None: - - _query_params.append(('timeoutSeconds', timeout_seconds)) - # process the header parameters # process the form parameters # process the body parameter @@ -1298,7 +1298,7 @@ async def _delete_collection_cluster_trust_bundle_serialize( return await self.api_client.param_serialize( method='DELETE', - resource_path='/apis/certificates.k8s.io/v1alpha1/clustertrustbundles', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1551,7 +1551,7 @@ async def _get_api_resources_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/certificates.k8s.io/v1alpha1/', + resource_path='/apis/storagemigration.k8s.io/v1/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1568,7 +1568,7 @@ async def _get_api_resources_serialize( @validate_call(config={'defer_build': True}) - async def list_cluster_trust_bundle( + async def list_storage_version_migration( self, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, @@ -1594,10 +1594,10 @@ async def list_cluster_trust_bundle( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha1ClusterTrustBundleList: - """list_cluster_trust_bundle + ) -> V1StorageVersionMigrationList: + """list_storage_version_migration - list or watch objects of kind ClusterTrustBundle + list or watch objects of kind StorageVersionMigration :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). :type pretty: str @@ -1645,7 +1645,7 @@ async def list_cluster_trust_bundle( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_cluster_trust_bundle_serialize( + _param = await self._list_storage_version_migration_serialize( pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, @@ -1665,7 +1665,7 @@ async def list_cluster_trust_bundle( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundleList", + '200': "V1StorageVersionMigrationList", '401': None, } response_data = await self.api_client.call_api( @@ -1680,7 +1680,7 @@ async def list_cluster_trust_bundle( @validate_call(config={'defer_build': True}) - async def list_cluster_trust_bundle_with_http_info( + async def list_storage_version_migration_with_http_info( self, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, @@ -1706,10 +1706,10 @@ async def list_cluster_trust_bundle_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha1ClusterTrustBundleList]: - """list_cluster_trust_bundle + ) -> ApiResponse[V1StorageVersionMigrationList]: + """list_storage_version_migration - list or watch objects of kind ClusterTrustBundle + list or watch objects of kind StorageVersionMigration :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). :type pretty: str @@ -1757,7 +1757,7 @@ async def list_cluster_trust_bundle_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_cluster_trust_bundle_serialize( + _param = await self._list_storage_version_migration_serialize( pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, @@ -1777,7 +1777,7 @@ async def list_cluster_trust_bundle_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundleList", + '200': "V1StorageVersionMigrationList", '401': None, } response_data = await self.api_client.call_api( @@ -1792,7 +1792,7 @@ async def list_cluster_trust_bundle_with_http_info( @validate_call(config={'defer_build': True}) - async def list_cluster_trust_bundle_without_preload_content( + async def list_storage_version_migration_without_preload_content( self, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, @@ -1819,9 +1819,9 @@ async def list_cluster_trust_bundle_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """list_cluster_trust_bundle + """list_storage_version_migration - list or watch objects of kind ClusterTrustBundle + list or watch objects of kind StorageVersionMigration :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). :type pretty: str @@ -1869,19 +1869,1135 @@ async def list_cluster_trust_bundle_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_cluster_trust_bundle_serialize( + _param = await self._list_storage_version_migration_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1StorageVersionMigrationList", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _list_storage_version_migration_serialize( + self, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='GET', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_storage_version_migration( + self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1StorageVersionMigration: + """patch_storage_version_migration + + partially update the specified StorageVersionMigration + + :param name: name of the StorageVersionMigration (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_storage_version_migration_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_storage_version_migration_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1StorageVersionMigration]: + """patch_storage_version_migration + + partially update the specified StorageVersionMigration + + :param name: name of the StorageVersionMigration (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_storage_version_migration_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_storage_version_migration_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_storage_version_migration + + partially update the specified StorageVersionMigration + + :param name: name of the StorageVersionMigration (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_storage_version_migration_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_storage_version_migration_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def patch_storage_version_migration_status( + self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1StorageVersionMigration: + """patch_storage_version_migration_status + + partially update status of the specified StorageVersionMigration + + :param name: name of the StorageVersionMigration (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_storage_version_migration_status_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def patch_storage_version_migration_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1StorageVersionMigration]: + """patch_storage_version_migration_status + + partially update status of the specified StorageVersionMigration + + :param name: name of the StorageVersionMigration (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_storage_version_migration_status_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def patch_storage_version_migration_status_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_storage_version_migration_status + + partially update status of the specified StorageVersionMigration + + :param name: name of the StorageVersionMigration (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._patch_storage_version_migration_status_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _preload_content=False, + _request_timeout=_request_timeout + ) + return response_data.response + + + async def _patch_storage_version_migration_status_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return await self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + async def read_storage_version_migration( + self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1StorageVersionMigration: + """read_storage_version_migration + + read the specified StorageVersionMigration + + :param name: name of the StorageVersionMigration (required) + :type name: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_storage_version_migration_serialize( + name=name, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1StorageVersionMigration", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call(config={'defer_build': True}) + async def read_storage_version_migration_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1StorageVersionMigration]: + """read_storage_version_migration + + read the specified StorageVersionMigration + + :param name: name of the StorageVersionMigration (required) + :type name: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_storage_version_migration_serialize( + name=name, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1StorageVersionMigration", + '401': None, + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call(config={'defer_build': True}) + async def read_storage_version_migration_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """read_storage_version_migration + + read the specified StorageVersionMigration + + :param name: name of the StorageVersionMigration (required) + :type name: str + :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). + :type pretty: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = await self._read_storage_version_migration_serialize( + name=name, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1889,7 +3005,7 @@ async def list_cluster_trust_bundle_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundleList", + '200': "V1StorageVersionMigration", '401': None, } response_data = await self.api_client.call_api( @@ -1900,20 +3016,10 @@ async def list_cluster_trust_bundle_without_preload_content( return response_data.response - async def _list_cluster_trust_bundle_serialize( + async def _read_storage_version_migration_serialize( self, + name, pretty, - allow_watch_bookmarks, - _continue, - field_selector, - label_selector, - limit, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - watch, _request_auth, _content_type, _headers, @@ -1935,55 +3041,13 @@ async def _list_cluster_trust_bundle_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if allow_watch_bookmarks is not None: - - _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) - - if _continue is not None: - - _query_params.append(('continue', _continue)) - - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: - - _query_params.append(('shardSelector', shard_selector)) - - if timeout_seconds is not None: - - _query_params.append(('timeoutSeconds', timeout_seconds)) - - if watch is not None: - - _query_params.append(('watch', watch)) - # process the header parameters # process the form parameters # process the body parameter @@ -1996,10 +3060,7 @@ async def _list_cluster_trust_bundle_serialize( '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' ] ) @@ -2011,7 +3072,7 @@ async def _list_cluster_trust_bundle_serialize( return await self.api_client.param_serialize( method='GET', - resource_path='/apis/certificates.k8s.io/v1alpha1/clustertrustbundles', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2028,15 +3089,10 @@ async def _list_cluster_trust_bundle_serialize( @validate_call(config={'defer_build': True}) - async def patch_cluster_trust_bundle( + async def read_storage_version_migration_status( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2049,25 +3105,15 @@ async def patch_cluster_trust_bundle( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha1ClusterTrustBundle: - """patch_cluster_trust_bundle + ) -> V1StorageVersionMigration: + """read_storage_version_migration_status - partially update the specified ClusterTrustBundle + read status of the specified StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) + :param name: name of the StorageVersionMigration (required) :type name: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2090,14 +3136,9 @@ async def patch_cluster_trust_bundle( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_cluster_trust_bundle_serialize( + _param = await self._read_storage_version_migration_status_serialize( name=name, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2105,8 +3146,7 @@ async def patch_cluster_trust_bundle( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", - '201': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", '401': None, } response_data = await self.api_client.call_api( @@ -2121,15 +3161,10 @@ async def patch_cluster_trust_bundle( @validate_call(config={'defer_build': True}) - async def patch_cluster_trust_bundle_with_http_info( + async def read_storage_version_migration_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2142,25 +3177,15 @@ async def patch_cluster_trust_bundle_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha1ClusterTrustBundle]: - """patch_cluster_trust_bundle + ) -> ApiResponse[V1StorageVersionMigration]: + """read_storage_version_migration_status - partially update the specified ClusterTrustBundle + read status of the specified StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) + :param name: name of the StorageVersionMigration (required) :type name: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2183,14 +3208,9 @@ async def patch_cluster_trust_bundle_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_cluster_trust_bundle_serialize( + _param = await self._read_storage_version_migration_status_serialize( name=name, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2198,8 +3218,7 @@ async def patch_cluster_trust_bundle_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", - '201': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", '401': None, } response_data = await self.api_client.call_api( @@ -2214,15 +3233,10 @@ async def patch_cluster_trust_bundle_with_http_info( @validate_call(config={'defer_build': True}) - async def patch_cluster_trust_bundle_without_preload_content( + async def read_storage_version_migration_status_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2236,24 +3250,14 @@ async def patch_cluster_trust_bundle_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """patch_cluster_trust_bundle + """read_storage_version_migration_status - partially update the specified ClusterTrustBundle + read status of the specified StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) + :param name: name of the StorageVersionMigration (required) :type name: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2276,14 +3280,9 @@ async def patch_cluster_trust_bundle_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_cluster_trust_bundle_serialize( + _param = await self._read_storage_version_migration_status_serialize( name=name, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2291,8 +3290,7 @@ async def patch_cluster_trust_bundle_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", - '201': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", '401': None, } response_data = await self.api_client.call_api( @@ -2303,15 +3301,10 @@ async def patch_cluster_trust_bundle_without_preload_content( return response_data.response - async def _patch_cluster_trust_bundle_serialize( + async def _read_storage_version_migration_status_serialize( self, name, - body, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -2340,27 +3333,9 @@ async def _patch_cluster_trust_bundle_serialize( _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -2374,23 +3349,6 @@ async def _patch_cluster_trust_bundle_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2398,8 +3356,8 @@ async def _patch_cluster_trust_bundle_serialize( ] return await self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}', + method='GET', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2416,10 +3374,14 @@ async def _patch_cluster_trust_bundle_serialize( @validate_call(config={'defer_build': True}) - async def read_cluster_trust_bundle( + async def replace_storage_version_migration( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: V1StorageVersionMigration, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2432,15 +3394,23 @@ async def read_cluster_trust_bundle( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha1ClusterTrustBundle: - """read_cluster_trust_bundle + ) -> V1StorageVersionMigration: + """replace_storage_version_migration - read the specified ClusterTrustBundle + replace the specified StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) + :param name: name of the StorageVersionMigration (required) :type name: str + :param body: (required) + :type body: V1StorageVersionMigration :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2463,9 +3433,13 @@ async def read_cluster_trust_bundle( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_cluster_trust_bundle_serialize( + _param = await self._replace_storage_version_migration_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2473,7 +3447,8 @@ async def read_cluster_trust_bundle( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", '401': None, } response_data = await self.api_client.call_api( @@ -2488,10 +3463,14 @@ async def read_cluster_trust_bundle( @validate_call(config={'defer_build': True}) - async def read_cluster_trust_bundle_with_http_info( + async def replace_storage_version_migration_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: V1StorageVersionMigration, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2504,15 +3483,23 @@ async def read_cluster_trust_bundle_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha1ClusterTrustBundle]: - """read_cluster_trust_bundle + ) -> ApiResponse[V1StorageVersionMigration]: + """replace_storage_version_migration - read the specified ClusterTrustBundle + replace the specified StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) + :param name: name of the StorageVersionMigration (required) :type name: str + :param body: (required) + :type body: V1StorageVersionMigration :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2535,9 +3522,13 @@ async def read_cluster_trust_bundle_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_cluster_trust_bundle_serialize( + _param = await self._replace_storage_version_migration_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2545,7 +3536,8 @@ async def read_cluster_trust_bundle_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", '401': None, } response_data = await self.api_client.call_api( @@ -2560,10 +3552,14 @@ async def read_cluster_trust_bundle_with_http_info( @validate_call(config={'defer_build': True}) - async def read_cluster_trust_bundle_without_preload_content( + async def replace_storage_version_migration_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: V1StorageVersionMigration, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2577,14 +3573,22 @@ async def read_cluster_trust_bundle_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """read_cluster_trust_bundle + """replace_storage_version_migration - read the specified ClusterTrustBundle + replace the specified StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) + :param name: name of the StorageVersionMigration (required) :type name: str + :param body: (required) + :type body: V1StorageVersionMigration :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2607,9 +3611,13 @@ async def read_cluster_trust_bundle_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_cluster_trust_bundle_serialize( + _param = await self._replace_storage_version_migration_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2617,7 +3625,8 @@ async def read_cluster_trust_bundle_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", '401': None, } response_data = await self.api_client.call_api( @@ -2628,10 +3637,14 @@ async def read_cluster_trust_bundle_without_preload_content( return response_data.response - async def _read_cluster_trust_bundle_serialize( + async def _replace_storage_version_migration_serialize( self, name, + body, pretty, + dry_run, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -2660,9 +3673,23 @@ async def _read_cluster_trust_bundle_serialize( _query_params.append(('pretty', pretty)) + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -2683,8 +3710,8 @@ async def _read_cluster_trust_bundle_serialize( ] return await self.api_client.param_serialize( - method='GET', - resource_path='/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}', + method='PUT', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2701,10 +3728,10 @@ async def _read_cluster_trust_bundle_serialize( @validate_call(config={'defer_build': True}) - async def replace_cluster_trust_bundle( + async def replace_storage_version_migration_status( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], - body: V1alpha1ClusterTrustBundle, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: V1StorageVersionMigration, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -2721,15 +3748,15 @@ async def replace_cluster_trust_bundle( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha1ClusterTrustBundle: - """replace_cluster_trust_bundle + ) -> V1StorageVersionMigration: + """replace_storage_version_migration_status - replace the specified ClusterTrustBundle + replace status of the specified StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) + :param name: name of the StorageVersionMigration (required) :type name: str :param body: (required) - :type body: V1alpha1ClusterTrustBundle + :type body: V1StorageVersionMigration :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -2760,7 +3787,7 @@ async def replace_cluster_trust_bundle( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_cluster_trust_bundle_serialize( + _param = await self._replace_storage_version_migration_status_serialize( name=name, body=body, pretty=pretty, @@ -2774,8 +3801,8 @@ async def replace_cluster_trust_bundle( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", - '201': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", '401': None, } response_data = await self.api_client.call_api( @@ -2790,10 +3817,10 @@ async def replace_cluster_trust_bundle( @validate_call(config={'defer_build': True}) - async def replace_cluster_trust_bundle_with_http_info( + async def replace_storage_version_migration_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], - body: V1alpha1ClusterTrustBundle, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: V1StorageVersionMigration, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -2810,15 +3837,15 @@ async def replace_cluster_trust_bundle_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1alpha1ClusterTrustBundle]: - """replace_cluster_trust_bundle + ) -> ApiResponse[V1StorageVersionMigration]: + """replace_storage_version_migration_status - replace the specified ClusterTrustBundle + replace status of the specified StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) + :param name: name of the StorageVersionMigration (required) :type name: str :param body: (required) - :type body: V1alpha1ClusterTrustBundle + :type body: V1StorageVersionMigration :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -2849,7 +3876,7 @@ async def replace_cluster_trust_bundle_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_cluster_trust_bundle_serialize( + _param = await self._replace_storage_version_migration_status_serialize( name=name, body=body, pretty=pretty, @@ -2863,8 +3890,8 @@ async def replace_cluster_trust_bundle_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", - '201': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", '401': None, } response_data = await self.api_client.call_api( @@ -2879,10 +3906,10 @@ async def replace_cluster_trust_bundle_with_http_info( @validate_call(config={'defer_build': True}) - async def replace_cluster_trust_bundle_without_preload_content( + async def replace_storage_version_migration_status_without_preload_content( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], - body: V1alpha1ClusterTrustBundle, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: V1StorageVersionMigration, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -2900,14 +3927,14 @@ async def replace_cluster_trust_bundle_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """replace_cluster_trust_bundle + """replace_storage_version_migration_status - replace the specified ClusterTrustBundle + replace status of the specified StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) + :param name: name of the StorageVersionMigration (required) :type name: str :param body: (required) - :type body: V1alpha1ClusterTrustBundle + :type body: V1StorageVersionMigration :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -2938,7 +3965,7 @@ async def replace_cluster_trust_bundle_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_cluster_trust_bundle_serialize( + _param = await self._replace_storage_version_migration_status_serialize( name=name, body=body, pretty=pretty, @@ -2952,8 +3979,8 @@ async def replace_cluster_trust_bundle_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", - '201': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", '401': None, } response_data = await self.api_client.call_api( @@ -2964,7 +3991,7 @@ async def replace_cluster_trust_bundle_without_preload_content( return response_data.response - async def _replace_cluster_trust_bundle_serialize( + async def _replace_storage_version_migration_status_serialize( self, name, body, @@ -3038,7 +4065,7 @@ async def _replace_cluster_trust_bundle_serialize( return await self.api_client.param_serialize( method='PUT', - resource_path='/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/kubernetes/aio/client/api/storagemigration_v1beta1_api.py b/kubernetes/aio/client/api/storagemigration_v1beta1_api.py index 87b7893b6e..364a9ef281 100644 --- a/kubernetes/aio/client/api/storagemigration_v1beta1_api.py +++ b/kubernetes/aio/client/api/storagemigration_v1beta1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/version_api.py b/kubernetes/aio/client/api/version_api.py index 042f4fa3f1..9025b1dee6 100644 --- a/kubernetes/aio/client/api/version_api.py +++ b/kubernetes/aio/client/api/version_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/api/well_known_api.py b/kubernetes/aio/client/api/well_known_api.py index e21e1c88de..85e34b697a 100644 --- a/kubernetes/aio/client/api/well_known_api.py +++ b/kubernetes/aio/client/api/well_known_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/__init__.py b/kubernetes/aio/client/models/__init__.py index 26bac0c859..1a5921b8b0 100644 --- a/kubernetes/aio/client/models/__init__.py +++ b/kubernetes/aio/client/models/__init__.py @@ -6,7 +6,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -64,6 +64,7 @@ "V1CSINodeDriver", "V1CSINodeList", "V1CSINodeSpec", + "V1CSINodeStatus", "V1CSIPersistentVolumeSource", "V1CSIStorageCapacity", "V1CSIStorageCapacityList", @@ -86,7 +87,10 @@ "V1ClusterRoleBinding", "V1ClusterRoleBindingList", "V1ClusterRoleList", + "V1ClusterTrustBundle", + "V1ClusterTrustBundleList", "V1ClusterTrustBundleProjection", + "V1ClusterTrustBundleSpec", "V1ComponentCondition", "V1ComponentStatus", "V1ComponentStatusList", @@ -159,11 +163,17 @@ "V1DeviceClassSpec", "V1DeviceConstraint", "V1DeviceCounterConsumption", + "V1DeviceDerivedAttribute", "V1DeviceRequest", "V1DeviceRequestAllocationResult", "V1DeviceSelector", "V1DeviceSubRequest", "V1DeviceTaint", + "V1DeviceTaintRule", + "V1DeviceTaintRuleList", + "V1DeviceTaintRuleSpec", + "V1DeviceTaintRuleStatus", + "V1DeviceTaintSelector", "V1DeviceToleration", "V1DownwardAPIProjection", "V1DownwardAPIVolumeFile", @@ -185,6 +195,7 @@ "V1EphemeralVolumeSource", "V1EventSource", "V1Eviction", + "V1EvictionResponder", "V1ExactDeviceRequest", "V1ExecAction", "V1ExemptPriorityLevelConfiguration", @@ -253,6 +264,7 @@ "V1Job", "V1JobCondition", "V1JobList", + "V1JobSchedulingConfiguration", "V1JobSpec", "V1JobStatus", "V1JobTemplateSpec", @@ -310,14 +322,19 @@ "V1Node", "V1NodeAddress", "V1NodeAffinity", + "V1NodeAllocatableMappedResources", + "V1NodeAllocatableMapping", + "V1NodeAllocatableOverhead", + "V1NodeAllocatableOverheadResources", + "V1NodeAllocatableResource", "V1NodeAllocatableResourceClaimStatus", - "V1NodeAllocatableResourceMapping", "V1NodeCondition", "V1NodeConfigSource", "V1NodeConfigStatus", "V1NodeDaemonEndpoints", "V1NodeFeatures", "V1NodeList", + "V1NodePodPreemptionPolicy", "V1NodeRuntimeHandler", "V1NodeRuntimeHandlerFeatures", "V1NodeSelector", @@ -356,6 +373,10 @@ "V1PodAffinityTerm", "V1PodAntiAffinity", "V1PodCertificateProjection", + "V1PodCertificateRequest", + "V1PodCertificateRequestList", + "V1PodCertificateRequestSpec", + "V1PodCertificateRequestStatus", "V1PodCondition", "V1PodDNSConfig", "V1PodDNSConfigOption", @@ -382,6 +403,7 @@ "V1PodTemplate", "V1PodTemplateList", "V1PodTemplateSpec", + "V1PodVolumeHealth", "V1PolicyRule", "V1PolicyRulesWithSubjects", "V1PortStatus", @@ -501,8 +523,14 @@ "V1StatusDetails", "V1StorageClass", "V1StorageClassList", + "V1StorageHealth", + "V1StorageHealthCondition", "V1StorageOSPersistentVolumeSource", "V1StorageOSVolumeSource", + "V1StorageVersionMigration", + "V1StorageVersionMigrationList", + "V1StorageVersionMigrationSpec", + "V1StorageVersionMigrationStatus", "V1SubjectAccessReview", "V1SubjectAccessReviewSpec", "V1SubjectAccessReviewStatus", @@ -550,6 +578,8 @@ "V1VolumeAttributesClassList", "V1VolumeDevice", "V1VolumeError", + "V1VolumeHealthCondition", + "V1VolumeHealthStatus", "V1VolumeMount", "V1VolumeMountStatus", "V1VolumeNodeAffinity", @@ -563,9 +593,18 @@ "V1WeightedPodAffinityTerm", "V1WindowsSecurityContextOptions", "V1alpha1ApplyConfiguration", - "V1alpha1ClusterTrustBundle", - "V1alpha1ClusterTrustBundleList", - "V1alpha1ClusterTrustBundleSpec", + "V1alpha1Eviction", + "V1alpha1EvictionList", + "V1alpha1EvictionPodReference", + "V1alpha1EvictionRequest", + "V1alpha1EvictionRequestList", + "V1alpha1EvictionRequestPodReference", + "V1alpha1EvictionRequestSpec", + "V1alpha1EvictionRequestStatus", + "V1alpha1EvictionRequestTarget", + "V1alpha1EvictionSpec", + "V1alpha1EvictionStatus", + "V1alpha1EvictionTarget", "V1alpha1JSONPatch", "V1alpha1MatchCondition", "V1alpha1MatchResources", @@ -579,43 +618,63 @@ "V1alpha1NamedRuleWithOperations", "V1alpha1ParamKind", "V1alpha1ParamRef", + "V1alpha1Requester", + "V1alpha1ResponderStatus", "V1alpha1ServerStorageVersion", "V1alpha1StorageVersion", "V1alpha1StorageVersionCondition", "V1alpha1StorageVersionList", "V1alpha1StorageVersionStatus", + "V1alpha1TargetResponder", "V1alpha1Variable", - "V1alpha2GangSchedulingPolicy", "V1alpha2LeaseCandidate", "V1alpha2LeaseCandidateList", "V1alpha2LeaseCandidateSpec", - "V1alpha2PodGroup", - "V1alpha2PodGroupList", - "V1alpha2PodGroupResourceClaim", - "V1alpha2PodGroupResourceClaimStatus", - "V1alpha2PodGroupSchedulingConstraints", - "V1alpha2PodGroupSchedulingPolicy", - "V1alpha2PodGroupSpec", - "V1alpha2PodGroupStatus", - "V1alpha2PodGroupTemplate", - "V1alpha2PodGroupTemplateReference", - "V1alpha2TopologyConstraint", - "V1alpha2TypedLocalObjectReference", - "V1alpha2Workload", - "V1alpha2WorkloadList", - "V1alpha2WorkloadPodGroupTemplateReference", - "V1alpha2WorkloadSpec", + "V1alpha3CompositeDisruptionMode", + "V1alpha3CompositeGangSchedulingPolicy", + "V1alpha3CompositePodGroup", + "V1alpha3CompositePodGroupList", + "V1alpha3CompositePodGroupSchedulingConstraints", + "V1alpha3CompositePodGroupSchedulingPolicy", + "V1alpha3CompositePodGroupSpec", + "V1alpha3CompositePodGroupStatus", + "V1alpha3CompositePodGroupTemplate", "V1alpha3DeviceTaint", "V1alpha3DeviceTaintRule", "V1alpha3DeviceTaintRuleList", "V1alpha3DeviceTaintRuleSpec", "V1alpha3DeviceTaintRuleStatus", "V1alpha3DeviceTaintSelector", + "V1alpha3DisruptionMode", + "V1alpha3GangSchedulingPolicy", + "V1alpha3PartitionTypeStatus", + "V1alpha3PodGroup", + "V1alpha3PodGroupList", + "V1alpha3PodGroupResourceClaim", + "V1alpha3PodGroupResourceClaimStatus", + "V1alpha3PodGroupSchedulingConstraints", + "V1alpha3PodGroupSchedulingPolicy", + "V1alpha3PodGroupSpec", + "V1alpha3PodGroupStatus", + "V1alpha3PodGroupTemplate", "V1alpha3PoolStatus", "V1alpha3ResourcePoolStatusRequest", "V1alpha3ResourcePoolStatusRequestList", "V1alpha3ResourcePoolStatusRequestSpec", "V1alpha3ResourcePoolStatusRequestStatus", + "V1alpha3ShareableCapacityStatus", + "V1alpha3ShareableSummaryStatus", + "V1alpha3TopologyConstraint", + "V1alpha3TypedLocalObjectReference", + "V1alpha3Workload", + "V1alpha3WorkloadList", + "V1alpha3WorkloadPodGroupDisruptionMode", + "V1alpha3WorkloadPodGroupGangSchedulingPolicy", + "V1alpha3WorkloadPodGroupResourceClaim", + "V1alpha3WorkloadPodGroupSchedulingConstraints", + "V1alpha3WorkloadPodGroupSchedulingPolicy", + "V1alpha3WorkloadReference", + "V1alpha3WorkloadSpec", "V1beta1AllocatedDeviceStatus", "V1beta1AllocationResult", "V1beta1ApplyConfiguration", @@ -627,6 +686,11 @@ "V1beta1ClusterTrustBundle", "V1beta1ClusterTrustBundleList", "V1beta1ClusterTrustBundleSpec", + "V1beta1CompositeDisruptionMode", + "V1beta1CompositeGangSchedulingPolicy", + "V1beta1CompositePodGroupSchedulingConstraints", + "V1beta1CompositePodGroupSchedulingPolicy", + "V1beta1CompositePodGroupTemplate", "V1beta1Counter", "V1beta1CounterSet", "V1beta1Device", @@ -642,15 +706,15 @@ "V1beta1DeviceClassSpec", "V1beta1DeviceConstraint", "V1beta1DeviceCounterConsumption", + "V1beta1DeviceDerivedAttribute", "V1beta1DeviceRequest", "V1beta1DeviceRequestAllocationResult", "V1beta1DeviceSelector", "V1beta1DeviceSubRequest", "V1beta1DeviceTaint", "V1beta1DeviceToleration", - "V1beta1IPAddress", - "V1beta1IPAddressList", - "V1beta1IPAddressSpec", + "V1beta1DisruptionMode", + "V1beta1GangSchedulingPolicy", "V1beta1JSONPatch", "V1beta1LeaseCandidate", "V1beta1LeaseCandidateList", @@ -666,15 +730,25 @@ "V1beta1Mutation", "V1beta1NamedRuleWithOperations", "V1beta1NetworkDeviceData", - "V1beta1NodeAllocatableResourceMapping", + "V1beta1NodeAllocatableMapping", + "V1beta1NodeAllocatableOverhead", + "V1beta1NodeAllocatableResource", "V1beta1OpaqueDeviceConfiguration", "V1beta1ParamKind", "V1beta1ParamRef", - "V1beta1ParentReference", "V1beta1PodCertificateRequest", "V1beta1PodCertificateRequestList", "V1beta1PodCertificateRequestSpec", "V1beta1PodCertificateRequestStatus", + "V1beta1PodGroup", + "V1beta1PodGroupList", + "V1beta1PodGroupResourceClaim", + "V1beta1PodGroupResourceClaimStatus", + "V1beta1PodGroupSchedulingConstraints", + "V1beta1PodGroupSchedulingPolicy", + "V1beta1PodGroupSpec", + "V1beta1PodGroupStatus", + "V1beta1PodGroupTemplate", "V1beta1ResourceClaim", "V1beta1ResourceClaimConsumerReference", "V1beta1ResourceClaimList", @@ -687,17 +761,17 @@ "V1beta1ResourceSlice", "V1beta1ResourceSliceList", "V1beta1ResourceSliceSpec", - "V1beta1ServiceCIDR", - "V1beta1ServiceCIDRList", - "V1beta1ServiceCIDRSpec", - "V1beta1ServiceCIDRStatus", "V1beta1StorageVersionMigration", "V1beta1StorageVersionMigrationList", "V1beta1StorageVersionMigrationSpec", "V1beta1StorageVersionMigrationStatus", + "V1beta1TopologyConstraint", + "V1beta1TypedLocalObjectReference", "V1beta1Variable", - "V1beta1VolumeAttributesClass", - "V1beta1VolumeAttributesClassList", + "V1beta1Workload", + "V1beta1WorkloadList", + "V1beta1WorkloadReference", + "V1beta1WorkloadSpec", "V1beta2AllocatedDeviceStatus", "V1beta2AllocationResult", "V1beta2CELDeviceSelector", @@ -719,6 +793,7 @@ "V1beta2DeviceClassSpec", "V1beta2DeviceConstraint", "V1beta2DeviceCounterConsumption", + "V1beta2DeviceDerivedAttribute", "V1beta2DeviceRequest", "V1beta2DeviceRequestAllocationResult", "V1beta2DeviceSelector", @@ -732,7 +807,9 @@ "V1beta2DeviceToleration", "V1beta2ExactDeviceRequest", "V1beta2NetworkDeviceData", - "V1beta2NodeAllocatableResourceMapping", + "V1beta2NodeAllocatableMapping", + "V1beta2NodeAllocatableOverhead", + "V1beta2NodeAllocatableResource", "V1beta2OpaqueDeviceConfiguration", "V1beta2ResourceClaim", "V1beta2ResourceClaimConsumerReference", @@ -838,6 +915,7 @@ from kubernetes.aio.client.models.v1_csi_node_driver import V1CSINodeDriver from kubernetes.aio.client.models.v1_csi_node_list import V1CSINodeList from kubernetes.aio.client.models.v1_csi_node_spec import V1CSINodeSpec + from kubernetes.aio.client.models.v1_csi_node_status import V1CSINodeStatus from kubernetes.aio.client.models.v1_csi_persistent_volume_source import V1CSIPersistentVolumeSource from kubernetes.aio.client.models.v1_csi_storage_capacity import V1CSIStorageCapacity from kubernetes.aio.client.models.v1_csi_storage_capacity_list import V1CSIStorageCapacityList @@ -860,7 +938,10 @@ from kubernetes.aio.client.models.v1_cluster_role_binding import V1ClusterRoleBinding from kubernetes.aio.client.models.v1_cluster_role_binding_list import V1ClusterRoleBindingList from kubernetes.aio.client.models.v1_cluster_role_list import V1ClusterRoleList + from kubernetes.aio.client.models.v1_cluster_trust_bundle import V1ClusterTrustBundle + from kubernetes.aio.client.models.v1_cluster_trust_bundle_list import V1ClusterTrustBundleList from kubernetes.aio.client.models.v1_cluster_trust_bundle_projection import V1ClusterTrustBundleProjection + from kubernetes.aio.client.models.v1_cluster_trust_bundle_spec import V1ClusterTrustBundleSpec from kubernetes.aio.client.models.v1_component_condition import V1ComponentCondition from kubernetes.aio.client.models.v1_component_status import V1ComponentStatus from kubernetes.aio.client.models.v1_component_status_list import V1ComponentStatusList @@ -933,11 +1014,17 @@ from kubernetes.aio.client.models.v1_device_class_spec import V1DeviceClassSpec from kubernetes.aio.client.models.v1_device_constraint import V1DeviceConstraint from kubernetes.aio.client.models.v1_device_counter_consumption import V1DeviceCounterConsumption + from kubernetes.aio.client.models.v1_device_derived_attribute import V1DeviceDerivedAttribute from kubernetes.aio.client.models.v1_device_request import V1DeviceRequest from kubernetes.aio.client.models.v1_device_request_allocation_result import V1DeviceRequestAllocationResult from kubernetes.aio.client.models.v1_device_selector import V1DeviceSelector from kubernetes.aio.client.models.v1_device_sub_request import V1DeviceSubRequest from kubernetes.aio.client.models.v1_device_taint import V1DeviceTaint + from kubernetes.aio.client.models.v1_device_taint_rule import V1DeviceTaintRule + from kubernetes.aio.client.models.v1_device_taint_rule_list import V1DeviceTaintRuleList + from kubernetes.aio.client.models.v1_device_taint_rule_spec import V1DeviceTaintRuleSpec + from kubernetes.aio.client.models.v1_device_taint_rule_status import V1DeviceTaintRuleStatus + from kubernetes.aio.client.models.v1_device_taint_selector import V1DeviceTaintSelector from kubernetes.aio.client.models.v1_device_toleration import V1DeviceToleration from kubernetes.aio.client.models.v1_downward_api_projection import V1DownwardAPIProjection from kubernetes.aio.client.models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile @@ -959,6 +1046,7 @@ from kubernetes.aio.client.models.v1_ephemeral_volume_source import V1EphemeralVolumeSource from kubernetes.aio.client.models.v1_event_source import V1EventSource from kubernetes.aio.client.models.v1_eviction import V1Eviction + from kubernetes.aio.client.models.v1_eviction_responder import V1EvictionResponder from kubernetes.aio.client.models.v1_exact_device_request import V1ExactDeviceRequest from kubernetes.aio.client.models.v1_exec_action import V1ExecAction from kubernetes.aio.client.models.v1_exempt_priority_level_configuration import V1ExemptPriorityLevelConfiguration @@ -1027,6 +1115,7 @@ from kubernetes.aio.client.models.v1_job import V1Job from kubernetes.aio.client.models.v1_job_condition import V1JobCondition from kubernetes.aio.client.models.v1_job_list import V1JobList + from kubernetes.aio.client.models.v1_job_scheduling_configuration import V1JobSchedulingConfiguration from kubernetes.aio.client.models.v1_job_spec import V1JobSpec from kubernetes.aio.client.models.v1_job_status import V1JobStatus from kubernetes.aio.client.models.v1_job_template_spec import V1JobTemplateSpec @@ -1084,14 +1173,19 @@ from kubernetes.aio.client.models.v1_node import V1Node from kubernetes.aio.client.models.v1_node_address import V1NodeAddress from kubernetes.aio.client.models.v1_node_affinity import V1NodeAffinity + from kubernetes.aio.client.models.v1_node_allocatable_mapped_resources import V1NodeAllocatableMappedResources + from kubernetes.aio.client.models.v1_node_allocatable_mapping import V1NodeAllocatableMapping + from kubernetes.aio.client.models.v1_node_allocatable_overhead import V1NodeAllocatableOverhead + from kubernetes.aio.client.models.v1_node_allocatable_overhead_resources import V1NodeAllocatableOverheadResources + from kubernetes.aio.client.models.v1_node_allocatable_resource import V1NodeAllocatableResource from kubernetes.aio.client.models.v1_node_allocatable_resource_claim_status import V1NodeAllocatableResourceClaimStatus - from kubernetes.aio.client.models.v1_node_allocatable_resource_mapping import V1NodeAllocatableResourceMapping from kubernetes.aio.client.models.v1_node_condition import V1NodeCondition from kubernetes.aio.client.models.v1_node_config_source import V1NodeConfigSource from kubernetes.aio.client.models.v1_node_config_status import V1NodeConfigStatus from kubernetes.aio.client.models.v1_node_daemon_endpoints import V1NodeDaemonEndpoints from kubernetes.aio.client.models.v1_node_features import V1NodeFeatures from kubernetes.aio.client.models.v1_node_list import V1NodeList + from kubernetes.aio.client.models.v1_node_pod_preemption_policy import V1NodePodPreemptionPolicy from kubernetes.aio.client.models.v1_node_runtime_handler import V1NodeRuntimeHandler from kubernetes.aio.client.models.v1_node_runtime_handler_features import V1NodeRuntimeHandlerFeatures from kubernetes.aio.client.models.v1_node_selector import V1NodeSelector @@ -1130,6 +1224,10 @@ from kubernetes.aio.client.models.v1_pod_affinity_term import V1PodAffinityTerm from kubernetes.aio.client.models.v1_pod_anti_affinity import V1PodAntiAffinity from kubernetes.aio.client.models.v1_pod_certificate_projection import V1PodCertificateProjection + from kubernetes.aio.client.models.v1_pod_certificate_request import V1PodCertificateRequest + from kubernetes.aio.client.models.v1_pod_certificate_request_list import V1PodCertificateRequestList + from kubernetes.aio.client.models.v1_pod_certificate_request_spec import V1PodCertificateRequestSpec + from kubernetes.aio.client.models.v1_pod_certificate_request_status import V1PodCertificateRequestStatus from kubernetes.aio.client.models.v1_pod_condition import V1PodCondition from kubernetes.aio.client.models.v1_pod_dns_config import V1PodDNSConfig from kubernetes.aio.client.models.v1_pod_dns_config_option import V1PodDNSConfigOption @@ -1156,6 +1254,7 @@ from kubernetes.aio.client.models.v1_pod_template import V1PodTemplate from kubernetes.aio.client.models.v1_pod_template_list import V1PodTemplateList from kubernetes.aio.client.models.v1_pod_template_spec import V1PodTemplateSpec + from kubernetes.aio.client.models.v1_pod_volume_health import V1PodVolumeHealth from kubernetes.aio.client.models.v1_policy_rule import V1PolicyRule from kubernetes.aio.client.models.v1_policy_rules_with_subjects import V1PolicyRulesWithSubjects from kubernetes.aio.client.models.v1_port_status import V1PortStatus @@ -1275,8 +1374,14 @@ from kubernetes.aio.client.models.v1_status_details import V1StatusDetails from kubernetes.aio.client.models.v1_storage_class import V1StorageClass from kubernetes.aio.client.models.v1_storage_class_list import V1StorageClassList + from kubernetes.aio.client.models.v1_storage_health import V1StorageHealth + from kubernetes.aio.client.models.v1_storage_health_condition import V1StorageHealthCondition from kubernetes.aio.client.models.v1_storage_os_persistent_volume_source import V1StorageOSPersistentVolumeSource from kubernetes.aio.client.models.v1_storage_os_volume_source import V1StorageOSVolumeSource + from kubernetes.aio.client.models.v1_storage_version_migration import V1StorageVersionMigration + from kubernetes.aio.client.models.v1_storage_version_migration_list import V1StorageVersionMigrationList + from kubernetes.aio.client.models.v1_storage_version_migration_spec import V1StorageVersionMigrationSpec + from kubernetes.aio.client.models.v1_storage_version_migration_status import V1StorageVersionMigrationStatus from kubernetes.aio.client.models.v1_subject_access_review import V1SubjectAccessReview from kubernetes.aio.client.models.v1_subject_access_review_spec import V1SubjectAccessReviewSpec from kubernetes.aio.client.models.v1_subject_access_review_status import V1SubjectAccessReviewStatus @@ -1324,6 +1429,8 @@ from kubernetes.aio.client.models.v1_volume_attributes_class_list import V1VolumeAttributesClassList from kubernetes.aio.client.models.v1_volume_device import V1VolumeDevice from kubernetes.aio.client.models.v1_volume_error import V1VolumeError + from kubernetes.aio.client.models.v1_volume_health_condition import V1VolumeHealthCondition + from kubernetes.aio.client.models.v1_volume_health_status import V1VolumeHealthStatus from kubernetes.aio.client.models.v1_volume_mount import V1VolumeMount from kubernetes.aio.client.models.v1_volume_mount_status import V1VolumeMountStatus from kubernetes.aio.client.models.v1_volume_node_affinity import V1VolumeNodeAffinity @@ -1337,9 +1444,18 @@ from kubernetes.aio.client.models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm from kubernetes.aio.client.models.v1_windows_security_context_options import V1WindowsSecurityContextOptions from kubernetes.aio.client.models.v1alpha1_apply_configuration import V1alpha1ApplyConfiguration - from kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle - from kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_list import V1alpha1ClusterTrustBundleList - from kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_spec import V1alpha1ClusterTrustBundleSpec + from kubernetes.aio.client.models.v1alpha1_eviction import V1alpha1Eviction + from kubernetes.aio.client.models.v1alpha1_eviction_list import V1alpha1EvictionList + from kubernetes.aio.client.models.v1alpha1_eviction_pod_reference import V1alpha1EvictionPodReference + from kubernetes.aio.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest + from kubernetes.aio.client.models.v1alpha1_eviction_request_list import V1alpha1EvictionRequestList + from kubernetes.aio.client.models.v1alpha1_eviction_request_pod_reference import V1alpha1EvictionRequestPodReference + from kubernetes.aio.client.models.v1alpha1_eviction_request_spec import V1alpha1EvictionRequestSpec + from kubernetes.aio.client.models.v1alpha1_eviction_request_status import V1alpha1EvictionRequestStatus + from kubernetes.aio.client.models.v1alpha1_eviction_request_target import V1alpha1EvictionRequestTarget + from kubernetes.aio.client.models.v1alpha1_eviction_spec import V1alpha1EvictionSpec + from kubernetes.aio.client.models.v1alpha1_eviction_status import V1alpha1EvictionStatus + from kubernetes.aio.client.models.v1alpha1_eviction_target import V1alpha1EvictionTarget from kubernetes.aio.client.models.v1alpha1_json_patch import V1alpha1JSONPatch from kubernetes.aio.client.models.v1alpha1_match_condition import V1alpha1MatchCondition from kubernetes.aio.client.models.v1alpha1_match_resources import V1alpha1MatchResources @@ -1353,43 +1469,63 @@ from kubernetes.aio.client.models.v1alpha1_named_rule_with_operations import V1alpha1NamedRuleWithOperations from kubernetes.aio.client.models.v1alpha1_param_kind import V1alpha1ParamKind from kubernetes.aio.client.models.v1alpha1_param_ref import V1alpha1ParamRef + from kubernetes.aio.client.models.v1alpha1_requester import V1alpha1Requester + from kubernetes.aio.client.models.v1alpha1_responder_status import V1alpha1ResponderStatus from kubernetes.aio.client.models.v1alpha1_server_storage_version import V1alpha1ServerStorageVersion from kubernetes.aio.client.models.v1alpha1_storage_version import V1alpha1StorageVersion from kubernetes.aio.client.models.v1alpha1_storage_version_condition import V1alpha1StorageVersionCondition from kubernetes.aio.client.models.v1alpha1_storage_version_list import V1alpha1StorageVersionList from kubernetes.aio.client.models.v1alpha1_storage_version_status import V1alpha1StorageVersionStatus + from kubernetes.aio.client.models.v1alpha1_target_responder import V1alpha1TargetResponder from kubernetes.aio.client.models.v1alpha1_variable import V1alpha1Variable - from kubernetes.aio.client.models.v1alpha2_gang_scheduling_policy import V1alpha2GangSchedulingPolicy from kubernetes.aio.client.models.v1alpha2_lease_candidate import V1alpha2LeaseCandidate from kubernetes.aio.client.models.v1alpha2_lease_candidate_list import V1alpha2LeaseCandidateList from kubernetes.aio.client.models.v1alpha2_lease_candidate_spec import V1alpha2LeaseCandidateSpec - from kubernetes.aio.client.models.v1alpha2_pod_group import V1alpha2PodGroup - from kubernetes.aio.client.models.v1alpha2_pod_group_list import V1alpha2PodGroupList - from kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim import V1alpha2PodGroupResourceClaim - from kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim_status import V1alpha2PodGroupResourceClaimStatus - from kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_constraints import V1alpha2PodGroupSchedulingConstraints - from kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_policy import V1alpha2PodGroupSchedulingPolicy - from kubernetes.aio.client.models.v1alpha2_pod_group_spec import V1alpha2PodGroupSpec - from kubernetes.aio.client.models.v1alpha2_pod_group_status import V1alpha2PodGroupStatus - from kubernetes.aio.client.models.v1alpha2_pod_group_template import V1alpha2PodGroupTemplate - from kubernetes.aio.client.models.v1alpha2_pod_group_template_reference import V1alpha2PodGroupTemplateReference - from kubernetes.aio.client.models.v1alpha2_topology_constraint import V1alpha2TopologyConstraint - from kubernetes.aio.client.models.v1alpha2_typed_local_object_reference import V1alpha2TypedLocalObjectReference - from kubernetes.aio.client.models.v1alpha2_workload import V1alpha2Workload - from kubernetes.aio.client.models.v1alpha2_workload_list import V1alpha2WorkloadList - from kubernetes.aio.client.models.v1alpha2_workload_pod_group_template_reference import V1alpha2WorkloadPodGroupTemplateReference - from kubernetes.aio.client.models.v1alpha2_workload_spec import V1alpha2WorkloadSpec + from kubernetes.aio.client.models.v1alpha3_composite_disruption_mode import V1alpha3CompositeDisruptionMode + from kubernetes.aio.client.models.v1alpha3_composite_gang_scheduling_policy import V1alpha3CompositeGangSchedulingPolicy + from kubernetes.aio.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup + from kubernetes.aio.client.models.v1alpha3_composite_pod_group_list import V1alpha3CompositePodGroupList + from kubernetes.aio.client.models.v1alpha3_composite_pod_group_scheduling_constraints import V1alpha3CompositePodGroupSchedulingConstraints + from kubernetes.aio.client.models.v1alpha3_composite_pod_group_scheduling_policy import V1alpha3CompositePodGroupSchedulingPolicy + from kubernetes.aio.client.models.v1alpha3_composite_pod_group_spec import V1alpha3CompositePodGroupSpec + from kubernetes.aio.client.models.v1alpha3_composite_pod_group_status import V1alpha3CompositePodGroupStatus + from kubernetes.aio.client.models.v1alpha3_composite_pod_group_template import V1alpha3CompositePodGroupTemplate from kubernetes.aio.client.models.v1alpha3_device_taint import V1alpha3DeviceTaint from kubernetes.aio.client.models.v1alpha3_device_taint_rule import V1alpha3DeviceTaintRule from kubernetes.aio.client.models.v1alpha3_device_taint_rule_list import V1alpha3DeviceTaintRuleList from kubernetes.aio.client.models.v1alpha3_device_taint_rule_spec import V1alpha3DeviceTaintRuleSpec from kubernetes.aio.client.models.v1alpha3_device_taint_rule_status import V1alpha3DeviceTaintRuleStatus from kubernetes.aio.client.models.v1alpha3_device_taint_selector import V1alpha3DeviceTaintSelector + from kubernetes.aio.client.models.v1alpha3_disruption_mode import V1alpha3DisruptionMode + from kubernetes.aio.client.models.v1alpha3_gang_scheduling_policy import V1alpha3GangSchedulingPolicy + from kubernetes.aio.client.models.v1alpha3_partition_type_status import V1alpha3PartitionTypeStatus + from kubernetes.aio.client.models.v1alpha3_pod_group import V1alpha3PodGroup + from kubernetes.aio.client.models.v1alpha3_pod_group_list import V1alpha3PodGroupList + from kubernetes.aio.client.models.v1alpha3_pod_group_resource_claim import V1alpha3PodGroupResourceClaim + from kubernetes.aio.client.models.v1alpha3_pod_group_resource_claim_status import V1alpha3PodGroupResourceClaimStatus + from kubernetes.aio.client.models.v1alpha3_pod_group_scheduling_constraints import V1alpha3PodGroupSchedulingConstraints + from kubernetes.aio.client.models.v1alpha3_pod_group_scheduling_policy import V1alpha3PodGroupSchedulingPolicy + from kubernetes.aio.client.models.v1alpha3_pod_group_spec import V1alpha3PodGroupSpec + from kubernetes.aio.client.models.v1alpha3_pod_group_status import V1alpha3PodGroupStatus + from kubernetes.aio.client.models.v1alpha3_pod_group_template import V1alpha3PodGroupTemplate from kubernetes.aio.client.models.v1alpha3_pool_status import V1alpha3PoolStatus from kubernetes.aio.client.models.v1alpha3_resource_pool_status_request import V1alpha3ResourcePoolStatusRequest from kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_list import V1alpha3ResourcePoolStatusRequestList from kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_spec import V1alpha3ResourcePoolStatusRequestSpec from kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_status import V1alpha3ResourcePoolStatusRequestStatus + from kubernetes.aio.client.models.v1alpha3_shareable_capacity_status import V1alpha3ShareableCapacityStatus + from kubernetes.aio.client.models.v1alpha3_shareable_summary_status import V1alpha3ShareableSummaryStatus + from kubernetes.aio.client.models.v1alpha3_topology_constraint import V1alpha3TopologyConstraint + from kubernetes.aio.client.models.v1alpha3_typed_local_object_reference import V1alpha3TypedLocalObjectReference + from kubernetes.aio.client.models.v1alpha3_workload import V1alpha3Workload + from kubernetes.aio.client.models.v1alpha3_workload_list import V1alpha3WorkloadList + from kubernetes.aio.client.models.v1alpha3_workload_pod_group_disruption_mode import V1alpha3WorkloadPodGroupDisruptionMode + from kubernetes.aio.client.models.v1alpha3_workload_pod_group_gang_scheduling_policy import V1alpha3WorkloadPodGroupGangSchedulingPolicy + from kubernetes.aio.client.models.v1alpha3_workload_pod_group_resource_claim import V1alpha3WorkloadPodGroupResourceClaim + from kubernetes.aio.client.models.v1alpha3_workload_pod_group_scheduling_constraints import V1alpha3WorkloadPodGroupSchedulingConstraints + from kubernetes.aio.client.models.v1alpha3_workload_pod_group_scheduling_policy import V1alpha3WorkloadPodGroupSchedulingPolicy + from kubernetes.aio.client.models.v1alpha3_workload_reference import V1alpha3WorkloadReference + from kubernetes.aio.client.models.v1alpha3_workload_spec import V1alpha3WorkloadSpec from kubernetes.aio.client.models.v1beta1_allocated_device_status import V1beta1AllocatedDeviceStatus from kubernetes.aio.client.models.v1beta1_allocation_result import V1beta1AllocationResult from kubernetes.aio.client.models.v1beta1_apply_configuration import V1beta1ApplyConfiguration @@ -1401,6 +1537,11 @@ from kubernetes.aio.client.models.v1beta1_cluster_trust_bundle import V1beta1ClusterTrustBundle from kubernetes.aio.client.models.v1beta1_cluster_trust_bundle_list import V1beta1ClusterTrustBundleList from kubernetes.aio.client.models.v1beta1_cluster_trust_bundle_spec import V1beta1ClusterTrustBundleSpec + from kubernetes.aio.client.models.v1beta1_composite_disruption_mode import V1beta1CompositeDisruptionMode + from kubernetes.aio.client.models.v1beta1_composite_gang_scheduling_policy import V1beta1CompositeGangSchedulingPolicy + from kubernetes.aio.client.models.v1beta1_composite_pod_group_scheduling_constraints import V1beta1CompositePodGroupSchedulingConstraints + from kubernetes.aio.client.models.v1beta1_composite_pod_group_scheduling_policy import V1beta1CompositePodGroupSchedulingPolicy + from kubernetes.aio.client.models.v1beta1_composite_pod_group_template import V1beta1CompositePodGroupTemplate from kubernetes.aio.client.models.v1beta1_counter import V1beta1Counter from kubernetes.aio.client.models.v1beta1_counter_set import V1beta1CounterSet from kubernetes.aio.client.models.v1beta1_device import V1beta1Device @@ -1416,15 +1557,15 @@ from kubernetes.aio.client.models.v1beta1_device_class_spec import V1beta1DeviceClassSpec from kubernetes.aio.client.models.v1beta1_device_constraint import V1beta1DeviceConstraint from kubernetes.aio.client.models.v1beta1_device_counter_consumption import V1beta1DeviceCounterConsumption + from kubernetes.aio.client.models.v1beta1_device_derived_attribute import V1beta1DeviceDerivedAttribute from kubernetes.aio.client.models.v1beta1_device_request import V1beta1DeviceRequest from kubernetes.aio.client.models.v1beta1_device_request_allocation_result import V1beta1DeviceRequestAllocationResult from kubernetes.aio.client.models.v1beta1_device_selector import V1beta1DeviceSelector from kubernetes.aio.client.models.v1beta1_device_sub_request import V1beta1DeviceSubRequest from kubernetes.aio.client.models.v1beta1_device_taint import V1beta1DeviceTaint from kubernetes.aio.client.models.v1beta1_device_toleration import V1beta1DeviceToleration - from kubernetes.aio.client.models.v1beta1_ip_address import V1beta1IPAddress - from kubernetes.aio.client.models.v1beta1_ip_address_list import V1beta1IPAddressList - from kubernetes.aio.client.models.v1beta1_ip_address_spec import V1beta1IPAddressSpec + from kubernetes.aio.client.models.v1beta1_disruption_mode import V1beta1DisruptionMode + from kubernetes.aio.client.models.v1beta1_gang_scheduling_policy import V1beta1GangSchedulingPolicy from kubernetes.aio.client.models.v1beta1_json_patch import V1beta1JSONPatch from kubernetes.aio.client.models.v1beta1_lease_candidate import V1beta1LeaseCandidate from kubernetes.aio.client.models.v1beta1_lease_candidate_list import V1beta1LeaseCandidateList @@ -1440,15 +1581,25 @@ from kubernetes.aio.client.models.v1beta1_mutation import V1beta1Mutation from kubernetes.aio.client.models.v1beta1_named_rule_with_operations import V1beta1NamedRuleWithOperations from kubernetes.aio.client.models.v1beta1_network_device_data import V1beta1NetworkDeviceData - from kubernetes.aio.client.models.v1beta1_node_allocatable_resource_mapping import V1beta1NodeAllocatableResourceMapping + from kubernetes.aio.client.models.v1beta1_node_allocatable_mapping import V1beta1NodeAllocatableMapping + from kubernetes.aio.client.models.v1beta1_node_allocatable_overhead import V1beta1NodeAllocatableOverhead + from kubernetes.aio.client.models.v1beta1_node_allocatable_resource import V1beta1NodeAllocatableResource from kubernetes.aio.client.models.v1beta1_opaque_device_configuration import V1beta1OpaqueDeviceConfiguration from kubernetes.aio.client.models.v1beta1_param_kind import V1beta1ParamKind from kubernetes.aio.client.models.v1beta1_param_ref import V1beta1ParamRef - from kubernetes.aio.client.models.v1beta1_parent_reference import V1beta1ParentReference from kubernetes.aio.client.models.v1beta1_pod_certificate_request import V1beta1PodCertificateRequest from kubernetes.aio.client.models.v1beta1_pod_certificate_request_list import V1beta1PodCertificateRequestList from kubernetes.aio.client.models.v1beta1_pod_certificate_request_spec import V1beta1PodCertificateRequestSpec from kubernetes.aio.client.models.v1beta1_pod_certificate_request_status import V1beta1PodCertificateRequestStatus + from kubernetes.aio.client.models.v1beta1_pod_group import V1beta1PodGroup + from kubernetes.aio.client.models.v1beta1_pod_group_list import V1beta1PodGroupList + from kubernetes.aio.client.models.v1beta1_pod_group_resource_claim import V1beta1PodGroupResourceClaim + from kubernetes.aio.client.models.v1beta1_pod_group_resource_claim_status import V1beta1PodGroupResourceClaimStatus + from kubernetes.aio.client.models.v1beta1_pod_group_scheduling_constraints import V1beta1PodGroupSchedulingConstraints + from kubernetes.aio.client.models.v1beta1_pod_group_scheduling_policy import V1beta1PodGroupSchedulingPolicy + from kubernetes.aio.client.models.v1beta1_pod_group_spec import V1beta1PodGroupSpec + from kubernetes.aio.client.models.v1beta1_pod_group_status import V1beta1PodGroupStatus + from kubernetes.aio.client.models.v1beta1_pod_group_template import V1beta1PodGroupTemplate from kubernetes.aio.client.models.v1beta1_resource_claim import V1beta1ResourceClaim from kubernetes.aio.client.models.v1beta1_resource_claim_consumer_reference import V1beta1ResourceClaimConsumerReference from kubernetes.aio.client.models.v1beta1_resource_claim_list import V1beta1ResourceClaimList @@ -1461,17 +1612,17 @@ from kubernetes.aio.client.models.v1beta1_resource_slice import V1beta1ResourceSlice from kubernetes.aio.client.models.v1beta1_resource_slice_list import V1beta1ResourceSliceList from kubernetes.aio.client.models.v1beta1_resource_slice_spec import V1beta1ResourceSliceSpec - from kubernetes.aio.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR - from kubernetes.aio.client.models.v1beta1_service_cidr_list import V1beta1ServiceCIDRList - from kubernetes.aio.client.models.v1beta1_service_cidr_spec import V1beta1ServiceCIDRSpec - from kubernetes.aio.client.models.v1beta1_service_cidr_status import V1beta1ServiceCIDRStatus from kubernetes.aio.client.models.v1beta1_storage_version_migration import V1beta1StorageVersionMigration from kubernetes.aio.client.models.v1beta1_storage_version_migration_list import V1beta1StorageVersionMigrationList from kubernetes.aio.client.models.v1beta1_storage_version_migration_spec import V1beta1StorageVersionMigrationSpec from kubernetes.aio.client.models.v1beta1_storage_version_migration_status import V1beta1StorageVersionMigrationStatus + from kubernetes.aio.client.models.v1beta1_topology_constraint import V1beta1TopologyConstraint + from kubernetes.aio.client.models.v1beta1_typed_local_object_reference import V1beta1TypedLocalObjectReference from kubernetes.aio.client.models.v1beta1_variable import V1beta1Variable - from kubernetes.aio.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass - from kubernetes.aio.client.models.v1beta1_volume_attributes_class_list import V1beta1VolumeAttributesClassList + from kubernetes.aio.client.models.v1beta1_workload import V1beta1Workload + from kubernetes.aio.client.models.v1beta1_workload_list import V1beta1WorkloadList + from kubernetes.aio.client.models.v1beta1_workload_reference import V1beta1WorkloadReference + from kubernetes.aio.client.models.v1beta1_workload_spec import V1beta1WorkloadSpec from kubernetes.aio.client.models.v1beta2_allocated_device_status import V1beta2AllocatedDeviceStatus from kubernetes.aio.client.models.v1beta2_allocation_result import V1beta2AllocationResult from kubernetes.aio.client.models.v1beta2_cel_device_selector import V1beta2CELDeviceSelector @@ -1493,6 +1644,7 @@ from kubernetes.aio.client.models.v1beta2_device_class_spec import V1beta2DeviceClassSpec from kubernetes.aio.client.models.v1beta2_device_constraint import V1beta2DeviceConstraint from kubernetes.aio.client.models.v1beta2_device_counter_consumption import V1beta2DeviceCounterConsumption + from kubernetes.aio.client.models.v1beta2_device_derived_attribute import V1beta2DeviceDerivedAttribute from kubernetes.aio.client.models.v1beta2_device_request import V1beta2DeviceRequest from kubernetes.aio.client.models.v1beta2_device_request_allocation_result import V1beta2DeviceRequestAllocationResult from kubernetes.aio.client.models.v1beta2_device_selector import V1beta2DeviceSelector @@ -1506,7 +1658,9 @@ from kubernetes.aio.client.models.v1beta2_device_toleration import V1beta2DeviceToleration from kubernetes.aio.client.models.v1beta2_exact_device_request import V1beta2ExactDeviceRequest from kubernetes.aio.client.models.v1beta2_network_device_data import V1beta2NetworkDeviceData - from kubernetes.aio.client.models.v1beta2_node_allocatable_resource_mapping import V1beta2NodeAllocatableResourceMapping + from kubernetes.aio.client.models.v1beta2_node_allocatable_mapping import V1beta2NodeAllocatableMapping + from kubernetes.aio.client.models.v1beta2_node_allocatable_overhead import V1beta2NodeAllocatableOverhead + from kubernetes.aio.client.models.v1beta2_node_allocatable_resource import V1beta2NodeAllocatableResource from kubernetes.aio.client.models.v1beta2_opaque_device_configuration import V1beta2OpaqueDeviceConfiguration from kubernetes.aio.client.models.v1beta2_resource_claim import V1beta2ResourceClaim from kubernetes.aio.client.models.v1beta2_resource_claim_consumer_reference import V1beta2ResourceClaimConsumerReference @@ -1611,6 +1765,7 @@ "V1CSINodeDriver": ".v1_csi_node_driver", "V1CSINodeList": ".v1_csi_node_list", "V1CSINodeSpec": ".v1_csi_node_spec", + "V1CSINodeStatus": ".v1_csi_node_status", "V1CSIPersistentVolumeSource": ".v1_csi_persistent_volume_source", "V1CSIStorageCapacity": ".v1_csi_storage_capacity", "V1CSIStorageCapacityList": ".v1_csi_storage_capacity_list", @@ -1633,7 +1788,10 @@ "V1ClusterRoleBinding": ".v1_cluster_role_binding", "V1ClusterRoleBindingList": ".v1_cluster_role_binding_list", "V1ClusterRoleList": ".v1_cluster_role_list", + "V1ClusterTrustBundle": ".v1_cluster_trust_bundle", + "V1ClusterTrustBundleList": ".v1_cluster_trust_bundle_list", "V1ClusterTrustBundleProjection": ".v1_cluster_trust_bundle_projection", + "V1ClusterTrustBundleSpec": ".v1_cluster_trust_bundle_spec", "V1ComponentCondition": ".v1_component_condition", "V1ComponentStatus": ".v1_component_status", "V1ComponentStatusList": ".v1_component_status_list", @@ -1706,11 +1864,17 @@ "V1DeviceClassSpec": ".v1_device_class_spec", "V1DeviceConstraint": ".v1_device_constraint", "V1DeviceCounterConsumption": ".v1_device_counter_consumption", + "V1DeviceDerivedAttribute": ".v1_device_derived_attribute", "V1DeviceRequest": ".v1_device_request", "V1DeviceRequestAllocationResult": ".v1_device_request_allocation_result", "V1DeviceSelector": ".v1_device_selector", "V1DeviceSubRequest": ".v1_device_sub_request", "V1DeviceTaint": ".v1_device_taint", + "V1DeviceTaintRule": ".v1_device_taint_rule", + "V1DeviceTaintRuleList": ".v1_device_taint_rule_list", + "V1DeviceTaintRuleSpec": ".v1_device_taint_rule_spec", + "V1DeviceTaintRuleStatus": ".v1_device_taint_rule_status", + "V1DeviceTaintSelector": ".v1_device_taint_selector", "V1DeviceToleration": ".v1_device_toleration", "V1DownwardAPIProjection": ".v1_downward_api_projection", "V1DownwardAPIVolumeFile": ".v1_downward_api_volume_file", @@ -1732,6 +1896,7 @@ "V1EphemeralVolumeSource": ".v1_ephemeral_volume_source", "V1EventSource": ".v1_event_source", "V1Eviction": ".v1_eviction", + "V1EvictionResponder": ".v1_eviction_responder", "V1ExactDeviceRequest": ".v1_exact_device_request", "V1ExecAction": ".v1_exec_action", "V1ExemptPriorityLevelConfiguration": ".v1_exempt_priority_level_configuration", @@ -1800,6 +1965,7 @@ "V1Job": ".v1_job", "V1JobCondition": ".v1_job_condition", "V1JobList": ".v1_job_list", + "V1JobSchedulingConfiguration": ".v1_job_scheduling_configuration", "V1JobSpec": ".v1_job_spec", "V1JobStatus": ".v1_job_status", "V1JobTemplateSpec": ".v1_job_template_spec", @@ -1857,14 +2023,19 @@ "V1Node": ".v1_node", "V1NodeAddress": ".v1_node_address", "V1NodeAffinity": ".v1_node_affinity", + "V1NodeAllocatableMappedResources": ".v1_node_allocatable_mapped_resources", + "V1NodeAllocatableMapping": ".v1_node_allocatable_mapping", + "V1NodeAllocatableOverhead": ".v1_node_allocatable_overhead", + "V1NodeAllocatableOverheadResources": ".v1_node_allocatable_overhead_resources", + "V1NodeAllocatableResource": ".v1_node_allocatable_resource", "V1NodeAllocatableResourceClaimStatus": ".v1_node_allocatable_resource_claim_status", - "V1NodeAllocatableResourceMapping": ".v1_node_allocatable_resource_mapping", "V1NodeCondition": ".v1_node_condition", "V1NodeConfigSource": ".v1_node_config_source", "V1NodeConfigStatus": ".v1_node_config_status", "V1NodeDaemonEndpoints": ".v1_node_daemon_endpoints", "V1NodeFeatures": ".v1_node_features", "V1NodeList": ".v1_node_list", + "V1NodePodPreemptionPolicy": ".v1_node_pod_preemption_policy", "V1NodeRuntimeHandler": ".v1_node_runtime_handler", "V1NodeRuntimeHandlerFeatures": ".v1_node_runtime_handler_features", "V1NodeSelector": ".v1_node_selector", @@ -1903,6 +2074,10 @@ "V1PodAffinityTerm": ".v1_pod_affinity_term", "V1PodAntiAffinity": ".v1_pod_anti_affinity", "V1PodCertificateProjection": ".v1_pod_certificate_projection", + "V1PodCertificateRequest": ".v1_pod_certificate_request", + "V1PodCertificateRequestList": ".v1_pod_certificate_request_list", + "V1PodCertificateRequestSpec": ".v1_pod_certificate_request_spec", + "V1PodCertificateRequestStatus": ".v1_pod_certificate_request_status", "V1PodCondition": ".v1_pod_condition", "V1PodDNSConfig": ".v1_pod_dns_config", "V1PodDNSConfigOption": ".v1_pod_dns_config_option", @@ -1929,6 +2104,7 @@ "V1PodTemplate": ".v1_pod_template", "V1PodTemplateList": ".v1_pod_template_list", "V1PodTemplateSpec": ".v1_pod_template_spec", + "V1PodVolumeHealth": ".v1_pod_volume_health", "V1PolicyRule": ".v1_policy_rule", "V1PolicyRulesWithSubjects": ".v1_policy_rules_with_subjects", "V1PortStatus": ".v1_port_status", @@ -2048,8 +2224,14 @@ "V1StatusDetails": ".v1_status_details", "V1StorageClass": ".v1_storage_class", "V1StorageClassList": ".v1_storage_class_list", + "V1StorageHealth": ".v1_storage_health", + "V1StorageHealthCondition": ".v1_storage_health_condition", "V1StorageOSPersistentVolumeSource": ".v1_storage_os_persistent_volume_source", "V1StorageOSVolumeSource": ".v1_storage_os_volume_source", + "V1StorageVersionMigration": ".v1_storage_version_migration", + "V1StorageVersionMigrationList": ".v1_storage_version_migration_list", + "V1StorageVersionMigrationSpec": ".v1_storage_version_migration_spec", + "V1StorageVersionMigrationStatus": ".v1_storage_version_migration_status", "V1SubjectAccessReview": ".v1_subject_access_review", "V1SubjectAccessReviewSpec": ".v1_subject_access_review_spec", "V1SubjectAccessReviewStatus": ".v1_subject_access_review_status", @@ -2097,6 +2279,8 @@ "V1VolumeAttributesClassList": ".v1_volume_attributes_class_list", "V1VolumeDevice": ".v1_volume_device", "V1VolumeError": ".v1_volume_error", + "V1VolumeHealthCondition": ".v1_volume_health_condition", + "V1VolumeHealthStatus": ".v1_volume_health_status", "V1VolumeMount": ".v1_volume_mount", "V1VolumeMountStatus": ".v1_volume_mount_status", "V1VolumeNodeAffinity": ".v1_volume_node_affinity", @@ -2110,9 +2294,18 @@ "V1WeightedPodAffinityTerm": ".v1_weighted_pod_affinity_term", "V1WindowsSecurityContextOptions": ".v1_windows_security_context_options", "V1alpha1ApplyConfiguration": ".v1alpha1_apply_configuration", - "V1alpha1ClusterTrustBundle": ".v1alpha1_cluster_trust_bundle", - "V1alpha1ClusterTrustBundleList": ".v1alpha1_cluster_trust_bundle_list", - "V1alpha1ClusterTrustBundleSpec": ".v1alpha1_cluster_trust_bundle_spec", + "V1alpha1Eviction": ".v1alpha1_eviction", + "V1alpha1EvictionList": ".v1alpha1_eviction_list", + "V1alpha1EvictionPodReference": ".v1alpha1_eviction_pod_reference", + "V1alpha1EvictionRequest": ".v1alpha1_eviction_request", + "V1alpha1EvictionRequestList": ".v1alpha1_eviction_request_list", + "V1alpha1EvictionRequestPodReference": ".v1alpha1_eviction_request_pod_reference", + "V1alpha1EvictionRequestSpec": ".v1alpha1_eviction_request_spec", + "V1alpha1EvictionRequestStatus": ".v1alpha1_eviction_request_status", + "V1alpha1EvictionRequestTarget": ".v1alpha1_eviction_request_target", + "V1alpha1EvictionSpec": ".v1alpha1_eviction_spec", + "V1alpha1EvictionStatus": ".v1alpha1_eviction_status", + "V1alpha1EvictionTarget": ".v1alpha1_eviction_target", "V1alpha1JSONPatch": ".v1alpha1_json_patch", "V1alpha1MatchCondition": ".v1alpha1_match_condition", "V1alpha1MatchResources": ".v1alpha1_match_resources", @@ -2126,43 +2319,63 @@ "V1alpha1NamedRuleWithOperations": ".v1alpha1_named_rule_with_operations", "V1alpha1ParamKind": ".v1alpha1_param_kind", "V1alpha1ParamRef": ".v1alpha1_param_ref", + "V1alpha1Requester": ".v1alpha1_requester", + "V1alpha1ResponderStatus": ".v1alpha1_responder_status", "V1alpha1ServerStorageVersion": ".v1alpha1_server_storage_version", "V1alpha1StorageVersion": ".v1alpha1_storage_version", "V1alpha1StorageVersionCondition": ".v1alpha1_storage_version_condition", "V1alpha1StorageVersionList": ".v1alpha1_storage_version_list", "V1alpha1StorageVersionStatus": ".v1alpha1_storage_version_status", + "V1alpha1TargetResponder": ".v1alpha1_target_responder", "V1alpha1Variable": ".v1alpha1_variable", - "V1alpha2GangSchedulingPolicy": ".v1alpha2_gang_scheduling_policy", "V1alpha2LeaseCandidate": ".v1alpha2_lease_candidate", "V1alpha2LeaseCandidateList": ".v1alpha2_lease_candidate_list", "V1alpha2LeaseCandidateSpec": ".v1alpha2_lease_candidate_spec", - "V1alpha2PodGroup": ".v1alpha2_pod_group", - "V1alpha2PodGroupList": ".v1alpha2_pod_group_list", - "V1alpha2PodGroupResourceClaim": ".v1alpha2_pod_group_resource_claim", - "V1alpha2PodGroupResourceClaimStatus": ".v1alpha2_pod_group_resource_claim_status", - "V1alpha2PodGroupSchedulingConstraints": ".v1alpha2_pod_group_scheduling_constraints", - "V1alpha2PodGroupSchedulingPolicy": ".v1alpha2_pod_group_scheduling_policy", - "V1alpha2PodGroupSpec": ".v1alpha2_pod_group_spec", - "V1alpha2PodGroupStatus": ".v1alpha2_pod_group_status", - "V1alpha2PodGroupTemplate": ".v1alpha2_pod_group_template", - "V1alpha2PodGroupTemplateReference": ".v1alpha2_pod_group_template_reference", - "V1alpha2TopologyConstraint": ".v1alpha2_topology_constraint", - "V1alpha2TypedLocalObjectReference": ".v1alpha2_typed_local_object_reference", - "V1alpha2Workload": ".v1alpha2_workload", - "V1alpha2WorkloadList": ".v1alpha2_workload_list", - "V1alpha2WorkloadPodGroupTemplateReference": ".v1alpha2_workload_pod_group_template_reference", - "V1alpha2WorkloadSpec": ".v1alpha2_workload_spec", + "V1alpha3CompositeDisruptionMode": ".v1alpha3_composite_disruption_mode", + "V1alpha3CompositeGangSchedulingPolicy": ".v1alpha3_composite_gang_scheduling_policy", + "V1alpha3CompositePodGroup": ".v1alpha3_composite_pod_group", + "V1alpha3CompositePodGroupList": ".v1alpha3_composite_pod_group_list", + "V1alpha3CompositePodGroupSchedulingConstraints": ".v1alpha3_composite_pod_group_scheduling_constraints", + "V1alpha3CompositePodGroupSchedulingPolicy": ".v1alpha3_composite_pod_group_scheduling_policy", + "V1alpha3CompositePodGroupSpec": ".v1alpha3_composite_pod_group_spec", + "V1alpha3CompositePodGroupStatus": ".v1alpha3_composite_pod_group_status", + "V1alpha3CompositePodGroupTemplate": ".v1alpha3_composite_pod_group_template", "V1alpha3DeviceTaint": ".v1alpha3_device_taint", "V1alpha3DeviceTaintRule": ".v1alpha3_device_taint_rule", "V1alpha3DeviceTaintRuleList": ".v1alpha3_device_taint_rule_list", "V1alpha3DeviceTaintRuleSpec": ".v1alpha3_device_taint_rule_spec", "V1alpha3DeviceTaintRuleStatus": ".v1alpha3_device_taint_rule_status", "V1alpha3DeviceTaintSelector": ".v1alpha3_device_taint_selector", + "V1alpha3DisruptionMode": ".v1alpha3_disruption_mode", + "V1alpha3GangSchedulingPolicy": ".v1alpha3_gang_scheduling_policy", + "V1alpha3PartitionTypeStatus": ".v1alpha3_partition_type_status", + "V1alpha3PodGroup": ".v1alpha3_pod_group", + "V1alpha3PodGroupList": ".v1alpha3_pod_group_list", + "V1alpha3PodGroupResourceClaim": ".v1alpha3_pod_group_resource_claim", + "V1alpha3PodGroupResourceClaimStatus": ".v1alpha3_pod_group_resource_claim_status", + "V1alpha3PodGroupSchedulingConstraints": ".v1alpha3_pod_group_scheduling_constraints", + "V1alpha3PodGroupSchedulingPolicy": ".v1alpha3_pod_group_scheduling_policy", + "V1alpha3PodGroupSpec": ".v1alpha3_pod_group_spec", + "V1alpha3PodGroupStatus": ".v1alpha3_pod_group_status", + "V1alpha3PodGroupTemplate": ".v1alpha3_pod_group_template", "V1alpha3PoolStatus": ".v1alpha3_pool_status", "V1alpha3ResourcePoolStatusRequest": ".v1alpha3_resource_pool_status_request", "V1alpha3ResourcePoolStatusRequestList": ".v1alpha3_resource_pool_status_request_list", "V1alpha3ResourcePoolStatusRequestSpec": ".v1alpha3_resource_pool_status_request_spec", "V1alpha3ResourcePoolStatusRequestStatus": ".v1alpha3_resource_pool_status_request_status", + "V1alpha3ShareableCapacityStatus": ".v1alpha3_shareable_capacity_status", + "V1alpha3ShareableSummaryStatus": ".v1alpha3_shareable_summary_status", + "V1alpha3TopologyConstraint": ".v1alpha3_topology_constraint", + "V1alpha3TypedLocalObjectReference": ".v1alpha3_typed_local_object_reference", + "V1alpha3Workload": ".v1alpha3_workload", + "V1alpha3WorkloadList": ".v1alpha3_workload_list", + "V1alpha3WorkloadPodGroupDisruptionMode": ".v1alpha3_workload_pod_group_disruption_mode", + "V1alpha3WorkloadPodGroupGangSchedulingPolicy": ".v1alpha3_workload_pod_group_gang_scheduling_policy", + "V1alpha3WorkloadPodGroupResourceClaim": ".v1alpha3_workload_pod_group_resource_claim", + "V1alpha3WorkloadPodGroupSchedulingConstraints": ".v1alpha3_workload_pod_group_scheduling_constraints", + "V1alpha3WorkloadPodGroupSchedulingPolicy": ".v1alpha3_workload_pod_group_scheduling_policy", + "V1alpha3WorkloadReference": ".v1alpha3_workload_reference", + "V1alpha3WorkloadSpec": ".v1alpha3_workload_spec", "V1beta1AllocatedDeviceStatus": ".v1beta1_allocated_device_status", "V1beta1AllocationResult": ".v1beta1_allocation_result", "V1beta1ApplyConfiguration": ".v1beta1_apply_configuration", @@ -2174,6 +2387,11 @@ "V1beta1ClusterTrustBundle": ".v1beta1_cluster_trust_bundle", "V1beta1ClusterTrustBundleList": ".v1beta1_cluster_trust_bundle_list", "V1beta1ClusterTrustBundleSpec": ".v1beta1_cluster_trust_bundle_spec", + "V1beta1CompositeDisruptionMode": ".v1beta1_composite_disruption_mode", + "V1beta1CompositeGangSchedulingPolicy": ".v1beta1_composite_gang_scheduling_policy", + "V1beta1CompositePodGroupSchedulingConstraints": ".v1beta1_composite_pod_group_scheduling_constraints", + "V1beta1CompositePodGroupSchedulingPolicy": ".v1beta1_composite_pod_group_scheduling_policy", + "V1beta1CompositePodGroupTemplate": ".v1beta1_composite_pod_group_template", "V1beta1Counter": ".v1beta1_counter", "V1beta1CounterSet": ".v1beta1_counter_set", "V1beta1Device": ".v1beta1_device", @@ -2189,15 +2407,15 @@ "V1beta1DeviceClassSpec": ".v1beta1_device_class_spec", "V1beta1DeviceConstraint": ".v1beta1_device_constraint", "V1beta1DeviceCounterConsumption": ".v1beta1_device_counter_consumption", + "V1beta1DeviceDerivedAttribute": ".v1beta1_device_derived_attribute", "V1beta1DeviceRequest": ".v1beta1_device_request", "V1beta1DeviceRequestAllocationResult": ".v1beta1_device_request_allocation_result", "V1beta1DeviceSelector": ".v1beta1_device_selector", "V1beta1DeviceSubRequest": ".v1beta1_device_sub_request", "V1beta1DeviceTaint": ".v1beta1_device_taint", "V1beta1DeviceToleration": ".v1beta1_device_toleration", - "V1beta1IPAddress": ".v1beta1_ip_address", - "V1beta1IPAddressList": ".v1beta1_ip_address_list", - "V1beta1IPAddressSpec": ".v1beta1_ip_address_spec", + "V1beta1DisruptionMode": ".v1beta1_disruption_mode", + "V1beta1GangSchedulingPolicy": ".v1beta1_gang_scheduling_policy", "V1beta1JSONPatch": ".v1beta1_json_patch", "V1beta1LeaseCandidate": ".v1beta1_lease_candidate", "V1beta1LeaseCandidateList": ".v1beta1_lease_candidate_list", @@ -2213,15 +2431,25 @@ "V1beta1Mutation": ".v1beta1_mutation", "V1beta1NamedRuleWithOperations": ".v1beta1_named_rule_with_operations", "V1beta1NetworkDeviceData": ".v1beta1_network_device_data", - "V1beta1NodeAllocatableResourceMapping": ".v1beta1_node_allocatable_resource_mapping", + "V1beta1NodeAllocatableMapping": ".v1beta1_node_allocatable_mapping", + "V1beta1NodeAllocatableOverhead": ".v1beta1_node_allocatable_overhead", + "V1beta1NodeAllocatableResource": ".v1beta1_node_allocatable_resource", "V1beta1OpaqueDeviceConfiguration": ".v1beta1_opaque_device_configuration", "V1beta1ParamKind": ".v1beta1_param_kind", "V1beta1ParamRef": ".v1beta1_param_ref", - "V1beta1ParentReference": ".v1beta1_parent_reference", "V1beta1PodCertificateRequest": ".v1beta1_pod_certificate_request", "V1beta1PodCertificateRequestList": ".v1beta1_pod_certificate_request_list", "V1beta1PodCertificateRequestSpec": ".v1beta1_pod_certificate_request_spec", "V1beta1PodCertificateRequestStatus": ".v1beta1_pod_certificate_request_status", + "V1beta1PodGroup": ".v1beta1_pod_group", + "V1beta1PodGroupList": ".v1beta1_pod_group_list", + "V1beta1PodGroupResourceClaim": ".v1beta1_pod_group_resource_claim", + "V1beta1PodGroupResourceClaimStatus": ".v1beta1_pod_group_resource_claim_status", + "V1beta1PodGroupSchedulingConstraints": ".v1beta1_pod_group_scheduling_constraints", + "V1beta1PodGroupSchedulingPolicy": ".v1beta1_pod_group_scheduling_policy", + "V1beta1PodGroupSpec": ".v1beta1_pod_group_spec", + "V1beta1PodGroupStatus": ".v1beta1_pod_group_status", + "V1beta1PodGroupTemplate": ".v1beta1_pod_group_template", "V1beta1ResourceClaim": ".v1beta1_resource_claim", "V1beta1ResourceClaimConsumerReference": ".v1beta1_resource_claim_consumer_reference", "V1beta1ResourceClaimList": ".v1beta1_resource_claim_list", @@ -2234,17 +2462,17 @@ "V1beta1ResourceSlice": ".v1beta1_resource_slice", "V1beta1ResourceSliceList": ".v1beta1_resource_slice_list", "V1beta1ResourceSliceSpec": ".v1beta1_resource_slice_spec", - "V1beta1ServiceCIDR": ".v1beta1_service_cidr", - "V1beta1ServiceCIDRList": ".v1beta1_service_cidr_list", - "V1beta1ServiceCIDRSpec": ".v1beta1_service_cidr_spec", - "V1beta1ServiceCIDRStatus": ".v1beta1_service_cidr_status", "V1beta1StorageVersionMigration": ".v1beta1_storage_version_migration", "V1beta1StorageVersionMigrationList": ".v1beta1_storage_version_migration_list", "V1beta1StorageVersionMigrationSpec": ".v1beta1_storage_version_migration_spec", "V1beta1StorageVersionMigrationStatus": ".v1beta1_storage_version_migration_status", + "V1beta1TopologyConstraint": ".v1beta1_topology_constraint", + "V1beta1TypedLocalObjectReference": ".v1beta1_typed_local_object_reference", "V1beta1Variable": ".v1beta1_variable", - "V1beta1VolumeAttributesClass": ".v1beta1_volume_attributes_class", - "V1beta1VolumeAttributesClassList": ".v1beta1_volume_attributes_class_list", + "V1beta1Workload": ".v1beta1_workload", + "V1beta1WorkloadList": ".v1beta1_workload_list", + "V1beta1WorkloadReference": ".v1beta1_workload_reference", + "V1beta1WorkloadSpec": ".v1beta1_workload_spec", "V1beta2AllocatedDeviceStatus": ".v1beta2_allocated_device_status", "V1beta2AllocationResult": ".v1beta2_allocation_result", "V1beta2CELDeviceSelector": ".v1beta2_cel_device_selector", @@ -2266,6 +2494,7 @@ "V1beta2DeviceClassSpec": ".v1beta2_device_class_spec", "V1beta2DeviceConstraint": ".v1beta2_device_constraint", "V1beta2DeviceCounterConsumption": ".v1beta2_device_counter_consumption", + "V1beta2DeviceDerivedAttribute": ".v1beta2_device_derived_attribute", "V1beta2DeviceRequest": ".v1beta2_device_request", "V1beta2DeviceRequestAllocationResult": ".v1beta2_device_request_allocation_result", "V1beta2DeviceSelector": ".v1beta2_device_selector", @@ -2279,7 +2508,9 @@ "V1beta2DeviceToleration": ".v1beta2_device_toleration", "V1beta2ExactDeviceRequest": ".v1beta2_exact_device_request", "V1beta2NetworkDeviceData": ".v1beta2_network_device_data", - "V1beta2NodeAllocatableResourceMapping": ".v1beta2_node_allocatable_resource_mapping", + "V1beta2NodeAllocatableMapping": ".v1beta2_node_allocatable_mapping", + "V1beta2NodeAllocatableOverhead": ".v1beta2_node_allocatable_overhead", + "V1beta2NodeAllocatableResource": ".v1beta2_node_allocatable_resource", "V1beta2OpaqueDeviceConfiguration": ".v1beta2_opaque_device_configuration", "V1beta2ResourceClaim": ".v1beta2_resource_claim", "V1beta2ResourceClaimConsumerReference": ".v1beta2_resource_claim_consumer_reference", diff --git a/kubernetes/aio/client/models/admissionregistration_v1_service_reference.py b/kubernetes/aio/client/models/admissionregistration_v1_service_reference.py index d235418dae..4b30f06016 100644 --- a/kubernetes/aio/client/models/admissionregistration_v1_service_reference.py +++ b/kubernetes/aio/client/models/admissionregistration_v1_service_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/admissionregistration_v1_webhook_client_config.py b/kubernetes/aio/client/models/admissionregistration_v1_webhook_client_config.py index ada34bf62f..cd2fa06a77 100644 --- a/kubernetes/aio/client/models/admissionregistration_v1_webhook_client_config.py +++ b/kubernetes/aio/client/models/admissionregistration_v1_webhook_client_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/apiextensions_v1_service_reference.py b/kubernetes/aio/client/models/apiextensions_v1_service_reference.py index 1cee548581..3cc2a02744 100644 --- a/kubernetes/aio/client/models/apiextensions_v1_service_reference.py +++ b/kubernetes/aio/client/models/apiextensions_v1_service_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/apiextensions_v1_webhook_client_config.py b/kubernetes/aio/client/models/apiextensions_v1_webhook_client_config.py index 305605947f..6ab1f1c726 100644 --- a/kubernetes/aio/client/models/apiextensions_v1_webhook_client_config.py +++ b/kubernetes/aio/client/models/apiextensions_v1_webhook_client_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/apiregistration_v1_service_reference.py b/kubernetes/aio/client/models/apiregistration_v1_service_reference.py index 0f870a1990..79c245b8d2 100644 --- a/kubernetes/aio/client/models/apiregistration_v1_service_reference.py +++ b/kubernetes/aio/client/models/apiregistration_v1_service_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/authentication_v1_token_request.py b/kubernetes/aio/client/models/authentication_v1_token_request.py index dae8f330b2..b1b355ddc4 100644 --- a/kubernetes/aio/client/models/authentication_v1_token_request.py +++ b/kubernetes/aio/client/models/authentication_v1_token_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/core_v1_endpoint_port.py b/kubernetes/aio/client/models/core_v1_endpoint_port.py index 3e315fd0a5..ae46003e98 100644 --- a/kubernetes/aio/client/models/core_v1_endpoint_port.py +++ b/kubernetes/aio/client/models/core_v1_endpoint_port.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/core_v1_event.py b/kubernetes/aio/client/models/core_v1_event.py index 413fa5557d..be9898553a 100644 --- a/kubernetes/aio/client/models/core_v1_event.py +++ b/kubernetes/aio/client/models/core_v1_event.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/core_v1_event_list.py b/kubernetes/aio/client/models/core_v1_event_list.py index 73852dd89a..753fad6e39 100644 --- a/kubernetes/aio/client/models/core_v1_event_list.py +++ b/kubernetes/aio/client/models/core_v1_event_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/core_v1_event_series.py b/kubernetes/aio/client/models/core_v1_event_series.py index 2fc677c5cb..1ecb329601 100644 --- a/kubernetes/aio/client/models/core_v1_event_series.py +++ b/kubernetes/aio/client/models/core_v1_event_series.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/core_v1_resource_claim.py b/kubernetes/aio/client/models/core_v1_resource_claim.py index ee558b6e7f..a8e4da433a 100644 --- a/kubernetes/aio/client/models/core_v1_resource_claim.py +++ b/kubernetes/aio/client/models/core_v1_resource_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/discovery_v1_endpoint_port.py b/kubernetes/aio/client/models/discovery_v1_endpoint_port.py index 181dac7c2f..3e0d5c1289 100644 --- a/kubernetes/aio/client/models/discovery_v1_endpoint_port.py +++ b/kubernetes/aio/client/models/discovery_v1_endpoint_port.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/events_v1_event.py b/kubernetes/aio/client/models/events_v1_event.py index 14f7c553fd..9376de653e 100644 --- a/kubernetes/aio/client/models/events_v1_event.py +++ b/kubernetes/aio/client/models/events_v1_event.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/events_v1_event_list.py b/kubernetes/aio/client/models/events_v1_event_list.py index 18c1d7d03f..984c07aca6 100644 --- a/kubernetes/aio/client/models/events_v1_event_list.py +++ b/kubernetes/aio/client/models/events_v1_event_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/events_v1_event_series.py b/kubernetes/aio/client/models/events_v1_event_series.py index fcc0cc64aa..9729193dae 100644 --- a/kubernetes/aio/client/models/events_v1_event_series.py +++ b/kubernetes/aio/client/models/events_v1_event_series.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/flowcontrol_v1_subject.py b/kubernetes/aio/client/models/flowcontrol_v1_subject.py index 6e71425fe8..bdd0800b05 100644 --- a/kubernetes/aio/client/models/flowcontrol_v1_subject.py +++ b/kubernetes/aio/client/models/flowcontrol_v1_subject.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/rbac_v1_subject.py b/kubernetes/aio/client/models/rbac_v1_subject.py index eda84a4366..8d8b926534 100644 --- a/kubernetes/aio/client/models/rbac_v1_subject.py +++ b/kubernetes/aio/client/models/rbac_v1_subject.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -103,10 +103,10 @@ class RbacV1Subject(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - api_group: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiGroup", "api_group"), serialization_alias="apiGroup", description="APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.") - kind: StrictStr = Field(description="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.") - name: StrictStr = Field(description="Name of the object being referenced.") - namespace: Optional[StrictStr] = Field(default=None, description="Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.") + api_group: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiGroup", "api_group"), serialization_alias="apiGroup", description="apiGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.") + kind: StrictStr = Field(description="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.") + name: StrictStr = Field(description="name of the object being referenced.") + namespace: Optional[StrictStr] = Field(default=None, description="namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.") openapi_types: ClassVar[Dict[str, str]] = { "api_group": "str", "kind": "str", diff --git a/kubernetes/aio/client/models/resource_v1_resource_claim.py b/kubernetes/aio/client/models/resource_v1_resource_claim.py index 2cb5e8c224..711e4fffd7 100644 --- a/kubernetes/aio/client/models/resource_v1_resource_claim.py +++ b/kubernetes/aio/client/models/resource_v1_resource_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,7 +109,7 @@ class ResourceV1ResourceClaim(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1ResourceClaimSpec + spec: Optional[V1ResourceClaimSpec] = None status: Optional[V1ResourceClaimStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", diff --git a/kubernetes/aio/client/models/storage_v1_token_request.py b/kubernetes/aio/client/models/storage_v1_token_request.py index 70444cbc68..52ba475d18 100644 --- a/kubernetes/aio/client/models/storage_v1_token_request.py +++ b/kubernetes/aio/client/models/storage_v1_token_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_affinity.py b/kubernetes/aio/client/models/v1_affinity.py index c81d4977c9..420ca3c0be 100644 --- a/kubernetes/aio/client/models/v1_affinity.py +++ b/kubernetes/aio/client/models/v1_affinity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_aggregation_rule.py b/kubernetes/aio/client/models/v1_aggregation_rule.py index d18d4fad8d..7373a6dc21 100644 --- a/kubernetes/aio/client/models/v1_aggregation_rule.py +++ b/kubernetes/aio/client/models/v1_aggregation_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -104,7 +104,7 @@ class V1AggregationRule(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - cluster_role_selectors: Optional[List[V1LabelSelector]] = Field(default=None, validation_alias=AliasChoices("clusterRoleSelectors", "cluster_role_selectors"), serialization_alias="clusterRoleSelectors", description="ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added") + cluster_role_selectors: Optional[List[V1LabelSelector]] = Field(default=None, validation_alias=AliasChoices("clusterRoleSelectors", "cluster_role_selectors"), serialization_alias="clusterRoleSelectors", description="clusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added") openapi_types: ClassVar[Dict[str, str]] = { "cluster_role_selectors": "List[V1LabelSelector]" } diff --git a/kubernetes/aio/client/models/v1_allocated_device_status.py b/kubernetes/aio/client/models/v1_allocated_device_status.py index 23cf5d2852..6dd662d13f 100644 --- a/kubernetes/aio/client/models/v1_allocated_device_status.py +++ b/kubernetes/aio/client/models/v1_allocated_device_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_allocation_result.py b/kubernetes/aio/client/models/v1_allocation_result.py index 31f45e493a..c679a894a8 100644 --- a/kubernetes/aio/client/models/v1_allocation_result.py +++ b/kubernetes/aio/client/models/v1_allocation_result.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_api_group.py b/kubernetes/aio/client/models/v1_api_group.py index b8399eee7c..d8cfd0eb23 100644 --- a/kubernetes/aio/client/models/v1_api_group.py +++ b/kubernetes/aio/client/models/v1_api_group.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_api_group_list.py b/kubernetes/aio/client/models/v1_api_group_list.py index be6ba5cb85..12874da5e0 100644 --- a/kubernetes/aio/client/models/v1_api_group_list.py +++ b/kubernetes/aio/client/models/v1_api_group_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_api_resource.py b/kubernetes/aio/client/models/v1_api_resource.py index ad6ef44357..b6ef4cb5f8 100644 --- a/kubernetes/aio/client/models/v1_api_resource.py +++ b/kubernetes/aio/client/models/v1_api_resource.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_api_resource_list.py b/kubernetes/aio/client/models/v1_api_resource_list.py index eb99c84918..a99c4d11b9 100644 --- a/kubernetes/aio/client/models/v1_api_resource_list.py +++ b/kubernetes/aio/client/models/v1_api_resource_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_api_service.py b/kubernetes/aio/client/models/v1_api_service.py index 7f6b16161e..66a1e71e8e 100644 --- a/kubernetes/aio/client/models/v1_api_service.py +++ b/kubernetes/aio/client/models/v1_api_service.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_api_service_condition.py b/kubernetes/aio/client/models/v1_api_service_condition.py index 97b45eef79..9169194fca 100644 --- a/kubernetes/aio/client/models/v1_api_service_condition.py +++ b/kubernetes/aio/client/models/v1_api_service_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_api_service_list.py b/kubernetes/aio/client/models/v1_api_service_list.py index 5a85a4f375..c7c2963e6f 100644 --- a/kubernetes/aio/client/models/v1_api_service_list.py +++ b/kubernetes/aio/client/models/v1_api_service_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_api_service_spec.py b/kubernetes/aio/client/models/v1_api_service_spec.py index 542a3a4f83..19ef421abb 100644 --- a/kubernetes/aio/client/models/v1_api_service_spec.py +++ b/kubernetes/aio/client/models/v1_api_service_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_api_service_status.py b/kubernetes/aio/client/models/v1_api_service_status.py index 471b97993e..283f62218c 100644 --- a/kubernetes/aio/client/models/v1_api_service_status.py +++ b/kubernetes/aio/client/models/v1_api_service_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_api_versions.py b/kubernetes/aio/client/models/v1_api_versions.py index 5f97e3451d..9c525d6571 100644 --- a/kubernetes/aio/client/models/v1_api_versions.py +++ b/kubernetes/aio/client/models/v1_api_versions.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_app_armor_profile.py b/kubernetes/aio/client/models/v1_app_armor_profile.py index 6a1ffd89a7..118f94888d 100644 --- a/kubernetes/aio/client/models/v1_app_armor_profile.py +++ b/kubernetes/aio/client/models/v1_app_armor_profile.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_apply_configuration.py b/kubernetes/aio/client/models/v1_apply_configuration.py index fcd2355670..512523d03b 100644 --- a/kubernetes/aio/client/models/v1_apply_configuration.py +++ b/kubernetes/aio/client/models/v1_apply_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_attached_volume.py b/kubernetes/aio/client/models/v1_attached_volume.py index 1da291396c..9b1fe439c9 100644 --- a/kubernetes/aio/client/models/v1_attached_volume.py +++ b/kubernetes/aio/client/models/v1_attached_volume.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_audit_annotation.py b/kubernetes/aio/client/models/v1_audit_annotation.py index 0eb5af1456..4e13a379d8 100644 --- a/kubernetes/aio/client/models/v1_audit_annotation.py +++ b/kubernetes/aio/client/models/v1_audit_annotation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_aws_elastic_block_store_volume_source.py b/kubernetes/aio/client/models/v1_aws_elastic_block_store_volume_source.py index 2b408c6b3c..79e08298c6 100644 --- a/kubernetes/aio/client/models/v1_aws_elastic_block_store_volume_source.py +++ b/kubernetes/aio/client/models/v1_aws_elastic_block_store_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_azure_disk_volume_source.py b/kubernetes/aio/client/models/v1_azure_disk_volume_source.py index 439d1d456a..9f0c225664 100644 --- a/kubernetes/aio/client/models/v1_azure_disk_volume_source.py +++ b/kubernetes/aio/client/models/v1_azure_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_azure_file_persistent_volume_source.py b/kubernetes/aio/client/models/v1_azure_file_persistent_volume_source.py index afc4cefff5..d63bb3533c 100644 --- a/kubernetes/aio/client/models/v1_azure_file_persistent_volume_source.py +++ b/kubernetes/aio/client/models/v1_azure_file_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_azure_file_volume_source.py b/kubernetes/aio/client/models/v1_azure_file_volume_source.py index d8d784864a..1a8751f35a 100644 --- a/kubernetes/aio/client/models/v1_azure_file_volume_source.py +++ b/kubernetes/aio/client/models/v1_azure_file_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_binding.py b/kubernetes/aio/client/models/v1_binding.py index 3bb8744819..daddf13462 100644 --- a/kubernetes/aio/client/models/v1_binding.py +++ b/kubernetes/aio/client/models/v1_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_bound_object_reference.py b/kubernetes/aio/client/models/v1_bound_object_reference.py index 8a9ecc9521..19abddcedf 100644 --- a/kubernetes/aio/client/models/v1_bound_object_reference.py +++ b/kubernetes/aio/client/models/v1_bound_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -104,7 +104,7 @@ class V1BoundObjectReference(BaseModel): and the value is json key in definition. """ # noqa: E501 api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="apiVersion", description="apiVersion is API version of the referent.") - kind: Optional[StrictStr] = Field(default=None, description="kind of the referent. Valid kinds are 'Pod' and 'Secret'.") + kind: Optional[StrictStr] = Field(default=None, description="kind of the referent. Valid kinds are 'Pod', 'Secret', 'Node', 'ValidatingWebhookConfiguration', and 'MutatingWebhookConfiguration'.") name: Optional[StrictStr] = Field(default=None, description="name of the referent.") uid: Optional[StrictStr] = Field(default=None, description="uid of the referent.") openapi_types: ClassVar[Dict[str, str]] = { diff --git a/kubernetes/aio/client/models/v1_capabilities.py b/kubernetes/aio/client/models/v1_capabilities.py index a1b1940942..372859a289 100644 --- a/kubernetes/aio/client/models/v1_capabilities.py +++ b/kubernetes/aio/client/models/v1_capabilities.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_capacity_request_policy.py b/kubernetes/aio/client/models/v1_capacity_request_policy.py index 5962eabc84..a33009f356 100644 --- a/kubernetes/aio/client/models/v1_capacity_request_policy.py +++ b/kubernetes/aio/client/models/v1_capacity_request_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_capacity_request_policy_range.py b/kubernetes/aio/client/models/v1_capacity_request_policy_range.py index 408fffcfb7..ee412d1616 100644 --- a/kubernetes/aio/client/models/v1_capacity_request_policy_range.py +++ b/kubernetes/aio/client/models/v1_capacity_request_policy_range.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -94,7 +94,7 @@ def _to_openapi_value(value: Any) -> Any: class V1CapacityRequestPolicyRange(BaseModel): """ - 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. + CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - 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. Attributes: openapi_types (dict): The key is attribute name diff --git a/kubernetes/aio/client/models/v1_capacity_requirements.py b/kubernetes/aio/client/models/v1_capacity_requirements.py index c5e96d91e6..2938de0926 100644 --- a/kubernetes/aio/client/models/v1_capacity_requirements.py +++ b/kubernetes/aio/client/models/v1_capacity_requirements.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_cel_device_selector.py b/kubernetes/aio/client/models/v1_cel_device_selector.py index 4b281453e3..92b1d68e09 100644 --- a/kubernetes/aio/client/models/v1_cel_device_selector.py +++ b/kubernetes/aio/client/models/v1_cel_device_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -102,7 +102,7 @@ class V1CELDeviceSelector(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - expression: StrictStr = Field(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. 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.") + expression: StrictStr = Field(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. 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.") openapi_types: ClassVar[Dict[str, str]] = { "expression": "str" } diff --git a/kubernetes/aio/client/models/v1_ceph_fs_persistent_volume_source.py b/kubernetes/aio/client/models/v1_ceph_fs_persistent_volume_source.py index 17e9392fe5..c02f25d6b9 100644 --- a/kubernetes/aio/client/models/v1_ceph_fs_persistent_volume_source.py +++ b/kubernetes/aio/client/models/v1_ceph_fs_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ceph_fs_volume_source.py b/kubernetes/aio/client/models/v1_ceph_fs_volume_source.py index e8d1eb948d..79c05d9bbf 100644 --- a/kubernetes/aio/client/models/v1_ceph_fs_volume_source.py +++ b/kubernetes/aio/client/models/v1_ceph_fs_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_certificate_signing_request.py b/kubernetes/aio/client/models/v1_certificate_signing_request.py index 30f35e9bae..35c268e96e 100644 --- a/kubernetes/aio/client/models/v1_certificate_signing_request.py +++ b/kubernetes/aio/client/models/v1_certificate_signing_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_certificate_signing_request_condition.py b/kubernetes/aio/client/models/v1_certificate_signing_request_condition.py index 6f1de020f0..ae946a1a10 100644 --- a/kubernetes/aio/client/models/v1_certificate_signing_request_condition.py +++ b/kubernetes/aio/client/models/v1_certificate_signing_request_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_certificate_signing_request_list.py b/kubernetes/aio/client/models/v1_certificate_signing_request_list.py index 1dc6c4dd16..d50d7afb4c 100644 --- a/kubernetes/aio/client/models/v1_certificate_signing_request_list.py +++ b/kubernetes/aio/client/models/v1_certificate_signing_request_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_certificate_signing_request_spec.py b/kubernetes/aio/client/models/v1_certificate_signing_request_spec.py index 4c245aac3c..586f687bf8 100644 --- a/kubernetes/aio/client/models/v1_certificate_signing_request_spec.py +++ b/kubernetes/aio/client/models/v1_certificate_signing_request_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_certificate_signing_request_status.py b/kubernetes/aio/client/models/v1_certificate_signing_request_status.py index 6aca179e8e..7b06df3ef3 100644 --- a/kubernetes/aio/client/models/v1_certificate_signing_request_status.py +++ b/kubernetes/aio/client/models/v1_certificate_signing_request_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_cinder_persistent_volume_source.py b/kubernetes/aio/client/models/v1_cinder_persistent_volume_source.py index f3caffbfd4..4168391834 100644 --- a/kubernetes/aio/client/models/v1_cinder_persistent_volume_source.py +++ b/kubernetes/aio/client/models/v1_cinder_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_cinder_volume_source.py b/kubernetes/aio/client/models/v1_cinder_volume_source.py index 56ece5e3b5..bf3fda3b1c 100644 --- a/kubernetes/aio/client/models/v1_cinder_volume_source.py +++ b/kubernetes/aio/client/models/v1_cinder_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_client_ip_config.py b/kubernetes/aio/client/models/v1_client_ip_config.py index 202193fad3..1879bd4851 100644 --- a/kubernetes/aio/client/models/v1_client_ip_config.py +++ b/kubernetes/aio/client/models/v1_client_ip_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_cluster_role.py b/kubernetes/aio/client/models/v1_cluster_role.py index d597c7e58d..6d421ad78a 100644 --- a/kubernetes/aio/client/models/v1_cluster_role.py +++ b/kubernetes/aio/client/models/v1_cluster_role.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -110,7 +110,7 @@ class V1ClusterRole(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - rules: Optional[List[V1PolicyRule]] = Field(default=None, description="Rules holds all the PolicyRules for this ClusterRole") + rules: Optional[List[V1PolicyRule]] = Field(default=None, description="rules holds all the PolicyRules for this ClusterRole") openapi_types: ClassVar[Dict[str, str]] = { "aggregation_rule": "V1AggregationRule", "api_version": "str", diff --git a/kubernetes/aio/client/models/v1_cluster_role_binding.py b/kubernetes/aio/client/models/v1_cluster_role_binding.py index 2e9495e6fb..5952adac89 100644 --- a/kubernetes/aio/client/models/v1_cluster_role_binding.py +++ b/kubernetes/aio/client/models/v1_cluster_role_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -110,7 +110,7 @@ class V1ClusterRoleBinding(BaseModel): kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None role_ref: V1RoleRef = Field(validation_alias=AliasChoices("roleRef", "role_ref"), serialization_alias="roleRef") - subjects: Optional[List[RbacV1Subject]] = Field(default=None, description="Subjects holds references to the objects the role applies to.") + subjects: Optional[List[RbacV1Subject]] = Field(default=None, description="subjects holds references to the objects the role applies to.") openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", diff --git a/kubernetes/aio/client/models/v1_cluster_role_binding_list.py b/kubernetes/aio/client/models/v1_cluster_role_binding_list.py index 71af9ebdb3..986d62c43c 100644 --- a/kubernetes/aio/client/models/v1_cluster_role_binding_list.py +++ b/kubernetes/aio/client/models/v1_cluster_role_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_cluster_role_list.py b/kubernetes/aio/client/models/v1_cluster_role_list.py index 510d5b525f..756c2e62c3 100644 --- a/kubernetes/aio/client/models/v1_cluster_role_list.py +++ b/kubernetes/aio/client/models/v1_cluster_role_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_cluster_trust_bundle.py b/kubernetes/aio/client/models/v1_cluster_trust_bundle.py similarity index 89% rename from kubernetes/aio/client/models/v1alpha1_cluster_trust_bundle.py rename to kubernetes/aio/client/models/v1_cluster_trust_bundle.py index 9ed9370963..1aa93c9527 100644 --- a/kubernetes/aio/client/models/v1alpha1_cluster_trust_bundle.py +++ b/kubernetes/aio/client/models/v1_cluster_trust_bundle.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,8 +20,8 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_cluster_trust_bundle_spec import V1ClusterTrustBundleSpec from kubernetes.aio.client.models.v1_object_meta import V1ObjectMeta -from kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_spec import V1alpha1ClusterTrustBundleSpec from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,9 +95,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha1ClusterTrustBundle(BaseModel): +class V1ClusterTrustBundle(BaseModel): """ - 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. + 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 signer, 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. Attributes: openapi_types (dict): The key is attribute name @@ -108,12 +108,12 @@ class V1alpha1ClusterTrustBundle(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1alpha1ClusterTrustBundleSpec + spec: V1ClusterTrustBundleSpec openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", "metadata": "V1ObjectMeta", - "spec": "V1alpha1ClusterTrustBundleSpec" + "spec": "V1ClusterTrustBundleSpec" } attribute_map: ClassVar[Dict[str, str]] = { @@ -157,14 +157,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha1ClusterTrustBundle): + if not isinstance(other, V1ClusterTrustBundle): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha1ClusterTrustBundle): + if not isinstance(other, V1ClusterTrustBundle): return True return not (self == other) @@ -179,7 +179,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha1ClusterTrustBundle from a JSON string""" + """Create an instance of V1ClusterTrustBundle from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -231,7 +231,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha1ClusterTrustBundle from a dict""" + """Create an instance of V1ClusterTrustBundle from a dict""" if obj is None: return None @@ -250,6 +250,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "apiVersion": obj.get("apiVersion"), "kind": obj.get("kind"), "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, - "spec": V1alpha1ClusterTrustBundleSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None + "spec": V1ClusterTrustBundleSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1alpha1_cluster_trust_bundle_list.py b/kubernetes/aio/client/models/v1_cluster_trust_bundle_list.py similarity index 91% rename from kubernetes/aio/client/models/v1alpha1_cluster_trust_bundle_list.py rename to kubernetes/aio/client/models/v1_cluster_trust_bundle_list.py index c9237f909e..1989f6aad8 100644 --- a/kubernetes/aio/client/models/v1alpha1_cluster_trust_bundle_list.py +++ b/kubernetes/aio/client/models/v1_cluster_trust_bundle_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,8 +20,8 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_cluster_trust_bundle import V1ClusterTrustBundle from kubernetes.aio.client.models.v1_list_meta import V1ListMeta -from kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,7 +95,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha1ClusterTrustBundleList(BaseModel): +class V1ClusterTrustBundleList(BaseModel): """ ClusterTrustBundleList is a collection of ClusterTrustBundle objects @@ -106,12 +106,12 @@ class V1alpha1ClusterTrustBundleList(BaseModel): and the value is json key in definition. """ # noqa: E501 api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - items: List[V1alpha1ClusterTrustBundle] = Field(description="items is a collection of ClusterTrustBundle objects") + items: List[V1ClusterTrustBundle] = Field(description="items is a collection of ClusterTrustBundle objects") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ListMeta] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", - "items": "List[V1alpha1ClusterTrustBundle]", + "items": "List[V1ClusterTrustBundle]", "kind": "str", "metadata": "V1ListMeta" } @@ -157,14 +157,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha1ClusterTrustBundleList): + if not isinstance(other, V1ClusterTrustBundleList): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha1ClusterTrustBundleList): + if not isinstance(other, V1ClusterTrustBundleList): return True return not (self == other) @@ -179,7 +179,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha1ClusterTrustBundleList from a JSON string""" + """Create an instance of V1ClusterTrustBundleList from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -234,7 +234,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha1ClusterTrustBundleList from a dict""" + """Create an instance of V1ClusterTrustBundleList from a dict""" if obj is None: return None @@ -251,7 +251,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "apiVersion": obj.get("apiVersion"), - "items": [V1alpha1ClusterTrustBundle.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "items": [V1ClusterTrustBundle.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "kind": obj.get("kind"), "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None }) diff --git a/kubernetes/aio/client/models/v1_cluster_trust_bundle_projection.py b/kubernetes/aio/client/models/v1_cluster_trust_bundle_projection.py index 0bf7f78abd..8e7394cbae 100644 --- a/kubernetes/aio/client/models/v1_cluster_trust_bundle_projection.py +++ b/kubernetes/aio/client/models/v1_cluster_trust_bundle_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,7 +18,7 @@ import json from collections.abc import Mapping as _Mapping -from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictBool, StrictStr +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1_label_selector import V1LabelSelector from typing import Optional, Set @@ -109,12 +109,14 @@ class V1ClusterTrustBundleProjection(BaseModel): optional: Optional[StrictBool] = Field(default=None, description="If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles.") path: StrictStr = Field(description="Relative path from the volume root to write the bundle.") signer_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("signerName", "signer_name"), serialization_alias="signerName", description="Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.") + user: Optional[StrictInt] = Field(default=None, description="user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") openapi_types: ClassVar[Dict[str, str]] = { "label_selector": "V1LabelSelector", "name": "str", "optional": "bool", "path": "str", - "signer_name": "str" + "signer_name": "str", + "user": "int" } attribute_map: ClassVar[Dict[str, str]] = { @@ -122,9 +124,10 @@ class V1ClusterTrustBundleProjection(BaseModel): "name": "name", "optional": "optional", "path": "path", - "signer_name": "signerName" + "signer_name": "signerName", + "user": "user" } - __properties: ClassVar[List[str]] = ["labelSelector", "name", "optional", "path", "signerName"] + __properties: ClassVar[List[str]] = ["labelSelector", "name", "optional", "path", "signerName", "user"] @classmethod def __preprocess_input_names( @@ -195,6 +198,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("optional" if serialize else "optional"): _to_legacy_value(getattr(self, "optional", None), serialize), ("path" if serialize else "path"): _to_legacy_value(getattr(self, "path", None), serialize), ("signerName" if serialize else "signer_name"): _to_legacy_value(getattr(self, "signer_name", None), serialize), + ("user" if serialize else "user"): _to_legacy_value(getattr(self, "user", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -254,6 +258,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "optional": obj.get("optional"), "path": obj.get("path"), - "signerName": obj.get("signerName") + "signerName": obj.get("signerName"), + "user": obj.get("user") }) return _obj diff --git a/kubernetes/client/models/v1alpha1_cluster_trust_bundle_spec.py b/kubernetes/aio/client/models/v1_cluster_trust_bundle_spec.py similarity index 95% rename from kubernetes/client/models/v1alpha1_cluster_trust_bundle_spec.py rename to kubernetes/aio/client/models/v1_cluster_trust_bundle_spec.py index 8cd3ed5b30..542aca5004 100644 --- a/kubernetes/client/models/v1alpha1_cluster_trust_bundle_spec.py +++ b/kubernetes/aio/client/models/v1_cluster_trust_bundle_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -93,7 +93,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha1ClusterTrustBundleSpec(BaseModel): +class V1ClusterTrustBundleSpec(BaseModel): """ ClusterTrustBundleSpec contains the signer and trust anchors. @@ -152,14 +152,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha1ClusterTrustBundleSpec): + if not isinstance(other, V1ClusterTrustBundleSpec): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha1ClusterTrustBundleSpec): + if not isinstance(other, V1ClusterTrustBundleSpec): return True return not (self == other) @@ -174,7 +174,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha1ClusterTrustBundleSpec from a JSON string""" + """Create an instance of V1ClusterTrustBundleSpec from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -218,7 +218,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha1ClusterTrustBundleSpec from a dict""" + """Create an instance of V1ClusterTrustBundleSpec from a dict""" if obj is None: return None diff --git a/kubernetes/aio/client/models/v1_component_condition.py b/kubernetes/aio/client/models/v1_component_condition.py index 099e0187ad..f5c70b92e3 100644 --- a/kubernetes/aio/client/models/v1_component_condition.py +++ b/kubernetes/aio/client/models/v1_component_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_component_status.py b/kubernetes/aio/client/models/v1_component_status.py index 17d17fa564..74d069a9e7 100644 --- a/kubernetes/aio/client/models/v1_component_status.py +++ b/kubernetes/aio/client/models/v1_component_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_component_status_list.py b/kubernetes/aio/client/models/v1_component_status_list.py index cd9715e95e..e0e7c913c9 100644 --- a/kubernetes/aio/client/models/v1_component_status_list.py +++ b/kubernetes/aio/client/models/v1_component_status_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_condition.py b/kubernetes/aio/client/models/v1_condition.py index bf6c558d13..4960daaf92 100644 --- a/kubernetes/aio/client/models/v1_condition.py +++ b/kubernetes/aio/client/models/v1_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_config_map.py b/kubernetes/aio/client/models/v1_config_map.py index 0825cc5b9e..4b19404fbd 100644 --- a/kubernetes/aio/client/models/v1_config_map.py +++ b/kubernetes/aio/client/models/v1_config_map.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -106,7 +106,7 @@ class V1ConfigMap(BaseModel): and the value is json key in definition. """ # noqa: E501 api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - binary_data: Optional[Dict[str, Union[Annotated[bytes, Field(strict=True)], Annotated[str, Field(strict=True)]]]] = Field(default=None, validation_alias=AliasChoices("binaryData", "binary_data"), serialization_alias="binaryData", description="BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.") + binary_data: Optional[Dict[str, Union[Annotated[bytes, Field(strict=True)], Annotated[str, Field(strict=True)]]]] = Field(default=None, validation_alias=AliasChoices("binaryData", "binary_data"), serialization_alias="binaryData", description="BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in 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.") data: Optional[Dict[str, StrictStr]] = Field(default=None, description="Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.") immutable: Optional[StrictBool] = Field(default=None, description="Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.") kind: Optional[StrictStr] = Field(default=None, 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") diff --git a/kubernetes/aio/client/models/v1_config_map_env_source.py b/kubernetes/aio/client/models/v1_config_map_env_source.py index 2e410bf31b..85f7a607a3 100644 --- a/kubernetes/aio/client/models/v1_config_map_env_source.py +++ b/kubernetes/aio/client/models/v1_config_map_env_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -94,7 +94,7 @@ def _to_openapi_value(value: Any) -> Any: class V1ConfigMapEnvSource(BaseModel): """ - 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. + 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. Keys in the BinaryData field are not currently propagated to container env vars. Attributes: openapi_types (dict): The key is attribute name diff --git a/kubernetes/aio/client/models/v1_config_map_key_selector.py b/kubernetes/aio/client/models/v1_config_map_key_selector.py index 87a9badf48..d2d5d7f347 100644 --- a/kubernetes/aio/client/models/v1_config_map_key_selector.py +++ b/kubernetes/aio/client/models/v1_config_map_key_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -102,7 +102,7 @@ class V1ConfigMapKeySelector(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - key: StrictStr = Field(description="The key to select.") + key: StrictStr = Field(description="The key to select from the ConfigMap's Data field. Keys in the BinaryData field are not currently propagated to container env vars.") name: Optional[StrictStr] = Field(default=None, description="Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") optional: Optional[StrictBool] = Field(default=None, description="Specify whether the ConfigMap or its key must be defined") openapi_types: ClassVar[Dict[str, str]] = { diff --git a/kubernetes/aio/client/models/v1_config_map_list.py b/kubernetes/aio/client/models/v1_config_map_list.py index 71950091a6..7b5fad8a57 100644 --- a/kubernetes/aio/client/models/v1_config_map_list.py +++ b/kubernetes/aio/client/models/v1_config_map_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_config_map_node_config_source.py b/kubernetes/aio/client/models/v1_config_map_node_config_source.py index f89c7d3ac8..161a326492 100644 --- a/kubernetes/aio/client/models/v1_config_map_node_config_source.py +++ b/kubernetes/aio/client/models/v1_config_map_node_config_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_config_map_projection.py b/kubernetes/aio/client/models/v1_config_map_projection.py index 687aa7acf3..161ca33312 100644 --- a/kubernetes/aio/client/models/v1_config_map_projection.py +++ b/kubernetes/aio/client/models/v1_config_map_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_config_map_volume_source.py b/kubernetes/aio/client/models/v1_config_map_volume_source.py index c34a94cd61..4dfcd621b2 100644 --- a/kubernetes/aio/client/models/v1_config_map_volume_source.py +++ b/kubernetes/aio/client/models/v1_config_map_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,11 +105,13 @@ class V1ConfigMapVolumeSource(BaseModel): and the value is json key in definition. """ # noqa: E501 default_mode: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("defaultMode", "default_mode"), serialization_alias="defaultMode", description="defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") + default_user: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("defaultUser", "default_user"), serialization_alias="defaultUser", description="defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") items: Optional[List[V1KeyToPath]] = Field(default=None, description="items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.") name: Optional[StrictStr] = Field(default=None, description="Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") optional: Optional[StrictBool] = Field(default=None, description="optional specify whether the ConfigMap or its keys must be defined") openapi_types: ClassVar[Dict[str, str]] = { "default_mode": "int", + "default_user": "int", "items": "List[V1KeyToPath]", "name": "str", "optional": "bool" @@ -117,11 +119,12 @@ class V1ConfigMapVolumeSource(BaseModel): attribute_map: ClassVar[Dict[str, str]] = { "default_mode": "defaultMode", + "default_user": "defaultUser", "items": "items", "name": "name", "optional": "optional" } - __properties: ClassVar[List[str]] = ["defaultMode", "items", "name", "optional"] + __properties: ClassVar[List[str]] = ["defaultMode", "defaultUser", "items", "name", "optional"] @classmethod def __preprocess_input_names( @@ -135,6 +138,9 @@ def __preprocess_input_names( if "defaultMode" not in obj and "default_mode" in obj: obj["defaultMode"] = obj["default_mode"] obj.pop("default_mode", None) + if "defaultUser" not in obj and "default_user" in obj: + obj["defaultUser"] = obj["default_user"] + obj.pop("default_user", None) return obj model_config = ConfigDict( @@ -185,6 +191,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { ("defaultMode" if serialize else "default_mode"): _to_legacy_value(getattr(self, "default_mode", None), serialize), + ("defaultUser" if serialize else "default_user"): _to_legacy_value(getattr(self, "default_user", None), serialize), ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), ("optional" if serialize else "optional"): _to_legacy_value(getattr(self, "optional", None), serialize), @@ -247,6 +254,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "defaultMode": obj.get("defaultMode"), + "defaultUser": obj.get("defaultUser"), "items": [V1KeyToPath.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "name": obj.get("name"), "optional": obj.get("optional") diff --git a/kubernetes/aio/client/models/v1_container.py b/kubernetes/aio/client/models/v1_container.py index 754b895924..ae77926e9a 100644 --- a/kubernetes/aio/client/models/v1_container.py +++ b/kubernetes/aio/client/models/v1_container.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_container_extended_resource_request.py b/kubernetes/aio/client/models/v1_container_extended_resource_request.py index dc95d5088c..e427d9b7c7 100644 --- a/kubernetes/aio/client/models/v1_container_extended_resource_request.py +++ b/kubernetes/aio/client/models/v1_container_extended_resource_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_container_image.py b/kubernetes/aio/client/models/v1_container_image.py index 4ffcf68bbd..bce4c50740 100644 --- a/kubernetes/aio/client/models/v1_container_image.py +++ b/kubernetes/aio/client/models/v1_container_image.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_container_port.py b/kubernetes/aio/client/models/v1_container_port.py index e29737f433..f2585af183 100644 --- a/kubernetes/aio/client/models/v1_container_port.py +++ b/kubernetes/aio/client/models/v1_container_port.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_container_resize_policy.py b/kubernetes/aio/client/models/v1_container_resize_policy.py index 3adbfca4eb..4322243648 100644 --- a/kubernetes/aio/client/models/v1_container_resize_policy.py +++ b/kubernetes/aio/client/models/v1_container_resize_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_container_restart_rule.py b/kubernetes/aio/client/models/v1_container_restart_rule.py index 7e8fd14e12..2dd37526a7 100644 --- a/kubernetes/aio/client/models/v1_container_restart_rule.py +++ b/kubernetes/aio/client/models/v1_container_restart_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_container_restart_rule_on_exit_codes.py b/kubernetes/aio/client/models/v1_container_restart_rule_on_exit_codes.py index f07a261e84..f3556501c5 100644 --- a/kubernetes/aio/client/models/v1_container_restart_rule_on_exit_codes.py +++ b/kubernetes/aio/client/models/v1_container_restart_rule_on_exit_codes.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_container_state.py b/kubernetes/aio/client/models/v1_container_state.py index 08c8f63692..05abbb27f5 100644 --- a/kubernetes/aio/client/models/v1_container_state.py +++ b/kubernetes/aio/client/models/v1_container_state.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_container_state_running.py b/kubernetes/aio/client/models/v1_container_state_running.py index 878baa2d46..b4632eb940 100644 --- a/kubernetes/aio/client/models/v1_container_state_running.py +++ b/kubernetes/aio/client/models/v1_container_state_running.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_container_state_terminated.py b/kubernetes/aio/client/models/v1_container_state_terminated.py index 26aca6d17a..9f3e0141e6 100644 --- a/kubernetes/aio/client/models/v1_container_state_terminated.py +++ b/kubernetes/aio/client/models/v1_container_state_terminated.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_container_state_waiting.py b/kubernetes/aio/client/models/v1_container_state_waiting.py index a57d9902b5..f6c6428a0a 100644 --- a/kubernetes/aio/client/models/v1_container_state_waiting.py +++ b/kubernetes/aio/client/models/v1_container_state_waiting.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_container_status.py b/kubernetes/aio/client/models/v1_container_status.py index ea18c20a24..e9eedaf5cb 100644 --- a/kubernetes/aio/client/models/v1_container_status.py +++ b/kubernetes/aio/client/models/v1_container_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_container_user.py b/kubernetes/aio/client/models/v1_container_user.py index 7cb6d30983..337d71f9a9 100644 --- a/kubernetes/aio/client/models/v1_container_user.py +++ b/kubernetes/aio/client/models/v1_container_user.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_controller_revision.py b/kubernetes/aio/client/models/v1_controller_revision.py index 9f098382a1..ef574478a4 100644 --- a/kubernetes/aio/client/models/v1_controller_revision.py +++ b/kubernetes/aio/client/models/v1_controller_revision.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,10 +105,10 @@ class V1ControllerRevision(BaseModel): and the value is json key in definition. """ # noqa: E501 api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - data: Optional[Dict[str, Any]] = Field(default=None, description="Data is the serialized representation of the state.") + data: Dict[str, Any] = Field(description="Data is the serialized representation of the state.") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - revision: StrictInt = Field(description="Revision indicates the revision of the state represented by Data.") + revision: Optional[StrictInt] = Field(default=None, description="Revision indicates the revision of the state represented by Data.") openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "data": "object", diff --git a/kubernetes/aio/client/models/v1_controller_revision_list.py b/kubernetes/aio/client/models/v1_controller_revision_list.py index abdf46da72..46ce9119ae 100644 --- a/kubernetes/aio/client/models/v1_controller_revision_list.py +++ b/kubernetes/aio/client/models/v1_controller_revision_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_counter.py b/kubernetes/aio/client/models/v1_counter.py index 96fbfe117b..e5b245bcb4 100644 --- a/kubernetes/aio/client/models/v1_counter.py +++ b/kubernetes/aio/client/models/v1_counter.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_counter_set.py b/kubernetes/aio/client/models/v1_counter_set.py index 963b6217c6..22a5572cc1 100644 --- a/kubernetes/aio/client/models/v1_counter_set.py +++ b/kubernetes/aio/client/models/v1_counter_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_cron_job.py b/kubernetes/aio/client/models/v1_cron_job.py index 537443bffb..b691701a66 100644 --- a/kubernetes/aio/client/models/v1_cron_job.py +++ b/kubernetes/aio/client/models/v1_cron_job.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_cron_job_list.py b/kubernetes/aio/client/models/v1_cron_job_list.py index 10a9e12ee7..9ae2ef0451 100644 --- a/kubernetes/aio/client/models/v1_cron_job_list.py +++ b/kubernetes/aio/client/models/v1_cron_job_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_cron_job_spec.py b/kubernetes/aio/client/models/v1_cron_job_spec.py index 3bfa2e4c3b..d10d409068 100644 --- a/kubernetes/aio/client/models/v1_cron_job_spec.py +++ b/kubernetes/aio/client/models/v1_cron_job_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_cron_job_status.py b/kubernetes/aio/client/models/v1_cron_job_status.py index 07406a97d5..ef2f4aa208 100644 --- a/kubernetes/aio/client/models/v1_cron_job_status.py +++ b/kubernetes/aio/client/models/v1_cron_job_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_cross_version_object_reference.py b/kubernetes/aio/client/models/v1_cross_version_object_reference.py index 0d41052af8..3977330a74 100644 --- a/kubernetes/aio/client/models/v1_cross_version_object_reference.py +++ b/kubernetes/aio/client/models/v1_cross_version_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_csi_driver.py b/kubernetes/aio/client/models/v1_csi_driver.py index 7146f021f2..c9050bb7b2 100644 --- a/kubernetes/aio/client/models/v1_csi_driver.py +++ b/kubernetes/aio/client/models/v1_csi_driver.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_csi_driver_list.py b/kubernetes/aio/client/models/v1_csi_driver_list.py index 35c0200f2e..44845e4a83 100644 --- a/kubernetes/aio/client/models/v1_csi_driver_list.py +++ b/kubernetes/aio/client/models/v1_csi_driver_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_csi_driver_spec.py b/kubernetes/aio/client/models/v1_csi_driver_spec.py index fc255be807..18233084c3 100644 --- a/kubernetes/aio/client/models/v1_csi_driver_spec.py +++ b/kubernetes/aio/client/models/v1_csi_driver_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,7 +108,7 @@ class V1CSIDriverSpec(BaseModel): fs_group_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("fsGroupPolicy", "fs_group_policy"), serialization_alias="fsGroupPolicy", description="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.") node_allocatable_update_period_seconds: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("nodeAllocatableUpdatePeriodSeconds", "node_allocatable_update_period_seconds"), serialization_alias="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. This feature requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable.") pod_info_on_mount: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("podInfoOnMount", "pod_info_on_mount"), serialization_alias="podInfoOnMount", 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. 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.") - prevent_pod_scheduling_if_missing: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("preventPodSchedulingIfMissing", "prevent_pod_scheduling_if_missing"), serialization_alias="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\".") + prevent_pod_scheduling_if_missing: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("preventPodSchedulingIfMissing", "prevent_pod_scheduling_if_missing"), serialization_alias="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 a beta feature and requires the VolumeLimitScaling feature gate to be enabled. Default is \"false\".") requires_republish: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("requiresRepublish", "requires_republish"), serialization_alias="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. 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.") se_linux_mount: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("seLinuxMount", "se_linux_mount"), serialization_alias="seLinuxMount", description="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\".") service_account_token_in_secrets: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("serviceAccountTokenInSecrets", "service_account_token_in_secrets"), serialization_alias="serviceAccountTokenInSecrets", description="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.") diff --git a/kubernetes/aio/client/models/v1_csi_node.py b/kubernetes/aio/client/models/v1_csi_node.py index 0d341076aa..b400648dfc 100644 --- a/kubernetes/aio/client/models/v1_csi_node.py +++ b/kubernetes/aio/client/models/v1_csi_node.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1_csi_node_spec import V1CSINodeSpec +from kubernetes.aio.client.models.v1_csi_node_status import V1CSINodeStatus from kubernetes.aio.client.models.v1_object_meta import V1ObjectMeta from typing import Optional, Set from typing_extensions import Self @@ -109,20 +110,23 @@ class V1CSINode(BaseModel): kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None spec: V1CSINodeSpec + status: Optional[V1CSINodeStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", "metadata": "V1ObjectMeta", - "spec": "V1CSINodeSpec" + "spec": "V1CSINodeSpec", + "status": "V1CSINodeStatus" } attribute_map: ClassVar[Dict[str, str]] = { "api_version": "apiVersion", "kind": "kind", "metadata": "metadata", - "spec": "spec" + "spec": "spec", + "status": "status" } - __properties: ClassVar[List[str]] = ["apiVersion", "kind", "metadata", "spec"] + __properties: ClassVar[List[str]] = ["apiVersion", "kind", "metadata", "spec", "status"] @classmethod def __preprocess_input_names( @@ -189,6 +193,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), ("spec" if serialize else "spec"): _to_legacy_value(getattr(self, "spec", None), serialize), + ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -215,6 +220,9 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of spec if self.spec: _dict['spec'] = _to_openapi_value(self.spec) + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = _to_openapi_value(self.status) return _dict setattr( @@ -250,6 +258,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "apiVersion": obj.get("apiVersion"), "kind": obj.get("kind"), "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, - "spec": V1CSINodeSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None + "spec": V1CSINodeSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, + "status": V1CSINodeStatus.from_dict(obj["status"]) if obj.get("status") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1_csi_node_driver.py b/kubernetes/aio/client/models/v1_csi_node_driver.py index ea5d9b3f03..9ed57059fe 100644 --- a/kubernetes/aio/client/models/v1_csi_node_driver.py +++ b/kubernetes/aio/client/models/v1_csi_node_driver.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_csi_node_list.py b/kubernetes/aio/client/models/v1_csi_node_list.py index fcb8ff66b5..dca33a3f14 100644 --- a/kubernetes/aio/client/models/v1_csi_node_list.py +++ b/kubernetes/aio/client/models/v1_csi_node_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_csi_node_spec.py b/kubernetes/aio/client/models/v1_csi_node_spec.py index 662768fab3..89b6388b2b 100644 --- a/kubernetes/aio/client/models/v1_csi_node_spec.py +++ b/kubernetes/aio/client/models/v1_csi_node_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_csi_node_status.py b/kubernetes/aio/client/models/v1_csi_node_status.py new file mode 100644 index 0000000000..8692e36250 --- /dev/null +++ b/kubernetes/aio/client/models/v1_csi_node_status.py @@ -0,0 +1,239 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_storage_health import V1StorageHealth +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1CSINodeStatus(BaseModel): + """ + CSINodeStatus contains health and status information for storage on a node. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + storage_health: Optional[List[V1StorageHealth]] = Field(default=None, validation_alias=AliasChoices("storageHealth", "storage_health"), serialization_alias="storageHealth", description="storageHealth contains backend health reports for CSI drivers registered on the node.") + openapi_types: ClassVar[Dict[str, str]] = { + "storage_health": "List[V1StorageHealth]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "storage_health": "storageHealth" + } + __properties: ClassVar[List[str]] = ["storageHealth"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "storageHealth" not in obj and "storage_health" in obj: + obj["storageHealth"] = obj["storage_health"] + obj.pop("storage_health", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1CSINodeStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1CSINodeStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1CSINodeStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("storageHealth" if serialize else "storage_health"): _to_legacy_value(getattr(self, "storage_health", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in storage_health (list) + _items = [] + if self.storage_health: + for _item_storage_health in self.storage_health: + _items.append(_to_openapi_value(_item_storage_health) if _item_storage_health is not None else None) + _dict['storageHealth'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1CSINodeStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "storageHealth": [V1StorageHealth.from_dict(_item) for _item in obj["storageHealth"]] if obj.get("storageHealth") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_csi_persistent_volume_source.py b/kubernetes/aio/client/models/v1_csi_persistent_volume_source.py index 268d2fbe18..91e02922fe 100644 --- a/kubernetes/aio/client/models/v1_csi_persistent_volume_source.py +++ b/kubernetes/aio/client/models/v1_csi_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_csi_storage_capacity.py b/kubernetes/aio/client/models/v1_csi_storage_capacity.py index ca40be0d21..3e55c2436a 100644 --- a/kubernetes/aio/client/models/v1_csi_storage_capacity.py +++ b/kubernetes/aio/client/models/v1_csi_storage_capacity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_csi_storage_capacity_list.py b/kubernetes/aio/client/models/v1_csi_storage_capacity_list.py index ba4064523b..9ce01e04e2 100644 --- a/kubernetes/aio/client/models/v1_csi_storage_capacity_list.py +++ b/kubernetes/aio/client/models/v1_csi_storage_capacity_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_csi_volume_source.py b/kubernetes/aio/client/models/v1_csi_volume_source.py index d45798a99f..483531544a 100644 --- a/kubernetes/aio/client/models/v1_csi_volume_source.py +++ b/kubernetes/aio/client/models/v1_csi_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_custom_resource_column_definition.py b/kubernetes/aio/client/models/v1_custom_resource_column_definition.py index 028bbc94b4..31a5c8e66d 100644 --- a/kubernetes/aio/client/models/v1_custom_resource_column_definition.py +++ b/kubernetes/aio/client/models/v1_custom_resource_column_definition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_custom_resource_conversion.py b/kubernetes/aio/client/models/v1_custom_resource_conversion.py index 938e729eb8..9c830425b8 100644 --- a/kubernetes/aio/client/models/v1_custom_resource_conversion.py +++ b/kubernetes/aio/client/models/v1_custom_resource_conversion.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_custom_resource_definition.py b/kubernetes/aio/client/models/v1_custom_resource_definition.py index 81683a8a54..2f866b902b 100644 --- a/kubernetes/aio/client/models/v1_custom_resource_definition.py +++ b/kubernetes/aio/client/models/v1_custom_resource_definition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_custom_resource_definition_condition.py b/kubernetes/aio/client/models/v1_custom_resource_definition_condition.py index b3ff71b97e..0f84718ee5 100644 --- a/kubernetes/aio/client/models/v1_custom_resource_definition_condition.py +++ b/kubernetes/aio/client/models/v1_custom_resource_definition_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_custom_resource_definition_list.py b/kubernetes/aio/client/models/v1_custom_resource_definition_list.py index 83febc61ea..e5617e16a9 100644 --- a/kubernetes/aio/client/models/v1_custom_resource_definition_list.py +++ b/kubernetes/aio/client/models/v1_custom_resource_definition_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_custom_resource_definition_names.py b/kubernetes/aio/client/models/v1_custom_resource_definition_names.py index 027b34f9f9..9ec73f6233 100644 --- a/kubernetes/aio/client/models/v1_custom_resource_definition_names.py +++ b/kubernetes/aio/client/models/v1_custom_resource_definition_names.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_custom_resource_definition_spec.py b/kubernetes/aio/client/models/v1_custom_resource_definition_spec.py index 1852bfc94f..1aeebfa464 100644 --- a/kubernetes/aio/client/models/v1_custom_resource_definition_spec.py +++ b/kubernetes/aio/client/models/v1_custom_resource_definition_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_custom_resource_definition_status.py b/kubernetes/aio/client/models/v1_custom_resource_definition_status.py index b36eef7e8a..d123049425 100644 --- a/kubernetes/aio/client/models/v1_custom_resource_definition_status.py +++ b/kubernetes/aio/client/models/v1_custom_resource_definition_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_custom_resource_definition_version.py b/kubernetes/aio/client/models/v1_custom_resource_definition_version.py index cf13e58b01..64911dd913 100644 --- a/kubernetes/aio/client/models/v1_custom_resource_definition_version.py +++ b/kubernetes/aio/client/models/v1_custom_resource_definition_version.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_custom_resource_subresource_scale.py b/kubernetes/aio/client/models/v1_custom_resource_subresource_scale.py index 2fbe7f6e69..a6c0e1fea8 100644 --- a/kubernetes/aio/client/models/v1_custom_resource_subresource_scale.py +++ b/kubernetes/aio/client/models/v1_custom_resource_subresource_scale.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_custom_resource_subresources.py b/kubernetes/aio/client/models/v1_custom_resource_subresources.py index 36540b04db..e32d5879df 100644 --- a/kubernetes/aio/client/models/v1_custom_resource_subresources.py +++ b/kubernetes/aio/client/models/v1_custom_resource_subresources.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_custom_resource_validation.py b/kubernetes/aio/client/models/v1_custom_resource_validation.py index 73569bf4df..87d835dcdb 100644 --- a/kubernetes/aio/client/models/v1_custom_resource_validation.py +++ b/kubernetes/aio/client/models/v1_custom_resource_validation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_daemon_endpoint.py b/kubernetes/aio/client/models/v1_daemon_endpoint.py index 17655edf81..e99ce7dd38 100644 --- a/kubernetes/aio/client/models/v1_daemon_endpoint.py +++ b/kubernetes/aio/client/models/v1_daemon_endpoint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_daemon_set.py b/kubernetes/aio/client/models/v1_daemon_set.py index 3ccdf5a054..915a816322 100644 --- a/kubernetes/aio/client/models/v1_daemon_set.py +++ b/kubernetes/aio/client/models/v1_daemon_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,7 +109,7 @@ class V1DaemonSet(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: Optional[V1DaemonSetSpec] = None + spec: V1DaemonSetSpec status: Optional[V1DaemonSetStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", diff --git a/kubernetes/aio/client/models/v1_daemon_set_condition.py b/kubernetes/aio/client/models/v1_daemon_set_condition.py index cc7ab9087a..3c68a8a691 100644 --- a/kubernetes/aio/client/models/v1_daemon_set_condition.py +++ b/kubernetes/aio/client/models/v1_daemon_set_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -107,8 +107,8 @@ class V1DaemonSetCondition(BaseModel): last_transition_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastTransitionTime", "last_transition_time"), serialization_alias="lastTransitionTime", description="Last time the condition transitioned from one status to another.") message: Optional[StrictStr] = Field(default=None, description="A human readable message indicating details about the transition.") reason: Optional[StrictStr] = Field(default=None, description="The reason for the condition's last transition.") - status: StrictStr = Field(description="Status of the condition, one of True, False, Unknown.") - type: StrictStr = Field(description="Type of DaemonSet condition.") + status: Optional[StrictStr] = Field(default=None, description="Status of the condition, one of True, False, Unknown.") + type: Optional[StrictStr] = Field(default=None, description="Type of DaemonSet condition.") openapi_types: ClassVar[Dict[str, str]] = { "last_transition_time": "datetime", "message": "str", diff --git a/kubernetes/aio/client/models/v1_daemon_set_list.py b/kubernetes/aio/client/models/v1_daemon_set_list.py index f681be6bf4..ccf83a3481 100644 --- a/kubernetes/aio/client/models/v1_daemon_set_list.py +++ b/kubernetes/aio/client/models/v1_daemon_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_daemon_set_spec.py b/kubernetes/aio/client/models/v1_daemon_set_spec.py index 84d2d3141e..60749843d0 100644 --- a/kubernetes/aio/client/models/v1_daemon_set_spec.py +++ b/kubernetes/aio/client/models/v1_daemon_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_daemon_set_status.py b/kubernetes/aio/client/models/v1_daemon_set_status.py index d1bf744240..b0dc198133 100644 --- a/kubernetes/aio/client/models/v1_daemon_set_status.py +++ b/kubernetes/aio/client/models/v1_daemon_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_daemon_set_update_strategy.py b/kubernetes/aio/client/models/v1_daemon_set_update_strategy.py index f3ee73b111..cda679e849 100644 --- a/kubernetes/aio/client/models/v1_daemon_set_update_strategy.py +++ b/kubernetes/aio/client/models/v1_daemon_set_update_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_delete_options.py b/kubernetes/aio/client/models/v1_delete_options.py index 6fe37f7159..d8b0f37f9f 100644 --- a/kubernetes/aio/client/models/v1_delete_options.py +++ b/kubernetes/aio/client/models/v1_delete_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_deployment.py b/kubernetes/aio/client/models/v1_deployment.py index 05121745e7..b018e6146d 100644 --- a/kubernetes/aio/client/models/v1_deployment.py +++ b/kubernetes/aio/client/models/v1_deployment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,7 +109,7 @@ class V1Deployment(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: Optional[V1DeploymentSpec] = None + spec: V1DeploymentSpec status: Optional[V1DeploymentStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", diff --git a/kubernetes/aio/client/models/v1_deployment_condition.py b/kubernetes/aio/client/models/v1_deployment_condition.py index b748b7625a..6e3a80ea3c 100644 --- a/kubernetes/aio/client/models/v1_deployment_condition.py +++ b/kubernetes/aio/client/models/v1_deployment_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,8 +108,8 @@ class V1DeploymentCondition(BaseModel): last_update_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastUpdateTime", "last_update_time"), serialization_alias="lastUpdateTime", description="The last time this condition was updated.") message: Optional[StrictStr] = Field(default=None, description="A human readable message indicating details about the transition.") reason: Optional[StrictStr] = Field(default=None, description="The reason for the condition's last transition.") - status: StrictStr = Field(description="Status of the condition, one of True, False, Unknown.") - type: StrictStr = Field(description="Type of deployment condition.") + status: Optional[StrictStr] = Field(default=None, description="Status of the condition, one of True, False, Unknown.") + type: Optional[StrictStr] = Field(default=None, description="Type of deployment condition.") openapi_types: ClassVar[Dict[str, str]] = { "last_transition_time": "datetime", "last_update_time": "datetime", diff --git a/kubernetes/aio/client/models/v1_deployment_list.py b/kubernetes/aio/client/models/v1_deployment_list.py index fcc28a09f4..02a7484d16 100644 --- a/kubernetes/aio/client/models/v1_deployment_list.py +++ b/kubernetes/aio/client/models/v1_deployment_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_deployment_spec.py b/kubernetes/aio/client/models/v1_deployment_spec.py index aa2e9ce2c7..5da35baa19 100644 --- a/kubernetes/aio/client/models/v1_deployment_spec.py +++ b/kubernetes/aio/client/models/v1_deployment_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_deployment_status.py b/kubernetes/aio/client/models/v1_deployment_status.py index 2fdc810dd3..ff533a7b4f 100644 --- a/kubernetes/aio/client/models/v1_deployment_status.py +++ b/kubernetes/aio/client/models/v1_deployment_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_deployment_strategy.py b/kubernetes/aio/client/models/v1_deployment_strategy.py index 636c05477d..e6f689e535 100644 --- a/kubernetes/aio/client/models/v1_deployment_strategy.py +++ b/kubernetes/aio/client/models/v1_deployment_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_device.py b/kubernetes/aio/client/models/v1_device.py index 7dff7db55f..e3206cefcf 100644 --- a/kubernetes/aio/client/models/v1_device.py +++ b/kubernetes/aio/client/models/v1_device.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -24,7 +24,7 @@ from kubernetes.aio.client.models.v1_device_capacity import V1DeviceCapacity from kubernetes.aio.client.models.v1_device_counter_consumption import V1DeviceCounterConsumption from kubernetes.aio.client.models.v1_device_taint import V1DeviceTaint -from kubernetes.aio.client.models.v1_node_allocatable_resource_mapping import V1NodeAllocatableResourceMapping +from kubernetes.aio.client.models.v1_node_allocatable_resource import V1NodeAllocatableResource from kubernetes.aio.client.models.v1_node_selector import V1NodeSelector from typing import Optional, Set from typing_extensions import Self @@ -118,7 +118,7 @@ class V1Device(BaseModel): capacity: Optional[Dict[str, V1DeviceCapacity]] = Field(default=None, description="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.") consumes_counters: Optional[List[V1DeviceCounterConsumption]] = Field(default=None, validation_alias=AliasChoices("consumesCounters", "consumes_counters"), serialization_alias="consumesCounters", description="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.") name: StrictStr = Field(description="Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.") - node_allocatable_resource_mappings: Optional[Dict[str, V1NodeAllocatableResourceMapping]] = Field(default=None, validation_alias=AliasChoices("nodeAllocatableResourceMappings", "node_allocatable_resource_mappings"), serialization_alias="nodeAllocatableResourceMappings", 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.") + node_allocatable_resources: Optional[Dict[str, V1NodeAllocatableResource]] = Field(default=None, validation_alias=AliasChoices("nodeAllocatableResources", "node_allocatable_resources"), serialization_alias="nodeAllocatableResources", description="NodeAllocatableResources 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.") node_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("nodeName", "node_name"), serialization_alias="nodeName", description="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.") node_selector: Optional[V1NodeSelector] = Field(default=None, validation_alias=AliasChoices("nodeSelector", "node_selector"), serialization_alias="nodeSelector") taints: Optional[List[V1DeviceTaint]] = Field(default=None, description="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.") @@ -132,7 +132,7 @@ class V1Device(BaseModel): "capacity": "Dict[str, V1DeviceCapacity]", "consumes_counters": "List[V1DeviceCounterConsumption]", "name": "str", - "node_allocatable_resource_mappings": "Dict[str, V1NodeAllocatableResourceMapping]", + "node_allocatable_resources": "Dict[str, V1NodeAllocatableResource]", "node_name": "str", "node_selector": "V1NodeSelector", "taints": "List[V1DeviceTaint]" @@ -148,12 +148,12 @@ class V1Device(BaseModel): "capacity": "capacity", "consumes_counters": "consumesCounters", "name": "name", - "node_allocatable_resource_mappings": "nodeAllocatableResourceMappings", + "node_allocatable_resources": "nodeAllocatableResources", "node_name": "nodeName", "node_selector": "nodeSelector", "taints": "taints" } - __properties: ClassVar[List[str]] = ["allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "name", "nodeAllocatableResourceMappings", "nodeName", "nodeSelector", "taints"] + __properties: ClassVar[List[str]] = ["allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "name", "nodeAllocatableResources", "nodeName", "nodeSelector", "taints"] @classmethod def __preprocess_input_names( @@ -182,9 +182,9 @@ def __preprocess_input_names( if "consumesCounters" not in obj and "consumes_counters" in obj: obj["consumesCounters"] = obj["consumes_counters"] obj.pop("consumes_counters", None) - if "nodeAllocatableResourceMappings" not in obj and "node_allocatable_resource_mappings" in obj: - obj["nodeAllocatableResourceMappings"] = obj["node_allocatable_resource_mappings"] - obj.pop("node_allocatable_resource_mappings", None) + if "nodeAllocatableResources" not in obj and "node_allocatable_resources" in obj: + obj["nodeAllocatableResources"] = obj["node_allocatable_resources"] + obj.pop("node_allocatable_resources", None) if "nodeName" not in obj and "node_name" in obj: obj["nodeName"] = obj["node_name"] obj.pop("node_name", None) @@ -249,7 +249,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("consumesCounters" if serialize else "consumes_counters"): _to_legacy_value(getattr(self, "consumes_counters", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), - ("nodeAllocatableResourceMappings" if serialize else "node_allocatable_resource_mappings"): _to_legacy_value(getattr(self, "node_allocatable_resource_mappings", None), serialize), + ("nodeAllocatableResources" if serialize else "node_allocatable_resources"): _to_legacy_value(getattr(self, "node_allocatable_resources", None), serialize), ("nodeName" if serialize else "node_name"): _to_legacy_value(getattr(self, "node_name", None), serialize), ("nodeSelector" if serialize else "node_selector"): _to_legacy_value(getattr(self, "node_selector", None), serialize), ("taints" if serialize else "taints"): _to_legacy_value(getattr(self, "taints", None), serialize), @@ -291,12 +291,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: for _item_consumes_counters in self.consumes_counters: _items.append(_to_openapi_value(_item_consumes_counters) if _item_consumes_counters is not None else None) _dict['consumesCounters'] = _items - # override the default output from pydantic by calling `to_dict()` of each value in node_allocatable_resource_mappings (dict) + # override the default output from pydantic by calling `to_dict()` of each value in node_allocatable_resources (dict) _field_dict = {} - if self.node_allocatable_resource_mappings: - for _key_node_allocatable_resource_mappings in self.node_allocatable_resource_mappings: - _field_dict[_key_node_allocatable_resource_mappings] = _to_openapi_value(self.node_allocatable_resource_mappings[_key_node_allocatable_resource_mappings]) if self.node_allocatable_resource_mappings[_key_node_allocatable_resource_mappings] is not None else None - _dict['nodeAllocatableResourceMappings'] = _field_dict + if self.node_allocatable_resources: + for _key_node_allocatable_resources in self.node_allocatable_resources: + _field_dict[_key_node_allocatable_resources] = _to_openapi_value(self.node_allocatable_resources[_key_node_allocatable_resources]) if self.node_allocatable_resources[_key_node_allocatable_resources] is not None else None + _dict['nodeAllocatableResources'] = _field_dict # override the default output from pydantic by calling `to_dict()` of node_selector if self.node_selector: _dict['nodeSelector'] = _to_openapi_value(self.node_selector) @@ -357,11 +357,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: else None, "consumesCounters": [V1DeviceCounterConsumption.from_dict(_item) for _item in obj["consumesCounters"]] if obj.get("consumesCounters") is not None else None, "name": obj.get("name"), - "nodeAllocatableResourceMappings": dict( - (_k, V1NodeAllocatableResourceMapping.from_dict(_v)) - for _k, _v in obj["nodeAllocatableResourceMappings"].items() + "nodeAllocatableResources": dict( + (_k, V1NodeAllocatableResource.from_dict(_v)) + for _k, _v in obj["nodeAllocatableResources"].items() ) - if obj.get("nodeAllocatableResourceMappings") is not None + if obj.get("nodeAllocatableResources") is not None else None, "nodeName": obj.get("nodeName"), "nodeSelector": V1NodeSelector.from_dict(obj["nodeSelector"]) if obj.get("nodeSelector") is not None else None, diff --git a/kubernetes/aio/client/models/v1_device_allocation_configuration.py b/kubernetes/aio/client/models/v1_device_allocation_configuration.py index 6d5b6cd980..75bc3306ed 100644 --- a/kubernetes/aio/client/models/v1_device_allocation_configuration.py +++ b/kubernetes/aio/client/models/v1_device_allocation_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_device_allocation_result.py b/kubernetes/aio/client/models/v1_device_allocation_result.py index e30f1c3aee..75b1c1e33a 100644 --- a/kubernetes/aio/client/models/v1_device_allocation_result.py +++ b/kubernetes/aio/client/models/v1_device_allocation_result.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_device_attribute.py b/kubernetes/aio/client/models/v1_device_attribute.py index fc823f93f0..61e5fc669c 100644 --- a/kubernetes/aio/client/models/v1_device_attribute.py +++ b/kubernetes/aio/client/models/v1_device_attribute.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_device_capacity.py b/kubernetes/aio/client/models/v1_device_capacity.py index 3755de61bb..4c11c6bf4c 100644 --- a/kubernetes/aio/client/models/v1_device_capacity.py +++ b/kubernetes/aio/client/models/v1_device_capacity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_device_claim.py b/kubernetes/aio/client/models/v1_device_claim.py index a2ec2c20dc..9e50e13dfd 100644 --- a/kubernetes/aio/client/models/v1_device_claim.py +++ b/kubernetes/aio/client/models/v1_device_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_device_claim_configuration.py b/kubernetes/aio/client/models/v1_device_claim_configuration.py index cff3c2c3f4..a44ea9e6de 100644 --- a/kubernetes/aio/client/models/v1_device_claim_configuration.py +++ b/kubernetes/aio/client/models/v1_device_claim_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_device_class.py b/kubernetes/aio/client/models/v1_device_class.py index 88977ab7f1..dbc7ff0d6c 100644 --- a/kubernetes/aio/client/models/v1_device_class.py +++ b/kubernetes/aio/client/models/v1_device_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,7 +108,7 @@ class V1DeviceClass(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1DeviceClassSpec + spec: Optional[V1DeviceClassSpec] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", diff --git a/kubernetes/aio/client/models/v1_device_class_configuration.py b/kubernetes/aio/client/models/v1_device_class_configuration.py index a468a238eb..e6ad1cae4a 100644 --- a/kubernetes/aio/client/models/v1_device_class_configuration.py +++ b/kubernetes/aio/client/models/v1_device_class_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_device_class_list.py b/kubernetes/aio/client/models/v1_device_class_list.py index bca1500f3b..6a96b4f5ab 100644 --- a/kubernetes/aio/client/models/v1_device_class_list.py +++ b/kubernetes/aio/client/models/v1_device_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_device_class_spec.py b/kubernetes/aio/client/models/v1_device_class_spec.py index 57a4dbaac3..bbe0a625e9 100644 --- a/kubernetes/aio/client/models/v1_device_class_spec.py +++ b/kubernetes/aio/client/models/v1_device_class_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -106,7 +106,7 @@ class V1DeviceClassSpec(BaseModel): and the value is json key in definition. """ # noqa: E501 config: Optional[List[V1DeviceClassConfiguration]] = Field(default=None, description="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.") - extended_resource_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("extendedResourceName", "extended_resource_name"), serialization_alias="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. This is a beta field.") + extended_resource_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("extendedResourceName", "extended_resource_name"), serialization_alias="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.") selectors: Optional[List[V1DeviceSelector]] = Field(default=None, description="Each selector must be satisfied by a device which is claimed via this class.") openapi_types: ClassVar[Dict[str, str]] = { "config": "List[V1DeviceClassConfiguration]", diff --git a/kubernetes/aio/client/models/v1_device_constraint.py b/kubernetes/aio/client/models/v1_device_constraint.py index ea0688f1bf..c21dcf4725 100644 --- a/kubernetes/aio/client/models/v1_device_constraint.py +++ b/kubernetes/aio/client/models/v1_device_constraint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_device_counter_consumption.py b/kubernetes/aio/client/models/v1_device_counter_consumption.py index 28827d8e06..b960a01689 100644 --- a/kubernetes/aio/client/models/v1_device_counter_consumption.py +++ b/kubernetes/aio/client/models/v1_device_counter_consumption.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, cast as _cast +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1_counter import V1Counter from typing import Optional, Set from typing_extensions import Self @@ -104,18 +104,21 @@ class V1DeviceCounterConsumption(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 + compatibility_groups: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("compatibilityGroups", "compatibility_groups"), serialization_alias="compatibilityGroups", description="CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique.") counter_set: StrictStr = Field(validation_alias=AliasChoices("counterSet", "counter_set"), serialization_alias="counterSet", description="CounterSet is the name of the set from which the counters defined will be consumed.") counters: Dict[str, V1Counter] = Field(description="Counters defines the counters that will be consumed by the device. The maximum number of counters is 32.") openapi_types: ClassVar[Dict[str, str]] = { + "compatibility_groups": "List[str]", "counter_set": "str", "counters": "Dict[str, V1Counter]" } attribute_map: ClassVar[Dict[str, str]] = { + "compatibility_groups": "compatibilityGroups", "counter_set": "counterSet", "counters": "counters" } - __properties: ClassVar[List[str]] = ["counterSet", "counters"] + __properties: ClassVar[List[str]] = ["compatibilityGroups", "counterSet", "counters"] @classmethod def __preprocess_input_names( @@ -126,6 +129,9 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) + if "compatibilityGroups" not in obj and "compatibility_groups" in obj: + obj["compatibilityGroups"] = obj["compatibility_groups"] + obj.pop("compatibility_groups", None) if "counterSet" not in obj and "counter_set" in obj: obj["counterSet"] = obj["counter_set"] obj.pop("counter_set", None) @@ -178,6 +184,7 @@ def from_json(cls, json_str: str) -> Optional[Self]: def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { + ("compatibilityGroups" if serialize else "compatibility_groups"): _to_legacy_value(getattr(self, "compatibility_groups", None), serialize), ("counterSet" if serialize else "counter_set"): _to_legacy_value(getattr(self, "counter_set", None), serialize), ("counters" if serialize else "counters"): _to_legacy_value(getattr(self, "counters", None), serialize), } @@ -238,6 +245,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ + "compatibilityGroups": obj.get("compatibilityGroups"), "counterSet": obj.get("counterSet"), "counters": dict( (_k, V1Counter.from_dict(_v)) diff --git a/kubernetes/aio/client/models/v1_device_derived_attribute.py b/kubernetes/aio/client/models/v1_device_derived_attribute.py new file mode 100644 index 0000000000..46309113d9 --- /dev/null +++ b/kubernetes/aio/client/models/v1_device_derived_attribute.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1DeviceDerivedAttribute(BaseModel): + """ + DeviceDerivedAttribute defines a derived attribute computed via CEL. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + expression: StrictStr = Field(description="Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.") + name: StrictStr = Field(description="Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint.") + openapi_types: ClassVar[Dict[str, str]] = { + "expression": "str", + "name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "expression": "expression", + "name": "name" + } + __properties: ClassVar[List[str]] = ["expression", "name"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1DeviceDerivedAttribute): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1DeviceDerivedAttribute): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1DeviceDerivedAttribute from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("expression" if serialize else "expression"): _to_legacy_value(getattr(self, "expression", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1DeviceDerivedAttribute from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "expression": obj.get("expression"), + "name": obj.get("name") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_device_request.py b/kubernetes/aio/client/models/v1_device_request.py index 806af9ba4a..b411b43f55 100644 --- a/kubernetes/aio/client/models/v1_device_request.py +++ b/kubernetes/aio/client/models/v1_device_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_device_request_allocation_result.py b/kubernetes/aio/client/models/v1_device_request_allocation_result.py index 142d141c2c..cdf1e51961 100644 --- a/kubernetes/aio/client/models/v1_device_request_allocation_result.py +++ b/kubernetes/aio/client/models/v1_device_request_allocation_result.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -113,6 +113,7 @@ class V1DeviceRequestAllocationResult(BaseModel): pool: StrictStr = Field(description="This name together with the driver name and the device name field identify which device was allocated (`//`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.") request: StrictStr = Field(description="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
/. Multiple devices may have been allocated per request.") share_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("shareID", "share_id"), serialization_alias="shareID", description="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.") + skip_node_operations: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("skipNodeOperations", "skip_node_operations"), serialization_alias="skipNodeOperations", description="SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.") tolerations: Optional[List[V1DeviceToleration]] = Field(default=None, description="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.") openapi_types: ClassVar[Dict[str, str]] = { "admin_access": "bool", @@ -124,6 +125,7 @@ class V1DeviceRequestAllocationResult(BaseModel): "pool": "str", "request": "str", "share_id": "str", + "skip_node_operations": "List[str]", "tolerations": "List[V1DeviceToleration]" } @@ -137,9 +139,10 @@ class V1DeviceRequestAllocationResult(BaseModel): "pool": "pool", "request": "request", "share_id": "shareID", + "skip_node_operations": "skipNodeOperations", "tolerations": "tolerations" } - __properties: ClassVar[List[str]] = ["adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "tolerations"] + __properties: ClassVar[List[str]] = ["adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "skipNodeOperations", "tolerations"] @classmethod def __preprocess_input_names( @@ -165,6 +168,9 @@ def __preprocess_input_names( if "shareID" not in obj and "share_id" in obj: obj["shareID"] = obj["share_id"] obj.pop("share_id", None) + if "skipNodeOperations" not in obj and "skip_node_operations" in obj: + obj["skipNodeOperations"] = obj["skip_node_operations"] + obj.pop("skip_node_operations", None) return obj model_config = ConfigDict( @@ -223,6 +229,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("pool" if serialize else "pool"): _to_legacy_value(getattr(self, "pool", None), serialize), ("request" if serialize else "request"): _to_legacy_value(getattr(self, "request", None), serialize), ("shareID" if serialize else "share_id"): _to_legacy_value(getattr(self, "share_id", None), serialize), + ("skipNodeOperations" if serialize else "skip_node_operations"): _to_legacy_value(getattr(self, "skip_node_operations", None), serialize), ("tolerations" if serialize else "tolerations"): _to_legacy_value(getattr(self, "tolerations", None), serialize), } @@ -291,6 +298,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "pool": obj.get("pool"), "request": obj.get("request"), "shareID": obj.get("shareID"), + "skipNodeOperations": obj.get("skipNodeOperations"), "tolerations": [V1DeviceToleration.from_dict(_item) for _item in obj["tolerations"]] if obj.get("tolerations") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1_device_selector.py b/kubernetes/aio/client/models/v1_device_selector.py index 61d7a0e214..9a90621b3d 100644 --- a/kubernetes/aio/client/models/v1_device_selector.py +++ b/kubernetes/aio/client/models/v1_device_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_device_sub_request.py b/kubernetes/aio/client/models/v1_device_sub_request.py index 7a558fcc36..61a355e8ad 100644 --- a/kubernetes/aio/client/models/v1_device_sub_request.py +++ b/kubernetes/aio/client/models/v1_device_sub_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1_capacity_requirements import V1CapacityRequirements +from kubernetes.aio.client.models.v1_device_derived_attribute import V1DeviceDerivedAttribute from kubernetes.aio.client.models.v1_device_selector import V1DeviceSelector from kubernetes.aio.client.models.v1_device_toleration import V1DeviceToleration from typing import Optional, Set @@ -109,6 +110,7 @@ class V1DeviceSubRequest(BaseModel): allocation_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("allocationMode", "allocation_mode"), serialization_alias="allocationMode", description="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.") capacity: Optional[V1CapacityRequirements] = None count: Optional[StrictInt] = Field(default=None, description="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.") + derived_attributes: Optional[List[V1DeviceDerivedAttribute]] = Field(default=None, validation_alias=AliasChoices("derivedAttributes", "derived_attributes"), serialization_alias="derivedAttributes", description="DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate.") device_class_name: StrictStr = Field(validation_alias=AliasChoices("deviceClassName", "device_class_name"), serialization_alias="deviceClassName", description="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: StrictStr = Field(description="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
/. Must be a DNS label.") selectors: Optional[List[V1DeviceSelector]] = Field(default=None, description="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.") @@ -117,6 +119,7 @@ class V1DeviceSubRequest(BaseModel): "allocation_mode": "str", "capacity": "V1CapacityRequirements", "count": "int", + "derived_attributes": "List[V1DeviceDerivedAttribute]", "device_class_name": "str", "name": "str", "selectors": "List[V1DeviceSelector]", @@ -127,12 +130,13 @@ class V1DeviceSubRequest(BaseModel): "allocation_mode": "allocationMode", "capacity": "capacity", "count": "count", + "derived_attributes": "derivedAttributes", "device_class_name": "deviceClassName", "name": "name", "selectors": "selectors", "tolerations": "tolerations" } - __properties: ClassVar[List[str]] = ["allocationMode", "capacity", "count", "deviceClassName", "name", "selectors", "tolerations"] + __properties: ClassVar[List[str]] = ["allocationMode", "capacity", "count", "derivedAttributes", "deviceClassName", "name", "selectors", "tolerations"] @classmethod def __preprocess_input_names( @@ -146,6 +150,9 @@ def __preprocess_input_names( if "allocationMode" not in obj and "allocation_mode" in obj: obj["allocationMode"] = obj["allocation_mode"] obj.pop("allocation_mode", None) + if "derivedAttributes" not in obj and "derived_attributes" in obj: + obj["derivedAttributes"] = obj["derived_attributes"] + obj.pop("derived_attributes", None) if "deviceClassName" not in obj and "device_class_name" in obj: obj["deviceClassName"] = obj["device_class_name"] obj.pop("device_class_name", None) @@ -201,6 +208,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("allocationMode" if serialize else "allocation_mode"): _to_legacy_value(getattr(self, "allocation_mode", None), serialize), ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("count" if serialize else "count"): _to_legacy_value(getattr(self, "count", None), serialize), + ("derivedAttributes" if serialize else "derived_attributes"): _to_legacy_value(getattr(self, "derived_attributes", None), serialize), ("deviceClassName" if serialize else "device_class_name"): _to_legacy_value(getattr(self, "device_class_name", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), ("selectors" if serialize else "selectors"): _to_legacy_value(getattr(self, "selectors", None), serialize), @@ -228,6 +236,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of capacity if self.capacity: _dict['capacity'] = _to_openapi_value(self.capacity) + # override the default output from pydantic by calling `to_dict()` of each item in derived_attributes (list) + _items = [] + if self.derived_attributes: + for _item_derived_attributes in self.derived_attributes: + _items.append(_to_openapi_value(_item_derived_attributes) if _item_derived_attributes is not None else None) + _dict['derivedAttributes'] = _items # override the default output from pydantic by calling `to_dict()` of each item in selectors (list) _items = [] if self.selectors: @@ -275,6 +289,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "allocationMode": obj.get("allocationMode"), "capacity": V1CapacityRequirements.from_dict(obj["capacity"]) if obj.get("capacity") is not None else None, "count": obj.get("count"), + "derivedAttributes": [V1DeviceDerivedAttribute.from_dict(_item) for _item in obj["derivedAttributes"]] if obj.get("derivedAttributes") is not None else None, "deviceClassName": obj.get("deviceClassName"), "name": obj.get("name"), "selectors": [V1DeviceSelector.from_dict(_item) for _item in obj["selectors"]] if obj.get("selectors") is not None else None, diff --git a/kubernetes/aio/client/models/v1_device_taint.py b/kubernetes/aio/client/models/v1_device_taint.py index c6f90273c4..954c9e529e 100644 --- a/kubernetes/aio/client/models/v1_device_taint.py +++ b/kubernetes/aio/client/models/v1_device_taint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_service_cidr.py b/kubernetes/aio/client/models/v1_device_taint_rule.py similarity index 89% rename from kubernetes/aio/client/models/v1beta1_service_cidr.py rename to kubernetes/aio/client/models/v1_device_taint_rule.py index dc0be760ce..770b1230a8 100644 --- a/kubernetes/aio/client/models/v1beta1_service_cidr.py +++ b/kubernetes/aio/client/models/v1_device_taint_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,9 +20,9 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_device_taint_rule_spec import V1DeviceTaintRuleSpec +from kubernetes.aio.client.models.v1_device_taint_rule_status import V1DeviceTaintRuleStatus from kubernetes.aio.client.models.v1_object_meta import V1ObjectMeta -from kubernetes.aio.client.models.v1beta1_service_cidr_spec import V1beta1ServiceCIDRSpec -from kubernetes.aio.client.models.v1beta1_service_cidr_status import V1beta1ServiceCIDRStatus from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -96,9 +96,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1beta1ServiceCIDR(BaseModel): +class V1DeviceTaintRule(BaseModel): """ - 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. + 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. Attributes: openapi_types (dict): The key is attribute name @@ -109,14 +109,14 @@ class V1beta1ServiceCIDR(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: Optional[V1beta1ServiceCIDRSpec] = None - status: Optional[V1beta1ServiceCIDRStatus] = None + spec: V1DeviceTaintRuleSpec + status: Optional[V1DeviceTaintRuleStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", "metadata": "V1ObjectMeta", - "spec": "V1beta1ServiceCIDRSpec", - "status": "V1beta1ServiceCIDRStatus" + "spec": "V1DeviceTaintRuleSpec", + "status": "V1DeviceTaintRuleStatus" } attribute_map: ClassVar[Dict[str, str]] = { @@ -161,14 +161,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1beta1ServiceCIDR): + if not isinstance(other, V1DeviceTaintRule): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1ServiceCIDR): + if not isinstance(other, V1DeviceTaintRule): return True return not (self == other) @@ -183,7 +183,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1ServiceCIDR from a JSON string""" + """Create an instance of V1DeviceTaintRule from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -239,7 +239,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1ServiceCIDR from a dict""" + """Create an instance of V1DeviceTaintRule from a dict""" if obj is None: return None @@ -258,7 +258,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "apiVersion": obj.get("apiVersion"), "kind": obj.get("kind"), "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, - "spec": V1beta1ServiceCIDRSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, - "status": V1beta1ServiceCIDRStatus.from_dict(obj["status"]) if obj.get("status") is not None else None + "spec": V1DeviceTaintRuleSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, + "status": V1DeviceTaintRuleStatus.from_dict(obj["status"]) if obj.get("status") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1beta1_service_cidr_list.py b/kubernetes/aio/client/models/v1_device_taint_rule_list.py similarity index 92% rename from kubernetes/aio/client/models/v1beta1_service_cidr_list.py rename to kubernetes/aio/client/models/v1_device_taint_rule_list.py index 02af81416d..e3bb66f66f 100644 --- a/kubernetes/aio/client/models/v1beta1_service_cidr_list.py +++ b/kubernetes/aio/client/models/v1_device_taint_rule_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,8 +20,8 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_device_taint_rule import V1DeviceTaintRule from kubernetes.aio.client.models.v1_list_meta import V1ListMeta -from kubernetes.aio.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,9 +95,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1beta1ServiceCIDRList(BaseModel): +class V1DeviceTaintRuleList(BaseModel): """ - ServiceCIDRList contains a list of ServiceCIDR objects. + DeviceTaintRuleList is a collection of DeviceTaintRules. Attributes: openapi_types (dict): The key is attribute name @@ -106,12 +106,12 @@ class V1beta1ServiceCIDRList(BaseModel): and the value is json key in definition. """ # noqa: E501 api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - items: List[V1beta1ServiceCIDR] = Field(description="items is the list of ServiceCIDRs.") + items: List[V1DeviceTaintRule] = Field(description="Items is the list of DeviceTaintRules.") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ListMeta] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", - "items": "List[V1beta1ServiceCIDR]", + "items": "List[V1DeviceTaintRule]", "kind": "str", "metadata": "V1ListMeta" } @@ -157,14 +157,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1beta1ServiceCIDRList): + if not isinstance(other, V1DeviceTaintRuleList): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1ServiceCIDRList): + if not isinstance(other, V1DeviceTaintRuleList): return True return not (self == other) @@ -179,7 +179,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1ServiceCIDRList from a JSON string""" + """Create an instance of V1DeviceTaintRuleList from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -234,7 +234,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1ServiceCIDRList from a dict""" + """Create an instance of V1DeviceTaintRuleList from a dict""" if obj is None: return None @@ -251,7 +251,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "apiVersion": obj.get("apiVersion"), - "items": [V1beta1ServiceCIDR.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "items": [V1DeviceTaintRule.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "kind": obj.get("kind"), "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None }) diff --git a/kubernetes/aio/client/models/v1_device_taint_rule_spec.py b/kubernetes/aio/client/models/v1_device_taint_rule_spec.py new file mode 100644 index 0000000000..00203eacba --- /dev/null +++ b/kubernetes/aio/client/models/v1_device_taint_rule_spec.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_device_taint import V1DeviceTaint +from kubernetes.aio.client.models.v1_device_taint_selector import V1DeviceTaintSelector +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1DeviceTaintRuleSpec(BaseModel): + """ + DeviceTaintRuleSpec specifies the selector and one taint. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + device_selector: Optional[V1DeviceTaintSelector] = Field(default=None, validation_alias=AliasChoices("deviceSelector", "device_selector"), serialization_alias="deviceSelector") + taint: V1DeviceTaint + openapi_types: ClassVar[Dict[str, str]] = { + "device_selector": "V1DeviceTaintSelector", + "taint": "V1DeviceTaint" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "device_selector": "deviceSelector", + "taint": "taint" + } + __properties: ClassVar[List[str]] = ["deviceSelector", "taint"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "deviceSelector" not in obj and "device_selector" in obj: + obj["deviceSelector"] = obj["device_selector"] + obj.pop("device_selector", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1DeviceTaintRuleSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1DeviceTaintRuleSpec): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1DeviceTaintRuleSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("deviceSelector" if serialize else "device_selector"): _to_legacy_value(getattr(self, "device_selector", None), serialize), + ("taint" if serialize else "taint"): _to_legacy_value(getattr(self, "taint", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of device_selector + if self.device_selector: + _dict['deviceSelector'] = _to_openapi_value(self.device_selector) + # override the default output from pydantic by calling `to_dict()` of taint + if self.taint: + _dict['taint'] = _to_openapi_value(self.taint) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1DeviceTaintRuleSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "deviceSelector": V1DeviceTaintSelector.from_dict(obj["deviceSelector"]) if obj.get("deviceSelector") is not None else None, + "taint": V1DeviceTaint.from_dict(obj["taint"]) if obj.get("taint") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_service_cidr_status.py b/kubernetes/aio/client/models/v1_device_taint_rule_status.py similarity index 82% rename from kubernetes/aio/client/models/v1beta1_service_cidr_status.py rename to kubernetes/aio/client/models/v1_device_taint_rule_status.py index f8b0ea51da..de012aa16e 100644 --- a/kubernetes/aio/client/models/v1beta1_service_cidr_status.py +++ b/kubernetes/aio/client/models/v1_device_taint_rule_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -93,9 +93,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1beta1ServiceCIDRStatus(BaseModel): +class V1DeviceTaintRuleStatus(BaseModel): """ - ServiceCIDRStatus describes the current state of the ServiceCIDR. + DeviceTaintRuleStatus provides information about an on-going pod eviction. Attributes: openapi_types (dict): The key is attribute name @@ -103,7 +103,7 @@ class V1beta1ServiceCIDRStatus(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - conditions: Optional[List[V1Condition]] = Field(default=None, description="conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state") + conditions: Optional[List[V1Condition]] = Field(default=None, 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.") openapi_types: ClassVar[Dict[str, str]] = { "conditions": "List[V1Condition]" } @@ -132,14 +132,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1beta1ServiceCIDRStatus): + if not isinstance(other, V1DeviceTaintRuleStatus): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1ServiceCIDRStatus): + if not isinstance(other, V1DeviceTaintRuleStatus): return True return not (self == other) @@ -154,7 +154,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1ServiceCIDRStatus from a JSON string""" + """Create an instance of V1DeviceTaintRuleStatus from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -203,7 +203,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1ServiceCIDRStatus from a dict""" + """Create an instance of V1DeviceTaintRuleStatus from a dict""" if obj is None: return None diff --git a/kubernetes/aio/client/models/v1_device_taint_selector.py b/kubernetes/aio/client/models/v1_device_taint_selector.py new file mode 100644 index 0000000000..76b62e2fa9 --- /dev/null +++ b/kubernetes/aio/client/models/v1_device_taint_selector.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1DeviceTaintSelector(BaseModel): + """ + DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + device: Optional[StrictStr] = Field(default=None, 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.") + driver: Optional[StrictStr] = Field(default=None, description="If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver.") + pool: Optional[StrictStr] = Field(default=None, 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.") + openapi_types: ClassVar[Dict[str, str]] = { + "device": "str", + "driver": "str", + "pool": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "device": "device", + "driver": "driver", + "pool": "pool" + } + __properties: ClassVar[List[str]] = ["device", "driver", "pool"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1DeviceTaintSelector): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1DeviceTaintSelector): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1DeviceTaintSelector from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("device" if serialize else "device"): _to_legacy_value(getattr(self, "device", None), serialize), + ("driver" if serialize else "driver"): _to_legacy_value(getattr(self, "driver", None), serialize), + ("pool" if serialize else "pool"): _to_legacy_value(getattr(self, "pool", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1DeviceTaintSelector from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "device": obj.get("device"), + "driver": obj.get("driver"), + "pool": obj.get("pool") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_device_toleration.py b/kubernetes/aio/client/models/v1_device_toleration.py index f481371e1e..407c1110f3 100644 --- a/kubernetes/aio/client/models/v1_device_toleration.py +++ b/kubernetes/aio/client/models/v1_device_toleration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_downward_api_projection.py b/kubernetes/aio/client/models/v1_downward_api_projection.py index da21088ac0..87a7fad0cf 100644 --- a/kubernetes/aio/client/models/v1_downward_api_projection.py +++ b/kubernetes/aio/client/models/v1_downward_api_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_downward_api_volume_file.py b/kubernetes/aio/client/models/v1_downward_api_volume_file.py index c64abf1542..1ff07fd513 100644 --- a/kubernetes/aio/client/models/v1_downward_api_volume_file.py +++ b/kubernetes/aio/client/models/v1_downward_api_volume_file.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,20 +109,23 @@ class V1DownwardAPIVolumeFile(BaseModel): mode: Optional[StrictInt] = Field(default=None, description="Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") path: StrictStr = Field(description="Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'") resource_field_ref: Optional[V1ResourceFieldSelector] = Field(default=None, validation_alias=AliasChoices("resourceFieldRef", "resource_field_ref"), serialization_alias="resourceFieldRef") + user: Optional[StrictInt] = Field(default=None, description="user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") openapi_types: ClassVar[Dict[str, str]] = { "field_ref": "V1ObjectFieldSelector", "mode": "int", "path": "str", - "resource_field_ref": "V1ResourceFieldSelector" + "resource_field_ref": "V1ResourceFieldSelector", + "user": "int" } attribute_map: ClassVar[Dict[str, str]] = { "field_ref": "fieldRef", "mode": "mode", "path": "path", - "resource_field_ref": "resourceFieldRef" + "resource_field_ref": "resourceFieldRef", + "user": "user" } - __properties: ClassVar[List[str]] = ["fieldRef", "mode", "path", "resourceFieldRef"] + __properties: ClassVar[List[str]] = ["fieldRef", "mode", "path", "resourceFieldRef", "user"] @classmethod def __preprocess_input_names( @@ -192,6 +195,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("mode" if serialize else "mode"): _to_legacy_value(getattr(self, "mode", None), serialize), ("path" if serialize else "path"): _to_legacy_value(getattr(self, "path", None), serialize), ("resourceFieldRef" if serialize else "resource_field_ref"): _to_legacy_value(getattr(self, "resource_field_ref", None), serialize), + ("user" if serialize else "user"): _to_legacy_value(getattr(self, "user", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -253,6 +257,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "fieldRef": V1ObjectFieldSelector.from_dict(obj["fieldRef"]) if obj.get("fieldRef") is not None else None, "mode": obj.get("mode"), "path": obj.get("path"), - "resourceFieldRef": V1ResourceFieldSelector.from_dict(obj["resourceFieldRef"]) if obj.get("resourceFieldRef") is not None else None + "resourceFieldRef": V1ResourceFieldSelector.from_dict(obj["resourceFieldRef"]) if obj.get("resourceFieldRef") is not None else None, + "user": obj.get("user") }) return _obj diff --git a/kubernetes/aio/client/models/v1_downward_api_volume_source.py b/kubernetes/aio/client/models/v1_downward_api_volume_source.py index 6548e0bfdd..d86c9de23a 100644 --- a/kubernetes/aio/client/models/v1_downward_api_volume_source.py +++ b/kubernetes/aio/client/models/v1_downward_api_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,17 +105,20 @@ class V1DownwardAPIVolumeSource(BaseModel): and the value is json key in definition. """ # noqa: E501 default_mode: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("defaultMode", "default_mode"), serialization_alias="defaultMode", description="Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") + default_user: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("defaultUser", "default_user"), serialization_alias="defaultUser", description="defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") items: Optional[List[V1DownwardAPIVolumeFile]] = Field(default=None, description="Items is a list of downward API volume file") openapi_types: ClassVar[Dict[str, str]] = { "default_mode": "int", + "default_user": "int", "items": "List[V1DownwardAPIVolumeFile]" } attribute_map: ClassVar[Dict[str, str]] = { "default_mode": "defaultMode", + "default_user": "defaultUser", "items": "items" } - __properties: ClassVar[List[str]] = ["defaultMode", "items"] + __properties: ClassVar[List[str]] = ["defaultMode", "defaultUser", "items"] @classmethod def __preprocess_input_names( @@ -129,6 +132,9 @@ def __preprocess_input_names( if "defaultMode" not in obj and "default_mode" in obj: obj["defaultMode"] = obj["default_mode"] obj.pop("default_mode", None) + if "defaultUser" not in obj and "default_user" in obj: + obj["defaultUser"] = obj["default_user"] + obj.pop("default_user", None) return obj model_config = ConfigDict( @@ -179,6 +185,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { ("defaultMode" if serialize else "default_mode"): _to_legacy_value(getattr(self, "default_mode", None), serialize), + ("defaultUser" if serialize else "default_user"): _to_legacy_value(getattr(self, "default_user", None), serialize), ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), } @@ -239,6 +246,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "defaultMode": obj.get("defaultMode"), + "defaultUser": obj.get("defaultUser"), "items": [V1DownwardAPIVolumeFile.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1_empty_dir_volume_source.py b/kubernetes/aio/client/models/v1_empty_dir_volume_source.py index 2f907cf7cb..4f6174455f 100644 --- a/kubernetes/aio/client/models/v1_empty_dir_volume_source.py +++ b/kubernetes/aio/client/models/v1_empty_dir_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,7 +18,7 @@ import json from collections.abc import Mapping as _Mapping -from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from typing import Optional, Set from typing_extensions import Self @@ -104,17 +104,20 @@ class V1EmptyDirVolumeSource(BaseModel): and the value is json key in definition. """ # noqa: E501 medium: Optional[StrictStr] = Field(default=None, description="medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir") + mode: Optional[StrictInt] = Field(default=None, description="mode specifies the permission bits for the emptyDir directory, in numeric notation (e.g., 0755, 01777). Must be a value between 0000 and 01777. If not specified, defaults to 0777. This might be in conflict with other options that affect the file mode, like fsGroup. If fsGroup is specified, the fsGroup permissions will override the mode specified here. This field has no effect on Windows. This field is alpha and requires EmptyDirVolumeMode featuregate to be enabled.") size_limit: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("sizeLimit", "size_limit"), serialization_alias="sizeLimit", description="sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir") openapi_types: ClassVar[Dict[str, str]] = { "medium": "str", + "mode": "int", "size_limit": "str" } attribute_map: ClassVar[Dict[str, str]] = { "medium": "medium", + "mode": "mode", "size_limit": "sizeLimit" } - __properties: ClassVar[List[str]] = ["medium", "sizeLimit"] + __properties: ClassVar[List[str]] = ["medium", "mode", "sizeLimit"] @classmethod def __preprocess_input_names( @@ -178,6 +181,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { ("medium" if serialize else "medium"): _to_legacy_value(getattr(self, "medium", None), serialize), + ("mode" if serialize else "mode"): _to_legacy_value(getattr(self, "mode", None), serialize), ("sizeLimit" if serialize else "size_limit"): _to_legacy_value(getattr(self, "size_limit", None), serialize), } @@ -232,6 +236,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "medium": obj.get("medium"), + "mode": obj.get("mode"), "sizeLimit": obj.get("sizeLimit") }) return _obj diff --git a/kubernetes/aio/client/models/v1_endpoint.py b/kubernetes/aio/client/models/v1_endpoint.py index 6f497a3709..e1a8de85ee 100644 --- a/kubernetes/aio/client/models/v1_endpoint.py +++ b/kubernetes/aio/client/models/v1_endpoint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_endpoint_address.py b/kubernetes/aio/client/models/v1_endpoint_address.py index 045badf672..7b23e7ff17 100644 --- a/kubernetes/aio/client/models/v1_endpoint_address.py +++ b/kubernetes/aio/client/models/v1_endpoint_address.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_endpoint_conditions.py b/kubernetes/aio/client/models/v1_endpoint_conditions.py index f04a07d306..9bc83ef75e 100644 --- a/kubernetes/aio/client/models/v1_endpoint_conditions.py +++ b/kubernetes/aio/client/models/v1_endpoint_conditions.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_endpoint_hints.py b/kubernetes/aio/client/models/v1_endpoint_hints.py index 19140c48f9..fd45f6b85c 100644 --- a/kubernetes/aio/client/models/v1_endpoint_hints.py +++ b/kubernetes/aio/client/models/v1_endpoint_hints.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_endpoint_slice.py b/kubernetes/aio/client/models/v1_endpoint_slice.py index 05108446d7..9322049c7f 100644 --- a/kubernetes/aio/client/models/v1_endpoint_slice.py +++ b/kubernetes/aio/client/models/v1_endpoint_slice.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_endpoint_slice_list.py b/kubernetes/aio/client/models/v1_endpoint_slice_list.py index c13dc4abed..53d619b6ff 100644 --- a/kubernetes/aio/client/models/v1_endpoint_slice_list.py +++ b/kubernetes/aio/client/models/v1_endpoint_slice_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_endpoint_subset.py b/kubernetes/aio/client/models/v1_endpoint_subset.py index fb97a969c7..a7408e3c47 100644 --- a/kubernetes/aio/client/models/v1_endpoint_subset.py +++ b/kubernetes/aio/client/models/v1_endpoint_subset.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_endpoints.py b/kubernetes/aio/client/models/v1_endpoints.py index c49c7b6601..94bd17a553 100644 --- a/kubernetes/aio/client/models/v1_endpoints.py +++ b/kubernetes/aio/client/models/v1_endpoints.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_endpoints_list.py b/kubernetes/aio/client/models/v1_endpoints_list.py index d9280f3350..26bea5ca31 100644 --- a/kubernetes/aio/client/models/v1_endpoints_list.py +++ b/kubernetes/aio/client/models/v1_endpoints_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_env_from_source.py b/kubernetes/aio/client/models/v1_env_from_source.py index 8ac2194f86..1ef20ebf66 100644 --- a/kubernetes/aio/client/models/v1_env_from_source.py +++ b/kubernetes/aio/client/models/v1_env_from_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_env_var.py b/kubernetes/aio/client/models/v1_env_var.py index 252541ea9e..dfe22d7554 100644 --- a/kubernetes/aio/client/models/v1_env_var.py +++ b/kubernetes/aio/client/models/v1_env_var.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_env_var_source.py b/kubernetes/aio/client/models/v1_env_var_source.py index f5b5a305d7..6bb6db0cd7 100644 --- a/kubernetes/aio/client/models/v1_env_var_source.py +++ b/kubernetes/aio/client/models/v1_env_var_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ephemeral_container.py b/kubernetes/aio/client/models/v1_ephemeral_container.py index 79d006fa1d..6c4a6411db 100644 --- a/kubernetes/aio/client/models/v1_ephemeral_container.py +++ b/kubernetes/aio/client/models/v1_ephemeral_container.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ephemeral_volume_source.py b/kubernetes/aio/client/models/v1_ephemeral_volume_source.py index 3d3d96f1af..fc1d78db9e 100644 --- a/kubernetes/aio/client/models/v1_ephemeral_volume_source.py +++ b/kubernetes/aio/client/models/v1_ephemeral_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_event_source.py b/kubernetes/aio/client/models/v1_event_source.py index 069ed9b772..3e0dc80211 100644 --- a/kubernetes/aio/client/models/v1_event_source.py +++ b/kubernetes/aio/client/models/v1_event_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_eviction.py b/kubernetes/aio/client/models/v1_eviction.py index 059ba28627..b473971e01 100644 --- a/kubernetes/aio/client/models/v1_eviction.py +++ b/kubernetes/aio/client/models/v1_eviction.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_eviction_responder.py b/kubernetes/aio/client/models/v1_eviction_responder.py new file mode 100644 index 0000000000..884e0e9fc6 --- /dev/null +++ b/kubernetes/aio/client/models/v1_eviction_responder.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1EvictionResponder(BaseModel): + """ + EvictionResponder allows you to specify the responder reacting to an Eviction. Responders should observe and communicate through the Eviction Resource API to help with the graceful eviction of a target (e.g. termination of a pod). + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + name: StrictStr = Field(description="name allows you to identify the responder responding to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field must be unique for each responder. This field is required.") + priority: StrictInt = Field(description="priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last. The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders. The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required.") + openapi_types: ClassVar[Dict[str, str]] = { + "name": "str", + "priority": "int" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "name": "name", + "priority": "priority" + } + __properties: ClassVar[List[str]] = ["name", "priority"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1EvictionResponder): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1EvictionResponder): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1EvictionResponder from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("priority" if serialize else "priority"): _to_legacy_value(getattr(self, "priority", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1EvictionResponder from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "priority": obj.get("priority") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_exact_device_request.py b/kubernetes/aio/client/models/v1_exact_device_request.py index fe73f42867..b0c41c9729 100644 --- a/kubernetes/aio/client/models/v1_exact_device_request.py +++ b/kubernetes/aio/client/models/v1_exact_device_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1_capacity_requirements import V1CapacityRequirements +from kubernetes.aio.client.models.v1_device_derived_attribute import V1DeviceDerivedAttribute from kubernetes.aio.client.models.v1_device_selector import V1DeviceSelector from kubernetes.aio.client.models.v1_device_toleration import V1DeviceToleration from typing import Optional, Set @@ -110,6 +111,7 @@ class V1ExactDeviceRequest(BaseModel): allocation_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("allocationMode", "allocation_mode"), serialization_alias="allocationMode", description="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.") capacity: Optional[V1CapacityRequirements] = None count: Optional[StrictInt] = Field(default=None, description="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.") + derived_attributes: Optional[List[V1DeviceDerivedAttribute]] = Field(default=None, validation_alias=AliasChoices("derivedAttributes", "derived_attributes"), serialization_alias="derivedAttributes", description="DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate.") device_class_name: StrictStr = Field(validation_alias=AliasChoices("deviceClassName", "device_class_name"), serialization_alias="deviceClassName", description="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: Optional[List[V1DeviceSelector]] = Field(default=None, description="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.") tolerations: Optional[List[V1DeviceToleration]] = Field(default=None, description="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.") @@ -118,6 +120,7 @@ class V1ExactDeviceRequest(BaseModel): "allocation_mode": "str", "capacity": "V1CapacityRequirements", "count": "int", + "derived_attributes": "List[V1DeviceDerivedAttribute]", "device_class_name": "str", "selectors": "List[V1DeviceSelector]", "tolerations": "List[V1DeviceToleration]" @@ -128,11 +131,12 @@ class V1ExactDeviceRequest(BaseModel): "allocation_mode": "allocationMode", "capacity": "capacity", "count": "count", + "derived_attributes": "derivedAttributes", "device_class_name": "deviceClassName", "selectors": "selectors", "tolerations": "tolerations" } - __properties: ClassVar[List[str]] = ["adminAccess", "allocationMode", "capacity", "count", "deviceClassName", "selectors", "tolerations"] + __properties: ClassVar[List[str]] = ["adminAccess", "allocationMode", "capacity", "count", "derivedAttributes", "deviceClassName", "selectors", "tolerations"] @classmethod def __preprocess_input_names( @@ -149,6 +153,9 @@ def __preprocess_input_names( if "allocationMode" not in obj and "allocation_mode" in obj: obj["allocationMode"] = obj["allocation_mode"] obj.pop("allocation_mode", None) + if "derivedAttributes" not in obj and "derived_attributes" in obj: + obj["derivedAttributes"] = obj["derived_attributes"] + obj.pop("derived_attributes", None) if "deviceClassName" not in obj and "device_class_name" in obj: obj["deviceClassName"] = obj["device_class_name"] obj.pop("device_class_name", None) @@ -205,6 +212,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("allocationMode" if serialize else "allocation_mode"): _to_legacy_value(getattr(self, "allocation_mode", None), serialize), ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("count" if serialize else "count"): _to_legacy_value(getattr(self, "count", None), serialize), + ("derivedAttributes" if serialize else "derived_attributes"): _to_legacy_value(getattr(self, "derived_attributes", None), serialize), ("deviceClassName" if serialize else "device_class_name"): _to_legacy_value(getattr(self, "device_class_name", None), serialize), ("selectors" if serialize else "selectors"): _to_legacy_value(getattr(self, "selectors", None), serialize), ("tolerations" if serialize else "tolerations"): _to_legacy_value(getattr(self, "tolerations", None), serialize), @@ -231,6 +239,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of capacity if self.capacity: _dict['capacity'] = _to_openapi_value(self.capacity) + # override the default output from pydantic by calling `to_dict()` of each item in derived_attributes (list) + _items = [] + if self.derived_attributes: + for _item_derived_attributes in self.derived_attributes: + _items.append(_to_openapi_value(_item_derived_attributes) if _item_derived_attributes is not None else None) + _dict['derivedAttributes'] = _items # override the default output from pydantic by calling `to_dict()` of each item in selectors (list) _items = [] if self.selectors: @@ -279,6 +293,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "allocationMode": obj.get("allocationMode"), "capacity": V1CapacityRequirements.from_dict(obj["capacity"]) if obj.get("capacity") is not None else None, "count": obj.get("count"), + "derivedAttributes": [V1DeviceDerivedAttribute.from_dict(_item) for _item in obj["derivedAttributes"]] if obj.get("derivedAttributes") is not None else None, "deviceClassName": obj.get("deviceClassName"), "selectors": [V1DeviceSelector.from_dict(_item) for _item in obj["selectors"]] if obj.get("selectors") is not None else None, "tolerations": [V1DeviceToleration.from_dict(_item) for _item in obj["tolerations"]] if obj.get("tolerations") is not None else None diff --git a/kubernetes/aio/client/models/v1_exec_action.py b/kubernetes/aio/client/models/v1_exec_action.py index f45e2f4ea8..635de92310 100644 --- a/kubernetes/aio/client/models/v1_exec_action.py +++ b/kubernetes/aio/client/models/v1_exec_action.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_exempt_priority_level_configuration.py b/kubernetes/aio/client/models/v1_exempt_priority_level_configuration.py index a1a4457e84..0b5a0d40a4 100644 --- a/kubernetes/aio/client/models/v1_exempt_priority_level_configuration.py +++ b/kubernetes/aio/client/models/v1_exempt_priority_level_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_expression_warning.py b/kubernetes/aio/client/models/v1_expression_warning.py index d0eab794b1..eae58f9c7f 100644 --- a/kubernetes/aio/client/models/v1_expression_warning.py +++ b/kubernetes/aio/client/models/v1_expression_warning.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_external_documentation.py b/kubernetes/aio/client/models/v1_external_documentation.py index c2e26777a4..696ae28fe2 100644 --- a/kubernetes/aio/client/models/v1_external_documentation.py +++ b/kubernetes/aio/client/models/v1_external_documentation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_fc_volume_source.py b/kubernetes/aio/client/models/v1_fc_volume_source.py index e17792cd55..5ecba4a217 100644 --- a/kubernetes/aio/client/models/v1_fc_volume_source.py +++ b/kubernetes/aio/client/models/v1_fc_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_field_selector_attributes.py b/kubernetes/aio/client/models/v1_field_selector_attributes.py index f694c689f2..e91e0ea28b 100644 --- a/kubernetes/aio/client/models/v1_field_selector_attributes.py +++ b/kubernetes/aio/client/models/v1_field_selector_attributes.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_field_selector_requirement.py b/kubernetes/aio/client/models/v1_field_selector_requirement.py index a102121403..ce7d4d6df0 100644 --- a/kubernetes/aio/client/models/v1_field_selector_requirement.py +++ b/kubernetes/aio/client/models/v1_field_selector_requirement.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_file_key_selector.py b/kubernetes/aio/client/models/v1_file_key_selector.py index f0ca1254e9..617b44aa36 100644 --- a/kubernetes/aio/client/models/v1_file_key_selector.py +++ b/kubernetes/aio/client/models/v1_file_key_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_flex_persistent_volume_source.py b/kubernetes/aio/client/models/v1_flex_persistent_volume_source.py index 5c67ddd4c9..4aaf21fe87 100644 --- a/kubernetes/aio/client/models/v1_flex_persistent_volume_source.py +++ b/kubernetes/aio/client/models/v1_flex_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_flex_volume_source.py b/kubernetes/aio/client/models/v1_flex_volume_source.py index 55a324e107..d22a6dfa12 100644 --- a/kubernetes/aio/client/models/v1_flex_volume_source.py +++ b/kubernetes/aio/client/models/v1_flex_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_flocker_volume_source.py b/kubernetes/aio/client/models/v1_flocker_volume_source.py index 070e714090..582e7debdb 100644 --- a/kubernetes/aio/client/models/v1_flocker_volume_source.py +++ b/kubernetes/aio/client/models/v1_flocker_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_flow_distinguisher_method.py b/kubernetes/aio/client/models/v1_flow_distinguisher_method.py index b937caaaf0..1a7b0efd3f 100644 --- a/kubernetes/aio/client/models/v1_flow_distinguisher_method.py +++ b/kubernetes/aio/client/models/v1_flow_distinguisher_method.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_flow_schema.py b/kubernetes/aio/client/models/v1_flow_schema.py index 6e13c50fec..9cb8f12f25 100644 --- a/kubernetes/aio/client/models/v1_flow_schema.py +++ b/kubernetes/aio/client/models/v1_flow_schema.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,7 +109,7 @@ class V1FlowSchema(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: Optional[V1FlowSchemaSpec] = None + spec: V1FlowSchemaSpec status: Optional[V1FlowSchemaStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", diff --git a/kubernetes/aio/client/models/v1_flow_schema_condition.py b/kubernetes/aio/client/models/v1_flow_schema_condition.py index bb85beee96..3792f41e95 100644 --- a/kubernetes/aio/client/models/v1_flow_schema_condition.py +++ b/kubernetes/aio/client/models/v1_flow_schema_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -107,8 +107,8 @@ class V1FlowSchemaCondition(BaseModel): last_transition_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastTransitionTime", "last_transition_time"), serialization_alias="lastTransitionTime", description="`lastTransitionTime` is the last time the condition transitioned from one status to another.") message: Optional[StrictStr] = Field(default=None, description="`message` is a human-readable message indicating details about last transition.") reason: Optional[StrictStr] = Field(default=None, description="`reason` is a unique, one-word, CamelCase reason for the condition's last transition.") - status: Optional[StrictStr] = Field(default=None, description="`status` is the status of the condition. Can be True, False, Unknown. Required.") - type: Optional[StrictStr] = Field(default=None, description="`type` is the type of the condition. Required.") + status: Optional[StrictStr] = Field(default=None, description="`status` is the status of the condition. Should be specified and set to one of True, False, Unknown.") + type: StrictStr = Field(description="`type` is the type of the condition. Required.") openapi_types: ClassVar[Dict[str, str]] = { "last_transition_time": "datetime", "message": "str", diff --git a/kubernetes/aio/client/models/v1_flow_schema_list.py b/kubernetes/aio/client/models/v1_flow_schema_list.py index 8dd13904b8..0055cd65d1 100644 --- a/kubernetes/aio/client/models/v1_flow_schema_list.py +++ b/kubernetes/aio/client/models/v1_flow_schema_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_flow_schema_spec.py b/kubernetes/aio/client/models/v1_flow_schema_spec.py index f4bd8da151..a1bb11d3fc 100644 --- a/kubernetes/aio/client/models/v1_flow_schema_spec.py +++ b/kubernetes/aio/client/models/v1_flow_schema_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_flow_schema_status.py b/kubernetes/aio/client/models/v1_flow_schema_status.py index f667ef815f..24fbb1f954 100644 --- a/kubernetes/aio/client/models/v1_flow_schema_status.py +++ b/kubernetes/aio/client/models/v1_flow_schema_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_for_node.py b/kubernetes/aio/client/models/v1_for_node.py index ff18262916..90abc18c94 100644 --- a/kubernetes/aio/client/models/v1_for_node.py +++ b/kubernetes/aio/client/models/v1_for_node.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_for_zone.py b/kubernetes/aio/client/models/v1_for_zone.py index 3792c580d2..642f5d708c 100644 --- a/kubernetes/aio/client/models/v1_for_zone.py +++ b/kubernetes/aio/client/models/v1_for_zone.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_gce_persistent_disk_volume_source.py b/kubernetes/aio/client/models/v1_gce_persistent_disk_volume_source.py index 5c6114a37f..797cb4518b 100644 --- a/kubernetes/aio/client/models/v1_gce_persistent_disk_volume_source.py +++ b/kubernetes/aio/client/models/v1_gce_persistent_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_git_repo_volume_source.py b/kubernetes/aio/client/models/v1_git_repo_volume_source.py index 656df78546..119e4a3e87 100644 --- a/kubernetes/aio/client/models/v1_git_repo_volume_source.py +++ b/kubernetes/aio/client/models/v1_git_repo_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_glusterfs_persistent_volume_source.py b/kubernetes/aio/client/models/v1_glusterfs_persistent_volume_source.py index 25cd269688..97b9ab1bc5 100644 --- a/kubernetes/aio/client/models/v1_glusterfs_persistent_volume_source.py +++ b/kubernetes/aio/client/models/v1_glusterfs_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_glusterfs_volume_source.py b/kubernetes/aio/client/models/v1_glusterfs_volume_source.py index 5dd71ef9c4..e312638804 100644 --- a/kubernetes/aio/client/models/v1_glusterfs_volume_source.py +++ b/kubernetes/aio/client/models/v1_glusterfs_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_group_resource.py b/kubernetes/aio/client/models/v1_group_resource.py index 9379dfd13a..05acb363f2 100644 --- a/kubernetes/aio/client/models/v1_group_resource.py +++ b/kubernetes/aio/client/models/v1_group_resource.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_group_subject.py b/kubernetes/aio/client/models/v1_group_subject.py index f150f9626b..c923962366 100644 --- a/kubernetes/aio/client/models/v1_group_subject.py +++ b/kubernetes/aio/client/models/v1_group_subject.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_group_version_for_discovery.py b/kubernetes/aio/client/models/v1_group_version_for_discovery.py index 9e6526307e..e1b1e0a8f9 100644 --- a/kubernetes/aio/client/models/v1_group_version_for_discovery.py +++ b/kubernetes/aio/client/models/v1_group_version_for_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_group_version_kind.py b/kubernetes/aio/client/models/v1_group_version_kind.py index cdddb7070b..e2b2bc337e 100644 --- a/kubernetes/aio/client/models/v1_group_version_kind.py +++ b/kubernetes/aio/client/models/v1_group_version_kind.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_grpc_action.py b/kubernetes/aio/client/models/v1_grpc_action.py index a5607b99ae..2dd0bbb200 100644 --- a/kubernetes/aio/client/models/v1_grpc_action.py +++ b/kubernetes/aio/client/models/v1_grpc_action.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -102,18 +102,21 @@ class V1GRPCAction(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 + mode: Optional[StrictStr] = Field(default=None, description="mode specifies the connection mode for the gRPC health probe. Set to \"TLS\" to use TLS without certificate verification. Set to \"Plaintext\" to use a plaintext (insecure) connection explicitly. If not specified, the probe uses a plaintext (insecure) connection.") port: StrictInt = Field(description="Port number of the gRPC service. Number must be in the range 1 to 65535.") service: Optional[StrictStr] = Field(default=None, description="Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.") openapi_types: ClassVar[Dict[str, str]] = { + "mode": "str", "port": "int", "service": "str" } attribute_map: ClassVar[Dict[str, str]] = { + "mode": "mode", "port": "port", "service": "service" } - __properties: ClassVar[List[str]] = ["port", "service"] + __properties: ClassVar[List[str]] = ["mode", "port", "service"] model_config = ConfigDict( validate_by_name=True, @@ -162,6 +165,7 @@ def from_json(cls, json_str: str) -> Optional[Self]: def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { + ("mode" if serialize else "mode"): _to_legacy_value(getattr(self, "mode", None), serialize), ("port" if serialize else "port"): _to_legacy_value(getattr(self, "port", None), serialize), ("service" if serialize else "service"): _to_legacy_value(getattr(self, "service", None), serialize), } @@ -208,6 +212,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "mode": obj.get("mode"), "port": obj.get("port"), "service": obj.get("service") }) diff --git a/kubernetes/aio/client/models/v1_horizontal_pod_autoscaler.py b/kubernetes/aio/client/models/v1_horizontal_pod_autoscaler.py index caa399d4b7..1863b4bc69 100644 --- a/kubernetes/aio/client/models/v1_horizontal_pod_autoscaler.py +++ b/kubernetes/aio/client/models/v1_horizontal_pod_autoscaler.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_horizontal_pod_autoscaler_list.py b/kubernetes/aio/client/models/v1_horizontal_pod_autoscaler_list.py index 72a7ffd6ac..d767cfd275 100644 --- a/kubernetes/aio/client/models/v1_horizontal_pod_autoscaler_list.py +++ b/kubernetes/aio/client/models/v1_horizontal_pod_autoscaler_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_horizontal_pod_autoscaler_spec.py b/kubernetes/aio/client/models/v1_horizontal_pod_autoscaler_spec.py index f58ff28d8f..b03bc2b2e2 100644 --- a/kubernetes/aio/client/models/v1_horizontal_pod_autoscaler_spec.py +++ b/kubernetes/aio/client/models/v1_horizontal_pod_autoscaler_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_horizontal_pod_autoscaler_status.py b/kubernetes/aio/client/models/v1_horizontal_pod_autoscaler_status.py index 2c08b9e700..ffd3b66ff7 100644 --- a/kubernetes/aio/client/models/v1_horizontal_pod_autoscaler_status.py +++ b/kubernetes/aio/client/models/v1_horizontal_pod_autoscaler_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_host_alias.py b/kubernetes/aio/client/models/v1_host_alias.py index 0827386566..362ee5bb7b 100644 --- a/kubernetes/aio/client/models/v1_host_alias.py +++ b/kubernetes/aio/client/models/v1_host_alias.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_host_ip.py b/kubernetes/aio/client/models/v1_host_ip.py index c50cf9cd82..0471339e19 100644 --- a/kubernetes/aio/client/models/v1_host_ip.py +++ b/kubernetes/aio/client/models/v1_host_ip.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_host_path_volume_source.py b/kubernetes/aio/client/models/v1_host_path_volume_source.py index 559442809d..6eb3682148 100644 --- a/kubernetes/aio/client/models/v1_host_path_volume_source.py +++ b/kubernetes/aio/client/models/v1_host_path_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_http_get_action.py b/kubernetes/aio/client/models/v1_http_get_action.py index 904993d4cf..0ce49939bf 100644 --- a/kubernetes/aio/client/models/v1_http_get_action.py +++ b/kubernetes/aio/client/models/v1_http_get_action.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,12 +108,14 @@ class V1HTTPGetAction(BaseModel): http_headers: Optional[List[V1HTTPHeader]] = Field(default=None, validation_alias=AliasChoices("httpHeaders", "http_headers"), serialization_alias="httpHeaders", description="Custom headers to set in the request. HTTP allows repeated headers.") path: Optional[StrictStr] = Field(default=None, description="Path to access on the HTTP server.") port: StrictInt | StrictStr = Field(description="Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.") + protocol: Optional[StrictStr] = Field(default=None, description="Protocol selects the wire protocol for the probe connection. Nil defaults to HTTP/1.1.") scheme: Optional[StrictStr] = Field(default=None, description="Scheme to use for connecting to the host. Defaults to HTTP.") openapi_types: ClassVar[Dict[str, str]] = { "host": "str", "http_headers": "List[V1HTTPHeader]", "path": "str", "port": "object", + "protocol": "str", "scheme": "str" } @@ -122,9 +124,10 @@ class V1HTTPGetAction(BaseModel): "http_headers": "httpHeaders", "path": "path", "port": "port", + "protocol": "protocol", "scheme": "scheme" } - __properties: ClassVar[List[str]] = ["host", "httpHeaders", "path", "port", "scheme"] + __properties: ClassVar[List[str]] = ["host", "httpHeaders", "path", "port", "protocol", "scheme"] @classmethod def __preprocess_input_names( @@ -191,6 +194,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("httpHeaders" if serialize else "http_headers"): _to_legacy_value(getattr(self, "http_headers", None), serialize), ("path" if serialize else "path"): _to_legacy_value(getattr(self, "path", None), serialize), ("port" if serialize else "port"): _to_legacy_value(getattr(self, "port", None), serialize), + ("protocol" if serialize else "protocol"): _to_legacy_value(getattr(self, "protocol", None), serialize), ("scheme" if serialize else "scheme"): _to_legacy_value(getattr(self, "scheme", None), serialize), } @@ -254,6 +258,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "httpHeaders": [V1HTTPHeader.from_dict(_item) for _item in obj["httpHeaders"]] if obj.get("httpHeaders") is not None else None, "path": obj.get("path"), "port": obj.get("port"), + "protocol": obj.get("protocol"), "scheme": obj.get("scheme") }) return _obj diff --git a/kubernetes/aio/client/models/v1_http_header.py b/kubernetes/aio/client/models/v1_http_header.py index c7bc8d5f5c..5e0bf37dfa 100644 --- a/kubernetes/aio/client/models/v1_http_header.py +++ b/kubernetes/aio/client/models/v1_http_header.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_http_ingress_path.py b/kubernetes/aio/client/models/v1_http_ingress_path.py index 3b95dbaedb..23c7915eb9 100644 --- a/kubernetes/aio/client/models/v1_http_ingress_path.py +++ b/kubernetes/aio/client/models/v1_http_ingress_path.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_http_ingress_rule_value.py b/kubernetes/aio/client/models/v1_http_ingress_rule_value.py index b0423d234b..d2eaccebbe 100644 --- a/kubernetes/aio/client/models/v1_http_ingress_rule_value.py +++ b/kubernetes/aio/client/models/v1_http_ingress_rule_value.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_image_volume_source.py b/kubernetes/aio/client/models/v1_image_volume_source.py index 8527e2c322..870653ecd3 100644 --- a/kubernetes/aio/client/models/v1_image_volume_source.py +++ b/kubernetes/aio/client/models/v1_image_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_image_volume_status.py b/kubernetes/aio/client/models/v1_image_volume_status.py index 0403839f02..7dcf748450 100644 --- a/kubernetes/aio/client/models/v1_image_volume_status.py +++ b/kubernetes/aio/client/models/v1_image_volume_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ingress.py b/kubernetes/aio/client/models/v1_ingress.py index 0fa79b4fa9..93f99b33a9 100644 --- a/kubernetes/aio/client/models/v1_ingress.py +++ b/kubernetes/aio/client/models/v1_ingress.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ingress_backend.py b/kubernetes/aio/client/models/v1_ingress_backend.py index 4def8a637a..0ffb98ae4d 100644 --- a/kubernetes/aio/client/models/v1_ingress_backend.py +++ b/kubernetes/aio/client/models/v1_ingress_backend.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ingress_class.py b/kubernetes/aio/client/models/v1_ingress_class.py index 3fad994db0..94f36d7172 100644 --- a/kubernetes/aio/client/models/v1_ingress_class.py +++ b/kubernetes/aio/client/models/v1_ingress_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ingress_class_list.py b/kubernetes/aio/client/models/v1_ingress_class_list.py index c4c38d171d..5986d6e6c2 100644 --- a/kubernetes/aio/client/models/v1_ingress_class_list.py +++ b/kubernetes/aio/client/models/v1_ingress_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ingress_class_parameters_reference.py b/kubernetes/aio/client/models/v1_ingress_class_parameters_reference.py index 2f0031c3ec..0270a70f7e 100644 --- a/kubernetes/aio/client/models/v1_ingress_class_parameters_reference.py +++ b/kubernetes/aio/client/models/v1_ingress_class_parameters_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ingress_class_spec.py b/kubernetes/aio/client/models/v1_ingress_class_spec.py index bf705de936..a1a95098c1 100644 --- a/kubernetes/aio/client/models/v1_ingress_class_spec.py +++ b/kubernetes/aio/client/models/v1_ingress_class_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ingress_list.py b/kubernetes/aio/client/models/v1_ingress_list.py index 7f5edf7cff..8060902d90 100644 --- a/kubernetes/aio/client/models/v1_ingress_list.py +++ b/kubernetes/aio/client/models/v1_ingress_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ingress_load_balancer_ingress.py b/kubernetes/aio/client/models/v1_ingress_load_balancer_ingress.py index c4149774ea..7935e1a189 100644 --- a/kubernetes/aio/client/models/v1_ingress_load_balancer_ingress.py +++ b/kubernetes/aio/client/models/v1_ingress_load_balancer_ingress.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ingress_load_balancer_status.py b/kubernetes/aio/client/models/v1_ingress_load_balancer_status.py index a648eb6af7..3361e4df39 100644 --- a/kubernetes/aio/client/models/v1_ingress_load_balancer_status.py +++ b/kubernetes/aio/client/models/v1_ingress_load_balancer_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ingress_port_status.py b/kubernetes/aio/client/models/v1_ingress_port_status.py index 152f93a198..141179d147 100644 --- a/kubernetes/aio/client/models/v1_ingress_port_status.py +++ b/kubernetes/aio/client/models/v1_ingress_port_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ingress_rule.py b/kubernetes/aio/client/models/v1_ingress_rule.py index ab5e59fe92..0efd52df45 100644 --- a/kubernetes/aio/client/models/v1_ingress_rule.py +++ b/kubernetes/aio/client/models/v1_ingress_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ingress_service_backend.py b/kubernetes/aio/client/models/v1_ingress_service_backend.py index 9d1ce9a64d..4b6e43eb35 100644 --- a/kubernetes/aio/client/models/v1_ingress_service_backend.py +++ b/kubernetes/aio/client/models/v1_ingress_service_backend.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ingress_spec.py b/kubernetes/aio/client/models/v1_ingress_spec.py index 4f417ef3bb..2fc93ce0d6 100644 --- a/kubernetes/aio/client/models/v1_ingress_spec.py +++ b/kubernetes/aio/client/models/v1_ingress_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ingress_status.py b/kubernetes/aio/client/models/v1_ingress_status.py index ca151ad6e4..af1aed2e75 100644 --- a/kubernetes/aio/client/models/v1_ingress_status.py +++ b/kubernetes/aio/client/models/v1_ingress_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ingress_tls.py b/kubernetes/aio/client/models/v1_ingress_tls.py index afe328b739..7282cdee97 100644 --- a/kubernetes/aio/client/models/v1_ingress_tls.py +++ b/kubernetes/aio/client/models/v1_ingress_tls.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ip_address.py b/kubernetes/aio/client/models/v1_ip_address.py index 4c2a13e14d..f1bc7e9b0d 100644 --- a/kubernetes/aio/client/models/v1_ip_address.py +++ b/kubernetes/aio/client/models/v1_ip_address.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ip_address_list.py b/kubernetes/aio/client/models/v1_ip_address_list.py index 3d0995f365..8e70ce1729 100644 --- a/kubernetes/aio/client/models/v1_ip_address_list.py +++ b/kubernetes/aio/client/models/v1_ip_address_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ip_address_spec.py b/kubernetes/aio/client/models/v1_ip_address_spec.py index da0da2584d..0e3579a0a9 100644 --- a/kubernetes/aio/client/models/v1_ip_address_spec.py +++ b/kubernetes/aio/client/models/v1_ip_address_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_ip_block.py b/kubernetes/aio/client/models/v1_ip_block.py index 990a6dda55..c203fda4d6 100644 --- a/kubernetes/aio/client/models/v1_ip_block.py +++ b/kubernetes/aio/client/models/v1_ip_block.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_iscsi_persistent_volume_source.py b/kubernetes/aio/client/models/v1_iscsi_persistent_volume_source.py index 2782111d06..82ebc28f3d 100644 --- a/kubernetes/aio/client/models/v1_iscsi_persistent_volume_source.py +++ b/kubernetes/aio/client/models/v1_iscsi_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_iscsi_volume_source.py b/kubernetes/aio/client/models/v1_iscsi_volume_source.py index 6616d811a0..e9695c2e72 100644 --- a/kubernetes/aio/client/models/v1_iscsi_volume_source.py +++ b/kubernetes/aio/client/models/v1_iscsi_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_job.py b/kubernetes/aio/client/models/v1_job.py index 9693a84047..5f62f28e28 100644 --- a/kubernetes/aio/client/models/v1_job.py +++ b/kubernetes/aio/client/models/v1_job.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_job_condition.py b/kubernetes/aio/client/models/v1_job_condition.py index e1839d5073..ed8300c314 100644 --- a/kubernetes/aio/client/models/v1_job_condition.py +++ b/kubernetes/aio/client/models/v1_job_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_job_list.py b/kubernetes/aio/client/models/v1_job_list.py index 7e8fa241f5..95e5e4c354 100644 --- a/kubernetes/aio/client/models/v1_job_list.py +++ b/kubernetes/aio/client/models/v1_job_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_job_scheduling_configuration.py b/kubernetes/aio/client/models/v1_job_scheduling_configuration.py new file mode 100644 index 0000000000..48910f4a2a --- /dev/null +++ b/kubernetes/aio/client/models/v1_job_scheduling_configuration.py @@ -0,0 +1,275 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1alpha3_workload_pod_group_disruption_mode import V1alpha3WorkloadPodGroupDisruptionMode +from kubernetes.aio.client.models.v1alpha3_workload_pod_group_resource_claim import V1alpha3WorkloadPodGroupResourceClaim +from kubernetes.aio.client.models.v1alpha3_workload_pod_group_scheduling_constraints import V1alpha3WorkloadPodGroupSchedulingConstraints +from kubernetes.aio.client.models.v1alpha3_workload_pod_group_scheduling_policy import V1alpha3WorkloadPodGroupSchedulingPolicy +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1JobSchedulingConfiguration(BaseModel): + """ + JobSchedulingConfiguration composes the reusable workload-aware scheduling building blocks. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + disruption_mode: Optional[V1alpha3WorkloadPodGroupDisruptionMode] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="disruptionMode") + resource_claims: Optional[List[V1alpha3WorkloadPodGroupResourceClaim]] = Field(default=None, validation_alias=AliasChoices("resourceClaims", "resource_claims"), serialization_alias="resourceClaims", description="ResourceClaims defines which ResourceClaims may be shared among Pods in the Job. 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. At most 4 claims may be set, matching the limit on the resulting PodGroup. This list is immutable after creation: entries may neither be added, removed, nor modified.") + scheduling_constraints: Optional[V1alpha3WorkloadPodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") + scheduling_policy: Optional[V1alpha3WorkloadPodGroupSchedulingPolicy] = Field(default=None, validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") + openapi_types: ClassVar[Dict[str, str]] = { + "disruption_mode": "V1alpha3WorkloadPodGroupDisruptionMode", + "resource_claims": "List[V1alpha3WorkloadPodGroupResourceClaim]", + "scheduling_constraints": "V1alpha3WorkloadPodGroupSchedulingConstraints", + "scheduling_policy": "V1alpha3WorkloadPodGroupSchedulingPolicy" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "disruption_mode": "disruptionMode", + "resource_claims": "resourceClaims", + "scheduling_constraints": "schedulingConstraints", + "scheduling_policy": "schedulingPolicy" + } + __properties: ClassVar[List[str]] = ["disruptionMode", "resourceClaims", "schedulingConstraints", "schedulingPolicy"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "disruptionMode" not in obj and "disruption_mode" in obj: + obj["disruptionMode"] = obj["disruption_mode"] + obj.pop("disruption_mode", None) + if "resourceClaims" not in obj and "resource_claims" in obj: + obj["resourceClaims"] = obj["resource_claims"] + obj.pop("resource_claims", None) + if "schedulingConstraints" not in obj and "scheduling_constraints" in obj: + obj["schedulingConstraints"] = obj["scheduling_constraints"] + obj.pop("scheduling_constraints", None) + if "schedulingPolicy" not in obj and "scheduling_policy" in obj: + obj["schedulingPolicy"] = obj["scheduling_policy"] + obj.pop("scheduling_policy", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1JobSchedulingConfiguration): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1JobSchedulingConfiguration): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1JobSchedulingConfiguration from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("disruptionMode" if serialize else "disruption_mode"): _to_legacy_value(getattr(self, "disruption_mode", None), serialize), + ("resourceClaims" if serialize else "resource_claims"): _to_legacy_value(getattr(self, "resource_claims", None), serialize), + ("schedulingConstraints" if serialize else "scheduling_constraints"): _to_legacy_value(getattr(self, "scheduling_constraints", None), serialize), + ("schedulingPolicy" if serialize else "scheduling_policy"): _to_legacy_value(getattr(self, "scheduling_policy", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of disruption_mode + if self.disruption_mode: + _dict['disruptionMode'] = _to_openapi_value(self.disruption_mode) + # override the default output from pydantic by calling `to_dict()` of each item in resource_claims (list) + _items = [] + if self.resource_claims: + for _item_resource_claims in self.resource_claims: + _items.append(_to_openapi_value(_item_resource_claims) if _item_resource_claims is not None else None) + _dict['resourceClaims'] = _items + # override the default output from pydantic by calling `to_dict()` of scheduling_constraints + if self.scheduling_constraints: + _dict['schedulingConstraints'] = _to_openapi_value(self.scheduling_constraints) + # override the default output from pydantic by calling `to_dict()` of scheduling_policy + if self.scheduling_policy: + _dict['schedulingPolicy'] = _to_openapi_value(self.scheduling_policy) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1JobSchedulingConfiguration from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "disruptionMode": V1alpha3WorkloadPodGroupDisruptionMode.from_dict(obj["disruptionMode"]) if obj.get("disruptionMode") is not None else None, + "resourceClaims": [V1alpha3WorkloadPodGroupResourceClaim.from_dict(_item) for _item in obj["resourceClaims"]] if obj.get("resourceClaims") is not None else None, + "schedulingConstraints": V1alpha3WorkloadPodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, + "schedulingPolicy": V1alpha3WorkloadPodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_job_spec.py b/kubernetes/aio/client/models/v1_job_spec.py index 97bb6e29e3..ce007927a8 100644 --- a/kubernetes/aio/client/models/v1_job_spec.py +++ b/kubernetes/aio/client/models/v1_job_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,6 +20,7 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_job_scheduling_configuration import V1JobSchedulingConfiguration from kubernetes.aio.client.models.v1_label_selector import V1LabelSelector from kubernetes.aio.client.models.v1_pod_failure_policy import V1PodFailurePolicy from kubernetes.aio.client.models.v1_pod_template_spec import V1PodTemplateSpec @@ -118,6 +119,7 @@ class V1JobSpec(BaseModel): parallelism: Optional[StrictInt] = Field(default=None, description="Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/") pod_failure_policy: Optional[V1PodFailurePolicy] = Field(default=None, validation_alias=AliasChoices("podFailurePolicy", "pod_failure_policy"), serialization_alias="podFailurePolicy") pod_replacement_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("podReplacementPolicy", "pod_replacement_policy"), serialization_alias="podReplacementPolicy", description="podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed. - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use.") + scheduling: Optional[V1JobSchedulingConfiguration] = None selector: Optional[V1LabelSelector] = None success_policy: Optional[V1SuccessPolicy] = Field(default=None, validation_alias=AliasChoices("successPolicy", "success_policy"), serialization_alias="successPolicy") suspend: Optional[StrictBool] = Field(default=None, description="suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.") @@ -135,6 +137,7 @@ class V1JobSpec(BaseModel): "parallelism": "int", "pod_failure_policy": "V1PodFailurePolicy", "pod_replacement_policy": "str", + "scheduling": "V1JobSchedulingConfiguration", "selector": "V1LabelSelector", "success_policy": "V1SuccessPolicy", "suspend": "bool", @@ -154,13 +157,14 @@ class V1JobSpec(BaseModel): "parallelism": "parallelism", "pod_failure_policy": "podFailurePolicy", "pod_replacement_policy": "podReplacementPolicy", + "scheduling": "scheduling", "selector": "selector", "success_policy": "successPolicy", "suspend": "suspend", "template": "template", "ttl_seconds_after_finished": "ttlSecondsAfterFinished" } - __properties: ClassVar[List[str]] = ["activeDeadlineSeconds", "backoffLimit", "backoffLimitPerIndex", "completionMode", "completions", "managedBy", "manualSelector", "maxFailedIndexes", "parallelism", "podFailurePolicy", "podReplacementPolicy", "selector", "successPolicy", "suspend", "template", "ttlSecondsAfterFinished"] + __properties: ClassVar[List[str]] = ["activeDeadlineSeconds", "backoffLimit", "backoffLimitPerIndex", "completionMode", "completions", "managedBy", "manualSelector", "maxFailedIndexes", "parallelism", "podFailurePolicy", "podReplacementPolicy", "scheduling", "selector", "successPolicy", "suspend", "template", "ttlSecondsAfterFinished"] @classmethod def __preprocess_input_names( @@ -264,6 +268,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("parallelism" if serialize else "parallelism"): _to_legacy_value(getattr(self, "parallelism", None), serialize), ("podFailurePolicy" if serialize else "pod_failure_policy"): _to_legacy_value(getattr(self, "pod_failure_policy", None), serialize), ("podReplacementPolicy" if serialize else "pod_replacement_policy"): _to_legacy_value(getattr(self, "pod_replacement_policy", None), serialize), + ("scheduling" if serialize else "scheduling"): _to_legacy_value(getattr(self, "scheduling", None), serialize), ("selector" if serialize else "selector"): _to_legacy_value(getattr(self, "selector", None), serialize), ("successPolicy" if serialize else "success_policy"): _to_legacy_value(getattr(self, "success_policy", None), serialize), ("suspend" if serialize else "suspend"): _to_legacy_value(getattr(self, "suspend", None), serialize), @@ -292,6 +297,9 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of pod_failure_policy if self.pod_failure_policy: _dict['podFailurePolicy'] = _to_openapi_value(self.pod_failure_policy) + # override the default output from pydantic by calling `to_dict()` of scheduling + if self.scheduling: + _dict['scheduling'] = _to_openapi_value(self.scheduling) # override the default output from pydantic by calling `to_dict()` of selector if self.selector: _dict['selector'] = _to_openapi_value(self.selector) @@ -344,6 +352,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "parallelism": obj.get("parallelism"), "podFailurePolicy": V1PodFailurePolicy.from_dict(obj["podFailurePolicy"]) if obj.get("podFailurePolicy") is not None else None, "podReplacementPolicy": obj.get("podReplacementPolicy"), + "scheduling": V1JobSchedulingConfiguration.from_dict(obj["scheduling"]) if obj.get("scheduling") is not None else None, "selector": V1LabelSelector.from_dict(obj["selector"]) if obj.get("selector") is not None else None, "successPolicy": V1SuccessPolicy.from_dict(obj["successPolicy"]) if obj.get("successPolicy") is not None else None, "suspend": obj.get("suspend"), diff --git a/kubernetes/aio/client/models/v1_job_status.py b/kubernetes/aio/client/models/v1_job_status.py index 04c2ed7375..46022b5bbb 100644 --- a/kubernetes/aio/client/models/v1_job_status.py +++ b/kubernetes/aio/client/models/v1_job_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -115,7 +115,7 @@ class V1JobStatus(BaseModel): ready: Optional[StrictInt] = Field(default=None, description="The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).") start_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("startTime", "start_time"), serialization_alias="startTime", description="Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC. Once set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished.") succeeded: Optional[StrictInt] = Field(default=None, description="The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs.") - terminating: Optional[StrictInt] = Field(default=None, description="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).") + terminating: Optional[StrictInt] = Field(default=None, description="The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).") uncounted_terminated_pods: Optional[V1UncountedTerminatedPods] = Field(default=None, validation_alias=AliasChoices("uncountedTerminatedPods", "uncounted_terminated_pods"), serialization_alias="uncountedTerminatedPods") openapi_types: ClassVar[Dict[str, str]] = { "active": "int", diff --git a/kubernetes/aio/client/models/v1_job_template_spec.py b/kubernetes/aio/client/models/v1_job_template_spec.py index 918fbd4088..5619d7ec68 100644 --- a/kubernetes/aio/client/models/v1_job_template_spec.py +++ b/kubernetes/aio/client/models/v1_job_template_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_json_patch.py b/kubernetes/aio/client/models/v1_json_patch.py index a28aad5250..4926a82709 100644 --- a/kubernetes/aio/client/models/v1_json_patch.py +++ b/kubernetes/aio/client/models/v1_json_patch.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_json_schema_props.py b/kubernetes/aio/client/models/v1_json_schema_props.py index 07f493262b..018e37fc14 100644 --- a/kubernetes/aio/client/models/v1_json_schema_props.py +++ b/kubernetes/aio/client/models/v1_json_schema_props.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_key_to_path.py b/kubernetes/aio/client/models/v1_key_to_path.py index 4cf41745c2..7caa268847 100644 --- a/kubernetes/aio/client/models/v1_key_to_path.py +++ b/kubernetes/aio/client/models/v1_key_to_path.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,18 +105,21 @@ class V1KeyToPath(BaseModel): key: StrictStr = Field(description="key is the key to project.") mode: Optional[StrictInt] = Field(default=None, description="mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") path: StrictStr = Field(description="path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.") + user: Optional[StrictInt] = Field(default=None, description="user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") openapi_types: ClassVar[Dict[str, str]] = { "key": "str", "mode": "int", - "path": "str" + "path": "str", + "user": "int" } attribute_map: ClassVar[Dict[str, str]] = { "key": "key", "mode": "mode", - "path": "path" + "path": "path", + "user": "user" } - __properties: ClassVar[List[str]] = ["key", "mode", "path"] + __properties: ClassVar[List[str]] = ["key", "mode", "path", "user"] model_config = ConfigDict( validate_by_name=True, @@ -168,6 +171,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("key" if serialize else "key"): _to_legacy_value(getattr(self, "key", None), serialize), ("mode" if serialize else "mode"): _to_legacy_value(getattr(self, "mode", None), serialize), ("path" if serialize else "path"): _to_legacy_value(getattr(self, "path", None), serialize), + ("user" if serialize else "user"): _to_legacy_value(getattr(self, "user", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -214,6 +218,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "key": obj.get("key"), "mode": obj.get("mode"), - "path": obj.get("path") + "path": obj.get("path"), + "user": obj.get("user") }) return _obj diff --git a/kubernetes/aio/client/models/v1_label_selector.py b/kubernetes/aio/client/models/v1_label_selector.py index a8761649b6..4093f3c227 100644 --- a/kubernetes/aio/client/models/v1_label_selector.py +++ b/kubernetes/aio/client/models/v1_label_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_label_selector_attributes.py b/kubernetes/aio/client/models/v1_label_selector_attributes.py index 7e9039e617..32fc404aa9 100644 --- a/kubernetes/aio/client/models/v1_label_selector_attributes.py +++ b/kubernetes/aio/client/models/v1_label_selector_attributes.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_label_selector_requirement.py b/kubernetes/aio/client/models/v1_label_selector_requirement.py index 799df125e6..f34bc3b463 100644 --- a/kubernetes/aio/client/models/v1_label_selector_requirement.py +++ b/kubernetes/aio/client/models/v1_label_selector_requirement.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_lease.py b/kubernetes/aio/client/models/v1_lease.py index d83a8c8c3f..e4f0295d9e 100644 --- a/kubernetes/aio/client/models/v1_lease.py +++ b/kubernetes/aio/client/models/v1_lease.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_lease_list.py b/kubernetes/aio/client/models/v1_lease_list.py index 19f68c5cbc..a7e393f7ee 100644 --- a/kubernetes/aio/client/models/v1_lease_list.py +++ b/kubernetes/aio/client/models/v1_lease_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_lease_spec.py b/kubernetes/aio/client/models/v1_lease_spec.py index 5ef319c0df..4e23aafe4b 100644 --- a/kubernetes/aio/client/models/v1_lease_spec.py +++ b/kubernetes/aio/client/models/v1_lease_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,9 +108,9 @@ class V1LeaseSpec(BaseModel): holder_identity: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("holderIdentity", "holder_identity"), serialization_alias="holderIdentity", description="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.") lease_duration_seconds: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("leaseDurationSeconds", "lease_duration_seconds"), serialization_alias="leaseDurationSeconds", description="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.") lease_transitions: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("leaseTransitions", "lease_transitions"), serialization_alias="leaseTransitions", description="leaseTransitions is the number of transitions of a lease between holders.") - preferred_holder: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preferredHolder", "preferred_holder"), serialization_alias="preferredHolder", description="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.") + preferred_holder: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preferredHolder", "preferred_holder"), serialization_alias="preferredHolder", description="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.") renew_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("renewTime", "renew_time"), serialization_alias="renewTime", description="renewTime is a time when the current holder of a lease has last updated the lease.") - strategy: Optional[StrictStr] = Field(default=None, description="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.") + strategy: Optional[StrictStr] = Field(default=None, description="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.") openapi_types: ClassVar[Dict[str, str]] = { "acquire_time": "datetime", "holder_identity": "str", diff --git a/kubernetes/aio/client/models/v1_lifecycle.py b/kubernetes/aio/client/models/v1_lifecycle.py index 02d2d69ab9..358a7b0f4a 100644 --- a/kubernetes/aio/client/models/v1_lifecycle.py +++ b/kubernetes/aio/client/models/v1_lifecycle.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_lifecycle_handler.py b/kubernetes/aio/client/models/v1_lifecycle_handler.py index 1714dff213..76ee75368b 100644 --- a/kubernetes/aio/client/models/v1_lifecycle_handler.py +++ b/kubernetes/aio/client/models/v1_lifecycle_handler.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_limit_range.py b/kubernetes/aio/client/models/v1_limit_range.py index 8a22dcbe09..69a04b2b67 100644 --- a/kubernetes/aio/client/models/v1_limit_range.py +++ b/kubernetes/aio/client/models/v1_limit_range.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_limit_range_item.py b/kubernetes/aio/client/models/v1_limit_range_item.py index dd341fd6d9..05f3fe45bb 100644 --- a/kubernetes/aio/client/models/v1_limit_range_item.py +++ b/kubernetes/aio/client/models/v1_limit_range_item.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_limit_range_list.py b/kubernetes/aio/client/models/v1_limit_range_list.py index ab3b74a6bc..34e0d1f6bb 100644 --- a/kubernetes/aio/client/models/v1_limit_range_list.py +++ b/kubernetes/aio/client/models/v1_limit_range_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_limit_range_spec.py b/kubernetes/aio/client/models/v1_limit_range_spec.py index 3876f3c350..c9f8b42234 100644 --- a/kubernetes/aio/client/models/v1_limit_range_spec.py +++ b/kubernetes/aio/client/models/v1_limit_range_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_limit_response.py b/kubernetes/aio/client/models/v1_limit_response.py index 00a6c54bd3..288b163607 100644 --- a/kubernetes/aio/client/models/v1_limit_response.py +++ b/kubernetes/aio/client/models/v1_limit_response.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_limited_priority_level_configuration.py b/kubernetes/aio/client/models/v1_limited_priority_level_configuration.py index ede727df53..48645de6a7 100644 --- a/kubernetes/aio/client/models/v1_limited_priority_level_configuration.py +++ b/kubernetes/aio/client/models/v1_limited_priority_level_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -106,7 +106,7 @@ class V1LimitedPriorityLevelConfiguration(BaseModel): """ # noqa: E501 borrowing_limit_percent: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("borrowingLimitPercent", "borrowing_limit_percent"), serialization_alias="borrowingLimitPercent", description="`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.") lendable_percent: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("lendablePercent", "lendable_percent"), serialization_alias="lendablePercent", description="`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 )") - limit_response: Optional[V1LimitResponse] = Field(default=None, validation_alias=AliasChoices("limitResponse", "limit_response"), serialization_alias="limitResponse") + limit_response: V1LimitResponse = Field(validation_alias=AliasChoices("limitResponse", "limit_response"), serialization_alias="limitResponse") nominal_concurrency_shares: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("nominalConcurrencyShares", "nominal_concurrency_shares"), serialization_alias="nominalConcurrencyShares", description="`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)") openapi_types: ClassVar[Dict[str, str]] = { "borrowing_limit_percent": "int", diff --git a/kubernetes/aio/client/models/v1_linux_container_user.py b/kubernetes/aio/client/models/v1_linux_container_user.py index 5ce561ff00..e91e29517a 100644 --- a/kubernetes/aio/client/models/v1_linux_container_user.py +++ b/kubernetes/aio/client/models/v1_linux_container_user.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_list_meta.py b/kubernetes/aio/client/models/v1_list_meta.py index 1d9b8a4da0..0f434c728a 100644 --- a/kubernetes/aio/client/models/v1_list_meta.py +++ b/kubernetes/aio/client/models/v1_list_meta.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_load_balancer_ingress.py b/kubernetes/aio/client/models/v1_load_balancer_ingress.py index e753c5884b..1e2a823c7f 100644 --- a/kubernetes/aio/client/models/v1_load_balancer_ingress.py +++ b/kubernetes/aio/client/models/v1_load_balancer_ingress.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_load_balancer_status.py b/kubernetes/aio/client/models/v1_load_balancer_status.py index 2d66ca1924..1b1cb0780d 100644 --- a/kubernetes/aio/client/models/v1_load_balancer_status.py +++ b/kubernetes/aio/client/models/v1_load_balancer_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_local_object_reference.py b/kubernetes/aio/client/models/v1_local_object_reference.py index 65c23eceb5..3dae59c1c3 100644 --- a/kubernetes/aio/client/models/v1_local_object_reference.py +++ b/kubernetes/aio/client/models/v1_local_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_local_subject_access_review.py b/kubernetes/aio/client/models/v1_local_subject_access_review.py index 9898ec50a2..4735a511d0 100644 --- a/kubernetes/aio/client/models/v1_local_subject_access_review.py +++ b/kubernetes/aio/client/models/v1_local_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_local_volume_source.py b/kubernetes/aio/client/models/v1_local_volume_source.py index 508dbe65ca..a7b6eb7eca 100644 --- a/kubernetes/aio/client/models/v1_local_volume_source.py +++ b/kubernetes/aio/client/models/v1_local_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_managed_fields_entry.py b/kubernetes/aio/client/models/v1_managed_fields_entry.py index 3e26308e94..94ff5a8dfd 100644 --- a/kubernetes/aio/client/models/v1_managed_fields_entry.py +++ b/kubernetes/aio/client/models/v1_managed_fields_entry.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_match_condition.py b/kubernetes/aio/client/models/v1_match_condition.py index f2da4d956f..3b9494cfb0 100644 --- a/kubernetes/aio/client/models/v1_match_condition.py +++ b/kubernetes/aio/client/models/v1_match_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_match_resources.py b/kubernetes/aio/client/models/v1_match_resources.py index 13ed7df3ec..4c5e7bb8b0 100644 --- a/kubernetes/aio/client/models/v1_match_resources.py +++ b/kubernetes/aio/client/models/v1_match_resources.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_modify_volume_status.py b/kubernetes/aio/client/models/v1_modify_volume_status.py index ba282cd8b1..c2e6417c3d 100644 --- a/kubernetes/aio/client/models/v1_modify_volume_status.py +++ b/kubernetes/aio/client/models/v1_modify_volume_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_mutating_admission_policy.py b/kubernetes/aio/client/models/v1_mutating_admission_policy.py index 6708729a5d..8197031b11 100644 --- a/kubernetes/aio/client/models/v1_mutating_admission_policy.py +++ b/kubernetes/aio/client/models/v1_mutating_admission_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_mutating_admission_policy_binding.py b/kubernetes/aio/client/models/v1_mutating_admission_policy_binding.py index 5c9aacf913..b13f463a15 100644 --- a/kubernetes/aio/client/models/v1_mutating_admission_policy_binding.py +++ b/kubernetes/aio/client/models/v1_mutating_admission_policy_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_mutating_admission_policy_binding_list.py b/kubernetes/aio/client/models/v1_mutating_admission_policy_binding_list.py index f1d14d0beb..d764078803 100644 --- a/kubernetes/aio/client/models/v1_mutating_admission_policy_binding_list.py +++ b/kubernetes/aio/client/models/v1_mutating_admission_policy_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_mutating_admission_policy_binding_spec.py b/kubernetes/aio/client/models/v1_mutating_admission_policy_binding_spec.py index 0f401c60b4..e46d53ea57 100644 --- a/kubernetes/aio/client/models/v1_mutating_admission_policy_binding_spec.py +++ b/kubernetes/aio/client/models/v1_mutating_admission_policy_binding_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_mutating_admission_policy_list.py b/kubernetes/aio/client/models/v1_mutating_admission_policy_list.py index 333d0dd8cc..2756d944bd 100644 --- a/kubernetes/aio/client/models/v1_mutating_admission_policy_list.py +++ b/kubernetes/aio/client/models/v1_mutating_admission_policy_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_mutating_admission_policy_spec.py b/kubernetes/aio/client/models/v1_mutating_admission_policy_spec.py index ba41c721ad..90262630bb 100644 --- a/kubernetes/aio/client/models/v1_mutating_admission_policy_spec.py +++ b/kubernetes/aio/client/models/v1_mutating_admission_policy_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_mutating_webhook.py b/kubernetes/aio/client/models/v1_mutating_webhook.py index ff9bca2543..cea8e91ace 100644 --- a/kubernetes/aio/client/models/v1_mutating_webhook.py +++ b/kubernetes/aio/client/models/v1_mutating_webhook.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_mutating_webhook_configuration.py b/kubernetes/aio/client/models/v1_mutating_webhook_configuration.py index 61d11fcfe0..1d265c68f0 100644 --- a/kubernetes/aio/client/models/v1_mutating_webhook_configuration.py +++ b/kubernetes/aio/client/models/v1_mutating_webhook_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_mutating_webhook_configuration_list.py b/kubernetes/aio/client/models/v1_mutating_webhook_configuration_list.py index ab87190caa..4dcec71549 100644 --- a/kubernetes/aio/client/models/v1_mutating_webhook_configuration_list.py +++ b/kubernetes/aio/client/models/v1_mutating_webhook_configuration_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_mutation.py b/kubernetes/aio/client/models/v1_mutation.py index e588ad79f9..32dad47e98 100644 --- a/kubernetes/aio/client/models/v1_mutation.py +++ b/kubernetes/aio/client/models/v1_mutation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_named_rule_with_operations.py b/kubernetes/aio/client/models/v1_named_rule_with_operations.py index f89cc21c7c..961fbc5561 100644 --- a/kubernetes/aio/client/models/v1_named_rule_with_operations.py +++ b/kubernetes/aio/client/models/v1_named_rule_with_operations.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_namespace.py b/kubernetes/aio/client/models/v1_namespace.py index 23e46c3d08..1973f3949f 100644 --- a/kubernetes/aio/client/models/v1_namespace.py +++ b/kubernetes/aio/client/models/v1_namespace.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_namespace_condition.py b/kubernetes/aio/client/models/v1_namespace_condition.py index e74f3d455d..3e7e3910b6 100644 --- a/kubernetes/aio/client/models/v1_namespace_condition.py +++ b/kubernetes/aio/client/models/v1_namespace_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_namespace_list.py b/kubernetes/aio/client/models/v1_namespace_list.py index 057c2ef3d1..48f3537b09 100644 --- a/kubernetes/aio/client/models/v1_namespace_list.py +++ b/kubernetes/aio/client/models/v1_namespace_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_namespace_spec.py b/kubernetes/aio/client/models/v1_namespace_spec.py index 2f5fb099f4..40dbf609cd 100644 --- a/kubernetes/aio/client/models/v1_namespace_spec.py +++ b/kubernetes/aio/client/models/v1_namespace_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_namespace_status.py b/kubernetes/aio/client/models/v1_namespace_status.py index a257809179..befa308d1e 100644 --- a/kubernetes/aio/client/models/v1_namespace_status.py +++ b/kubernetes/aio/client/models/v1_namespace_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_network_device_data.py b/kubernetes/aio/client/models/v1_network_device_data.py index 61579eeff7..697b7c2c61 100644 --- a/kubernetes/aio/client/models/v1_network_device_data.py +++ b/kubernetes/aio/client/models/v1_network_device_data.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_network_policy.py b/kubernetes/aio/client/models/v1_network_policy.py index b115a58f2b..572f7d48d9 100644 --- a/kubernetes/aio/client/models/v1_network_policy.py +++ b/kubernetes/aio/client/models/v1_network_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_network_policy_egress_rule.py b/kubernetes/aio/client/models/v1_network_policy_egress_rule.py index 623d5430cf..6450249783 100644 --- a/kubernetes/aio/client/models/v1_network_policy_egress_rule.py +++ b/kubernetes/aio/client/models/v1_network_policy_egress_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_network_policy_ingress_rule.py b/kubernetes/aio/client/models/v1_network_policy_ingress_rule.py index 0b53e5da6d..4d3c7d40f1 100644 --- a/kubernetes/aio/client/models/v1_network_policy_ingress_rule.py +++ b/kubernetes/aio/client/models/v1_network_policy_ingress_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_network_policy_list.py b/kubernetes/aio/client/models/v1_network_policy_list.py index 68d35ec1ce..df7cee7072 100644 --- a/kubernetes/aio/client/models/v1_network_policy_list.py +++ b/kubernetes/aio/client/models/v1_network_policy_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_network_policy_peer.py b/kubernetes/aio/client/models/v1_network_policy_peer.py index 7982115dc4..c66f4c9733 100644 --- a/kubernetes/aio/client/models/v1_network_policy_peer.py +++ b/kubernetes/aio/client/models/v1_network_policy_peer.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_network_policy_port.py b/kubernetes/aio/client/models/v1_network_policy_port.py index 09b5850b55..3aba96368d 100644 --- a/kubernetes/aio/client/models/v1_network_policy_port.py +++ b/kubernetes/aio/client/models/v1_network_policy_port.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_network_policy_spec.py b/kubernetes/aio/client/models/v1_network_policy_spec.py index 0c34a20de6..62830937a9 100644 --- a/kubernetes/aio/client/models/v1_network_policy_spec.py +++ b/kubernetes/aio/client/models/v1_network_policy_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_nfs_volume_source.py b/kubernetes/aio/client/models/v1_nfs_volume_source.py index c231331df0..d788ac6150 100644 --- a/kubernetes/aio/client/models/v1_nfs_volume_source.py +++ b/kubernetes/aio/client/models/v1_nfs_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_node.py b/kubernetes/aio/client/models/v1_node.py index a246ffa7fd..b6bb9395b7 100644 --- a/kubernetes/aio/client/models/v1_node.py +++ b/kubernetes/aio/client/models/v1_node.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_node_address.py b/kubernetes/aio/client/models/v1_node_address.py index e917c96815..80ee22be5b 100644 --- a/kubernetes/aio/client/models/v1_node_address.py +++ b/kubernetes/aio/client/models/v1_node_address.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_node_affinity.py b/kubernetes/aio/client/models/v1_node_affinity.py index 930a832f24..685a49435b 100644 --- a/kubernetes/aio/client/models/v1_node_affinity.py +++ b/kubernetes/aio/client/models/v1_node_affinity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_node_allocatable_mapped_resources.py b/kubernetes/aio/client/models/v1_node_allocatable_mapped_resources.py new file mode 100644 index 0000000000..3fd8739210 --- /dev/null +++ b/kubernetes/aio/client/models/v1_node_allocatable_mapped_resources.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1NodeAllocatableMappedResources(BaseModel): + """ + NodeAllocatableMappedResources describes mapped node allocatable resource allocations. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + name: StrictStr = Field(description="Name is the name of the resource (e.g., cpu, memory).") + quantity: StrictStr = Field(description="Quantity is the total node allocatable resource capacity allocated for the claim. This claim's allocated devices is shared by all the containers referencing the claim. Kubelet adds this value to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.") + openapi_types: ClassVar[Dict[str, str]] = { + "name": "str", + "quantity": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "name": "name", + "quantity": "quantity" + } + __properties: ClassVar[List[str]] = ["name", "quantity"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeAllocatableMappedResources): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeAllocatableMappedResources): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1NodeAllocatableMappedResources from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("quantity" if serialize else "quantity"): _to_legacy_value(getattr(self, "quantity", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1NodeAllocatableMappedResources from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "quantity": obj.get("quantity") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_node_allocatable_resource_mapping.py b/kubernetes/aio/client/models/v1_node_allocatable_mapping.py similarity index 66% rename from kubernetes/aio/client/models/v1beta1_node_allocatable_resource_mapping.py rename to kubernetes/aio/client/models/v1_node_allocatable_mapping.py index e1563bcc07..ccb1f86ad3 100644 --- a/kubernetes/aio/client/models/v1beta1_node_allocatable_resource_mapping.py +++ b/kubernetes/aio/client/models/v1_node_allocatable_mapping.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -93,9 +93,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1beta1NodeAllocatableResourceMapping(BaseModel): +class V1NodeAllocatableMapping(BaseModel): """ - NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. + NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. Attributes: openapi_types (dict): The key is attribute name @@ -103,18 +103,21 @@ class V1beta1NodeAllocatableResourceMapping(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - allocation_multiplier: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("allocationMultiplier", "allocation_multiplier"), serialization_alias="allocationMultiplier", 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. 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.") - capacity_key: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("capacityKey", "capacity_key"), serialization_alias="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\".") + capacity_key: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("capacityKey", "capacity_key"), serialization_alias="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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.") + capacity_multiplier: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("capacityMultiplier", "capacity_multiplier"), serialization_alias="capacityMultiplier", description="CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16.") + device_multiplier: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("deviceMultiplier", "device_multiplier"), serialization_alias="deviceMultiplier", description="DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set.") openapi_types: ClassVar[Dict[str, str]] = { - "allocation_multiplier": "str", - "capacity_key": "str" + "capacity_key": "str", + "capacity_multiplier": "str", + "device_multiplier": "str" } attribute_map: ClassVar[Dict[str, str]] = { - "allocation_multiplier": "allocationMultiplier", - "capacity_key": "capacityKey" + "capacity_key": "capacityKey", + "capacity_multiplier": "capacityMultiplier", + "device_multiplier": "deviceMultiplier" } - __properties: ClassVar[List[str]] = ["allocationMultiplier", "capacityKey"] + __properties: ClassVar[List[str]] = ["capacityKey", "capacityMultiplier", "deviceMultiplier"] @classmethod def __preprocess_input_names( @@ -125,12 +128,15 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) - if "allocationMultiplier" not in obj and "allocation_multiplier" in obj: - obj["allocationMultiplier"] = obj["allocation_multiplier"] - obj.pop("allocation_multiplier", None) if "capacityKey" not in obj and "capacity_key" in obj: obj["capacityKey"] = obj["capacity_key"] obj.pop("capacity_key", None) + if "capacityMultiplier" not in obj and "capacity_multiplier" in obj: + obj["capacityMultiplier"] = obj["capacity_multiplier"] + obj.pop("capacity_multiplier", None) + if "deviceMultiplier" not in obj and "device_multiplier" in obj: + obj["deviceMultiplier"] = obj["device_multiplier"] + obj.pop("device_multiplier", None) return obj model_config = ConfigDict( @@ -152,14 +158,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1beta1NodeAllocatableResourceMapping): + if not isinstance(other, V1NodeAllocatableMapping): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1NodeAllocatableResourceMapping): + if not isinstance(other, V1NodeAllocatableMapping): return True return not (self == other) @@ -174,14 +180,15 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1NodeAllocatableResourceMapping from a JSON string""" + """Create an instance of V1NodeAllocatableMapping from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { - ("allocationMultiplier" if serialize else "allocation_multiplier"): _to_legacy_value(getattr(self, "allocation_multiplier", None), serialize), ("capacityKey" if serialize else "capacity_key"): _to_legacy_value(getattr(self, "capacity_key", None), serialize), + ("capacityMultiplier" if serialize else "capacity_multiplier"): _to_legacy_value(getattr(self, "capacity_multiplier", None), serialize), + ("deviceMultiplier" if serialize else "device_multiplier"): _to_legacy_value(getattr(self, "device_multiplier", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -218,7 +225,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1NodeAllocatableResourceMapping from a dict""" + """Create an instance of V1NodeAllocatableMapping from a dict""" if obj is None: return None @@ -234,7 +241,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ - "allocationMultiplier": obj.get("allocationMultiplier"), - "capacityKey": obj.get("capacityKey") + "capacityKey": obj.get("capacityKey"), + "capacityMultiplier": obj.get("capacityMultiplier"), + "deviceMultiplier": obj.get("deviceMultiplier") }) return _obj diff --git a/kubernetes/aio/client/models/v1_node_allocatable_overhead.py b/kubernetes/aio/client/models/v1_node_allocatable_overhead.py new file mode 100644 index 0000000000..cbb994195b --- /dev/null +++ b/kubernetes/aio/client/models/v1_node_allocatable_overhead.py @@ -0,0 +1,240 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1NodeAllocatableOverhead(BaseModel): + """ + NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + per_container: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("perContainer", "per_container"), serialization_alias="perContainer", description="PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once.") + per_pod: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("perPod", "per_pod"), serialization_alias="perPod", description="PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim.") + openapi_types: ClassVar[Dict[str, str]] = { + "per_container": "str", + "per_pod": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "per_container": "perContainer", + "per_pod": "perPod" + } + __properties: ClassVar[List[str]] = ["perContainer", "perPod"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "perContainer" not in obj and "per_container" in obj: + obj["perContainer"] = obj["per_container"] + obj.pop("per_container", None) + if "perPod" not in obj and "per_pod" in obj: + obj["perPod"] = obj["per_pod"] + obj.pop("per_pod", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeAllocatableOverhead): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeAllocatableOverhead): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1NodeAllocatableOverhead from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("perContainer" if serialize else "per_container"): _to_legacy_value(getattr(self, "per_container", None), serialize), + ("perPod" if serialize else "per_pod"): _to_legacy_value(getattr(self, "per_pod", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1NodeAllocatableOverhead from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "perContainer": obj.get("perContainer"), + "perPod": obj.get("perPod") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_node_allocatable_overhead_resources.py b/kubernetes/aio/client/models/v1_node_allocatable_overhead_resources.py new file mode 100644 index 0000000000..aba85fbdee --- /dev/null +++ b/kubernetes/aio/client/models/v1_node_allocatable_overhead_resources.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1NodeAllocatableOverheadResources(BaseModel): + """ + NodeAllocatableOverheadResources describes auxiliary overhead resource allocations. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + name: StrictStr = Field(description="Name is the name of the resource (e.g., cpu, memory).") + per_container: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("perContainer", "per_container"), serialization_alias="perContainer", description="PerContainer is the variable overhead quantity applied for each container referencing the claim. The container references are recorded in `nodeAllocatableResourceClaimStatuses.containers`. The total overhead quantity allocated for the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once. At least one of PerPod or PerContainer must be specified. Specifying neither is an invalid configuration.") + per_pod: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("perPod", "per_pod"), serialization_alias="perPod", description="PerPod is the flat overhead quantity allocated per pod. Adding to each container limit allows individual containers to utilize the overhead, while the parent pod-level cgroup limit caps the total usage at the pod boundary where the overhead is accounted for exactly once. At least one of PerPod or PerContainer must be specified. Specifying neither is an invalid configuration.") + openapi_types: ClassVar[Dict[str, str]] = { + "name": "str", + "per_container": "str", + "per_pod": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "name": "name", + "per_container": "perContainer", + "per_pod": "perPod" + } + __properties: ClassVar[List[str]] = ["name", "perContainer", "perPod"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "perContainer" not in obj and "per_container" in obj: + obj["perContainer"] = obj["per_container"] + obj.pop("per_container", None) + if "perPod" not in obj and "per_pod" in obj: + obj["perPod"] = obj["per_pod"] + obj.pop("per_pod", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeAllocatableOverheadResources): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeAllocatableOverheadResources): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1NodeAllocatableOverheadResources from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("perContainer" if serialize else "per_container"): _to_legacy_value(getattr(self, "per_container", None), serialize), + ("perPod" if serialize else "per_pod"): _to_legacy_value(getattr(self, "per_pod", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1NodeAllocatableOverheadResources from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "perContainer": obj.get("perContainer"), + "perPod": obj.get("perPod") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_node_allocatable_resource.py b/kubernetes/aio/client/models/v1_node_allocatable_resource.py new file mode 100644 index 0000000000..2442c8022c --- /dev/null +++ b/kubernetes/aio/client/models/v1_node_allocatable_resource.py @@ -0,0 +1,222 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.aio.client.models.v1_node_allocatable_mapping import V1NodeAllocatableMapping +from kubernetes.aio.client.models.v1_node_allocatable_overhead import V1NodeAllocatableOverhead +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1NodeAllocatableResource(BaseModel): + """ + NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + mapping: Optional[V1NodeAllocatableMapping] = None + overhead: Optional[V1NodeAllocatableOverhead] = None + openapi_types: ClassVar[Dict[str, str]] = { + "mapping": "V1NodeAllocatableMapping", + "overhead": "V1NodeAllocatableOverhead" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "mapping": "mapping", + "overhead": "overhead" + } + __properties: ClassVar[List[str]] = ["mapping", "overhead"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeAllocatableResource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeAllocatableResource): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1NodeAllocatableResource from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("mapping" if serialize else "mapping"): _to_legacy_value(getattr(self, "mapping", None), serialize), + ("overhead" if serialize else "overhead"): _to_legacy_value(getattr(self, "overhead", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of mapping + if self.mapping: + _dict['mapping'] = _to_openapi_value(self.mapping) + # override the default output from pydantic by calling `to_dict()` of overhead + if self.overhead: + _dict['overhead'] = _to_openapi_value(self.overhead) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1NodeAllocatableResource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "mapping": V1NodeAllocatableMapping.from_dict(obj["mapping"]) if obj.get("mapping") is not None else None, + "overhead": V1NodeAllocatableOverhead.from_dict(obj["overhead"]) if obj.get("overhead") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_node_allocatable_resource_claim_status.py b/kubernetes/aio/client/models/v1_node_allocatable_resource_claim_status.py index 343836fbbc..72a173f291 100644 --- a/kubernetes/aio/client/models/v1_node_allocatable_resource_claim_status.py +++ b/kubernetes/aio/client/models/v1_node_allocatable_resource_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,6 +20,8 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_node_allocatable_mapped_resources import V1NodeAllocatableMappedResources +from kubernetes.aio.client.models.v1_node_allocatable_overhead_resources import V1NodeAllocatableOverheadResources from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -104,20 +106,23 @@ class V1NodeAllocatableResourceClaimStatus(BaseModel): and the value is json key in definition. """ # noqa: E501 containers: Optional[List[StrictStr]] = Field(default=None, description="Containers lists the names of all containers in this pod that reference the claim.") + mapping: Optional[List[V1NodeAllocatableMappedResources]] = Field(default=None, description="Mapping contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].mapping` field. This is used by kubelet for pod level and container-level cgroup enforcement.") + overhead: Optional[List[V1NodeAllocatableOverheadResources]] = Field(default=None, description="Overhead contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].overhead` field. This is used by kubelet for pod level and container-level cgroup enforcement.") resource_claim_name: StrictStr = Field(validation_alias=AliasChoices("resourceClaimName", "resource_claim_name"), serialization_alias="resourceClaimName", description="ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.") - resources: Dict[str, StrictStr] = Field(description="Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.") openapi_types: ClassVar[Dict[str, str]] = { "containers": "List[str]", - "resource_claim_name": "str", - "resources": "Dict[str, str]" + "mapping": "List[V1NodeAllocatableMappedResources]", + "overhead": "List[V1NodeAllocatableOverheadResources]", + "resource_claim_name": "str" } attribute_map: ClassVar[Dict[str, str]] = { "containers": "containers", - "resource_claim_name": "resourceClaimName", - "resources": "resources" + "mapping": "mapping", + "overhead": "overhead", + "resource_claim_name": "resourceClaimName" } - __properties: ClassVar[List[str]] = ["containers", "resourceClaimName", "resources"] + __properties: ClassVar[List[str]] = ["containers", "mapping", "overhead", "resourceClaimName"] @classmethod def __preprocess_input_names( @@ -181,8 +186,9 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { ("containers" if serialize else "containers"): _to_legacy_value(getattr(self, "containers", None), serialize), + ("mapping" if serialize else "mapping"): _to_legacy_value(getattr(self, "mapping", None), serialize), + ("overhead" if serialize else "overhead"): _to_legacy_value(getattr(self, "overhead", None), serialize), ("resourceClaimName" if serialize else "resource_claim_name"): _to_legacy_value(getattr(self, "resource_claim_name", None), serialize), - ("resources" if serialize else "resources"): _to_legacy_value(getattr(self, "resources", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -203,6 +209,18 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in mapping (list) + _items = [] + if self.mapping: + for _item_mapping in self.mapping: + _items.append(_to_openapi_value(_item_mapping) if _item_mapping is not None else None) + _dict['mapping'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in overhead (list) + _items = [] + if self.overhead: + for _item_overhead in self.overhead: + _items.append(_to_openapi_value(_item_overhead) if _item_overhead is not None else None) + _dict['overhead'] = _items return _dict setattr( @@ -236,7 +254,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "containers": obj.get("containers"), - "resourceClaimName": obj.get("resourceClaimName"), - "resources": obj.get("resources") + "mapping": [V1NodeAllocatableMappedResources.from_dict(_item) for _item in obj["mapping"]] if obj.get("mapping") is not None else None, + "overhead": [V1NodeAllocatableOverheadResources.from_dict(_item) for _item in obj["overhead"]] if obj.get("overhead") is not None else None, + "resourceClaimName": obj.get("resourceClaimName") }) return _obj diff --git a/kubernetes/aio/client/models/v1_node_condition.py b/kubernetes/aio/client/models/v1_node_condition.py index ec5a3cbac2..d98f30181b 100644 --- a/kubernetes/aio/client/models/v1_node_condition.py +++ b/kubernetes/aio/client/models/v1_node_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_node_config_source.py b/kubernetes/aio/client/models/v1_node_config_source.py index 259b6f9728..4daef83ef7 100644 --- a/kubernetes/aio/client/models/v1_node_config_source.py +++ b/kubernetes/aio/client/models/v1_node_config_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_node_config_status.py b/kubernetes/aio/client/models/v1_node_config_status.py index 1627b6f308..0b5f90bc92 100644 --- a/kubernetes/aio/client/models/v1_node_config_status.py +++ b/kubernetes/aio/client/models/v1_node_config_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_node_daemon_endpoints.py b/kubernetes/aio/client/models/v1_node_daemon_endpoints.py index d0800b7753..97d573a104 100644 --- a/kubernetes/aio/client/models/v1_node_daemon_endpoints.py +++ b/kubernetes/aio/client/models/v1_node_daemon_endpoints.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_node_features.py b/kubernetes/aio/client/models/v1_node_features.py index 3ac5c73c57..7ad62bd8d3 100644 --- a/kubernetes/aio/client/models/v1_node_features.py +++ b/kubernetes/aio/client/models/v1_node_features.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_node_list.py b/kubernetes/aio/client/models/v1_node_list.py index 7fc2966a69..05d8f25abf 100644 --- a/kubernetes/aio/client/models/v1_node_list.py +++ b/kubernetes/aio/client/models/v1_node_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_node_pod_preemption_policy.py b/kubernetes/aio/client/models/v1_node_pod_preemption_policy.py new file mode 100644 index 0000000000..9dd5a8ae37 --- /dev/null +++ b/kubernetes/aio/client/models/v1_node_pod_preemption_policy.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1NodePodPreemptionPolicy(BaseModel): + """ + NodePodPreemptionPolicy defines the node-level policies governing preemption for pods on this node. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + disable_resize_preemption: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("disableResizePreemption", "disable_resize_preemption"), serialization_alias="disableResizePreemption", description="DisableResizePreemption lists the owners (e.g., autoscalers, operators, administrators) that have requested to disable scheduler and Kubelet preemption for in-place pod resize on this node. If this list is non-empty, resize-induced preemption is disabled on this node. This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption feature gate.") + openapi_types: ClassVar[Dict[str, str]] = { + "disable_resize_preemption": "List[str]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "disable_resize_preemption": "disableResizePreemption" + } + __properties: ClassVar[List[str]] = ["disableResizePreemption"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "disableResizePreemption" not in obj and "disable_resize_preemption" in obj: + obj["disableResizePreemption"] = obj["disable_resize_preemption"] + obj.pop("disable_resize_preemption", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1NodePodPreemptionPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodePodPreemptionPolicy): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1NodePodPreemptionPolicy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("disableResizePreemption" if serialize else "disable_resize_preemption"): _to_legacy_value(getattr(self, "disable_resize_preemption", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1NodePodPreemptionPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "disableResizePreemption": obj.get("disableResizePreemption") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_node_runtime_handler.py b/kubernetes/aio/client/models/v1_node_runtime_handler.py index ba37b8fc20..ac7b5b0715 100644 --- a/kubernetes/aio/client/models/v1_node_runtime_handler.py +++ b/kubernetes/aio/client/models/v1_node_runtime_handler.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_node_runtime_handler_features.py b/kubernetes/aio/client/models/v1_node_runtime_handler_features.py index 641b5f9e62..666d5844a8 100644 --- a/kubernetes/aio/client/models/v1_node_runtime_handler_features.py +++ b/kubernetes/aio/client/models/v1_node_runtime_handler_features.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_node_selector.py b/kubernetes/aio/client/models/v1_node_selector.py index 9945281ee3..25f01d6e77 100644 --- a/kubernetes/aio/client/models/v1_node_selector.py +++ b/kubernetes/aio/client/models/v1_node_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_node_selector_requirement.py b/kubernetes/aio/client/models/v1_node_selector_requirement.py index 57605057d3..47844421ef 100644 --- a/kubernetes/aio/client/models/v1_node_selector_requirement.py +++ b/kubernetes/aio/client/models/v1_node_selector_requirement.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_node_selector_term.py b/kubernetes/aio/client/models/v1_node_selector_term.py index f72796d312..e566a45b0c 100644 --- a/kubernetes/aio/client/models/v1_node_selector_term.py +++ b/kubernetes/aio/client/models/v1_node_selector_term.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_node_spec.py b/kubernetes/aio/client/models/v1_node_spec.py index a8b654af7c..007103862f 100644 --- a/kubernetes/aio/client/models/v1_node_spec.py +++ b/kubernetes/aio/client/models/v1_node_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1_node_config_source import V1NodeConfigSource +from kubernetes.aio.client.models.v1_node_pod_preemption_policy import V1NodePodPreemptionPolicy from kubernetes.aio.client.models.v1_taint import V1Taint from typing import Optional, Set from typing_extensions import Self @@ -109,6 +110,7 @@ class V1NodeSpec(BaseModel): external_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("externalID", "external_id"), serialization_alias="externalID", description="Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966") pod_cidr: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("podCIDR", "pod_cidr"), serialization_alias="podCIDR", description="PodCIDR represents the pod IP range assigned to the node.") pod_cidrs: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("podCIDRs", "pod_cidrs"), serialization_alias="podCIDRs", description="podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.") + pod_preemption_policy: Optional[V1NodePodPreemptionPolicy] = Field(default=None, validation_alias=AliasChoices("podPreemptionPolicy", "pod_preemption_policy"), serialization_alias="podPreemptionPolicy") provider_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("providerID", "provider_id"), serialization_alias="providerID", description="ID of the node assigned by the cloud provider in the format: ://") taints: Optional[List[V1Taint]] = Field(default=None, description="If specified, the node's taints.") unschedulable: Optional[StrictBool] = Field(default=None, description="Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration") @@ -117,6 +119,7 @@ class V1NodeSpec(BaseModel): "external_id": "str", "pod_cidr": "str", "pod_cidrs": "List[str]", + "pod_preemption_policy": "V1NodePodPreemptionPolicy", "provider_id": "str", "taints": "List[V1Taint]", "unschedulable": "bool" @@ -127,11 +130,12 @@ class V1NodeSpec(BaseModel): "external_id": "externalID", "pod_cidr": "podCIDR", "pod_cidrs": "podCIDRs", + "pod_preemption_policy": "podPreemptionPolicy", "provider_id": "providerID", "taints": "taints", "unschedulable": "unschedulable" } - __properties: ClassVar[List[str]] = ["configSource", "externalID", "podCIDR", "podCIDRs", "providerID", "taints", "unschedulable"] + __properties: ClassVar[List[str]] = ["configSource", "externalID", "podCIDR", "podCIDRs", "podPreemptionPolicy", "providerID", "taints", "unschedulable"] @classmethod def __preprocess_input_names( @@ -154,6 +158,9 @@ def __preprocess_input_names( if "podCIDRs" not in obj and "pod_cidrs" in obj: obj["podCIDRs"] = obj["pod_cidrs"] obj.pop("pod_cidrs", None) + if "podPreemptionPolicy" not in obj and "pod_preemption_policy" in obj: + obj["podPreemptionPolicy"] = obj["pod_preemption_policy"] + obj.pop("pod_preemption_policy", None) if "providerID" not in obj and "provider_id" in obj: obj["providerID"] = obj["provider_id"] obj.pop("provider_id", None) @@ -210,6 +217,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("externalID" if serialize else "external_id"): _to_legacy_value(getattr(self, "external_id", None), serialize), ("podCIDR" if serialize else "pod_cidr"): _to_legacy_value(getattr(self, "pod_cidr", None), serialize), ("podCIDRs" if serialize else "pod_cidrs"): _to_legacy_value(getattr(self, "pod_cidrs", None), serialize), + ("podPreemptionPolicy" if serialize else "pod_preemption_policy"): _to_legacy_value(getattr(self, "pod_preemption_policy", None), serialize), ("providerID" if serialize else "provider_id"): _to_legacy_value(getattr(self, "provider_id", None), serialize), ("taints" if serialize else "taints"): _to_legacy_value(getattr(self, "taints", None), serialize), ("unschedulable" if serialize else "unschedulable"): _to_legacy_value(getattr(self, "unschedulable", None), serialize), @@ -236,6 +244,9 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of config_source if self.config_source: _dict['configSource'] = _to_openapi_value(self.config_source) + # override the default output from pydantic by calling `to_dict()` of pod_preemption_policy + if self.pod_preemption_policy: + _dict['podPreemptionPolicy'] = _to_openapi_value(self.pod_preemption_policy) # override the default output from pydantic by calling `to_dict()` of each item in taints (list) _items = [] if self.taints: @@ -278,6 +289,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "externalID": obj.get("externalID"), "podCIDR": obj.get("podCIDR"), "podCIDRs": obj.get("podCIDRs"), + "podPreemptionPolicy": V1NodePodPreemptionPolicy.from_dict(obj["podPreemptionPolicy"]) if obj.get("podPreemptionPolicy") is not None else None, "providerID": obj.get("providerID"), "taints": [V1Taint.from_dict(_item) for _item in obj["taints"]] if obj.get("taints") is not None else None, "unschedulable": obj.get("unschedulable") diff --git a/kubernetes/aio/client/models/v1_node_status.py b/kubernetes/aio/client/models/v1_node_status.py index 599c240ed6..432d9b8cb0 100644 --- a/kubernetes/aio/client/models/v1_node_status.py +++ b/kubernetes/aio/client/models/v1_node_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_node_swap_status.py b/kubernetes/aio/client/models/v1_node_swap_status.py index 92dc52a15e..5301d42d2d 100644 --- a/kubernetes/aio/client/models/v1_node_swap_status.py +++ b/kubernetes/aio/client/models/v1_node_swap_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_node_system_info.py b/kubernetes/aio/client/models/v1_node_system_info.py index 82d43452e1..79cd8ee3a5 100644 --- a/kubernetes/aio/client/models/v1_node_system_info.py +++ b/kubernetes/aio/client/models/v1_node_system_info.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,7 +18,7 @@ import json from collections.abc import Mapping as _Mapping -from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1_node_swap_status import V1NodeSwapStatus from typing import Optional, Set @@ -113,6 +113,7 @@ class V1NodeSystemInfo(BaseModel): machine_id: StrictStr = Field(validation_alias=AliasChoices("machineID", "machine_id"), serialization_alias="machineID", description="MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html") operating_system: StrictStr = Field(validation_alias=AliasChoices("operatingSystem", "operating_system"), serialization_alias="operatingSystem", description="The Operating System reported by the node") os_image: StrictStr = Field(validation_alias=AliasChoices("osImage", "os_image"), serialization_alias="osImage", description="OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).") + running_in_user_namespace: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("runningInUserNamespace", "running_in_user_namespace"), serialization_alias="runningInUserNamespace", description="Whether the node is running in a user namespace.") swap: Optional[V1NodeSwapStatus] = None system_uuid: StrictStr = Field(validation_alias=AliasChoices("systemUUID", "system_uuid"), serialization_alias="systemUUID", description="SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid") openapi_types: ClassVar[Dict[str, str]] = { @@ -125,6 +126,7 @@ class V1NodeSystemInfo(BaseModel): "machine_id": "str", "operating_system": "str", "os_image": "str", + "running_in_user_namespace": "bool", "swap": "V1NodeSwapStatus", "system_uuid": "str" } @@ -139,10 +141,11 @@ class V1NodeSystemInfo(BaseModel): "machine_id": "machineID", "operating_system": "operatingSystem", "os_image": "osImage", + "running_in_user_namespace": "runningInUserNamespace", "swap": "swap", "system_uuid": "systemUUID" } - __properties: ClassVar[List[str]] = ["architecture", "bootID", "containerRuntimeVersion", "kernelVersion", "kubeProxyVersion", "kubeletVersion", "machineID", "operatingSystem", "osImage", "swap", "systemUUID"] + __properties: ClassVar[List[str]] = ["architecture", "bootID", "containerRuntimeVersion", "kernelVersion", "kubeProxyVersion", "kubeletVersion", "machineID", "operatingSystem", "osImage", "runningInUserNamespace", "swap", "systemUUID"] @classmethod def __preprocess_input_names( @@ -177,6 +180,9 @@ def __preprocess_input_names( if "osImage" not in obj and "os_image" in obj: obj["osImage"] = obj["os_image"] obj.pop("os_image", None) + if "runningInUserNamespace" not in obj and "running_in_user_namespace" in obj: + obj["runningInUserNamespace"] = obj["running_in_user_namespace"] + obj.pop("running_in_user_namespace", None) if "systemUUID" not in obj and "system_uuid" in obj: obj["systemUUID"] = obj["system_uuid"] obj.pop("system_uuid", None) @@ -238,6 +244,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("machineID" if serialize else "machine_id"): _to_legacy_value(getattr(self, "machine_id", None), serialize), ("operatingSystem" if serialize else "operating_system"): _to_legacy_value(getattr(self, "operating_system", None), serialize), ("osImage" if serialize else "os_image"): _to_legacy_value(getattr(self, "os_image", None), serialize), + ("runningInUserNamespace" if serialize else "running_in_user_namespace"): _to_legacy_value(getattr(self, "running_in_user_namespace", None), serialize), ("swap" if serialize else "swap"): _to_legacy_value(getattr(self, "swap", None), serialize), ("systemUUID" if serialize else "system_uuid"): _to_legacy_value(getattr(self, "system_uuid", None), serialize), } @@ -304,6 +311,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "machineID": obj.get("machineID"), "operatingSystem": obj.get("operatingSystem"), "osImage": obj.get("osImage"), + "runningInUserNamespace": obj.get("runningInUserNamespace"), "swap": V1NodeSwapStatus.from_dict(obj["swap"]) if obj.get("swap") is not None else None, "systemUUID": obj.get("systemUUID") }) diff --git a/kubernetes/aio/client/models/v1_non_resource_attributes.py b/kubernetes/aio/client/models/v1_non_resource_attributes.py index 4eaae0323f..cdf351965f 100644 --- a/kubernetes/aio/client/models/v1_non_resource_attributes.py +++ b/kubernetes/aio/client/models/v1_non_resource_attributes.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_non_resource_policy_rule.py b/kubernetes/aio/client/models/v1_non_resource_policy_rule.py index 8dce7d2378..f243de1e32 100644 --- a/kubernetes/aio/client/models/v1_non_resource_policy_rule.py +++ b/kubernetes/aio/client/models/v1_non_resource_policy_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_non_resource_rule.py b/kubernetes/aio/client/models/v1_non_resource_rule.py index 5f1f0bbb79..c64996c99c 100644 --- a/kubernetes/aio/client/models/v1_non_resource_rule.py +++ b/kubernetes/aio/client/models/v1_non_resource_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_object_field_selector.py b/kubernetes/aio/client/models/v1_object_field_selector.py index cc35ac9640..143b0abb8d 100644 --- a/kubernetes/aio/client/models/v1_object_field_selector.py +++ b/kubernetes/aio/client/models/v1_object_field_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_object_meta.py b/kubernetes/aio/client/models/v1_object_meta.py index eda63445fb..3f70391d27 100644 --- a/kubernetes/aio/client/models/v1_object_meta.py +++ b/kubernetes/aio/client/models/v1_object_meta.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_object_reference.py b/kubernetes/aio/client/models/v1_object_reference.py index 3986fe5992..eab24cc2e4 100644 --- a/kubernetes/aio/client/models/v1_object_reference.py +++ b/kubernetes/aio/client/models/v1_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_opaque_device_configuration.py b/kubernetes/aio/client/models/v1_opaque_device_configuration.py index e1f9a9bec4..365a082743 100644 --- a/kubernetes/aio/client/models/v1_opaque_device_configuration.py +++ b/kubernetes/aio/client/models/v1_opaque_device_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_overhead.py b/kubernetes/aio/client/models/v1_overhead.py index 24b01cdac4..9e100d8584 100644 --- a/kubernetes/aio/client/models/v1_overhead.py +++ b/kubernetes/aio/client/models/v1_overhead.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_owner_reference.py b/kubernetes/aio/client/models/v1_owner_reference.py index b2d5dd9e11..2c61aeafb6 100644 --- a/kubernetes/aio/client/models/v1_owner_reference.py +++ b/kubernetes/aio/client/models/v1_owner_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_param_kind.py b/kubernetes/aio/client/models/v1_param_kind.py index 5cf03d3f53..32d555a6fd 100644 --- a/kubernetes/aio/client/models/v1_param_kind.py +++ b/kubernetes/aio/client/models/v1_param_kind.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_param_ref.py b/kubernetes/aio/client/models/v1_param_ref.py index d39dc29e25..5fee504796 100644 --- a/kubernetes/aio/client/models/v1_param_ref.py +++ b/kubernetes/aio/client/models/v1_param_ref.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_parent_reference.py b/kubernetes/aio/client/models/v1_parent_reference.py index 079d5f51df..f5bc03f8a3 100644 --- a/kubernetes/aio/client/models/v1_parent_reference.py +++ b/kubernetes/aio/client/models/v1_parent_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -102,10 +102,10 @@ class V1ParentReference(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - group: Optional[StrictStr] = Field(default=None, description="Group is the group of the object being referenced.") - name: StrictStr = Field(description="Name is the name of the object being referenced.") - namespace: Optional[StrictStr] = Field(default=None, description="Namespace is the namespace of the object being referenced.") - resource: StrictStr = Field(description="Resource is the resource of the object being referenced.") + group: Optional[StrictStr] = Field(default=None, description="group is the group of the object being referenced.") + name: StrictStr = Field(description="name is the name of the object being referenced.") + namespace: Optional[StrictStr] = Field(default=None, description="namespace is the namespace of the object being referenced.") + resource: StrictStr = Field(description="resource is the resource of the object being referenced.") openapi_types: ClassVar[Dict[str, str]] = { "group": "str", "name": "str", diff --git a/kubernetes/aio/client/models/v1_persistent_volume.py b/kubernetes/aio/client/models/v1_persistent_volume.py index 2728bd425b..925047ccf1 100644 --- a/kubernetes/aio/client/models/v1_persistent_volume.py +++ b/kubernetes/aio/client/models/v1_persistent_volume.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_persistent_volume_claim.py b/kubernetes/aio/client/models/v1_persistent_volume_claim.py index bdc6e35fad..4a3dd0b9aa 100644 --- a/kubernetes/aio/client/models/v1_persistent_volume_claim.py +++ b/kubernetes/aio/client/models/v1_persistent_volume_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_persistent_volume_claim_condition.py b/kubernetes/aio/client/models/v1_persistent_volume_claim_condition.py index d4d680722f..ccf7f40688 100644 --- a/kubernetes/aio/client/models/v1_persistent_volume_claim_condition.py +++ b/kubernetes/aio/client/models/v1_persistent_volume_claim_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_persistent_volume_claim_list.py b/kubernetes/aio/client/models/v1_persistent_volume_claim_list.py index 08459fc617..a4e79fd678 100644 --- a/kubernetes/aio/client/models/v1_persistent_volume_claim_list.py +++ b/kubernetes/aio/client/models/v1_persistent_volume_claim_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_persistent_volume_claim_spec.py b/kubernetes/aio/client/models/v1_persistent_volume_claim_spec.py index 2d0dc53140..d5b766300d 100644 --- a/kubernetes/aio/client/models/v1_persistent_volume_claim_spec.py +++ b/kubernetes/aio/client/models/v1_persistent_volume_claim_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_persistent_volume_claim_status.py b/kubernetes/aio/client/models/v1_persistent_volume_claim_status.py index fe2f3c5821..5616be2165 100644 --- a/kubernetes/aio/client/models/v1_persistent_volume_claim_status.py +++ b/kubernetes/aio/client/models/v1_persistent_volume_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1_modify_volume_status import V1ModifyVolumeStatus from kubernetes.aio.client.models.v1_persistent_volume_claim_condition import V1PersistentVolumeClaimCondition +from kubernetes.aio.client.models.v1_volume_health_status import V1VolumeHealthStatus from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -111,6 +112,7 @@ class V1PersistentVolumeClaimStatus(BaseModel): capacity: Optional[Dict[str, StrictStr]] = Field(default=None, description="capacity represents the actual resources of the underlying volume.") conditions: Optional[List[V1PersistentVolumeClaimCondition]] = Field(default=None, description="conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.") current_volume_attributes_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("currentVolumeAttributesClassName", "current_volume_attributes_class_name"), serialization_alias="currentVolumeAttributesClassName", description="currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim") + health_status: Optional[V1VolumeHealthStatus] = Field(default=None, validation_alias=AliasChoices("healthStatus", "health_status"), serialization_alias="healthStatus") modify_volume_status: Optional[V1ModifyVolumeStatus] = Field(default=None, validation_alias=AliasChoices("modifyVolumeStatus", "modify_volume_status"), serialization_alias="modifyVolumeStatus") phase: Optional[StrictStr] = Field(default=None, description="phase represents the current phase of PersistentVolumeClaim.") openapi_types: ClassVar[Dict[str, str]] = { @@ -120,6 +122,7 @@ class V1PersistentVolumeClaimStatus(BaseModel): "capacity": "Dict[str, str]", "conditions": "List[V1PersistentVolumeClaimCondition]", "current_volume_attributes_class_name": "str", + "health_status": "V1VolumeHealthStatus", "modify_volume_status": "V1ModifyVolumeStatus", "phase": "str" } @@ -131,10 +134,11 @@ class V1PersistentVolumeClaimStatus(BaseModel): "capacity": "capacity", "conditions": "conditions", "current_volume_attributes_class_name": "currentVolumeAttributesClassName", + "health_status": "healthStatus", "modify_volume_status": "modifyVolumeStatus", "phase": "phase" } - __properties: ClassVar[List[str]] = ["accessModes", "allocatedResourceStatuses", "allocatedResources", "capacity", "conditions", "currentVolumeAttributesClassName", "modifyVolumeStatus", "phase"] + __properties: ClassVar[List[str]] = ["accessModes", "allocatedResourceStatuses", "allocatedResources", "capacity", "conditions", "currentVolumeAttributesClassName", "healthStatus", "modifyVolumeStatus", "phase"] @classmethod def __preprocess_input_names( @@ -157,6 +161,9 @@ def __preprocess_input_names( if "currentVolumeAttributesClassName" not in obj and "current_volume_attributes_class_name" in obj: obj["currentVolumeAttributesClassName"] = obj["current_volume_attributes_class_name"] obj.pop("current_volume_attributes_class_name", None) + if "healthStatus" not in obj and "health_status" in obj: + obj["healthStatus"] = obj["health_status"] + obj.pop("health_status", None) if "modifyVolumeStatus" not in obj and "modify_volume_status" in obj: obj["modifyVolumeStatus"] = obj["modify_volume_status"] obj.pop("modify_volume_status", None) @@ -215,6 +222,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("conditions" if serialize else "conditions"): _to_legacy_value(getattr(self, "conditions", None), serialize), ("currentVolumeAttributesClassName" if serialize else "current_volume_attributes_class_name"): _to_legacy_value(getattr(self, "current_volume_attributes_class_name", None), serialize), + ("healthStatus" if serialize else "health_status"): _to_legacy_value(getattr(self, "health_status", None), serialize), ("modifyVolumeStatus" if serialize else "modify_volume_status"): _to_legacy_value(getattr(self, "modify_volume_status", None), serialize), ("phase" if serialize else "phase"): _to_legacy_value(getattr(self, "phase", None), serialize), } @@ -243,6 +251,9 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: for _item_conditions in self.conditions: _items.append(_to_openapi_value(_item_conditions) if _item_conditions is not None else None) _dict['conditions'] = _items + # override the default output from pydantic by calling `to_dict()` of health_status + if self.health_status: + _dict['healthStatus'] = _to_openapi_value(self.health_status) # override the default output from pydantic by calling `to_dict()` of modify_volume_status if self.modify_volume_status: _dict['modifyVolumeStatus'] = _to_openapi_value(self.modify_volume_status) @@ -284,6 +295,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "capacity": obj.get("capacity"), "conditions": [V1PersistentVolumeClaimCondition.from_dict(_item) for _item in obj["conditions"]] if obj.get("conditions") is not None else None, "currentVolumeAttributesClassName": obj.get("currentVolumeAttributesClassName"), + "healthStatus": V1VolumeHealthStatus.from_dict(obj["healthStatus"]) if obj.get("healthStatus") is not None else None, "modifyVolumeStatus": V1ModifyVolumeStatus.from_dict(obj["modifyVolumeStatus"]) if obj.get("modifyVolumeStatus") is not None else None, "phase": obj.get("phase") }) diff --git a/kubernetes/aio/client/models/v1_persistent_volume_claim_template.py b/kubernetes/aio/client/models/v1_persistent_volume_claim_template.py index 1d4d04ecfa..570862695d 100644 --- a/kubernetes/aio/client/models/v1_persistent_volume_claim_template.py +++ b/kubernetes/aio/client/models/v1_persistent_volume_claim_template.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_persistent_volume_claim_volume_source.py b/kubernetes/aio/client/models/v1_persistent_volume_claim_volume_source.py index 7173dc16fa..ec31b38a19 100644 --- a/kubernetes/aio/client/models/v1_persistent_volume_claim_volume_source.py +++ b/kubernetes/aio/client/models/v1_persistent_volume_claim_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_persistent_volume_list.py b/kubernetes/aio/client/models/v1_persistent_volume_list.py index 7b1d37c9b5..c9dc7d5d0e 100644 --- a/kubernetes/aio/client/models/v1_persistent_volume_list.py +++ b/kubernetes/aio/client/models/v1_persistent_volume_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_persistent_volume_spec.py b/kubernetes/aio/client/models/v1_persistent_volume_spec.py index 14718faa91..038af80c0a 100644 --- a/kubernetes/aio/client/models/v1_persistent_volume_spec.py +++ b/kubernetes/aio/client/models/v1_persistent_volume_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_persistent_volume_status.py b/kubernetes/aio/client/models/v1_persistent_volume_status.py index 4fec607bfb..f66360d971 100644 --- a/kubernetes/aio/client/models/v1_persistent_volume_status.py +++ b/kubernetes/aio/client/models/v1_persistent_volume_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_photon_persistent_disk_volume_source.py b/kubernetes/aio/client/models/v1_photon_persistent_disk_volume_source.py index e41963ebfc..311fe31e4c 100644 --- a/kubernetes/aio/client/models/v1_photon_persistent_disk_volume_source.py +++ b/kubernetes/aio/client/models/v1_photon_persistent_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod.py b/kubernetes/aio/client/models/v1_pod.py index e17c3bfa6a..2404210c36 100644 --- a/kubernetes/aio/client/models/v1_pod.py +++ b/kubernetes/aio/client/models/v1_pod.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_affinity.py b/kubernetes/aio/client/models/v1_pod_affinity.py index 08951500cf..a65eeaad15 100644 --- a/kubernetes/aio/client/models/v1_pod_affinity.py +++ b/kubernetes/aio/client/models/v1_pod_affinity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_affinity_term.py b/kubernetes/aio/client/models/v1_pod_affinity_term.py index d1204bed47..7483898194 100644 --- a/kubernetes/aio/client/models/v1_pod_affinity_term.py +++ b/kubernetes/aio/client/models/v1_pod_affinity_term.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_anti_affinity.py b/kubernetes/aio/client/models/v1_pod_anti_affinity.py index 788af9fd15..ef9cb258b8 100644 --- a/kubernetes/aio/client/models/v1_pod_anti_affinity.py +++ b/kubernetes/aio/client/models/v1_pod_anti_affinity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_certificate_projection.py b/kubernetes/aio/client/models/v1_pod_certificate_projection.py index 5c113c5d8e..cef38ce24c 100644 --- a/kubernetes/aio/client/models/v1_pod_certificate_projection.py +++ b/kubernetes/aio/client/models/v1_pod_certificate_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,6 +109,7 @@ class V1PodCertificateProjection(BaseModel): key_type: StrictStr = Field(validation_alias=AliasChoices("keyType", "key_type"), serialization_alias="keyType", description="The type of keypair Kubelet will generate for the pod. Valid values are \"RSA3072\", \"RSA4096\", \"ECDSAP256\", \"ECDSAP384\", \"ECDSAP521\", and \"ED25519\".") max_expiration_seconds: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("maxExpirationSeconds", "max_expiration_seconds"), serialization_alias="maxExpirationSeconds", description="maxExpirationSeconds is the maximum lifetime permitted for the certificate. Kubelet copies this value verbatim into the PodCertificateRequests it generates for this projection. 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.") signer_name: StrictStr = Field(validation_alias=AliasChoices("signerName", "signer_name"), serialization_alias="signerName", description="Kubelet's generated CSRs will be addressed to this signer.") + user: Optional[StrictInt] = Field(default=None, description="user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") user_annotations: Optional[Dict[str, StrictStr]] = Field(default=None, validation_alias=AliasChoices("userAnnotations", "user_annotations"), serialization_alias="userAnnotations", description="userAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way. These values are copied verbatim into the `spec.unverifiedUserAnnotations` field of the PodCertificateRequest objects that Kubelet creates. 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.") openapi_types: ClassVar[Dict[str, str]] = { "certificate_chain_path": "str", @@ -117,6 +118,7 @@ class V1PodCertificateProjection(BaseModel): "key_type": "str", "max_expiration_seconds": "int", "signer_name": "str", + "user": "int", "user_annotations": "Dict[str, str]" } @@ -127,9 +129,10 @@ class V1PodCertificateProjection(BaseModel): "key_type": "keyType", "max_expiration_seconds": "maxExpirationSeconds", "signer_name": "signerName", + "user": "user", "user_annotations": "userAnnotations" } - __properties: ClassVar[List[str]] = ["certificateChainPath", "credentialBundlePath", "keyPath", "keyType", "maxExpirationSeconds", "signerName", "userAnnotations"] + __properties: ClassVar[List[str]] = ["certificateChainPath", "credentialBundlePath", "keyPath", "keyType", "maxExpirationSeconds", "signerName", "user", "userAnnotations"] @classmethod def __preprocess_input_names( @@ -216,6 +219,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("keyType" if serialize else "key_type"): _to_legacy_value(getattr(self, "key_type", None), serialize), ("maxExpirationSeconds" if serialize else "max_expiration_seconds"): _to_legacy_value(getattr(self, "max_expiration_seconds", None), serialize), ("signerName" if serialize else "signer_name"): _to_legacy_value(getattr(self, "signer_name", None), serialize), + ("user" if serialize else "user"): _to_legacy_value(getattr(self, "user", None), serialize), ("userAnnotations" if serialize else "user_annotations"): _to_legacy_value(getattr(self, "user_annotations", None), serialize), } @@ -275,6 +279,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "keyType": obj.get("keyType"), "maxExpirationSeconds": obj.get("maxExpirationSeconds"), "signerName": obj.get("signerName"), + "user": obj.get("user"), "userAnnotations": obj.get("userAnnotations") }) return _obj diff --git a/kubernetes/aio/client/models/v1_pod_certificate_request.py b/kubernetes/aio/client/models/v1_pod_certificate_request.py new file mode 100644 index 0000000000..93b2e30e01 --- /dev/null +++ b/kubernetes/aio/client/models/v1_pod_certificate_request.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_object_meta import V1ObjectMeta +from kubernetes.aio.client.models.v1_pod_certificate_request_spec import V1PodCertificateRequestSpec +from kubernetes.aio.client.models.v1_pod_certificate_request_status import V1PodCertificateRequestStatus +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1PodCertificateRequest(BaseModel): + """ + PodCertificateRequest encodes a pod requesting a certificate from a given signer. Kubelets use this API to implement podCertificate projected volumes + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ObjectMeta] = None + spec: V1PodCertificateRequestSpec + status: Optional[V1PodCertificateRequestStatus] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "kind": "str", + "metadata": "V1ObjectMeta", + "spec": "V1PodCertificateRequestSpec", + "status": "V1PodCertificateRequestStatus" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "kind": "kind", + "metadata": "metadata", + "spec": "spec", + "status": "status" + } + __properties: ClassVar[List[str]] = ["apiVersion", "kind", "metadata", "spec", "status"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1PodCertificateRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodCertificateRequest): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1PodCertificateRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + ("spec" if serialize else "spec"): _to_legacy_value(getattr(self, "spec", None), serialize), + ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + # override the default output from pydantic by calling `to_dict()` of spec + if self.spec: + _dict['spec'] = _to_openapi_value(self.spec) + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = _to_openapi_value(self.status) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1PodCertificateRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "kind": obj.get("kind"), + "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, + "spec": V1PodCertificateRequestSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, + "status": V1PodCertificateRequestStatus.from_dict(obj["status"]) if obj.get("status") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_pod_certificate_request_list.py b/kubernetes/aio/client/models/v1_pod_certificate_request_list.py new file mode 100644 index 0000000000..2f2c0990da --- /dev/null +++ b/kubernetes/aio/client/models/v1_pod_certificate_request_list.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_list_meta import V1ListMeta +from kubernetes.aio.client.models.v1_pod_certificate_request import V1PodCertificateRequest +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1PodCertificateRequestList(BaseModel): + """ + PodCertificateRequestList is a collection of PodCertificateRequest objects + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + items: List[V1PodCertificateRequest] = Field(description="items is a collection of PodCertificateRequest objects") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ListMeta] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "items": "List[V1PodCertificateRequest]", + "kind": "str", + "metadata": "V1ListMeta" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "items": "items", + "kind": "kind", + "metadata": "metadata" + } + __properties: ClassVar[List[str]] = ["apiVersion", "items", "kind", "metadata"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1PodCertificateRequestList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodCertificateRequestList): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1PodCertificateRequestList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + _items.append(_to_openapi_value(_item_items) if _item_items is not None else None) + _dict['items'] = _items + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1PodCertificateRequestList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "items": [V1PodCertificateRequest.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "kind": obj.get("kind"), + "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_pod_certificate_request_spec.py b/kubernetes/aio/client/models/v1_pod_certificate_request_spec.py new file mode 100644 index 0000000000..281302e499 --- /dev/null +++ b/kubernetes/aio/client/models/v1_pod_certificate_request_spec.py @@ -0,0 +1,312 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union, cast as _cast +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1PodCertificateRequestSpec(BaseModel): + """ + PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + max_expiration_seconds: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("maxExpirationSeconds", "max_expiration_seconds"), serialization_alias="maxExpirationSeconds", description="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.") + node_name: StrictStr = Field(validation_alias=AliasChoices("nodeName", "node_name"), serialization_alias="nodeName", description="nodeName is the name of the node the pod is assigned to.") + node_uid: StrictStr = Field(validation_alias=AliasChoices("nodeUID", "node_uid"), serialization_alias="nodeUID", description="nodeUID is the UID of the node the pod is assigned to.") + pod_name: StrictStr = Field(validation_alias=AliasChoices("podName", "pod_name"), serialization_alias="podName", description="podName is the name of the pod into which the certificate will be mounted.") + pod_uid: StrictStr = Field(validation_alias=AliasChoices("podUID", "pod_uid"), serialization_alias="podUID", description="podUID is the UID of the pod into which the certificate will be mounted.") + service_account_name: StrictStr = Field(validation_alias=AliasChoices("serviceAccountName", "service_account_name"), serialization_alias="serviceAccountName", description="serviceAccountName is the name of the service account the pod is running as.") + service_account_uid: StrictStr = Field(validation_alias=AliasChoices("serviceAccountUID", "service_account_uid"), serialization_alias="serviceAccountUID", description="serviceAccountUID is the UID of the service account the pod is running as.") + signer_name: StrictStr = Field(validation_alias=AliasChoices("signerName", "signer_name"), serialization_alias="signerName", description="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.") + stub_pkcs10_request: Union[Annotated[bytes, Field(strict=True)], Annotated[str, Field(strict=True)]] = Field(validation_alias=AliasChoices("stubPKCS10Request", "stub_pkcs10_request"), serialization_alias="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.") + unverified_user_annotations: Optional[Dict[str, StrictStr]] = Field(default=None, validation_alias=AliasChoices("unverifiedUserAnnotations", "unverified_user_annotations"), serialization_alias="unverifiedUserAnnotations", description="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.") + openapi_types: ClassVar[Dict[str, str]] = { + "max_expiration_seconds": "int", + "node_name": "str", + "node_uid": "str", + "pod_name": "str", + "pod_uid": "str", + "service_account_name": "str", + "service_account_uid": "str", + "signer_name": "str", + "stub_pkcs10_request": "bytes", + "unverified_user_annotations": "Dict[str, str]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "max_expiration_seconds": "maxExpirationSeconds", + "node_name": "nodeName", + "node_uid": "nodeUID", + "pod_name": "podName", + "pod_uid": "podUID", + "service_account_name": "serviceAccountName", + "service_account_uid": "serviceAccountUID", + "signer_name": "signerName", + "stub_pkcs10_request": "stubPKCS10Request", + "unverified_user_annotations": "unverifiedUserAnnotations" + } + __properties: ClassVar[List[str]] = ["maxExpirationSeconds", "nodeName", "nodeUID", "podName", "podUID", "serviceAccountName", "serviceAccountUID", "signerName", "stubPKCS10Request", "unverifiedUserAnnotations"] + + @field_validator('stub_pkcs10_request', mode="before") + def stub_pkcs10_request_validate_regular_expression(cls, value): + """Validates the regular expression""" + if isinstance(value, str) and not re.match(r"^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$", value): + raise ValueError(r"must validate the regular expression /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/") + return value + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "maxExpirationSeconds" not in obj and "max_expiration_seconds" in obj: + obj["maxExpirationSeconds"] = obj["max_expiration_seconds"] + obj.pop("max_expiration_seconds", None) + if "nodeName" not in obj and "node_name" in obj: + obj["nodeName"] = obj["node_name"] + obj.pop("node_name", None) + if "nodeUID" not in obj and "node_uid" in obj: + obj["nodeUID"] = obj["node_uid"] + obj.pop("node_uid", None) + if "podName" not in obj and "pod_name" in obj: + obj["podName"] = obj["pod_name"] + obj.pop("pod_name", None) + if "podUID" not in obj and "pod_uid" in obj: + obj["podUID"] = obj["pod_uid"] + obj.pop("pod_uid", None) + if "serviceAccountName" not in obj and "service_account_name" in obj: + obj["serviceAccountName"] = obj["service_account_name"] + obj.pop("service_account_name", None) + if "serviceAccountUID" not in obj and "service_account_uid" in obj: + obj["serviceAccountUID"] = obj["service_account_uid"] + obj.pop("service_account_uid", None) + if "signerName" not in obj and "signer_name" in obj: + obj["signerName"] = obj["signer_name"] + obj.pop("signer_name", None) + if "stubPKCS10Request" not in obj and "stub_pkcs10_request" in obj: + obj["stubPKCS10Request"] = obj["stub_pkcs10_request"] + obj.pop("stub_pkcs10_request", None) + if "unverifiedUserAnnotations" not in obj and "unverified_user_annotations" in obj: + obj["unverifiedUserAnnotations"] = obj["unverified_user_annotations"] + obj.pop("unverified_user_annotations", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1PodCertificateRequestSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodCertificateRequestSpec): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1PodCertificateRequestSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("maxExpirationSeconds" if serialize else "max_expiration_seconds"): _to_legacy_value(getattr(self, "max_expiration_seconds", None), serialize), + ("nodeName" if serialize else "node_name"): _to_legacy_value(getattr(self, "node_name", None), serialize), + ("nodeUID" if serialize else "node_uid"): _to_legacy_value(getattr(self, "node_uid", None), serialize), + ("podName" if serialize else "pod_name"): _to_legacy_value(getattr(self, "pod_name", None), serialize), + ("podUID" if serialize else "pod_uid"): _to_legacy_value(getattr(self, "pod_uid", None), serialize), + ("serviceAccountName" if serialize else "service_account_name"): _to_legacy_value(getattr(self, "service_account_name", None), serialize), + ("serviceAccountUID" if serialize else "service_account_uid"): _to_legacy_value(getattr(self, "service_account_uid", None), serialize), + ("signerName" if serialize else "signer_name"): _to_legacy_value(getattr(self, "signer_name", None), serialize), + ("stubPKCS10Request" if serialize else "stub_pkcs10_request"): _to_legacy_value(getattr(self, "stub_pkcs10_request", None), serialize), + ("unverifiedUserAnnotations" if serialize else "unverified_user_annotations"): _to_legacy_value(getattr(self, "unverified_user_annotations", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1PodCertificateRequestSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "maxExpirationSeconds": obj.get("maxExpirationSeconds"), + "nodeName": obj.get("nodeName"), + "nodeUID": obj.get("nodeUID"), + "podName": obj.get("podName"), + "podUID": obj.get("podUID"), + "serviceAccountName": obj.get("serviceAccountName"), + "serviceAccountUID": obj.get("serviceAccountUID"), + "signerName": obj.get("signerName"), + "stubPKCS10Request": obj.get("stubPKCS10Request"), + "unverifiedUserAnnotations": obj.get("unverifiedUserAnnotations") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_pod_certificate_request_status.py b/kubernetes/aio/client/models/v1_pod_certificate_request_status.py new file mode 100644 index 0000000000..c7c6bfdca2 --- /dev/null +++ b/kubernetes/aio/client/models/v1_pod_certificate_request_status.py @@ -0,0 +1,269 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from datetime import datetime +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_condition import V1Condition +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1PodCertificateRequestStatus(BaseModel): + """ + PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + begin_refresh_at: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("beginRefreshAt", "begin_refresh_at"), serialization_alias="beginRefreshAt", description="beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable. This field is only a hint. Kubelet may start refreshing before or after this time if necessary.") + certificate_chain: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("certificateChain", "certificate_chain"), serialization_alias="certificateChain", description="certificateChain is populated with an issued certificate by the signer. This field is set via the /status subresource. Once populated, this field is immutable. If the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty. Validation requirements: 1. certificateChain must consist of one or more PEM-formatted certificates. 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as described in section 4 of RFC5280. If more than one block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers.") + conditions: Optional[List[V1Condition]] = Field(default=None, description="conditions applied to the request. The types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\". If the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field.") + not_after: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("notAfter", "not_after"), serialization_alias="notAfter", description="notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.") + not_before: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("notBefore", "not_before"), serialization_alias="notBefore", description="notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.") + openapi_types: ClassVar[Dict[str, str]] = { + "begin_refresh_at": "datetime", + "certificate_chain": "str", + "conditions": "List[V1Condition]", + "not_after": "datetime", + "not_before": "datetime" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "begin_refresh_at": "beginRefreshAt", + "certificate_chain": "certificateChain", + "conditions": "conditions", + "not_after": "notAfter", + "not_before": "notBefore" + } + __properties: ClassVar[List[str]] = ["beginRefreshAt", "certificateChain", "conditions", "notAfter", "notBefore"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "beginRefreshAt" not in obj and "begin_refresh_at" in obj: + obj["beginRefreshAt"] = obj["begin_refresh_at"] + obj.pop("begin_refresh_at", None) + if "certificateChain" not in obj and "certificate_chain" in obj: + obj["certificateChain"] = obj["certificate_chain"] + obj.pop("certificate_chain", None) + if "notAfter" not in obj and "not_after" in obj: + obj["notAfter"] = obj["not_after"] + obj.pop("not_after", None) + if "notBefore" not in obj and "not_before" in obj: + obj["notBefore"] = obj["not_before"] + obj.pop("not_before", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1PodCertificateRequestStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodCertificateRequestStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1PodCertificateRequestStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("beginRefreshAt" if serialize else "begin_refresh_at"): _to_legacy_value(getattr(self, "begin_refresh_at", None), serialize), + ("certificateChain" if serialize else "certificate_chain"): _to_legacy_value(getattr(self, "certificate_chain", None), serialize), + ("conditions" if serialize else "conditions"): _to_legacy_value(getattr(self, "conditions", None), serialize), + ("notAfter" if serialize else "not_after"): _to_legacy_value(getattr(self, "not_after", None), serialize), + ("notBefore" if serialize else "not_before"): _to_legacy_value(getattr(self, "not_before", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in conditions (list) + _items = [] + if self.conditions: + for _item_conditions in self.conditions: + _items.append(_to_openapi_value(_item_conditions) if _item_conditions is not None else None) + _dict['conditions'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1PodCertificateRequestStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "beginRefreshAt": obj.get("beginRefreshAt"), + "certificateChain": obj.get("certificateChain"), + "conditions": [V1Condition.from_dict(_item) for _item in obj["conditions"]] if obj.get("conditions") is not None else None, + "notAfter": obj.get("notAfter"), + "notBefore": obj.get("notBefore") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_pod_condition.py b/kubernetes/aio/client/models/v1_pod_condition.py index c8dff44222..e583481c80 100644 --- a/kubernetes/aio/client/models/v1_pod_condition.py +++ b/kubernetes/aio/client/models/v1_pod_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_disruption_budget.py b/kubernetes/aio/client/models/v1_pod_disruption_budget.py index e7b1d2f0dc..93973fe4fd 100644 --- a/kubernetes/aio/client/models/v1_pod_disruption_budget.py +++ b/kubernetes/aio/client/models/v1_pod_disruption_budget.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_disruption_budget_list.py b/kubernetes/aio/client/models/v1_pod_disruption_budget_list.py index 89ae050a93..8ab1427443 100644 --- a/kubernetes/aio/client/models/v1_pod_disruption_budget_list.py +++ b/kubernetes/aio/client/models/v1_pod_disruption_budget_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_disruption_budget_spec.py b/kubernetes/aio/client/models/v1_pod_disruption_budget_spec.py index fa5997e174..431f2c4ecf 100644 --- a/kubernetes/aio/client/models/v1_pod_disruption_budget_spec.py +++ b/kubernetes/aio/client/models/v1_pod_disruption_budget_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -104,10 +104,10 @@ class V1PodDisruptionBudgetSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - max_unavailable: Optional[StrictInt | StrictStr] = Field(default=None, validation_alias=AliasChoices("maxUnavailable", "max_unavailable"), serialization_alias="maxUnavailable", description="An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\".") - min_available: Optional[StrictInt | StrictStr] = Field(default=None, validation_alias=AliasChoices("minAvailable", "min_available"), serialization_alias="minAvailable", description="An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\".") + max_unavailable: Optional[StrictInt | StrictStr] = Field(default=None, validation_alias=AliasChoices("maxUnavailable", "max_unavailable"), serialization_alias="maxUnavailable", description="maxUnavailable indicates that an eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\".") + min_available: Optional[StrictInt | StrictStr] = Field(default=None, validation_alias=AliasChoices("minAvailable", "min_available"), serialization_alias="minAvailable", description="minAvailable indicates that an eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\".") selector: Optional[V1LabelSelector] = None - unhealthy_pod_eviction_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("unhealthyPodEvictionPolicy", "unhealthy_pod_eviction_policy"), serialization_alias="unhealthyPodEvictionPolicy", description="UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.") + unhealthy_pod_eviction_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("unhealthyPodEvictionPolicy", "unhealthy_pod_eviction_policy"), serialization_alias="unhealthyPodEvictionPolicy", description="unhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.") openapi_types: ClassVar[Dict[str, str]] = { "max_unavailable": "object", "min_available": "object", diff --git a/kubernetes/aio/client/models/v1_pod_disruption_budget_status.py b/kubernetes/aio/client/models/v1_pod_disruption_budget_status.py index 64bafa4e49..f0576ae53c 100644 --- a/kubernetes/aio/client/models/v1_pod_disruption_budget_status.py +++ b/kubernetes/aio/client/models/v1_pod_disruption_budget_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_dns_config.py b/kubernetes/aio/client/models/v1_pod_dns_config.py index cddd10ba01..b7dc3c5832 100644 --- a/kubernetes/aio/client/models/v1_pod_dns_config.py +++ b/kubernetes/aio/client/models/v1_pod_dns_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_dns_config_option.py b/kubernetes/aio/client/models/v1_pod_dns_config_option.py index 294a92eaad..9423e570fa 100644 --- a/kubernetes/aio/client/models/v1_pod_dns_config_option.py +++ b/kubernetes/aio/client/models/v1_pod_dns_config_option.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_extended_resource_claim_status.py b/kubernetes/aio/client/models/v1_pod_extended_resource_claim_status.py index 15fbf5ca1f..ad4144e75a 100644 --- a/kubernetes/aio/client/models/v1_pod_extended_resource_claim_status.py +++ b/kubernetes/aio/client/models/v1_pod_extended_resource_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_failure_policy.py b/kubernetes/aio/client/models/v1_pod_failure_policy.py index 5a90df5960..6a91634c81 100644 --- a/kubernetes/aio/client/models/v1_pod_failure_policy.py +++ b/kubernetes/aio/client/models/v1_pod_failure_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_failure_policy_on_exit_codes_requirement.py b/kubernetes/aio/client/models/v1_pod_failure_policy_on_exit_codes_requirement.py index 7b4901939b..0210056405 100644 --- a/kubernetes/aio/client/models/v1_pod_failure_policy_on_exit_codes_requirement.py +++ b/kubernetes/aio/client/models/v1_pod_failure_policy_on_exit_codes_requirement.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_failure_policy_on_pod_conditions_pattern.py b/kubernetes/aio/client/models/v1_pod_failure_policy_on_pod_conditions_pattern.py index a50de646a7..459bcd9b5f 100644 --- a/kubernetes/aio/client/models/v1_pod_failure_policy_on_pod_conditions_pattern.py +++ b/kubernetes/aio/client/models/v1_pod_failure_policy_on_pod_conditions_pattern.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_failure_policy_rule.py b/kubernetes/aio/client/models/v1_pod_failure_policy_rule.py index 74e8891bac..ef8c270d83 100644 --- a/kubernetes/aio/client/models/v1_pod_failure_policy_rule.py +++ b/kubernetes/aio/client/models/v1_pod_failure_policy_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_ip.py b/kubernetes/aio/client/models/v1_pod_ip.py index 72a47ab20e..5b42a636ec 100644 --- a/kubernetes/aio/client/models/v1_pod_ip.py +++ b/kubernetes/aio/client/models/v1_pod_ip.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_list.py b/kubernetes/aio/client/models/v1_pod_list.py index 4c997c2d22..8f1fb4c51e 100644 --- a/kubernetes/aio/client/models/v1_pod_list.py +++ b/kubernetes/aio/client/models/v1_pod_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_os.py b/kubernetes/aio/client/models/v1_pod_os.py index c7eb644d5e..61338f7806 100644 --- a/kubernetes/aio/client/models/v1_pod_os.py +++ b/kubernetes/aio/client/models/v1_pod_os.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_readiness_gate.py b/kubernetes/aio/client/models/v1_pod_readiness_gate.py index ba5c85c0e4..f9e84a1dd6 100644 --- a/kubernetes/aio/client/models/v1_pod_readiness_gate.py +++ b/kubernetes/aio/client/models/v1_pod_readiness_gate.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_resource_claim.py b/kubernetes/aio/client/models/v1_pod_resource_claim.py index ab95db32d8..26122ed300 100644 --- a/kubernetes/aio/client/models/v1_pod_resource_claim.py +++ b/kubernetes/aio/client/models/v1_pod_resource_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_resource_claim_status.py b/kubernetes/aio/client/models/v1_pod_resource_claim_status.py index 1a3cc366d6..abac45c06f 100644 --- a/kubernetes/aio/client/models/v1_pod_resource_claim_status.py +++ b/kubernetes/aio/client/models/v1_pod_resource_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_scheduling_gate.py b/kubernetes/aio/client/models/v1_pod_scheduling_gate.py index 787c365799..f33128a719 100644 --- a/kubernetes/aio/client/models/v1_pod_scheduling_gate.py +++ b/kubernetes/aio/client/models/v1_pod_scheduling_gate.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_scheduling_group.py b/kubernetes/aio/client/models/v1_pod_scheduling_group.py index 645401efab..651fe39523 100644 --- a/kubernetes/aio/client/models/v1_pod_scheduling_group.py +++ b/kubernetes/aio/client/models/v1_pod_scheduling_group.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_security_context.py b/kubernetes/aio/client/models/v1_pod_security_context.py index 12633e2468..e5bb67796b 100644 --- a/kubernetes/aio/client/models/v1_pod_security_context.py +++ b/kubernetes/aio/client/models/v1_pod_security_context.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -114,7 +114,7 @@ class V1PodSecurityContext(BaseModel): run_as_group: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("runAsGroup", "run_as_group"), serialization_alias="runAsGroup", description="The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.") run_as_non_root: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("runAsNonRoot", "run_as_non_root"), serialization_alias="runAsNonRoot", description="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 SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") run_as_user: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("runAsUser", "run_as_user"), serialization_alias="runAsUser", description="The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.") - se_linux_change_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("seLinuxChangePolicy", "se_linux_change_policy"), serialization_alias="seLinuxChangePolicy", description="seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\". \"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. \"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. 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. 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.") + se_linux_change_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("seLinuxChangePolicy", "se_linux_change_policy"), serialization_alias="seLinuxChangePolicy", description="seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\". \"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. \"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. 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. 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.") se_linux_options: Optional[V1SELinuxOptions] = Field(default=None, validation_alias=AliasChoices("seLinuxOptions", "se_linux_options"), serialization_alias="seLinuxOptions") seccomp_profile: Optional[V1SeccompProfile] = Field(default=None, validation_alias=AliasChoices("seccompProfile", "seccomp_profile"), serialization_alias="seccompProfile") supplemental_groups: Optional[List[StrictInt]] = Field(default=None, validation_alias=AliasChoices("supplementalGroups", "supplemental_groups"), serialization_alias="supplementalGroups", description="A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows.") diff --git a/kubernetes/aio/client/models/v1_pod_spec.py b/kubernetes/aio/client/models/v1_pod_spec.py index 56d5350ba8..36b4a6c098 100644 --- a/kubernetes/aio/client/models/v1_pod_spec.py +++ b/kubernetes/aio/client/models/v1_pod_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -23,6 +23,7 @@ from kubernetes.aio.client.models.v1_affinity import V1Affinity from kubernetes.aio.client.models.v1_container import V1Container from kubernetes.aio.client.models.v1_ephemeral_container import V1EphemeralContainer +from kubernetes.aio.client.models.v1_eviction_responder import V1EvictionResponder from kubernetes.aio.client.models.v1_host_alias import V1HostAlias from kubernetes.aio.client.models.v1_local_object_reference import V1LocalObjectReference from kubernetes.aio.client.models.v1_pod_dns_config import V1PodDNSConfig @@ -127,20 +128,21 @@ class V1PodSpec(BaseModel): dns_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("dnsPolicy", "dns_policy"), serialization_alias="dnsPolicy", description="Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.") enable_service_links: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("enableServiceLinks", "enable_service_links"), serialization_alias="enableServiceLinks", description="EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.") ephemeral_containers: Optional[List[V1EphemeralContainer]] = Field(default=None, validation_alias=AliasChoices("ephemeralContainers", "ephemeral_containers"), serialization_alias="ephemeralContainers", description="List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.") + eviction_responders: Optional[List[V1EvictionResponder]] = Field(default=None, validation_alias=AliasChoices("evictionResponders", "eviction_responders"), serialization_alias="evictionResponders", description="evictionResponders reference responders that react to Evictions based on EvictionRequests. Responders should observe and communicate through the Eviction Resource API to help with the graceful termination of a pod. The responders are selected sequentially, according to their specified priority. Responders should periodically report on an eviction progress by updating the .status.responders[].heartbeatTime field of the Eviction object. If this field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there is no other responder, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource). The maximum length of the responders list is 10. Responders are not supported when the pod is part of a PodGroup (.spec.schedulingGroup is set). This field can only be set on creation and is immutable afterwards.") host_aliases: Optional[List[V1HostAlias]] = Field(default=None, validation_alias=AliasChoices("hostAliases", "host_aliases"), serialization_alias="hostAliases", description="HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.") host_ipc: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("hostIPC", "host_ipc"), serialization_alias="hostIPC", description="Use the host's ipc namespace. Optional: Default to false.") host_network: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("hostNetwork", "host_network"), serialization_alias="hostNetwork", description="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.") host_pid: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("hostPID", "host_pid"), serialization_alias="hostPID", description="Use the host's pid namespace. Optional: Default to false.") host_users: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("hostUsers", "host_users"), serialization_alias="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.") hostname: Optional[StrictStr] = Field(default=None, description="Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.") - hostname_override: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("hostnameOverride", "hostname_override"), serialization_alias="hostnameOverride", description="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.") + hostname_override: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("hostnameOverride", "hostname_override"), serialization_alias="hostnameOverride", description="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.") image_pull_secrets: Optional[List[V1LocalObjectReference]] = Field(default=None, validation_alias=AliasChoices("imagePullSecrets", "image_pull_secrets"), serialization_alias="imagePullSecrets", description="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") init_containers: Optional[List[V1Container]] = Field(default=None, validation_alias=AliasChoices("initContainers", "init_containers"), serialization_alias="initContainers", description="List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/") node_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("nodeName", "node_name"), serialization_alias="nodeName", description="NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename") node_selector: Optional[Dict[str, StrictStr]] = Field(default=None, validation_alias=AliasChoices("nodeSelector", "node_selector"), serialization_alias="nodeSelector", description="NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/") os: Optional[V1PodOS] = None overhead: Optional[Dict[str, StrictStr]] = Field(default=None, description="Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md") - preemption_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preemptionPolicy", "preemption_policy"), serialization_alias="preemptionPolicy", description="PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.") + preemption_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preemptionPolicy", "preemption_policy"), serialization_alias="preemptionPolicy", description="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.") priority: Optional[StrictInt] = Field(default=None, description="The priority value. Various system components use this field to find the priority of the pod. 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.") priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="priorityClassName", description="If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.") readiness_gates: Optional[List[V1PodReadinessGate]] = Field(default=None, validation_alias=AliasChoices("readinessGates", "readiness_gates"), serialization_alias="readinessGates", description="If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates") @@ -170,6 +172,7 @@ class V1PodSpec(BaseModel): "dns_policy": "str", "enable_service_links": "bool", "ephemeral_containers": "List[V1EphemeralContainer]", + "eviction_responders": "List[V1EvictionResponder]", "host_aliases": "List[V1HostAlias]", "host_ipc": "bool", "host_network": "bool", @@ -215,6 +218,7 @@ class V1PodSpec(BaseModel): "dns_policy": "dnsPolicy", "enable_service_links": "enableServiceLinks", "ephemeral_containers": "ephemeralContainers", + "eviction_responders": "evictionResponders", "host_aliases": "hostAliases", "host_ipc": "hostIPC", "host_network": "hostNetwork", @@ -250,7 +254,7 @@ class V1PodSpec(BaseModel): "topology_spread_constraints": "topologySpreadConstraints", "volumes": "volumes" } - __properties: ClassVar[List[str]] = ["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"] + __properties: ClassVar[List[str]] = ["activeDeadlineSeconds", "affinity", "automountServiceAccountToken", "containers", "dnsConfig", "dnsPolicy", "enableServiceLinks", "ephemeralContainers", "evictionResponders", "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"] @classmethod def __preprocess_input_names( @@ -279,6 +283,9 @@ def __preprocess_input_names( if "ephemeralContainers" not in obj and "ephemeral_containers" in obj: obj["ephemeralContainers"] = obj["ephemeral_containers"] obj.pop("ephemeral_containers", None) + if "evictionResponders" not in obj and "eviction_responders" in obj: + obj["evictionResponders"] = obj["eviction_responders"] + obj.pop("eviction_responders", None) if "hostAliases" not in obj and "host_aliases" in obj: obj["hostAliases"] = obj["host_aliases"] obj.pop("host_aliases", None) @@ -414,6 +421,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("dnsPolicy" if serialize else "dns_policy"): _to_legacy_value(getattr(self, "dns_policy", None), serialize), ("enableServiceLinks" if serialize else "enable_service_links"): _to_legacy_value(getattr(self, "enable_service_links", None), serialize), ("ephemeralContainers" if serialize else "ephemeral_containers"): _to_legacy_value(getattr(self, "ephemeral_containers", None), serialize), + ("evictionResponders" if serialize else "eviction_responders"): _to_legacy_value(getattr(self, "eviction_responders", None), serialize), ("hostAliases" if serialize else "host_aliases"): _to_legacy_value(getattr(self, "host_aliases", None), serialize), ("hostIPC" if serialize else "host_ipc"): _to_legacy_value(getattr(self, "host_ipc", None), serialize), ("hostNetwork" if serialize else "host_network"): _to_legacy_value(getattr(self, "host_network", None), serialize), @@ -486,6 +494,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: for _item_ephemeral_containers in self.ephemeral_containers: _items.append(_to_openapi_value(_item_ephemeral_containers) if _item_ephemeral_containers is not None else None) _dict['ephemeralContainers'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in eviction_responders (list) + _items = [] + if self.eviction_responders: + for _item_eviction_responders in self.eviction_responders: + _items.append(_to_openapi_value(_item_eviction_responders) if _item_eviction_responders is not None else None) + _dict['evictionResponders'] = _items # override the default output from pydantic by calling `to_dict()` of each item in host_aliases (list) _items = [] if self.host_aliases: @@ -592,6 +606,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "dnsPolicy": obj.get("dnsPolicy"), "enableServiceLinks": obj.get("enableServiceLinks"), "ephemeralContainers": [V1EphemeralContainer.from_dict(_item) for _item in obj["ephemeralContainers"]] if obj.get("ephemeralContainers") is not None else None, + "evictionResponders": [V1EvictionResponder.from_dict(_item) for _item in obj["evictionResponders"]] if obj.get("evictionResponders") is not None else None, "hostAliases": [V1HostAlias.from_dict(_item) for _item in obj["hostAliases"]] if obj.get("hostAliases") is not None else None, "hostIPC": obj.get("hostIPC"), "hostNetwork": obj.get("hostNetwork"), diff --git a/kubernetes/aio/client/models/v1_pod_status.py b/kubernetes/aio/client/models/v1_pod_status.py index a7013108a9..6f65ca8c11 100644 --- a/kubernetes/aio/client/models/v1_pod_status.py +++ b/kubernetes/aio/client/models/v1_pod_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -28,6 +28,7 @@ from kubernetes.aio.client.models.v1_pod_extended_resource_claim_status import V1PodExtendedResourceClaimStatus from kubernetes.aio.client.models.v1_pod_ip import V1PodIP from kubernetes.aio.client.models.v1_pod_resource_claim_status import V1PodResourceClaimStatus +from kubernetes.aio.client.models.v1_pod_volume_health import V1PodVolumeHealth from kubernetes.aio.client.models.v1_resource_requirements import V1ResourceRequirements from typing import Optional, Set from typing_extensions import Self @@ -133,6 +134,7 @@ class V1PodStatus(BaseModel): resource_claim_statuses: Optional[List[V1PodResourceClaimStatus]] = Field(default=None, validation_alias=AliasChoices("resourceClaimStatuses", "resource_claim_statuses"), serialization_alias="resourceClaimStatuses", description="Status of resource claims.") resources: Optional[V1ResourceRequirements] = None start_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("startTime", "start_time"), serialization_alias="startTime", description="RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.") + volume_health: Optional[List[V1PodVolumeHealth]] = Field(default=None, validation_alias=AliasChoices("volumeHealth", "volume_health"), serialization_alias="volumeHealth", description="volumeHealth contains node-reported health for each volume the pod is using. Populated by the kubelet on the pod's node.") openapi_types: ClassVar[Dict[str, str]] = { "allocated_resources": "Dict[str, str]", "conditions": "List[V1PodCondition]", @@ -154,7 +156,8 @@ class V1PodStatus(BaseModel): "resize": "str", "resource_claim_statuses": "List[V1PodResourceClaimStatus]", "resources": "V1ResourceRequirements", - "start_time": "datetime" + "start_time": "datetime", + "volume_health": "List[V1PodVolumeHealth]" } attribute_map: ClassVar[Dict[str, str]] = { @@ -178,9 +181,10 @@ class V1PodStatus(BaseModel): "resize": "resize", "resource_claim_statuses": "resourceClaimStatuses", "resources": "resources", - "start_time": "startTime" + "start_time": "startTime", + "volume_health": "volumeHealth" } - __properties: ClassVar[List[str]] = ["allocatedResources", "conditions", "containerStatuses", "ephemeralContainerStatuses", "extendedResourceClaimStatus", "hostIP", "hostIPs", "initContainerStatuses", "message", "nodeAllocatableResourceClaimStatuses", "nominatedNodeName", "observedGeneration", "phase", "podIP", "podIPs", "qosClass", "reason", "resize", "resourceClaimStatuses", "resources", "startTime"] + __properties: ClassVar[List[str]] = ["allocatedResources", "conditions", "containerStatuses", "ephemeralContainerStatuses", "extendedResourceClaimStatus", "hostIP", "hostIPs", "initContainerStatuses", "message", "nodeAllocatableResourceClaimStatuses", "nominatedNodeName", "observedGeneration", "phase", "podIP", "podIPs", "qosClass", "reason", "resize", "resourceClaimStatuses", "resources", "startTime", "volumeHealth"] @classmethod def __preprocess_input_names( @@ -236,6 +240,9 @@ def __preprocess_input_names( if "startTime" not in obj and "start_time" in obj: obj["startTime"] = obj["start_time"] obj.pop("start_time", None) + if "volumeHealth" not in obj and "volume_health" in obj: + obj["volumeHealth"] = obj["volume_health"] + obj.pop("volume_health", None) return obj model_config = ConfigDict( @@ -306,6 +313,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("resourceClaimStatuses" if serialize else "resource_claim_statuses"): _to_legacy_value(getattr(self, "resource_claim_statuses", None), serialize), ("resources" if serialize else "resources"): _to_legacy_value(getattr(self, "resources", None), serialize), ("startTime" if serialize else "start_time"): _to_legacy_value(getattr(self, "start_time", None), serialize), + ("volumeHealth" if serialize else "volume_health"): _to_legacy_value(getattr(self, "volume_health", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -380,6 +388,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of resources if self.resources: _dict['resources'] = _to_openapi_value(self.resources) + # override the default output from pydantic by calling `to_dict()` of each item in volume_health (list) + _items = [] + if self.volume_health: + for _item_volume_health in self.volume_health: + _items.append(_to_openapi_value(_item_volume_health) if _item_volume_health is not None else None) + _dict['volumeHealth'] = _items return _dict setattr( @@ -432,6 +446,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "resize": obj.get("resize"), "resourceClaimStatuses": [V1PodResourceClaimStatus.from_dict(_item) for _item in obj["resourceClaimStatuses"]] if obj.get("resourceClaimStatuses") is not None else None, "resources": V1ResourceRequirements.from_dict(obj["resources"]) if obj.get("resources") is not None else None, - "startTime": obj.get("startTime") + "startTime": obj.get("startTime"), + "volumeHealth": [V1PodVolumeHealth.from_dict(_item) for _item in obj["volumeHealth"]] if obj.get("volumeHealth") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1_pod_template.py b/kubernetes/aio/client/models/v1_pod_template.py index 61a7af2d81..6a786e2617 100644 --- a/kubernetes/aio/client/models/v1_pod_template.py +++ b/kubernetes/aio/client/models/v1_pod_template.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_template_list.py b/kubernetes/aio/client/models/v1_pod_template_list.py index 4f076d8f22..a4b88d12f7 100644 --- a/kubernetes/aio/client/models/v1_pod_template_list.py +++ b/kubernetes/aio/client/models/v1_pod_template_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_template_spec.py b/kubernetes/aio/client/models/v1_pod_template_spec.py index b543f1dc07..4eb45e0fd0 100644 --- a/kubernetes/aio/client/models/v1_pod_template_spec.py +++ b/kubernetes/aio/client/models/v1_pod_template_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_pod_volume_health.py b/kubernetes/aio/client/models/v1_pod_volume_health.py new file mode 100644 index 0000000000..fa36bea046 --- /dev/null +++ b/kubernetes/aio/client/models/v1_pod_volume_health.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from datetime import datetime +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_volume_health_condition import V1VolumeHealthCondition +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1PodVolumeHealth(BaseModel): + """ + PodVolumeHealth contains health information for a volume used by a pod, reported by the CSI node plugin via the kubelet. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + health_conditions: Optional[List[V1VolumeHealthCondition]] = Field(default=None, validation_alias=AliasChoices("healthConditions", "health_conditions"), serialization_alias="healthConditions", description="conditions is the set of adverse conditions reported by the CSI node plugin for this volume on this node. At most 16 conditions may be reported.") + last_transition_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastTransitionTime", "last_transition_time"), serialization_alias="lastTransitionTime", description="lastTransitionTime is when the current set of conditions first appeared.") + name: StrictStr = Field(description="name matches an entry in pod.spec.volumes.") + openapi_types: ClassVar[Dict[str, str]] = { + "health_conditions": "List[V1VolumeHealthCondition]", + "last_transition_time": "datetime", + "name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "health_conditions": "healthConditions", + "last_transition_time": "lastTransitionTime", + "name": "name" + } + __properties: ClassVar[List[str]] = ["healthConditions", "lastTransitionTime", "name"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "healthConditions" not in obj and "health_conditions" in obj: + obj["healthConditions"] = obj["health_conditions"] + obj.pop("health_conditions", None) + if "lastTransitionTime" not in obj and "last_transition_time" in obj: + obj["lastTransitionTime"] = obj["last_transition_time"] + obj.pop("last_transition_time", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1PodVolumeHealth): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodVolumeHealth): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1PodVolumeHealth from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("healthConditions" if serialize else "health_conditions"): _to_legacy_value(getattr(self, "health_conditions", None), serialize), + ("lastTransitionTime" if serialize else "last_transition_time"): _to_legacy_value(getattr(self, "last_transition_time", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in health_conditions (list) + _items = [] + if self.health_conditions: + for _item_health_conditions in self.health_conditions: + _items.append(_to_openapi_value(_item_health_conditions) if _item_health_conditions is not None else None) + _dict['healthConditions'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1PodVolumeHealth from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "healthConditions": [V1VolumeHealthCondition.from_dict(_item) for _item in obj["healthConditions"]] if obj.get("healthConditions") is not None else None, + "lastTransitionTime": obj.get("lastTransitionTime"), + "name": obj.get("name") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_policy_rule.py b/kubernetes/aio/client/models/v1_policy_rule.py index 72215feffe..f56df5a070 100644 --- a/kubernetes/aio/client/models/v1_policy_rule.py +++ b/kubernetes/aio/client/models/v1_policy_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -103,11 +103,11 @@ class V1PolicyRule(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - api_groups: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("apiGroups", "api_groups"), serialization_alias="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. \"\" represents the core API group and \"*\" represents all API groups.") - non_resource_urls: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("nonResourceURLs", "non_resource_urls"), serialization_alias="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 Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.") - resource_names: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("resourceNames", "resource_names"), serialization_alias="resourceNames", description="ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") - resources: Optional[List[StrictStr]] = Field(default=None, description="Resources is a list of resources this rule applies to. '*' represents all resources.") - verbs: List[StrictStr] = Field(description="Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.") + api_groups: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("apiGroups", "api_groups"), serialization_alias="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. \"\" represents the core API group and \"*\" represents all API groups.") + non_resource_urls: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("nonResourceURLs", "non_resource_urls"), serialization_alias="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 Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.") + resource_names: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("resourceNames", "resource_names"), serialization_alias="resourceNames", description="resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") + resources: Optional[List[StrictStr]] = Field(default=None, description="resources is a list of resources this rule applies to. '*' represents all resources.") + verbs: List[StrictStr] = Field(description="verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.") openapi_types: ClassVar[Dict[str, str]] = { "api_groups": "List[str]", "non_resource_urls": "List[str]", diff --git a/kubernetes/aio/client/models/v1_policy_rules_with_subjects.py b/kubernetes/aio/client/models/v1_policy_rules_with_subjects.py index 3ba313bb6c..81384dd08c 100644 --- a/kubernetes/aio/client/models/v1_policy_rules_with_subjects.py +++ b/kubernetes/aio/client/models/v1_policy_rules_with_subjects.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_port_status.py b/kubernetes/aio/client/models/v1_port_status.py index 60da0a145c..ef18c7f023 100644 --- a/kubernetes/aio/client/models/v1_port_status.py +++ b/kubernetes/aio/client/models/v1_port_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_portworx_volume_source.py b/kubernetes/aio/client/models/v1_portworx_volume_source.py index e5554cec76..df1e32333c 100644 --- a/kubernetes/aio/client/models/v1_portworx_volume_source.py +++ b/kubernetes/aio/client/models/v1_portworx_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_preconditions.py b/kubernetes/aio/client/models/v1_preconditions.py index ba3608c07c..464be0f68b 100644 --- a/kubernetes/aio/client/models/v1_preconditions.py +++ b/kubernetes/aio/client/models/v1_preconditions.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_preferred_scheduling_term.py b/kubernetes/aio/client/models/v1_preferred_scheduling_term.py index 2c99732327..5e738c2ef6 100644 --- a/kubernetes/aio/client/models/v1_preferred_scheduling_term.py +++ b/kubernetes/aio/client/models/v1_preferred_scheduling_term.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_priority_class.py b/kubernetes/aio/client/models/v1_priority_class.py index fdaba36a8f..2a280c634c 100644 --- a/kubernetes/aio/client/models/v1_priority_class.py +++ b/kubernetes/aio/client/models/v1_priority_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_priority_class_list.py b/kubernetes/aio/client/models/v1_priority_class_list.py index f8d5d81a94..3d6d2e6d10 100644 --- a/kubernetes/aio/client/models/v1_priority_class_list.py +++ b/kubernetes/aio/client/models/v1_priority_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_priority_level_configuration.py b/kubernetes/aio/client/models/v1_priority_level_configuration.py index 9a70b895cb..43d3e6bb34 100644 --- a/kubernetes/aio/client/models/v1_priority_level_configuration.py +++ b/kubernetes/aio/client/models/v1_priority_level_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,7 +109,7 @@ class V1PriorityLevelConfiguration(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: Optional[V1PriorityLevelConfigurationSpec] = None + spec: V1PriorityLevelConfigurationSpec status: Optional[V1PriorityLevelConfigurationStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", diff --git a/kubernetes/aio/client/models/v1_priority_level_configuration_condition.py b/kubernetes/aio/client/models/v1_priority_level_configuration_condition.py index 120157849b..c99da95a13 100644 --- a/kubernetes/aio/client/models/v1_priority_level_configuration_condition.py +++ b/kubernetes/aio/client/models/v1_priority_level_configuration_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -107,8 +107,8 @@ class V1PriorityLevelConfigurationCondition(BaseModel): last_transition_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastTransitionTime", "last_transition_time"), serialization_alias="lastTransitionTime", description="`lastTransitionTime` is the last time the condition transitioned from one status to another.") message: Optional[StrictStr] = Field(default=None, description="`message` is a human-readable message indicating details about last transition.") reason: Optional[StrictStr] = Field(default=None, description="`reason` is a unique, one-word, CamelCase reason for the condition's last transition.") - status: Optional[StrictStr] = Field(default=None, description="`status` is the status of the condition. Can be True, False, Unknown. Required.") - type: Optional[StrictStr] = Field(default=None, description="`type` is the type of the condition. Required.") + status: Optional[StrictStr] = Field(default=None, description="`status` is the status of the condition. Should be specified and set to one of True, False, Unknown.") + type: StrictStr = Field(description="`type` is the type of the condition. Required.") openapi_types: ClassVar[Dict[str, str]] = { "last_transition_time": "datetime", "message": "str", diff --git a/kubernetes/aio/client/models/v1_priority_level_configuration_list.py b/kubernetes/aio/client/models/v1_priority_level_configuration_list.py index 8360e61b46..173440df31 100644 --- a/kubernetes/aio/client/models/v1_priority_level_configuration_list.py +++ b/kubernetes/aio/client/models/v1_priority_level_configuration_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_priority_level_configuration_reference.py b/kubernetes/aio/client/models/v1_priority_level_configuration_reference.py index 341107ad86..22e52bf36a 100644 --- a/kubernetes/aio/client/models/v1_priority_level_configuration_reference.py +++ b/kubernetes/aio/client/models/v1_priority_level_configuration_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_priority_level_configuration_spec.py b/kubernetes/aio/client/models/v1_priority_level_configuration_spec.py index f0e6bff1f0..200c04cd03 100644 --- a/kubernetes/aio/client/models/v1_priority_level_configuration_spec.py +++ b/kubernetes/aio/client/models/v1_priority_level_configuration_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_priority_level_configuration_status.py b/kubernetes/aio/client/models/v1_priority_level_configuration_status.py index 4a01a79cd7..df758125a8 100644 --- a/kubernetes/aio/client/models/v1_priority_level_configuration_status.py +++ b/kubernetes/aio/client/models/v1_priority_level_configuration_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_probe.py b/kubernetes/aio/client/models/v1_probe.py index 87a66eb566..3ad7a7aa28 100644 --- a/kubernetes/aio/client/models/v1_probe.py +++ b/kubernetes/aio/client/models/v1_probe.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_projected_volume_source.py b/kubernetes/aio/client/models/v1_projected_volume_source.py index 3f647137df..c60c39bdcb 100644 --- a/kubernetes/aio/client/models/v1_projected_volume_source.py +++ b/kubernetes/aio/client/models/v1_projected_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,17 +105,20 @@ class V1ProjectedVolumeSource(BaseModel): and the value is json key in definition. """ # noqa: E501 default_mode: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("defaultMode", "default_mode"), serialization_alias="defaultMode", description="defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") + default_user: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("defaultUser", "default_user"), serialization_alias="defaultUser", description="defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") sources: Optional[List[V1VolumeProjection]] = Field(default=None, description="sources is the list of volume projections. Each entry in this list handles one source.") openapi_types: ClassVar[Dict[str, str]] = { "default_mode": "int", + "default_user": "int", "sources": "List[V1VolumeProjection]" } attribute_map: ClassVar[Dict[str, str]] = { "default_mode": "defaultMode", + "default_user": "defaultUser", "sources": "sources" } - __properties: ClassVar[List[str]] = ["defaultMode", "sources"] + __properties: ClassVar[List[str]] = ["defaultMode", "defaultUser", "sources"] @classmethod def __preprocess_input_names( @@ -129,6 +132,9 @@ def __preprocess_input_names( if "defaultMode" not in obj and "default_mode" in obj: obj["defaultMode"] = obj["default_mode"] obj.pop("default_mode", None) + if "defaultUser" not in obj and "default_user" in obj: + obj["defaultUser"] = obj["default_user"] + obj.pop("default_user", None) return obj model_config = ConfigDict( @@ -179,6 +185,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { ("defaultMode" if serialize else "default_mode"): _to_legacy_value(getattr(self, "default_mode", None), serialize), + ("defaultUser" if serialize else "default_user"): _to_legacy_value(getattr(self, "default_user", None), serialize), ("sources" if serialize else "sources"): _to_legacy_value(getattr(self, "sources", None), serialize), } @@ -239,6 +246,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "defaultMode": obj.get("defaultMode"), + "defaultUser": obj.get("defaultUser"), "sources": [V1VolumeProjection.from_dict(_item) for _item in obj["sources"]] if obj.get("sources") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1_queuing_configuration.py b/kubernetes/aio/client/models/v1_queuing_configuration.py index 8b14d7a0aa..3bf8ee6e2b 100644 --- a/kubernetes/aio/client/models/v1_queuing_configuration.py +++ b/kubernetes/aio/client/models/v1_queuing_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_quobyte_volume_source.py b/kubernetes/aio/client/models/v1_quobyte_volume_source.py index 57b837543d..1631e7452b 100644 --- a/kubernetes/aio/client/models/v1_quobyte_volume_source.py +++ b/kubernetes/aio/client/models/v1_quobyte_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_rbd_persistent_volume_source.py b/kubernetes/aio/client/models/v1_rbd_persistent_volume_source.py index 5976a4d98b..404821b283 100644 --- a/kubernetes/aio/client/models/v1_rbd_persistent_volume_source.py +++ b/kubernetes/aio/client/models/v1_rbd_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_rbd_volume_source.py b/kubernetes/aio/client/models/v1_rbd_volume_source.py index 910b588f47..44d8714d3d 100644 --- a/kubernetes/aio/client/models/v1_rbd_volume_source.py +++ b/kubernetes/aio/client/models/v1_rbd_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_replica_set.py b/kubernetes/aio/client/models/v1_replica_set.py index ee69ae57e7..c643bf7076 100644 --- a/kubernetes/aio/client/models/v1_replica_set.py +++ b/kubernetes/aio/client/models/v1_replica_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,7 +109,7 @@ class V1ReplicaSet(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: Optional[V1ReplicaSetSpec] = None + spec: V1ReplicaSetSpec status: Optional[V1ReplicaSetStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", diff --git a/kubernetes/aio/client/models/v1_replica_set_condition.py b/kubernetes/aio/client/models/v1_replica_set_condition.py index b312a71e7f..a64a0300a7 100644 --- a/kubernetes/aio/client/models/v1_replica_set_condition.py +++ b/kubernetes/aio/client/models/v1_replica_set_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -107,8 +107,8 @@ class V1ReplicaSetCondition(BaseModel): last_transition_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastTransitionTime", "last_transition_time"), serialization_alias="lastTransitionTime", description="The last time the condition transitioned from one status to another.") message: Optional[StrictStr] = Field(default=None, description="A human readable message indicating details about the transition.") reason: Optional[StrictStr] = Field(default=None, description="The reason for the condition's last transition.") - status: StrictStr = Field(description="Status of the condition, one of True, False, Unknown.") - type: StrictStr = Field(description="Type of replica set condition.") + status: Optional[StrictStr] = Field(default=None, description="Status of the condition, one of True, False, Unknown.") + type: Optional[StrictStr] = Field(default=None, description="Type of replica set condition.") openapi_types: ClassVar[Dict[str, str]] = { "last_transition_time": "datetime", "message": "str", diff --git a/kubernetes/aio/client/models/v1_replica_set_list.py b/kubernetes/aio/client/models/v1_replica_set_list.py index 282333611e..f9483f1772 100644 --- a/kubernetes/aio/client/models/v1_replica_set_list.py +++ b/kubernetes/aio/client/models/v1_replica_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_replica_set_spec.py b/kubernetes/aio/client/models/v1_replica_set_spec.py index 046873ebfa..4ebcc18f57 100644 --- a/kubernetes/aio/client/models/v1_replica_set_spec.py +++ b/kubernetes/aio/client/models/v1_replica_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_replica_set_status.py b/kubernetes/aio/client/models/v1_replica_set_status.py index f2697df65f..7aabdcb31c 100644 --- a/kubernetes/aio/client/models/v1_replica_set_status.py +++ b/kubernetes/aio/client/models/v1_replica_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_replication_controller.py b/kubernetes/aio/client/models/v1_replication_controller.py index ddc94c4852..6cceec9296 100644 --- a/kubernetes/aio/client/models/v1_replication_controller.py +++ b/kubernetes/aio/client/models/v1_replication_controller.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_replication_controller_condition.py b/kubernetes/aio/client/models/v1_replication_controller_condition.py index b6648e7eac..640c824fa5 100644 --- a/kubernetes/aio/client/models/v1_replication_controller_condition.py +++ b/kubernetes/aio/client/models/v1_replication_controller_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_replication_controller_list.py b/kubernetes/aio/client/models/v1_replication_controller_list.py index e8c78dc15d..e4bbdf0129 100644 --- a/kubernetes/aio/client/models/v1_replication_controller_list.py +++ b/kubernetes/aio/client/models/v1_replication_controller_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_replication_controller_spec.py b/kubernetes/aio/client/models/v1_replication_controller_spec.py index 4dc2d6f5fd..1623574122 100644 --- a/kubernetes/aio/client/models/v1_replication_controller_spec.py +++ b/kubernetes/aio/client/models/v1_replication_controller_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_replication_controller_status.py b/kubernetes/aio/client/models/v1_replication_controller_status.py index f8f6ee03b1..2943b24ab2 100644 --- a/kubernetes/aio/client/models/v1_replication_controller_status.py +++ b/kubernetes/aio/client/models/v1_replication_controller_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_resource_attributes.py b/kubernetes/aio/client/models/v1_resource_attributes.py index 5534ff74af..cfd18cec1b 100644 --- a/kubernetes/aio/client/models/v1_resource_attributes.py +++ b/kubernetes/aio/client/models/v1_resource_attributes.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_resource_claim_consumer_reference.py b/kubernetes/aio/client/models/v1_resource_claim_consumer_reference.py index c7535d6c14..8909a0a879 100644 --- a/kubernetes/aio/client/models/v1_resource_claim_consumer_reference.py +++ b/kubernetes/aio/client/models/v1_resource_claim_consumer_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_resource_claim_list.py b/kubernetes/aio/client/models/v1_resource_claim_list.py index f1c2270b98..bd6b5d3207 100644 --- a/kubernetes/aio/client/models/v1_resource_claim_list.py +++ b/kubernetes/aio/client/models/v1_resource_claim_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_resource_claim_spec.py b/kubernetes/aio/client/models/v1_resource_claim_spec.py index 21646ac00e..7c9188e53a 100644 --- a/kubernetes/aio/client/models/v1_resource_claim_spec.py +++ b/kubernetes/aio/client/models/v1_resource_claim_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_resource_claim_status.py b/kubernetes/aio/client/models/v1_resource_claim_status.py index 6ce806e5d2..8a67e49c28 100644 --- a/kubernetes/aio/client/models/v1_resource_claim_status.py +++ b/kubernetes/aio/client/models/v1_resource_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_resource_claim_template.py b/kubernetes/aio/client/models/v1_resource_claim_template.py index 22de65e2b3..0b7d782328 100644 --- a/kubernetes/aio/client/models/v1_resource_claim_template.py +++ b/kubernetes/aio/client/models/v1_resource_claim_template.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,7 +108,7 @@ class V1ResourceClaimTemplate(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1ResourceClaimTemplateSpec + spec: Optional[V1ResourceClaimTemplateSpec] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", diff --git a/kubernetes/aio/client/models/v1_resource_claim_template_list.py b/kubernetes/aio/client/models/v1_resource_claim_template_list.py index f534c4565b..ad4e08074e 100644 --- a/kubernetes/aio/client/models/v1_resource_claim_template_list.py +++ b/kubernetes/aio/client/models/v1_resource_claim_template_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_resource_claim_template_spec.py b/kubernetes/aio/client/models/v1_resource_claim_template_spec.py index fa6551954e..a9f3202c50 100644 --- a/kubernetes/aio/client/models/v1_resource_claim_template_spec.py +++ b/kubernetes/aio/client/models/v1_resource_claim_template_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,7 +105,7 @@ class V1ResourceClaimTemplateSpec(BaseModel): and the value is json key in definition. """ # noqa: E501 metadata: Optional[V1ObjectMeta] = None - spec: V1ResourceClaimSpec + spec: Optional[V1ResourceClaimSpec] = None openapi_types: ClassVar[Dict[str, str]] = { "metadata": "V1ObjectMeta", "spec": "V1ResourceClaimSpec" diff --git a/kubernetes/aio/client/models/v1_resource_field_selector.py b/kubernetes/aio/client/models/v1_resource_field_selector.py index b570f1485c..4c8ff82c36 100644 --- a/kubernetes/aio/client/models/v1_resource_field_selector.py +++ b/kubernetes/aio/client/models/v1_resource_field_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_resource_health.py b/kubernetes/aio/client/models/v1_resource_health.py index fcbb1db005..1f5c3ecf0e 100644 --- a/kubernetes/aio/client/models/v1_resource_health.py +++ b/kubernetes/aio/client/models/v1_resource_health.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_resource_policy_rule.py b/kubernetes/aio/client/models/v1_resource_policy_rule.py index 11e29a11c4..a2075c8d8a 100644 --- a/kubernetes/aio/client/models/v1_resource_policy_rule.py +++ b/kubernetes/aio/client/models/v1_resource_policy_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_resource_pool.py b/kubernetes/aio/client/models/v1_resource_pool.py index 6d26ef3953..4f7a43c136 100644 --- a/kubernetes/aio/client/models/v1_resource_pool.py +++ b/kubernetes/aio/client/models/v1_resource_pool.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -104,7 +104,7 @@ class V1ResourcePool(BaseModel): and the value is json key in definition. """ # noqa: E501 generation: StrictInt = Field(description="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.") - name: StrictStr = Field(description="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.") + name: StrictStr = Field(description="Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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.") resource_slice_count: StrictInt = Field(validation_alias=AliasChoices("resourceSliceCount", "resource_slice_count"), serialization_alias="resourceSliceCount", description="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.") openapi_types: ClassVar[Dict[str, str]] = { "generation": "int", diff --git a/kubernetes/aio/client/models/v1_resource_quota.py b/kubernetes/aio/client/models/v1_resource_quota.py index 88a82b1bef..3e2d4db1e8 100644 --- a/kubernetes/aio/client/models/v1_resource_quota.py +++ b/kubernetes/aio/client/models/v1_resource_quota.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_resource_quota_list.py b/kubernetes/aio/client/models/v1_resource_quota_list.py index 63441a511c..c5c7c69b13 100644 --- a/kubernetes/aio/client/models/v1_resource_quota_list.py +++ b/kubernetes/aio/client/models/v1_resource_quota_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_resource_quota_spec.py b/kubernetes/aio/client/models/v1_resource_quota_spec.py index 6e7334108e..a66cda1d78 100644 --- a/kubernetes/aio/client/models/v1_resource_quota_spec.py +++ b/kubernetes/aio/client/models/v1_resource_quota_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_resource_quota_status.py b/kubernetes/aio/client/models/v1_resource_quota_status.py index b7ba506344..a170899577 100644 --- a/kubernetes/aio/client/models/v1_resource_quota_status.py +++ b/kubernetes/aio/client/models/v1_resource_quota_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_resource_requirements.py b/kubernetes/aio/client/models/v1_resource_requirements.py index 103a899beb..3f8ea9cf60 100644 --- a/kubernetes/aio/client/models/v1_resource_requirements.py +++ b/kubernetes/aio/client/models/v1_resource_requirements.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_resource_rule.py b/kubernetes/aio/client/models/v1_resource_rule.py index 69ace14cbb..c18e371291 100644 --- a/kubernetes/aio/client/models/v1_resource_rule.py +++ b/kubernetes/aio/client/models/v1_resource_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_resource_slice.py b/kubernetes/aio/client/models/v1_resource_slice.py index 1ecce41a14..d56e0bcfac 100644 --- a/kubernetes/aio/client/models/v1_resource_slice.py +++ b/kubernetes/aio/client/models/v1_resource_slice.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_resource_slice_list.py b/kubernetes/aio/client/models/v1_resource_slice_list.py index 71a25cb81c..b555d9988f 100644 --- a/kubernetes/aio/client/models/v1_resource_slice_list.py +++ b/kubernetes/aio/client/models/v1_resource_slice_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_resource_slice_spec.py b/kubernetes/aio/client/models/v1_resource_slice_spec.py index 3e6819ee03..058c339597 100644 --- a/kubernetes/aio/client/models/v1_resource_slice_spec.py +++ b/kubernetes/aio/client/models/v1_resource_slice_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -112,18 +112,22 @@ class V1ResourceSliceSpec(BaseModel): driver: StrictStr = Field(description="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.") node_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("nodeName", "node_name"), serialization_alias="nodeName", description="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.") node_selector: Optional[V1NodeSelector] = Field(default=None, validation_alias=AliasChoices("nodeSelector", "node_selector"), serialization_alias="nodeSelector") + partition_type_attribute: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("partitionTypeAttribute", "partition_type_attribute"), serialization_alias="partitionTypeAttribute", description="PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.") per_device_node_selection: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("perDeviceNodeSelection", "per_device_node_selection"), serialization_alias="perDeviceNodeSelection", description="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.") pool: V1ResourcePool shared_counters: Optional[List[V1CounterSet]] = Field(default=None, validation_alias=AliasChoices("sharedCounters", "shared_counters"), serialization_alias="sharedCounters", description="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.") + skip_node_operations: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("skipNodeOperations", "skip_node_operations"), serialization_alias="skipNodeOperations", description="SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values.") openapi_types: ClassVar[Dict[str, str]] = { "all_nodes": "bool", "devices": "List[V1Device]", "driver": "str", "node_name": "str", "node_selector": "V1NodeSelector", + "partition_type_attribute": "str", "per_device_node_selection": "bool", "pool": "V1ResourcePool", - "shared_counters": "List[V1CounterSet]" + "shared_counters": "List[V1CounterSet]", + "skip_node_operations": "List[str]" } attribute_map: ClassVar[Dict[str, str]] = { @@ -132,11 +136,13 @@ class V1ResourceSliceSpec(BaseModel): "driver": "driver", "node_name": "nodeName", "node_selector": "nodeSelector", + "partition_type_attribute": "partitionTypeAttribute", "per_device_node_selection": "perDeviceNodeSelection", "pool": "pool", - "shared_counters": "sharedCounters" + "shared_counters": "sharedCounters", + "skip_node_operations": "skipNodeOperations" } - __properties: ClassVar[List[str]] = ["allNodes", "devices", "driver", "nodeName", "nodeSelector", "perDeviceNodeSelection", "pool", "sharedCounters"] + __properties: ClassVar[List[str]] = ["allNodes", "devices", "driver", "nodeName", "nodeSelector", "partitionTypeAttribute", "perDeviceNodeSelection", "pool", "sharedCounters", "skipNodeOperations"] @classmethod def __preprocess_input_names( @@ -156,12 +162,18 @@ def __preprocess_input_names( if "nodeSelector" not in obj and "node_selector" in obj: obj["nodeSelector"] = obj["node_selector"] obj.pop("node_selector", None) + if "partitionTypeAttribute" not in obj and "partition_type_attribute" in obj: + obj["partitionTypeAttribute"] = obj["partition_type_attribute"] + obj.pop("partition_type_attribute", None) if "perDeviceNodeSelection" not in obj and "per_device_node_selection" in obj: obj["perDeviceNodeSelection"] = obj["per_device_node_selection"] obj.pop("per_device_node_selection", None) if "sharedCounters" not in obj and "shared_counters" in obj: obj["sharedCounters"] = obj["shared_counters"] obj.pop("shared_counters", None) + if "skipNodeOperations" not in obj and "skip_node_operations" in obj: + obj["skipNodeOperations"] = obj["skip_node_operations"] + obj.pop("skip_node_operations", None) return obj model_config = ConfigDict( @@ -216,9 +228,11 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("driver" if serialize else "driver"): _to_legacy_value(getattr(self, "driver", None), serialize), ("nodeName" if serialize else "node_name"): _to_legacy_value(getattr(self, "node_name", None), serialize), ("nodeSelector" if serialize else "node_selector"): _to_legacy_value(getattr(self, "node_selector", None), serialize), + ("partitionTypeAttribute" if serialize else "partition_type_attribute"): _to_legacy_value(getattr(self, "partition_type_attribute", None), serialize), ("perDeviceNodeSelection" if serialize else "per_device_node_selection"): _to_legacy_value(getattr(self, "per_device_node_selection", None), serialize), ("pool" if serialize else "pool"): _to_legacy_value(getattr(self, "pool", None), serialize), ("sharedCounters" if serialize else "shared_counters"): _to_legacy_value(getattr(self, "shared_counters", None), serialize), + ("skipNodeOperations" if serialize else "skip_node_operations"): _to_legacy_value(getattr(self, "skip_node_operations", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -294,8 +308,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "driver": obj.get("driver"), "nodeName": obj.get("nodeName"), "nodeSelector": V1NodeSelector.from_dict(obj["nodeSelector"]) if obj.get("nodeSelector") is not None else None, + "partitionTypeAttribute": obj.get("partitionTypeAttribute"), "perDeviceNodeSelection": obj.get("perDeviceNodeSelection"), "pool": V1ResourcePool.from_dict(obj["pool"]) if obj.get("pool") is not None else None, - "sharedCounters": [V1CounterSet.from_dict(_item) for _item in obj["sharedCounters"]] if obj.get("sharedCounters") is not None else None + "sharedCounters": [V1CounterSet.from_dict(_item) for _item in obj["sharedCounters"]] if obj.get("sharedCounters") is not None else None, + "skipNodeOperations": obj.get("skipNodeOperations") }) return _obj diff --git a/kubernetes/aio/client/models/v1_resource_status.py b/kubernetes/aio/client/models/v1_resource_status.py index ed2496efae..e7f08952d3 100644 --- a/kubernetes/aio/client/models/v1_resource_status.py +++ b/kubernetes/aio/client/models/v1_resource_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -103,7 +103,7 @@ class V1ResourceStatus(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - name: StrictStr = Field(description="Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:/\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.") + name: StrictStr = Field(description="Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:/\" when container.resources.claims[*].request is set or \"claim:\" when container.resources.claims[*].request is empty. For DRA-backed extended resources, \"claim:/\" is used when the claim name and request name are recorded in pod.status.extendedResourceClaimStatus. When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.") resources: Optional[List[V1ResourceHealth]] = Field(default=None, description="List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases.") openapi_types: ClassVar[Dict[str, str]] = { "name": "str", diff --git a/kubernetes/aio/client/models/v1_role.py b/kubernetes/aio/client/models/v1_role.py index c8d485f361..699500b918 100644 --- a/kubernetes/aio/client/models/v1_role.py +++ b/kubernetes/aio/client/models/v1_role.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,7 +108,7 @@ class V1Role(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - rules: Optional[List[V1PolicyRule]] = Field(default=None, description="Rules holds all the PolicyRules for this Role") + rules: Optional[List[V1PolicyRule]] = Field(default=None, description="rules holds all the PolicyRules for this Role") openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", diff --git a/kubernetes/aio/client/models/v1_role_binding.py b/kubernetes/aio/client/models/v1_role_binding.py index f600484ec1..6ab07d991b 100644 --- a/kubernetes/aio/client/models/v1_role_binding.py +++ b/kubernetes/aio/client/models/v1_role_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -110,7 +110,7 @@ class V1RoleBinding(BaseModel): kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None role_ref: V1RoleRef = Field(validation_alias=AliasChoices("roleRef", "role_ref"), serialization_alias="roleRef") - subjects: Optional[List[RbacV1Subject]] = Field(default=None, description="Subjects holds references to the objects the role applies to.") + subjects: Optional[List[RbacV1Subject]] = Field(default=None, description="subjects holds references to the objects the role applies to.") openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", diff --git a/kubernetes/aio/client/models/v1_role_binding_list.py b/kubernetes/aio/client/models/v1_role_binding_list.py index 314ed592d9..e3179e58ac 100644 --- a/kubernetes/aio/client/models/v1_role_binding_list.py +++ b/kubernetes/aio/client/models/v1_role_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_role_list.py b/kubernetes/aio/client/models/v1_role_list.py index 628f0941b2..650fb92a7c 100644 --- a/kubernetes/aio/client/models/v1_role_list.py +++ b/kubernetes/aio/client/models/v1_role_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_role_ref.py b/kubernetes/aio/client/models/v1_role_ref.py index f55a758f72..f795fe539d 100644 --- a/kubernetes/aio/client/models/v1_role_ref.py +++ b/kubernetes/aio/client/models/v1_role_ref.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -103,9 +103,9 @@ class V1RoleRef(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - api_group: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiGroup", "api_group"), serialization_alias="apiGroup", description="APIGroup is the group for the resource being referenced") - kind: StrictStr = Field(description="Kind is the type of resource being referenced") - name: StrictStr = Field(description="Name is the name of resource being referenced") + api_group: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiGroup", "api_group"), serialization_alias="apiGroup", description="apiGroup is the group for the resource being referenced") + kind: StrictStr = Field(description="kind is the type of resource being referenced") + name: StrictStr = Field(description="name is the name of resource being referenced") openapi_types: ClassVar[Dict[str, str]] = { "api_group": "str", "kind": "str", diff --git a/kubernetes/aio/client/models/v1_rolling_update_daemon_set.py b/kubernetes/aio/client/models/v1_rolling_update_daemon_set.py index 9dec8dbe24..b5c84a2cc4 100644 --- a/kubernetes/aio/client/models/v1_rolling_update_daemon_set.py +++ b/kubernetes/aio/client/models/v1_rolling_update_daemon_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_rolling_update_deployment.py b/kubernetes/aio/client/models/v1_rolling_update_deployment.py index 6bdefb614a..706e494e2b 100644 --- a/kubernetes/aio/client/models/v1_rolling_update_deployment.py +++ b/kubernetes/aio/client/models/v1_rolling_update_deployment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_rolling_update_stateful_set_strategy.py b/kubernetes/aio/client/models/v1_rolling_update_stateful_set_strategy.py index 9f62214e39..ab2c7ce46f 100644 --- a/kubernetes/aio/client/models/v1_rolling_update_stateful_set_strategy.py +++ b/kubernetes/aio/client/models/v1_rolling_update_stateful_set_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_rule_with_operations.py b/kubernetes/aio/client/models/v1_rule_with_operations.py index ff64ed9d93..a8919e828a 100644 --- a/kubernetes/aio/client/models/v1_rule_with_operations.py +++ b/kubernetes/aio/client/models/v1_rule_with_operations.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_runtime_class.py b/kubernetes/aio/client/models/v1_runtime_class.py index 4da2fe7695..538e8d772e 100644 --- a/kubernetes/aio/client/models/v1_runtime_class.py +++ b/kubernetes/aio/client/models/v1_runtime_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_runtime_class_list.py b/kubernetes/aio/client/models/v1_runtime_class_list.py index 7965fa0841..57b4db9d68 100644 --- a/kubernetes/aio/client/models/v1_runtime_class_list.py +++ b/kubernetes/aio/client/models/v1_runtime_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_scale.py b/kubernetes/aio/client/models/v1_scale.py index b5bfb5f9e8..599d8104a9 100644 --- a/kubernetes/aio/client/models/v1_scale.py +++ b/kubernetes/aio/client/models/v1_scale.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_scale_io_persistent_volume_source.py b/kubernetes/aio/client/models/v1_scale_io_persistent_volume_source.py index 5f309f1c99..ccc065a1f4 100644 --- a/kubernetes/aio/client/models/v1_scale_io_persistent_volume_source.py +++ b/kubernetes/aio/client/models/v1_scale_io_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_scale_io_volume_source.py b/kubernetes/aio/client/models/v1_scale_io_volume_source.py index d9a0c9262b..9da370948e 100644 --- a/kubernetes/aio/client/models/v1_scale_io_volume_source.py +++ b/kubernetes/aio/client/models/v1_scale_io_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_scale_spec.py b/kubernetes/aio/client/models/v1_scale_spec.py index 6505e73367..6908e005b3 100644 --- a/kubernetes/aio/client/models/v1_scale_spec.py +++ b/kubernetes/aio/client/models/v1_scale_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_scale_status.py b/kubernetes/aio/client/models/v1_scale_status.py index b4a3e2b85d..043ee818dd 100644 --- a/kubernetes/aio/client/models/v1_scale_status.py +++ b/kubernetes/aio/client/models/v1_scale_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_scheduling.py b/kubernetes/aio/client/models/v1_scheduling.py index 088ac2f90a..a571304b64 100644 --- a/kubernetes/aio/client/models/v1_scheduling.py +++ b/kubernetes/aio/client/models/v1_scheduling.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_scope_selector.py b/kubernetes/aio/client/models/v1_scope_selector.py index ab7f9514fb..bb65e504cf 100644 --- a/kubernetes/aio/client/models/v1_scope_selector.py +++ b/kubernetes/aio/client/models/v1_scope_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_scoped_resource_selector_requirement.py b/kubernetes/aio/client/models/v1_scoped_resource_selector_requirement.py index 570f87f9ce..e7a67ac25c 100644 --- a/kubernetes/aio/client/models/v1_scoped_resource_selector_requirement.py +++ b/kubernetes/aio/client/models/v1_scoped_resource_selector_requirement.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_se_linux_options.py b/kubernetes/aio/client/models/v1_se_linux_options.py index 652a88954a..3a76a3ec8d 100644 --- a/kubernetes/aio/client/models/v1_se_linux_options.py +++ b/kubernetes/aio/client/models/v1_se_linux_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_seccomp_profile.py b/kubernetes/aio/client/models/v1_seccomp_profile.py index 18e8b1b0dd..b531095416 100644 --- a/kubernetes/aio/client/models/v1_seccomp_profile.py +++ b/kubernetes/aio/client/models/v1_seccomp_profile.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_secret.py b/kubernetes/aio/client/models/v1_secret.py index cdac555e7c..4b22c76015 100644 --- a/kubernetes/aio/client/models/v1_secret.py +++ b/kubernetes/aio/client/models/v1_secret.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_secret_env_source.py b/kubernetes/aio/client/models/v1_secret_env_source.py index 06870f2d77..7cff1f38b2 100644 --- a/kubernetes/aio/client/models/v1_secret_env_source.py +++ b/kubernetes/aio/client/models/v1_secret_env_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_secret_key_selector.py b/kubernetes/aio/client/models/v1_secret_key_selector.py index 366c0d048c..2c3a8e6c1e 100644 --- a/kubernetes/aio/client/models/v1_secret_key_selector.py +++ b/kubernetes/aio/client/models/v1_secret_key_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_secret_list.py b/kubernetes/aio/client/models/v1_secret_list.py index f95fdeeeb1..efe8a151f1 100644 --- a/kubernetes/aio/client/models/v1_secret_list.py +++ b/kubernetes/aio/client/models/v1_secret_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_secret_projection.py b/kubernetes/aio/client/models/v1_secret_projection.py index 30cb1a48c6..b27eac5061 100644 --- a/kubernetes/aio/client/models/v1_secret_projection.py +++ b/kubernetes/aio/client/models/v1_secret_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_secret_reference.py b/kubernetes/aio/client/models/v1_secret_reference.py index a8a37aa1ed..e67fc9ec1c 100644 --- a/kubernetes/aio/client/models/v1_secret_reference.py +++ b/kubernetes/aio/client/models/v1_secret_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_secret_volume_source.py b/kubernetes/aio/client/models/v1_secret_volume_source.py index 0741c9653a..b7d34f31a1 100644 --- a/kubernetes/aio/client/models/v1_secret_volume_source.py +++ b/kubernetes/aio/client/models/v1_secret_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,11 +105,13 @@ class V1SecretVolumeSource(BaseModel): and the value is json key in definition. """ # noqa: E501 default_mode: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("defaultMode", "default_mode"), serialization_alias="defaultMode", description="defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") + default_user: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("defaultUser", "default_user"), serialization_alias="defaultUser", description="defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") items: Optional[List[V1KeyToPath]] = Field(default=None, description="items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.") optional: Optional[StrictBool] = Field(default=None, description="optional field specify whether the Secret or its keys must be defined") secret_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("secretName", "secret_name"), serialization_alias="secretName", description="secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret") openapi_types: ClassVar[Dict[str, str]] = { "default_mode": "int", + "default_user": "int", "items": "List[V1KeyToPath]", "optional": "bool", "secret_name": "str" @@ -117,11 +119,12 @@ class V1SecretVolumeSource(BaseModel): attribute_map: ClassVar[Dict[str, str]] = { "default_mode": "defaultMode", + "default_user": "defaultUser", "items": "items", "optional": "optional", "secret_name": "secretName" } - __properties: ClassVar[List[str]] = ["defaultMode", "items", "optional", "secretName"] + __properties: ClassVar[List[str]] = ["defaultMode", "defaultUser", "items", "optional", "secretName"] @classmethod def __preprocess_input_names( @@ -135,6 +138,9 @@ def __preprocess_input_names( if "defaultMode" not in obj and "default_mode" in obj: obj["defaultMode"] = obj["default_mode"] obj.pop("default_mode", None) + if "defaultUser" not in obj and "default_user" in obj: + obj["defaultUser"] = obj["default_user"] + obj.pop("default_user", None) if "secretName" not in obj and "secret_name" in obj: obj["secretName"] = obj["secret_name"] obj.pop("secret_name", None) @@ -188,6 +194,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { ("defaultMode" if serialize else "default_mode"): _to_legacy_value(getattr(self, "default_mode", None), serialize), + ("defaultUser" if serialize else "default_user"): _to_legacy_value(getattr(self, "default_user", None), serialize), ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), ("optional" if serialize else "optional"): _to_legacy_value(getattr(self, "optional", None), serialize), ("secretName" if serialize else "secret_name"): _to_legacy_value(getattr(self, "secret_name", None), serialize), @@ -250,6 +257,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "defaultMode": obj.get("defaultMode"), + "defaultUser": obj.get("defaultUser"), "items": [V1KeyToPath.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "optional": obj.get("optional"), "secretName": obj.get("secretName") diff --git a/kubernetes/aio/client/models/v1_security_context.py b/kubernetes/aio/client/models/v1_security_context.py index 2d5d7fab2f..df30fc65cc 100644 --- a/kubernetes/aio/client/models/v1_security_context.py +++ b/kubernetes/aio/client/models/v1_security_context.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_selectable_field.py b/kubernetes/aio/client/models/v1_selectable_field.py index 843462e941..c764f79825 100644 --- a/kubernetes/aio/client/models/v1_selectable_field.py +++ b/kubernetes/aio/client/models/v1_selectable_field.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_self_subject_access_review.py b/kubernetes/aio/client/models/v1_self_subject_access_review.py index 6f37d8ada6..ef3bfeea6a 100644 --- a/kubernetes/aio/client/models/v1_self_subject_access_review.py +++ b/kubernetes/aio/client/models/v1_self_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_self_subject_access_review_spec.py b/kubernetes/aio/client/models/v1_self_subject_access_review_spec.py index 18c4a43531..9c9d387dfe 100644 --- a/kubernetes/aio/client/models/v1_self_subject_access_review_spec.py +++ b/kubernetes/aio/client/models/v1_self_subject_access_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_self_subject_review.py b/kubernetes/aio/client/models/v1_self_subject_review.py index fd9a73bba0..0235996b93 100644 --- a/kubernetes/aio/client/models/v1_self_subject_review.py +++ b/kubernetes/aio/client/models/v1_self_subject_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_self_subject_review_status.py b/kubernetes/aio/client/models/v1_self_subject_review_status.py index 210d90fdd9..1edfaf11ea 100644 --- a/kubernetes/aio/client/models/v1_self_subject_review_status.py +++ b/kubernetes/aio/client/models/v1_self_subject_review_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_self_subject_rules_review.py b/kubernetes/aio/client/models/v1_self_subject_rules_review.py index 14cf6b3526..1dff3f0951 100644 --- a/kubernetes/aio/client/models/v1_self_subject_rules_review.py +++ b/kubernetes/aio/client/models/v1_self_subject_rules_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_self_subject_rules_review_spec.py b/kubernetes/aio/client/models/v1_self_subject_rules_review_spec.py index 97e8c10fe3..eaa8a036b7 100644 --- a/kubernetes/aio/client/models/v1_self_subject_rules_review_spec.py +++ b/kubernetes/aio/client/models/v1_self_subject_rules_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_server_address_by_client_cidr.py b/kubernetes/aio/client/models/v1_server_address_by_client_cidr.py index 2ede384c0a..e556be1eda 100644 --- a/kubernetes/aio/client/models/v1_server_address_by_client_cidr.py +++ b/kubernetes/aio/client/models/v1_server_address_by_client_cidr.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_service.py b/kubernetes/aio/client/models/v1_service.py index 5a518d30d2..bd3c19f7fc 100644 --- a/kubernetes/aio/client/models/v1_service.py +++ b/kubernetes/aio/client/models/v1_service.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_service_account.py b/kubernetes/aio/client/models/v1_service_account.py index 64cae1917a..a599ab476f 100644 --- a/kubernetes/aio/client/models/v1_service_account.py +++ b/kubernetes/aio/client/models/v1_service_account.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_service_account_list.py b/kubernetes/aio/client/models/v1_service_account_list.py index 0658fd7c1c..292d1709e0 100644 --- a/kubernetes/aio/client/models/v1_service_account_list.py +++ b/kubernetes/aio/client/models/v1_service_account_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_service_account_subject.py b/kubernetes/aio/client/models/v1_service_account_subject.py index f12130bd3f..4c2364d615 100644 --- a/kubernetes/aio/client/models/v1_service_account_subject.py +++ b/kubernetes/aio/client/models/v1_service_account_subject.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_service_account_token_projection.py b/kubernetes/aio/client/models/v1_service_account_token_projection.py index 15ef98b80f..ca757d2b21 100644 --- a/kubernetes/aio/client/models/v1_service_account_token_projection.py +++ b/kubernetes/aio/client/models/v1_service_account_token_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -106,18 +106,21 @@ class V1ServiceAccountTokenProjection(BaseModel): audience: Optional[StrictStr] = Field(default=None, description="audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.") expiration_seconds: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("expirationSeconds", "expiration_seconds"), serialization_alias="expirationSeconds", description="expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.") path: StrictStr = Field(description="path is the path relative to the mount point of the file to project the token into.") + user: Optional[StrictInt] = Field(default=None, description="user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") openapi_types: ClassVar[Dict[str, str]] = { "audience": "str", "expiration_seconds": "int", - "path": "str" + "path": "str", + "user": "int" } attribute_map: ClassVar[Dict[str, str]] = { "audience": "audience", "expiration_seconds": "expirationSeconds", - "path": "path" + "path": "path", + "user": "user" } - __properties: ClassVar[List[str]] = ["audience", "expirationSeconds", "path"] + __properties: ClassVar[List[str]] = ["audience", "expirationSeconds", "path", "user"] @classmethod def __preprocess_input_names( @@ -183,6 +186,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("audience" if serialize else "audience"): _to_legacy_value(getattr(self, "audience", None), serialize), ("expirationSeconds" if serialize else "expiration_seconds"): _to_legacy_value(getattr(self, "expiration_seconds", None), serialize), ("path" if serialize else "path"): _to_legacy_value(getattr(self, "path", None), serialize), + ("user" if serialize else "user"): _to_legacy_value(getattr(self, "user", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -237,6 +241,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "audience": obj.get("audience"), "expirationSeconds": obj.get("expirationSeconds"), - "path": obj.get("path") + "path": obj.get("path"), + "user": obj.get("user") }) return _obj diff --git a/kubernetes/aio/client/models/v1_service_backend_port.py b/kubernetes/aio/client/models/v1_service_backend_port.py index 3fd21c0d37..3777a294bb 100644 --- a/kubernetes/aio/client/models/v1_service_backend_port.py +++ b/kubernetes/aio/client/models/v1_service_backend_port.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_service_cidr.py b/kubernetes/aio/client/models/v1_service_cidr.py index ab7fd990e9..d104f7448d 100644 --- a/kubernetes/aio/client/models/v1_service_cidr.py +++ b/kubernetes/aio/client/models/v1_service_cidr.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_service_cidr_list.py b/kubernetes/aio/client/models/v1_service_cidr_list.py index 44f105d9af..9890811226 100644 --- a/kubernetes/aio/client/models/v1_service_cidr_list.py +++ b/kubernetes/aio/client/models/v1_service_cidr_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_service_cidr_spec.py b/kubernetes/aio/client/models/v1_service_cidr_spec.py index 3d8d32a37f..9ae607d7d5 100644 --- a/kubernetes/aio/client/models/v1_service_cidr_spec.py +++ b/kubernetes/aio/client/models/v1_service_cidr_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -102,7 +102,7 @@ class V1ServiceCIDRSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - cidrs: Optional[List[StrictStr]] = Field(default=None, description="CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.") + cidrs: Optional[List[StrictStr]] = Field(default=None, description="cidrs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.") openapi_types: ClassVar[Dict[str, str]] = { "cidrs": "List[str]" } diff --git a/kubernetes/aio/client/models/v1_service_cidr_status.py b/kubernetes/aio/client/models/v1_service_cidr_status.py index 343b96d80b..170dbe8997 100644 --- a/kubernetes/aio/client/models/v1_service_cidr_status.py +++ b/kubernetes/aio/client/models/v1_service_cidr_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_service_list.py b/kubernetes/aio/client/models/v1_service_list.py index 8aa7800b38..9af16cc5f1 100644 --- a/kubernetes/aio/client/models/v1_service_list.py +++ b/kubernetes/aio/client/models/v1_service_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_service_port.py b/kubernetes/aio/client/models/v1_service_port.py index ca27e5ebc9..ba5625f214 100644 --- a/kubernetes/aio/client/models/v1_service_port.py +++ b/kubernetes/aio/client/models/v1_service_port.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_service_spec.py b/kubernetes/aio/client/models/v1_service_spec.py index a5f25312a1..7e849f6cea 100644 --- a/kubernetes/aio/client/models/v1_service_spec.py +++ b/kubernetes/aio/client/models/v1_service_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_service_status.py b/kubernetes/aio/client/models/v1_service_status.py index 4c6f9397a6..bfff50b066 100644 --- a/kubernetes/aio/client/models/v1_service_status.py +++ b/kubernetes/aio/client/models/v1_service_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_session_affinity_config.py b/kubernetes/aio/client/models/v1_session_affinity_config.py index 456caa26c3..0d1e15fa39 100644 --- a/kubernetes/aio/client/models/v1_session_affinity_config.py +++ b/kubernetes/aio/client/models/v1_session_affinity_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_shard_info.py b/kubernetes/aio/client/models/v1_shard_info.py index de1ad3f486..c8e9d75e9f 100644 --- a/kubernetes/aio/client/models/v1_shard_info.py +++ b/kubernetes/aio/client/models/v1_shard_info.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_sleep_action.py b/kubernetes/aio/client/models/v1_sleep_action.py index 05eea6a18e..df6733738e 100644 --- a/kubernetes/aio/client/models/v1_sleep_action.py +++ b/kubernetes/aio/client/models/v1_sleep_action.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_stateful_set.py b/kubernetes/aio/client/models/v1_stateful_set.py index e530ecde83..1e567174b8 100644 --- a/kubernetes/aio/client/models/v1_stateful_set.py +++ b/kubernetes/aio/client/models/v1_stateful_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,7 +109,7 @@ class V1StatefulSet(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: Optional[V1StatefulSetSpec] = None + spec: V1StatefulSetSpec status: Optional[V1StatefulSetStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", diff --git a/kubernetes/aio/client/models/v1_stateful_set_condition.py b/kubernetes/aio/client/models/v1_stateful_set_condition.py index 5a54b5c97f..a223e6d709 100644 --- a/kubernetes/aio/client/models/v1_stateful_set_condition.py +++ b/kubernetes/aio/client/models/v1_stateful_set_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -107,8 +107,8 @@ class V1StatefulSetCondition(BaseModel): last_transition_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastTransitionTime", "last_transition_time"), serialization_alias="lastTransitionTime", description="Last time the condition transitioned from one status to another.") message: Optional[StrictStr] = Field(default=None, description="A human readable message indicating details about the transition.") reason: Optional[StrictStr] = Field(default=None, description="The reason for the condition's last transition.") - status: StrictStr = Field(description="Status of the condition, one of True, False, Unknown.") - type: StrictStr = Field(description="Type of statefulset condition.") + status: Optional[StrictStr] = Field(default=None, description="Status of the condition, one of True, False, Unknown.") + type: Optional[StrictStr] = Field(default=None, description="Type of statefulset condition.") openapi_types: ClassVar[Dict[str, str]] = { "last_transition_time": "datetime", "message": "str", diff --git a/kubernetes/aio/client/models/v1_stateful_set_list.py b/kubernetes/aio/client/models/v1_stateful_set_list.py index 910c9ad9ac..6111946321 100644 --- a/kubernetes/aio/client/models/v1_stateful_set_list.py +++ b/kubernetes/aio/client/models/v1_stateful_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_stateful_set_ordinals.py b/kubernetes/aio/client/models/v1_stateful_set_ordinals.py index 112209b965..115fdd2332 100644 --- a/kubernetes/aio/client/models/v1_stateful_set_ordinals.py +++ b/kubernetes/aio/client/models/v1_stateful_set_ordinals.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_stateful_set_persistent_volume_claim_retention_policy.py b/kubernetes/aio/client/models/v1_stateful_set_persistent_volume_claim_retention_policy.py index 71dd120d65..e0de442c50 100644 --- a/kubernetes/aio/client/models/v1_stateful_set_persistent_volume_claim_retention_policy.py +++ b/kubernetes/aio/client/models/v1_stateful_set_persistent_volume_claim_retention_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_stateful_set_spec.py b/kubernetes/aio/client/models/v1_stateful_set_spec.py index 53422e592c..32818efc55 100644 --- a/kubernetes/aio/client/models/v1_stateful_set_spec.py +++ b/kubernetes/aio/client/models/v1_stateful_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_stateful_set_status.py b/kubernetes/aio/client/models/v1_stateful_set_status.py index 9c9064d833..7da7b6de9a 100644 --- a/kubernetes/aio/client/models/v1_stateful_set_status.py +++ b/kubernetes/aio/client/models/v1_stateful_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_stateful_set_update_strategy.py b/kubernetes/aio/client/models/v1_stateful_set_update_strategy.py index bcf3dea134..28431ce961 100644 --- a/kubernetes/aio/client/models/v1_stateful_set_update_strategy.py +++ b/kubernetes/aio/client/models/v1_stateful_set_update_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_status.py b/kubernetes/aio/client/models/v1_status.py index 2c54c33153..f40b66a6c6 100644 --- a/kubernetes/aio/client/models/v1_status.py +++ b/kubernetes/aio/client/models/v1_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_status_cause.py b/kubernetes/aio/client/models/v1_status_cause.py index 9c969f64fa..b72089803a 100644 --- a/kubernetes/aio/client/models/v1_status_cause.py +++ b/kubernetes/aio/client/models/v1_status_cause.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_status_details.py b/kubernetes/aio/client/models/v1_status_details.py index 431a44459b..c61b150f40 100644 --- a/kubernetes/aio/client/models/v1_status_details.py +++ b/kubernetes/aio/client/models/v1_status_details.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_storage_class.py b/kubernetes/aio/client/models/v1_storage_class.py index 7e62c0b99c..fa466c7226 100644 --- a/kubernetes/aio/client/models/v1_storage_class.py +++ b/kubernetes/aio/client/models/v1_storage_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_storage_class_list.py b/kubernetes/aio/client/models/v1_storage_class_list.py index cd2924d1ee..4f7829d853 100644 --- a/kubernetes/aio/client/models/v1_storage_class_list.py +++ b/kubernetes/aio/client/models/v1_storage_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_storage_health.py b/kubernetes/aio/client/models/v1_storage_health.py new file mode 100644 index 0000000000..402e6bb8d2 --- /dev/null +++ b/kubernetes/aio/client/models/v1_storage_health.py @@ -0,0 +1,244 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_storage_health_condition import V1StorageHealthCondition +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1StorageHealth(BaseModel): + """ + StorageHealth contains storage backend health reported by a CSI driver on a node. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + health_conditions: Optional[List[V1StorageHealthCondition]] = Field(default=None, validation_alias=AliasChoices("healthConditions", "health_conditions"), serialization_alias="healthConditions", description="healthConditions are the adverse storage backend conditions reported by the CSI driver. At most 16 conditions may be reported.") + name: StrictStr = Field(description="name is the CSI driver name, matching CSINodeDriver.name.") + openapi_types: ClassVar[Dict[str, str]] = { + "health_conditions": "List[V1StorageHealthCondition]", + "name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "health_conditions": "healthConditions", + "name": "name" + } + __properties: ClassVar[List[str]] = ["healthConditions", "name"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "healthConditions" not in obj and "health_conditions" in obj: + obj["healthConditions"] = obj["health_conditions"] + obj.pop("health_conditions", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1StorageHealth): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1StorageHealth): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1StorageHealth from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("healthConditions" if serialize else "health_conditions"): _to_legacy_value(getattr(self, "health_conditions", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in health_conditions (list) + _items = [] + if self.health_conditions: + for _item_health_conditions in self.health_conditions: + _items.append(_to_openapi_value(_item_health_conditions) if _item_health_conditions is not None else None) + _dict['healthConditions'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1StorageHealth from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "healthConditions": [V1StorageHealthCondition.from_dict(_item) for _item in obj["healthConditions"]] if obj.get("healthConditions") is not None else None, + "name": obj.get("name") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_storage_health_condition.py b/kubernetes/aio/client/models/v1_storage_health_condition.py new file mode 100644 index 0000000000..bb1e294909 --- /dev/null +++ b/kubernetes/aio/client/models/v1_storage_health_condition.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from datetime import datetime +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1StorageHealthCondition(BaseModel): + """ + StorageHealthCondition represents an adverse health condition reported by a CSI driver for its storage backend on a node. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + access_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("accessMode", "access_mode"), serialization_alias="accessMode", description="accessMode is the access mode affected. Nil means all access modes are affected.") + last_transition_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastTransitionTime", "last_transition_time"), serialization_alias="lastTransitionTime", description="lastTransitionTime is when this condition first appeared at its current state.") + message: Optional[StrictStr] = Field(default=None, description="message is a human-readable description. Maximum permitted length of a message is 1024 characters.") + reason: StrictStr = Field(description="reason is a brief CamelCase machine-parseable reason. Maximum permitted length of a reason is 256 characters.") + status: StrictStr = Field(description="status is the health status category. One of \"StorageUnreachable\", \"StorageDegraded\".") + volume_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("volumeMode", "volume_mode"), serialization_alias="volumeMode", description="volumeMode is the volume mode affected. Nil means both are affected.") + openapi_types: ClassVar[Dict[str, str]] = { + "access_mode": "str", + "last_transition_time": "datetime", + "message": "str", + "reason": "str", + "status": "str", + "volume_mode": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "access_mode": "accessMode", + "last_transition_time": "lastTransitionTime", + "message": "message", + "reason": "reason", + "status": "status", + "volume_mode": "volumeMode" + } + __properties: ClassVar[List[str]] = ["accessMode", "lastTransitionTime", "message", "reason", "status", "volumeMode"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "accessMode" not in obj and "access_mode" in obj: + obj["accessMode"] = obj["access_mode"] + obj.pop("access_mode", None) + if "lastTransitionTime" not in obj and "last_transition_time" in obj: + obj["lastTransitionTime"] = obj["last_transition_time"] + obj.pop("last_transition_time", None) + if "volumeMode" not in obj and "volume_mode" in obj: + obj["volumeMode"] = obj["volume_mode"] + obj.pop("volume_mode", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1StorageHealthCondition): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1StorageHealthCondition): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1StorageHealthCondition from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("accessMode" if serialize else "access_mode"): _to_legacy_value(getattr(self, "access_mode", None), serialize), + ("lastTransitionTime" if serialize else "last_transition_time"): _to_legacy_value(getattr(self, "last_transition_time", None), serialize), + ("message" if serialize else "message"): _to_legacy_value(getattr(self, "message", None), serialize), + ("reason" if serialize else "reason"): _to_legacy_value(getattr(self, "reason", None), serialize), + ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), + ("volumeMode" if serialize else "volume_mode"): _to_legacy_value(getattr(self, "volume_mode", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1StorageHealthCondition from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "accessMode": obj.get("accessMode"), + "lastTransitionTime": obj.get("lastTransitionTime"), + "message": obj.get("message"), + "reason": obj.get("reason"), + "status": obj.get("status"), + "volumeMode": obj.get("volumeMode") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_storage_os_persistent_volume_source.py b/kubernetes/aio/client/models/v1_storage_os_persistent_volume_source.py index 0fac765fab..b238d82d40 100644 --- a/kubernetes/aio/client/models/v1_storage_os_persistent_volume_source.py +++ b/kubernetes/aio/client/models/v1_storage_os_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_storage_os_volume_source.py b/kubernetes/aio/client/models/v1_storage_os_volume_source.py index ed82ac6dbd..ca84bbe50d 100644 --- a/kubernetes/aio/client/models/v1_storage_os_volume_source.py +++ b/kubernetes/aio/client/models/v1_storage_os_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_storage_version_migration.py b/kubernetes/aio/client/models/v1_storage_version_migration.py new file mode 100644 index 0000000000..44493b7470 --- /dev/null +++ b/kubernetes/aio/client/models/v1_storage_version_migration.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_object_meta import V1ObjectMeta +from kubernetes.aio.client.models.v1_storage_version_migration_spec import V1StorageVersionMigrationSpec +from kubernetes.aio.client.models.v1_storage_version_migration_status import V1StorageVersionMigrationStatus +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1StorageVersionMigration(BaseModel): + """ + StorageVersionMigration represents a migration of stored data to the latest storage version. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ObjectMeta] = None + spec: Optional[V1StorageVersionMigrationSpec] = None + status: Optional[V1StorageVersionMigrationStatus] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "kind": "str", + "metadata": "V1ObjectMeta", + "spec": "V1StorageVersionMigrationSpec", + "status": "V1StorageVersionMigrationStatus" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "kind": "kind", + "metadata": "metadata", + "spec": "spec", + "status": "status" + } + __properties: ClassVar[List[str]] = ["apiVersion", "kind", "metadata", "spec", "status"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1StorageVersionMigration): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1StorageVersionMigration): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1StorageVersionMigration from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + ("spec" if serialize else "spec"): _to_legacy_value(getattr(self, "spec", None), serialize), + ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + # override the default output from pydantic by calling `to_dict()` of spec + if self.spec: + _dict['spec'] = _to_openapi_value(self.spec) + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = _to_openapi_value(self.status) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1StorageVersionMigration from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "kind": obj.get("kind"), + "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, + "spec": V1StorageVersionMigrationSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, + "status": V1StorageVersionMigrationStatus.from_dict(obj["status"]) if obj.get("status") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_storage_version_migration_list.py b/kubernetes/aio/client/models/v1_storage_version_migration_list.py new file mode 100644 index 0000000000..313548f920 --- /dev/null +++ b/kubernetes/aio/client/models/v1_storage_version_migration_list.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_list_meta import V1ListMeta +from kubernetes.aio.client.models.v1_storage_version_migration import V1StorageVersionMigration +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1StorageVersionMigrationList(BaseModel): + """ + StorageVersionMigrationList is a collection of storage version migrations. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + items: List[V1StorageVersionMigration] = Field(description="Items is the list of StorageVersionMigration") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ListMeta] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "items": "List[V1StorageVersionMigration]", + "kind": "str", + "metadata": "V1ListMeta" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "items": "items", + "kind": "kind", + "metadata": "metadata" + } + __properties: ClassVar[List[str]] = ["apiVersion", "items", "kind", "metadata"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1StorageVersionMigrationList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1StorageVersionMigrationList): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1StorageVersionMigrationList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + _items.append(_to_openapi_value(_item_items) if _item_items is not None else None) + _dict['items'] = _items + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1StorageVersionMigrationList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "items": [V1StorageVersionMigration.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "kind": obj.get("kind"), + "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_storage_version_migration_spec.py b/kubernetes/aio/client/models/v1_storage_version_migration_spec.py new file mode 100644 index 0000000000..a06da83d5d --- /dev/null +++ b/kubernetes/aio/client/models/v1_storage_version_migration_spec.py @@ -0,0 +1,213 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from kubernetes.aio.client.models.v1_group_resource import V1GroupResource +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1StorageVersionMigrationSpec(BaseModel): + """ + Spec of the storage version migration. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + resource: V1GroupResource + openapi_types: ClassVar[Dict[str, str]] = { + "resource": "V1GroupResource" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "resource": "resource" + } + __properties: ClassVar[List[str]] = ["resource"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1StorageVersionMigrationSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1StorageVersionMigrationSpec): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1StorageVersionMigrationSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("resource" if serialize else "resource"): _to_legacy_value(getattr(self, "resource", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of resource + if self.resource: + _dict['resource'] = _to_openapi_value(self.resource) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1StorageVersionMigrationSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "resource": V1GroupResource.from_dict(obj["resource"]) if obj.get("resource") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_storage_version_migration_status.py b/kubernetes/aio/client/models/v1_storage_version_migration_status.py new file mode 100644 index 0000000000..82bcddfba6 --- /dev/null +++ b/kubernetes/aio/client/models/v1_storage_version_migration_status.py @@ -0,0 +1,244 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_condition import V1Condition +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1StorageVersionMigrationStatus(BaseModel): + """ + Status of the storage version migration. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + conditions: Optional[List[V1Condition]] = Field(default=None, description="The latest available observations of the migration's current state.") + resource_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceVersion", "resource_version"), serialization_alias="resourceVersion", description="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.") + openapi_types: ClassVar[Dict[str, str]] = { + "conditions": "List[V1Condition]", + "resource_version": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "conditions": "conditions", + "resource_version": "resourceVersion" + } + __properties: ClassVar[List[str]] = ["conditions", "resourceVersion"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "resourceVersion" not in obj and "resource_version" in obj: + obj["resourceVersion"] = obj["resource_version"] + obj.pop("resource_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1StorageVersionMigrationStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1StorageVersionMigrationStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1StorageVersionMigrationStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("conditions" if serialize else "conditions"): _to_legacy_value(getattr(self, "conditions", None), serialize), + ("resourceVersion" if serialize else "resource_version"): _to_legacy_value(getattr(self, "resource_version", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in conditions (list) + _items = [] + if self.conditions: + for _item_conditions in self.conditions: + _items.append(_to_openapi_value(_item_conditions) if _item_conditions is not None else None) + _dict['conditions'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1StorageVersionMigrationStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "conditions": [V1Condition.from_dict(_item) for _item in obj["conditions"]] if obj.get("conditions") is not None else None, + "resourceVersion": obj.get("resourceVersion") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_subject_access_review.py b/kubernetes/aio/client/models/v1_subject_access_review.py index 274dd7e435..641e038b58 100644 --- a/kubernetes/aio/client/models/v1_subject_access_review.py +++ b/kubernetes/aio/client/models/v1_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_subject_access_review_spec.py b/kubernetes/aio/client/models/v1_subject_access_review_spec.py index 6f2b1749cc..2a9c80be7f 100644 --- a/kubernetes/aio/client/models/v1_subject_access_review_spec.py +++ b/kubernetes/aio/client/models/v1_subject_access_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_subject_access_review_status.py b/kubernetes/aio/client/models/v1_subject_access_review_status.py index db4c414741..659acc35a8 100644 --- a/kubernetes/aio/client/models/v1_subject_access_review_status.py +++ b/kubernetes/aio/client/models/v1_subject_access_review_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_subject_rules_review_status.py b/kubernetes/aio/client/models/v1_subject_rules_review_status.py index 241e9fe885..f175010285 100644 --- a/kubernetes/aio/client/models/v1_subject_rules_review_status.py +++ b/kubernetes/aio/client/models/v1_subject_rules_review_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_success_policy.py b/kubernetes/aio/client/models/v1_success_policy.py index 5b0c664888..c4592b2d03 100644 --- a/kubernetes/aio/client/models/v1_success_policy.py +++ b/kubernetes/aio/client/models/v1_success_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_success_policy_rule.py b/kubernetes/aio/client/models/v1_success_policy_rule.py index bc7f7dd438..e6fc5f0879 100644 --- a/kubernetes/aio/client/models/v1_success_policy_rule.py +++ b/kubernetes/aio/client/models/v1_success_policy_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_sysctl.py b/kubernetes/aio/client/models/v1_sysctl.py index 83d1068b9a..dabc77a8a4 100644 --- a/kubernetes/aio/client/models/v1_sysctl.py +++ b/kubernetes/aio/client/models/v1_sysctl.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_taint.py b/kubernetes/aio/client/models/v1_taint.py index 935e611a7e..be641e0a12 100644 --- a/kubernetes/aio/client/models/v1_taint.py +++ b/kubernetes/aio/client/models/v1_taint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_tcp_socket_action.py b/kubernetes/aio/client/models/v1_tcp_socket_action.py index 6e705beed6..27fc2ef574 100644 --- a/kubernetes/aio/client/models/v1_tcp_socket_action.py +++ b/kubernetes/aio/client/models/v1_tcp_socket_action.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_token_request_spec.py b/kubernetes/aio/client/models/v1_token_request_spec.py index 1477572ffc..a96c435b75 100644 --- a/kubernetes/aio/client/models/v1_token_request_spec.py +++ b/kubernetes/aio/client/models/v1_token_request_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -104,21 +104,24 @@ class V1TokenRequestSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 + attestations: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="attestations is a map of well-known keys to string-slice values. The values for each key have a specific semantic meaning, which is documented on the key definition. Requesters of tokens may ask the Kubernetes API Server to attest to certain claims. The API Server may perform authorization checks depending on the key of this map.") audiences: Optional[List[StrictStr]] = Field(default=None, 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.") bound_object_ref: Optional[V1BoundObjectReference] = Field(default=None, validation_alias=AliasChoices("boundObjectRef", "bound_object_ref"), serialization_alias="boundObjectRef") expiration_seconds: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("expirationSeconds", "expiration_seconds"), serialization_alias="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.") openapi_types: ClassVar[Dict[str, str]] = { + "attestations": "Dict[str, List[str]]", "audiences": "List[str]", "bound_object_ref": "V1BoundObjectReference", "expiration_seconds": "int" } attribute_map: ClassVar[Dict[str, str]] = { + "attestations": "attestations", "audiences": "audiences", "bound_object_ref": "boundObjectRef", "expiration_seconds": "expirationSeconds" } - __properties: ClassVar[List[str]] = ["audiences", "boundObjectRef", "expirationSeconds"] + __properties: ClassVar[List[str]] = ["attestations", "audiences", "boundObjectRef", "expirationSeconds"] @classmethod def __preprocess_input_names( @@ -184,6 +187,7 @@ def from_json(cls, json_str: str) -> Optional[Self]: def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { + ("attestations" if serialize else "attestations"): _to_legacy_value(getattr(self, "attestations", None), serialize), ("audiences" if serialize else "audiences"): _to_legacy_value(getattr(self, "audiences", None), serialize), ("boundObjectRef" if serialize else "bound_object_ref"): _to_legacy_value(getattr(self, "bound_object_ref", None), serialize), ("expirationSeconds" if serialize else "expiration_seconds"): _to_legacy_value(getattr(self, "expiration_seconds", None), serialize), @@ -242,6 +246,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ + "attestations": obj.get("attestations"), "audiences": obj.get("audiences"), "boundObjectRef": V1BoundObjectReference.from_dict(obj["boundObjectRef"]) if obj.get("boundObjectRef") is not None else None, "expirationSeconds": obj.get("expirationSeconds") diff --git a/kubernetes/aio/client/models/v1_token_request_status.py b/kubernetes/aio/client/models/v1_token_request_status.py index f84910b3b4..5eb121fe1e 100644 --- a/kubernetes/aio/client/models/v1_token_request_status.py +++ b/kubernetes/aio/client/models/v1_token_request_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_token_review.py b/kubernetes/aio/client/models/v1_token_review.py index 771b4c335e..5e37b45c41 100644 --- a/kubernetes/aio/client/models/v1_token_review.py +++ b/kubernetes/aio/client/models/v1_token_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_token_review_spec.py b/kubernetes/aio/client/models/v1_token_review_spec.py index fcbe44fbcb..924084c43c 100644 --- a/kubernetes/aio/client/models/v1_token_review_spec.py +++ b/kubernetes/aio/client/models/v1_token_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_token_review_status.py b/kubernetes/aio/client/models/v1_token_review_status.py index 4b97405fa9..a6361da9d3 100644 --- a/kubernetes/aio/client/models/v1_token_review_status.py +++ b/kubernetes/aio/client/models/v1_token_review_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_toleration.py b/kubernetes/aio/client/models/v1_toleration.py index 0d6c17b9f2..54710b50c1 100644 --- a/kubernetes/aio/client/models/v1_toleration.py +++ b/kubernetes/aio/client/models/v1_toleration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_topology_selector_label_requirement.py b/kubernetes/aio/client/models/v1_topology_selector_label_requirement.py index bee61ca390..d542bfcb3d 100644 --- a/kubernetes/aio/client/models/v1_topology_selector_label_requirement.py +++ b/kubernetes/aio/client/models/v1_topology_selector_label_requirement.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_topology_selector_term.py b/kubernetes/aio/client/models/v1_topology_selector_term.py index 38fd6df843..f3a6f3be59 100644 --- a/kubernetes/aio/client/models/v1_topology_selector_term.py +++ b/kubernetes/aio/client/models/v1_topology_selector_term.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_topology_spread_constraint.py b/kubernetes/aio/client/models/v1_topology_spread_constraint.py index 76972c42a9..e7f0c2630b 100644 --- a/kubernetes/aio/client/models/v1_topology_spread_constraint.py +++ b/kubernetes/aio/client/models/v1_topology_spread_constraint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_type_checking.py b/kubernetes/aio/client/models/v1_type_checking.py index a71720aa2a..31e49040bd 100644 --- a/kubernetes/aio/client/models/v1_type_checking.py +++ b/kubernetes/aio/client/models/v1_type_checking.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_typed_local_object_reference.py b/kubernetes/aio/client/models/v1_typed_local_object_reference.py index f2583586bf..d921eaf0e0 100644 --- a/kubernetes/aio/client/models/v1_typed_local_object_reference.py +++ b/kubernetes/aio/client/models/v1_typed_local_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_typed_object_reference.py b/kubernetes/aio/client/models/v1_typed_object_reference.py index d51df1b8fb..83023a7754 100644 --- a/kubernetes/aio/client/models/v1_typed_object_reference.py +++ b/kubernetes/aio/client/models/v1_typed_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_uncounted_terminated_pods.py b/kubernetes/aio/client/models/v1_uncounted_terminated_pods.py index 3c4d5bedbe..0cca4b4e58 100644 --- a/kubernetes/aio/client/models/v1_uncounted_terminated_pods.py +++ b/kubernetes/aio/client/models/v1_uncounted_terminated_pods.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_user_info.py b/kubernetes/aio/client/models/v1_user_info.py index d0e6163145..9c5f383db4 100644 --- a/kubernetes/aio/client/models/v1_user_info.py +++ b/kubernetes/aio/client/models/v1_user_info.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_user_subject.py b/kubernetes/aio/client/models/v1_user_subject.py index 4972b2975b..482e2f182c 100644 --- a/kubernetes/aio/client/models/v1_user_subject.py +++ b/kubernetes/aio/client/models/v1_user_subject.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_validating_admission_policy.py b/kubernetes/aio/client/models/v1_validating_admission_policy.py index 80e0d26f0f..aa31dbf97c 100644 --- a/kubernetes/aio/client/models/v1_validating_admission_policy.py +++ b/kubernetes/aio/client/models/v1_validating_admission_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_validating_admission_policy_binding.py b/kubernetes/aio/client/models/v1_validating_admission_policy_binding.py index ecef2f55df..af4e06fe85 100644 --- a/kubernetes/aio/client/models/v1_validating_admission_policy_binding.py +++ b/kubernetes/aio/client/models/v1_validating_admission_policy_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_validating_admission_policy_binding_list.py b/kubernetes/aio/client/models/v1_validating_admission_policy_binding_list.py index 11bfcd449e..63fc768982 100644 --- a/kubernetes/aio/client/models/v1_validating_admission_policy_binding_list.py +++ b/kubernetes/aio/client/models/v1_validating_admission_policy_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_validating_admission_policy_binding_spec.py b/kubernetes/aio/client/models/v1_validating_admission_policy_binding_spec.py index 6090cc6855..08c61a3138 100644 --- a/kubernetes/aio/client/models/v1_validating_admission_policy_binding_spec.py +++ b/kubernetes/aio/client/models/v1_validating_admission_policy_binding_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_validating_admission_policy_list.py b/kubernetes/aio/client/models/v1_validating_admission_policy_list.py index 0cc6b6a95e..0ddcf12c9b 100644 --- a/kubernetes/aio/client/models/v1_validating_admission_policy_list.py +++ b/kubernetes/aio/client/models/v1_validating_admission_policy_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_validating_admission_policy_spec.py b/kubernetes/aio/client/models/v1_validating_admission_policy_spec.py index e8ff51906d..5828b1efa3 100644 --- a/kubernetes/aio/client/models/v1_validating_admission_policy_spec.py +++ b/kubernetes/aio/client/models/v1_validating_admission_policy_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_validating_admission_policy_status.py b/kubernetes/aio/client/models/v1_validating_admission_policy_status.py index 0adfb31974..b98e57c0d7 100644 --- a/kubernetes/aio/client/models/v1_validating_admission_policy_status.py +++ b/kubernetes/aio/client/models/v1_validating_admission_policy_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_validating_webhook.py b/kubernetes/aio/client/models/v1_validating_webhook.py index a80f85ee79..e0e68819d3 100644 --- a/kubernetes/aio/client/models/v1_validating_webhook.py +++ b/kubernetes/aio/client/models/v1_validating_webhook.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_validating_webhook_configuration.py b/kubernetes/aio/client/models/v1_validating_webhook_configuration.py index 8be35ef03e..828251eb15 100644 --- a/kubernetes/aio/client/models/v1_validating_webhook_configuration.py +++ b/kubernetes/aio/client/models/v1_validating_webhook_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_validating_webhook_configuration_list.py b/kubernetes/aio/client/models/v1_validating_webhook_configuration_list.py index c4bf4e59ea..19155725c2 100644 --- a/kubernetes/aio/client/models/v1_validating_webhook_configuration_list.py +++ b/kubernetes/aio/client/models/v1_validating_webhook_configuration_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_validation.py b/kubernetes/aio/client/models/v1_validation.py index 17001d736d..fe1261dcde 100644 --- a/kubernetes/aio/client/models/v1_validation.py +++ b/kubernetes/aio/client/models/v1_validation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_validation_rule.py b/kubernetes/aio/client/models/v1_validation_rule.py index 51b6857c66..8b8ada19ce 100644 --- a/kubernetes/aio/client/models/v1_validation_rule.py +++ b/kubernetes/aio/client/models/v1_validation_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_variable.py b/kubernetes/aio/client/models/v1_variable.py index 2f8a9ee171..85afec93de 100644 --- a/kubernetes/aio/client/models/v1_variable.py +++ b/kubernetes/aio/client/models/v1_variable.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_volume.py b/kubernetes/aio/client/models/v1_volume.py index ca845b9741..4193f8c57a 100644 --- a/kubernetes/aio/client/models/v1_volume.py +++ b/kubernetes/aio/client/models/v1_volume.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_volume_attachment.py b/kubernetes/aio/client/models/v1_volume_attachment.py index 5d0e551de9..793348217e 100644 --- a/kubernetes/aio/client/models/v1_volume_attachment.py +++ b/kubernetes/aio/client/models/v1_volume_attachment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_volume_attachment_list.py b/kubernetes/aio/client/models/v1_volume_attachment_list.py index a99cba082c..cd46526e2d 100644 --- a/kubernetes/aio/client/models/v1_volume_attachment_list.py +++ b/kubernetes/aio/client/models/v1_volume_attachment_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_volume_attachment_source.py b/kubernetes/aio/client/models/v1_volume_attachment_source.py index f24cbb40db..b3d3bdc31c 100644 --- a/kubernetes/aio/client/models/v1_volume_attachment_source.py +++ b/kubernetes/aio/client/models/v1_volume_attachment_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_volume_attachment_spec.py b/kubernetes/aio/client/models/v1_volume_attachment_spec.py index 0f45d73118..ade99952e0 100644 --- a/kubernetes/aio/client/models/v1_volume_attachment_spec.py +++ b/kubernetes/aio/client/models/v1_volume_attachment_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_volume_attachment_status.py b/kubernetes/aio/client/models/v1_volume_attachment_status.py index 1721236cc6..8b3f4d2767 100644 --- a/kubernetes/aio/client/models/v1_volume_attachment_status.py +++ b/kubernetes/aio/client/models/v1_volume_attachment_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_volume_attributes_class.py b/kubernetes/aio/client/models/v1_volume_attributes_class.py index e463c86289..70c576e2e8 100644 --- a/kubernetes/aio/client/models/v1_volume_attributes_class.py +++ b/kubernetes/aio/client/models/v1_volume_attributes_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,7 +105,7 @@ class V1VolumeAttributesClass(BaseModel): and the value is json key in definition. """ # noqa: E501 api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - driver_name: StrictStr = Field(validation_alias=AliasChoices("driverName", "driver_name"), serialization_alias="driverName", description="Name of the CSI driver This field is immutable.") + driver_name: StrictStr = Field(validation_alias=AliasChoices("driverName", "driver_name"), serialization_alias="driverName", description="driverName is the name of the CSI driver This field is immutable.") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None parameters: Optional[Dict[str, StrictStr]] = Field(default=None, description="parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.") diff --git a/kubernetes/aio/client/models/v1_volume_attributes_class_list.py b/kubernetes/aio/client/models/v1_volume_attributes_class_list.py index 1b335bf976..bbe99d8a8d 100644 --- a/kubernetes/aio/client/models/v1_volume_attributes_class_list.py +++ b/kubernetes/aio/client/models/v1_volume_attributes_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_volume_device.py b/kubernetes/aio/client/models/v1_volume_device.py index cf3e7abcff..2b27569ddc 100644 --- a/kubernetes/aio/client/models/v1_volume_device.py +++ b/kubernetes/aio/client/models/v1_volume_device.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_volume_error.py b/kubernetes/aio/client/models/v1_volume_error.py index d7035be529..b56518a667 100644 --- a/kubernetes/aio/client/models/v1_volume_error.py +++ b/kubernetes/aio/client/models/v1_volume_error.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_volume_health_condition.py b/kubernetes/aio/client/models/v1_volume_health_condition.py new file mode 100644 index 0000000000..b92cc17235 --- /dev/null +++ b/kubernetes/aio/client/models/v1_volume_health_condition.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1VolumeHealthCondition(BaseModel): + """ + VolumeHealthCondition represents an adverse health condition reported for a volume. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + message: Optional[StrictStr] = Field(default=None, description="message is a human-readable description. Maximum permitted length of a message is 1024 bytes.") + reason: StrictStr = Field(description="reason is a brief CamelCase machine-parseable reason. Together with status it forms the unique identity of a condition entry. Maximum permitted length of a reason is 256 bytes.") + status: StrictStr = Field(description="status is the machine-parseable health category. Possible values: - \"Inaccessible\": the volume cannot be accessed. - \"DataLoss\": data loss has been detected on the volume. - \"Degraded\": the volume is functioning with reduced capability.") + openapi_types: ClassVar[Dict[str, str]] = { + "message": "str", + "reason": "str", + "status": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "message": "message", + "reason": "reason", + "status": "status" + } + __properties: ClassVar[List[str]] = ["message", "reason", "status"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1VolumeHealthCondition): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1VolumeHealthCondition): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1VolumeHealthCondition from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("message" if serialize else "message"): _to_legacy_value(getattr(self, "message", None), serialize), + ("reason" if serialize else "reason"): _to_legacy_value(getattr(self, "reason", None), serialize), + ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1VolumeHealthCondition from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "reason": obj.get("reason"), + "status": obj.get("status") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_volume_health_status.py b/kubernetes/aio/client/models/v1_volume_health_status.py new file mode 100644 index 0000000000..8870315e66 --- /dev/null +++ b/kubernetes/aio/client/models/v1_volume_health_status.py @@ -0,0 +1,248 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from datetime import datetime +from pydantic import AliasChoices, BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_volume_health_condition import V1VolumeHealthCondition +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1VolumeHealthStatus(BaseModel): + """ + VolumeHealthStatus contains health information for a volume reported by the CSI controller plugin. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + health_conditions: Optional[List[V1VolumeHealthCondition]] = Field(default=None, validation_alias=AliasChoices("healthConditions", "health_conditions"), serialization_alias="healthConditions", description="conditions is the set of adverse conditions reported by the CSI controller plugin. An empty list means no adverse condition. At most 16 conditions may be reported.") + last_transition_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastTransitionTime", "last_transition_time"), serialization_alias="lastTransitionTime", description="lastTransitionTime is when the current set of conditions first appeared.") + openapi_types: ClassVar[Dict[str, str]] = { + "health_conditions": "List[V1VolumeHealthCondition]", + "last_transition_time": "datetime" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "health_conditions": "healthConditions", + "last_transition_time": "lastTransitionTime" + } + __properties: ClassVar[List[str]] = ["healthConditions", "lastTransitionTime"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "healthConditions" not in obj and "health_conditions" in obj: + obj["healthConditions"] = obj["health_conditions"] + obj.pop("health_conditions", None) + if "lastTransitionTime" not in obj and "last_transition_time" in obj: + obj["lastTransitionTime"] = obj["last_transition_time"] + obj.pop("last_transition_time", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1VolumeHealthStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1VolumeHealthStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1VolumeHealthStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("healthConditions" if serialize else "health_conditions"): _to_legacy_value(getattr(self, "health_conditions", None), serialize), + ("lastTransitionTime" if serialize else "last_transition_time"): _to_legacy_value(getattr(self, "last_transition_time", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in health_conditions (list) + _items = [] + if self.health_conditions: + for _item_health_conditions in self.health_conditions: + _items.append(_to_openapi_value(_item_health_conditions) if _item_health_conditions is not None else None) + _dict['healthConditions'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1VolumeHealthStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "healthConditions": [V1VolumeHealthCondition.from_dict(_item) for _item in obj["healthConditions"]] if obj.get("healthConditions") is not None else None, + "lastTransitionTime": obj.get("lastTransitionTime") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1_volume_mount.py b/kubernetes/aio/client/models/v1_volume_mount.py index 8a5896657e..630f75986c 100644 --- a/kubernetes/aio/client/models/v1_volume_mount.py +++ b/kubernetes/aio/client/models/v1_volume_mount.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -103,7 +103,8 @@ class V1VolumeMount(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - mount_path: StrictStr = Field(validation_alias=AliasChoices("mountPath", "mount_path"), serialization_alias="mountPath", description="Path within the container at which the volume should be mounted. Must not contain ':'.") + bind_mount_options: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("bindMountOptions", "bind_mount_options"), serialization_alias="bindMountOptions", description="bindMountOptions is the list of additional bind mount options to apply when mounting this volume into the container. Allowed values are noexec, nodev, and nosuid. These are Linux mount options and have no effect on Windows nodes. This field is not supported with image volumes. This is an alpha field and requires enabling the VolumeBindMountOptions feature gate.") + mount_path: StrictStr = Field(validation_alias=AliasChoices("mountPath", "mount_path"), serialization_alias="mountPath", description="Path within the container at which the volume should be mounted.") mount_propagation: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("mountPropagation", "mount_propagation"), serialization_alias="mountPropagation", description="mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None).") name: StrictStr = Field(description="This must match the Name of a Volume.") read_only: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("readOnly", "read_only"), serialization_alias="readOnly", description="Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.") @@ -111,6 +112,7 @@ class V1VolumeMount(BaseModel): sub_path: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("subPath", "sub_path"), serialization_alias="subPath", description="Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).") sub_path_expr: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("subPathExpr", "sub_path_expr"), serialization_alias="subPathExpr", description="Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.") openapi_types: ClassVar[Dict[str, str]] = { + "bind_mount_options": "List[str]", "mount_path": "str", "mount_propagation": "str", "name": "str", @@ -121,6 +123,7 @@ class V1VolumeMount(BaseModel): } attribute_map: ClassVar[Dict[str, str]] = { + "bind_mount_options": "bindMountOptions", "mount_path": "mountPath", "mount_propagation": "mountPropagation", "name": "name", @@ -129,7 +132,7 @@ class V1VolumeMount(BaseModel): "sub_path": "subPath", "sub_path_expr": "subPathExpr" } - __properties: ClassVar[List[str]] = ["mountPath", "mountPropagation", "name", "readOnly", "recursiveReadOnly", "subPath", "subPathExpr"] + __properties: ClassVar[List[str]] = ["bindMountOptions", "mountPath", "mountPropagation", "name", "readOnly", "recursiveReadOnly", "subPath", "subPathExpr"] @classmethod def __preprocess_input_names( @@ -140,6 +143,9 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) + if "bindMountOptions" not in obj and "bind_mount_options" in obj: + obj["bindMountOptions"] = obj["bind_mount_options"] + obj.pop("bind_mount_options", None) if "mountPath" not in obj and "mount_path" in obj: obj["mountPath"] = obj["mount_path"] obj.pop("mount_path", None) @@ -207,6 +213,7 @@ def from_json(cls, json_str: str) -> Optional[Self]: def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { + ("bindMountOptions" if serialize else "bind_mount_options"): _to_legacy_value(getattr(self, "bind_mount_options", None), serialize), ("mountPath" if serialize else "mount_path"): _to_legacy_value(getattr(self, "mount_path", None), serialize), ("mountPropagation" if serialize else "mount_propagation"): _to_legacy_value(getattr(self, "mount_propagation", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), @@ -266,6 +273,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ + "bindMountOptions": obj.get("bindMountOptions"), "mountPath": obj.get("mountPath"), "mountPropagation": obj.get("mountPropagation"), "name": obj.get("name"), diff --git a/kubernetes/aio/client/models/v1_volume_mount_status.py b/kubernetes/aio/client/models/v1_volume_mount_status.py index 71f9b38cb4..272b75be9a 100644 --- a/kubernetes/aio/client/models/v1_volume_mount_status.py +++ b/kubernetes/aio/client/models/v1_volume_mount_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_volume_node_affinity.py b/kubernetes/aio/client/models/v1_volume_node_affinity.py index b1d85b2a7c..22385b793c 100644 --- a/kubernetes/aio/client/models/v1_volume_node_affinity.py +++ b/kubernetes/aio/client/models/v1_volume_node_affinity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_volume_node_resources.py b/kubernetes/aio/client/models/v1_volume_node_resources.py index 24cdb18ee1..02188efbe8 100644 --- a/kubernetes/aio/client/models/v1_volume_node_resources.py +++ b/kubernetes/aio/client/models/v1_volume_node_resources.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_volume_projection.py b/kubernetes/aio/client/models/v1_volume_projection.py index 495e153c77..d5b129d24a 100644 --- a/kubernetes/aio/client/models/v1_volume_projection.py +++ b/kubernetes/aio/client/models/v1_volume_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_volume_resource_requirements.py b/kubernetes/aio/client/models/v1_volume_resource_requirements.py index eb49fe6d5a..6c04018d83 100644 --- a/kubernetes/aio/client/models/v1_volume_resource_requirements.py +++ b/kubernetes/aio/client/models/v1_volume_resource_requirements.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_volume_status.py b/kubernetes/aio/client/models/v1_volume_status.py index 7fabb70d5b..0c3fa145bc 100644 --- a/kubernetes/aio/client/models/v1_volume_status.py +++ b/kubernetes/aio/client/models/v1_volume_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_vsphere_virtual_disk_volume_source.py b/kubernetes/aio/client/models/v1_vsphere_virtual_disk_volume_source.py index 481706fd7c..19d2ea360c 100644 --- a/kubernetes/aio/client/models/v1_vsphere_virtual_disk_volume_source.py +++ b/kubernetes/aio/client/models/v1_vsphere_virtual_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_watch_event.py b/kubernetes/aio/client/models/v1_watch_event.py index 9c8122fd78..6b14f770c4 100644 --- a/kubernetes/aio/client/models/v1_watch_event.py +++ b/kubernetes/aio/client/models/v1_watch_event.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_webhook_conversion.py b/kubernetes/aio/client/models/v1_webhook_conversion.py index 938ea5baac..65e0f30073 100644 --- a/kubernetes/aio/client/models/v1_webhook_conversion.py +++ b/kubernetes/aio/client/models/v1_webhook_conversion.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_weighted_pod_affinity_term.py b/kubernetes/aio/client/models/v1_weighted_pod_affinity_term.py index 3b8a3f2813..0450f11976 100644 --- a/kubernetes/aio/client/models/v1_weighted_pod_affinity_term.py +++ b/kubernetes/aio/client/models/v1_weighted_pod_affinity_term.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_windows_security_context_options.py b/kubernetes/aio/client/models/v1_windows_security_context_options.py index 99a8a6e211..1ec877ca90 100644 --- a/kubernetes/aio/client/models/v1_windows_security_context_options.py +++ b/kubernetes/aio/client/models/v1_windows_security_context_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_apply_configuration.py b/kubernetes/aio/client/models/v1alpha1_apply_configuration.py index 754e5a8180..9e1e35dfd3 100644 --- a/kubernetes/aio/client/models/v1alpha1_apply_configuration.py +++ b/kubernetes/aio/client/models/v1alpha1_apply_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_eviction.py b/kubernetes/aio/client/models/v1alpha1_eviction.py new file mode 100644 index 0000000000..76b928af65 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha1_eviction.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_object_meta import V1ObjectMeta +from kubernetes.aio.client.models.v1alpha1_eviction_spec import V1alpha1EvictionSpec +from kubernetes.aio.client.models.v1alpha1_eviction_status import V1alpha1EvictionStatus +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1Eviction(BaseModel): + """ + Eviction initiates an eviction process, which should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod). The evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. It manages the Eviction lifecycle. Requesters are preserved in .status.requesters even after they have withdrawn their request. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Once all EvictionRequest corresponding to this Eviction .spec.target have been removed, this Eviction object will eventually be garbage collected. If the target is a pod, the .status.targetResponders is populated from Pod's .spec.evictionResponders. Responders should observe and communicate through the .status to help with the eviction of the target when they see their state == Active in .status.targetResponders. ResponderStatus struct should then be periodically updated to indicate the progress or completion of the eviction process by each responder in .status.responders. If .status.responders[].heartbeatTime is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there are no other responders and the target is a pod, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource). + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ObjectMeta] = None + spec: V1alpha1EvictionSpec + status: Optional[V1alpha1EvictionStatus] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "kind": "str", + "metadata": "V1ObjectMeta", + "spec": "V1alpha1EvictionSpec", + "status": "V1alpha1EvictionStatus" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "kind": "kind", + "metadata": "metadata", + "spec": "spec", + "status": "status" + } + __properties: ClassVar[List[str]] = ["apiVersion", "kind", "metadata", "spec", "status"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1Eviction): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1Eviction): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1Eviction from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + ("spec" if serialize else "spec"): _to_legacy_value(getattr(self, "spec", None), serialize), + ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + # override the default output from pydantic by calling `to_dict()` of spec + if self.spec: + _dict['spec'] = _to_openapi_value(self.spec) + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = _to_openapi_value(self.status) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1Eviction from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "kind": obj.get("kind"), + "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, + "spec": V1alpha1EvictionSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, + "status": V1alpha1EvictionStatus.from_dict(obj["status"]) if obj.get("status") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_ip_address_list.py b/kubernetes/aio/client/models/v1alpha1_eviction_list.py similarity index 93% rename from kubernetes/aio/client/models/v1beta1_ip_address_list.py rename to kubernetes/aio/client/models/v1alpha1_eviction_list.py index e4d337049e..753b26b0c9 100644 --- a/kubernetes/aio/client/models/v1beta1_ip_address_list.py +++ b/kubernetes/aio/client/models/v1alpha1_eviction_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,7 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1_list_meta import V1ListMeta -from kubernetes.aio.client.models.v1beta1_ip_address import V1beta1IPAddress +from kubernetes.aio.client.models.v1alpha1_eviction import V1alpha1Eviction from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,9 +95,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1beta1IPAddressList(BaseModel): +class V1alpha1EvictionList(BaseModel): """ - IPAddressList contains a list of IPAddress. + EvictionList contains a list of Eviction resources. Attributes: openapi_types (dict): The key is attribute name @@ -106,12 +106,12 @@ class V1beta1IPAddressList(BaseModel): and the value is json key in definition. """ # noqa: E501 api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - items: List[V1beta1IPAddress] = Field(description="items is the list of IPAddresses.") + items: List[V1alpha1Eviction] = Field(description="items is the list of Evictions.") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ListMeta] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", - "items": "List[V1beta1IPAddress]", + "items": "List[V1alpha1Eviction]", "kind": "str", "metadata": "V1ListMeta" } @@ -157,14 +157,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1beta1IPAddressList): + if not isinstance(other, V1alpha1EvictionList): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1IPAddressList): + if not isinstance(other, V1alpha1EvictionList): return True return not (self == other) @@ -179,7 +179,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1IPAddressList from a JSON string""" + """Create an instance of V1alpha1EvictionList from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -234,7 +234,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1IPAddressList from a dict""" + """Create an instance of V1alpha1EvictionList from a dict""" if obj is None: return None @@ -251,7 +251,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "apiVersion": obj.get("apiVersion"), - "items": [V1beta1IPAddress.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "items": [V1alpha1Eviction.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "kind": obj.get("kind"), "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None }) diff --git a/kubernetes/aio/client/models/v1alpha1_eviction_pod_reference.py b/kubernetes/aio/client/models/v1alpha1_eviction_pod_reference.py new file mode 100644 index 0000000000..5968fe2b9d --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha1_eviction_pod_reference.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1EvictionPodReference(BaseModel): + """ + EvictionPodReference contains enough information to locate the referenced pod inside the same namespace. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + name: StrictStr = Field(description="name of the target. This field is required.") + uid: StrictStr = Field(description="uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required.") + openapi_types: ClassVar[Dict[str, str]] = { + "name": "str", + "uid": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "name": "name", + "uid": "uid" + } + __properties: ClassVar[List[str]] = ["name", "uid"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1EvictionPodReference): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1EvictionPodReference): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1EvictionPodReference from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("uid" if serialize else "uid"): _to_legacy_value(getattr(self, "uid", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1EvictionPodReference from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "uid": obj.get("uid") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha1_eviction_request.py b/kubernetes/aio/client/models/v1alpha1_eviction_request.py new file mode 100644 index 0000000000..2c4b77dc91 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha1_eviction_request.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_object_meta import V1ObjectMeta +from kubernetes.aio.client.models.v1alpha1_eviction_request_spec import V1alpha1EvictionRequestSpec +from kubernetes.aio.client.models.v1alpha1_eviction_request_status import V1alpha1EvictionRequestStatus +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1EvictionRequest(BaseModel): + """ + EvictionRequest defines a request that should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod). The evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. - .spec.requester is set as a label on the Eviction for easier lookup. - Each target can have a set of responders assigned to it. Eviction objects are observed by these responders, who implement the eviction logic and update the Eviction's status with progress. There is many-to-many relationship between EvictionRequests and Evictions in general. And many-to-one if the target is a pod. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Deleting an EvictionRequest also counts as a withdrawal. Once all EvictionRequest of a target are removed, the corresponding Evictions are eventually garbage collected. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ObjectMeta] = None + spec: V1alpha1EvictionRequestSpec + status: Optional[V1alpha1EvictionRequestStatus] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "kind": "str", + "metadata": "V1ObjectMeta", + "spec": "V1alpha1EvictionRequestSpec", + "status": "V1alpha1EvictionRequestStatus" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "kind": "kind", + "metadata": "metadata", + "spec": "spec", + "status": "status" + } + __properties: ClassVar[List[str]] = ["apiVersion", "kind", "metadata", "spec", "status"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1EvictionRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1EvictionRequest): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + ("spec" if serialize else "spec"): _to_legacy_value(getattr(self, "spec", None), serialize), + ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + # override the default output from pydantic by calling `to_dict()` of spec + if self.spec: + _dict['spec'] = _to_openapi_value(self.spec) + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = _to_openapi_value(self.status) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "kind": obj.get("kind"), + "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, + "spec": V1alpha1EvictionRequestSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, + "status": V1alpha1EvictionRequestStatus.from_dict(obj["status"]) if obj.get("status") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha1_eviction_request_list.py b/kubernetes/aio/client/models/v1alpha1_eviction_request_list.py new file mode 100644 index 0000000000..fd872b74c9 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha1_eviction_request_list.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_list_meta import V1ListMeta +from kubernetes.aio.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1EvictionRequestList(BaseModel): + """ + EvictionRequestList contains a list of EvictionRequests resources. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + items: List[V1alpha1EvictionRequest] = Field(description="items is the list of EvictionRequests.") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ListMeta] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "items": "List[V1alpha1EvictionRequest]", + "kind": "str", + "metadata": "V1ListMeta" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "items": "items", + "kind": "kind", + "metadata": "metadata" + } + __properties: ClassVar[List[str]] = ["apiVersion", "items", "kind", "metadata"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1EvictionRequestList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1EvictionRequestList): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequestList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + _items.append(_to_openapi_value(_item_items) if _item_items is not None else None) + _dict['items'] = _items + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequestList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "items": [V1alpha1EvictionRequest.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "kind": obj.get("kind"), + "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha1_eviction_request_pod_reference.py b/kubernetes/aio/client/models/v1alpha1_eviction_request_pod_reference.py new file mode 100644 index 0000000000..572360589c --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha1_eviction_request_pod_reference.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1EvictionRequestPodReference(BaseModel): + """ + EvictionRequestPodReference contains enough information to locate the referenced pod inside the same namespace. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + name: StrictStr = Field(description="name of the target. This field is required.") + uid: StrictStr = Field(description="uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required.") + openapi_types: ClassVar[Dict[str, str]] = { + "name": "str", + "uid": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "name": "name", + "uid": "uid" + } + __properties: ClassVar[List[str]] = ["name", "uid"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1EvictionRequestPodReference): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1EvictionRequestPodReference): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequestPodReference from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("uid" if serialize else "uid"): _to_legacy_value(getattr(self, "uid", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequestPodReference from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "uid": obj.get("uid") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha1_eviction_request_spec.py b/kubernetes/aio/client/models/v1alpha1_eviction_request_spec.py new file mode 100644 index 0000000000..a71fd55a9a --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha1_eviction_request_spec.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from kubernetes.aio.client.models.v1alpha1_eviction_request_target import V1alpha1EvictionRequestTarget +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1EvictionRequestSpec(BaseModel): + """ + EvictionRequestSpec is a specification of an EvictionRequest. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + intent: StrictStr = Field(description="intent specifies the action that should be taken for the specified target. - Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target. If all requesters' intents are withdrawn for a common target, the eviction will be canceled. Cancellation consequences: - Inactive responders will never run. - Active responders are expected to cancel the eviction. - Completed or Interrupted responders should not take any action.") + requester: StrictStr = Field(description="requester allows you to identify the entity, that requested the eviction of the target. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field is required and immutable.") + target: V1alpha1EvictionRequestTarget + openapi_types: ClassVar[Dict[str, str]] = { + "intent": "str", + "requester": "str", + "target": "V1alpha1EvictionRequestTarget" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "intent": "intent", + "requester": "requester", + "target": "target" + } + __properties: ClassVar[List[str]] = ["intent", "requester", "target"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1EvictionRequestSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1EvictionRequestSpec): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequestSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("intent" if serialize else "intent"): _to_legacy_value(getattr(self, "intent", None), serialize), + ("requester" if serialize else "requester"): _to_legacy_value(getattr(self, "requester", None), serialize), + ("target" if serialize else "target"): _to_legacy_value(getattr(self, "target", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of target + if self.target: + _dict['target'] = _to_openapi_value(self.target) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequestSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "intent": obj.get("intent"), + "requester": obj.get("requester"), + "target": V1alpha1EvictionRequestTarget.from_dict(obj["target"]) if obj.get("target") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha1_eviction_request_status.py b/kubernetes/aio/client/models/v1alpha1_eviction_request_status.py new file mode 100644 index 0000000000..4a331fab2c --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha1_eviction_request_status.py @@ -0,0 +1,244 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_condition import V1Condition +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1EvictionRequestStatus(BaseModel): + """ + EvictionRequestStatus represents the last observed status of the eviction request. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + conditions: Optional[List[V1Condition]] = Field(default=None, description="conditions contain information about the eviction request. EvictionRequest specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed by any eviction responder. This can happen if the request is canceled or if no responder managed to evict the target (e.g. terminate or delete a pod). - TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted). These conditions can be reset if the eviction was unsuccessful and a new Eviction intent has been submitted. The maximum length of the conditions list is 100.") + observed_generation: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("observedGeneration", "observed_generation"), serialization_alias="observedGeneration", description="observedGeneration is EvictionRequest's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller.") + openapi_types: ClassVar[Dict[str, str]] = { + "conditions": "List[V1Condition]", + "observed_generation": "int" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "conditions": "conditions", + "observed_generation": "observedGeneration" + } + __properties: ClassVar[List[str]] = ["conditions", "observedGeneration"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "observedGeneration" not in obj and "observed_generation" in obj: + obj["observedGeneration"] = obj["observed_generation"] + obj.pop("observed_generation", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1EvictionRequestStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1EvictionRequestStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequestStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("conditions" if serialize else "conditions"): _to_legacy_value(getattr(self, "conditions", None), serialize), + ("observedGeneration" if serialize else "observed_generation"): _to_legacy_value(getattr(self, "observed_generation", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in conditions (list) + _items = [] + if self.conditions: + for _item_conditions in self.conditions: + _items.append(_to_openapi_value(_item_conditions) if _item_conditions is not None else None) + _dict['conditions'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequestStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "conditions": [V1Condition.from_dict(_item) for _item in obj["conditions"]] if obj.get("conditions") is not None else None, + "observedGeneration": obj.get("observedGeneration") + }) + return _obj diff --git a/kubernetes/client/models/v1alpha2_pod_group_template_reference.py b/kubernetes/aio/client/models/v1alpha1_eviction_request_target.py similarity index 82% rename from kubernetes/client/models/v1alpha2_pod_group_template_reference.py rename to kubernetes/aio/client/models/v1alpha1_eviction_request_target.py index e07de8f4b3..7d2296c2be 100644 --- a/kubernetes/client/models/v1alpha2_pod_group_template_reference.py +++ b/kubernetes/aio/client/models/v1alpha1_eviction_request_target.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from kubernetes.client.models.v1alpha2_workload_pod_group_template_reference import V1alpha2WorkloadPodGroupTemplateReference +from kubernetes.aio.client.models.v1alpha1_eviction_request_pod_reference import V1alpha1EvictionRequestPodReference from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -93,9 +93,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroupTemplateReference(BaseModel): +class V1alpha1EvictionRequestTarget(BaseModel): """ - PodGroupTemplateReference references a PodGroup template defined in some object (e.g. Workload). Exactly one reference must be set. + EvictionRequestTarget contains a reference to an object that should be evicted. Attributes: openapi_types (dict): The key is attribute name @@ -103,15 +103,15 @@ class V1alpha2PodGroupTemplateReference(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - workload: Optional[V1alpha2WorkloadPodGroupTemplateReference] = None + pod: Optional[V1alpha1EvictionRequestPodReference] = None openapi_types: ClassVar[Dict[str, str]] = { - "workload": "V1alpha2WorkloadPodGroupTemplateReference" + "pod": "V1alpha1EvictionRequestPodReference" } attribute_map: ClassVar[Dict[str, str]] = { - "workload": "workload" + "pod": "pod" } - __properties: ClassVar[List[str]] = ["workload"] + __properties: ClassVar[List[str]] = ["pod"] model_config = ConfigDict( validate_by_name=True, @@ -132,14 +132,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroupTemplateReference): + if not isinstance(other, V1alpha1EvictionRequestTarget): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroupTemplateReference): + if not isinstance(other, V1alpha1EvictionRequestTarget): return True return not (self == other) @@ -154,13 +154,13 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupTemplateReference from a JSON string""" + """Create an instance of V1alpha1EvictionRequestTarget from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { - ("workload" if serialize else "workload"): _to_legacy_value(getattr(self, "workload", None), serialize), + ("pod" if serialize else "pod"): _to_legacy_value(getattr(self, "pod", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -181,9 +181,9 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of workload - if self.workload: - _dict['workload'] = _to_openapi_value(self.workload) + # override the default output from pydantic by calling `to_dict()` of pod + if self.pod: + _dict['pod'] = _to_openapi_value(self.pod) return _dict setattr( @@ -200,7 +200,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupTemplateReference from a dict""" + """Create an instance of V1alpha1EvictionRequestTarget from a dict""" if obj is None: return None @@ -208,6 +208,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "workload": V1alpha2WorkloadPodGroupTemplateReference.from_dict(obj["workload"]) if obj.get("workload") is not None else None + "pod": V1alpha1EvictionRequestPodReference.from_dict(obj["pod"]) if obj.get("pod") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1alpha1_eviction_spec.py b/kubernetes/aio/client/models/v1alpha1_eviction_spec.py new file mode 100644 index 0000000000..46a21cdb15 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha1_eviction_spec.py @@ -0,0 +1,213 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from kubernetes.aio.client.models.v1alpha1_eviction_target import V1alpha1EvictionTarget +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1EvictionSpec(BaseModel): + """ + EvictionSpec is a specification of an Eviction. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + target: V1alpha1EvictionTarget + openapi_types: ClassVar[Dict[str, str]] = { + "target": "V1alpha1EvictionTarget" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "target": "target" + } + __properties: ClassVar[List[str]] = ["target"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1EvictionSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1EvictionSpec): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1EvictionSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("target" if serialize else "target"): _to_legacy_value(getattr(self, "target", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of target + if self.target: + _dict['target'] = _to_openapi_value(self.target) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1EvictionSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "target": V1alpha1EvictionTarget.from_dict(obj["target"]) if obj.get("target") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha1_eviction_status.py b/kubernetes/aio/client/models/v1alpha1_eviction_status.py new file mode 100644 index 0000000000..299ec766e8 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha1_eviction_status.py @@ -0,0 +1,283 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_condition import V1Condition +from kubernetes.aio.client.models.v1alpha1_requester import V1alpha1Requester +from kubernetes.aio.client.models.v1alpha1_responder_status import V1alpha1ResponderStatus +from kubernetes.aio.client.models.v1alpha1_target_responder import V1alpha1TargetResponder +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1EvictionStatus(BaseModel): + """ + EvictionStatus represents the last observed status of the eviction request. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + conditions: Optional[List[V1Condition]] = Field(default=None, description="conditions contain information about the eviction request. Eviction specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed by any eviction responder. This can happen if the request is canceled or if no responder managed to evict the target (e.g. terminate or delete a pod). - TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted). The maximum length of the conditions list is 100.") + observed_generation: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("observedGeneration", "observed_generation"), serialization_alias="observedGeneration", description="observedGeneration is Eviction's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller.") + requesters: Optional[List[V1alpha1Requester]] = Field(default=None, description="requesters allow you to identify the entities, that requested the eviction of the target. If all the requesters withdraw their eviction intent, the eviction will be canceled. The maximum length of the requesters list is 100. If this limit is exceeded, requesters with Withdrawn intent should be dropped first.") + responders: Optional[List[V1alpha1ResponderStatus]] = Field(default=None, description="responders represents the eviction process status of each declared responder. The responder list should be the same length and have the same .name fields as .status.targetResponders. Only responders with .name that have Active state in .targetResponders[].state should be updated and can be mutated. First initialization of the list is allowed. Each ResponderStatus is initialized by evictionrequest-controller and then managed by the designated responder.") + target_responders: Optional[List[V1alpha1TargetResponder]] = Field(default=None, validation_alias=AliasChoices("targetResponders", "target_responders"), serialization_alias="targetResponders", description="targetResponders reference responders that should eventually respond to this eviction to help with the graceful eviction of a target. These responders are selected sequentially, according to their specified priority by setting the Active state to the TargetResponder .state field. The maximum number of active responders allowed is 1. Eventually each responder can end up in an Interrupted, Canceled or, Completed state. Responders should observe these states in order to navigate their lifecycle. If the target is a pod, the field is populated from Pod's .spec.evictionResponders. Default responders may be added to the list according to the target. Default responders: - imperative-eviction.k8s.io/evictor responder with a priority of 100 is added to the list if the target is a pod. It will call the imperative Eviction API (pods//eviction subresource). This call may not succeed due to PodDisruptionBudgets, which may block the pod termination. It will update the responder message and try again with a backoff. The maximum length of the responders list is 11. The length and keys of the list cannot change once set. This field is managed by evictionrequest-controller.") + openapi_types: ClassVar[Dict[str, str]] = { + "conditions": "List[V1Condition]", + "observed_generation": "int", + "requesters": "List[V1alpha1Requester]", + "responders": "List[V1alpha1ResponderStatus]", + "target_responders": "List[V1alpha1TargetResponder]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "conditions": "conditions", + "observed_generation": "observedGeneration", + "requesters": "requesters", + "responders": "responders", + "target_responders": "targetResponders" + } + __properties: ClassVar[List[str]] = ["conditions", "observedGeneration", "requesters", "responders", "targetResponders"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "observedGeneration" not in obj and "observed_generation" in obj: + obj["observedGeneration"] = obj["observed_generation"] + obj.pop("observed_generation", None) + if "targetResponders" not in obj and "target_responders" in obj: + obj["targetResponders"] = obj["target_responders"] + obj.pop("target_responders", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1EvictionStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1EvictionStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1EvictionStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("conditions" if serialize else "conditions"): _to_legacy_value(getattr(self, "conditions", None), serialize), + ("observedGeneration" if serialize else "observed_generation"): _to_legacy_value(getattr(self, "observed_generation", None), serialize), + ("requesters" if serialize else "requesters"): _to_legacy_value(getattr(self, "requesters", None), serialize), + ("responders" if serialize else "responders"): _to_legacy_value(getattr(self, "responders", None), serialize), + ("targetResponders" if serialize else "target_responders"): _to_legacy_value(getattr(self, "target_responders", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in conditions (list) + _items = [] + if self.conditions: + for _item_conditions in self.conditions: + _items.append(_to_openapi_value(_item_conditions) if _item_conditions is not None else None) + _dict['conditions'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in requesters (list) + _items = [] + if self.requesters: + for _item_requesters in self.requesters: + _items.append(_to_openapi_value(_item_requesters) if _item_requesters is not None else None) + _dict['requesters'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in responders (list) + _items = [] + if self.responders: + for _item_responders in self.responders: + _items.append(_to_openapi_value(_item_responders) if _item_responders is not None else None) + _dict['responders'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in target_responders (list) + _items = [] + if self.target_responders: + for _item_target_responders in self.target_responders: + _items.append(_to_openapi_value(_item_target_responders) if _item_target_responders is not None else None) + _dict['targetResponders'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1EvictionStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "conditions": [V1Condition.from_dict(_item) for _item in obj["conditions"]] if obj.get("conditions") is not None else None, + "observedGeneration": obj.get("observedGeneration"), + "requesters": [V1alpha1Requester.from_dict(_item) for _item in obj["requesters"]] if obj.get("requesters") is not None else None, + "responders": [V1alpha1ResponderStatus.from_dict(_item) for _item in obj["responders"]] if obj.get("responders") is not None else None, + "targetResponders": [V1alpha1TargetResponder.from_dict(_item) for _item in obj["targetResponders"]] if obj.get("targetResponders") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha1_eviction_target.py b/kubernetes/aio/client/models/v1alpha1_eviction_target.py new file mode 100644 index 0000000000..ae60e759ac --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha1_eviction_target.py @@ -0,0 +1,213 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.aio.client.models.v1alpha1_eviction_pod_reference import V1alpha1EvictionPodReference +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1EvictionTarget(BaseModel): + """ + EvictionTarget contains a reference to an object that should be evicted. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + pod: Optional[V1alpha1EvictionPodReference] = None + openapi_types: ClassVar[Dict[str, str]] = { + "pod": "V1alpha1EvictionPodReference" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "pod": "pod" + } + __properties: ClassVar[List[str]] = ["pod"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1EvictionTarget): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1EvictionTarget): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1EvictionTarget from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("pod" if serialize else "pod"): _to_legacy_value(getattr(self, "pod", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of pod + if self.pod: + _dict['pod'] = _to_openapi_value(self.pod) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1EvictionTarget from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pod": V1alpha1EvictionPodReference.from_dict(obj["pod"]) if obj.get("pod") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha1_json_patch.py b/kubernetes/aio/client/models/v1alpha1_json_patch.py index b6ee30e8ff..5a3b3d5a18 100644 --- a/kubernetes/aio/client/models/v1alpha1_json_patch.py +++ b/kubernetes/aio/client/models/v1alpha1_json_patch.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_match_condition.py b/kubernetes/aio/client/models/v1alpha1_match_condition.py index 0eaea8a128..c655fdf308 100644 --- a/kubernetes/aio/client/models/v1alpha1_match_condition.py +++ b/kubernetes/aio/client/models/v1alpha1_match_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_match_resources.py b/kubernetes/aio/client/models/v1alpha1_match_resources.py index a2f844aad4..c60bdd47b4 100644 --- a/kubernetes/aio/client/models/v1alpha1_match_resources.py +++ b/kubernetes/aio/client/models/v1alpha1_match_resources.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy.py b/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy.py index f1ec074d03..4dd68e2bea 100644 --- a/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy.py +++ b/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_binding.py b/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_binding.py index 76914d9682..5be4cac3e5 100644 --- a/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_binding.py +++ b/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_binding_list.py b/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_binding_list.py index 0061d19e81..5390d316d7 100644 --- a/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_binding_list.py +++ b/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_binding_spec.py b/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_binding_spec.py index 1882439736..5da6e8b5ef 100644 --- a/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_binding_spec.py +++ b/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_binding_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_list.py b/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_list.py index c107086216..6bcea94f0c 100644 --- a/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_list.py +++ b/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_spec.py b/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_spec.py index 970fb34f69..a226a3ede9 100644 --- a/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_spec.py +++ b/kubernetes/aio/client/models/v1alpha1_mutating_admission_policy_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_mutation.py b/kubernetes/aio/client/models/v1alpha1_mutation.py index 739fc898fa..119315bf70 100644 --- a/kubernetes/aio/client/models/v1alpha1_mutation.py +++ b/kubernetes/aio/client/models/v1alpha1_mutation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_named_rule_with_operations.py b/kubernetes/aio/client/models/v1alpha1_named_rule_with_operations.py index 38b8d94c7e..fb89670257 100644 --- a/kubernetes/aio/client/models/v1alpha1_named_rule_with_operations.py +++ b/kubernetes/aio/client/models/v1alpha1_named_rule_with_operations.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_param_kind.py b/kubernetes/aio/client/models/v1alpha1_param_kind.py index 740a498688..7f0462813c 100644 --- a/kubernetes/aio/client/models/v1alpha1_param_kind.py +++ b/kubernetes/aio/client/models/v1alpha1_param_kind.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_param_ref.py b/kubernetes/aio/client/models/v1alpha1_param_ref.py index 9a24541b44..515110cb71 100644 --- a/kubernetes/aio/client/models/v1alpha1_param_ref.py +++ b/kubernetes/aio/client/models/v1alpha1_param_ref.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_requester.py b/kubernetes/aio/client/models/v1alpha1_requester.py new file mode 100644 index 0000000000..d0f68ab078 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha1_requester.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1Requester(BaseModel): + """ + Requester allows you to identify the entity, that requested the eviction of the target. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + intent: StrictStr = Field(description="intent specifies the action that should be taken for the specified target. - Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target. If all requesters' intents are withdrawn, the eviction will be canceled. Cancellation consequences: - Inactive responders will never run. - Active responders are expected to cancel the eviction. - Completed or Interrupted responders should not take any action.") + name: StrictStr = Field(description="name allows you to identify the entity, that requested the eviction of the target. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each requester. This field is required.") + openapi_types: ClassVar[Dict[str, str]] = { + "intent": "str", + "name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "intent": "intent", + "name": "name" + } + __properties: ClassVar[List[str]] = ["intent", "name"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1Requester): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1Requester): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1Requester from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("intent" if serialize else "intent"): _to_legacy_value(getattr(self, "intent", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1Requester from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "intent": obj.get("intent"), + "name": obj.get("name") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha1_responder_status.py b/kubernetes/aio/client/models/v1alpha1_responder_status.py new file mode 100644 index 0000000000..7ba7b7ed55 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha1_responder_status.py @@ -0,0 +1,267 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from datetime import datetime +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1ResponderStatus(BaseModel): + """ + ResponderStatus represents the last observed status of the eviction process of the responder. It should be only updated by the designated responder whose name is .name field. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + completion_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("completionTime", "completion_time"), serialization_alias="completionTime", description="completionTime tracks the time at which the Responder stopped processing the eviction request. Completion means that the responders has either fully or partially completed the eviction process, which may have resulted in target eviction (e.g. pod termination). It should reflect the present time when set. This field becomes immutable once set.") + expected_completion_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("expectedCompletionTime", "expected_completion_time"), serialization_alias="expectedCompletionTime", description="expectedCompletionTime is the time at which the eviction process step is expected to end for the responder. The time cannot be set to the past. May be omitted if no estimate can be made.") + heartbeat_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("heartbeatTime", "heartbeat_time"), serialization_alias="heartbeatTime", description="heartbeatTime is the last time at which the eviction process was reported to be in progress by the responder. It should reflect the present time when set. Responders should avoid heartbeats more frequent than 20 seconds to avoid overloading the control-plane.") + message: Optional[StrictStr] = Field(default=None, description="message provides human-readable details about the state of the responder and the eviction process. Maximum length is 4000 characters.") + name: StrictStr = Field(description="name allows you to identify the responder reacting to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field is initialized by Kubernetes and must be unique for each responder. This field is required.") + start_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("startTime", "start_time"), serialization_alias="startTime", description="startTime tracks the time at which this responder was designated as active and should start processing the eviction request. It should reflect the present time when set. This field is initialized by Kubernetes when this responder becomes active. This field becomes immutable once set.") + openapi_types: ClassVar[Dict[str, str]] = { + "completion_time": "datetime", + "expected_completion_time": "datetime", + "heartbeat_time": "datetime", + "message": "str", + "name": "str", + "start_time": "datetime" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "completion_time": "completionTime", + "expected_completion_time": "expectedCompletionTime", + "heartbeat_time": "heartbeatTime", + "message": "message", + "name": "name", + "start_time": "startTime" + } + __properties: ClassVar[List[str]] = ["completionTime", "expectedCompletionTime", "heartbeatTime", "message", "name", "startTime"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "completionTime" not in obj and "completion_time" in obj: + obj["completionTime"] = obj["completion_time"] + obj.pop("completion_time", None) + if "expectedCompletionTime" not in obj and "expected_completion_time" in obj: + obj["expectedCompletionTime"] = obj["expected_completion_time"] + obj.pop("expected_completion_time", None) + if "heartbeatTime" not in obj and "heartbeat_time" in obj: + obj["heartbeatTime"] = obj["heartbeat_time"] + obj.pop("heartbeat_time", None) + if "startTime" not in obj and "start_time" in obj: + obj["startTime"] = obj["start_time"] + obj.pop("start_time", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1ResponderStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1ResponderStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1ResponderStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("completionTime" if serialize else "completion_time"): _to_legacy_value(getattr(self, "completion_time", None), serialize), + ("expectedCompletionTime" if serialize else "expected_completion_time"): _to_legacy_value(getattr(self, "expected_completion_time", None), serialize), + ("heartbeatTime" if serialize else "heartbeat_time"): _to_legacy_value(getattr(self, "heartbeat_time", None), serialize), + ("message" if serialize else "message"): _to_legacy_value(getattr(self, "message", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("startTime" if serialize else "start_time"): _to_legacy_value(getattr(self, "start_time", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1ResponderStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "completionTime": obj.get("completionTime"), + "expectedCompletionTime": obj.get("expectedCompletionTime"), + "heartbeatTime": obj.get("heartbeatTime"), + "message": obj.get("message"), + "name": obj.get("name"), + "startTime": obj.get("startTime") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha1_server_storage_version.py b/kubernetes/aio/client/models/v1alpha1_server_storage_version.py index 506d11142b..903fc9ddc6 100644 --- a/kubernetes/aio/client/models/v1alpha1_server_storage_version.py +++ b/kubernetes/aio/client/models/v1alpha1_server_storage_version.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_storage_version.py b/kubernetes/aio/client/models/v1alpha1_storage_version.py index bbe23d2cb6..3a6165fffa 100644 --- a/kubernetes/aio/client/models/v1alpha1_storage_version.py +++ b/kubernetes/aio/client/models/v1alpha1_storage_version.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_storage_version_condition.py b/kubernetes/aio/client/models/v1alpha1_storage_version_condition.py index 6284e472e5..f2d0575fba 100644 --- a/kubernetes/aio/client/models/v1alpha1_storage_version_condition.py +++ b/kubernetes/aio/client/models/v1alpha1_storage_version_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_storage_version_list.py b/kubernetes/aio/client/models/v1alpha1_storage_version_list.py index fd0ccb9033..d31e8d01f2 100644 --- a/kubernetes/aio/client/models/v1alpha1_storage_version_list.py +++ b/kubernetes/aio/client/models/v1alpha1_storage_version_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_storage_version_status.py b/kubernetes/aio/client/models/v1alpha1_storage_version_status.py index eda3d03892..139587cbb2 100644 --- a/kubernetes/aio/client/models/v1alpha1_storage_version_status.py +++ b/kubernetes/aio/client/models/v1alpha1_storage_version_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha1_target_responder.py b/kubernetes/aio/client/models/v1alpha1_target_responder.py new file mode 100644 index 0000000000..60a2562a80 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha1_target_responder.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1TargetResponder(BaseModel): + """ + TargetResponder allows you to specify the responder reacting to the Eviction. Responders should observe and communicate through the Eviction API (see .state) to help with the graceful eviction of a target (e.g. termination of a pod). + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + name: StrictStr = Field(description="name allows you to identify the responder reacting to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each responder. This field is required.") + priority: StrictInt = Field(description="priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last. The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders. The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required and immutable.") + state: StrictStr = Field(description="state specifies a state that is assigned by the evictionrequest-controller. Responders should observe this state in order to navigate their lifecycle. - Inactive means that the responder should not yet process this eviction request. - Active means that the responder is either running or expected to start soon. Also, startTime has been set in the ResponderStatus by the evictionrequest-controller. An active responder should currently interact with the eviction process by updating .status.responders, where .name is the active responder name. ResponderStatus fields should be periodically updated to indicate the progress or completion of the eviction process. If .status.responders[].heartbeatTime field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. Only one responder can be active at a time. - Interrupted means that the responder has failed to start or failed to update heartbeatTime in ResponderStatus in a timely manner. - Canceled means that the responder has been canceled. In other words, there is no EvictionRequest with the same target and Eviction intent in .spec.intent. - Completed means that the responder has successfully completed and set completionTime in ResponderStatus. Please refer to the ResponderStatus in .status.responders for more details on each responder.") + openapi_types: ClassVar[Dict[str, str]] = { + "name": "str", + "priority": "int", + "state": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "name": "name", + "priority": "priority", + "state": "state" + } + __properties: ClassVar[List[str]] = ["name", "priority", "state"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1TargetResponder): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1TargetResponder): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1TargetResponder from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("priority" if serialize else "priority"): _to_legacy_value(getattr(self, "priority", None), serialize), + ("state" if serialize else "state"): _to_legacy_value(getattr(self, "state", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1TargetResponder from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "priority": obj.get("priority"), + "state": obj.get("state") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha1_variable.py b/kubernetes/aio/client/models/v1alpha1_variable.py index d3e1bd85e7..eb7fbcce4b 100644 --- a/kubernetes/aio/client/models/v1alpha1_variable.py +++ b/kubernetes/aio/client/models/v1alpha1_variable.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha2_lease_candidate.py b/kubernetes/aio/client/models/v1alpha2_lease_candidate.py index b62e4e0b75..c9e9e93e09 100644 --- a/kubernetes/aio/client/models/v1alpha2_lease_candidate.py +++ b/kubernetes/aio/client/models/v1alpha2_lease_candidate.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha2_lease_candidate_list.py b/kubernetes/aio/client/models/v1alpha2_lease_candidate_list.py index 3dee0a6f82..1c65e848d3 100644 --- a/kubernetes/aio/client/models/v1alpha2_lease_candidate_list.py +++ b/kubernetes/aio/client/models/v1alpha2_lease_candidate_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha2_lease_candidate_spec.py b/kubernetes/aio/client/models/v1alpha2_lease_candidate_spec.py index 370fdeb7bd..921b5b6ac7 100644 --- a/kubernetes/aio/client/models/v1alpha2_lease_candidate_spec.py +++ b/kubernetes/aio/client/models/v1alpha2_lease_candidate_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -104,12 +104,12 @@ class V1alpha2LeaseCandidateSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - binary_version: StrictStr = Field(validation_alias=AliasChoices("binaryVersion", "binary_version"), serialization_alias="binaryVersion", description="BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.") - emulation_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("emulationVersion", "emulation_version"), serialization_alias="emulationVersion", description="EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"") - lease_name: StrictStr = Field(validation_alias=AliasChoices("leaseName", "lease_name"), serialization_alias="leaseName", description="LeaseName is the name of the lease for which this candidate is contending. This field is immutable.") - ping_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("pingTime", "ping_time"), serialization_alias="pingTime", description="PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.") - renew_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("renewTime", "renew_time"), serialization_alias="renewTime", description="RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.") - strategy: StrictStr = Field(description="Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.") + binary_version: StrictStr = Field(validation_alias=AliasChoices("binaryVersion", "binary_version"), serialization_alias="binaryVersion", description="binaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.") + emulation_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("emulationVersion", "emulation_version"), serialization_alias="emulationVersion", description="emulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"") + lease_name: StrictStr = Field(validation_alias=AliasChoices("leaseName", "lease_name"), serialization_alias="leaseName", description="leaseName is the name of the lease for which this candidate is contending. This field is immutable.") + ping_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("pingTime", "ping_time"), serialization_alias="pingTime", description="pingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.") + renew_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("renewTime", "renew_time"), serialization_alias="renewTime", description="renewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.") + strategy: StrictStr = Field(description="strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.") openapi_types: ClassVar[Dict[str, str]] = { "binary_version": "str", "emulation_version": "str", diff --git a/kubernetes/aio/client/models/v1alpha3_composite_disruption_mode.py b/kubernetes/aio/client/models/v1alpha3_composite_disruption_mode.py new file mode 100644 index 0000000000..395543ca17 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha3_composite_disruption_mode.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3CompositeDisruptionMode(BaseModel): + """ + CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + all: Optional[Dict[str, Any]] = Field(default=None, description="all specifies that all children groups can only be disrupted together.") + single: Optional[Dict[str, Any]] = Field(default=None, description="single specifies that children groups can be disrupted independently from each other.") + openapi_types: ClassVar[Dict[str, str]] = { + "all": "object", + "single": "object" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "all": "all", + "single": "single" + } + __properties: ClassVar[List[str]] = ["all", "single"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3CompositeDisruptionMode): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3CompositeDisruptionMode): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3CompositeDisruptionMode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("all" if serialize else "all"): _to_legacy_value(getattr(self, "all", None), serialize), + ("single" if serialize else "single"): _to_legacy_value(getattr(self, "single", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3CompositeDisruptionMode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "all": obj.get("all"), + "single": obj.get("single") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha3_composite_gang_scheduling_policy.py b/kubernetes/aio/client/models/v1alpha3_composite_gang_scheduling_policy.py new file mode 100644 index 0000000000..b19cc716bf --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha3_composite_gang_scheduling_policy.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3CompositeGangSchedulingPolicy(BaseModel): + """ + CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + min_group_count: StrictInt = Field(validation_alias=AliasChoices("minGroupCount", "min_group_count"), serialization_alias="minGroupCount", description="minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.") + openapi_types: ClassVar[Dict[str, str]] = { + "min_group_count": "int" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "min_group_count": "minGroupCount" + } + __properties: ClassVar[List[str]] = ["minGroupCount"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "minGroupCount" not in obj and "min_group_count" in obj: + obj["minGroupCount"] = obj["min_group_count"] + obj.pop("min_group_count", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3CompositeGangSchedulingPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3CompositeGangSchedulingPolicy): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3CompositeGangSchedulingPolicy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("minGroupCount" if serialize else "min_group_count"): _to_legacy_value(getattr(self, "min_group_count", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3CompositeGangSchedulingPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "minGroupCount": obj.get("minGroupCount") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha3_composite_pod_group.py b/kubernetes/aio/client/models/v1alpha3_composite_pod_group.py new file mode 100644 index 0000000000..4e8e3f0197 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha3_composite_pod_group.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_object_meta import V1ObjectMeta +from kubernetes.aio.client.models.v1alpha3_composite_pod_group_spec import V1alpha3CompositePodGroupSpec +from kubernetes.aio.client.models.v1alpha3_composite_pod_group_status import V1alpha3CompositePodGroupStatus +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3CompositePodGroup(BaseModel): + """ + CompositePodGroup represents a runtime instance of pod groups grouped together. CompositePodGroups are created by workload controllers (LWS, JobSet, etc...) from Workload.compositePodGroupTemplates. CompositePodGroup API enablement is toggled by the CompositePodGroup feature gate. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ObjectMeta] = None + spec: V1alpha3CompositePodGroupSpec + status: Optional[V1alpha3CompositePodGroupStatus] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "kind": "str", + "metadata": "V1ObjectMeta", + "spec": "V1alpha3CompositePodGroupSpec", + "status": "V1alpha3CompositePodGroupStatus" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "kind": "kind", + "metadata": "metadata", + "spec": "spec", + "status": "status" + } + __properties: ClassVar[List[str]] = ["apiVersion", "kind", "metadata", "spec", "status"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3CompositePodGroup): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3CompositePodGroup): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroup from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + ("spec" if serialize else "spec"): _to_legacy_value(getattr(self, "spec", None), serialize), + ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + # override the default output from pydantic by calling `to_dict()` of spec + if self.spec: + _dict['spec'] = _to_openapi_value(self.spec) + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = _to_openapi_value(self.status) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroup from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "kind": obj.get("kind"), + "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, + "spec": V1alpha3CompositePodGroupSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, + "status": V1alpha3CompositePodGroupStatus.from_dict(obj["status"]) if obj.get("status") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha3_composite_pod_group_list.py b/kubernetes/aio/client/models/v1alpha3_composite_pod_group_list.py new file mode 100644 index 0000000000..16243037b5 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha3_composite_pod_group_list.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_list_meta import V1ListMeta +from kubernetes.aio.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3CompositePodGroupList(BaseModel): + """ + CompositePodGroupList contains a list of CompositePodGroup resources. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + items: List[V1alpha3CompositePodGroup] = Field(description="Items is the list of CompositePodGroups.") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ListMeta] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "items": "List[V1alpha3CompositePodGroup]", + "kind": "str", + "metadata": "V1ListMeta" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "items": "items", + "kind": "kind", + "metadata": "metadata" + } + __properties: ClassVar[List[str]] = ["apiVersion", "items", "kind", "metadata"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3CompositePodGroupList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3CompositePodGroupList): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + _items.append(_to_openapi_value(_item_items) if _item_items is not None else None) + _dict['items'] = _items + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "items": [V1alpha3CompositePodGroup.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "kind": obj.get("kind"), + "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha3_composite_pod_group_scheduling_constraints.py b/kubernetes/aio/client/models/v1alpha3_composite_pod_group_scheduling_constraints.py new file mode 100644 index 0000000000..bebaa3216c --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha3_composite_pod_group_scheduling_constraints.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.aio.client.models.v1alpha3_topology_constraint import V1alpha3TopologyConstraint +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3CompositePodGroupSchedulingConstraints(BaseModel): + """ + CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + topology: Optional[List[V1alpha3TopologyConstraint]] = Field(default=None, description="topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future.") + openapi_types: ClassVar[Dict[str, str]] = { + "topology": "List[V1alpha3TopologyConstraint]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "topology": "topology" + } + __properties: ClassVar[List[str]] = ["topology"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3CompositePodGroupSchedulingConstraints): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3CompositePodGroupSchedulingConstraints): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupSchedulingConstraints from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("topology" if serialize else "topology"): _to_legacy_value(getattr(self, "topology", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in topology (list) + _items = [] + if self.topology: + for _item_topology in self.topology: + _items.append(_to_openapi_value(_item_topology) if _item_topology is not None else None) + _dict['topology'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupSchedulingConstraints from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "topology": [V1alpha3TopologyConstraint.from_dict(_item) for _item in obj["topology"]] if obj.get("topology") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha3_composite_pod_group_scheduling_policy.py b/kubernetes/aio/client/models/v1alpha3_composite_pod_group_scheduling_policy.py new file mode 100644 index 0000000000..1d45d912c1 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha3_composite_pod_group_scheduling_policy.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.aio.client.models.v1alpha3_composite_gang_scheduling_policy import V1alpha3CompositeGangSchedulingPolicy +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3CompositePodGroupSchedulingPolicy(BaseModel): + """ + CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + basic: Optional[Dict[str, Any]] = Field(default=None, description="basic specifies that the groups of this composite group should be scheduled independently. This field is immutable.") + gang: Optional[V1alpha3CompositeGangSchedulingPolicy] = None + openapi_types: ClassVar[Dict[str, str]] = { + "basic": "object", + "gang": "V1alpha3CompositeGangSchedulingPolicy" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "basic": "basic", + "gang": "gang" + } + __properties: ClassVar[List[str]] = ["basic", "gang"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3CompositePodGroupSchedulingPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3CompositePodGroupSchedulingPolicy): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupSchedulingPolicy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("basic" if serialize else "basic"): _to_legacy_value(getattr(self, "basic", None), serialize), + ("gang" if serialize else "gang"): _to_legacy_value(getattr(self, "gang", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of gang + if self.gang: + _dict['gang'] = _to_openapi_value(self.gang) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupSchedulingPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "basic": obj.get("basic"), + "gang": V1alpha3CompositeGangSchedulingPolicy.from_dict(obj["gang"]) if obj.get("gang") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha3_composite_pod_group_spec.py b/kubernetes/aio/client/models/v1alpha3_composite_pod_group_spec.py new file mode 100644 index 0000000000..053ce5539f --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha3_composite_pod_group_spec.py @@ -0,0 +1,301 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1alpha3_composite_disruption_mode import V1alpha3CompositeDisruptionMode +from kubernetes.aio.client.models.v1alpha3_composite_pod_group_scheduling_constraints import V1alpha3CompositePodGroupSchedulingConstraints +from kubernetes.aio.client.models.v1alpha3_composite_pod_group_scheduling_policy import V1alpha3CompositePodGroupSchedulingPolicy +from kubernetes.aio.client.models.v1alpha3_workload_reference import V1alpha3WorkloadReference +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3CompositePodGroupSpec(BaseModel): + """ + CompositePodGroupSpec defines the desired state of CompositePodGroup. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + disruption_mode: Optional[V1alpha3CompositeDisruptionMode] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="disruptionMode") + parent_composite_pod_group_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("parentCompositePodGroupName", "parent_composite_pod_group_name"), serialization_alias="parentCompositePodGroupName", description="parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this composite pod group. It must be a DNS name. If it's nil, then this composite pod group is a root of a workload's hierarchy. This field is immutable.") + preemption_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preemptionPolicy", "preemption_policy"), serialization_alias="preemptionPolicy", description="preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + priority: Optional[StrictInt] = Field(default=None, description="priority is the value of priority of this composite pod group. Various system components use this field to find the priority of the composite 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.") + priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="priorityClassName", description="priorityClassName defines the priority that should be considered when scheduling this CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. If left unspecified, it is validated and resolved similarly to the PriorityClassName field in Pods (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the composite pod group's priority will be zero). This field is immutable.") + scheduling_constraints: Optional[V1alpha3CompositePodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") + scheduling_policy: V1alpha3CompositePodGroupSchedulingPolicy = Field(validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") + workload_ref: V1alpha3WorkloadReference = Field(validation_alias=AliasChoices("workloadRef", "workload_ref"), serialization_alias="workloadRef") + openapi_types: ClassVar[Dict[str, str]] = { + "disruption_mode": "V1alpha3CompositeDisruptionMode", + "parent_composite_pod_group_name": "str", + "preemption_policy": "str", + "priority": "int", + "priority_class_name": "str", + "scheduling_constraints": "V1alpha3CompositePodGroupSchedulingConstraints", + "scheduling_policy": "V1alpha3CompositePodGroupSchedulingPolicy", + "workload_ref": "V1alpha3WorkloadReference" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "disruption_mode": "disruptionMode", + "parent_composite_pod_group_name": "parentCompositePodGroupName", + "preemption_policy": "preemptionPolicy", + "priority": "priority", + "priority_class_name": "priorityClassName", + "scheduling_constraints": "schedulingConstraints", + "scheduling_policy": "schedulingPolicy", + "workload_ref": "workloadRef" + } + __properties: ClassVar[List[str]] = ["disruptionMode", "parentCompositePodGroupName", "preemptionPolicy", "priority", "priorityClassName", "schedulingConstraints", "schedulingPolicy", "workloadRef"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "disruptionMode" not in obj and "disruption_mode" in obj: + obj["disruptionMode"] = obj["disruption_mode"] + obj.pop("disruption_mode", None) + if "parentCompositePodGroupName" not in obj and "parent_composite_pod_group_name" in obj: + obj["parentCompositePodGroupName"] = obj["parent_composite_pod_group_name"] + obj.pop("parent_composite_pod_group_name", None) + if "preemptionPolicy" not in obj and "preemption_policy" in obj: + obj["preemptionPolicy"] = obj["preemption_policy"] + obj.pop("preemption_policy", None) + if "priorityClassName" not in obj and "priority_class_name" in obj: + obj["priorityClassName"] = obj["priority_class_name"] + obj.pop("priority_class_name", None) + if "schedulingConstraints" not in obj and "scheduling_constraints" in obj: + obj["schedulingConstraints"] = obj["scheduling_constraints"] + obj.pop("scheduling_constraints", None) + if "schedulingPolicy" not in obj and "scheduling_policy" in obj: + obj["schedulingPolicy"] = obj["scheduling_policy"] + obj.pop("scheduling_policy", None) + if "workloadRef" not in obj and "workload_ref" in obj: + obj["workloadRef"] = obj["workload_ref"] + obj.pop("workload_ref", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3CompositePodGroupSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3CompositePodGroupSpec): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("disruptionMode" if serialize else "disruption_mode"): _to_legacy_value(getattr(self, "disruption_mode", None), serialize), + ("parentCompositePodGroupName" if serialize else "parent_composite_pod_group_name"): _to_legacy_value(getattr(self, "parent_composite_pod_group_name", None), serialize), + ("preemptionPolicy" if serialize else "preemption_policy"): _to_legacy_value(getattr(self, "preemption_policy", None), serialize), + ("priority" if serialize else "priority"): _to_legacy_value(getattr(self, "priority", None), serialize), + ("priorityClassName" if serialize else "priority_class_name"): _to_legacy_value(getattr(self, "priority_class_name", None), serialize), + ("schedulingConstraints" if serialize else "scheduling_constraints"): _to_legacy_value(getattr(self, "scheduling_constraints", None), serialize), + ("schedulingPolicy" if serialize else "scheduling_policy"): _to_legacy_value(getattr(self, "scheduling_policy", None), serialize), + ("workloadRef" if serialize else "workload_ref"): _to_legacy_value(getattr(self, "workload_ref", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of disruption_mode + if self.disruption_mode: + _dict['disruptionMode'] = _to_openapi_value(self.disruption_mode) + # override the default output from pydantic by calling `to_dict()` of scheduling_constraints + if self.scheduling_constraints: + _dict['schedulingConstraints'] = _to_openapi_value(self.scheduling_constraints) + # override the default output from pydantic by calling `to_dict()` of scheduling_policy + if self.scheduling_policy: + _dict['schedulingPolicy'] = _to_openapi_value(self.scheduling_policy) + # override the default output from pydantic by calling `to_dict()` of workload_ref + if self.workload_ref: + _dict['workloadRef'] = _to_openapi_value(self.workload_ref) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "disruptionMode": V1alpha3CompositeDisruptionMode.from_dict(obj["disruptionMode"]) if obj.get("disruptionMode") is not None else None, + "parentCompositePodGroupName": obj.get("parentCompositePodGroupName"), + "preemptionPolicy": obj.get("preemptionPolicy"), + "priority": obj.get("priority"), + "priorityClassName": obj.get("priorityClassName"), + "schedulingConstraints": V1alpha3CompositePodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, + "schedulingPolicy": V1alpha3CompositePodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None, + "workloadRef": V1alpha3WorkloadReference.from_dict(obj["workloadRef"]) if obj.get("workloadRef") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha3_composite_pod_group_status.py b/kubernetes/aio/client/models/v1alpha3_composite_pod_group_status.py new file mode 100644 index 0000000000..11acdfee01 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha3_composite_pod_group_status.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.aio.client.models.v1_condition import V1Condition +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3CompositePodGroupStatus(BaseModel): + """ + CompositePodGroupStatus represents information about the status of a composite pod group. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + conditions: Optional[List[V1Condition]] = Field(default=None, description="conditions represent the latest observations of the CompositePodGroup's state. Known condition types: - \"CompositePodGroupInitiallyScheduled\": Indicates whether the overall scheduling requirement for the subtree under this CompositePodGroup has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently deleted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the CompositePodGroup is about to be terminated due to disruption such as preemption. Known reasons for the CompositePodGroupInitiallyScheduled condition: - \"Unschedulable\": The CompositePodGroup's subtree could not be placed due to resource constraints, affinity/anti-affinity, or topological constraints. - \"SchedulerError\": The CompositePodGroup cannot be scheduled due to some internal error that occurred during scheduling. - \"Invalid\": Set to True when kube-scheduler detects an invalid group layout during runtime validation. The `message` field details the specific layout violation (such as a detected cycle, exceeding the maximum depth of 4, or referencing multiple distinct Workloads). Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The CompositePodGroup was targeted by the scheduler's preemption loop to free up capacity for higher-priority preemptors.") + openapi_types: ClassVar[Dict[str, str]] = { + "conditions": "List[V1Condition]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "conditions": "conditions" + } + __properties: ClassVar[List[str]] = ["conditions"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3CompositePodGroupStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3CompositePodGroupStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("conditions" if serialize else "conditions"): _to_legacy_value(getattr(self, "conditions", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in conditions (list) + _items = [] + if self.conditions: + for _item_conditions in self.conditions: + _items.append(_to_openapi_value(_item_conditions) if _item_conditions is not None else None) + _dict['conditions'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "conditions": [V1Condition.from_dict(_item) for _item in obj["conditions"]] if obj.get("conditions") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha3_composite_pod_group_template.py b/kubernetes/aio/client/models/v1alpha3_composite_pod_group_template.py new file mode 100644 index 0000000000..a6bd811edc --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha3_composite_pod_group_template.py @@ -0,0 +1,318 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1alpha3_composite_disruption_mode import V1alpha3CompositeDisruptionMode +from kubernetes.aio.client.models.v1alpha3_composite_pod_group_scheduling_constraints import V1alpha3CompositePodGroupSchedulingConstraints +from kubernetes.aio.client.models.v1alpha3_composite_pod_group_scheduling_policy import V1alpha3CompositePodGroupSchedulingPolicy +from kubernetes.aio.client.models.v1alpha3_pod_group_template import V1alpha3PodGroupTemplate +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3CompositePodGroupTemplate(BaseModel): + """ + CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + composite_pod_group_templates: Optional[List[V1alpha3CompositePodGroupTemplate]] = Field(default=None, validation_alias=AliasChoices("compositePodGroupTemplates", "composite_pod_group_templates"), serialization_alias="compositePodGroupTemplates", description="compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.") + disruption_mode: Optional[V1alpha3CompositeDisruptionMode] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="disruptionMode") + name: StrictStr = Field(description="name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required.") + pod_group_templates: Optional[List[V1alpha3PodGroupTemplate]] = Field(default=None, validation_alias=AliasChoices("podGroupTemplates", "pod_group_templates"), serialization_alias="podGroupTemplates", description="podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.") + preemption_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preemptionPolicy", "preemption_policy"), serialization_alias="preemptionPolicy", description="preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + priority: Optional[StrictInt] = Field(default=None, description="priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite 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.") + priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="priorityClassName", description="priorityClassName indicates the priority that should be considered when scheduling a composite 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, composite pod groups created from this template will have the priority set to zero. This field is immutable.") + scheduling_constraints: Optional[V1alpha3CompositePodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") + scheduling_policy: V1alpha3CompositePodGroupSchedulingPolicy = Field(validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") + openapi_types: ClassVar[Dict[str, str]] = { + "composite_pod_group_templates": "List[V1alpha3CompositePodGroupTemplate]", + "disruption_mode": "V1alpha3CompositeDisruptionMode", + "name": "str", + "pod_group_templates": "List[V1alpha3PodGroupTemplate]", + "preemption_policy": "str", + "priority": "int", + "priority_class_name": "str", + "scheduling_constraints": "V1alpha3CompositePodGroupSchedulingConstraints", + "scheduling_policy": "V1alpha3CompositePodGroupSchedulingPolicy" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "composite_pod_group_templates": "compositePodGroupTemplates", + "disruption_mode": "disruptionMode", + "name": "name", + "pod_group_templates": "podGroupTemplates", + "preemption_policy": "preemptionPolicy", + "priority": "priority", + "priority_class_name": "priorityClassName", + "scheduling_constraints": "schedulingConstraints", + "scheduling_policy": "schedulingPolicy" + } + __properties: ClassVar[List[str]] = ["compositePodGroupTemplates", "disruptionMode", "name", "podGroupTemplates", "preemptionPolicy", "priority", "priorityClassName", "schedulingConstraints", "schedulingPolicy"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "compositePodGroupTemplates" not in obj and "composite_pod_group_templates" in obj: + obj["compositePodGroupTemplates"] = obj["composite_pod_group_templates"] + obj.pop("composite_pod_group_templates", None) + if "disruptionMode" not in obj and "disruption_mode" in obj: + obj["disruptionMode"] = obj["disruption_mode"] + obj.pop("disruption_mode", None) + if "podGroupTemplates" not in obj and "pod_group_templates" in obj: + obj["podGroupTemplates"] = obj["pod_group_templates"] + obj.pop("pod_group_templates", None) + if "preemptionPolicy" not in obj and "preemption_policy" in obj: + obj["preemptionPolicy"] = obj["preemption_policy"] + obj.pop("preemption_policy", None) + if "priorityClassName" not in obj and "priority_class_name" in obj: + obj["priorityClassName"] = obj["priority_class_name"] + obj.pop("priority_class_name", None) + if "schedulingConstraints" not in obj and "scheduling_constraints" in obj: + obj["schedulingConstraints"] = obj["scheduling_constraints"] + obj.pop("scheduling_constraints", None) + if "schedulingPolicy" not in obj and "scheduling_policy" in obj: + obj["schedulingPolicy"] = obj["scheduling_policy"] + obj.pop("scheduling_policy", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3CompositePodGroupTemplate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3CompositePodGroupTemplate): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupTemplate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("compositePodGroupTemplates" if serialize else "composite_pod_group_templates"): _to_legacy_value(getattr(self, "composite_pod_group_templates", None), serialize), + ("disruptionMode" if serialize else "disruption_mode"): _to_legacy_value(getattr(self, "disruption_mode", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("podGroupTemplates" if serialize else "pod_group_templates"): _to_legacy_value(getattr(self, "pod_group_templates", None), serialize), + ("preemptionPolicy" if serialize else "preemption_policy"): _to_legacy_value(getattr(self, "preemption_policy", None), serialize), + ("priority" if serialize else "priority"): _to_legacy_value(getattr(self, "priority", None), serialize), + ("priorityClassName" if serialize else "priority_class_name"): _to_legacy_value(getattr(self, "priority_class_name", None), serialize), + ("schedulingConstraints" if serialize else "scheduling_constraints"): _to_legacy_value(getattr(self, "scheduling_constraints", None), serialize), + ("schedulingPolicy" if serialize else "scheduling_policy"): _to_legacy_value(getattr(self, "scheduling_policy", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in composite_pod_group_templates (list) + _items = [] + if self.composite_pod_group_templates: + for _item_composite_pod_group_templates in self.composite_pod_group_templates: + _items.append(_to_openapi_value(_item_composite_pod_group_templates) if _item_composite_pod_group_templates is not None else None) + _dict['compositePodGroupTemplates'] = _items + # override the default output from pydantic by calling `to_dict()` of disruption_mode + if self.disruption_mode: + _dict['disruptionMode'] = _to_openapi_value(self.disruption_mode) + # override the default output from pydantic by calling `to_dict()` of each item in pod_group_templates (list) + _items = [] + if self.pod_group_templates: + for _item_pod_group_templates in self.pod_group_templates: + _items.append(_to_openapi_value(_item_pod_group_templates) if _item_pod_group_templates is not None else None) + _dict['podGroupTemplates'] = _items + # override the default output from pydantic by calling `to_dict()` of scheduling_constraints + if self.scheduling_constraints: + _dict['schedulingConstraints'] = _to_openapi_value(self.scheduling_constraints) + # override the default output from pydantic by calling `to_dict()` of scheduling_policy + if self.scheduling_policy: + _dict['schedulingPolicy'] = _to_openapi_value(self.scheduling_policy) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupTemplate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "compositePodGroupTemplates": [V1alpha3CompositePodGroupTemplate.from_dict(_item) for _item in obj["compositePodGroupTemplates"]] if obj.get("compositePodGroupTemplates") is not None else None, + "disruptionMode": V1alpha3CompositeDisruptionMode.from_dict(obj["disruptionMode"]) if obj.get("disruptionMode") is not None else None, + "name": obj.get("name"), + "podGroupTemplates": [V1alpha3PodGroupTemplate.from_dict(_item) for _item in obj["podGroupTemplates"]] if obj.get("podGroupTemplates") is not None else None, + "preemptionPolicy": obj.get("preemptionPolicy"), + "priority": obj.get("priority"), + "priorityClassName": obj.get("priorityClassName"), + "schedulingConstraints": V1alpha3CompositePodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, + "schedulingPolicy": V1alpha3CompositePodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None + }) + return _obj + +# TODO: Rewrite to not use raise_errors +V1alpha3CompositePodGroupTemplate.model_rebuild(raise_errors=False) diff --git a/kubernetes/aio/client/models/v1alpha3_device_taint.py b/kubernetes/aio/client/models/v1alpha3_device_taint.py index e591b420ae..89a152458d 100644 --- a/kubernetes/aio/client/models/v1alpha3_device_taint.py +++ b/kubernetes/aio/client/models/v1alpha3_device_taint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha3_device_taint_rule.py b/kubernetes/aio/client/models/v1alpha3_device_taint_rule.py index d8727b1a2b..6b53211bdf 100644 --- a/kubernetes/aio/client/models/v1alpha3_device_taint_rule.py +++ b/kubernetes/aio/client/models/v1alpha3_device_taint_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha3_device_taint_rule_list.py b/kubernetes/aio/client/models/v1alpha3_device_taint_rule_list.py index d90b82bc74..2c1e9623b4 100644 --- a/kubernetes/aio/client/models/v1alpha3_device_taint_rule_list.py +++ b/kubernetes/aio/client/models/v1alpha3_device_taint_rule_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha3_device_taint_rule_spec.py b/kubernetes/aio/client/models/v1alpha3_device_taint_rule_spec.py index 7bd98f9fa0..b838b31d4b 100644 --- a/kubernetes/aio/client/models/v1alpha3_device_taint_rule_spec.py +++ b/kubernetes/aio/client/models/v1alpha3_device_taint_rule_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha3_device_taint_rule_status.py b/kubernetes/aio/client/models/v1alpha3_device_taint_rule_status.py index 449ec64341..7149017f7c 100644 --- a/kubernetes/aio/client/models/v1alpha3_device_taint_rule_status.py +++ b/kubernetes/aio/client/models/v1alpha3_device_taint_rule_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha3_device_taint_selector.py b/kubernetes/aio/client/models/v1alpha3_device_taint_selector.py index e4a2719617..78bcc9a8fa 100644 --- a/kubernetes/aio/client/models/v1alpha3_device_taint_selector.py +++ b/kubernetes/aio/client/models/v1alpha3_device_taint_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha3_disruption_mode.py b/kubernetes/aio/client/models/v1alpha3_disruption_mode.py new file mode 100644 index 0000000000..f72f9664af --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha3_disruption_mode.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3DisruptionMode(BaseModel): + """ + DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + all: Optional[Dict[str, Any]] = Field(default=None, description="all specifies that all children can only be disrupted together.") + single: Optional[Dict[str, Any]] = Field(default=None, description="single specifies that children can be disrupted independently from each other.") + openapi_types: ClassVar[Dict[str, str]] = { + "all": "object", + "single": "object" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "all": "all", + "single": "single" + } + __properties: ClassVar[List[str]] = ["all", "single"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3DisruptionMode): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3DisruptionMode): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3DisruptionMode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("all" if serialize else "all"): _to_legacy_value(getattr(self, "all", None), serialize), + ("single" if serialize else "single"): _to_legacy_value(getattr(self, "single", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3DisruptionMode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "all": obj.get("all"), + "single": obj.get("single") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha2_gang_scheduling_policy.py b/kubernetes/aio/client/models/v1alpha3_gang_scheduling_policy.py similarity index 87% rename from kubernetes/aio/client/models/v1alpha2_gang_scheduling_policy.py rename to kubernetes/aio/client/models/v1alpha3_gang_scheduling_policy.py index 52ece611df..120249017d 100644 --- a/kubernetes/aio/client/models/v1alpha2_gang_scheduling_policy.py +++ b/kubernetes/aio/client/models/v1alpha3_gang_scheduling_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -93,7 +93,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2GangSchedulingPolicy(BaseModel): +class V1alpha3GangSchedulingPolicy(BaseModel): """ GangSchedulingPolicy defines the parameters for gang scheduling. @@ -103,7 +103,7 @@ class V1alpha2GangSchedulingPolicy(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - min_count: StrictInt = Field(validation_alias=AliasChoices("minCount", "min_count"), serialization_alias="minCount", description="MinCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.") + min_count: StrictInt = Field(validation_alias=AliasChoices("minCount", "min_count"), serialization_alias="minCount", description="minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling. Note that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles.") openapi_types: ClassVar[Dict[str, str]] = { "min_count": "int" } @@ -146,14 +146,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2GangSchedulingPolicy): + if not isinstance(other, V1alpha3GangSchedulingPolicy): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2GangSchedulingPolicy): + if not isinstance(other, V1alpha3GangSchedulingPolicy): return True return not (self == other) @@ -168,7 +168,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2GangSchedulingPolicy from a JSON string""" + """Create an instance of V1alpha3GangSchedulingPolicy from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -211,7 +211,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2GangSchedulingPolicy from a dict""" + """Create an instance of V1alpha3GangSchedulingPolicy from a dict""" if obj is None: return None diff --git a/kubernetes/aio/client/models/v1alpha3_partition_type_status.py b/kubernetes/aio/client/models/v1alpha3_partition_type_status.py new file mode 100644 index 0000000000..7c9dbd1aa8 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha3_partition_type_status.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3PartitionTypeStatus(BaseModel): + """ + PartitionTypeStatus reports allocatability for a single partition type, identified by the value of a grouping attribute. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + allocatable: StrictInt = Field(description="Allocatable is the number of additional devices of this partition type that could still be allocated given current shared-counter consumption.") + attribute: StrictStr = Field(description="Attribute is the fully qualified name of the device attribute whose value groups this entry. It is the PartitionTypeAttribute declared by the devices' own slice, or the default named in the request when their slice declares none.") + total: StrictInt = Field(description="Total is the number of devices of this partition type in the pool.") + type: StrictStr = Field(description="Type is the partition type value (e.g. \"Full\" or \"Half\").") + openapi_types: ClassVar[Dict[str, str]] = { + "allocatable": "int", + "attribute": "str", + "total": "int", + "type": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "allocatable": "allocatable", + "attribute": "attribute", + "total": "total", + "type": "type" + } + __properties: ClassVar[List[str]] = ["allocatable", "attribute", "total", "type"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3PartitionTypeStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3PartitionTypeStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3PartitionTypeStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("allocatable" if serialize else "allocatable"): _to_legacy_value(getattr(self, "allocatable", None), serialize), + ("attribute" if serialize else "attribute"): _to_legacy_value(getattr(self, "attribute", None), serialize), + ("total" if serialize else "total"): _to_legacy_value(getattr(self, "total", None), serialize), + ("type" if serialize else "type"): _to_legacy_value(getattr(self, "type", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3PartitionTypeStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allocatable": obj.get("allocatable"), + "attribute": obj.get("attribute"), + "total": obj.get("total"), + "type": obj.get("type") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha2_pod_group.py b/kubernetes/aio/client/models/v1alpha3_pod_group.py similarity index 92% rename from kubernetes/aio/client/models/v1alpha2_pod_group.py rename to kubernetes/aio/client/models/v1alpha3_pod_group.py index 9d533c876a..17d8d6ddea 100644 --- a/kubernetes/aio/client/models/v1alpha2_pod_group.py +++ b/kubernetes/aio/client/models/v1alpha3_pod_group.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,8 +21,8 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1_object_meta import V1ObjectMeta -from kubernetes.aio.client.models.v1alpha2_pod_group_spec import V1alpha2PodGroupSpec -from kubernetes.aio.client.models.v1alpha2_pod_group_status import V1alpha2PodGroupStatus +from kubernetes.aio.client.models.v1alpha3_pod_group_spec import V1alpha3PodGroupSpec +from kubernetes.aio.client.models.v1alpha3_pod_group_status import V1alpha3PodGroupStatus from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -96,7 +96,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroup(BaseModel): +class V1alpha3PodGroup(BaseModel): """ 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. @@ -109,14 +109,14 @@ class V1alpha2PodGroup(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1alpha2PodGroupSpec - status: Optional[V1alpha2PodGroupStatus] = None + spec: V1alpha3PodGroupSpec + status: Optional[V1alpha3PodGroupStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", "metadata": "V1ObjectMeta", - "spec": "V1alpha2PodGroupSpec", - "status": "V1alpha2PodGroupStatus" + "spec": "V1alpha3PodGroupSpec", + "status": "V1alpha3PodGroupStatus" } attribute_map: ClassVar[Dict[str, str]] = { @@ -161,14 +161,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroup): + if not isinstance(other, V1alpha3PodGroup): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroup): + if not isinstance(other, V1alpha3PodGroup): return True return not (self == other) @@ -183,7 +183,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroup from a JSON string""" + """Create an instance of V1alpha3PodGroup from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -239,7 +239,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroup from a dict""" + """Create an instance of V1alpha3PodGroup from a dict""" if obj is None: return None @@ -258,7 +258,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "apiVersion": obj.get("apiVersion"), "kind": obj.get("kind"), "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, - "spec": V1alpha2PodGroupSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, - "status": V1alpha2PodGroupStatus.from_dict(obj["status"]) if obj.get("status") is not None else None + "spec": V1alpha3PodGroupSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, + "status": V1alpha3PodGroupStatus.from_dict(obj["status"]) if obj.get("status") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1alpha2_pod_group_list.py b/kubernetes/aio/client/models/v1alpha3_pod_group_list.py similarity index 93% rename from kubernetes/aio/client/models/v1alpha2_pod_group_list.py rename to kubernetes/aio/client/models/v1alpha3_pod_group_list.py index a3276760c8..f4e6e5d834 100644 --- a/kubernetes/aio/client/models/v1alpha2_pod_group_list.py +++ b/kubernetes/aio/client/models/v1alpha3_pod_group_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,7 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1_list_meta import V1ListMeta -from kubernetes.aio.client.models.v1alpha2_pod_group import V1alpha2PodGroup +from kubernetes.aio.client.models.v1alpha3_pod_group import V1alpha3PodGroup from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,7 +95,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroupList(BaseModel): +class V1alpha3PodGroupList(BaseModel): """ PodGroupList contains a list of PodGroup resources. @@ -106,12 +106,12 @@ class V1alpha2PodGroupList(BaseModel): and the value is json key in definition. """ # noqa: E501 api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - items: List[V1alpha2PodGroup] = Field(description="Items is the list of PodGroups.") + items: List[V1alpha3PodGroup] = Field(description="Items is the list of PodGroups.") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ListMeta] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", - "items": "List[V1alpha2PodGroup]", + "items": "List[V1alpha3PodGroup]", "kind": "str", "metadata": "V1ListMeta" } @@ -157,14 +157,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroupList): + if not isinstance(other, V1alpha3PodGroupList): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroupList): + if not isinstance(other, V1alpha3PodGroupList): return True return not (self == other) @@ -179,7 +179,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupList from a JSON string""" + """Create an instance of V1alpha3PodGroupList from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -234,7 +234,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupList from a dict""" + """Create an instance of V1alpha3PodGroupList from a dict""" if obj is None: return None @@ -251,7 +251,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "apiVersion": obj.get("apiVersion"), - "items": [V1alpha2PodGroup.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "items": [V1alpha3PodGroup.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "kind": obj.get("kind"), "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None }) diff --git a/kubernetes/aio/client/models/v1alpha2_pod_group_resource_claim.py b/kubernetes/aio/client/models/v1alpha3_pod_group_resource_claim.py similarity index 94% rename from kubernetes/aio/client/models/v1alpha2_pod_group_resource_claim.py rename to kubernetes/aio/client/models/v1alpha3_pod_group_resource_claim.py index 2413a2e636..cbce33ffab 100644 --- a/kubernetes/aio/client/models/v1alpha2_pod_group_resource_claim.py +++ b/kubernetes/aio/client/models/v1alpha3_pod_group_resource_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -93,7 +93,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroupResourceClaim(BaseModel): +class V1alpha3PodGroupResourceClaim(BaseModel): """ 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. @@ -103,9 +103,9 @@ class V1alpha2PodGroupResourceClaim(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - name: StrictStr = Field(description="Name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.") - resource_claim_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimName", "resource_claim_name"), serialization_alias="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.") - resource_claim_template_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimTemplateName", "resource_claim_template_name"), serialization_alias="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.") + name: StrictStr = Field(description="name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.") + resource_claim_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimName", "resource_claim_name"), serialization_alias="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.") + resource_claim_template_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimTemplateName", "resource_claim_template_name"), serialization_alias="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.") openapi_types: ClassVar[Dict[str, str]] = { "name": "str", "resource_claim_name": "str", @@ -155,14 +155,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroupResourceClaim): + if not isinstance(other, V1alpha3PodGroupResourceClaim): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroupResourceClaim): + if not isinstance(other, V1alpha3PodGroupResourceClaim): return True return not (self == other) @@ -177,7 +177,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupResourceClaim from a JSON string""" + """Create an instance of V1alpha3PodGroupResourceClaim from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -222,7 +222,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupResourceClaim from a dict""" + """Create an instance of V1alpha3PodGroupResourceClaim from a dict""" if obj is None: return None diff --git a/kubernetes/client/models/v1alpha2_pod_group_resource_claim_status.py b/kubernetes/aio/client/models/v1alpha3_pod_group_resource_claim_status.py similarity index 94% rename from kubernetes/client/models/v1alpha2_pod_group_resource_claim_status.py rename to kubernetes/aio/client/models/v1alpha3_pod_group_resource_claim_status.py index ca12cfeb97..0efbbdc597 100644 --- a/kubernetes/client/models/v1alpha2_pod_group_resource_claim_status.py +++ b/kubernetes/aio/client/models/v1alpha3_pod_group_resource_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -93,7 +93,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroupResourceClaimStatus(BaseModel): +class V1alpha3PodGroupResourceClaimStatus(BaseModel): """ PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. @@ -103,8 +103,8 @@ class V1alpha2PodGroupResourceClaimStatus(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - name: StrictStr = Field(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.") - resource_claim_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimName", "resource_claim_name"), serialization_alias="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.") + name: StrictStr = Field(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.") + resource_claim_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimName", "resource_claim_name"), serialization_alias="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.") openapi_types: ClassVar[Dict[str, str]] = { "name": "str", "resource_claim_name": "str" @@ -149,14 +149,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroupResourceClaimStatus): + if not isinstance(other, V1alpha3PodGroupResourceClaimStatus): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroupResourceClaimStatus): + if not isinstance(other, V1alpha3PodGroupResourceClaimStatus): return True return not (self == other) @@ -171,7 +171,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupResourceClaimStatus from a JSON string""" + """Create an instance of V1alpha3PodGroupResourceClaimStatus from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -215,7 +215,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupResourceClaimStatus from a dict""" + """Create an instance of V1alpha3PodGroupResourceClaimStatus from a dict""" if obj is None: return None diff --git a/kubernetes/aio/client/models/v1alpha2_pod_group_scheduling_constraints.py b/kubernetes/aio/client/models/v1alpha3_pod_group_scheduling_constraints.py similarity index 90% rename from kubernetes/aio/client/models/v1alpha2_pod_group_scheduling_constraints.py rename to kubernetes/aio/client/models/v1alpha3_pod_group_scheduling_constraints.py index ff92eabf21..86c1ec1cb5 100644 --- a/kubernetes/aio/client/models/v1alpha2_pod_group_scheduling_constraints.py +++ b/kubernetes/aio/client/models/v1alpha3_pod_group_scheduling_constraints.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from kubernetes.aio.client.models.v1alpha2_topology_constraint import V1alpha2TopologyConstraint +from kubernetes.aio.client.models.v1alpha3_topology_constraint import V1alpha3TopologyConstraint from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -93,7 +93,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroupSchedulingConstraints(BaseModel): +class V1alpha3PodGroupSchedulingConstraints(BaseModel): """ PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup. @@ -103,9 +103,9 @@ class V1alpha2PodGroupSchedulingConstraints(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - topology: Optional[List[V1alpha2TopologyConstraint]] = Field(default=None, 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.") + topology: Optional[List[V1alpha3TopologyConstraint]] = Field(default=None, 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.") openapi_types: ClassVar[Dict[str, str]] = { - "topology": "List[V1alpha2TopologyConstraint]" + "topology": "List[V1alpha3TopologyConstraint]" } attribute_map: ClassVar[Dict[str, str]] = { @@ -132,14 +132,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroupSchedulingConstraints): + if not isinstance(other, V1alpha3PodGroupSchedulingConstraints): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroupSchedulingConstraints): + if not isinstance(other, V1alpha3PodGroupSchedulingConstraints): return True return not (self == other) @@ -154,7 +154,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupSchedulingConstraints from a JSON string""" + """Create an instance of V1alpha3PodGroupSchedulingConstraints from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -203,7 +203,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupSchedulingConstraints from a dict""" + """Create an instance of V1alpha3PodGroupSchedulingConstraints from a dict""" if obj is None: return None @@ -211,6 +211,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "topology": [V1alpha2TopologyConstraint.from_dict(_item) for _item in obj["topology"]] if obj.get("topology") is not None else None + "topology": [V1alpha3TopologyConstraint.from_dict(_item) for _item in obj["topology"]] if obj.get("topology") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1alpha3_pod_group_scheduling_policy.py b/kubernetes/aio/client/models/v1alpha3_pod_group_scheduling_policy.py new file mode 100644 index 0000000000..8612d4ffe5 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha3_pod_group_scheduling_policy.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.aio.client.models.v1alpha3_gang_scheduling_policy import V1alpha3GangSchedulingPolicy +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3PodGroupSchedulingPolicy(BaseModel): + """ + PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + basic: Optional[Dict[str, Any]] = Field(default=None, description="basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward.") + gang: Optional[V1alpha3GangSchedulingPolicy] = None + openapi_types: ClassVar[Dict[str, str]] = { + "basic": "object", + "gang": "V1alpha3GangSchedulingPolicy" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "basic": "basic", + "gang": "gang" + } + __properties: ClassVar[List[str]] = ["basic", "gang"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3PodGroupSchedulingPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3PodGroupSchedulingPolicy): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3PodGroupSchedulingPolicy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("basic" if serialize else "basic"): _to_legacy_value(getattr(self, "basic", None), serialize), + ("gang" if serialize else "gang"): _to_legacy_value(getattr(self, "gang", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of gang + if self.gang: + _dict['gang'] = _to_openapi_value(self.gang) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3PodGroupSchedulingPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "basic": obj.get("basic"), + "gang": V1alpha3GangSchedulingPolicy.from_dict(obj["gang"]) if obj.get("gang") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha2_pod_group_spec.py b/kubernetes/aio/client/models/v1alpha3_pod_group_spec.py similarity index 66% rename from kubernetes/aio/client/models/v1alpha2_pod_group_spec.py rename to kubernetes/aio/client/models/v1alpha3_pod_group_spec.py index 0c93adfdb5..7884254d21 100644 --- a/kubernetes/aio/client/models/v1alpha2_pod_group_spec.py +++ b/kubernetes/aio/client/models/v1alpha3_pod_group_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,10 +20,11 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast -from kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim import V1alpha2PodGroupResourceClaim -from kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_constraints import V1alpha2PodGroupSchedulingConstraints -from kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_policy import V1alpha2PodGroupSchedulingPolicy -from kubernetes.aio.client.models.v1alpha2_pod_group_template_reference import V1alpha2PodGroupTemplateReference +from kubernetes.aio.client.models.v1alpha3_disruption_mode import V1alpha3DisruptionMode +from kubernetes.aio.client.models.v1alpha3_pod_group_resource_claim import V1alpha3PodGroupResourceClaim +from kubernetes.aio.client.models.v1alpha3_pod_group_scheduling_constraints import V1alpha3PodGroupSchedulingConstraints +from kubernetes.aio.client.models.v1alpha3_pod_group_scheduling_policy import V1alpha3PodGroupSchedulingPolicy +from kubernetes.aio.client.models.v1alpha3_workload_reference import V1alpha3WorkloadReference from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -97,7 +98,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroupSpec(BaseModel): +class V1alpha3PodGroupSpec(BaseModel): """ PodGroupSpec defines the desired state of a PodGroup. @@ -107,33 +108,39 @@ class V1alpha2PodGroupSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - disruption_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="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.") - pod_group_template_ref: Optional[V1alpha2PodGroupTemplateReference] = Field(default=None, validation_alias=AliasChoices("podGroupTemplateRef", "pod_group_template_ref"), serialization_alias="podGroupTemplateRef") - priority: Optional[StrictInt] = Field(default=None, 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.") - priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="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.") - resource_claims: Optional[List[V1alpha2PodGroupResourceClaim]] = Field(default=None, validation_alias=AliasChoices("resourceClaims", "resource_claims"), serialization_alias="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.") - scheduling_constraints: Optional[V1alpha2PodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") - scheduling_policy: V1alpha2PodGroupSchedulingPolicy = Field(validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") + disruption_mode: Optional[V1alpha3DisruptionMode] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="disruptionMode") + parent_composite_pod_group_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("parentCompositePodGroupName", "parent_composite_pod_group_name"), serialization_alias="parentCompositePodGroupName", description="parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable.") + preemption_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preemptionPolicy", "preemption_policy"), serialization_alias="preemptionPolicy", description="preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + priority: Optional[StrictInt] = Field(default=None, 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.") + priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="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.") + resource_claims: Optional[List[V1alpha3PodGroupResourceClaim]] = Field(default=None, validation_alias=AliasChoices("resourceClaims", "resource_claims"), serialization_alias="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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable.") + scheduling_constraints: Optional[V1alpha3PodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") + scheduling_policy: V1alpha3PodGroupSchedulingPolicy = Field(validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") + workload_ref: Optional[V1alpha3WorkloadReference] = Field(default=None, validation_alias=AliasChoices("workloadRef", "workload_ref"), serialization_alias="workloadRef") openapi_types: ClassVar[Dict[str, str]] = { - "disruption_mode": "str", - "pod_group_template_ref": "V1alpha2PodGroupTemplateReference", + "disruption_mode": "V1alpha3DisruptionMode", + "parent_composite_pod_group_name": "str", + "preemption_policy": "str", "priority": "int", "priority_class_name": "str", - "resource_claims": "List[V1alpha2PodGroupResourceClaim]", - "scheduling_constraints": "V1alpha2PodGroupSchedulingConstraints", - "scheduling_policy": "V1alpha2PodGroupSchedulingPolicy" + "resource_claims": "List[V1alpha3PodGroupResourceClaim]", + "scheduling_constraints": "V1alpha3PodGroupSchedulingConstraints", + "scheduling_policy": "V1alpha3PodGroupSchedulingPolicy", + "workload_ref": "V1alpha3WorkloadReference" } attribute_map: ClassVar[Dict[str, str]] = { "disruption_mode": "disruptionMode", - "pod_group_template_ref": "podGroupTemplateRef", + "parent_composite_pod_group_name": "parentCompositePodGroupName", + "preemption_policy": "preemptionPolicy", "priority": "priority", "priority_class_name": "priorityClassName", "resource_claims": "resourceClaims", "scheduling_constraints": "schedulingConstraints", - "scheduling_policy": "schedulingPolicy" + "scheduling_policy": "schedulingPolicy", + "workload_ref": "workloadRef" } - __properties: ClassVar[List[str]] = ["disruptionMode", "podGroupTemplateRef", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy"] + __properties: ClassVar[List[str]] = ["disruptionMode", "parentCompositePodGroupName", "preemptionPolicy", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy", "workloadRef"] @classmethod def __preprocess_input_names( @@ -147,9 +154,12 @@ def __preprocess_input_names( if "disruptionMode" not in obj and "disruption_mode" in obj: obj["disruptionMode"] = obj["disruption_mode"] obj.pop("disruption_mode", None) - if "podGroupTemplateRef" not in obj and "pod_group_template_ref" in obj: - obj["podGroupTemplateRef"] = obj["pod_group_template_ref"] - obj.pop("pod_group_template_ref", None) + if "parentCompositePodGroupName" not in obj and "parent_composite_pod_group_name" in obj: + obj["parentCompositePodGroupName"] = obj["parent_composite_pod_group_name"] + obj.pop("parent_composite_pod_group_name", None) + if "preemptionPolicy" not in obj and "preemption_policy" in obj: + obj["preemptionPolicy"] = obj["preemption_policy"] + obj.pop("preemption_policy", None) if "priorityClassName" not in obj and "priority_class_name" in obj: obj["priorityClassName"] = obj["priority_class_name"] obj.pop("priority_class_name", None) @@ -162,6 +172,9 @@ def __preprocess_input_names( if "schedulingPolicy" not in obj and "scheduling_policy" in obj: obj["schedulingPolicy"] = obj["scheduling_policy"] obj.pop("scheduling_policy", None) + if "workloadRef" not in obj and "workload_ref" in obj: + obj["workloadRef"] = obj["workload_ref"] + obj.pop("workload_ref", None) return obj model_config = ConfigDict( @@ -183,14 +196,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroupSpec): + if not isinstance(other, V1alpha3PodGroupSpec): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroupSpec): + if not isinstance(other, V1alpha3PodGroupSpec): return True return not (self == other) @@ -205,19 +218,21 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupSpec from a JSON string""" + """Create an instance of V1alpha3PodGroupSpec from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { ("disruptionMode" if serialize else "disruption_mode"): _to_legacy_value(getattr(self, "disruption_mode", None), serialize), - ("podGroupTemplateRef" if serialize else "pod_group_template_ref"): _to_legacy_value(getattr(self, "pod_group_template_ref", None), serialize), + ("parentCompositePodGroupName" if serialize else "parent_composite_pod_group_name"): _to_legacy_value(getattr(self, "parent_composite_pod_group_name", None), serialize), + ("preemptionPolicy" if serialize else "preemption_policy"): _to_legacy_value(getattr(self, "preemption_policy", None), serialize), ("priority" if serialize else "priority"): _to_legacy_value(getattr(self, "priority", None), serialize), ("priorityClassName" if serialize else "priority_class_name"): _to_legacy_value(getattr(self, "priority_class_name", None), serialize), ("resourceClaims" if serialize else "resource_claims"): _to_legacy_value(getattr(self, "resource_claims", None), serialize), ("schedulingConstraints" if serialize else "scheduling_constraints"): _to_legacy_value(getattr(self, "scheduling_constraints", None), serialize), ("schedulingPolicy" if serialize else "scheduling_policy"): _to_legacy_value(getattr(self, "scheduling_policy", None), serialize), + ("workloadRef" if serialize else "workload_ref"): _to_legacy_value(getattr(self, "workload_ref", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -238,9 +253,9 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of pod_group_template_ref - if self.pod_group_template_ref: - _dict['podGroupTemplateRef'] = _to_openapi_value(self.pod_group_template_ref) + # override the default output from pydantic by calling `to_dict()` of disruption_mode + if self.disruption_mode: + _dict['disruptionMode'] = _to_openapi_value(self.disruption_mode) # override the default output from pydantic by calling `to_dict()` of each item in resource_claims (list) _items = [] if self.resource_claims: @@ -253,6 +268,9 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of scheduling_policy if self.scheduling_policy: _dict['schedulingPolicy'] = _to_openapi_value(self.scheduling_policy) + # override the default output from pydantic by calling `to_dict()` of workload_ref + if self.workload_ref: + _dict['workloadRef'] = _to_openapi_value(self.workload_ref) return _dict setattr( @@ -269,7 +287,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupSpec from a dict""" + """Create an instance of V1alpha3PodGroupSpec from a dict""" if obj is None: return None @@ -285,12 +303,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ - "disruptionMode": obj.get("disruptionMode"), - "podGroupTemplateRef": V1alpha2PodGroupTemplateReference.from_dict(obj["podGroupTemplateRef"]) if obj.get("podGroupTemplateRef") is not None else None, + "disruptionMode": V1alpha3DisruptionMode.from_dict(obj["disruptionMode"]) if obj.get("disruptionMode") is not None else None, + "parentCompositePodGroupName": obj.get("parentCompositePodGroupName"), + "preemptionPolicy": obj.get("preemptionPolicy"), "priority": obj.get("priority"), "priorityClassName": obj.get("priorityClassName"), - "resourceClaims": [V1alpha2PodGroupResourceClaim.from_dict(_item) for _item in obj["resourceClaims"]] if obj.get("resourceClaims") is not None else None, - "schedulingConstraints": V1alpha2PodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, - "schedulingPolicy": V1alpha2PodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None + "resourceClaims": [V1alpha3PodGroupResourceClaim.from_dict(_item) for _item in obj["resourceClaims"]] if obj.get("resourceClaims") is not None else None, + "schedulingConstraints": V1alpha3PodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, + "schedulingPolicy": V1alpha3PodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None, + "workloadRef": V1alpha3WorkloadReference.from_dict(obj["workloadRef"]) if obj.get("workloadRef") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1alpha2_pod_group_status.py b/kubernetes/aio/client/models/v1alpha3_pod_group_status.py similarity index 82% rename from kubernetes/aio/client/models/v1alpha2_pod_group_status.py rename to kubernetes/aio/client/models/v1alpha3_pod_group_status.py index 5c729f1e42..1cb6236bc7 100644 --- a/kubernetes/aio/client/models/v1alpha2_pod_group_status.py +++ b/kubernetes/aio/client/models/v1alpha3_pod_group_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,7 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1_condition import V1Condition -from kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim_status import V1alpha2PodGroupResourceClaimStatus +from kubernetes.aio.client.models.v1alpha3_pod_group_resource_claim_status import V1alpha3PodGroupResourceClaimStatus from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,7 +95,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroupStatus(BaseModel): +class V1alpha3PodGroupStatus(BaseModel): """ PodGroupStatus represents information about the status of a pod group. @@ -105,11 +105,11 @@ class V1alpha2PodGroupStatus(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - conditions: Optional[List[V1Condition]] = Field(default=None, 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.") - resource_claim_statuses: Optional[List[V1alpha2PodGroupResourceClaimStatus]] = Field(default=None, validation_alias=AliasChoices("resourceClaimStatuses", "resource_claim_statuses"), serialization_alias="resourceClaimStatuses", description="Status of resource claims.") + conditions: Optional[List[V1Condition]] = Field(default=None, description="conditions represent the latest observations of the PodGroup's state. Known condition types: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupInitiallyScheduled 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.") + resource_claim_statuses: Optional[List[V1alpha3PodGroupResourceClaimStatus]] = Field(default=None, validation_alias=AliasChoices("resourceClaimStatuses", "resource_claim_statuses"), serialization_alias="resourceClaimStatuses", description="resourceClaimStatuses is status of resource claims.") openapi_types: ClassVar[Dict[str, str]] = { "conditions": "List[V1Condition]", - "resource_claim_statuses": "List[V1alpha2PodGroupResourceClaimStatus]" + "resource_claim_statuses": "List[V1alpha3PodGroupResourceClaimStatus]" } attribute_map: ClassVar[Dict[str, str]] = { @@ -151,14 +151,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroupStatus): + if not isinstance(other, V1alpha3PodGroupStatus): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroupStatus): + if not isinstance(other, V1alpha3PodGroupStatus): return True return not (self == other) @@ -173,7 +173,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupStatus from a JSON string""" + """Create an instance of V1alpha3PodGroupStatus from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -229,7 +229,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupStatus from a dict""" + """Create an instance of V1alpha3PodGroupStatus from a dict""" if obj is None: return None @@ -246,6 +246,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "conditions": [V1Condition.from_dict(_item) for _item in obj["conditions"]] if obj.get("conditions") is not None else None, - "resourceClaimStatuses": [V1alpha2PodGroupResourceClaimStatus.from_dict(_item) for _item in obj["resourceClaimStatuses"]] if obj.get("resourceClaimStatuses") is not None else None + "resourceClaimStatuses": [V1alpha3PodGroupResourceClaimStatus.from_dict(_item) for _item in obj["resourceClaimStatuses"]] if obj.get("resourceClaimStatuses") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1alpha2_pod_group_template.py b/kubernetes/aio/client/models/v1alpha3_pod_group_template.py similarity index 75% rename from kubernetes/client/models/v1alpha2_pod_group_template.py rename to kubernetes/aio/client/models/v1alpha3_pod_group_template.py index 51eca6c359..af316d9b23 100644 --- a/kubernetes/client/models/v1alpha2_pod_group_template.py +++ b/kubernetes/aio/client/models/v1alpha3_pod_group_template.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,9 +20,10 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast -from kubernetes.client.models.v1alpha2_pod_group_resource_claim import V1alpha2PodGroupResourceClaim -from kubernetes.client.models.v1alpha2_pod_group_scheduling_constraints import V1alpha2PodGroupSchedulingConstraints -from kubernetes.client.models.v1alpha2_pod_group_scheduling_policy import V1alpha2PodGroupSchedulingPolicy +from kubernetes.aio.client.models.v1alpha3_disruption_mode import V1alpha3DisruptionMode +from kubernetes.aio.client.models.v1alpha3_pod_group_resource_claim import V1alpha3PodGroupResourceClaim +from kubernetes.aio.client.models.v1alpha3_pod_group_scheduling_constraints import V1alpha3PodGroupSchedulingConstraints +from kubernetes.aio.client.models.v1alpha3_pod_group_scheduling_policy import V1alpha3PodGroupSchedulingPolicy from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -96,7 +97,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroupTemplate(BaseModel): +class V1alpha3PodGroupTemplate(BaseModel): """ PodGroupTemplate represents a template for a set of pods with a scheduling policy. @@ -106,33 +107,36 @@ class V1alpha2PodGroupTemplate(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - disruption_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="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.") - name: StrictStr = Field(description="Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.") - priority: Optional[StrictInt] = Field(default=None, 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.") - priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="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.") - resource_claims: Optional[List[V1alpha2PodGroupResourceClaim]] = Field(default=None, validation_alias=AliasChoices("resourceClaims", "resource_claims"), serialization_alias="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.") - scheduling_constraints: Optional[V1alpha2PodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") - scheduling_policy: V1alpha2PodGroupSchedulingPolicy = Field(validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") + disruption_mode: Optional[V1alpha3DisruptionMode] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="disruptionMode") + name: StrictStr = Field(description="name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.") + preemption_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preemptionPolicy", "preemption_policy"), serialization_alias="preemptionPolicy", description="preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + priority: Optional[StrictInt] = Field(default=None, 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. The higher the value, the higher the priority. This field is immutable.") + priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="priorityClassName", description="priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable.") + resource_claims: Optional[List[V1alpha3PodGroupResourceClaim]] = Field(default=None, validation_alias=AliasChoices("resourceClaims", "resource_claims"), serialization_alias="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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable.") + scheduling_constraints: Optional[V1alpha3PodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") + scheduling_policy: V1alpha3PodGroupSchedulingPolicy = Field(validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") openapi_types: ClassVar[Dict[str, str]] = { - "disruption_mode": "str", + "disruption_mode": "V1alpha3DisruptionMode", "name": "str", + "preemption_policy": "str", "priority": "int", "priority_class_name": "str", - "resource_claims": "List[V1alpha2PodGroupResourceClaim]", - "scheduling_constraints": "V1alpha2PodGroupSchedulingConstraints", - "scheduling_policy": "V1alpha2PodGroupSchedulingPolicy" + "resource_claims": "List[V1alpha3PodGroupResourceClaim]", + "scheduling_constraints": "V1alpha3PodGroupSchedulingConstraints", + "scheduling_policy": "V1alpha3PodGroupSchedulingPolicy" } attribute_map: ClassVar[Dict[str, str]] = { "disruption_mode": "disruptionMode", "name": "name", + "preemption_policy": "preemptionPolicy", "priority": "priority", "priority_class_name": "priorityClassName", "resource_claims": "resourceClaims", "scheduling_constraints": "schedulingConstraints", "scheduling_policy": "schedulingPolicy" } - __properties: ClassVar[List[str]] = ["disruptionMode", "name", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy"] + __properties: ClassVar[List[str]] = ["disruptionMode", "name", "preemptionPolicy", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy"] @classmethod def __preprocess_input_names( @@ -146,6 +150,9 @@ def __preprocess_input_names( if "disruptionMode" not in obj and "disruption_mode" in obj: obj["disruptionMode"] = obj["disruption_mode"] obj.pop("disruption_mode", None) + if "preemptionPolicy" not in obj and "preemption_policy" in obj: + obj["preemptionPolicy"] = obj["preemption_policy"] + obj.pop("preemption_policy", None) if "priorityClassName" not in obj and "priority_class_name" in obj: obj["priorityClassName"] = obj["priority_class_name"] obj.pop("priority_class_name", None) @@ -179,14 +186,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroupTemplate): + if not isinstance(other, V1alpha3PodGroupTemplate): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroupTemplate): + if not isinstance(other, V1alpha3PodGroupTemplate): return True return not (self == other) @@ -201,7 +208,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupTemplate from a JSON string""" + """Create an instance of V1alpha3PodGroupTemplate from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -209,6 +216,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: return { ("disruptionMode" if serialize else "disruption_mode"): _to_legacy_value(getattr(self, "disruption_mode", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("preemptionPolicy" if serialize else "preemption_policy"): _to_legacy_value(getattr(self, "preemption_policy", None), serialize), ("priority" if serialize else "priority"): _to_legacy_value(getattr(self, "priority", None), serialize), ("priorityClassName" if serialize else "priority_class_name"): _to_legacy_value(getattr(self, "priority_class_name", None), serialize), ("resourceClaims" if serialize else "resource_claims"): _to_legacy_value(getattr(self, "resource_claims", None), serialize), @@ -234,6 +242,9 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of disruption_mode + if self.disruption_mode: + _dict['disruptionMode'] = _to_openapi_value(self.disruption_mode) # override the default output from pydantic by calling `to_dict()` of each item in resource_claims (list) _items = [] if self.resource_claims: @@ -262,7 +273,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupTemplate from a dict""" + """Create an instance of V1alpha3PodGroupTemplate from a dict""" if obj is None: return None @@ -278,12 +289,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ - "disruptionMode": obj.get("disruptionMode"), + "disruptionMode": V1alpha3DisruptionMode.from_dict(obj["disruptionMode"]) if obj.get("disruptionMode") is not None else None, "name": obj.get("name"), + "preemptionPolicy": obj.get("preemptionPolicy"), "priority": obj.get("priority"), "priorityClassName": obj.get("priorityClassName"), - "resourceClaims": [V1alpha2PodGroupResourceClaim.from_dict(_item) for _item in obj["resourceClaims"]] if obj.get("resourceClaims") is not None else None, - "schedulingConstraints": V1alpha2PodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, - "schedulingPolicy": V1alpha2PodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None + "resourceClaims": [V1alpha3PodGroupResourceClaim.from_dict(_item) for _item in obj["resourceClaims"]] if obj.get("resourceClaims") is not None else None, + "schedulingConstraints": V1alpha3PodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, + "schedulingPolicy": V1alpha3PodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1alpha3_pool_status.py b/kubernetes/aio/client/models/v1alpha3_pool_status.py index 5ff876bbc1..f302529aea 100644 --- a/kubernetes/aio/client/models/v1alpha3_pool_status.py +++ b/kubernetes/aio/client/models/v1alpha3_pool_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,6 +20,8 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1alpha3_partition_type_status import V1alpha3PartitionTypeStatus +from kubernetes.aio.client.models.v1alpha3_shareable_summary_status import V1alpha3ShareableSummaryStatus from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -108,8 +110,10 @@ class V1alpha3PoolStatus(BaseModel): driver: StrictStr = Field(description="Driver is the DRA driver name for this pool. Must be a DNS subdomain (e.g., \"gpu.example.com\").") generation: StrictInt = Field(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.") node_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("nodeName", "node_name"), serialization_alias="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).") + partition_summary: Optional[List[V1alpha3PartitionTypeStatus]] = Field(default=None, validation_alias=AliasChoices("partitionSummary", "partition_summary"), serialization_alias="partitionSummary", description="PartitionSummary reports allocatability per (attribute, partition type) for a partitionable pool that publishes SharedCounters. Each entry names the grouping attribute it was resolved from: the PartitionTypeAttribute declared by a device's own slice, or for devices whose slice declares none, the default named in the request. A pool that mixes partitions declared under different attributes reports each independently. When no slice declares an attribute and the request names no default, the pool reports no partition summary.") pool_name: StrictStr = Field(validation_alias=AliasChoices("poolName", "pool_name"), serialization_alias="poolName", description="PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by \"/\").") resource_slice_count: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("resourceSliceCount", "resource_slice_count"), serialization_alias="resourceSliceCount", description="ResourceSliceCount is the number of ResourceSlices that make up this pool. May be unset when validationError is set.") + shareable_summary: Optional[V1alpha3ShareableSummaryStatus] = Field(default=None, validation_alias=AliasChoices("shareableSummary", "shareable_summary"), serialization_alias="shareableSummary") total_devices: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("totalDevices", "total_devices"), serialization_alias="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.") unavailable_devices: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("unavailableDevices", "unavailable_devices"), serialization_alias="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.") validation_error: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("validationError", "validation_error"), serialization_alias="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.") @@ -119,8 +123,10 @@ class V1alpha3PoolStatus(BaseModel): "driver": "str", "generation": "int", "node_name": "str", + "partition_summary": "List[V1alpha3PartitionTypeStatus]", "pool_name": "str", "resource_slice_count": "int", + "shareable_summary": "V1alpha3ShareableSummaryStatus", "total_devices": "int", "unavailable_devices": "int", "validation_error": "str" @@ -132,13 +138,15 @@ class V1alpha3PoolStatus(BaseModel): "driver": "driver", "generation": "generation", "node_name": "nodeName", + "partition_summary": "partitionSummary", "pool_name": "poolName", "resource_slice_count": "resourceSliceCount", + "shareable_summary": "shareableSummary", "total_devices": "totalDevices", "unavailable_devices": "unavailableDevices", "validation_error": "validationError" } - __properties: ClassVar[List[str]] = ["allocatedDevices", "availableDevices", "driver", "generation", "nodeName", "poolName", "resourceSliceCount", "totalDevices", "unavailableDevices", "validationError"] + __properties: ClassVar[List[str]] = ["allocatedDevices", "availableDevices", "driver", "generation", "nodeName", "partitionSummary", "poolName", "resourceSliceCount", "shareableSummary", "totalDevices", "unavailableDevices", "validationError"] @classmethod def __preprocess_input_names( @@ -158,12 +166,18 @@ def __preprocess_input_names( if "nodeName" not in obj and "node_name" in obj: obj["nodeName"] = obj["node_name"] obj.pop("node_name", None) + if "partitionSummary" not in obj and "partition_summary" in obj: + obj["partitionSummary"] = obj["partition_summary"] + obj.pop("partition_summary", None) if "poolName" not in obj and "pool_name" in obj: obj["poolName"] = obj["pool_name"] obj.pop("pool_name", None) if "resourceSliceCount" not in obj and "resource_slice_count" in obj: obj["resourceSliceCount"] = obj["resource_slice_count"] obj.pop("resource_slice_count", None) + if "shareableSummary" not in obj and "shareable_summary" in obj: + obj["shareableSummary"] = obj["shareable_summary"] + obj.pop("shareable_summary", None) if "totalDevices" not in obj and "total_devices" in obj: obj["totalDevices"] = obj["total_devices"] obj.pop("total_devices", None) @@ -227,8 +241,10 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("driver" if serialize else "driver"): _to_legacy_value(getattr(self, "driver", None), serialize), ("generation" if serialize else "generation"): _to_legacy_value(getattr(self, "generation", None), serialize), ("nodeName" if serialize else "node_name"): _to_legacy_value(getattr(self, "node_name", None), serialize), + ("partitionSummary" if serialize else "partition_summary"): _to_legacy_value(getattr(self, "partition_summary", None), serialize), ("poolName" if serialize else "pool_name"): _to_legacy_value(getattr(self, "pool_name", None), serialize), ("resourceSliceCount" if serialize else "resource_slice_count"): _to_legacy_value(getattr(self, "resource_slice_count", None), serialize), + ("shareableSummary" if serialize else "shareable_summary"): _to_legacy_value(getattr(self, "shareable_summary", None), serialize), ("totalDevices" if serialize else "total_devices"): _to_legacy_value(getattr(self, "total_devices", None), serialize), ("unavailableDevices" if serialize else "unavailable_devices"): _to_legacy_value(getattr(self, "unavailable_devices", None), serialize), ("validationError" if serialize else "validation_error"): _to_legacy_value(getattr(self, "validation_error", None), serialize), @@ -252,6 +268,15 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in partition_summary (list) + _items = [] + if self.partition_summary: + for _item_partition_summary in self.partition_summary: + _items.append(_to_openapi_value(_item_partition_summary) if _item_partition_summary is not None else None) + _dict['partitionSummary'] = _items + # override the default output from pydantic by calling `to_dict()` of shareable_summary + if self.shareable_summary: + _dict['shareableSummary'] = _to_openapi_value(self.shareable_summary) return _dict setattr( @@ -289,8 +314,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "driver": obj.get("driver"), "generation": obj.get("generation"), "nodeName": obj.get("nodeName"), + "partitionSummary": [V1alpha3PartitionTypeStatus.from_dict(_item) for _item in obj["partitionSummary"]] if obj.get("partitionSummary") is not None else None, "poolName": obj.get("poolName"), "resourceSliceCount": obj.get("resourceSliceCount"), + "shareableSummary": V1alpha3ShareableSummaryStatus.from_dict(obj["shareableSummary"]) if obj.get("shareableSummary") is not None else None, "totalDevices": obj.get("totalDevices"), "unavailableDevices": obj.get("unavailableDevices"), "validationError": obj.get("validationError") diff --git a/kubernetes/aio/client/models/v1alpha3_resource_pool_status_request.py b/kubernetes/aio/client/models/v1alpha3_resource_pool_status_request.py index eb8ee843c2..5236c6ad00 100644 --- a/kubernetes/aio/client/models/v1alpha3_resource_pool_status_request.py +++ b/kubernetes/aio/client/models/v1alpha3_resource_pool_status_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha3_resource_pool_status_request_list.py b/kubernetes/aio/client/models/v1alpha3_resource_pool_status_request_list.py index bff0a87cbb..074a3de862 100644 --- a/kubernetes/aio/client/models/v1alpha3_resource_pool_status_request_list.py +++ b/kubernetes/aio/client/models/v1alpha3_resource_pool_status_request_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1alpha3_resource_pool_status_request_spec.py b/kubernetes/aio/client/models/v1alpha3_resource_pool_status_request_spec.py index 36906f0e3e..a8a5e1e6a3 100644 --- a/kubernetes/aio/client/models/v1alpha3_resource_pool_status_request_spec.py +++ b/kubernetes/aio/client/models/v1alpha3_resource_pool_status_request_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -103,21 +103,24 @@ class V1alpha3ResourcePoolStatusRequestSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 + default_partition_type_attribute: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("defaultPartitionTypeAttribute", "default_partition_type_attribute"), serialization_alias="defaultPartitionTypeAttribute", description="DefaultPartitionTypeAttribute optionally names a device attribute (by its fully qualified name, e.g. \"gpu.example.com/profile\") to use as the default grouping attribute for partitionable devices whose slice has not declared one themselves. A slice's own PartitionTypeAttribute always takes precedence. This default applies only to devices whose slice does not declare one, so that a request can still get an accurate partitionSummary from a driver that has not been updated to declare it. When neither the slice nor this default names an attribute, a partitionable pool reports no partitionSummary. Must include the domain qualifier.") driver: StrictStr = Field(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\").") limit: Optional[StrictInt] = Field(default=None, 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") pool_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("poolName", "pool_name"), serialization_alias="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 \"/\").") openapi_types: ClassVar[Dict[str, str]] = { + "default_partition_type_attribute": "str", "driver": "str", "limit": "int", "pool_name": "str" } attribute_map: ClassVar[Dict[str, str]] = { + "default_partition_type_attribute": "defaultPartitionTypeAttribute", "driver": "driver", "limit": "limit", "pool_name": "poolName" } - __properties: ClassVar[List[str]] = ["driver", "limit", "poolName"] + __properties: ClassVar[List[str]] = ["defaultPartitionTypeAttribute", "driver", "limit", "poolName"] @classmethod def __preprocess_input_names( @@ -128,6 +131,9 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) + if "defaultPartitionTypeAttribute" not in obj and "default_partition_type_attribute" in obj: + obj["defaultPartitionTypeAttribute"] = obj["default_partition_type_attribute"] + obj.pop("default_partition_type_attribute", None) if "poolName" not in obj and "pool_name" in obj: obj["poolName"] = obj["pool_name"] obj.pop("pool_name", None) @@ -180,6 +186,7 @@ def from_json(cls, json_str: str) -> Optional[Self]: def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { + ("defaultPartitionTypeAttribute" if serialize else "default_partition_type_attribute"): _to_legacy_value(getattr(self, "default_partition_type_attribute", None), serialize), ("driver" if serialize else "driver"): _to_legacy_value(getattr(self, "driver", None), serialize), ("limit" if serialize else "limit"): _to_legacy_value(getattr(self, "limit", None), serialize), ("poolName" if serialize else "pool_name"): _to_legacy_value(getattr(self, "pool_name", None), serialize), @@ -235,6 +242,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ + "defaultPartitionTypeAttribute": obj.get("defaultPartitionTypeAttribute"), "driver": obj.get("driver"), "limit": obj.get("limit"), "poolName": obj.get("poolName") diff --git a/kubernetes/aio/client/models/v1alpha3_resource_pool_status_request_status.py b/kubernetes/aio/client/models/v1alpha3_resource_pool_status_request_status.py index f4afee103c..924c6787f3 100644 --- a/kubernetes/aio/client/models/v1alpha3_resource_pool_status_request_status.py +++ b/kubernetes/aio/client/models/v1alpha3_resource_pool_status_request_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_parent_reference.py b/kubernetes/aio/client/models/v1alpha3_shareable_capacity_status.py similarity index 78% rename from kubernetes/aio/client/models/v1beta1_parent_reference.py rename to kubernetes/aio/client/models/v1alpha3_shareable_capacity_status.py index 4c45f1f90e..eca187aa22 100644 --- a/kubernetes/aio/client/models/v1beta1_parent_reference.py +++ b/kubernetes/aio/client/models/v1alpha3_shareable_capacity_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -92,9 +92,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1beta1ParentReference(BaseModel): +class V1alpha3ShareableCapacityStatus(BaseModel): """ - ParentReference describes a reference to a parent object. + ShareableCapacityStatus reports aggregate amounts for a single shareable capacity key. Attributes: openapi_types (dict): The key is attribute name @@ -102,24 +102,24 @@ class V1beta1ParentReference(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - group: Optional[StrictStr] = Field(default=None, description="Group is the group of the object being referenced.") - name: StrictStr = Field(description="Name is the name of the object being referenced.") - namespace: Optional[StrictStr] = Field(default=None, description="Namespace is the namespace of the object being referenced.") - resource: StrictStr = Field(description="Resource is the resource of the object being referenced.") + available: StrictStr = Field(description="Available is Total minus Consumed, never negative.") + consumed: StrictStr = Field(description="Consumed is the amount drawn by current allocations.") + name: StrictStr = Field(description="Name is the capacity name.") + total: StrictStr = Field(description="Total is the sum of this capacity across shareable devices in the pool.") openapi_types: ClassVar[Dict[str, str]] = { - "group": "str", + "available": "str", + "consumed": "str", "name": "str", - "namespace": "str", - "resource": "str" + "total": "str" } attribute_map: ClassVar[Dict[str, str]] = { - "group": "group", + "available": "available", + "consumed": "consumed", "name": "name", - "namespace": "namespace", - "resource": "resource" + "total": "total" } - __properties: ClassVar[List[str]] = ["group", "name", "namespace", "resource"] + __properties: ClassVar[List[str]] = ["available", "consumed", "name", "total"] model_config = ConfigDict( validate_by_name=True, @@ -140,14 +140,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1beta1ParentReference): + if not isinstance(other, V1alpha3ShareableCapacityStatus): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1ParentReference): + if not isinstance(other, V1alpha3ShareableCapacityStatus): return True return not (self == other) @@ -162,16 +162,16 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1ParentReference from a JSON string""" + """Create an instance of V1alpha3ShareableCapacityStatus from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { - ("group" if serialize else "group"): _to_legacy_value(getattr(self, "group", None), serialize), + ("available" if serialize else "available"): _to_legacy_value(getattr(self, "available", None), serialize), + ("consumed" if serialize else "consumed"): _to_legacy_value(getattr(self, "consumed", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), - ("namespace" if serialize else "namespace"): _to_legacy_value(getattr(self, "namespace", None), serialize), - ("resource" if serialize else "resource"): _to_legacy_value(getattr(self, "resource", None), serialize), + ("total" if serialize else "total"): _to_legacy_value(getattr(self, "total", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -208,7 +208,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1ParentReference from a dict""" + """Create an instance of V1alpha3ShareableCapacityStatus from a dict""" if obj is None: return None @@ -216,9 +216,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "group": obj.get("group"), + "available": obj.get("available"), + "consumed": obj.get("consumed"), "name": obj.get("name"), - "namespace": obj.get("namespace"), - "resource": obj.get("resource") + "total": obj.get("total") }) return _obj diff --git a/kubernetes/aio/client/models/v1alpha3_shareable_summary_status.py b/kubernetes/aio/client/models/v1alpha3_shareable_summary_status.py new file mode 100644 index 0000000000..362c5c7202 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha3_shareable_summary_status.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1alpha3_shareable_capacity_status import V1alpha3ShareableCapacityStatus +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3ShareableSummaryStatus(BaseModel): + """ + ShareableSummaryStatus reports aggregate capacity for a pool that contains devices with AllowMultipleAllocations. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + capacity: Optional[List[V1alpha3ShareableCapacityStatus]] = Field(default=None, description="Capacity reports aggregate total, consumed, and available amounts per shareable capacity key across the pool.") + fully_available_devices: StrictInt = Field(validation_alias=AliasChoices("fullyAvailableDevices", "fully_available_devices"), serialization_alias="fullyAvailableDevices", description="FullyAvailableDevices is the number of shareable devices with no capacity consumed.") + partially_available_devices: StrictInt = Field(validation_alias=AliasChoices("partiallyAvailableDevices", "partially_available_devices"), serialization_alias="partiallyAvailableDevices", description="PartiallyAvailableDevices is the number of shareable devices with some but not all capacity consumed.") + openapi_types: ClassVar[Dict[str, str]] = { + "capacity": "List[V1alpha3ShareableCapacityStatus]", + "fully_available_devices": "int", + "partially_available_devices": "int" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "capacity": "capacity", + "fully_available_devices": "fullyAvailableDevices", + "partially_available_devices": "partiallyAvailableDevices" + } + __properties: ClassVar[List[str]] = ["capacity", "fullyAvailableDevices", "partiallyAvailableDevices"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "fullyAvailableDevices" not in obj and "fully_available_devices" in obj: + obj["fullyAvailableDevices"] = obj["fully_available_devices"] + obj.pop("fully_available_devices", None) + if "partiallyAvailableDevices" not in obj and "partially_available_devices" in obj: + obj["partiallyAvailableDevices"] = obj["partially_available_devices"] + obj.pop("partially_available_devices", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3ShareableSummaryStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3ShareableSummaryStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3ShareableSummaryStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), + ("fullyAvailableDevices" if serialize else "fully_available_devices"): _to_legacy_value(getattr(self, "fully_available_devices", None), serialize), + ("partiallyAvailableDevices" if serialize else "partially_available_devices"): _to_legacy_value(getattr(self, "partially_available_devices", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in capacity (list) + _items = [] + if self.capacity: + for _item_capacity in self.capacity: + _items.append(_to_openapi_value(_item_capacity) if _item_capacity is not None else None) + _dict['capacity'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3ShareableSummaryStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "capacity": [V1alpha3ShareableCapacityStatus.from_dict(_item) for _item in obj["capacity"]] if obj.get("capacity") is not None else None, + "fullyAvailableDevices": obj.get("fullyAvailableDevices"), + "partiallyAvailableDevices": obj.get("partiallyAvailableDevices") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha2_topology_constraint.py b/kubernetes/aio/client/models/v1alpha3_topology_constraint.py similarity index 93% rename from kubernetes/aio/client/models/v1alpha2_topology_constraint.py rename to kubernetes/aio/client/models/v1alpha3_topology_constraint.py index 89f83fe547..a4aa134adb 100644 --- a/kubernetes/aio/client/models/v1alpha2_topology_constraint.py +++ b/kubernetes/aio/client/models/v1alpha3_topology_constraint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -92,7 +92,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2TopologyConstraint(BaseModel): +class V1alpha3TopologyConstraint(BaseModel): """ TopologyConstraint defines a topology constraint for a PodGroup. @@ -102,7 +102,7 @@ class V1alpha2TopologyConstraint(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - key: StrictStr = Field(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\"") + key: StrictStr = Field(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\"") openapi_types: ClassVar[Dict[str, str]] = { "key": "str" } @@ -131,14 +131,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2TopologyConstraint): + if not isinstance(other, V1alpha3TopologyConstraint): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2TopologyConstraint): + if not isinstance(other, V1alpha3TopologyConstraint): return True return not (self == other) @@ -153,7 +153,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2TopologyConstraint from a JSON string""" + """Create an instance of V1alpha3TopologyConstraint from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -196,7 +196,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2TopologyConstraint from a dict""" + """Create an instance of V1alpha3TopologyConstraint from a dict""" if obj is None: return None diff --git a/kubernetes/client/models/v1alpha2_typed_local_object_reference.py b/kubernetes/aio/client/models/v1alpha3_typed_local_object_reference.py similarity index 93% rename from kubernetes/client/models/v1alpha2_typed_local_object_reference.py rename to kubernetes/aio/client/models/v1alpha3_typed_local_object_reference.py index cab1aa2863..35138b5a4b 100644 --- a/kubernetes/client/models/v1alpha2_typed_local_object_reference.py +++ b/kubernetes/aio/client/models/v1alpha3_typed_local_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -93,7 +93,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2TypedLocalObjectReference(BaseModel): +class V1alpha3TypedLocalObjectReference(BaseModel): """ TypedLocalObjectReference allows to reference typed object inside the same namespace. @@ -103,9 +103,9 @@ class V1alpha2TypedLocalObjectReference(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - api_group: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiGroup", "api_group"), serialization_alias="apiGroup", description="APIGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain.") - kind: StrictStr = Field(description="Kind is the type of resource being referenced. It must be a path segment name.") - name: StrictStr = Field(description="Name is the name of resource being referenced. It must be a path segment name.") + api_group: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiGroup", "api_group"), serialization_alias="apiGroup", description="apiGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain.") + kind: StrictStr = Field(description="kind is the type of resource being referenced. It must be a path segment name.") + name: StrictStr = Field(description="name is the name of resource being referenced. It must be a path segment name.") openapi_types: ClassVar[Dict[str, str]] = { "api_group": "str", "kind": "str", @@ -152,14 +152,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2TypedLocalObjectReference): + if not isinstance(other, V1alpha3TypedLocalObjectReference): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2TypedLocalObjectReference): + if not isinstance(other, V1alpha3TypedLocalObjectReference): return True return not (self == other) @@ -174,7 +174,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2TypedLocalObjectReference from a JSON string""" + """Create an instance of V1alpha3TypedLocalObjectReference from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -219,7 +219,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2TypedLocalObjectReference from a dict""" + """Create an instance of V1alpha3TypedLocalObjectReference from a dict""" if obj is None: return None diff --git a/kubernetes/aio/client/models/v1alpha2_workload.py b/kubernetes/aio/client/models/v1alpha3_workload.py similarity index 94% rename from kubernetes/aio/client/models/v1alpha2_workload.py rename to kubernetes/aio/client/models/v1alpha3_workload.py index 1ae4fb3014..d941f090b7 100644 --- a/kubernetes/aio/client/models/v1alpha2_workload.py +++ b/kubernetes/aio/client/models/v1alpha3_workload.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,7 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1_object_meta import V1ObjectMeta -from kubernetes.aio.client.models.v1alpha2_workload_spec import V1alpha2WorkloadSpec +from kubernetes.aio.client.models.v1alpha3_workload_spec import V1alpha3WorkloadSpec from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,7 +95,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2Workload(BaseModel): +class V1alpha3Workload(BaseModel): """ 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. @@ -108,12 +108,12 @@ class V1alpha2Workload(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1alpha2WorkloadSpec + spec: V1alpha3WorkloadSpec openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", "metadata": "V1ObjectMeta", - "spec": "V1alpha2WorkloadSpec" + "spec": "V1alpha3WorkloadSpec" } attribute_map: ClassVar[Dict[str, str]] = { @@ -157,14 +157,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2Workload): + if not isinstance(other, V1alpha3Workload): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2Workload): + if not isinstance(other, V1alpha3Workload): return True return not (self == other) @@ -179,7 +179,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2Workload from a JSON string""" + """Create an instance of V1alpha3Workload from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -231,7 +231,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2Workload from a dict""" + """Create an instance of V1alpha3Workload from a dict""" if obj is None: return None @@ -250,6 +250,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "apiVersion": obj.get("apiVersion"), "kind": obj.get("kind"), "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, - "spec": V1alpha2WorkloadSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None + "spec": V1alpha3WorkloadSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1alpha2_workload_list.py b/kubernetes/aio/client/models/v1alpha3_workload_list.py similarity index 93% rename from kubernetes/aio/client/models/v1alpha2_workload_list.py rename to kubernetes/aio/client/models/v1alpha3_workload_list.py index 6c5aba9f33..82ec70dd6b 100644 --- a/kubernetes/aio/client/models/v1alpha2_workload_list.py +++ b/kubernetes/aio/client/models/v1alpha3_workload_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,7 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1_list_meta import V1ListMeta -from kubernetes.aio.client.models.v1alpha2_workload import V1alpha2Workload +from kubernetes.aio.client.models.v1alpha3_workload import V1alpha3Workload from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,7 +95,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2WorkloadList(BaseModel): +class V1alpha3WorkloadList(BaseModel): """ WorkloadList contains a list of Workload resources. @@ -106,12 +106,12 @@ class V1alpha2WorkloadList(BaseModel): and the value is json key in definition. """ # noqa: E501 api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - items: List[V1alpha2Workload] = Field(description="Items is the list of Workloads.") + items: List[V1alpha3Workload] = Field(description="Items is the list of Workloads.") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ListMeta] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", - "items": "List[V1alpha2Workload]", + "items": "List[V1alpha3Workload]", "kind": "str", "metadata": "V1ListMeta" } @@ -157,14 +157,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2WorkloadList): + if not isinstance(other, V1alpha3WorkloadList): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2WorkloadList): + if not isinstance(other, V1alpha3WorkloadList): return True return not (self == other) @@ -179,7 +179,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2WorkloadList from a JSON string""" + """Create an instance of V1alpha3WorkloadList from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -234,7 +234,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2WorkloadList from a dict""" + """Create an instance of V1alpha3WorkloadList from a dict""" if obj is None: return None @@ -251,7 +251,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "apiVersion": obj.get("apiVersion"), - "items": [V1alpha2Workload.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "items": [V1alpha3Workload.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "kind": obj.get("kind"), "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None }) diff --git a/kubernetes/aio/client/models/v1alpha3_workload_pod_group_disruption_mode.py b/kubernetes/aio/client/models/v1alpha3_workload_pod_group_disruption_mode.py new file mode 100644 index 0000000000..557d4b84f9 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha3_workload_pod_group_disruption_mode.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3WorkloadPodGroupDisruptionMode(BaseModel): + """ + WorkloadPodGroupDisruptionMode defines how individual pods within a group can be disrupted. Exactly one mode must be set. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + all: Optional[Dict[str, Any]] = Field(default=None, description="all specifies that all pods in the group must be disrupted together.") + single: Optional[Dict[str, Any]] = Field(default=None, description="single specifies that pods can be disrupted independently from each other.") + openapi_types: ClassVar[Dict[str, str]] = { + "all": "object", + "single": "object" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "all": "all", + "single": "single" + } + __properties: ClassVar[List[str]] = ["all", "single"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupDisruptionMode): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupDisruptionMode): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupDisruptionMode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("all" if serialize else "all"): _to_legacy_value(getattr(self, "all", None), serialize), + ("single" if serialize else "single"): _to_legacy_value(getattr(self, "single", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupDisruptionMode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "all": obj.get("all"), + "single": obj.get("single") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha3_workload_pod_group_gang_scheduling_policy.py b/kubernetes/aio/client/models/v1alpha3_workload_pod_group_gang_scheduling_policy.py new file mode 100644 index 0000000000..9c29d59e3c --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha3_workload_pod_group_gang_scheduling_policy.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3WorkloadPodGroupGangSchedulingPolicy(BaseModel): + """ + WorkloadPodGroupGangSchedulingPolicy defines the parameters for gang (all-or-nothing) scheduling. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + min_count: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("minCount", "min_count"), serialization_alias="minCount", description="minCount is the minimum number of pods that must be scheduled at the same time for the scheduler to admit the entire group. This field is optional. If it is not specified, the controller should inject a context-specific sane default (e.g., parallelism for a Job). If set, it must be a positive integer.") + openapi_types: ClassVar[Dict[str, str]] = { + "min_count": "int" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "min_count": "minCount" + } + __properties: ClassVar[List[str]] = ["minCount"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "minCount" not in obj and "min_count" in obj: + obj["minCount"] = obj["min_count"] + obj.pop("min_count", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupGangSchedulingPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupGangSchedulingPolicy): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupGangSchedulingPolicy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("minCount" if serialize else "min_count"): _to_legacy_value(getattr(self, "min_count", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupGangSchedulingPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "minCount": obj.get("minCount") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha3_workload_pod_group_resource_claim.py b/kubernetes/aio/client/models/v1alpha3_workload_pod_group_resource_claim.py new file mode 100644 index 0000000000..b983a4c561 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha3_workload_pod_group_resource_claim.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3WorkloadPodGroupResourceClaim(BaseModel): + """ + WorkloadPodGroupResourceClaim references a dynamic resource claim that is shared across pods in the group. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + name: StrictStr = Field(description="name uniquely identifies this resource claim inside the group. This field is required. It must be a DNS_LABEL.") + resource_claim_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimName", "resource_claim_name"), serialization_alias="resourceClaimName", description="resourceClaimName is the name of a ResourceClaim object in the same namespace. This field is optional. If it is not specified, no resource claim is used. If set, it must be a DNS subdomain.") + resource_claim_template_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimTemplateName", "resource_claim_template_name"), serialization_alias="resourceClaimTemplateName", description="resourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace. This field is optional. If it is not specified, no resource claim template is used. If set, it must be a DNS subdomain.") + openapi_types: ClassVar[Dict[str, str]] = { + "name": "str", + "resource_claim_name": "str", + "resource_claim_template_name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "name": "name", + "resource_claim_name": "resourceClaimName", + "resource_claim_template_name": "resourceClaimTemplateName" + } + __properties: ClassVar[List[str]] = ["name", "resourceClaimName", "resourceClaimTemplateName"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "resourceClaimName" not in obj and "resource_claim_name" in obj: + obj["resourceClaimName"] = obj["resource_claim_name"] + obj.pop("resource_claim_name", None) + if "resourceClaimTemplateName" not in obj and "resource_claim_template_name" in obj: + obj["resourceClaimTemplateName"] = obj["resource_claim_template_name"] + obj.pop("resource_claim_template_name", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupResourceClaim): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupResourceClaim): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupResourceClaim from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("resourceClaimName" if serialize else "resource_claim_name"): _to_legacy_value(getattr(self, "resource_claim_name", None), serialize), + ("resourceClaimTemplateName" if serialize else "resource_claim_template_name"): _to_legacy_value(getattr(self, "resource_claim_template_name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupResourceClaim from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "resourceClaimName": obj.get("resourceClaimName"), + "resourceClaimTemplateName": obj.get("resourceClaimTemplateName") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha3_workload_pod_group_scheduling_constraints.py b/kubernetes/aio/client/models/v1alpha3_workload_pod_group_scheduling_constraints.py new file mode 100644 index 0000000000..66da9c17da --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha3_workload_pod_group_scheduling_constraints.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.aio.client.models.v1alpha3_topology_constraint import V1alpha3TopologyConstraint +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3WorkloadPodGroupSchedulingConstraints(BaseModel): + """ + WorkloadPodGroupSchedulingConstraints defines leaf-level scheduling constraints, such as topology. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + topology: Optional[List[V1alpha3TopologyConstraint]] = Field(default=None, description="topology specifies desired topological placements for all pods within the pod group. If unset, no topology placement is requested.") + openapi_types: ClassVar[Dict[str, str]] = { + "topology": "List[V1alpha3TopologyConstraint]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "topology": "topology" + } + __properties: ClassVar[List[str]] = ["topology"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupSchedulingConstraints): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupSchedulingConstraints): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupSchedulingConstraints from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("topology" if serialize else "topology"): _to_legacy_value(getattr(self, "topology", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in topology (list) + _items = [] + if self.topology: + for _item_topology in self.topology: + _items.append(_to_openapi_value(_item_topology) if _item_topology is not None else None) + _dict['topology'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupSchedulingConstraints from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "topology": [V1alpha3TopologyConstraint.from_dict(_item) for _item in obj["topology"]] if obj.get("topology") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha3_workload_pod_group_scheduling_policy.py b/kubernetes/aio/client/models/v1alpha3_workload_pod_group_scheduling_policy.py new file mode 100644 index 0000000000..6aa96b4c57 --- /dev/null +++ b/kubernetes/aio/client/models/v1alpha3_workload_pod_group_scheduling_policy.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.aio.client.models.v1alpha3_workload_pod_group_gang_scheduling_policy import V1alpha3WorkloadPodGroupGangSchedulingPolicy +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3WorkloadPodGroupSchedulingPolicy(BaseModel): + """ + WorkloadPodGroupSchedulingPolicy defines the scheduling policy for a group of pods managed by a workload controller. Exactly one policy must be set. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + basic: Optional[Dict[str, Any]] = Field(default=None, description="basic specifies that standard, pod-by-pod Kubernetes scheduling behavior should be used.") + gang: Optional[V1alpha3WorkloadPodGroupGangSchedulingPolicy] = None + openapi_types: ClassVar[Dict[str, str]] = { + "basic": "object", + "gang": "V1alpha3WorkloadPodGroupGangSchedulingPolicy" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "basic": "basic", + "gang": "gang" + } + __properties: ClassVar[List[str]] = ["basic", "gang"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupSchedulingPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupSchedulingPolicy): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupSchedulingPolicy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("basic" if serialize else "basic"): _to_legacy_value(getattr(self, "basic", None), serialize), + ("gang" if serialize else "gang"): _to_legacy_value(getattr(self, "gang", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of gang + if self.gang: + _dict['gang'] = _to_openapi_value(self.gang) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupSchedulingPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "basic": obj.get("basic"), + "gang": V1alpha3WorkloadPodGroupGangSchedulingPolicy.from_dict(obj["gang"]) if obj.get("gang") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha2_workload_pod_group_template_reference.py b/kubernetes/aio/client/models/v1alpha3_workload_reference.py similarity index 82% rename from kubernetes/aio/client/models/v1alpha2_workload_pod_group_template_reference.py rename to kubernetes/aio/client/models/v1alpha3_workload_reference.py index eb5efc95fb..eb786d9462 100644 --- a/kubernetes/aio/client/models/v1alpha2_workload_pod_group_template_reference.py +++ b/kubernetes/aio/client/models/v1alpha3_workload_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -93,9 +93,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2WorkloadPodGroupTemplateReference(BaseModel): +class V1alpha3WorkloadReference(BaseModel): """ - WorkloadPodGroupTemplateReference references the PodGroupTemplate within the Workload object. + WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup. Attributes: openapi_types (dict): The key is attribute name @@ -103,18 +103,18 @@ class V1alpha2WorkloadPodGroupTemplateReference(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - pod_group_template_name: StrictStr = Field(validation_alias=AliasChoices("podGroupTemplateName", "pod_group_template_name"), serialization_alias="podGroupTemplateName", description="PodGroupTemplateName defines the PodGroupTemplate name within the Workload object.") - workload_name: StrictStr = Field(validation_alias=AliasChoices("workloadName", "workload_name"), serialization_alias="workloadName", description="WorkloadName defines the name of the Workload object.") + template_name: StrictStr = Field(validation_alias=AliasChoices("templateName", "template_name"), serialization_alias="templateName", description="templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required.") + workload_name: StrictStr = Field(validation_alias=AliasChoices("workloadName", "workload_name"), serialization_alias="workloadName", description="workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required.") openapi_types: ClassVar[Dict[str, str]] = { - "pod_group_template_name": "str", + "template_name": "str", "workload_name": "str" } attribute_map: ClassVar[Dict[str, str]] = { - "pod_group_template_name": "podGroupTemplateName", + "template_name": "templateName", "workload_name": "workloadName" } - __properties: ClassVar[List[str]] = ["podGroupTemplateName", "workloadName"] + __properties: ClassVar[List[str]] = ["templateName", "workloadName"] @classmethod def __preprocess_input_names( @@ -125,9 +125,9 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) - if "podGroupTemplateName" not in obj and "pod_group_template_name" in obj: - obj["podGroupTemplateName"] = obj["pod_group_template_name"] - obj.pop("pod_group_template_name", None) + if "templateName" not in obj and "template_name" in obj: + obj["templateName"] = obj["template_name"] + obj.pop("template_name", None) if "workloadName" not in obj and "workload_name" in obj: obj["workloadName"] = obj["workload_name"] obj.pop("workload_name", None) @@ -152,14 +152,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2WorkloadPodGroupTemplateReference): + if not isinstance(other, V1alpha3WorkloadReference): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2WorkloadPodGroupTemplateReference): + if not isinstance(other, V1alpha3WorkloadReference): return True return not (self == other) @@ -174,13 +174,13 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2WorkloadPodGroupTemplateReference from a JSON string""" + """Create an instance of V1alpha3WorkloadReference from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { - ("podGroupTemplateName" if serialize else "pod_group_template_name"): _to_legacy_value(getattr(self, "pod_group_template_name", None), serialize), + ("templateName" if serialize else "template_name"): _to_legacy_value(getattr(self, "template_name", None), serialize), ("workloadName" if serialize else "workload_name"): _to_legacy_value(getattr(self, "workload_name", None), serialize), } @@ -218,7 +218,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2WorkloadPodGroupTemplateReference from a dict""" + """Create an instance of V1alpha3WorkloadReference from a dict""" if obj is None: return None @@ -234,7 +234,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ - "podGroupTemplateName": obj.get("podGroupTemplateName"), + "templateName": obj.get("templateName"), "workloadName": obj.get("workloadName") }) return _obj diff --git a/kubernetes/client/models/v1alpha2_workload_spec.py b/kubernetes/aio/client/models/v1alpha3_workload_spec.py similarity index 70% rename from kubernetes/client/models/v1alpha2_workload_spec.py rename to kubernetes/aio/client/models/v1alpha3_workload_spec.py index 8251e268f7..e17b7d8ff6 100644 --- a/kubernetes/client/models/v1alpha2_workload_spec.py +++ b/kubernetes/aio/client/models/v1alpha3_workload_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,8 +20,9 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional, cast as _cast -from kubernetes.client.models.v1alpha2_pod_group_template import V1alpha2PodGroupTemplate -from kubernetes.client.models.v1alpha2_typed_local_object_reference import V1alpha2TypedLocalObjectReference +from kubernetes.aio.client.models.v1alpha3_composite_pod_group_template import V1alpha3CompositePodGroupTemplate +from kubernetes.aio.client.models.v1alpha3_pod_group_template import V1alpha3PodGroupTemplate +from kubernetes.aio.client.models.v1alpha3_typed_local_object_reference import V1alpha3TypedLocalObjectReference from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,7 +96,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2WorkloadSpec(BaseModel): +class V1alpha3WorkloadSpec(BaseModel): """ WorkloadSpec defines the desired state of a Workload. @@ -105,18 +106,21 @@ class V1alpha2WorkloadSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - controller_ref: Optional[V1alpha2TypedLocalObjectReference] = Field(default=None, validation_alias=AliasChoices("controllerRef", "controller_ref"), serialization_alias="controllerRef") - pod_group_templates: List[V1alpha2PodGroupTemplate] = Field(validation_alias=AliasChoices("podGroupTemplates", "pod_group_templates"), serialization_alias="podGroupTemplates", description="PodGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. This field is immutable.") + composite_pod_group_templates: Optional[List[V1alpha3CompositePodGroupTemplate]] = Field(default=None, validation_alias=AliasChoices("compositePodGroupTemplates", "composite_pod_group_templates"), serialization_alias="compositePodGroupTemplates", description="compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. This field is used only when the CompositePodGroup feature gate is enabled.") + controller_ref: Optional[V1alpha3TypedLocalObjectReference] = Field(default=None, validation_alias=AliasChoices("controllerRef", "controller_ref"), serialization_alias="controllerRef") + pod_group_templates: Optional[List[V1alpha3PodGroupTemplate]] = Field(default=None, validation_alias=AliasChoices("podGroupTemplates", "pod_group_templates"), serialization_alias="podGroupTemplates", description="podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.") openapi_types: ClassVar[Dict[str, str]] = { - "controller_ref": "V1alpha2TypedLocalObjectReference", - "pod_group_templates": "List[V1alpha2PodGroupTemplate]" + "composite_pod_group_templates": "List[V1alpha3CompositePodGroupTemplate]", + "controller_ref": "V1alpha3TypedLocalObjectReference", + "pod_group_templates": "List[V1alpha3PodGroupTemplate]" } attribute_map: ClassVar[Dict[str, str]] = { + "composite_pod_group_templates": "compositePodGroupTemplates", "controller_ref": "controllerRef", "pod_group_templates": "podGroupTemplates" } - __properties: ClassVar[List[str]] = ["controllerRef", "podGroupTemplates"] + __properties: ClassVar[List[str]] = ["compositePodGroupTemplates", "controllerRef", "podGroupTemplates"] @classmethod def __preprocess_input_names( @@ -127,6 +131,9 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) + if "compositePodGroupTemplates" not in obj and "composite_pod_group_templates" in obj: + obj["compositePodGroupTemplates"] = obj["composite_pod_group_templates"] + obj.pop("composite_pod_group_templates", None) if "controllerRef" not in obj and "controller_ref" in obj: obj["controllerRef"] = obj["controller_ref"] obj.pop("controller_ref", None) @@ -154,14 +161,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2WorkloadSpec): + if not isinstance(other, V1alpha3WorkloadSpec): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2WorkloadSpec): + if not isinstance(other, V1alpha3WorkloadSpec): return True return not (self == other) @@ -176,12 +183,13 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2WorkloadSpec from a JSON string""" + """Create an instance of V1alpha3WorkloadSpec from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { + ("compositePodGroupTemplates" if serialize else "composite_pod_group_templates"): _to_legacy_value(getattr(self, "composite_pod_group_templates", None), serialize), ("controllerRef" if serialize else "controller_ref"): _to_legacy_value(getattr(self, "controller_ref", None), serialize), ("podGroupTemplates" if serialize else "pod_group_templates"): _to_legacy_value(getattr(self, "pod_group_templates", None), serialize), } @@ -204,6 +212,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in composite_pod_group_templates (list) + _items = [] + if self.composite_pod_group_templates: + for _item_composite_pod_group_templates in self.composite_pod_group_templates: + _items.append(_to_openapi_value(_item_composite_pod_group_templates) if _item_composite_pod_group_templates is not None else None) + _dict['compositePodGroupTemplates'] = _items # override the default output from pydantic by calling `to_dict()` of controller_ref if self.controller_ref: _dict['controllerRef'] = _to_openapi_value(self.controller_ref) @@ -229,7 +243,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2WorkloadSpec from a dict""" + """Create an instance of V1alpha3WorkloadSpec from a dict""" if obj is None: return None @@ -245,7 +259,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ - "controllerRef": V1alpha2TypedLocalObjectReference.from_dict(obj["controllerRef"]) if obj.get("controllerRef") is not None else None, - "podGroupTemplates": [V1alpha2PodGroupTemplate.from_dict(_item) for _item in obj["podGroupTemplates"]] if obj.get("podGroupTemplates") is not None else None + "compositePodGroupTemplates": [V1alpha3CompositePodGroupTemplate.from_dict(_item) for _item in obj["compositePodGroupTemplates"]] if obj.get("compositePodGroupTemplates") is not None else None, + "controllerRef": V1alpha3TypedLocalObjectReference.from_dict(obj["controllerRef"]) if obj.get("controllerRef") is not None else None, + "podGroupTemplates": [V1alpha3PodGroupTemplate.from_dict(_item) for _item in obj["podGroupTemplates"]] if obj.get("podGroupTemplates") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1beta1_allocated_device_status.py b/kubernetes/aio/client/models/v1beta1_allocated_device_status.py index e232903569..89458b516a 100644 --- a/kubernetes/aio/client/models/v1beta1_allocated_device_status.py +++ b/kubernetes/aio/client/models/v1beta1_allocated_device_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_allocation_result.py b/kubernetes/aio/client/models/v1beta1_allocation_result.py index fa8b2a6b96..ced2df8da0 100644 --- a/kubernetes/aio/client/models/v1beta1_allocation_result.py +++ b/kubernetes/aio/client/models/v1beta1_allocation_result.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_apply_configuration.py b/kubernetes/aio/client/models/v1beta1_apply_configuration.py index 908a242d0e..21dd6e1cc9 100644 --- a/kubernetes/aio/client/models/v1beta1_apply_configuration.py +++ b/kubernetes/aio/client/models/v1beta1_apply_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_basic_device.py b/kubernetes/aio/client/models/v1beta1_basic_device.py index ed5fa1a47f..c50369b61c 100644 --- a/kubernetes/aio/client/models/v1beta1_basic_device.py +++ b/kubernetes/aio/client/models/v1beta1_basic_device.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -25,7 +25,7 @@ from kubernetes.aio.client.models.v1beta1_device_capacity import V1beta1DeviceCapacity from kubernetes.aio.client.models.v1beta1_device_counter_consumption import V1beta1DeviceCounterConsumption from kubernetes.aio.client.models.v1beta1_device_taint import V1beta1DeviceTaint -from kubernetes.aio.client.models.v1beta1_node_allocatable_resource_mapping import V1beta1NodeAllocatableResourceMapping +from kubernetes.aio.client.models.v1beta1_node_allocatable_resource import V1beta1NodeAllocatableResource from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -117,7 +117,7 @@ class V1beta1BasicDevice(BaseModel): binds_to_node: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("bindsToNode", "binds_to_node"), serialization_alias="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. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") capacity: Optional[Dict[str, V1beta1DeviceCapacity]] = Field(default=None, description="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.") consumes_counters: Optional[List[V1beta1DeviceCounterConsumption]] = Field(default=None, validation_alias=AliasChoices("consumesCounters", "consumes_counters"), serialization_alias="consumesCounters", description="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.") - node_allocatable_resource_mappings: Optional[Dict[str, V1beta1NodeAllocatableResourceMapping]] = Field(default=None, validation_alias=AliasChoices("nodeAllocatableResourceMappings", "node_allocatable_resource_mappings"), serialization_alias="nodeAllocatableResourceMappings", 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.") + node_allocatable_resources: Optional[Dict[str, V1beta1NodeAllocatableResource]] = Field(default=None, validation_alias=AliasChoices("nodeAllocatableResources", "node_allocatable_resources"), serialization_alias="nodeAllocatableResources", description="NodeAllocatableResources 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.") node_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("nodeName", "node_name"), serialization_alias="nodeName", description="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.") node_selector: Optional[V1NodeSelector] = Field(default=None, validation_alias=AliasChoices("nodeSelector", "node_selector"), serialization_alias="nodeSelector") taints: Optional[List[V1beta1DeviceTaint]] = Field(default=None, description="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.") @@ -130,7 +130,7 @@ class V1beta1BasicDevice(BaseModel): "binds_to_node": "bool", "capacity": "Dict[str, V1beta1DeviceCapacity]", "consumes_counters": "List[V1beta1DeviceCounterConsumption]", - "node_allocatable_resource_mappings": "Dict[str, V1beta1NodeAllocatableResourceMapping]", + "node_allocatable_resources": "Dict[str, V1beta1NodeAllocatableResource]", "node_name": "str", "node_selector": "V1NodeSelector", "taints": "List[V1beta1DeviceTaint]" @@ -145,12 +145,12 @@ class V1beta1BasicDevice(BaseModel): "binds_to_node": "bindsToNode", "capacity": "capacity", "consumes_counters": "consumesCounters", - "node_allocatable_resource_mappings": "nodeAllocatableResourceMappings", + "node_allocatable_resources": "nodeAllocatableResources", "node_name": "nodeName", "node_selector": "nodeSelector", "taints": "taints" } - __properties: ClassVar[List[str]] = ["allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "nodeAllocatableResourceMappings", "nodeName", "nodeSelector", "taints"] + __properties: ClassVar[List[str]] = ["allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "nodeAllocatableResources", "nodeName", "nodeSelector", "taints"] @classmethod def __preprocess_input_names( @@ -179,9 +179,9 @@ def __preprocess_input_names( if "consumesCounters" not in obj and "consumes_counters" in obj: obj["consumesCounters"] = obj["consumes_counters"] obj.pop("consumes_counters", None) - if "nodeAllocatableResourceMappings" not in obj and "node_allocatable_resource_mappings" in obj: - obj["nodeAllocatableResourceMappings"] = obj["node_allocatable_resource_mappings"] - obj.pop("node_allocatable_resource_mappings", None) + if "nodeAllocatableResources" not in obj and "node_allocatable_resources" in obj: + obj["nodeAllocatableResources"] = obj["node_allocatable_resources"] + obj.pop("node_allocatable_resources", None) if "nodeName" not in obj and "node_name" in obj: obj["nodeName"] = obj["node_name"] obj.pop("node_name", None) @@ -245,7 +245,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("bindsToNode" if serialize else "binds_to_node"): _to_legacy_value(getattr(self, "binds_to_node", None), serialize), ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("consumesCounters" if serialize else "consumes_counters"): _to_legacy_value(getattr(self, "consumes_counters", None), serialize), - ("nodeAllocatableResourceMappings" if serialize else "node_allocatable_resource_mappings"): _to_legacy_value(getattr(self, "node_allocatable_resource_mappings", None), serialize), + ("nodeAllocatableResources" if serialize else "node_allocatable_resources"): _to_legacy_value(getattr(self, "node_allocatable_resources", None), serialize), ("nodeName" if serialize else "node_name"): _to_legacy_value(getattr(self, "node_name", None), serialize), ("nodeSelector" if serialize else "node_selector"): _to_legacy_value(getattr(self, "node_selector", None), serialize), ("taints" if serialize else "taints"): _to_legacy_value(getattr(self, "taints", None), serialize), @@ -287,12 +287,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: for _item_consumes_counters in self.consumes_counters: _items.append(_to_openapi_value(_item_consumes_counters) if _item_consumes_counters is not None else None) _dict['consumesCounters'] = _items - # override the default output from pydantic by calling `to_dict()` of each value in node_allocatable_resource_mappings (dict) + # override the default output from pydantic by calling `to_dict()` of each value in node_allocatable_resources (dict) _field_dict = {} - if self.node_allocatable_resource_mappings: - for _key_node_allocatable_resource_mappings in self.node_allocatable_resource_mappings: - _field_dict[_key_node_allocatable_resource_mappings] = _to_openapi_value(self.node_allocatable_resource_mappings[_key_node_allocatable_resource_mappings]) if self.node_allocatable_resource_mappings[_key_node_allocatable_resource_mappings] is not None else None - _dict['nodeAllocatableResourceMappings'] = _field_dict + if self.node_allocatable_resources: + for _key_node_allocatable_resources in self.node_allocatable_resources: + _field_dict[_key_node_allocatable_resources] = _to_openapi_value(self.node_allocatable_resources[_key_node_allocatable_resources]) if self.node_allocatable_resources[_key_node_allocatable_resources] is not None else None + _dict['nodeAllocatableResources'] = _field_dict # override the default output from pydantic by calling `to_dict()` of node_selector if self.node_selector: _dict['nodeSelector'] = _to_openapi_value(self.node_selector) @@ -352,11 +352,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("capacity") is not None else None, "consumesCounters": [V1beta1DeviceCounterConsumption.from_dict(_item) for _item in obj["consumesCounters"]] if obj.get("consumesCounters") is not None else None, - "nodeAllocatableResourceMappings": dict( - (_k, V1beta1NodeAllocatableResourceMapping.from_dict(_v)) - for _k, _v in obj["nodeAllocatableResourceMappings"].items() + "nodeAllocatableResources": dict( + (_k, V1beta1NodeAllocatableResource.from_dict(_v)) + for _k, _v in obj["nodeAllocatableResources"].items() ) - if obj.get("nodeAllocatableResourceMappings") is not None + if obj.get("nodeAllocatableResources") is not None else None, "nodeName": obj.get("nodeName"), "nodeSelector": V1NodeSelector.from_dict(obj["nodeSelector"]) if obj.get("nodeSelector") is not None else None, diff --git a/kubernetes/aio/client/models/v1beta1_capacity_request_policy.py b/kubernetes/aio/client/models/v1beta1_capacity_request_policy.py index 14bc98c7a2..20c3342146 100644 --- a/kubernetes/aio/client/models/v1beta1_capacity_request_policy.py +++ b/kubernetes/aio/client/models/v1beta1_capacity_request_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_capacity_request_policy_range.py b/kubernetes/aio/client/models/v1beta1_capacity_request_policy_range.py index 24ddab13f6..e85a6838e2 100644 --- a/kubernetes/aio/client/models/v1beta1_capacity_request_policy_range.py +++ b/kubernetes/aio/client/models/v1beta1_capacity_request_policy_range.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -94,7 +94,7 @@ def _to_openapi_value(value: Any) -> Any: class V1beta1CapacityRequestPolicyRange(BaseModel): """ - 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. + CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - 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. Attributes: openapi_types (dict): The key is attribute name diff --git a/kubernetes/aio/client/models/v1beta1_capacity_requirements.py b/kubernetes/aio/client/models/v1beta1_capacity_requirements.py index 3845dba76b..20f33aad50 100644 --- a/kubernetes/aio/client/models/v1beta1_capacity_requirements.py +++ b/kubernetes/aio/client/models/v1beta1_capacity_requirements.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_cel_device_selector.py b/kubernetes/aio/client/models/v1beta1_cel_device_selector.py index 232a80eba2..7ef8bb1815 100644 --- a/kubernetes/aio/client/models/v1beta1_cel_device_selector.py +++ b/kubernetes/aio/client/models/v1beta1_cel_device_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -102,7 +102,7 @@ class V1beta1CELDeviceSelector(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - expression: StrictStr = Field(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. 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.") + expression: StrictStr = Field(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. 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.") openapi_types: ClassVar[Dict[str, str]] = { "expression": "str" } diff --git a/kubernetes/aio/client/models/v1beta1_cluster_trust_bundle.py b/kubernetes/aio/client/models/v1beta1_cluster_trust_bundle.py index 438f78d84b..13a9ebe7f8 100644 --- a/kubernetes/aio/client/models/v1beta1_cluster_trust_bundle.py +++ b/kubernetes/aio/client/models/v1beta1_cluster_trust_bundle.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -97,7 +97,7 @@ def _to_openapi_value(value: Any) -> Any: class V1beta1ClusterTrustBundle(BaseModel): """ - 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. + 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 signer, 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. Attributes: openapi_types (dict): The key is attribute name diff --git a/kubernetes/aio/client/models/v1beta1_cluster_trust_bundle_list.py b/kubernetes/aio/client/models/v1beta1_cluster_trust_bundle_list.py index b1135f4b91..2d95ab441b 100644 --- a/kubernetes/aio/client/models/v1beta1_cluster_trust_bundle_list.py +++ b/kubernetes/aio/client/models/v1beta1_cluster_trust_bundle_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_cluster_trust_bundle_spec.py b/kubernetes/aio/client/models/v1beta1_cluster_trust_bundle_spec.py index adcc3cc855..c35343969f 100644 --- a/kubernetes/aio/client/models/v1beta1_cluster_trust_bundle_spec.py +++ b/kubernetes/aio/client/models/v1beta1_cluster_trust_bundle_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_composite_disruption_mode.py b/kubernetes/aio/client/models/v1beta1_composite_disruption_mode.py new file mode 100644 index 0000000000..8b60442961 --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_composite_disruption_mode.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1CompositeDisruptionMode(BaseModel): + """ + CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + all: Optional[Dict[str, Any]] = Field(default=None, description="all specifies that all children groups can only be disrupted together.") + single: Optional[Dict[str, Any]] = Field(default=None, description="single specifies that children groups can be disrupted independently from each other.") + openapi_types: ClassVar[Dict[str, str]] = { + "all": "object", + "single": "object" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "all": "all", + "single": "single" + } + __properties: ClassVar[List[str]] = ["all", "single"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1CompositeDisruptionMode): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1CompositeDisruptionMode): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1CompositeDisruptionMode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("all" if serialize else "all"): _to_legacy_value(getattr(self, "all", None), serialize), + ("single" if serialize else "single"): _to_legacy_value(getattr(self, "single", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1CompositeDisruptionMode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "all": obj.get("all"), + "single": obj.get("single") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_ip_address_spec.py b/kubernetes/aio/client/models/v1beta1_composite_gang_scheduling_policy.py similarity index 81% rename from kubernetes/aio/client/models/v1beta1_ip_address_spec.py rename to kubernetes/aio/client/models/v1beta1_composite_gang_scheduling_policy.py index a4c383ebe0..e283a3554d 100644 --- a/kubernetes/aio/client/models/v1beta1_ip_address_spec.py +++ b/kubernetes/aio/client/models/v1beta1_composite_gang_scheduling_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,9 +18,8 @@ import json from collections.abc import Mapping as _Mapping -from pydantic import AliasChoices, BaseModel, ConfigDict, Field +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, cast as _cast -from kubernetes.aio.client.models.v1beta1_parent_reference import V1beta1ParentReference from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -94,9 +93,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1beta1IPAddressSpec(BaseModel): +class V1beta1CompositeGangSchedulingPolicy(BaseModel): """ - IPAddressSpec describe the attributes in an IP Address. + CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics. Attributes: openapi_types (dict): The key is attribute name @@ -104,15 +103,15 @@ class V1beta1IPAddressSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - parent_ref: V1beta1ParentReference = Field(validation_alias=AliasChoices("parentRef", "parent_ref"), serialization_alias="parentRef") + min_group_count: StrictInt = Field(validation_alias=AliasChoices("minGroupCount", "min_group_count"), serialization_alias="minGroupCount", description="minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.") openapi_types: ClassVar[Dict[str, str]] = { - "parent_ref": "V1beta1ParentReference" + "min_group_count": "int" } attribute_map: ClassVar[Dict[str, str]] = { - "parent_ref": "parentRef" + "min_group_count": "minGroupCount" } - __properties: ClassVar[List[str]] = ["parentRef"] + __properties: ClassVar[List[str]] = ["minGroupCount"] @classmethod def __preprocess_input_names( @@ -123,9 +122,9 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) - if "parentRef" not in obj and "parent_ref" in obj: - obj["parentRef"] = obj["parent_ref"] - obj.pop("parent_ref", None) + if "minGroupCount" not in obj and "min_group_count" in obj: + obj["minGroupCount"] = obj["min_group_count"] + obj.pop("min_group_count", None) return obj model_config = ConfigDict( @@ -147,14 +146,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1beta1IPAddressSpec): + if not isinstance(other, V1beta1CompositeGangSchedulingPolicy): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1IPAddressSpec): + if not isinstance(other, V1beta1CompositeGangSchedulingPolicy): return True return not (self == other) @@ -169,13 +168,13 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1IPAddressSpec from a JSON string""" + """Create an instance of V1beta1CompositeGangSchedulingPolicy from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { - ("parentRef" if serialize else "parent_ref"): _to_legacy_value(getattr(self, "parent_ref", None), serialize), + ("minGroupCount" if serialize else "min_group_count"): _to_legacy_value(getattr(self, "min_group_count", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -196,9 +195,6 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of parent_ref - if self.parent_ref: - _dict['parentRef'] = _to_openapi_value(self.parent_ref) return _dict setattr( @@ -215,7 +211,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1IPAddressSpec from a dict""" + """Create an instance of V1beta1CompositeGangSchedulingPolicy from a dict""" if obj is None: return None @@ -231,6 +227,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ - "parentRef": V1beta1ParentReference.from_dict(obj["parentRef"]) if obj.get("parentRef") is not None else None + "minGroupCount": obj.get("minGroupCount") }) return _obj diff --git a/kubernetes/aio/client/models/v1beta1_composite_pod_group_scheduling_constraints.py b/kubernetes/aio/client/models/v1beta1_composite_pod_group_scheduling_constraints.py new file mode 100644 index 0000000000..07b923b673 --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_composite_pod_group_scheduling_constraints.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.aio.client.models.v1beta1_topology_constraint import V1beta1TopologyConstraint +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1CompositePodGroupSchedulingConstraints(BaseModel): + """ + CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + topology: Optional[List[V1beta1TopologyConstraint]] = Field(default=None, description="topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future.") + openapi_types: ClassVar[Dict[str, str]] = { + "topology": "List[V1beta1TopologyConstraint]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "topology": "topology" + } + __properties: ClassVar[List[str]] = ["topology"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1CompositePodGroupSchedulingConstraints): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1CompositePodGroupSchedulingConstraints): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1CompositePodGroupSchedulingConstraints from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("topology" if serialize else "topology"): _to_legacy_value(getattr(self, "topology", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in topology (list) + _items = [] + if self.topology: + for _item_topology in self.topology: + _items.append(_to_openapi_value(_item_topology) if _item_topology is not None else None) + _dict['topology'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1CompositePodGroupSchedulingConstraints from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "topology": [V1beta1TopologyConstraint.from_dict(_item) for _item in obj["topology"]] if obj.get("topology") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha2_pod_group_scheduling_policy.py b/kubernetes/aio/client/models/v1beta1_composite_pod_group_scheduling_policy.py similarity index 85% rename from kubernetes/aio/client/models/v1alpha2_pod_group_scheduling_policy.py rename to kubernetes/aio/client/models/v1beta1_composite_pod_group_scheduling_policy.py index e5e81e3747..245056b863 100644 --- a/kubernetes/aio/client/models/v1alpha2_pod_group_scheduling_policy.py +++ b/kubernetes/aio/client/models/v1beta1_composite_pod_group_scheduling_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from kubernetes.aio.client.models.v1alpha2_gang_scheduling_policy import V1alpha2GangSchedulingPolicy +from kubernetes.aio.client.models.v1beta1_composite_gang_scheduling_policy import V1beta1CompositeGangSchedulingPolicy from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -93,9 +93,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroupSchedulingPolicy(BaseModel): +class V1beta1CompositePodGroupSchedulingPolicy(BaseModel): """ - PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. + CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set. Attributes: openapi_types (dict): The key is attribute name @@ -103,11 +103,11 @@ class V1alpha2PodGroupSchedulingPolicy(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - basic: Optional[Dict[str, Any]] = Field(default=None, description="Basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior.") - gang: Optional[V1alpha2GangSchedulingPolicy] = None + basic: Optional[Dict[str, Any]] = Field(default=None, description="basic specifies that the groups of this composite group should be scheduled independently. This field is immutable.") + gang: Optional[V1beta1CompositeGangSchedulingPolicy] = None openapi_types: ClassVar[Dict[str, str]] = { "basic": "object", - "gang": "V1alpha2GangSchedulingPolicy" + "gang": "V1beta1CompositeGangSchedulingPolicy" } attribute_map: ClassVar[Dict[str, str]] = { @@ -135,14 +135,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroupSchedulingPolicy): + if not isinstance(other, V1beta1CompositePodGroupSchedulingPolicy): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroupSchedulingPolicy): + if not isinstance(other, V1beta1CompositePodGroupSchedulingPolicy): return True return not (self == other) @@ -157,7 +157,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupSchedulingPolicy from a JSON string""" + """Create an instance of V1beta1CompositePodGroupSchedulingPolicy from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -204,7 +204,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupSchedulingPolicy from a dict""" + """Create an instance of V1beta1CompositePodGroupSchedulingPolicy from a dict""" if obj is None: return None @@ -213,6 +213,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "basic": obj.get("basic"), - "gang": V1alpha2GangSchedulingPolicy.from_dict(obj["gang"]) if obj.get("gang") is not None else None + "gang": V1beta1CompositeGangSchedulingPolicy.from_dict(obj["gang"]) if obj.get("gang") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1beta1_composite_pod_group_template.py b/kubernetes/aio/client/models/v1beta1_composite_pod_group_template.py new file mode 100644 index 0000000000..f1005ea30b --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_composite_pod_group_template.py @@ -0,0 +1,318 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1beta1_composite_disruption_mode import V1beta1CompositeDisruptionMode +from kubernetes.aio.client.models.v1beta1_composite_pod_group_scheduling_constraints import V1beta1CompositePodGroupSchedulingConstraints +from kubernetes.aio.client.models.v1beta1_composite_pod_group_scheduling_policy import V1beta1CompositePodGroupSchedulingPolicy +from kubernetes.aio.client.models.v1beta1_pod_group_template import V1beta1PodGroupTemplate +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1CompositePodGroupTemplate(BaseModel): + """ + CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + composite_pod_group_templates: Optional[List[V1beta1CompositePodGroupTemplate]] = Field(default=None, validation_alias=AliasChoices("compositePodGroupTemplates", "composite_pod_group_templates"), serialization_alias="compositePodGroupTemplates", description="compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.") + disruption_mode: Optional[V1beta1CompositeDisruptionMode] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="disruptionMode") + name: StrictStr = Field(description="name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required.") + pod_group_templates: Optional[List[V1beta1PodGroupTemplate]] = Field(default=None, validation_alias=AliasChoices("podGroupTemplates", "pod_group_templates"), serialization_alias="podGroupTemplates", description="podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.") + preemption_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preemptionPolicy", "preemption_policy"), serialization_alias="preemptionPolicy", description="preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + priority: Optional[StrictInt] = Field(default=None, description="priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite 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.") + priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="priorityClassName", description="priorityClassName indicates the priority that should be considered when scheduling a composite 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, composite pod groups created from this template will have the priority set to zero. This field is immutable.") + scheduling_constraints: Optional[V1beta1CompositePodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") + scheduling_policy: V1beta1CompositePodGroupSchedulingPolicy = Field(validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") + openapi_types: ClassVar[Dict[str, str]] = { + "composite_pod_group_templates": "List[V1beta1CompositePodGroupTemplate]", + "disruption_mode": "V1beta1CompositeDisruptionMode", + "name": "str", + "pod_group_templates": "List[V1beta1PodGroupTemplate]", + "preemption_policy": "str", + "priority": "int", + "priority_class_name": "str", + "scheduling_constraints": "V1beta1CompositePodGroupSchedulingConstraints", + "scheduling_policy": "V1beta1CompositePodGroupSchedulingPolicy" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "composite_pod_group_templates": "compositePodGroupTemplates", + "disruption_mode": "disruptionMode", + "name": "name", + "pod_group_templates": "podGroupTemplates", + "preemption_policy": "preemptionPolicy", + "priority": "priority", + "priority_class_name": "priorityClassName", + "scheduling_constraints": "schedulingConstraints", + "scheduling_policy": "schedulingPolicy" + } + __properties: ClassVar[List[str]] = ["compositePodGroupTemplates", "disruptionMode", "name", "podGroupTemplates", "preemptionPolicy", "priority", "priorityClassName", "schedulingConstraints", "schedulingPolicy"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "compositePodGroupTemplates" not in obj and "composite_pod_group_templates" in obj: + obj["compositePodGroupTemplates"] = obj["composite_pod_group_templates"] + obj.pop("composite_pod_group_templates", None) + if "disruptionMode" not in obj and "disruption_mode" in obj: + obj["disruptionMode"] = obj["disruption_mode"] + obj.pop("disruption_mode", None) + if "podGroupTemplates" not in obj and "pod_group_templates" in obj: + obj["podGroupTemplates"] = obj["pod_group_templates"] + obj.pop("pod_group_templates", None) + if "preemptionPolicy" not in obj and "preemption_policy" in obj: + obj["preemptionPolicy"] = obj["preemption_policy"] + obj.pop("preemption_policy", None) + if "priorityClassName" not in obj and "priority_class_name" in obj: + obj["priorityClassName"] = obj["priority_class_name"] + obj.pop("priority_class_name", None) + if "schedulingConstraints" not in obj and "scheduling_constraints" in obj: + obj["schedulingConstraints"] = obj["scheduling_constraints"] + obj.pop("scheduling_constraints", None) + if "schedulingPolicy" not in obj and "scheduling_policy" in obj: + obj["schedulingPolicy"] = obj["scheduling_policy"] + obj.pop("scheduling_policy", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1CompositePodGroupTemplate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1CompositePodGroupTemplate): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1CompositePodGroupTemplate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("compositePodGroupTemplates" if serialize else "composite_pod_group_templates"): _to_legacy_value(getattr(self, "composite_pod_group_templates", None), serialize), + ("disruptionMode" if serialize else "disruption_mode"): _to_legacy_value(getattr(self, "disruption_mode", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("podGroupTemplates" if serialize else "pod_group_templates"): _to_legacy_value(getattr(self, "pod_group_templates", None), serialize), + ("preemptionPolicy" if serialize else "preemption_policy"): _to_legacy_value(getattr(self, "preemption_policy", None), serialize), + ("priority" if serialize else "priority"): _to_legacy_value(getattr(self, "priority", None), serialize), + ("priorityClassName" if serialize else "priority_class_name"): _to_legacy_value(getattr(self, "priority_class_name", None), serialize), + ("schedulingConstraints" if serialize else "scheduling_constraints"): _to_legacy_value(getattr(self, "scheduling_constraints", None), serialize), + ("schedulingPolicy" if serialize else "scheduling_policy"): _to_legacy_value(getattr(self, "scheduling_policy", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in composite_pod_group_templates (list) + _items = [] + if self.composite_pod_group_templates: + for _item_composite_pod_group_templates in self.composite_pod_group_templates: + _items.append(_to_openapi_value(_item_composite_pod_group_templates) if _item_composite_pod_group_templates is not None else None) + _dict['compositePodGroupTemplates'] = _items + # override the default output from pydantic by calling `to_dict()` of disruption_mode + if self.disruption_mode: + _dict['disruptionMode'] = _to_openapi_value(self.disruption_mode) + # override the default output from pydantic by calling `to_dict()` of each item in pod_group_templates (list) + _items = [] + if self.pod_group_templates: + for _item_pod_group_templates in self.pod_group_templates: + _items.append(_to_openapi_value(_item_pod_group_templates) if _item_pod_group_templates is not None else None) + _dict['podGroupTemplates'] = _items + # override the default output from pydantic by calling `to_dict()` of scheduling_constraints + if self.scheduling_constraints: + _dict['schedulingConstraints'] = _to_openapi_value(self.scheduling_constraints) + # override the default output from pydantic by calling `to_dict()` of scheduling_policy + if self.scheduling_policy: + _dict['schedulingPolicy'] = _to_openapi_value(self.scheduling_policy) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1CompositePodGroupTemplate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "compositePodGroupTemplates": [V1beta1CompositePodGroupTemplate.from_dict(_item) for _item in obj["compositePodGroupTemplates"]] if obj.get("compositePodGroupTemplates") is not None else None, + "disruptionMode": V1beta1CompositeDisruptionMode.from_dict(obj["disruptionMode"]) if obj.get("disruptionMode") is not None else None, + "name": obj.get("name"), + "podGroupTemplates": [V1beta1PodGroupTemplate.from_dict(_item) for _item in obj["podGroupTemplates"]] if obj.get("podGroupTemplates") is not None else None, + "preemptionPolicy": obj.get("preemptionPolicy"), + "priority": obj.get("priority"), + "priorityClassName": obj.get("priorityClassName"), + "schedulingConstraints": V1beta1CompositePodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, + "schedulingPolicy": V1beta1CompositePodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None + }) + return _obj + +# TODO: Rewrite to not use raise_errors +V1beta1CompositePodGroupTemplate.model_rebuild(raise_errors=False) diff --git a/kubernetes/aio/client/models/v1beta1_counter.py b/kubernetes/aio/client/models/v1beta1_counter.py index 336bf7e538..8c84101fbb 100644 --- a/kubernetes/aio/client/models/v1beta1_counter.py +++ b/kubernetes/aio/client/models/v1beta1_counter.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_counter_set.py b/kubernetes/aio/client/models/v1beta1_counter_set.py index 940743e320..b88247cc15 100644 --- a/kubernetes/aio/client/models/v1beta1_counter_set.py +++ b/kubernetes/aio/client/models/v1beta1_counter_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_device.py b/kubernetes/aio/client/models/v1beta1_device.py index 0270b9ac18..41e70358dd 100644 --- a/kubernetes/aio/client/models/v1beta1_device.py +++ b/kubernetes/aio/client/models/v1beta1_device.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_device_allocation_configuration.py b/kubernetes/aio/client/models/v1beta1_device_allocation_configuration.py index b75735629b..05889d9642 100644 --- a/kubernetes/aio/client/models/v1beta1_device_allocation_configuration.py +++ b/kubernetes/aio/client/models/v1beta1_device_allocation_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_device_allocation_result.py b/kubernetes/aio/client/models/v1beta1_device_allocation_result.py index d128369506..6f20079318 100644 --- a/kubernetes/aio/client/models/v1beta1_device_allocation_result.py +++ b/kubernetes/aio/client/models/v1beta1_device_allocation_result.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_device_attribute.py b/kubernetes/aio/client/models/v1beta1_device_attribute.py index 02e6fd9e42..1bdd422644 100644 --- a/kubernetes/aio/client/models/v1beta1_device_attribute.py +++ b/kubernetes/aio/client/models/v1beta1_device_attribute.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_device_capacity.py b/kubernetes/aio/client/models/v1beta1_device_capacity.py index 9b2f40d9ef..7ea03de896 100644 --- a/kubernetes/aio/client/models/v1beta1_device_capacity.py +++ b/kubernetes/aio/client/models/v1beta1_device_capacity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_device_claim.py b/kubernetes/aio/client/models/v1beta1_device_claim.py index 2cf76b18b5..e44bfc0a0a 100644 --- a/kubernetes/aio/client/models/v1beta1_device_claim.py +++ b/kubernetes/aio/client/models/v1beta1_device_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_device_claim_configuration.py b/kubernetes/aio/client/models/v1beta1_device_claim_configuration.py index 01bb2c0c85..97a697a8fb 100644 --- a/kubernetes/aio/client/models/v1beta1_device_claim_configuration.py +++ b/kubernetes/aio/client/models/v1beta1_device_claim_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_device_class.py b/kubernetes/aio/client/models/v1beta1_device_class.py index 0a919f2214..3e4a8fcf75 100644 --- a/kubernetes/aio/client/models/v1beta1_device_class.py +++ b/kubernetes/aio/client/models/v1beta1_device_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,7 +108,7 @@ class V1beta1DeviceClass(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1beta1DeviceClassSpec + spec: Optional[V1beta1DeviceClassSpec] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", diff --git a/kubernetes/aio/client/models/v1beta1_device_class_configuration.py b/kubernetes/aio/client/models/v1beta1_device_class_configuration.py index 9c18d64aa7..01b72409df 100644 --- a/kubernetes/aio/client/models/v1beta1_device_class_configuration.py +++ b/kubernetes/aio/client/models/v1beta1_device_class_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_device_class_list.py b/kubernetes/aio/client/models/v1beta1_device_class_list.py index 343516c1bb..b3a840290b 100644 --- a/kubernetes/aio/client/models/v1beta1_device_class_list.py +++ b/kubernetes/aio/client/models/v1beta1_device_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_device_class_spec.py b/kubernetes/aio/client/models/v1beta1_device_class_spec.py index 3ae8169738..828b3b7866 100644 --- a/kubernetes/aio/client/models/v1beta1_device_class_spec.py +++ b/kubernetes/aio/client/models/v1beta1_device_class_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -106,7 +106,7 @@ class V1beta1DeviceClassSpec(BaseModel): and the value is json key in definition. """ # noqa: E501 config: Optional[List[V1beta1DeviceClassConfiguration]] = Field(default=None, description="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.") - extended_resource_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("extendedResourceName", "extended_resource_name"), serialization_alias="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. This is a beta field.") + extended_resource_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("extendedResourceName", "extended_resource_name"), serialization_alias="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.") selectors: Optional[List[V1beta1DeviceSelector]] = Field(default=None, description="Each selector must be satisfied by a device which is claimed via this class.") openapi_types: ClassVar[Dict[str, str]] = { "config": "List[V1beta1DeviceClassConfiguration]", diff --git a/kubernetes/aio/client/models/v1beta1_device_constraint.py b/kubernetes/aio/client/models/v1beta1_device_constraint.py index 9f4adee8f1..c5a0ca77e5 100644 --- a/kubernetes/aio/client/models/v1beta1_device_constraint.py +++ b/kubernetes/aio/client/models/v1beta1_device_constraint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_device_counter_consumption.py b/kubernetes/aio/client/models/v1beta1_device_counter_consumption.py index ae2447a85b..022ae7315a 100644 --- a/kubernetes/aio/client/models/v1beta1_device_counter_consumption.py +++ b/kubernetes/aio/client/models/v1beta1_device_counter_consumption.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, cast as _cast +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1beta1_counter import V1beta1Counter from typing import Optional, Set from typing_extensions import Self @@ -104,18 +104,21 @@ class V1beta1DeviceCounterConsumption(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 + compatibility_groups: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("compatibilityGroups", "compatibility_groups"), serialization_alias="compatibilityGroups", description="CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique.") counter_set: StrictStr = Field(validation_alias=AliasChoices("counterSet", "counter_set"), serialization_alias="counterSet", description="CounterSet is the name of the set from which the counters defined will be consumed.") counters: Dict[str, V1beta1Counter] = Field(description="Counters defines the counters that will be consumed by the device. The maximum number of counters is 32.") openapi_types: ClassVar[Dict[str, str]] = { + "compatibility_groups": "List[str]", "counter_set": "str", "counters": "Dict[str, V1beta1Counter]" } attribute_map: ClassVar[Dict[str, str]] = { + "compatibility_groups": "compatibilityGroups", "counter_set": "counterSet", "counters": "counters" } - __properties: ClassVar[List[str]] = ["counterSet", "counters"] + __properties: ClassVar[List[str]] = ["compatibilityGroups", "counterSet", "counters"] @classmethod def __preprocess_input_names( @@ -126,6 +129,9 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) + if "compatibilityGroups" not in obj and "compatibility_groups" in obj: + obj["compatibilityGroups"] = obj["compatibility_groups"] + obj.pop("compatibility_groups", None) if "counterSet" not in obj and "counter_set" in obj: obj["counterSet"] = obj["counter_set"] obj.pop("counter_set", None) @@ -178,6 +184,7 @@ def from_json(cls, json_str: str) -> Optional[Self]: def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { + ("compatibilityGroups" if serialize else "compatibility_groups"): _to_legacy_value(getattr(self, "compatibility_groups", None), serialize), ("counterSet" if serialize else "counter_set"): _to_legacy_value(getattr(self, "counter_set", None), serialize), ("counters" if serialize else "counters"): _to_legacy_value(getattr(self, "counters", None), serialize), } @@ -238,6 +245,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ + "compatibilityGroups": obj.get("compatibilityGroups"), "counterSet": obj.get("counterSet"), "counters": dict( (_k, V1beta1Counter.from_dict(_v)) diff --git a/kubernetes/aio/client/models/v1beta1_device_derived_attribute.py b/kubernetes/aio/client/models/v1beta1_device_derived_attribute.py new file mode 100644 index 0000000000..dc624e45ce --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_device_derived_attribute.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1DeviceDerivedAttribute(BaseModel): + """ + DeviceDerivedAttribute defines a derived attribute computed via CEL. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + expression: StrictStr = Field(description="Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.") + name: StrictStr = Field(description="Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint.") + openapi_types: ClassVar[Dict[str, str]] = { + "expression": "str", + "name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "expression": "expression", + "name": "name" + } + __properties: ClassVar[List[str]] = ["expression", "name"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1DeviceDerivedAttribute): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1DeviceDerivedAttribute): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1DeviceDerivedAttribute from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("expression" if serialize else "expression"): _to_legacy_value(getattr(self, "expression", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1DeviceDerivedAttribute from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "expression": obj.get("expression"), + "name": obj.get("name") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_device_request.py b/kubernetes/aio/client/models/v1beta1_device_request.py index 11df9d5553..c6f712206d 100644 --- a/kubernetes/aio/client/models/v1beta1_device_request.py +++ b/kubernetes/aio/client/models/v1beta1_device_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1beta1_capacity_requirements import V1beta1CapacityRequirements +from kubernetes.aio.client.models.v1beta1_device_derived_attribute import V1beta1DeviceDerivedAttribute from kubernetes.aio.client.models.v1beta1_device_selector import V1beta1DeviceSelector from kubernetes.aio.client.models.v1beta1_device_sub_request import V1beta1DeviceSubRequest from kubernetes.aio.client.models.v1beta1_device_toleration import V1beta1DeviceToleration @@ -111,6 +112,7 @@ class V1beta1DeviceRequest(BaseModel): allocation_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("allocationMode", "allocation_mode"), serialization_alias="allocationMode", description="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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. More modes may get added in the future. Clients must refuse to handle requests with unknown modes.") capacity: Optional[V1beta1CapacityRequirements] = None count: Optional[StrictInt] = Field(default=None, description="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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.") + derived_attributes: Optional[List[V1beta1DeviceDerivedAttribute]] = Field(default=None, validation_alias=AliasChoices("derivedAttributes", "derived_attributes"), serialization_alias="derivedAttributes", description="DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate.") device_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("deviceClassName", "device_class_name"), serialization_alias="deviceClassName", description="DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. 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.") first_available: Optional[List[V1beta1DeviceSubRequest]] = Field(default=None, validation_alias=AliasChoices("firstAvailable", "first_available"), serialization_alias="firstAvailable", description="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.") name: StrictStr = Field(description="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.") @@ -121,6 +123,7 @@ class V1beta1DeviceRequest(BaseModel): "allocation_mode": "str", "capacity": "V1beta1CapacityRequirements", "count": "int", + "derived_attributes": "List[V1beta1DeviceDerivedAttribute]", "device_class_name": "str", "first_available": "List[V1beta1DeviceSubRequest]", "name": "str", @@ -133,13 +136,14 @@ class V1beta1DeviceRequest(BaseModel): "allocation_mode": "allocationMode", "capacity": "capacity", "count": "count", + "derived_attributes": "derivedAttributes", "device_class_name": "deviceClassName", "first_available": "firstAvailable", "name": "name", "selectors": "selectors", "tolerations": "tolerations" } - __properties: ClassVar[List[str]] = ["adminAccess", "allocationMode", "capacity", "count", "deviceClassName", "firstAvailable", "name", "selectors", "tolerations"] + __properties: ClassVar[List[str]] = ["adminAccess", "allocationMode", "capacity", "count", "derivedAttributes", "deviceClassName", "firstAvailable", "name", "selectors", "tolerations"] @classmethod def __preprocess_input_names( @@ -156,6 +160,9 @@ def __preprocess_input_names( if "allocationMode" not in obj and "allocation_mode" in obj: obj["allocationMode"] = obj["allocation_mode"] obj.pop("allocation_mode", None) + if "derivedAttributes" not in obj and "derived_attributes" in obj: + obj["derivedAttributes"] = obj["derived_attributes"] + obj.pop("derived_attributes", None) if "deviceClassName" not in obj and "device_class_name" in obj: obj["deviceClassName"] = obj["device_class_name"] obj.pop("device_class_name", None) @@ -215,6 +222,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("allocationMode" if serialize else "allocation_mode"): _to_legacy_value(getattr(self, "allocation_mode", None), serialize), ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("count" if serialize else "count"): _to_legacy_value(getattr(self, "count", None), serialize), + ("derivedAttributes" if serialize else "derived_attributes"): _to_legacy_value(getattr(self, "derived_attributes", None), serialize), ("deviceClassName" if serialize else "device_class_name"): _to_legacy_value(getattr(self, "device_class_name", None), serialize), ("firstAvailable" if serialize else "first_available"): _to_legacy_value(getattr(self, "first_available", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), @@ -243,6 +251,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of capacity if self.capacity: _dict['capacity'] = _to_openapi_value(self.capacity) + # override the default output from pydantic by calling `to_dict()` of each item in derived_attributes (list) + _items = [] + if self.derived_attributes: + for _item_derived_attributes in self.derived_attributes: + _items.append(_to_openapi_value(_item_derived_attributes) if _item_derived_attributes is not None else None) + _dict['derivedAttributes'] = _items # override the default output from pydantic by calling `to_dict()` of each item in first_available (list) _items = [] if self.first_available: @@ -297,6 +311,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "allocationMode": obj.get("allocationMode"), "capacity": V1beta1CapacityRequirements.from_dict(obj["capacity"]) if obj.get("capacity") is not None else None, "count": obj.get("count"), + "derivedAttributes": [V1beta1DeviceDerivedAttribute.from_dict(_item) for _item in obj["derivedAttributes"]] if obj.get("derivedAttributes") is not None else None, "deviceClassName": obj.get("deviceClassName"), "firstAvailable": [V1beta1DeviceSubRequest.from_dict(_item) for _item in obj["firstAvailable"]] if obj.get("firstAvailable") is not None else None, "name": obj.get("name"), diff --git a/kubernetes/aio/client/models/v1beta1_device_request_allocation_result.py b/kubernetes/aio/client/models/v1beta1_device_request_allocation_result.py index 080967435d..4498376f22 100644 --- a/kubernetes/aio/client/models/v1beta1_device_request_allocation_result.py +++ b/kubernetes/aio/client/models/v1beta1_device_request_allocation_result.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -113,6 +113,7 @@ class V1beta1DeviceRequestAllocationResult(BaseModel): pool: StrictStr = Field(description="This name together with the driver name and the device name field identify which device was allocated (`//`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.") request: StrictStr = Field(description="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
/. Multiple devices may have been allocated per request.") share_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("shareID", "share_id"), serialization_alias="shareID", description="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.") + skip_node_operations: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("skipNodeOperations", "skip_node_operations"), serialization_alias="skipNodeOperations", description="SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.") tolerations: Optional[List[V1beta1DeviceToleration]] = Field(default=None, description="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.") openapi_types: ClassVar[Dict[str, str]] = { "admin_access": "bool", @@ -124,6 +125,7 @@ class V1beta1DeviceRequestAllocationResult(BaseModel): "pool": "str", "request": "str", "share_id": "str", + "skip_node_operations": "List[str]", "tolerations": "List[V1beta1DeviceToleration]" } @@ -137,9 +139,10 @@ class V1beta1DeviceRequestAllocationResult(BaseModel): "pool": "pool", "request": "request", "share_id": "shareID", + "skip_node_operations": "skipNodeOperations", "tolerations": "tolerations" } - __properties: ClassVar[List[str]] = ["adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "tolerations"] + __properties: ClassVar[List[str]] = ["adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "skipNodeOperations", "tolerations"] @classmethod def __preprocess_input_names( @@ -165,6 +168,9 @@ def __preprocess_input_names( if "shareID" not in obj and "share_id" in obj: obj["shareID"] = obj["share_id"] obj.pop("share_id", None) + if "skipNodeOperations" not in obj and "skip_node_operations" in obj: + obj["skipNodeOperations"] = obj["skip_node_operations"] + obj.pop("skip_node_operations", None) return obj model_config = ConfigDict( @@ -223,6 +229,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("pool" if serialize else "pool"): _to_legacy_value(getattr(self, "pool", None), serialize), ("request" if serialize else "request"): _to_legacy_value(getattr(self, "request", None), serialize), ("shareID" if serialize else "share_id"): _to_legacy_value(getattr(self, "share_id", None), serialize), + ("skipNodeOperations" if serialize else "skip_node_operations"): _to_legacy_value(getattr(self, "skip_node_operations", None), serialize), ("tolerations" if serialize else "tolerations"): _to_legacy_value(getattr(self, "tolerations", None), serialize), } @@ -291,6 +298,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "pool": obj.get("pool"), "request": obj.get("request"), "shareID": obj.get("shareID"), + "skipNodeOperations": obj.get("skipNodeOperations"), "tolerations": [V1beta1DeviceToleration.from_dict(_item) for _item in obj["tolerations"]] if obj.get("tolerations") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1beta1_device_selector.py b/kubernetes/aio/client/models/v1beta1_device_selector.py index ede1b8233d..ab170e3f84 100644 --- a/kubernetes/aio/client/models/v1beta1_device_selector.py +++ b/kubernetes/aio/client/models/v1beta1_device_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_device_sub_request.py b/kubernetes/aio/client/models/v1beta1_device_sub_request.py index 93edd368df..9e5f33a667 100644 --- a/kubernetes/aio/client/models/v1beta1_device_sub_request.py +++ b/kubernetes/aio/client/models/v1beta1_device_sub_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1beta1_capacity_requirements import V1beta1CapacityRequirements +from kubernetes.aio.client.models.v1beta1_device_derived_attribute import V1beta1DeviceDerivedAttribute from kubernetes.aio.client.models.v1beta1_device_selector import V1beta1DeviceSelector from kubernetes.aio.client.models.v1beta1_device_toleration import V1beta1DeviceToleration from typing import Optional, Set @@ -109,6 +110,7 @@ class V1beta1DeviceSubRequest(BaseModel): allocation_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("allocationMode", "allocation_mode"), serialization_alias="allocationMode", description="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.") capacity: Optional[V1beta1CapacityRequirements] = None count: Optional[StrictInt] = Field(default=None, description="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.") + derived_attributes: Optional[List[V1beta1DeviceDerivedAttribute]] = Field(default=None, validation_alias=AliasChoices("derivedAttributes", "derived_attributes"), serialization_alias="derivedAttributes", description="DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate.") device_class_name: StrictStr = Field(validation_alias=AliasChoices("deviceClassName", "device_class_name"), serialization_alias="deviceClassName", description="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: StrictStr = Field(description="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
/. Must be a DNS label.") selectors: Optional[List[V1beta1DeviceSelector]] = Field(default=None, description="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.") @@ -117,6 +119,7 @@ class V1beta1DeviceSubRequest(BaseModel): "allocation_mode": "str", "capacity": "V1beta1CapacityRequirements", "count": "int", + "derived_attributes": "List[V1beta1DeviceDerivedAttribute]", "device_class_name": "str", "name": "str", "selectors": "List[V1beta1DeviceSelector]", @@ -127,12 +130,13 @@ class V1beta1DeviceSubRequest(BaseModel): "allocation_mode": "allocationMode", "capacity": "capacity", "count": "count", + "derived_attributes": "derivedAttributes", "device_class_name": "deviceClassName", "name": "name", "selectors": "selectors", "tolerations": "tolerations" } - __properties: ClassVar[List[str]] = ["allocationMode", "capacity", "count", "deviceClassName", "name", "selectors", "tolerations"] + __properties: ClassVar[List[str]] = ["allocationMode", "capacity", "count", "derivedAttributes", "deviceClassName", "name", "selectors", "tolerations"] @classmethod def __preprocess_input_names( @@ -146,6 +150,9 @@ def __preprocess_input_names( if "allocationMode" not in obj and "allocation_mode" in obj: obj["allocationMode"] = obj["allocation_mode"] obj.pop("allocation_mode", None) + if "derivedAttributes" not in obj and "derived_attributes" in obj: + obj["derivedAttributes"] = obj["derived_attributes"] + obj.pop("derived_attributes", None) if "deviceClassName" not in obj and "device_class_name" in obj: obj["deviceClassName"] = obj["device_class_name"] obj.pop("device_class_name", None) @@ -201,6 +208,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("allocationMode" if serialize else "allocation_mode"): _to_legacy_value(getattr(self, "allocation_mode", None), serialize), ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("count" if serialize else "count"): _to_legacy_value(getattr(self, "count", None), serialize), + ("derivedAttributes" if serialize else "derived_attributes"): _to_legacy_value(getattr(self, "derived_attributes", None), serialize), ("deviceClassName" if serialize else "device_class_name"): _to_legacy_value(getattr(self, "device_class_name", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), ("selectors" if serialize else "selectors"): _to_legacy_value(getattr(self, "selectors", None), serialize), @@ -228,6 +236,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of capacity if self.capacity: _dict['capacity'] = _to_openapi_value(self.capacity) + # override the default output from pydantic by calling `to_dict()` of each item in derived_attributes (list) + _items = [] + if self.derived_attributes: + for _item_derived_attributes in self.derived_attributes: + _items.append(_to_openapi_value(_item_derived_attributes) if _item_derived_attributes is not None else None) + _dict['derivedAttributes'] = _items # override the default output from pydantic by calling `to_dict()` of each item in selectors (list) _items = [] if self.selectors: @@ -275,6 +289,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "allocationMode": obj.get("allocationMode"), "capacity": V1beta1CapacityRequirements.from_dict(obj["capacity"]) if obj.get("capacity") is not None else None, "count": obj.get("count"), + "derivedAttributes": [V1beta1DeviceDerivedAttribute.from_dict(_item) for _item in obj["derivedAttributes"]] if obj.get("derivedAttributes") is not None else None, "deviceClassName": obj.get("deviceClassName"), "name": obj.get("name"), "selectors": [V1beta1DeviceSelector.from_dict(_item) for _item in obj["selectors"]] if obj.get("selectors") is not None else None, diff --git a/kubernetes/aio/client/models/v1beta1_device_taint.py b/kubernetes/aio/client/models/v1beta1_device_taint.py index d2ea8cf079..6fdc0e16ec 100644 --- a/kubernetes/aio/client/models/v1beta1_device_taint.py +++ b/kubernetes/aio/client/models/v1beta1_device_taint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_device_toleration.py b/kubernetes/aio/client/models/v1beta1_device_toleration.py index 92e8e3fb54..1e7c1a5003 100644 --- a/kubernetes/aio/client/models/v1beta1_device_toleration.py +++ b/kubernetes/aio/client/models/v1beta1_device_toleration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_disruption_mode.py b/kubernetes/aio/client/models/v1beta1_disruption_mode.py new file mode 100644 index 0000000000..a396c7971a --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_disruption_mode.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1DisruptionMode(BaseModel): + """ + DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + all: Optional[Dict[str, Any]] = Field(default=None, description="all specifies that all children can only be disrupted together.") + single: Optional[Dict[str, Any]] = Field(default=None, description="single specifies that children can be disrupted independently from each other.") + openapi_types: ClassVar[Dict[str, str]] = { + "all": "object", + "single": "object" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "all": "all", + "single": "single" + } + __properties: ClassVar[List[str]] = ["all", "single"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1DisruptionMode): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1DisruptionMode): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1DisruptionMode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("all" if serialize else "all"): _to_legacy_value(getattr(self, "all", None), serialize), + ("single" if serialize else "single"): _to_legacy_value(getattr(self, "single", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1DisruptionMode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "all": obj.get("all"), + "single": obj.get("single") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_gang_scheduling_policy.py b/kubernetes/aio/client/models/v1beta1_gang_scheduling_policy.py new file mode 100644 index 0000000000..bdb153abe0 --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_gang_scheduling_policy.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1GangSchedulingPolicy(BaseModel): + """ + GangSchedulingPolicy defines the parameters for gang scheduling. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + min_count: StrictInt = Field(validation_alias=AliasChoices("minCount", "min_count"), serialization_alias="minCount", description="minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling. Note that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles.") + openapi_types: ClassVar[Dict[str, str]] = { + "min_count": "int" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "min_count": "minCount" + } + __properties: ClassVar[List[str]] = ["minCount"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "minCount" not in obj and "min_count" in obj: + obj["minCount"] = obj["min_count"] + obj.pop("min_count", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1GangSchedulingPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1GangSchedulingPolicy): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1GangSchedulingPolicy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("minCount" if serialize else "min_count"): _to_legacy_value(getattr(self, "min_count", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1GangSchedulingPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "minCount": obj.get("minCount") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_json_patch.py b/kubernetes/aio/client/models/v1beta1_json_patch.py index e71a9d78b0..bf23cd7e21 100644 --- a/kubernetes/aio/client/models/v1beta1_json_patch.py +++ b/kubernetes/aio/client/models/v1beta1_json_patch.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_lease_candidate.py b/kubernetes/aio/client/models/v1beta1_lease_candidate.py index 19795e6401..d305bbd22e 100644 --- a/kubernetes/aio/client/models/v1beta1_lease_candidate.py +++ b/kubernetes/aio/client/models/v1beta1_lease_candidate.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_lease_candidate_list.py b/kubernetes/aio/client/models/v1beta1_lease_candidate_list.py index 6d64036d4c..54e38652a4 100644 --- a/kubernetes/aio/client/models/v1beta1_lease_candidate_list.py +++ b/kubernetes/aio/client/models/v1beta1_lease_candidate_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_lease_candidate_spec.py b/kubernetes/aio/client/models/v1beta1_lease_candidate_spec.py index 1aced3570c..deff7e1e97 100644 --- a/kubernetes/aio/client/models/v1beta1_lease_candidate_spec.py +++ b/kubernetes/aio/client/models/v1beta1_lease_candidate_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -104,12 +104,12 @@ class V1beta1LeaseCandidateSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - binary_version: StrictStr = Field(validation_alias=AliasChoices("binaryVersion", "binary_version"), serialization_alias="binaryVersion", description="BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.") - emulation_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("emulationVersion", "emulation_version"), serialization_alias="emulationVersion", description="EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"") - lease_name: StrictStr = Field(validation_alias=AliasChoices("leaseName", "lease_name"), serialization_alias="leaseName", description="LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.") - ping_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("pingTime", "ping_time"), serialization_alias="pingTime", description="PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.") - renew_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("renewTime", "renew_time"), serialization_alias="renewTime", description="RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.") - strategy: StrictStr = Field(description="Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.") + binary_version: StrictStr = Field(validation_alias=AliasChoices("binaryVersion", "binary_version"), serialization_alias="binaryVersion", description="binaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.") + emulation_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("emulationVersion", "emulation_version"), serialization_alias="emulationVersion", description="emulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"") + lease_name: StrictStr = Field(validation_alias=AliasChoices("leaseName", "lease_name"), serialization_alias="leaseName", description="leaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.") + ping_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("pingTime", "ping_time"), serialization_alias="pingTime", description="pingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.") + renew_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("renewTime", "renew_time"), serialization_alias="renewTime", description="renewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.") + strategy: StrictStr = Field(description="strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.") openapi_types: ClassVar[Dict[str, str]] = { "binary_version": "str", "emulation_version": "str", diff --git a/kubernetes/aio/client/models/v1beta1_match_condition.py b/kubernetes/aio/client/models/v1beta1_match_condition.py index e0df6a1c6a..41a83a76e0 100644 --- a/kubernetes/aio/client/models/v1beta1_match_condition.py +++ b/kubernetes/aio/client/models/v1beta1_match_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_match_resources.py b/kubernetes/aio/client/models/v1beta1_match_resources.py index d79676174d..ba2c314362 100644 --- a/kubernetes/aio/client/models/v1beta1_match_resources.py +++ b/kubernetes/aio/client/models/v1beta1_match_resources.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_mutating_admission_policy.py b/kubernetes/aio/client/models/v1beta1_mutating_admission_policy.py index 634e1ffd1d..27b6b88358 100644 --- a/kubernetes/aio/client/models/v1beta1_mutating_admission_policy.py +++ b/kubernetes/aio/client/models/v1beta1_mutating_admission_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_binding.py b/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_binding.py index 0cdba87443..5f6768c6d3 100644 --- a/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_binding.py +++ b/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_binding_list.py b/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_binding_list.py index f58c504abc..2a406f18ee 100644 --- a/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_binding_list.py +++ b/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_binding_spec.py b/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_binding_spec.py index 78f6ea182d..168cfd198b 100644 --- a/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_binding_spec.py +++ b/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_binding_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_list.py b/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_list.py index 86339ba7e5..cb88c38e4e 100644 --- a/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_list.py +++ b/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_spec.py b/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_spec.py index c33866a634..cf9bea23c8 100644 --- a/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_spec.py +++ b/kubernetes/aio/client/models/v1beta1_mutating_admission_policy_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_mutation.py b/kubernetes/aio/client/models/v1beta1_mutation.py index fdc8d87a19..1dd81bfd2b 100644 --- a/kubernetes/aio/client/models/v1beta1_mutation.py +++ b/kubernetes/aio/client/models/v1beta1_mutation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_named_rule_with_operations.py b/kubernetes/aio/client/models/v1beta1_named_rule_with_operations.py index f1132ef631..57ba13d150 100644 --- a/kubernetes/aio/client/models/v1beta1_named_rule_with_operations.py +++ b/kubernetes/aio/client/models/v1beta1_named_rule_with_operations.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_network_device_data.py b/kubernetes/aio/client/models/v1beta1_network_device_data.py index 611033feb8..7e345bb780 100644 --- a/kubernetes/aio/client/models/v1beta1_network_device_data.py +++ b/kubernetes/aio/client/models/v1beta1_network_device_data.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1_node_allocatable_resource_mapping.py b/kubernetes/aio/client/models/v1beta1_node_allocatable_mapping.py similarity index 66% rename from kubernetes/aio/client/models/v1_node_allocatable_resource_mapping.py rename to kubernetes/aio/client/models/v1beta1_node_allocatable_mapping.py index 5530ccd55d..a74fe9a6c4 100644 --- a/kubernetes/aio/client/models/v1_node_allocatable_resource_mapping.py +++ b/kubernetes/aio/client/models/v1beta1_node_allocatable_mapping.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -93,9 +93,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1NodeAllocatableResourceMapping(BaseModel): +class V1beta1NodeAllocatableMapping(BaseModel): """ - NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. + NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices or the specific capacity consumed. These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. Attributes: openapi_types (dict): The key is attribute name @@ -103,18 +103,21 @@ class V1NodeAllocatableResourceMapping(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - allocation_multiplier: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("allocationMultiplier", "allocation_multiplier"), serialization_alias="allocationMultiplier", 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. 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.") - capacity_key: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("capacityKey", "capacity_key"), serialization_alias="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\".") + capacity_key: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("capacityKey", "capacity_key"), serialization_alias="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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.") + capacity_multiplier: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("capacityMultiplier", "capacity_multiplier"), serialization_alias="capacityMultiplier", description="CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16.") + device_multiplier: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("deviceMultiplier", "device_multiplier"), serialization_alias="deviceMultiplier", description="DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set.") openapi_types: ClassVar[Dict[str, str]] = { - "allocation_multiplier": "str", - "capacity_key": "str" + "capacity_key": "str", + "capacity_multiplier": "str", + "device_multiplier": "str" } attribute_map: ClassVar[Dict[str, str]] = { - "allocation_multiplier": "allocationMultiplier", - "capacity_key": "capacityKey" + "capacity_key": "capacityKey", + "capacity_multiplier": "capacityMultiplier", + "device_multiplier": "deviceMultiplier" } - __properties: ClassVar[List[str]] = ["allocationMultiplier", "capacityKey"] + __properties: ClassVar[List[str]] = ["capacityKey", "capacityMultiplier", "deviceMultiplier"] @classmethod def __preprocess_input_names( @@ -125,12 +128,15 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) - if "allocationMultiplier" not in obj and "allocation_multiplier" in obj: - obj["allocationMultiplier"] = obj["allocation_multiplier"] - obj.pop("allocation_multiplier", None) if "capacityKey" not in obj and "capacity_key" in obj: obj["capacityKey"] = obj["capacity_key"] obj.pop("capacity_key", None) + if "capacityMultiplier" not in obj and "capacity_multiplier" in obj: + obj["capacityMultiplier"] = obj["capacity_multiplier"] + obj.pop("capacity_multiplier", None) + if "deviceMultiplier" not in obj and "device_multiplier" in obj: + obj["deviceMultiplier"] = obj["device_multiplier"] + obj.pop("device_multiplier", None) return obj model_config = ConfigDict( @@ -152,14 +158,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1NodeAllocatableResourceMapping): + if not isinstance(other, V1beta1NodeAllocatableMapping): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1NodeAllocatableResourceMapping): + if not isinstance(other, V1beta1NodeAllocatableMapping): return True return not (self == other) @@ -174,14 +180,15 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1NodeAllocatableResourceMapping from a JSON string""" + """Create an instance of V1beta1NodeAllocatableMapping from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { - ("allocationMultiplier" if serialize else "allocation_multiplier"): _to_legacy_value(getattr(self, "allocation_multiplier", None), serialize), ("capacityKey" if serialize else "capacity_key"): _to_legacy_value(getattr(self, "capacity_key", None), serialize), + ("capacityMultiplier" if serialize else "capacity_multiplier"): _to_legacy_value(getattr(self, "capacity_multiplier", None), serialize), + ("deviceMultiplier" if serialize else "device_multiplier"): _to_legacy_value(getattr(self, "device_multiplier", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -218,7 +225,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1NodeAllocatableResourceMapping from a dict""" + """Create an instance of V1beta1NodeAllocatableMapping from a dict""" if obj is None: return None @@ -234,7 +241,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ - "allocationMultiplier": obj.get("allocationMultiplier"), - "capacityKey": obj.get("capacityKey") + "capacityKey": obj.get("capacityKey"), + "capacityMultiplier": obj.get("capacityMultiplier"), + "deviceMultiplier": obj.get("deviceMultiplier") }) return _obj diff --git a/kubernetes/aio/client/models/v1beta1_node_allocatable_overhead.py b/kubernetes/aio/client/models/v1beta1_node_allocatable_overhead.py new file mode 100644 index 0000000000..80fe64b5f1 --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_node_allocatable_overhead.py @@ -0,0 +1,240 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1NodeAllocatableOverhead(BaseModel): + """ + NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + per_container: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("perContainer", "per_container"), serialization_alias="perContainer", description="PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once.") + per_pod: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("perPod", "per_pod"), serialization_alias="perPod", description="PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim.") + openapi_types: ClassVar[Dict[str, str]] = { + "per_container": "str", + "per_pod": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "per_container": "perContainer", + "per_pod": "perPod" + } + __properties: ClassVar[List[str]] = ["perContainer", "perPod"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "perContainer" not in obj and "per_container" in obj: + obj["perContainer"] = obj["per_container"] + obj.pop("per_container", None) + if "perPod" not in obj and "per_pod" in obj: + obj["perPod"] = obj["per_pod"] + obj.pop("per_pod", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1NodeAllocatableOverhead): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1NodeAllocatableOverhead): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1NodeAllocatableOverhead from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("perContainer" if serialize else "per_container"): _to_legacy_value(getattr(self, "per_container", None), serialize), + ("perPod" if serialize else "per_pod"): _to_legacy_value(getattr(self, "per_pod", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1NodeAllocatableOverhead from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "perContainer": obj.get("perContainer"), + "perPod": obj.get("perPod") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_node_allocatable_resource.py b/kubernetes/aio/client/models/v1beta1_node_allocatable_resource.py new file mode 100644 index 0000000000..6577c15a00 --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_node_allocatable_resource.py @@ -0,0 +1,222 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.aio.client.models.v1beta1_node_allocatable_mapping import V1beta1NodeAllocatableMapping +from kubernetes.aio.client.models.v1beta1_node_allocatable_overhead import V1beta1NodeAllocatableOverhead +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1NodeAllocatableResource(BaseModel): + """ + NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + mapping: Optional[V1beta1NodeAllocatableMapping] = None + overhead: Optional[V1beta1NodeAllocatableOverhead] = None + openapi_types: ClassVar[Dict[str, str]] = { + "mapping": "V1beta1NodeAllocatableMapping", + "overhead": "V1beta1NodeAllocatableOverhead" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "mapping": "mapping", + "overhead": "overhead" + } + __properties: ClassVar[List[str]] = ["mapping", "overhead"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1NodeAllocatableResource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1NodeAllocatableResource): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1NodeAllocatableResource from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("mapping" if serialize else "mapping"): _to_legacy_value(getattr(self, "mapping", None), serialize), + ("overhead" if serialize else "overhead"): _to_legacy_value(getattr(self, "overhead", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of mapping + if self.mapping: + _dict['mapping'] = _to_openapi_value(self.mapping) + # override the default output from pydantic by calling `to_dict()` of overhead + if self.overhead: + _dict['overhead'] = _to_openapi_value(self.overhead) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1NodeAllocatableResource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "mapping": V1beta1NodeAllocatableMapping.from_dict(obj["mapping"]) if obj.get("mapping") is not None else None, + "overhead": V1beta1NodeAllocatableOverhead.from_dict(obj["overhead"]) if obj.get("overhead") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_opaque_device_configuration.py b/kubernetes/aio/client/models/v1beta1_opaque_device_configuration.py index b4ba7a5a3f..b2aaf6d194 100644 --- a/kubernetes/aio/client/models/v1beta1_opaque_device_configuration.py +++ b/kubernetes/aio/client/models/v1beta1_opaque_device_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_param_kind.py b/kubernetes/aio/client/models/v1beta1_param_kind.py index cb788d100e..f69cf31720 100644 --- a/kubernetes/aio/client/models/v1beta1_param_kind.py +++ b/kubernetes/aio/client/models/v1beta1_param_kind.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_param_ref.py b/kubernetes/aio/client/models/v1beta1_param_ref.py index 7bda42ddcb..70fe282be8 100644 --- a/kubernetes/aio/client/models/v1beta1_param_ref.py +++ b/kubernetes/aio/client/models/v1beta1_param_ref.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_pod_certificate_request.py b/kubernetes/aio/client/models/v1beta1_pod_certificate_request.py index 1b725cee3d..ae355aadc9 100644 --- a/kubernetes/aio/client/models/v1beta1_pod_certificate_request.py +++ b/kubernetes/aio/client/models/v1beta1_pod_certificate_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_pod_certificate_request_list.py b/kubernetes/aio/client/models/v1beta1_pod_certificate_request_list.py index 1778767943..438f7840b5 100644 --- a/kubernetes/aio/client/models/v1beta1_pod_certificate_request_list.py +++ b/kubernetes/aio/client/models/v1beta1_pod_certificate_request_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_pod_certificate_request_spec.py b/kubernetes/aio/client/models/v1beta1_pod_certificate_request_spec.py index 5033ca40a5..369ba16099 100644 --- a/kubernetes/aio/client/models/v1beta1_pod_certificate_request_spec.py +++ b/kubernetes/aio/client/models/v1beta1_pod_certificate_request_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_pod_certificate_request_status.py b/kubernetes/aio/client/models/v1beta1_pod_certificate_request_status.py index cca8a4ca3f..b64256c5f1 100644 --- a/kubernetes/aio/client/models/v1beta1_pod_certificate_request_status.py +++ b/kubernetes/aio/client/models/v1beta1_pod_certificate_request_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_pod_group.py b/kubernetes/aio/client/models/v1beta1_pod_group.py new file mode 100644 index 0000000000..e67f53f25d --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_pod_group.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_object_meta import V1ObjectMeta +from kubernetes.aio.client.models.v1beta1_pod_group_spec import V1beta1PodGroupSpec +from kubernetes.aio.client.models.v1beta1_pod_group_status import V1beta1PodGroupStatus +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1PodGroup(BaseModel): + """ + 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. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ObjectMeta] = None + spec: V1beta1PodGroupSpec + status: Optional[V1beta1PodGroupStatus] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "kind": "str", + "metadata": "V1ObjectMeta", + "spec": "V1beta1PodGroupSpec", + "status": "V1beta1PodGroupStatus" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "kind": "kind", + "metadata": "metadata", + "spec": "spec", + "status": "status" + } + __properties: ClassVar[List[str]] = ["apiVersion", "kind", "metadata", "spec", "status"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PodGroup): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PodGroup): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1PodGroup from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + ("spec" if serialize else "spec"): _to_legacy_value(getattr(self, "spec", None), serialize), + ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + # override the default output from pydantic by calling `to_dict()` of spec + if self.spec: + _dict['spec'] = _to_openapi_value(self.spec) + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = _to_openapi_value(self.status) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1PodGroup from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "kind": obj.get("kind"), + "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, + "spec": V1beta1PodGroupSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, + "status": V1beta1PodGroupStatus.from_dict(obj["status"]) if obj.get("status") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_pod_group_list.py b/kubernetes/aio/client/models/v1beta1_pod_group_list.py new file mode 100644 index 0000000000..88b774c73b --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_pod_group_list.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_list_meta import V1ListMeta +from kubernetes.aio.client.models.v1beta1_pod_group import V1beta1PodGroup +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1PodGroupList(BaseModel): + """ + PodGroupList contains a list of PodGroup resources. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + items: List[V1beta1PodGroup] = Field(description="Items is the list of PodGroups.") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ListMeta] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "items": "List[V1beta1PodGroup]", + "kind": "str", + "metadata": "V1ListMeta" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "items": "items", + "kind": "kind", + "metadata": "metadata" + } + __properties: ClassVar[List[str]] = ["apiVersion", "items", "kind", "metadata"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PodGroupList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PodGroupList): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1PodGroupList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + _items.append(_to_openapi_value(_item_items) if _item_items is not None else None) + _dict['items'] = _items + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1PodGroupList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "items": [V1beta1PodGroup.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "kind": obj.get("kind"), + "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_pod_group_resource_claim.py b/kubernetes/aio/client/models/v1beta1_pod_group_resource_claim.py new file mode 100644 index 0000000000..81ad4597e5 --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_pod_group_resource_claim.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1PodGroupResourceClaim(BaseModel): + """ + 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. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + name: StrictStr = Field(description="name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.") + resource_claim_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimName", "resource_claim_name"), serialization_alias="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.") + resource_claim_template_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimTemplateName", "resource_claim_template_name"), serialization_alias="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.") + openapi_types: ClassVar[Dict[str, str]] = { + "name": "str", + "resource_claim_name": "str", + "resource_claim_template_name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "name": "name", + "resource_claim_name": "resourceClaimName", + "resource_claim_template_name": "resourceClaimTemplateName" + } + __properties: ClassVar[List[str]] = ["name", "resourceClaimName", "resourceClaimTemplateName"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "resourceClaimName" not in obj and "resource_claim_name" in obj: + obj["resourceClaimName"] = obj["resource_claim_name"] + obj.pop("resource_claim_name", None) + if "resourceClaimTemplateName" not in obj and "resource_claim_template_name" in obj: + obj["resourceClaimTemplateName"] = obj["resource_claim_template_name"] + obj.pop("resource_claim_template_name", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PodGroupResourceClaim): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PodGroupResourceClaim): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1PodGroupResourceClaim from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("resourceClaimName" if serialize else "resource_claim_name"): _to_legacy_value(getattr(self, "resource_claim_name", None), serialize), + ("resourceClaimTemplateName" if serialize else "resource_claim_template_name"): _to_legacy_value(getattr(self, "resource_claim_template_name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1PodGroupResourceClaim from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "resourceClaimName": obj.get("resourceClaimName"), + "resourceClaimTemplateName": obj.get("resourceClaimTemplateName") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_pod_group_resource_claim_status.py b/kubernetes/aio/client/models/v1beta1_pod_group_resource_claim_status.py new file mode 100644 index 0000000000..42ef3bc9be --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_pod_group_resource_claim_status.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1PodGroupResourceClaimStatus(BaseModel): + """ + PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + name: StrictStr = Field(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.") + resource_claim_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimName", "resource_claim_name"), serialization_alias="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.") + openapi_types: ClassVar[Dict[str, str]] = { + "name": "str", + "resource_claim_name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "name": "name", + "resource_claim_name": "resourceClaimName" + } + __properties: ClassVar[List[str]] = ["name", "resourceClaimName"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "resourceClaimName" not in obj and "resource_claim_name" in obj: + obj["resourceClaimName"] = obj["resource_claim_name"] + obj.pop("resource_claim_name", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PodGroupResourceClaimStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PodGroupResourceClaimStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1PodGroupResourceClaimStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("resourceClaimName" if serialize else "resource_claim_name"): _to_legacy_value(getattr(self, "resource_claim_name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1PodGroupResourceClaimStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "resourceClaimName": obj.get("resourceClaimName") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_pod_group_scheduling_constraints.py b/kubernetes/aio/client/models/v1beta1_pod_group_scheduling_constraints.py new file mode 100644 index 0000000000..4338298d36 --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_pod_group_scheduling_constraints.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.aio.client.models.v1beta1_topology_constraint import V1beta1TopologyConstraint +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1PodGroupSchedulingConstraints(BaseModel): + """ + PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + topology: Optional[List[V1beta1TopologyConstraint]] = Field(default=None, 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.") + openapi_types: ClassVar[Dict[str, str]] = { + "topology": "List[V1beta1TopologyConstraint]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "topology": "topology" + } + __properties: ClassVar[List[str]] = ["topology"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PodGroupSchedulingConstraints): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PodGroupSchedulingConstraints): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1PodGroupSchedulingConstraints from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("topology" if serialize else "topology"): _to_legacy_value(getattr(self, "topology", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in topology (list) + _items = [] + if self.topology: + for _item_topology in self.topology: + _items.append(_to_openapi_value(_item_topology) if _item_topology is not None else None) + _dict['topology'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1PodGroupSchedulingConstraints from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "topology": [V1beta1TopologyConstraint.from_dict(_item) for _item in obj["topology"]] if obj.get("topology") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_pod_group_scheduling_policy.py b/kubernetes/aio/client/models/v1beta1_pod_group_scheduling_policy.py new file mode 100644 index 0000000000..52168bc351 --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_pod_group_scheduling_policy.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.aio.client.models.v1beta1_gang_scheduling_policy import V1beta1GangSchedulingPolicy +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1PodGroupSchedulingPolicy(BaseModel): + """ + PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + basic: Optional[Dict[str, Any]] = Field(default=None, description="basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward.") + gang: Optional[V1beta1GangSchedulingPolicy] = None + openapi_types: ClassVar[Dict[str, str]] = { + "basic": "object", + "gang": "V1beta1GangSchedulingPolicy" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "basic": "basic", + "gang": "gang" + } + __properties: ClassVar[List[str]] = ["basic", "gang"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PodGroupSchedulingPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PodGroupSchedulingPolicy): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1PodGroupSchedulingPolicy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("basic" if serialize else "basic"): _to_legacy_value(getattr(self, "basic", None), serialize), + ("gang" if serialize else "gang"): _to_legacy_value(getattr(self, "gang", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of gang + if self.gang: + _dict['gang'] = _to_openapi_value(self.gang) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1PodGroupSchedulingPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "basic": obj.get("basic"), + "gang": V1beta1GangSchedulingPolicy.from_dict(obj["gang"]) if obj.get("gang") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_pod_group_spec.py b/kubernetes/aio/client/models/v1beta1_pod_group_spec.py new file mode 100644 index 0000000000..1f6042922b --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_pod_group_spec.py @@ -0,0 +1,316 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1beta1_disruption_mode import V1beta1DisruptionMode +from kubernetes.aio.client.models.v1beta1_pod_group_resource_claim import V1beta1PodGroupResourceClaim +from kubernetes.aio.client.models.v1beta1_pod_group_scheduling_constraints import V1beta1PodGroupSchedulingConstraints +from kubernetes.aio.client.models.v1beta1_pod_group_scheduling_policy import V1beta1PodGroupSchedulingPolicy +from kubernetes.aio.client.models.v1beta1_workload_reference import V1beta1WorkloadReference +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1PodGroupSpec(BaseModel): + """ + PodGroupSpec defines the desired state of a PodGroup. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + disruption_mode: Optional[V1beta1DisruptionMode] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="disruptionMode") + parent_composite_pod_group_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("parentCompositePodGroupName", "parent_composite_pod_group_name"), serialization_alias="parentCompositePodGroupName", description="parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable.") + preemption_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preemptionPolicy", "preemption_policy"), serialization_alias="preemptionPolicy", description="preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + priority: Optional[StrictInt] = Field(default=None, 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.") + priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="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.") + resource_claims: Optional[List[V1beta1PodGroupResourceClaim]] = Field(default=None, validation_alias=AliasChoices("resourceClaims", "resource_claims"), serialization_alias="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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable.") + scheduling_constraints: Optional[V1beta1PodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") + scheduling_policy: V1beta1PodGroupSchedulingPolicy = Field(validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") + workload_ref: Optional[V1beta1WorkloadReference] = Field(default=None, validation_alias=AliasChoices("workloadRef", "workload_ref"), serialization_alias="workloadRef") + openapi_types: ClassVar[Dict[str, str]] = { + "disruption_mode": "V1beta1DisruptionMode", + "parent_composite_pod_group_name": "str", + "preemption_policy": "str", + "priority": "int", + "priority_class_name": "str", + "resource_claims": "List[V1beta1PodGroupResourceClaim]", + "scheduling_constraints": "V1beta1PodGroupSchedulingConstraints", + "scheduling_policy": "V1beta1PodGroupSchedulingPolicy", + "workload_ref": "V1beta1WorkloadReference" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "disruption_mode": "disruptionMode", + "parent_composite_pod_group_name": "parentCompositePodGroupName", + "preemption_policy": "preemptionPolicy", + "priority": "priority", + "priority_class_name": "priorityClassName", + "resource_claims": "resourceClaims", + "scheduling_constraints": "schedulingConstraints", + "scheduling_policy": "schedulingPolicy", + "workload_ref": "workloadRef" + } + __properties: ClassVar[List[str]] = ["disruptionMode", "parentCompositePodGroupName", "preemptionPolicy", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy", "workloadRef"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "disruptionMode" not in obj and "disruption_mode" in obj: + obj["disruptionMode"] = obj["disruption_mode"] + obj.pop("disruption_mode", None) + if "parentCompositePodGroupName" not in obj and "parent_composite_pod_group_name" in obj: + obj["parentCompositePodGroupName"] = obj["parent_composite_pod_group_name"] + obj.pop("parent_composite_pod_group_name", None) + if "preemptionPolicy" not in obj and "preemption_policy" in obj: + obj["preemptionPolicy"] = obj["preemption_policy"] + obj.pop("preemption_policy", None) + if "priorityClassName" not in obj and "priority_class_name" in obj: + obj["priorityClassName"] = obj["priority_class_name"] + obj.pop("priority_class_name", None) + if "resourceClaims" not in obj and "resource_claims" in obj: + obj["resourceClaims"] = obj["resource_claims"] + obj.pop("resource_claims", None) + if "schedulingConstraints" not in obj and "scheduling_constraints" in obj: + obj["schedulingConstraints"] = obj["scheduling_constraints"] + obj.pop("scheduling_constraints", None) + if "schedulingPolicy" not in obj and "scheduling_policy" in obj: + obj["schedulingPolicy"] = obj["scheduling_policy"] + obj.pop("scheduling_policy", None) + if "workloadRef" not in obj and "workload_ref" in obj: + obj["workloadRef"] = obj["workload_ref"] + obj.pop("workload_ref", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PodGroupSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PodGroupSpec): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1PodGroupSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("disruptionMode" if serialize else "disruption_mode"): _to_legacy_value(getattr(self, "disruption_mode", None), serialize), + ("parentCompositePodGroupName" if serialize else "parent_composite_pod_group_name"): _to_legacy_value(getattr(self, "parent_composite_pod_group_name", None), serialize), + ("preemptionPolicy" if serialize else "preemption_policy"): _to_legacy_value(getattr(self, "preemption_policy", None), serialize), + ("priority" if serialize else "priority"): _to_legacy_value(getattr(self, "priority", None), serialize), + ("priorityClassName" if serialize else "priority_class_name"): _to_legacy_value(getattr(self, "priority_class_name", None), serialize), + ("resourceClaims" if serialize else "resource_claims"): _to_legacy_value(getattr(self, "resource_claims", None), serialize), + ("schedulingConstraints" if serialize else "scheduling_constraints"): _to_legacy_value(getattr(self, "scheduling_constraints", None), serialize), + ("schedulingPolicy" if serialize else "scheduling_policy"): _to_legacy_value(getattr(self, "scheduling_policy", None), serialize), + ("workloadRef" if serialize else "workload_ref"): _to_legacy_value(getattr(self, "workload_ref", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of disruption_mode + if self.disruption_mode: + _dict['disruptionMode'] = _to_openapi_value(self.disruption_mode) + # override the default output from pydantic by calling `to_dict()` of each item in resource_claims (list) + _items = [] + if self.resource_claims: + for _item_resource_claims in self.resource_claims: + _items.append(_to_openapi_value(_item_resource_claims) if _item_resource_claims is not None else None) + _dict['resourceClaims'] = _items + # override the default output from pydantic by calling `to_dict()` of scheduling_constraints + if self.scheduling_constraints: + _dict['schedulingConstraints'] = _to_openapi_value(self.scheduling_constraints) + # override the default output from pydantic by calling `to_dict()` of scheduling_policy + if self.scheduling_policy: + _dict['schedulingPolicy'] = _to_openapi_value(self.scheduling_policy) + # override the default output from pydantic by calling `to_dict()` of workload_ref + if self.workload_ref: + _dict['workloadRef'] = _to_openapi_value(self.workload_ref) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1PodGroupSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "disruptionMode": V1beta1DisruptionMode.from_dict(obj["disruptionMode"]) if obj.get("disruptionMode") is not None else None, + "parentCompositePodGroupName": obj.get("parentCompositePodGroupName"), + "preemptionPolicy": obj.get("preemptionPolicy"), + "priority": obj.get("priority"), + "priorityClassName": obj.get("priorityClassName"), + "resourceClaims": [V1beta1PodGroupResourceClaim.from_dict(_item) for _item in obj["resourceClaims"]] if obj.get("resourceClaims") is not None else None, + "schedulingConstraints": V1beta1PodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, + "schedulingPolicy": V1beta1PodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None, + "workloadRef": V1beta1WorkloadReference.from_dict(obj["workloadRef"]) if obj.get("workloadRef") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_pod_group_status.py b/kubernetes/aio/client/models/v1beta1_pod_group_status.py new file mode 100644 index 0000000000..9feb393263 --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_pod_group_status.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_condition import V1Condition +from kubernetes.aio.client.models.v1beta1_pod_group_resource_claim_status import V1beta1PodGroupResourceClaimStatus +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1PodGroupStatus(BaseModel): + """ + PodGroupStatus represents information about the status of a pod group. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + conditions: Optional[List[V1Condition]] = Field(default=None, description="conditions represent the latest observations of the PodGroup's state. Known condition types: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupInitiallyScheduled 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.") + resource_claim_statuses: Optional[List[V1beta1PodGroupResourceClaimStatus]] = Field(default=None, validation_alias=AliasChoices("resourceClaimStatuses", "resource_claim_statuses"), serialization_alias="resourceClaimStatuses", description="resourceClaimStatuses is status of resource claims.") + openapi_types: ClassVar[Dict[str, str]] = { + "conditions": "List[V1Condition]", + "resource_claim_statuses": "List[V1beta1PodGroupResourceClaimStatus]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "conditions": "conditions", + "resource_claim_statuses": "resourceClaimStatuses" + } + __properties: ClassVar[List[str]] = ["conditions", "resourceClaimStatuses"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "resourceClaimStatuses" not in obj and "resource_claim_statuses" in obj: + obj["resourceClaimStatuses"] = obj["resource_claim_statuses"] + obj.pop("resource_claim_statuses", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PodGroupStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PodGroupStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1PodGroupStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("conditions" if serialize else "conditions"): _to_legacy_value(getattr(self, "conditions", None), serialize), + ("resourceClaimStatuses" if serialize else "resource_claim_statuses"): _to_legacy_value(getattr(self, "resource_claim_statuses", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in conditions (list) + _items = [] + if self.conditions: + for _item_conditions in self.conditions: + _items.append(_to_openapi_value(_item_conditions) if _item_conditions is not None else None) + _dict['conditions'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in resource_claim_statuses (list) + _items = [] + if self.resource_claim_statuses: + for _item_resource_claim_statuses in self.resource_claim_statuses: + _items.append(_to_openapi_value(_item_resource_claim_statuses) if _item_resource_claim_statuses is not None else None) + _dict['resourceClaimStatuses'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1PodGroupStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "conditions": [V1Condition.from_dict(_item) for _item in obj["conditions"]] if obj.get("conditions") is not None else None, + "resourceClaimStatuses": [V1beta1PodGroupResourceClaimStatus.from_dict(_item) for _item in obj["resourceClaimStatuses"]] if obj.get("resourceClaimStatuses") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_pod_group_template.py b/kubernetes/aio/client/models/v1beta1_pod_group_template.py new file mode 100644 index 0000000000..fd31d942d8 --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_pod_group_template.py @@ -0,0 +1,301 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1beta1_disruption_mode import V1beta1DisruptionMode +from kubernetes.aio.client.models.v1beta1_pod_group_resource_claim import V1beta1PodGroupResourceClaim +from kubernetes.aio.client.models.v1beta1_pod_group_scheduling_constraints import V1beta1PodGroupSchedulingConstraints +from kubernetes.aio.client.models.v1beta1_pod_group_scheduling_policy import V1beta1PodGroupSchedulingPolicy +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1PodGroupTemplate(BaseModel): + """ + PodGroupTemplate represents a template for a set of pods with a scheduling policy. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + disruption_mode: Optional[V1beta1DisruptionMode] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="disruptionMode") + name: StrictStr = Field(description="name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.") + preemption_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preemptionPolicy", "preemption_policy"), serialization_alias="preemptionPolicy", description="preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + priority: Optional[StrictInt] = Field(default=None, 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. The higher the value, the higher the priority. This field is immutable.") + priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="priorityClassName", description="priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable.") + resource_claims: Optional[List[V1beta1PodGroupResourceClaim]] = Field(default=None, validation_alias=AliasChoices("resourceClaims", "resource_claims"), serialization_alias="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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable.") + scheduling_constraints: Optional[V1beta1PodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") + scheduling_policy: V1beta1PodGroupSchedulingPolicy = Field(validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") + openapi_types: ClassVar[Dict[str, str]] = { + "disruption_mode": "V1beta1DisruptionMode", + "name": "str", + "preemption_policy": "str", + "priority": "int", + "priority_class_name": "str", + "resource_claims": "List[V1beta1PodGroupResourceClaim]", + "scheduling_constraints": "V1beta1PodGroupSchedulingConstraints", + "scheduling_policy": "V1beta1PodGroupSchedulingPolicy" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "disruption_mode": "disruptionMode", + "name": "name", + "preemption_policy": "preemptionPolicy", + "priority": "priority", + "priority_class_name": "priorityClassName", + "resource_claims": "resourceClaims", + "scheduling_constraints": "schedulingConstraints", + "scheduling_policy": "schedulingPolicy" + } + __properties: ClassVar[List[str]] = ["disruptionMode", "name", "preemptionPolicy", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "disruptionMode" not in obj and "disruption_mode" in obj: + obj["disruptionMode"] = obj["disruption_mode"] + obj.pop("disruption_mode", None) + if "preemptionPolicy" not in obj and "preemption_policy" in obj: + obj["preemptionPolicy"] = obj["preemption_policy"] + obj.pop("preemption_policy", None) + if "priorityClassName" not in obj and "priority_class_name" in obj: + obj["priorityClassName"] = obj["priority_class_name"] + obj.pop("priority_class_name", None) + if "resourceClaims" not in obj and "resource_claims" in obj: + obj["resourceClaims"] = obj["resource_claims"] + obj.pop("resource_claims", None) + if "schedulingConstraints" not in obj and "scheduling_constraints" in obj: + obj["schedulingConstraints"] = obj["scheduling_constraints"] + obj.pop("scheduling_constraints", None) + if "schedulingPolicy" not in obj and "scheduling_policy" in obj: + obj["schedulingPolicy"] = obj["scheduling_policy"] + obj.pop("scheduling_policy", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PodGroupTemplate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PodGroupTemplate): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1PodGroupTemplate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("disruptionMode" if serialize else "disruption_mode"): _to_legacy_value(getattr(self, "disruption_mode", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("preemptionPolicy" if serialize else "preemption_policy"): _to_legacy_value(getattr(self, "preemption_policy", None), serialize), + ("priority" if serialize else "priority"): _to_legacy_value(getattr(self, "priority", None), serialize), + ("priorityClassName" if serialize else "priority_class_name"): _to_legacy_value(getattr(self, "priority_class_name", None), serialize), + ("resourceClaims" if serialize else "resource_claims"): _to_legacy_value(getattr(self, "resource_claims", None), serialize), + ("schedulingConstraints" if serialize else "scheduling_constraints"): _to_legacy_value(getattr(self, "scheduling_constraints", None), serialize), + ("schedulingPolicy" if serialize else "scheduling_policy"): _to_legacy_value(getattr(self, "scheduling_policy", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of disruption_mode + if self.disruption_mode: + _dict['disruptionMode'] = _to_openapi_value(self.disruption_mode) + # override the default output from pydantic by calling `to_dict()` of each item in resource_claims (list) + _items = [] + if self.resource_claims: + for _item_resource_claims in self.resource_claims: + _items.append(_to_openapi_value(_item_resource_claims) if _item_resource_claims is not None else None) + _dict['resourceClaims'] = _items + # override the default output from pydantic by calling `to_dict()` of scheduling_constraints + if self.scheduling_constraints: + _dict['schedulingConstraints'] = _to_openapi_value(self.scheduling_constraints) + # override the default output from pydantic by calling `to_dict()` of scheduling_policy + if self.scheduling_policy: + _dict['schedulingPolicy'] = _to_openapi_value(self.scheduling_policy) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1PodGroupTemplate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "disruptionMode": V1beta1DisruptionMode.from_dict(obj["disruptionMode"]) if obj.get("disruptionMode") is not None else None, + "name": obj.get("name"), + "preemptionPolicy": obj.get("preemptionPolicy"), + "priority": obj.get("priority"), + "priorityClassName": obj.get("priorityClassName"), + "resourceClaims": [V1beta1PodGroupResourceClaim.from_dict(_item) for _item in obj["resourceClaims"]] if obj.get("resourceClaims") is not None else None, + "schedulingConstraints": V1beta1PodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, + "schedulingPolicy": V1beta1PodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_resource_claim.py b/kubernetes/aio/client/models/v1beta1_resource_claim.py index 07ed159d0e..d17759f584 100644 --- a/kubernetes/aio/client/models/v1beta1_resource_claim.py +++ b/kubernetes/aio/client/models/v1beta1_resource_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,7 +109,7 @@ class V1beta1ResourceClaim(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1beta1ResourceClaimSpec + spec: Optional[V1beta1ResourceClaimSpec] = None status: Optional[V1beta1ResourceClaimStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", diff --git a/kubernetes/aio/client/models/v1beta1_resource_claim_consumer_reference.py b/kubernetes/aio/client/models/v1beta1_resource_claim_consumer_reference.py index 937e97de06..032257051d 100644 --- a/kubernetes/aio/client/models/v1beta1_resource_claim_consumer_reference.py +++ b/kubernetes/aio/client/models/v1beta1_resource_claim_consumer_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_resource_claim_list.py b/kubernetes/aio/client/models/v1beta1_resource_claim_list.py index 5efd05d1c7..e5216ea966 100644 --- a/kubernetes/aio/client/models/v1beta1_resource_claim_list.py +++ b/kubernetes/aio/client/models/v1beta1_resource_claim_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_resource_claim_spec.py b/kubernetes/aio/client/models/v1beta1_resource_claim_spec.py index 83555fb1bc..311cd55287 100644 --- a/kubernetes/aio/client/models/v1beta1_resource_claim_spec.py +++ b/kubernetes/aio/client/models/v1beta1_resource_claim_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_resource_claim_status.py b/kubernetes/aio/client/models/v1beta1_resource_claim_status.py index b70d148871..bedfdd56b7 100644 --- a/kubernetes/aio/client/models/v1beta1_resource_claim_status.py +++ b/kubernetes/aio/client/models/v1beta1_resource_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_resource_claim_template.py b/kubernetes/aio/client/models/v1beta1_resource_claim_template.py index 46812927ef..4dc2d618a5 100644 --- a/kubernetes/aio/client/models/v1beta1_resource_claim_template.py +++ b/kubernetes/aio/client/models/v1beta1_resource_claim_template.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,7 +108,7 @@ class V1beta1ResourceClaimTemplate(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1beta1ResourceClaimTemplateSpec + spec: Optional[V1beta1ResourceClaimTemplateSpec] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", diff --git a/kubernetes/aio/client/models/v1beta1_resource_claim_template_list.py b/kubernetes/aio/client/models/v1beta1_resource_claim_template_list.py index 7c43b026ae..ceeb27351a 100644 --- a/kubernetes/aio/client/models/v1beta1_resource_claim_template_list.py +++ b/kubernetes/aio/client/models/v1beta1_resource_claim_template_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_resource_claim_template_spec.py b/kubernetes/aio/client/models/v1beta1_resource_claim_template_spec.py index 79accffbed..921490bfbd 100644 --- a/kubernetes/aio/client/models/v1beta1_resource_claim_template_spec.py +++ b/kubernetes/aio/client/models/v1beta1_resource_claim_template_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,7 +105,7 @@ class V1beta1ResourceClaimTemplateSpec(BaseModel): and the value is json key in definition. """ # noqa: E501 metadata: Optional[V1ObjectMeta] = None - spec: V1beta1ResourceClaimSpec + spec: Optional[V1beta1ResourceClaimSpec] = None openapi_types: ClassVar[Dict[str, str]] = { "metadata": "V1ObjectMeta", "spec": "V1beta1ResourceClaimSpec" diff --git a/kubernetes/aio/client/models/v1beta1_resource_pool.py b/kubernetes/aio/client/models/v1beta1_resource_pool.py index dc01e6df26..b0bb16ef38 100644 --- a/kubernetes/aio/client/models/v1beta1_resource_pool.py +++ b/kubernetes/aio/client/models/v1beta1_resource_pool.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -104,7 +104,7 @@ class V1beta1ResourcePool(BaseModel): and the value is json key in definition. """ # noqa: E501 generation: StrictInt = Field(description="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.") - name: StrictStr = Field(description="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.") + name: StrictStr = Field(description="Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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.") resource_slice_count: StrictInt = Field(validation_alias=AliasChoices("resourceSliceCount", "resource_slice_count"), serialization_alias="resourceSliceCount", description="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.") openapi_types: ClassVar[Dict[str, str]] = { "generation": "int", diff --git a/kubernetes/aio/client/models/v1beta1_resource_slice.py b/kubernetes/aio/client/models/v1beta1_resource_slice.py index c044fb5df7..5e5ac0868f 100644 --- a/kubernetes/aio/client/models/v1beta1_resource_slice.py +++ b/kubernetes/aio/client/models/v1beta1_resource_slice.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_resource_slice_list.py b/kubernetes/aio/client/models/v1beta1_resource_slice_list.py index 3b7a4fb543..87b3d7f2f1 100644 --- a/kubernetes/aio/client/models/v1beta1_resource_slice_list.py +++ b/kubernetes/aio/client/models/v1beta1_resource_slice_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_resource_slice_spec.py b/kubernetes/aio/client/models/v1beta1_resource_slice_spec.py index bd209db5c4..089413b292 100644 --- a/kubernetes/aio/client/models/v1beta1_resource_slice_spec.py +++ b/kubernetes/aio/client/models/v1beta1_resource_slice_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -112,18 +112,22 @@ class V1beta1ResourceSliceSpec(BaseModel): driver: StrictStr = Field(description="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.") node_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("nodeName", "node_name"), serialization_alias="nodeName", description="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.") node_selector: Optional[V1NodeSelector] = Field(default=None, validation_alias=AliasChoices("nodeSelector", "node_selector"), serialization_alias="nodeSelector") + partition_type_attribute: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("partitionTypeAttribute", "partition_type_attribute"), serialization_alias="partitionTypeAttribute", description="PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.") per_device_node_selection: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("perDeviceNodeSelection", "per_device_node_selection"), serialization_alias="perDeviceNodeSelection", description="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.") pool: V1beta1ResourcePool shared_counters: Optional[List[V1beta1CounterSet]] = Field(default=None, validation_alias=AliasChoices("sharedCounters", "shared_counters"), serialization_alias="sharedCounters", description="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.") + skip_node_operations: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("skipNodeOperations", "skip_node_operations"), serialization_alias="skipNodeOperations", description="SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values.") openapi_types: ClassVar[Dict[str, str]] = { "all_nodes": "bool", "devices": "List[V1beta1Device]", "driver": "str", "node_name": "str", "node_selector": "V1NodeSelector", + "partition_type_attribute": "str", "per_device_node_selection": "bool", "pool": "V1beta1ResourcePool", - "shared_counters": "List[V1beta1CounterSet]" + "shared_counters": "List[V1beta1CounterSet]", + "skip_node_operations": "List[str]" } attribute_map: ClassVar[Dict[str, str]] = { @@ -132,11 +136,13 @@ class V1beta1ResourceSliceSpec(BaseModel): "driver": "driver", "node_name": "nodeName", "node_selector": "nodeSelector", + "partition_type_attribute": "partitionTypeAttribute", "per_device_node_selection": "perDeviceNodeSelection", "pool": "pool", - "shared_counters": "sharedCounters" + "shared_counters": "sharedCounters", + "skip_node_operations": "skipNodeOperations" } - __properties: ClassVar[List[str]] = ["allNodes", "devices", "driver", "nodeName", "nodeSelector", "perDeviceNodeSelection", "pool", "sharedCounters"] + __properties: ClassVar[List[str]] = ["allNodes", "devices", "driver", "nodeName", "nodeSelector", "partitionTypeAttribute", "perDeviceNodeSelection", "pool", "sharedCounters", "skipNodeOperations"] @classmethod def __preprocess_input_names( @@ -156,12 +162,18 @@ def __preprocess_input_names( if "nodeSelector" not in obj and "node_selector" in obj: obj["nodeSelector"] = obj["node_selector"] obj.pop("node_selector", None) + if "partitionTypeAttribute" not in obj and "partition_type_attribute" in obj: + obj["partitionTypeAttribute"] = obj["partition_type_attribute"] + obj.pop("partition_type_attribute", None) if "perDeviceNodeSelection" not in obj and "per_device_node_selection" in obj: obj["perDeviceNodeSelection"] = obj["per_device_node_selection"] obj.pop("per_device_node_selection", None) if "sharedCounters" not in obj and "shared_counters" in obj: obj["sharedCounters"] = obj["shared_counters"] obj.pop("shared_counters", None) + if "skipNodeOperations" not in obj and "skip_node_operations" in obj: + obj["skipNodeOperations"] = obj["skip_node_operations"] + obj.pop("skip_node_operations", None) return obj model_config = ConfigDict( @@ -216,9 +228,11 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("driver" if serialize else "driver"): _to_legacy_value(getattr(self, "driver", None), serialize), ("nodeName" if serialize else "node_name"): _to_legacy_value(getattr(self, "node_name", None), serialize), ("nodeSelector" if serialize else "node_selector"): _to_legacy_value(getattr(self, "node_selector", None), serialize), + ("partitionTypeAttribute" if serialize else "partition_type_attribute"): _to_legacy_value(getattr(self, "partition_type_attribute", None), serialize), ("perDeviceNodeSelection" if serialize else "per_device_node_selection"): _to_legacy_value(getattr(self, "per_device_node_selection", None), serialize), ("pool" if serialize else "pool"): _to_legacy_value(getattr(self, "pool", None), serialize), ("sharedCounters" if serialize else "shared_counters"): _to_legacy_value(getattr(self, "shared_counters", None), serialize), + ("skipNodeOperations" if serialize else "skip_node_operations"): _to_legacy_value(getattr(self, "skip_node_operations", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -294,8 +308,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "driver": obj.get("driver"), "nodeName": obj.get("nodeName"), "nodeSelector": V1NodeSelector.from_dict(obj["nodeSelector"]) if obj.get("nodeSelector") is not None else None, + "partitionTypeAttribute": obj.get("partitionTypeAttribute"), "perDeviceNodeSelection": obj.get("perDeviceNodeSelection"), "pool": V1beta1ResourcePool.from_dict(obj["pool"]) if obj.get("pool") is not None else None, - "sharedCounters": [V1beta1CounterSet.from_dict(_item) for _item in obj["sharedCounters"]] if obj.get("sharedCounters") is not None else None + "sharedCounters": [V1beta1CounterSet.from_dict(_item) for _item in obj["sharedCounters"]] if obj.get("sharedCounters") is not None else None, + "skipNodeOperations": obj.get("skipNodeOperations") }) return _obj diff --git a/kubernetes/aio/client/models/v1beta1_storage_version_migration.py b/kubernetes/aio/client/models/v1beta1_storage_version_migration.py index 78efa0774d..1a6d36256e 100644 --- a/kubernetes/aio/client/models/v1beta1_storage_version_migration.py +++ b/kubernetes/aio/client/models/v1beta1_storage_version_migration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_storage_version_migration_list.py b/kubernetes/aio/client/models/v1beta1_storage_version_migration_list.py index 84125f0954..ca86a0bd39 100644 --- a/kubernetes/aio/client/models/v1beta1_storage_version_migration_list.py +++ b/kubernetes/aio/client/models/v1beta1_storage_version_migration_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_storage_version_migration_spec.py b/kubernetes/aio/client/models/v1beta1_storage_version_migration_spec.py index d9141c6f4d..0574ed332e 100644 --- a/kubernetes/aio/client/models/v1beta1_storage_version_migration_spec.py +++ b/kubernetes/aio/client/models/v1beta1_storage_version_migration_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_storage_version_migration_status.py b/kubernetes/aio/client/models/v1beta1_storage_version_migration_status.py index a0be8258f8..1dc5c9bbdb 100644 --- a/kubernetes/aio/client/models/v1beta1_storage_version_migration_status.py +++ b/kubernetes/aio/client/models/v1beta1_storage_version_migration_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_service_cidr_spec.py b/kubernetes/aio/client/models/v1beta1_topology_constraint.py similarity index 84% rename from kubernetes/aio/client/models/v1beta1_service_cidr_spec.py rename to kubernetes/aio/client/models/v1beta1_topology_constraint.py index 689fb2ca6b..485d583df7 100644 --- a/kubernetes/aio/client/models/v1beta1_service_cidr_spec.py +++ b/kubernetes/aio/client/models/v1beta1_topology_constraint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -92,9 +92,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1beta1ServiceCIDRSpec(BaseModel): +class V1beta1TopologyConstraint(BaseModel): """ - ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. + TopologyConstraint defines a topology constraint for a PodGroup. Attributes: openapi_types (dict): The key is attribute name @@ -102,15 +102,15 @@ class V1beta1ServiceCIDRSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - cidrs: Optional[List[StrictStr]] = Field(default=None, description="CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.") + key: StrictStr = Field(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\"") openapi_types: ClassVar[Dict[str, str]] = { - "cidrs": "List[str]" + "key": "str" } attribute_map: ClassVar[Dict[str, str]] = { - "cidrs": "cidrs" + "key": "key" } - __properties: ClassVar[List[str]] = ["cidrs"] + __properties: ClassVar[List[str]] = ["key"] model_config = ConfigDict( validate_by_name=True, @@ -131,14 +131,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1beta1ServiceCIDRSpec): + if not isinstance(other, V1beta1TopologyConstraint): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1ServiceCIDRSpec): + if not isinstance(other, V1beta1TopologyConstraint): return True return not (self == other) @@ -153,13 +153,13 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1ServiceCIDRSpec from a JSON string""" + """Create an instance of V1beta1TopologyConstraint from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { - ("cidrs" if serialize else "cidrs"): _to_legacy_value(getattr(self, "cidrs", None), serialize), + ("key" if serialize else "key"): _to_legacy_value(getattr(self, "key", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -196,7 +196,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1ServiceCIDRSpec from a dict""" + """Create an instance of V1beta1TopologyConstraint from a dict""" if obj is None: return None @@ -204,6 +204,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "cidrs": obj.get("cidrs") + "key": obj.get("key") }) return _obj diff --git a/kubernetes/aio/client/models/v1beta1_typed_local_object_reference.py b/kubernetes/aio/client/models/v1beta1_typed_local_object_reference.py new file mode 100644 index 0000000000..3dbc8a3c30 --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_typed_local_object_reference.py @@ -0,0 +1,242 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1TypedLocalObjectReference(BaseModel): + """ + TypedLocalObjectReference allows to reference typed object inside the same namespace. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_group: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiGroup", "api_group"), serialization_alias="apiGroup", description="apiGroup is the group for the resource being referenced. If apiGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting apiGroup is required. It must be a DNS subdomain.") + kind: StrictStr = Field(description="kind is the type of resource being referenced. It must be a path segment name.") + name: StrictStr = Field(description="name is the name of resource being referenced. It must be a path segment name.") + openapi_types: ClassVar[Dict[str, str]] = { + "api_group": "str", + "kind": "str", + "name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_group": "apiGroup", + "kind": "kind", + "name": "name" + } + __properties: ClassVar[List[str]] = ["apiGroup", "kind", "name"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiGroup" not in obj and "api_group" in obj: + obj["apiGroup"] = obj["api_group"] + obj.pop("api_group", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1TypedLocalObjectReference): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1TypedLocalObjectReference): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1TypedLocalObjectReference from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiGroup" if serialize else "api_group"): _to_legacy_value(getattr(self, "api_group", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1TypedLocalObjectReference from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiGroup": obj.get("apiGroup"), + "kind": obj.get("kind"), + "name": obj.get("name") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta1_variable.py b/kubernetes/aio/client/models/v1beta1_variable.py index ee877c2a65..8032748b70 100644 --- a/kubernetes/aio/client/models/v1beta1_variable.py +++ b/kubernetes/aio/client/models/v1beta1_variable.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta1_volume_attributes_class.py b/kubernetes/aio/client/models/v1beta1_volume_attributes_class.py deleted file mode 100644 index 1e3f079705..0000000000 --- a/kubernetes/aio/client/models/v1beta1_volume_attributes_class.py +++ /dev/null @@ -1,259 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: release-1.36 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from collections.abc import Mapping as _Mapping -from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, cast as _cast -from kubernetes.aio.client.models.v1_object_meta import V1ObjectMeta -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - - -_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" - - -def _get_openapi_to_dict(value: Any) -> Any: - # Reciprocal function references preserve inherited generated methods - # without reserving model member names. Checking both directions also - # rejects overrides whose decorators copy function attributes. - to_dict = getattr(value, "to_dict", None) - type_to_dict = getattr(type(value), "to_dict", None) - if ( - not callable(to_dict) - or getattr(to_dict, "__func__", None) is not type_to_dict - ): - return None - - openapi_to_dict = getattr( - type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None - ) - if ( - not callable(openapi_to_dict) - or getattr( - openapi_to_dict, - _OPENAPI_GENERATOR_TO_DICT, - None, - ) is not type_to_dict - ): - return None - return openapi_to_dict - - -def _to_legacy_item(value: Any, serialize: bool) -> Any: - to_dict = getattr(value, "to_dict", None) - if _get_openapi_to_dict(value) is not None and callable(to_dict): - return to_dict(serialize=serialize) - if callable(to_dict): - return to_dict() - return value - - -def _to_legacy_value(value: Any, serialize: bool) -> Any: - # python-legacy converted only immediate list elements or dictionary values: - # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 - if isinstance(value, list): - return [_to_legacy_item(item, serialize) for item in value] - if isinstance(value, dict): - return { - key: _to_legacy_item(item, serialize) - for key, item in value.items() - } - return _to_legacy_item(value, serialize) - - -def _to_openapi_value(value: Any) -> Any: - if isinstance(value, list): - return [_to_openapi_value(item) for item in value] - if isinstance(value, dict): - return {key: _to_openapi_value(item) for key, item in value.items()} - - to_openapi_dict = _get_openapi_to_dict(value) - if to_openapi_dict is not None: - return to_openapi_dict(value) - - to_dict = getattr(value, "to_dict", None) - if callable(to_dict): - return to_dict() - return value - - -class V1beta1VolumeAttributesClass(BaseModel): - """ - 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. - - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ # noqa: E501 - api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - driver_name: StrictStr = Field(validation_alias=AliasChoices("driverName", "driver_name"), serialization_alias="driverName", description="Name of the CSI driver This field is immutable.") - kind: Optional[StrictStr] = Field(default=None, 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") - metadata: Optional[V1ObjectMeta] = None - parameters: Optional[Dict[str, StrictStr]] = Field(default=None, description="parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.") - openapi_types: ClassVar[Dict[str, str]] = { - "api_version": "str", - "driver_name": "str", - "kind": "str", - "metadata": "V1ObjectMeta", - "parameters": "Dict[str, str]" - } - - attribute_map: ClassVar[Dict[str, str]] = { - "api_version": "apiVersion", - "driver_name": "driverName", - "kind": "kind", - "metadata": "metadata", - "parameters": "parameters" - } - __properties: ClassVar[List[str]] = ["apiVersion", "driverName", "kind", "metadata", "parameters"] - - @classmethod - def __preprocess_input_names( - cls, - obj: Any, - remove_hidden_storage_names: bool = True, - ) -> Any: - if not isinstance(obj, _Mapping): - return obj - obj = dict(obj) - if "apiVersion" not in obj and "api_version" in obj: - obj["apiVersion"] = obj["api_version"] - obj.pop("api_version", None) - if "driverName" not in obj and "driver_name" in obj: - obj["driverName"] = obj["driver_name"] - obj.pop("driver_name", None) - return obj - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - extra="forbid", - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self) -> str: - """For print and pprint""" - return self.to_str() - - def __eq__(self, other: object) -> bool: - """Returns true if both objects are equal""" - if not isinstance(other, V1beta1VolumeAttributesClass): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other: object) -> bool: - """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1VolumeAttributesClass): - return True - - return not (self == other) - - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - to_openapi_dict = _get_openapi_to_dict(self) - if to_openapi_dict is not None: - return json.dumps(to_jsonable_python(to_openapi_dict(self))) - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1VolumeAttributesClass from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self, serialize: bool = False) -> Dict[str, Any]: - """Return all declared model fields using public or wire names.""" - return { - ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), - ("driverName" if serialize else "driver_name"): _to_legacy_value(getattr(self, "driver_name", None), serialize), - ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), - ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), - ("parameters" if serialize else "parameters"): _to_legacy_value(getattr(self, "parameters", None), serialize), - } - - def __openapi_generator_modern_projection(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of metadata - if self.metadata: - _dict['metadata'] = _to_openapi_value(self.metadata) - return _dict - - setattr( - to_dict, - _OPENAPI_GENERATOR_TO_DICT, - __openapi_generator_modern_projection, - ) - setattr( - __openapi_generator_modern_projection, - _OPENAPI_GENERATOR_TO_DICT, - to_dict, - ) - del __openapi_generator_modern_projection - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1VolumeAttributesClass from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - obj = _cast( - Dict[str, Any], - cls.__preprocess_input_names( - obj, - remove_hidden_storage_names=True, - ), - ) - - _obj = cls.model_validate({ - "apiVersion": obj.get("apiVersion"), - "driverName": obj.get("driverName"), - "kind": obj.get("kind"), - "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, - "parameters": obj.get("parameters") - }) - return _obj diff --git a/kubernetes/aio/client/models/v1beta1_volume_attributes_class_list.py b/kubernetes/aio/client/models/v1beta1_volume_attributes_class_list.py deleted file mode 100644 index 237dcbe7bc..0000000000 --- a/kubernetes/aio/client/models/v1beta1_volume_attributes_class_list.py +++ /dev/null @@ -1,258 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: release-1.36 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from collections.abc import Mapping as _Mapping -from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, cast as _cast -from kubernetes.aio.client.models.v1_list_meta import V1ListMeta -from kubernetes.aio.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - - -_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" - - -def _get_openapi_to_dict(value: Any) -> Any: - # Reciprocal function references preserve inherited generated methods - # without reserving model member names. Checking both directions also - # rejects overrides whose decorators copy function attributes. - to_dict = getattr(value, "to_dict", None) - type_to_dict = getattr(type(value), "to_dict", None) - if ( - not callable(to_dict) - or getattr(to_dict, "__func__", None) is not type_to_dict - ): - return None - - openapi_to_dict = getattr( - type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None - ) - if ( - not callable(openapi_to_dict) - or getattr( - openapi_to_dict, - _OPENAPI_GENERATOR_TO_DICT, - None, - ) is not type_to_dict - ): - return None - return openapi_to_dict - - -def _to_legacy_item(value: Any, serialize: bool) -> Any: - to_dict = getattr(value, "to_dict", None) - if _get_openapi_to_dict(value) is not None and callable(to_dict): - return to_dict(serialize=serialize) - if callable(to_dict): - return to_dict() - return value - - -def _to_legacy_value(value: Any, serialize: bool) -> Any: - # python-legacy converted only immediate list elements or dictionary values: - # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 - if isinstance(value, list): - return [_to_legacy_item(item, serialize) for item in value] - if isinstance(value, dict): - return { - key: _to_legacy_item(item, serialize) - for key, item in value.items() - } - return _to_legacy_item(value, serialize) - - -def _to_openapi_value(value: Any) -> Any: - if isinstance(value, list): - return [_to_openapi_value(item) for item in value] - if isinstance(value, dict): - return {key: _to_openapi_value(item) for key, item in value.items()} - - to_openapi_dict = _get_openapi_to_dict(value) - if to_openapi_dict is not None: - return to_openapi_dict(value) - - to_dict = getattr(value, "to_dict", None) - if callable(to_dict): - return to_dict() - return value - - -class V1beta1VolumeAttributesClassList(BaseModel): - """ - VolumeAttributesClassList is a collection of VolumeAttributesClass objects. - - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ # noqa: E501 - api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - items: List[V1beta1VolumeAttributesClass] = Field(description="items is the list of VolumeAttributesClass objects.") - kind: Optional[StrictStr] = Field(default=None, 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") - metadata: Optional[V1ListMeta] = None - openapi_types: ClassVar[Dict[str, str]] = { - "api_version": "str", - "items": "List[V1beta1VolumeAttributesClass]", - "kind": "str", - "metadata": "V1ListMeta" - } - - attribute_map: ClassVar[Dict[str, str]] = { - "api_version": "apiVersion", - "items": "items", - "kind": "kind", - "metadata": "metadata" - } - __properties: ClassVar[List[str]] = ["apiVersion", "items", "kind", "metadata"] - - @classmethod - def __preprocess_input_names( - cls, - obj: Any, - remove_hidden_storage_names: bool = True, - ) -> Any: - if not isinstance(obj, _Mapping): - return obj - obj = dict(obj) - if "apiVersion" not in obj and "api_version" in obj: - obj["apiVersion"] = obj["api_version"] - obj.pop("api_version", None) - return obj - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - extra="forbid", - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self) -> str: - """For print and pprint""" - return self.to_str() - - def __eq__(self, other: object) -> bool: - """Returns true if both objects are equal""" - if not isinstance(other, V1beta1VolumeAttributesClassList): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other: object) -> bool: - """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1VolumeAttributesClassList): - return True - - return not (self == other) - - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - to_openapi_dict = _get_openapi_to_dict(self) - if to_openapi_dict is not None: - return json.dumps(to_jsonable_python(to_openapi_dict(self))) - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1VolumeAttributesClassList from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self, serialize: bool = False) -> Dict[str, Any]: - """Return all declared model fields using public or wire names.""" - return { - ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), - ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), - ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), - ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), - } - - def __openapi_generator_modern_projection(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in items (list) - _items = [] - if self.items: - for _item_items in self.items: - _items.append(_to_openapi_value(_item_items) if _item_items is not None else None) - _dict['items'] = _items - # override the default output from pydantic by calling `to_dict()` of metadata - if self.metadata: - _dict['metadata'] = _to_openapi_value(self.metadata) - return _dict - - setattr( - to_dict, - _OPENAPI_GENERATOR_TO_DICT, - __openapi_generator_modern_projection, - ) - setattr( - __openapi_generator_modern_projection, - _OPENAPI_GENERATOR_TO_DICT, - to_dict, - ) - del __openapi_generator_modern_projection - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1VolumeAttributesClassList from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - obj = _cast( - Dict[str, Any], - cls.__preprocess_input_names( - obj, - remove_hidden_storage_names=True, - ), - ) - - _obj = cls.model_validate({ - "apiVersion": obj.get("apiVersion"), - "items": [V1beta1VolumeAttributesClass.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, - "kind": obj.get("kind"), - "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None - }) - return _obj diff --git a/kubernetes/aio/client/models/v1beta1_ip_address.py b/kubernetes/aio/client/models/v1beta1_workload.py similarity index 88% rename from kubernetes/aio/client/models/v1beta1_ip_address.py rename to kubernetes/aio/client/models/v1beta1_workload.py index a280a49672..7974f2ff60 100644 --- a/kubernetes/aio/client/models/v1beta1_ip_address.py +++ b/kubernetes/aio/client/models/v1beta1_workload.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,7 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1_object_meta import V1ObjectMeta -from kubernetes.aio.client.models.v1beta1_ip_address_spec import V1beta1IPAddressSpec +from kubernetes.aio.client.models.v1beta1_workload_spec import V1beta1WorkloadSpec from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,9 +95,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1beta1IPAddress(BaseModel): +class V1beta1Workload(BaseModel): """ - 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 + 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. Attributes: openapi_types (dict): The key is attribute name @@ -108,12 +108,12 @@ class V1beta1IPAddress(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1beta1IPAddressSpec + spec: V1beta1WorkloadSpec openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", "metadata": "V1ObjectMeta", - "spec": "V1beta1IPAddressSpec" + "spec": "V1beta1WorkloadSpec" } attribute_map: ClassVar[Dict[str, str]] = { @@ -157,14 +157,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1beta1IPAddress): + if not isinstance(other, V1beta1Workload): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1IPAddress): + if not isinstance(other, V1beta1Workload): return True return not (self == other) @@ -179,7 +179,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1IPAddress from a JSON string""" + """Create an instance of V1beta1Workload from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -231,7 +231,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1IPAddress from a dict""" + """Create an instance of V1beta1Workload from a dict""" if obj is None: return None @@ -250,6 +250,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "apiVersion": obj.get("apiVersion"), "kind": obj.get("kind"), "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, - "spec": V1beta1IPAddressSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None + "spec": V1beta1WorkloadSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1beta1_workload_list.py b/kubernetes/aio/client/models/v1beta1_workload_list.py new file mode 100644 index 0000000000..dc59622c27 --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_workload_list.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1_list_meta import V1ListMeta +from kubernetes.aio.client.models.v1beta1_workload import V1beta1Workload +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1WorkloadList(BaseModel): + """ + WorkloadList contains a list of Workload resources. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + items: List[V1beta1Workload] = Field(description="items is the list of Workloads.") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ListMeta] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "items": "List[V1beta1Workload]", + "kind": "str", + "metadata": "V1ListMeta" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "items": "items", + "kind": "kind", + "metadata": "metadata" + } + __properties: ClassVar[List[str]] = ["apiVersion", "items", "kind", "metadata"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1WorkloadList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1WorkloadList): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1WorkloadList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + _items.append(_to_openapi_value(_item_items) if _item_items is not None else None) + _dict['items'] = _items + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1WorkloadList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "items": [V1beta1Workload.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "kind": obj.get("kind"), + "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1alpha2_workload_pod_group_template_reference.py b/kubernetes/aio/client/models/v1beta1_workload_reference.py similarity index 82% rename from kubernetes/client/models/v1alpha2_workload_pod_group_template_reference.py rename to kubernetes/aio/client/models/v1beta1_workload_reference.py index eb5efc95fb..0533003e8b 100644 --- a/kubernetes/client/models/v1alpha2_workload_pod_group_template_reference.py +++ b/kubernetes/aio/client/models/v1beta1_workload_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -93,9 +93,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2WorkloadPodGroupTemplateReference(BaseModel): +class V1beta1WorkloadReference(BaseModel): """ - WorkloadPodGroupTemplateReference references the PodGroupTemplate within the Workload object. + WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup. Attributes: openapi_types (dict): The key is attribute name @@ -103,18 +103,18 @@ class V1alpha2WorkloadPodGroupTemplateReference(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - pod_group_template_name: StrictStr = Field(validation_alias=AliasChoices("podGroupTemplateName", "pod_group_template_name"), serialization_alias="podGroupTemplateName", description="PodGroupTemplateName defines the PodGroupTemplate name within the Workload object.") - workload_name: StrictStr = Field(validation_alias=AliasChoices("workloadName", "workload_name"), serialization_alias="workloadName", description="WorkloadName defines the name of the Workload object.") + template_name: StrictStr = Field(validation_alias=AliasChoices("templateName", "template_name"), serialization_alias="templateName", description="templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required.") + workload_name: StrictStr = Field(validation_alias=AliasChoices("workloadName", "workload_name"), serialization_alias="workloadName", description="workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required.") openapi_types: ClassVar[Dict[str, str]] = { - "pod_group_template_name": "str", + "template_name": "str", "workload_name": "str" } attribute_map: ClassVar[Dict[str, str]] = { - "pod_group_template_name": "podGroupTemplateName", + "template_name": "templateName", "workload_name": "workloadName" } - __properties: ClassVar[List[str]] = ["podGroupTemplateName", "workloadName"] + __properties: ClassVar[List[str]] = ["templateName", "workloadName"] @classmethod def __preprocess_input_names( @@ -125,9 +125,9 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) - if "podGroupTemplateName" not in obj and "pod_group_template_name" in obj: - obj["podGroupTemplateName"] = obj["pod_group_template_name"] - obj.pop("pod_group_template_name", None) + if "templateName" not in obj and "template_name" in obj: + obj["templateName"] = obj["template_name"] + obj.pop("template_name", None) if "workloadName" not in obj and "workload_name" in obj: obj["workloadName"] = obj["workload_name"] obj.pop("workload_name", None) @@ -152,14 +152,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2WorkloadPodGroupTemplateReference): + if not isinstance(other, V1beta1WorkloadReference): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2WorkloadPodGroupTemplateReference): + if not isinstance(other, V1beta1WorkloadReference): return True return not (self == other) @@ -174,13 +174,13 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2WorkloadPodGroupTemplateReference from a JSON string""" + """Create an instance of V1beta1WorkloadReference from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { - ("podGroupTemplateName" if serialize else "pod_group_template_name"): _to_legacy_value(getattr(self, "pod_group_template_name", None), serialize), + ("templateName" if serialize else "template_name"): _to_legacy_value(getattr(self, "template_name", None), serialize), ("workloadName" if serialize else "workload_name"): _to_legacy_value(getattr(self, "workload_name", None), serialize), } @@ -218,7 +218,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2WorkloadPodGroupTemplateReference from a dict""" + """Create an instance of V1beta1WorkloadReference from a dict""" if obj is None: return None @@ -234,7 +234,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ - "podGroupTemplateName": obj.get("podGroupTemplateName"), + "templateName": obj.get("templateName"), "workloadName": obj.get("workloadName") }) return _obj diff --git a/kubernetes/aio/client/models/v1beta1_workload_spec.py b/kubernetes/aio/client/models/v1beta1_workload_spec.py new file mode 100644 index 0000000000..486a7fd31a --- /dev/null +++ b/kubernetes/aio/client/models/v1beta1_workload_spec.py @@ -0,0 +1,266 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.aio.client.models.v1beta1_composite_pod_group_template import V1beta1CompositePodGroupTemplate +from kubernetes.aio.client.models.v1beta1_pod_group_template import V1beta1PodGroupTemplate +from kubernetes.aio.client.models.v1beta1_typed_local_object_reference import V1beta1TypedLocalObjectReference +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1WorkloadSpec(BaseModel): + """ + WorkloadSpec defines the desired state of a Workload. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + composite_pod_group_templates: Optional[List[V1beta1CompositePodGroupTemplate]] = Field(default=None, validation_alias=AliasChoices("compositePodGroupTemplates", "composite_pod_group_templates"), serialization_alias="compositePodGroupTemplates", description="compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. This field is used only when the CompositePodGroup feature gate is enabled.") + controller_ref: Optional[V1beta1TypedLocalObjectReference] = Field(default=None, validation_alias=AliasChoices("controllerRef", "controller_ref"), serialization_alias="controllerRef") + pod_group_templates: Optional[List[V1beta1PodGroupTemplate]] = Field(default=None, validation_alias=AliasChoices("podGroupTemplates", "pod_group_templates"), serialization_alias="podGroupTemplates", description="podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.") + openapi_types: ClassVar[Dict[str, str]] = { + "composite_pod_group_templates": "List[V1beta1CompositePodGroupTemplate]", + "controller_ref": "V1beta1TypedLocalObjectReference", + "pod_group_templates": "List[V1beta1PodGroupTemplate]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "composite_pod_group_templates": "compositePodGroupTemplates", + "controller_ref": "controllerRef", + "pod_group_templates": "podGroupTemplates" + } + __properties: ClassVar[List[str]] = ["compositePodGroupTemplates", "controllerRef", "podGroupTemplates"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "compositePodGroupTemplates" not in obj and "composite_pod_group_templates" in obj: + obj["compositePodGroupTemplates"] = obj["composite_pod_group_templates"] + obj.pop("composite_pod_group_templates", None) + if "controllerRef" not in obj and "controller_ref" in obj: + obj["controllerRef"] = obj["controller_ref"] + obj.pop("controller_ref", None) + if "podGroupTemplates" not in obj and "pod_group_templates" in obj: + obj["podGroupTemplates"] = obj["pod_group_templates"] + obj.pop("pod_group_templates", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1WorkloadSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1WorkloadSpec): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1WorkloadSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("compositePodGroupTemplates" if serialize else "composite_pod_group_templates"): _to_legacy_value(getattr(self, "composite_pod_group_templates", None), serialize), + ("controllerRef" if serialize else "controller_ref"): _to_legacy_value(getattr(self, "controller_ref", None), serialize), + ("podGroupTemplates" if serialize else "pod_group_templates"): _to_legacy_value(getattr(self, "pod_group_templates", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in composite_pod_group_templates (list) + _items = [] + if self.composite_pod_group_templates: + for _item_composite_pod_group_templates in self.composite_pod_group_templates: + _items.append(_to_openapi_value(_item_composite_pod_group_templates) if _item_composite_pod_group_templates is not None else None) + _dict['compositePodGroupTemplates'] = _items + # override the default output from pydantic by calling `to_dict()` of controller_ref + if self.controller_ref: + _dict['controllerRef'] = _to_openapi_value(self.controller_ref) + # override the default output from pydantic by calling `to_dict()` of each item in pod_group_templates (list) + _items = [] + if self.pod_group_templates: + for _item_pod_group_templates in self.pod_group_templates: + _items.append(_to_openapi_value(_item_pod_group_templates) if _item_pod_group_templates is not None else None) + _dict['podGroupTemplates'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1WorkloadSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "compositePodGroupTemplates": [V1beta1CompositePodGroupTemplate.from_dict(_item) for _item in obj["compositePodGroupTemplates"]] if obj.get("compositePodGroupTemplates") is not None else None, + "controllerRef": V1beta1TypedLocalObjectReference.from_dict(obj["controllerRef"]) if obj.get("controllerRef") is not None else None, + "podGroupTemplates": [V1beta1PodGroupTemplate.from_dict(_item) for _item in obj["podGroupTemplates"]] if obj.get("podGroupTemplates") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta2_allocated_device_status.py b/kubernetes/aio/client/models/v1beta2_allocated_device_status.py index eeeea251a9..b3d9731e53 100644 --- a/kubernetes/aio/client/models/v1beta2_allocated_device_status.py +++ b/kubernetes/aio/client/models/v1beta2_allocated_device_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_allocation_result.py b/kubernetes/aio/client/models/v1beta2_allocation_result.py index 38b53b279f..9ced4b063c 100644 --- a/kubernetes/aio/client/models/v1beta2_allocation_result.py +++ b/kubernetes/aio/client/models/v1beta2_allocation_result.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_capacity_request_policy.py b/kubernetes/aio/client/models/v1beta2_capacity_request_policy.py index 052e9ce61b..0175208ce0 100644 --- a/kubernetes/aio/client/models/v1beta2_capacity_request_policy.py +++ b/kubernetes/aio/client/models/v1beta2_capacity_request_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_capacity_request_policy_range.py b/kubernetes/aio/client/models/v1beta2_capacity_request_policy_range.py index b2dc00a1a3..cd0991acb2 100644 --- a/kubernetes/aio/client/models/v1beta2_capacity_request_policy_range.py +++ b/kubernetes/aio/client/models/v1beta2_capacity_request_policy_range.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -94,7 +94,7 @@ def _to_openapi_value(value: Any) -> Any: class V1beta2CapacityRequestPolicyRange(BaseModel): """ - 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. + CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - 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. Attributes: openapi_types (dict): The key is attribute name diff --git a/kubernetes/aio/client/models/v1beta2_capacity_requirements.py b/kubernetes/aio/client/models/v1beta2_capacity_requirements.py index 2e9de63da8..f022787f19 100644 --- a/kubernetes/aio/client/models/v1beta2_capacity_requirements.py +++ b/kubernetes/aio/client/models/v1beta2_capacity_requirements.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_cel_device_selector.py b/kubernetes/aio/client/models/v1beta2_cel_device_selector.py index 106a796e86..68c3e4b754 100644 --- a/kubernetes/aio/client/models/v1beta2_cel_device_selector.py +++ b/kubernetes/aio/client/models/v1beta2_cel_device_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -102,7 +102,7 @@ class V1beta2CELDeviceSelector(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - expression: StrictStr = Field(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. 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.") + expression: StrictStr = Field(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. 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.") openapi_types: ClassVar[Dict[str, str]] = { "expression": "str" } diff --git a/kubernetes/aio/client/models/v1beta2_counter.py b/kubernetes/aio/client/models/v1beta2_counter.py index 01010b94ab..acb85de86f 100644 --- a/kubernetes/aio/client/models/v1beta2_counter.py +++ b/kubernetes/aio/client/models/v1beta2_counter.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_counter_set.py b/kubernetes/aio/client/models/v1beta2_counter_set.py index 1971b0e45c..2f9e300c35 100644 --- a/kubernetes/aio/client/models/v1beta2_counter_set.py +++ b/kubernetes/aio/client/models/v1beta2_counter_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_device.py b/kubernetes/aio/client/models/v1beta2_device.py index e88326bf6b..9349382495 100644 --- a/kubernetes/aio/client/models/v1beta2_device.py +++ b/kubernetes/aio/client/models/v1beta2_device.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -25,7 +25,7 @@ from kubernetes.aio.client.models.v1beta2_device_capacity import V1beta2DeviceCapacity from kubernetes.aio.client.models.v1beta2_device_counter_consumption import V1beta2DeviceCounterConsumption from kubernetes.aio.client.models.v1beta2_device_taint import V1beta2DeviceTaint -from kubernetes.aio.client.models.v1beta2_node_allocatable_resource_mapping import V1beta2NodeAllocatableResourceMapping +from kubernetes.aio.client.models.v1beta2_node_allocatable_resource import V1beta2NodeAllocatableResource from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -118,7 +118,7 @@ class V1beta2Device(BaseModel): capacity: Optional[Dict[str, V1beta2DeviceCapacity]] = Field(default=None, description="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.") consumes_counters: Optional[List[V1beta2DeviceCounterConsumption]] = Field(default=None, validation_alias=AliasChoices("consumesCounters", "consumes_counters"), serialization_alias="consumesCounters", description="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.") name: StrictStr = Field(description="Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.") - node_allocatable_resource_mappings: Optional[Dict[str, V1beta2NodeAllocatableResourceMapping]] = Field(default=None, validation_alias=AliasChoices("nodeAllocatableResourceMappings", "node_allocatable_resource_mappings"), serialization_alias="nodeAllocatableResourceMappings", 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.") + node_allocatable_resources: Optional[Dict[str, V1beta2NodeAllocatableResource]] = Field(default=None, validation_alias=AliasChoices("nodeAllocatableResources", "node_allocatable_resources"), serialization_alias="nodeAllocatableResources", description="NodeAllocatableResources 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.") node_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("nodeName", "node_name"), serialization_alias="nodeName", description="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.") node_selector: Optional[V1NodeSelector] = Field(default=None, validation_alias=AliasChoices("nodeSelector", "node_selector"), serialization_alias="nodeSelector") taints: Optional[List[V1beta2DeviceTaint]] = Field(default=None, description="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.") @@ -132,7 +132,7 @@ class V1beta2Device(BaseModel): "capacity": "Dict[str, V1beta2DeviceCapacity]", "consumes_counters": "List[V1beta2DeviceCounterConsumption]", "name": "str", - "node_allocatable_resource_mappings": "Dict[str, V1beta2NodeAllocatableResourceMapping]", + "node_allocatable_resources": "Dict[str, V1beta2NodeAllocatableResource]", "node_name": "str", "node_selector": "V1NodeSelector", "taints": "List[V1beta2DeviceTaint]" @@ -148,12 +148,12 @@ class V1beta2Device(BaseModel): "capacity": "capacity", "consumes_counters": "consumesCounters", "name": "name", - "node_allocatable_resource_mappings": "nodeAllocatableResourceMappings", + "node_allocatable_resources": "nodeAllocatableResources", "node_name": "nodeName", "node_selector": "nodeSelector", "taints": "taints" } - __properties: ClassVar[List[str]] = ["allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "name", "nodeAllocatableResourceMappings", "nodeName", "nodeSelector", "taints"] + __properties: ClassVar[List[str]] = ["allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "name", "nodeAllocatableResources", "nodeName", "nodeSelector", "taints"] @classmethod def __preprocess_input_names( @@ -182,9 +182,9 @@ def __preprocess_input_names( if "consumesCounters" not in obj and "consumes_counters" in obj: obj["consumesCounters"] = obj["consumes_counters"] obj.pop("consumes_counters", None) - if "nodeAllocatableResourceMappings" not in obj and "node_allocatable_resource_mappings" in obj: - obj["nodeAllocatableResourceMappings"] = obj["node_allocatable_resource_mappings"] - obj.pop("node_allocatable_resource_mappings", None) + if "nodeAllocatableResources" not in obj and "node_allocatable_resources" in obj: + obj["nodeAllocatableResources"] = obj["node_allocatable_resources"] + obj.pop("node_allocatable_resources", None) if "nodeName" not in obj and "node_name" in obj: obj["nodeName"] = obj["node_name"] obj.pop("node_name", None) @@ -249,7 +249,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("consumesCounters" if serialize else "consumes_counters"): _to_legacy_value(getattr(self, "consumes_counters", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), - ("nodeAllocatableResourceMappings" if serialize else "node_allocatable_resource_mappings"): _to_legacy_value(getattr(self, "node_allocatable_resource_mappings", None), serialize), + ("nodeAllocatableResources" if serialize else "node_allocatable_resources"): _to_legacy_value(getattr(self, "node_allocatable_resources", None), serialize), ("nodeName" if serialize else "node_name"): _to_legacy_value(getattr(self, "node_name", None), serialize), ("nodeSelector" if serialize else "node_selector"): _to_legacy_value(getattr(self, "node_selector", None), serialize), ("taints" if serialize else "taints"): _to_legacy_value(getattr(self, "taints", None), serialize), @@ -291,12 +291,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: for _item_consumes_counters in self.consumes_counters: _items.append(_to_openapi_value(_item_consumes_counters) if _item_consumes_counters is not None else None) _dict['consumesCounters'] = _items - # override the default output from pydantic by calling `to_dict()` of each value in node_allocatable_resource_mappings (dict) + # override the default output from pydantic by calling `to_dict()` of each value in node_allocatable_resources (dict) _field_dict = {} - if self.node_allocatable_resource_mappings: - for _key_node_allocatable_resource_mappings in self.node_allocatable_resource_mappings: - _field_dict[_key_node_allocatable_resource_mappings] = _to_openapi_value(self.node_allocatable_resource_mappings[_key_node_allocatable_resource_mappings]) if self.node_allocatable_resource_mappings[_key_node_allocatable_resource_mappings] is not None else None - _dict['nodeAllocatableResourceMappings'] = _field_dict + if self.node_allocatable_resources: + for _key_node_allocatable_resources in self.node_allocatable_resources: + _field_dict[_key_node_allocatable_resources] = _to_openapi_value(self.node_allocatable_resources[_key_node_allocatable_resources]) if self.node_allocatable_resources[_key_node_allocatable_resources] is not None else None + _dict['nodeAllocatableResources'] = _field_dict # override the default output from pydantic by calling `to_dict()` of node_selector if self.node_selector: _dict['nodeSelector'] = _to_openapi_value(self.node_selector) @@ -357,11 +357,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: else None, "consumesCounters": [V1beta2DeviceCounterConsumption.from_dict(_item) for _item in obj["consumesCounters"]] if obj.get("consumesCounters") is not None else None, "name": obj.get("name"), - "nodeAllocatableResourceMappings": dict( - (_k, V1beta2NodeAllocatableResourceMapping.from_dict(_v)) - for _k, _v in obj["nodeAllocatableResourceMappings"].items() + "nodeAllocatableResources": dict( + (_k, V1beta2NodeAllocatableResource.from_dict(_v)) + for _k, _v in obj["nodeAllocatableResources"].items() ) - if obj.get("nodeAllocatableResourceMappings") is not None + if obj.get("nodeAllocatableResources") is not None else None, "nodeName": obj.get("nodeName"), "nodeSelector": V1NodeSelector.from_dict(obj["nodeSelector"]) if obj.get("nodeSelector") is not None else None, diff --git a/kubernetes/aio/client/models/v1beta2_device_allocation_configuration.py b/kubernetes/aio/client/models/v1beta2_device_allocation_configuration.py index dc13453f10..bbdf2c8974 100644 --- a/kubernetes/aio/client/models/v1beta2_device_allocation_configuration.py +++ b/kubernetes/aio/client/models/v1beta2_device_allocation_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_device_allocation_result.py b/kubernetes/aio/client/models/v1beta2_device_allocation_result.py index ccfd21db1e..398f40d592 100644 --- a/kubernetes/aio/client/models/v1beta2_device_allocation_result.py +++ b/kubernetes/aio/client/models/v1beta2_device_allocation_result.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_device_attribute.py b/kubernetes/aio/client/models/v1beta2_device_attribute.py index c8c4d4a9d0..63731b1e16 100644 --- a/kubernetes/aio/client/models/v1beta2_device_attribute.py +++ b/kubernetes/aio/client/models/v1beta2_device_attribute.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_device_capacity.py b/kubernetes/aio/client/models/v1beta2_device_capacity.py index 32423c4687..8e9d40da0a 100644 --- a/kubernetes/aio/client/models/v1beta2_device_capacity.py +++ b/kubernetes/aio/client/models/v1beta2_device_capacity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_device_claim.py b/kubernetes/aio/client/models/v1beta2_device_claim.py index e4fdda6264..ca5987027b 100644 --- a/kubernetes/aio/client/models/v1beta2_device_claim.py +++ b/kubernetes/aio/client/models/v1beta2_device_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_device_claim_configuration.py b/kubernetes/aio/client/models/v1beta2_device_claim_configuration.py index b34c228bff..6707188459 100644 --- a/kubernetes/aio/client/models/v1beta2_device_claim_configuration.py +++ b/kubernetes/aio/client/models/v1beta2_device_claim_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_device_class.py b/kubernetes/aio/client/models/v1beta2_device_class.py index baadd5e310..3382528d55 100644 --- a/kubernetes/aio/client/models/v1beta2_device_class.py +++ b/kubernetes/aio/client/models/v1beta2_device_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,7 +108,7 @@ class V1beta2DeviceClass(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1beta2DeviceClassSpec + spec: Optional[V1beta2DeviceClassSpec] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", diff --git a/kubernetes/aio/client/models/v1beta2_device_class_configuration.py b/kubernetes/aio/client/models/v1beta2_device_class_configuration.py index 147cbb7551..f584085f80 100644 --- a/kubernetes/aio/client/models/v1beta2_device_class_configuration.py +++ b/kubernetes/aio/client/models/v1beta2_device_class_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_device_class_list.py b/kubernetes/aio/client/models/v1beta2_device_class_list.py index e3bb680f5a..dc85c7e010 100644 --- a/kubernetes/aio/client/models/v1beta2_device_class_list.py +++ b/kubernetes/aio/client/models/v1beta2_device_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_device_class_spec.py b/kubernetes/aio/client/models/v1beta2_device_class_spec.py index f85d78a95a..43345fa1a7 100644 --- a/kubernetes/aio/client/models/v1beta2_device_class_spec.py +++ b/kubernetes/aio/client/models/v1beta2_device_class_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -106,7 +106,7 @@ class V1beta2DeviceClassSpec(BaseModel): and the value is json key in definition. """ # noqa: E501 config: Optional[List[V1beta2DeviceClassConfiguration]] = Field(default=None, description="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.") - extended_resource_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("extendedResourceName", "extended_resource_name"), serialization_alias="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. This is a beta field.") + extended_resource_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("extendedResourceName", "extended_resource_name"), serialization_alias="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.") selectors: Optional[List[V1beta2DeviceSelector]] = Field(default=None, description="Each selector must be satisfied by a device which is claimed via this class.") openapi_types: ClassVar[Dict[str, str]] = { "config": "List[V1beta2DeviceClassConfiguration]", diff --git a/kubernetes/aio/client/models/v1beta2_device_constraint.py b/kubernetes/aio/client/models/v1beta2_device_constraint.py index f062b316c1..65d1b3dd67 100644 --- a/kubernetes/aio/client/models/v1beta2_device_constraint.py +++ b/kubernetes/aio/client/models/v1beta2_device_constraint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_device_counter_consumption.py b/kubernetes/aio/client/models/v1beta2_device_counter_consumption.py index ad505ead7e..c1cbcff6e4 100644 --- a/kubernetes/aio/client/models/v1beta2_device_counter_consumption.py +++ b/kubernetes/aio/client/models/v1beta2_device_counter_consumption.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, cast as _cast +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1beta2_counter import V1beta2Counter from typing import Optional, Set from typing_extensions import Self @@ -104,18 +104,21 @@ class V1beta2DeviceCounterConsumption(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 + compatibility_groups: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("compatibilityGroups", "compatibility_groups"), serialization_alias="compatibilityGroups", description="CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique.") counter_set: StrictStr = Field(validation_alias=AliasChoices("counterSet", "counter_set"), serialization_alias="counterSet", description="CounterSet is the name of the set from which the counters defined will be consumed.") counters: Dict[str, V1beta2Counter] = Field(description="Counters defines the counters that will be consumed by the device. The maximum number of counters is 32.") openapi_types: ClassVar[Dict[str, str]] = { + "compatibility_groups": "List[str]", "counter_set": "str", "counters": "Dict[str, V1beta2Counter]" } attribute_map: ClassVar[Dict[str, str]] = { + "compatibility_groups": "compatibilityGroups", "counter_set": "counterSet", "counters": "counters" } - __properties: ClassVar[List[str]] = ["counterSet", "counters"] + __properties: ClassVar[List[str]] = ["compatibilityGroups", "counterSet", "counters"] @classmethod def __preprocess_input_names( @@ -126,6 +129,9 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) + if "compatibilityGroups" not in obj and "compatibility_groups" in obj: + obj["compatibilityGroups"] = obj["compatibility_groups"] + obj.pop("compatibility_groups", None) if "counterSet" not in obj and "counter_set" in obj: obj["counterSet"] = obj["counter_set"] obj.pop("counter_set", None) @@ -178,6 +184,7 @@ def from_json(cls, json_str: str) -> Optional[Self]: def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { + ("compatibilityGroups" if serialize else "compatibility_groups"): _to_legacy_value(getattr(self, "compatibility_groups", None), serialize), ("counterSet" if serialize else "counter_set"): _to_legacy_value(getattr(self, "counter_set", None), serialize), ("counters" if serialize else "counters"): _to_legacy_value(getattr(self, "counters", None), serialize), } @@ -238,6 +245,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ + "compatibilityGroups": obj.get("compatibilityGroups"), "counterSet": obj.get("counterSet"), "counters": dict( (_k, V1beta2Counter.from_dict(_v)) diff --git a/kubernetes/aio/client/models/v1beta2_device_derived_attribute.py b/kubernetes/aio/client/models/v1beta2_device_derived_attribute.py new file mode 100644 index 0000000000..84ffb3c5fd --- /dev/null +++ b/kubernetes/aio/client/models/v1beta2_device_derived_attribute.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta2DeviceDerivedAttribute(BaseModel): + """ + DeviceDerivedAttribute defines a derived attribute computed via CEL. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + expression: StrictStr = Field(description="Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.") + name: StrictStr = Field(description="Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint.") + openapi_types: ClassVar[Dict[str, str]] = { + "expression": "str", + "name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "expression": "expression", + "name": "name" + } + __properties: ClassVar[List[str]] = ["expression", "name"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta2DeviceDerivedAttribute): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta2DeviceDerivedAttribute): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta2DeviceDerivedAttribute from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("expression" if serialize else "expression"): _to_legacy_value(getattr(self, "expression", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta2DeviceDerivedAttribute from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "expression": obj.get("expression"), + "name": obj.get("name") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta2_device_request.py b/kubernetes/aio/client/models/v1beta2_device_request.py index b17822861a..53189d98d4 100644 --- a/kubernetes/aio/client/models/v1beta2_device_request.py +++ b/kubernetes/aio/client/models/v1beta2_device_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_device_request_allocation_result.py b/kubernetes/aio/client/models/v1beta2_device_request_allocation_result.py index 1edaa294c6..06e5150727 100644 --- a/kubernetes/aio/client/models/v1beta2_device_request_allocation_result.py +++ b/kubernetes/aio/client/models/v1beta2_device_request_allocation_result.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -113,6 +113,7 @@ class V1beta2DeviceRequestAllocationResult(BaseModel): pool: StrictStr = Field(description="This name together with the driver name and the device name field identify which device was allocated (`//`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.") request: StrictStr = Field(description="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
/. Multiple devices may have been allocated per request.") share_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("shareID", "share_id"), serialization_alias="shareID", description="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.") + skip_node_operations: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("skipNodeOperations", "skip_node_operations"), serialization_alias="skipNodeOperations", description="SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.") tolerations: Optional[List[V1beta2DeviceToleration]] = Field(default=None, description="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.") openapi_types: ClassVar[Dict[str, str]] = { "admin_access": "bool", @@ -124,6 +125,7 @@ class V1beta2DeviceRequestAllocationResult(BaseModel): "pool": "str", "request": "str", "share_id": "str", + "skip_node_operations": "List[str]", "tolerations": "List[V1beta2DeviceToleration]" } @@ -137,9 +139,10 @@ class V1beta2DeviceRequestAllocationResult(BaseModel): "pool": "pool", "request": "request", "share_id": "shareID", + "skip_node_operations": "skipNodeOperations", "tolerations": "tolerations" } - __properties: ClassVar[List[str]] = ["adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "tolerations"] + __properties: ClassVar[List[str]] = ["adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "skipNodeOperations", "tolerations"] @classmethod def __preprocess_input_names( @@ -165,6 +168,9 @@ def __preprocess_input_names( if "shareID" not in obj and "share_id" in obj: obj["shareID"] = obj["share_id"] obj.pop("share_id", None) + if "skipNodeOperations" not in obj and "skip_node_operations" in obj: + obj["skipNodeOperations"] = obj["skip_node_operations"] + obj.pop("skip_node_operations", None) return obj model_config = ConfigDict( @@ -223,6 +229,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("pool" if serialize else "pool"): _to_legacy_value(getattr(self, "pool", None), serialize), ("request" if serialize else "request"): _to_legacy_value(getattr(self, "request", None), serialize), ("shareID" if serialize else "share_id"): _to_legacy_value(getattr(self, "share_id", None), serialize), + ("skipNodeOperations" if serialize else "skip_node_operations"): _to_legacy_value(getattr(self, "skip_node_operations", None), serialize), ("tolerations" if serialize else "tolerations"): _to_legacy_value(getattr(self, "tolerations", None), serialize), } @@ -291,6 +298,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "pool": obj.get("pool"), "request": obj.get("request"), "shareID": obj.get("shareID"), + "skipNodeOperations": obj.get("skipNodeOperations"), "tolerations": [V1beta2DeviceToleration.from_dict(_item) for _item in obj["tolerations"]] if obj.get("tolerations") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1beta2_device_selector.py b/kubernetes/aio/client/models/v1beta2_device_selector.py index 3dd57d7662..6ea46301a7 100644 --- a/kubernetes/aio/client/models/v1beta2_device_selector.py +++ b/kubernetes/aio/client/models/v1beta2_device_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_device_sub_request.py b/kubernetes/aio/client/models/v1beta2_device_sub_request.py index 98c2efdb13..fa32ec4a6d 100644 --- a/kubernetes/aio/client/models/v1beta2_device_sub_request.py +++ b/kubernetes/aio/client/models/v1beta2_device_sub_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1beta2_capacity_requirements import V1beta2CapacityRequirements +from kubernetes.aio.client.models.v1beta2_device_derived_attribute import V1beta2DeviceDerivedAttribute from kubernetes.aio.client.models.v1beta2_device_selector import V1beta2DeviceSelector from kubernetes.aio.client.models.v1beta2_device_toleration import V1beta2DeviceToleration from typing import Optional, Set @@ -109,6 +110,7 @@ class V1beta2DeviceSubRequest(BaseModel): allocation_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("allocationMode", "allocation_mode"), serialization_alias="allocationMode", description="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.") capacity: Optional[V1beta2CapacityRequirements] = None count: Optional[StrictInt] = Field(default=None, description="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.") + derived_attributes: Optional[List[V1beta2DeviceDerivedAttribute]] = Field(default=None, validation_alias=AliasChoices("derivedAttributes", "derived_attributes"), serialization_alias="derivedAttributes", description="DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate.") device_class_name: StrictStr = Field(validation_alias=AliasChoices("deviceClassName", "device_class_name"), serialization_alias="deviceClassName", description="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: StrictStr = Field(description="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
/. Must be a DNS label.") selectors: Optional[List[V1beta2DeviceSelector]] = Field(default=None, description="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.") @@ -117,6 +119,7 @@ class V1beta2DeviceSubRequest(BaseModel): "allocation_mode": "str", "capacity": "V1beta2CapacityRequirements", "count": "int", + "derived_attributes": "List[V1beta2DeviceDerivedAttribute]", "device_class_name": "str", "name": "str", "selectors": "List[V1beta2DeviceSelector]", @@ -127,12 +130,13 @@ class V1beta2DeviceSubRequest(BaseModel): "allocation_mode": "allocationMode", "capacity": "capacity", "count": "count", + "derived_attributes": "derivedAttributes", "device_class_name": "deviceClassName", "name": "name", "selectors": "selectors", "tolerations": "tolerations" } - __properties: ClassVar[List[str]] = ["allocationMode", "capacity", "count", "deviceClassName", "name", "selectors", "tolerations"] + __properties: ClassVar[List[str]] = ["allocationMode", "capacity", "count", "derivedAttributes", "deviceClassName", "name", "selectors", "tolerations"] @classmethod def __preprocess_input_names( @@ -146,6 +150,9 @@ def __preprocess_input_names( if "allocationMode" not in obj and "allocation_mode" in obj: obj["allocationMode"] = obj["allocation_mode"] obj.pop("allocation_mode", None) + if "derivedAttributes" not in obj and "derived_attributes" in obj: + obj["derivedAttributes"] = obj["derived_attributes"] + obj.pop("derived_attributes", None) if "deviceClassName" not in obj and "device_class_name" in obj: obj["deviceClassName"] = obj["device_class_name"] obj.pop("device_class_name", None) @@ -201,6 +208,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("allocationMode" if serialize else "allocation_mode"): _to_legacy_value(getattr(self, "allocation_mode", None), serialize), ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("count" if serialize else "count"): _to_legacy_value(getattr(self, "count", None), serialize), + ("derivedAttributes" if serialize else "derived_attributes"): _to_legacy_value(getattr(self, "derived_attributes", None), serialize), ("deviceClassName" if serialize else "device_class_name"): _to_legacy_value(getattr(self, "device_class_name", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), ("selectors" if serialize else "selectors"): _to_legacy_value(getattr(self, "selectors", None), serialize), @@ -228,6 +236,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of capacity if self.capacity: _dict['capacity'] = _to_openapi_value(self.capacity) + # override the default output from pydantic by calling `to_dict()` of each item in derived_attributes (list) + _items = [] + if self.derived_attributes: + for _item_derived_attributes in self.derived_attributes: + _items.append(_to_openapi_value(_item_derived_attributes) if _item_derived_attributes is not None else None) + _dict['derivedAttributes'] = _items # override the default output from pydantic by calling `to_dict()` of each item in selectors (list) _items = [] if self.selectors: @@ -275,6 +289,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "allocationMode": obj.get("allocationMode"), "capacity": V1beta2CapacityRequirements.from_dict(obj["capacity"]) if obj.get("capacity") is not None else None, "count": obj.get("count"), + "derivedAttributes": [V1beta2DeviceDerivedAttribute.from_dict(_item) for _item in obj["derivedAttributes"]] if obj.get("derivedAttributes") is not None else None, "deviceClassName": obj.get("deviceClassName"), "name": obj.get("name"), "selectors": [V1beta2DeviceSelector.from_dict(_item) for _item in obj["selectors"]] if obj.get("selectors") is not None else None, diff --git a/kubernetes/aio/client/models/v1beta2_device_taint.py b/kubernetes/aio/client/models/v1beta2_device_taint.py index 7979a44806..dd5e80ec63 100644 --- a/kubernetes/aio/client/models/v1beta2_device_taint.py +++ b/kubernetes/aio/client/models/v1beta2_device_taint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_device_taint_rule.py b/kubernetes/aio/client/models/v1beta2_device_taint_rule.py index 420e43f8be..484d5b2ca8 100644 --- a/kubernetes/aio/client/models/v1beta2_device_taint_rule.py +++ b/kubernetes/aio/client/models/v1beta2_device_taint_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_device_taint_rule_list.py b/kubernetes/aio/client/models/v1beta2_device_taint_rule_list.py index 6e3612ec06..1898d8136b 100644 --- a/kubernetes/aio/client/models/v1beta2_device_taint_rule_list.py +++ b/kubernetes/aio/client/models/v1beta2_device_taint_rule_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_device_taint_rule_spec.py b/kubernetes/aio/client/models/v1beta2_device_taint_rule_spec.py index 2bb4f0386e..70c54b81b4 100644 --- a/kubernetes/aio/client/models/v1beta2_device_taint_rule_spec.py +++ b/kubernetes/aio/client/models/v1beta2_device_taint_rule_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_device_taint_rule_status.py b/kubernetes/aio/client/models/v1beta2_device_taint_rule_status.py index d5d27b6124..86097b3ebb 100644 --- a/kubernetes/aio/client/models/v1beta2_device_taint_rule_status.py +++ b/kubernetes/aio/client/models/v1beta2_device_taint_rule_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_device_taint_selector.py b/kubernetes/aio/client/models/v1beta2_device_taint_selector.py index 7801d66030..15b5dbb0b7 100644 --- a/kubernetes/aio/client/models/v1beta2_device_taint_selector.py +++ b/kubernetes/aio/client/models/v1beta2_device_taint_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_device_toleration.py b/kubernetes/aio/client/models/v1beta2_device_toleration.py index 0322a564e0..65310dac84 100644 --- a/kubernetes/aio/client/models/v1beta2_device_toleration.py +++ b/kubernetes/aio/client/models/v1beta2_device_toleration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_exact_device_request.py b/kubernetes/aio/client/models/v1beta2_exact_device_request.py index bfa595a3cf..cb2d9c97a0 100644 --- a/kubernetes/aio/client/models/v1beta2_exact_device_request.py +++ b/kubernetes/aio/client/models/v1beta2_exact_device_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.aio.client.models.v1beta2_capacity_requirements import V1beta2CapacityRequirements +from kubernetes.aio.client.models.v1beta2_device_derived_attribute import V1beta2DeviceDerivedAttribute from kubernetes.aio.client.models.v1beta2_device_selector import V1beta2DeviceSelector from kubernetes.aio.client.models.v1beta2_device_toleration import V1beta2DeviceToleration from typing import Optional, Set @@ -110,6 +111,7 @@ class V1beta2ExactDeviceRequest(BaseModel): allocation_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("allocationMode", "allocation_mode"), serialization_alias="allocationMode", description="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.") capacity: Optional[V1beta2CapacityRequirements] = None count: Optional[StrictInt] = Field(default=None, description="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.") + derived_attributes: Optional[List[V1beta2DeviceDerivedAttribute]] = Field(default=None, validation_alias=AliasChoices("derivedAttributes", "derived_attributes"), serialization_alias="derivedAttributes", description="DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate.") device_class_name: StrictStr = Field(validation_alias=AliasChoices("deviceClassName", "device_class_name"), serialization_alias="deviceClassName", description="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: Optional[List[V1beta2DeviceSelector]] = Field(default=None, description="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.") tolerations: Optional[List[V1beta2DeviceToleration]] = Field(default=None, description="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.") @@ -118,6 +120,7 @@ class V1beta2ExactDeviceRequest(BaseModel): "allocation_mode": "str", "capacity": "V1beta2CapacityRequirements", "count": "int", + "derived_attributes": "List[V1beta2DeviceDerivedAttribute]", "device_class_name": "str", "selectors": "List[V1beta2DeviceSelector]", "tolerations": "List[V1beta2DeviceToleration]" @@ -128,11 +131,12 @@ class V1beta2ExactDeviceRequest(BaseModel): "allocation_mode": "allocationMode", "capacity": "capacity", "count": "count", + "derived_attributes": "derivedAttributes", "device_class_name": "deviceClassName", "selectors": "selectors", "tolerations": "tolerations" } - __properties: ClassVar[List[str]] = ["adminAccess", "allocationMode", "capacity", "count", "deviceClassName", "selectors", "tolerations"] + __properties: ClassVar[List[str]] = ["adminAccess", "allocationMode", "capacity", "count", "derivedAttributes", "deviceClassName", "selectors", "tolerations"] @classmethod def __preprocess_input_names( @@ -149,6 +153,9 @@ def __preprocess_input_names( if "allocationMode" not in obj and "allocation_mode" in obj: obj["allocationMode"] = obj["allocation_mode"] obj.pop("allocation_mode", None) + if "derivedAttributes" not in obj and "derived_attributes" in obj: + obj["derivedAttributes"] = obj["derived_attributes"] + obj.pop("derived_attributes", None) if "deviceClassName" not in obj and "device_class_name" in obj: obj["deviceClassName"] = obj["device_class_name"] obj.pop("device_class_name", None) @@ -205,6 +212,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("allocationMode" if serialize else "allocation_mode"): _to_legacy_value(getattr(self, "allocation_mode", None), serialize), ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("count" if serialize else "count"): _to_legacy_value(getattr(self, "count", None), serialize), + ("derivedAttributes" if serialize else "derived_attributes"): _to_legacy_value(getattr(self, "derived_attributes", None), serialize), ("deviceClassName" if serialize else "device_class_name"): _to_legacy_value(getattr(self, "device_class_name", None), serialize), ("selectors" if serialize else "selectors"): _to_legacy_value(getattr(self, "selectors", None), serialize), ("tolerations" if serialize else "tolerations"): _to_legacy_value(getattr(self, "tolerations", None), serialize), @@ -231,6 +239,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of capacity if self.capacity: _dict['capacity'] = _to_openapi_value(self.capacity) + # override the default output from pydantic by calling `to_dict()` of each item in derived_attributes (list) + _items = [] + if self.derived_attributes: + for _item_derived_attributes in self.derived_attributes: + _items.append(_to_openapi_value(_item_derived_attributes) if _item_derived_attributes is not None else None) + _dict['derivedAttributes'] = _items # override the default output from pydantic by calling `to_dict()` of each item in selectors (list) _items = [] if self.selectors: @@ -279,6 +293,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "allocationMode": obj.get("allocationMode"), "capacity": V1beta2CapacityRequirements.from_dict(obj["capacity"]) if obj.get("capacity") is not None else None, "count": obj.get("count"), + "derivedAttributes": [V1beta2DeviceDerivedAttribute.from_dict(_item) for _item in obj["derivedAttributes"]] if obj.get("derivedAttributes") is not None else None, "deviceClassName": obj.get("deviceClassName"), "selectors": [V1beta2DeviceSelector.from_dict(_item) for _item in obj["selectors"]] if obj.get("selectors") is not None else None, "tolerations": [V1beta2DeviceToleration.from_dict(_item) for _item in obj["tolerations"]] if obj.get("tolerations") is not None else None diff --git a/kubernetes/aio/client/models/v1beta2_network_device_data.py b/kubernetes/aio/client/models/v1beta2_network_device_data.py index c738dc6532..d537e52a2a 100644 --- a/kubernetes/aio/client/models/v1beta2_network_device_data.py +++ b/kubernetes/aio/client/models/v1beta2_network_device_data.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_node_allocatable_mapping.py b/kubernetes/aio/client/models/v1beta2_node_allocatable_mapping.py new file mode 100644 index 0000000000..bfccf5c3ba --- /dev/null +++ b/kubernetes/aio/client/models/v1beta2_node_allocatable_mapping.py @@ -0,0 +1,248 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta2NodeAllocatableMapping(BaseModel): + """ + NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + capacity_key: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("capacityKey", "capacity_key"), serialization_alias="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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.") + capacity_multiplier: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("capacityMultiplier", "capacity_multiplier"), serialization_alias="capacityMultiplier", description="CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16.") + device_multiplier: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("deviceMultiplier", "device_multiplier"), serialization_alias="deviceMultiplier", description="DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set.") + openapi_types: ClassVar[Dict[str, str]] = { + "capacity_key": "str", + "capacity_multiplier": "str", + "device_multiplier": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "capacity_key": "capacityKey", + "capacity_multiplier": "capacityMultiplier", + "device_multiplier": "deviceMultiplier" + } + __properties: ClassVar[List[str]] = ["capacityKey", "capacityMultiplier", "deviceMultiplier"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "capacityKey" not in obj and "capacity_key" in obj: + obj["capacityKey"] = obj["capacity_key"] + obj.pop("capacity_key", None) + if "capacityMultiplier" not in obj and "capacity_multiplier" in obj: + obj["capacityMultiplier"] = obj["capacity_multiplier"] + obj.pop("capacity_multiplier", None) + if "deviceMultiplier" not in obj and "device_multiplier" in obj: + obj["deviceMultiplier"] = obj["device_multiplier"] + obj.pop("device_multiplier", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta2NodeAllocatableMapping): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta2NodeAllocatableMapping): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta2NodeAllocatableMapping from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("capacityKey" if serialize else "capacity_key"): _to_legacy_value(getattr(self, "capacity_key", None), serialize), + ("capacityMultiplier" if serialize else "capacity_multiplier"): _to_legacy_value(getattr(self, "capacity_multiplier", None), serialize), + ("deviceMultiplier" if serialize else "device_multiplier"): _to_legacy_value(getattr(self, "device_multiplier", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta2NodeAllocatableMapping from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "capacityKey": obj.get("capacityKey"), + "capacityMultiplier": obj.get("capacityMultiplier"), + "deviceMultiplier": obj.get("deviceMultiplier") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta2_node_allocatable_overhead.py b/kubernetes/aio/client/models/v1beta2_node_allocatable_overhead.py new file mode 100644 index 0000000000..7d24dc807b --- /dev/null +++ b/kubernetes/aio/client/models/v1beta2_node_allocatable_overhead.py @@ -0,0 +1,240 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta2NodeAllocatableOverhead(BaseModel): + """ + NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + per_container: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("perContainer", "per_container"), serialization_alias="perContainer", description="PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once.") + per_pod: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("perPod", "per_pod"), serialization_alias="perPod", description="PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim.") + openapi_types: ClassVar[Dict[str, str]] = { + "per_container": "str", + "per_pod": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "per_container": "perContainer", + "per_pod": "perPod" + } + __properties: ClassVar[List[str]] = ["perContainer", "perPod"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "perContainer" not in obj and "per_container" in obj: + obj["perContainer"] = obj["per_container"] + obj.pop("per_container", None) + if "perPod" not in obj and "per_pod" in obj: + obj["perPod"] = obj["per_pod"] + obj.pop("per_pod", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta2NodeAllocatableOverhead): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta2NodeAllocatableOverhead): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta2NodeAllocatableOverhead from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("perContainer" if serialize else "per_container"): _to_legacy_value(getattr(self, "per_container", None), serialize), + ("perPod" if serialize else "per_pod"): _to_legacy_value(getattr(self, "per_pod", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta2NodeAllocatableOverhead from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "perContainer": obj.get("perContainer"), + "perPod": obj.get("perPod") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta2_node_allocatable_resource.py b/kubernetes/aio/client/models/v1beta2_node_allocatable_resource.py new file mode 100644 index 0000000000..e05d540821 --- /dev/null +++ b/kubernetes/aio/client/models/v1beta2_node_allocatable_resource.py @@ -0,0 +1,222 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.aio.client.models.v1beta2_node_allocatable_mapping import V1beta2NodeAllocatableMapping +from kubernetes.aio.client.models.v1beta2_node_allocatable_overhead import V1beta2NodeAllocatableOverhead +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta2NodeAllocatableResource(BaseModel): + """ + NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + mapping: Optional[V1beta2NodeAllocatableMapping] = None + overhead: Optional[V1beta2NodeAllocatableOverhead] = None + openapi_types: ClassVar[Dict[str, str]] = { + "mapping": "V1beta2NodeAllocatableMapping", + "overhead": "V1beta2NodeAllocatableOverhead" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "mapping": "mapping", + "overhead": "overhead" + } + __properties: ClassVar[List[str]] = ["mapping", "overhead"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta2NodeAllocatableResource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta2NodeAllocatableResource): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta2NodeAllocatableResource from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("mapping" if serialize else "mapping"): _to_legacy_value(getattr(self, "mapping", None), serialize), + ("overhead" if serialize else "overhead"): _to_legacy_value(getattr(self, "overhead", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of mapping + if self.mapping: + _dict['mapping'] = _to_openapi_value(self.mapping) + # override the default output from pydantic by calling `to_dict()` of overhead + if self.overhead: + _dict['overhead'] = _to_openapi_value(self.overhead) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta2NodeAllocatableResource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "mapping": V1beta2NodeAllocatableMapping.from_dict(obj["mapping"]) if obj.get("mapping") is not None else None, + "overhead": V1beta2NodeAllocatableOverhead.from_dict(obj["overhead"]) if obj.get("overhead") is not None else None + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta2_opaque_device_configuration.py b/kubernetes/aio/client/models/v1beta2_opaque_device_configuration.py index 427e543248..a13fa32102 100644 --- a/kubernetes/aio/client/models/v1beta2_opaque_device_configuration.py +++ b/kubernetes/aio/client/models/v1beta2_opaque_device_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_resource_claim.py b/kubernetes/aio/client/models/v1beta2_resource_claim.py index b870ab39db..4c7cdbcc26 100644 --- a/kubernetes/aio/client/models/v1beta2_resource_claim.py +++ b/kubernetes/aio/client/models/v1beta2_resource_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,7 +109,7 @@ class V1beta2ResourceClaim(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1beta2ResourceClaimSpec + spec: Optional[V1beta2ResourceClaimSpec] = None status: Optional[V1beta2ResourceClaimStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", diff --git a/kubernetes/aio/client/models/v1beta2_resource_claim_consumer_reference.py b/kubernetes/aio/client/models/v1beta2_resource_claim_consumer_reference.py index 5baf2e3e37..848f7e1b4c 100644 --- a/kubernetes/aio/client/models/v1beta2_resource_claim_consumer_reference.py +++ b/kubernetes/aio/client/models/v1beta2_resource_claim_consumer_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_resource_claim_list.py b/kubernetes/aio/client/models/v1beta2_resource_claim_list.py index 29c6aa653a..e253a3bb54 100644 --- a/kubernetes/aio/client/models/v1beta2_resource_claim_list.py +++ b/kubernetes/aio/client/models/v1beta2_resource_claim_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_resource_claim_spec.py b/kubernetes/aio/client/models/v1beta2_resource_claim_spec.py index cdbfb36631..81baf80771 100644 --- a/kubernetes/aio/client/models/v1beta2_resource_claim_spec.py +++ b/kubernetes/aio/client/models/v1beta2_resource_claim_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_resource_claim_status.py b/kubernetes/aio/client/models/v1beta2_resource_claim_status.py index a5edbf78c4..8e9c1045a5 100644 --- a/kubernetes/aio/client/models/v1beta2_resource_claim_status.py +++ b/kubernetes/aio/client/models/v1beta2_resource_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_resource_claim_template.py b/kubernetes/aio/client/models/v1beta2_resource_claim_template.py index 0b78c62e61..e004cc1dd8 100644 --- a/kubernetes/aio/client/models/v1beta2_resource_claim_template.py +++ b/kubernetes/aio/client/models/v1beta2_resource_claim_template.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,7 +108,7 @@ class V1beta2ResourceClaimTemplate(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1beta2ResourceClaimTemplateSpec + spec: Optional[V1beta2ResourceClaimTemplateSpec] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", diff --git a/kubernetes/aio/client/models/v1beta2_resource_claim_template_list.py b/kubernetes/aio/client/models/v1beta2_resource_claim_template_list.py index 2dbdb10138..394addfdd3 100644 --- a/kubernetes/aio/client/models/v1beta2_resource_claim_template_list.py +++ b/kubernetes/aio/client/models/v1beta2_resource_claim_template_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_resource_claim_template_spec.py b/kubernetes/aio/client/models/v1beta2_resource_claim_template_spec.py index 8057036d6d..9f439ad601 100644 --- a/kubernetes/aio/client/models/v1beta2_resource_claim_template_spec.py +++ b/kubernetes/aio/client/models/v1beta2_resource_claim_template_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,7 +105,7 @@ class V1beta2ResourceClaimTemplateSpec(BaseModel): and the value is json key in definition. """ # noqa: E501 metadata: Optional[V1ObjectMeta] = None - spec: V1beta2ResourceClaimSpec + spec: Optional[V1beta2ResourceClaimSpec] = None openapi_types: ClassVar[Dict[str, str]] = { "metadata": "V1ObjectMeta", "spec": "V1beta2ResourceClaimSpec" diff --git a/kubernetes/aio/client/models/v1beta2_resource_pool.py b/kubernetes/aio/client/models/v1beta2_resource_pool.py index 697ff1beeb..a26e4a6ec4 100644 --- a/kubernetes/aio/client/models/v1beta2_resource_pool.py +++ b/kubernetes/aio/client/models/v1beta2_resource_pool.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -104,7 +104,7 @@ class V1beta2ResourcePool(BaseModel): and the value is json key in definition. """ # noqa: E501 generation: StrictInt = Field(description="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.") - name: StrictStr = Field(description="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.") + name: StrictStr = Field(description="Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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.") resource_slice_count: StrictInt = Field(validation_alias=AliasChoices("resourceSliceCount", "resource_slice_count"), serialization_alias="resourceSliceCount", description="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.") openapi_types: ClassVar[Dict[str, str]] = { "generation": "int", diff --git a/kubernetes/aio/client/models/v1beta2_resource_slice.py b/kubernetes/aio/client/models/v1beta2_resource_slice.py index fbf4624c81..e717d8fadf 100644 --- a/kubernetes/aio/client/models/v1beta2_resource_slice.py +++ b/kubernetes/aio/client/models/v1beta2_resource_slice.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_resource_slice_list.py b/kubernetes/aio/client/models/v1beta2_resource_slice_list.py index 6ca6d53ab8..71cfe3c462 100644 --- a/kubernetes/aio/client/models/v1beta2_resource_slice_list.py +++ b/kubernetes/aio/client/models/v1beta2_resource_slice_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v1beta2_resource_slice_spec.py b/kubernetes/aio/client/models/v1beta2_resource_slice_spec.py index 8d14799460..eb637a0324 100644 --- a/kubernetes/aio/client/models/v1beta2_resource_slice_spec.py +++ b/kubernetes/aio/client/models/v1beta2_resource_slice_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -112,18 +112,22 @@ class V1beta2ResourceSliceSpec(BaseModel): driver: StrictStr = Field(description="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.") node_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("nodeName", "node_name"), serialization_alias="nodeName", description="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.") node_selector: Optional[V1NodeSelector] = Field(default=None, validation_alias=AliasChoices("nodeSelector", "node_selector"), serialization_alias="nodeSelector") + partition_type_attribute: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("partitionTypeAttribute", "partition_type_attribute"), serialization_alias="partitionTypeAttribute", description="PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.") per_device_node_selection: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("perDeviceNodeSelection", "per_device_node_selection"), serialization_alias="perDeviceNodeSelection", description="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.") pool: V1beta2ResourcePool shared_counters: Optional[List[V1beta2CounterSet]] = Field(default=None, validation_alias=AliasChoices("sharedCounters", "shared_counters"), serialization_alias="sharedCounters", description="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.") + skip_node_operations: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("skipNodeOperations", "skip_node_operations"), serialization_alias="skipNodeOperations", description="SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values.") openapi_types: ClassVar[Dict[str, str]] = { "all_nodes": "bool", "devices": "List[V1beta2Device]", "driver": "str", "node_name": "str", "node_selector": "V1NodeSelector", + "partition_type_attribute": "str", "per_device_node_selection": "bool", "pool": "V1beta2ResourcePool", - "shared_counters": "List[V1beta2CounterSet]" + "shared_counters": "List[V1beta2CounterSet]", + "skip_node_operations": "List[str]" } attribute_map: ClassVar[Dict[str, str]] = { @@ -132,11 +136,13 @@ class V1beta2ResourceSliceSpec(BaseModel): "driver": "driver", "node_name": "nodeName", "node_selector": "nodeSelector", + "partition_type_attribute": "partitionTypeAttribute", "per_device_node_selection": "perDeviceNodeSelection", "pool": "pool", - "shared_counters": "sharedCounters" + "shared_counters": "sharedCounters", + "skip_node_operations": "skipNodeOperations" } - __properties: ClassVar[List[str]] = ["allNodes", "devices", "driver", "nodeName", "nodeSelector", "perDeviceNodeSelection", "pool", "sharedCounters"] + __properties: ClassVar[List[str]] = ["allNodes", "devices", "driver", "nodeName", "nodeSelector", "partitionTypeAttribute", "perDeviceNodeSelection", "pool", "sharedCounters", "skipNodeOperations"] @classmethod def __preprocess_input_names( @@ -156,12 +162,18 @@ def __preprocess_input_names( if "nodeSelector" not in obj and "node_selector" in obj: obj["nodeSelector"] = obj["node_selector"] obj.pop("node_selector", None) + if "partitionTypeAttribute" not in obj and "partition_type_attribute" in obj: + obj["partitionTypeAttribute"] = obj["partition_type_attribute"] + obj.pop("partition_type_attribute", None) if "perDeviceNodeSelection" not in obj and "per_device_node_selection" in obj: obj["perDeviceNodeSelection"] = obj["per_device_node_selection"] obj.pop("per_device_node_selection", None) if "sharedCounters" not in obj and "shared_counters" in obj: obj["sharedCounters"] = obj["shared_counters"] obj.pop("shared_counters", None) + if "skipNodeOperations" not in obj and "skip_node_operations" in obj: + obj["skipNodeOperations"] = obj["skip_node_operations"] + obj.pop("skip_node_operations", None) return obj model_config = ConfigDict( @@ -216,9 +228,11 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("driver" if serialize else "driver"): _to_legacy_value(getattr(self, "driver", None), serialize), ("nodeName" if serialize else "node_name"): _to_legacy_value(getattr(self, "node_name", None), serialize), ("nodeSelector" if serialize else "node_selector"): _to_legacy_value(getattr(self, "node_selector", None), serialize), + ("partitionTypeAttribute" if serialize else "partition_type_attribute"): _to_legacy_value(getattr(self, "partition_type_attribute", None), serialize), ("perDeviceNodeSelection" if serialize else "per_device_node_selection"): _to_legacy_value(getattr(self, "per_device_node_selection", None), serialize), ("pool" if serialize else "pool"): _to_legacy_value(getattr(self, "pool", None), serialize), ("sharedCounters" if serialize else "shared_counters"): _to_legacy_value(getattr(self, "shared_counters", None), serialize), + ("skipNodeOperations" if serialize else "skip_node_operations"): _to_legacy_value(getattr(self, "skip_node_operations", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -294,8 +308,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "driver": obj.get("driver"), "nodeName": obj.get("nodeName"), "nodeSelector": V1NodeSelector.from_dict(obj["nodeSelector"]) if obj.get("nodeSelector") is not None else None, + "partitionTypeAttribute": obj.get("partitionTypeAttribute"), "perDeviceNodeSelection": obj.get("perDeviceNodeSelection"), "pool": V1beta2ResourcePool.from_dict(obj["pool"]) if obj.get("pool") is not None else None, - "sharedCounters": [V1beta2CounterSet.from_dict(_item) for _item in obj["sharedCounters"]] if obj.get("sharedCounters") is not None else None + "sharedCounters": [V1beta2CounterSet.from_dict(_item) for _item in obj["sharedCounters"]] if obj.get("sharedCounters") is not None else None, + "skipNodeOperations": obj.get("skipNodeOperations") }) return _obj diff --git a/kubernetes/aio/client/models/v2_api_group_discovery.py b/kubernetes/aio/client/models/v2_api_group_discovery.py index bc7a0acc07..a25f9dd233 100644 --- a/kubernetes/aio/client/models/v2_api_group_discovery.py +++ b/kubernetes/aio/client/models/v2_api_group_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_api_group_discovery_list.py b/kubernetes/aio/client/models/v2_api_group_discovery_list.py index 94c2afbeec..248c383efe 100644 --- a/kubernetes/aio/client/models/v2_api_group_discovery_list.py +++ b/kubernetes/aio/client/models/v2_api_group_discovery_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_api_resource_discovery.py b/kubernetes/aio/client/models/v2_api_resource_discovery.py index a68f15cc11..5c9178c3ab 100644 --- a/kubernetes/aio/client/models/v2_api_resource_discovery.py +++ b/kubernetes/aio/client/models/v2_api_resource_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_api_subresource_discovery.py b/kubernetes/aio/client/models/v2_api_subresource_discovery.py index 26e7b6b4f9..ef567728a9 100644 --- a/kubernetes/aio/client/models/v2_api_subresource_discovery.py +++ b/kubernetes/aio/client/models/v2_api_subresource_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_api_version_discovery.py b/kubernetes/aio/client/models/v2_api_version_discovery.py index 2f589e7ffb..d1669850c7 100644 --- a/kubernetes/aio/client/models/v2_api_version_discovery.py +++ b/kubernetes/aio/client/models/v2_api_version_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_container_resource_metric_source.py b/kubernetes/aio/client/models/v2_container_resource_metric_source.py index 39ddb8b266..67cb95ff2a 100644 --- a/kubernetes/aio/client/models/v2_container_resource_metric_source.py +++ b/kubernetes/aio/client/models/v2_container_resource_metric_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_container_resource_metric_status.py b/kubernetes/aio/client/models/v2_container_resource_metric_status.py index 1a1598fbc6..27d03fbf6b 100644 --- a/kubernetes/aio/client/models/v2_container_resource_metric_status.py +++ b/kubernetes/aio/client/models/v2_container_resource_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_cross_version_object_reference.py b/kubernetes/aio/client/models/v2_cross_version_object_reference.py index 19647ef085..ba81fd1d72 100644 --- a/kubernetes/aio/client/models/v2_cross_version_object_reference.py +++ b/kubernetes/aio/client/models/v2_cross_version_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_external_metric_source.py b/kubernetes/aio/client/models/v2_external_metric_source.py index a2c3cef036..9351df83c2 100644 --- a/kubernetes/aio/client/models/v2_external_metric_source.py +++ b/kubernetes/aio/client/models/v2_external_metric_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_external_metric_status.py b/kubernetes/aio/client/models/v2_external_metric_status.py index ec760e7b5b..ef1a7e5aff 100644 --- a/kubernetes/aio/client/models/v2_external_metric_status.py +++ b/kubernetes/aio/client/models/v2_external_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler.py b/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler.py index 2204b8610a..464493ecaf 100644 --- a/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler.py +++ b/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_behavior.py b/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_behavior.py index a558613078..c1e9e39f45 100644 --- a/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_behavior.py +++ b/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_behavior.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_condition.py b/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_condition.py index f693dcb681..939ebf388f 100644 --- a/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_condition.py +++ b/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from collections.abc import Mapping as _Mapping from datetime import datetime -from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from typing import Optional, Set from typing_extensions import Self @@ -106,12 +106,14 @@ class V2HorizontalPodAutoscalerCondition(BaseModel): """ # noqa: E501 last_transition_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastTransitionTime", "last_transition_time"), serialization_alias="lastTransitionTime", description="lastTransitionTime is the last time the condition transitioned from one status to another") message: Optional[StrictStr] = Field(default=None, description="message is a human-readable explanation containing details about the transition") + observed_generation: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("observedGeneration", "observed_generation"), serialization_alias="observedGeneration", description="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.") reason: Optional[StrictStr] = Field(default=None, description="reason is the reason for the condition's last transition.") status: StrictStr = Field(description="status is the status of the condition (True, False, Unknown)") type: StrictStr = Field(description="type describes the current condition") openapi_types: ClassVar[Dict[str, str]] = { "last_transition_time": "datetime", "message": "str", + "observed_generation": "int", "reason": "str", "status": "str", "type": "str" @@ -120,11 +122,12 @@ class V2HorizontalPodAutoscalerCondition(BaseModel): attribute_map: ClassVar[Dict[str, str]] = { "last_transition_time": "lastTransitionTime", "message": "message", + "observed_generation": "observedGeneration", "reason": "reason", "status": "status", "type": "type" } - __properties: ClassVar[List[str]] = ["lastTransitionTime", "message", "reason", "status", "type"] + __properties: ClassVar[List[str]] = ["lastTransitionTime", "message", "observedGeneration", "reason", "status", "type"] @classmethod def __preprocess_input_names( @@ -138,6 +141,9 @@ def __preprocess_input_names( if "lastTransitionTime" not in obj and "last_transition_time" in obj: obj["lastTransitionTime"] = obj["last_transition_time"] obj.pop("last_transition_time", None) + if "observedGeneration" not in obj and "observed_generation" in obj: + obj["observedGeneration"] = obj["observed_generation"] + obj.pop("observed_generation", None) return obj model_config = ConfigDict( @@ -189,6 +195,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: return { ("lastTransitionTime" if serialize else "last_transition_time"): _to_legacy_value(getattr(self, "last_transition_time", None), serialize), ("message" if serialize else "message"): _to_legacy_value(getattr(self, "message", None), serialize), + ("observedGeneration" if serialize else "observed_generation"): _to_legacy_value(getattr(self, "observed_generation", None), serialize), ("reason" if serialize else "reason"): _to_legacy_value(getattr(self, "reason", None), serialize), ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), ("type" if serialize else "type"): _to_legacy_value(getattr(self, "type", None), serialize), @@ -246,6 +253,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "lastTransitionTime": obj.get("lastTransitionTime"), "message": obj.get("message"), + "observedGeneration": obj.get("observedGeneration"), "reason": obj.get("reason"), "status": obj.get("status"), "type": obj.get("type") diff --git a/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_list.py b/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_list.py index 2661f12399..1a4d0ade44 100644 --- a/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_list.py +++ b/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_spec.py b/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_spec.py index fdbaf50e79..30002a6593 100644 --- a/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_spec.py +++ b/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_status.py b/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_status.py index d0ff5f584a..e803cc587a 100644 --- a/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_status.py +++ b/kubernetes/aio/client/models/v2_horizontal_pod_autoscaler_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_hpa_scaling_policy.py b/kubernetes/aio/client/models/v2_hpa_scaling_policy.py index f99b481279..8e63e1a4a5 100644 --- a/kubernetes/aio/client/models/v2_hpa_scaling_policy.py +++ b/kubernetes/aio/client/models/v2_hpa_scaling_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_hpa_scaling_rules.py b/kubernetes/aio/client/models/v2_hpa_scaling_rules.py index d0b570f961..95fd66a890 100644 --- a/kubernetes/aio/client/models/v2_hpa_scaling_rules.py +++ b/kubernetes/aio/client/models/v2_hpa_scaling_rules.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -96,7 +96,7 @@ def _to_openapi_value(value: Any) -> Any: class V2HPAScalingRules(BaseModel): """ - 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.) + 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. Attributes: openapi_types (dict): The key is attribute name @@ -107,7 +107,7 @@ class V2HPAScalingRules(BaseModel): policies: Optional[List[V2HPAScalingPolicy]] = Field(default=None, description="policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window.") select_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("selectPolicy", "select_policy"), serialization_alias="selectPolicy", description="selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.") stabilization_window_seconds: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("stabilizationWindowSeconds", "stabilization_window_seconds"), serialization_alias="stabilizationWindowSeconds", description="stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).") - tolerance: Optional[StrictStr] = Field(default=None, description="tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%). For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi. This is an beta field and requires the HPAConfigurableTolerance feature gate to be enabled.") + tolerance: Optional[StrictStr] = Field(default=None, description="tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%). For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.") openapi_types: ClassVar[Dict[str, str]] = { "policies": "List[V2HPAScalingPolicy]", "select_policy": "str", diff --git a/kubernetes/aio/client/models/v2_metric_identifier.py b/kubernetes/aio/client/models/v2_metric_identifier.py index c9bf93f0ce..2e5c691460 100644 --- a/kubernetes/aio/client/models/v2_metric_identifier.py +++ b/kubernetes/aio/client/models/v2_metric_identifier.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_metric_spec.py b/kubernetes/aio/client/models/v2_metric_spec.py index 3eee3dbe2f..f294b2440c 100644 --- a/kubernetes/aio/client/models/v2_metric_spec.py +++ b/kubernetes/aio/client/models/v2_metric_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_metric_status.py b/kubernetes/aio/client/models/v2_metric_status.py index 7801bc456e..a2c5a42971 100644 --- a/kubernetes/aio/client/models/v2_metric_status.py +++ b/kubernetes/aio/client/models/v2_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_metric_target.py b/kubernetes/aio/client/models/v2_metric_target.py index 1a13e63dbf..cd5c47b8d0 100644 --- a/kubernetes/aio/client/models/v2_metric_target.py +++ b/kubernetes/aio/client/models/v2_metric_target.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_metric_value_status.py b/kubernetes/aio/client/models/v2_metric_value_status.py index 87dc095579..b3fe5b4ca7 100644 --- a/kubernetes/aio/client/models/v2_metric_value_status.py +++ b/kubernetes/aio/client/models/v2_metric_value_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -103,7 +103,7 @@ class V2MetricValueStatus(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - average_utilization: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("averageUtilization", "average_utilization"), serialization_alias="averageUtilization", description="currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.") + average_utilization: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("averageUtilization", "average_utilization"), serialization_alias="averageUtilization", description="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.") average_value: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("averageValue", "average_value"), serialization_alias="averageValue", description="averageValue is the current value of the average of the metric across all relevant pods (as a quantity)") value: Optional[StrictStr] = Field(default=None, description="value is the current value of the metric (as a quantity).") openapi_types: ClassVar[Dict[str, str]] = { diff --git a/kubernetes/aio/client/models/v2_object_metric_source.py b/kubernetes/aio/client/models/v2_object_metric_source.py index b3d6bce684..2cf04477cf 100644 --- a/kubernetes/aio/client/models/v2_object_metric_source.py +++ b/kubernetes/aio/client/models/v2_object_metric_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_object_metric_status.py b/kubernetes/aio/client/models/v2_object_metric_status.py index 45efa14b5f..4002d71b1f 100644 --- a/kubernetes/aio/client/models/v2_object_metric_status.py +++ b/kubernetes/aio/client/models/v2_object_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_pods_metric_source.py b/kubernetes/aio/client/models/v2_pods_metric_source.py index 7e8bba342b..85e9caff92 100644 --- a/kubernetes/aio/client/models/v2_pods_metric_source.py +++ b/kubernetes/aio/client/models/v2_pods_metric_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_pods_metric_status.py b/kubernetes/aio/client/models/v2_pods_metric_status.py index 1681fba57e..d698edebae 100644 --- a/kubernetes/aio/client/models/v2_pods_metric_status.py +++ b/kubernetes/aio/client/models/v2_pods_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_resource_metric_source.py b/kubernetes/aio/client/models/v2_resource_metric_source.py index d7f9d73cf4..463341bb20 100644 --- a/kubernetes/aio/client/models/v2_resource_metric_source.py +++ b/kubernetes/aio/client/models/v2_resource_metric_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2_resource_metric_status.py b/kubernetes/aio/client/models/v2_resource_metric_status.py index 3d65b4d272..6317e7fe73 100644 --- a/kubernetes/aio/client/models/v2_resource_metric_status.py +++ b/kubernetes/aio/client/models/v2_resource_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2beta1_api_group_discovery.py b/kubernetes/aio/client/models/v2beta1_api_group_discovery.py index 55b640fc6e..1d63a6bf3d 100644 --- a/kubernetes/aio/client/models/v2beta1_api_group_discovery.py +++ b/kubernetes/aio/client/models/v2beta1_api_group_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2beta1_api_group_discovery_list.py b/kubernetes/aio/client/models/v2beta1_api_group_discovery_list.py index 0b47d6bb8c..d08b2dd66e 100644 --- a/kubernetes/aio/client/models/v2beta1_api_group_discovery_list.py +++ b/kubernetes/aio/client/models/v2beta1_api_group_discovery_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2beta1_api_resource_discovery.py b/kubernetes/aio/client/models/v2beta1_api_resource_discovery.py index 54a3862c66..8d19e379cb 100644 --- a/kubernetes/aio/client/models/v2beta1_api_resource_discovery.py +++ b/kubernetes/aio/client/models/v2beta1_api_resource_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2beta1_api_subresource_discovery.py b/kubernetes/aio/client/models/v2beta1_api_subresource_discovery.py index 3f77904284..b52615943d 100644 --- a/kubernetes/aio/client/models/v2beta1_api_subresource_discovery.py +++ b/kubernetes/aio/client/models/v2beta1_api_subresource_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/v2beta1_api_version_discovery.py b/kubernetes/aio/client/models/v2beta1_api_version_discovery.py index f2b077dd1b..9d4b98f984 100644 --- a/kubernetes/aio/client/models/v2beta1_api_version_discovery.py +++ b/kubernetes/aio/client/models/v2beta1_api_version_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/models/version_info.py b/kubernetes/aio/client/models/version_info.py index 735b378532..d31a9841ba 100644 --- a/kubernetes/aio/client/models/version_info.py +++ b/kubernetes/aio/client/models/version_info.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/docs/AdmissionregistrationApi.md b/kubernetes/aio/docs/AdmissionregistrationApi.md index 4dd5cae956..38d5ebdd04 100644 --- a/kubernetes/aio/docs/AdmissionregistrationApi.md +++ b/kubernetes/aio/docs/AdmissionregistrationApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/ApiextensionsApi.md b/kubernetes/aio/docs/ApiextensionsApi.md index 002818b05c..db0df98e9b 100644 --- a/kubernetes/aio/docs/ApiextensionsApi.md +++ b/kubernetes/aio/docs/ApiextensionsApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/ApiregistrationApi.md b/kubernetes/aio/docs/ApiregistrationApi.md index 65226a52ab..4cd082c95f 100644 --- a/kubernetes/aio/docs/ApiregistrationApi.md +++ b/kubernetes/aio/docs/ApiregistrationApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/ApisApi.md b/kubernetes/aio/docs/ApisApi.md index 74d60a6e3a..7ce3a057f9 100644 --- a/kubernetes/aio/docs/ApisApi.md +++ b/kubernetes/aio/docs/ApisApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/AppsApi.md b/kubernetes/aio/docs/AppsApi.md index 6e741fed44..c0e1ffcd6f 100644 --- a/kubernetes/aio/docs/AppsApi.md +++ b/kubernetes/aio/docs/AppsApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/AuthenticationApi.md b/kubernetes/aio/docs/AuthenticationApi.md index 0c2a48583f..9b8cd3d1a9 100644 --- a/kubernetes/aio/docs/AuthenticationApi.md +++ b/kubernetes/aio/docs/AuthenticationApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/AuthorizationApi.md b/kubernetes/aio/docs/AuthorizationApi.md index 3781091f14..52e8217284 100644 --- a/kubernetes/aio/docs/AuthorizationApi.md +++ b/kubernetes/aio/docs/AuthorizationApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/AutoscalingApi.md b/kubernetes/aio/docs/AutoscalingApi.md index 441ec5e9b2..154cf2ecc0 100644 --- a/kubernetes/aio/docs/AutoscalingApi.md +++ b/kubernetes/aio/docs/AutoscalingApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/BatchApi.md b/kubernetes/aio/docs/BatchApi.md index 22f2a8e920..04450991e7 100644 --- a/kubernetes/aio/docs/BatchApi.md +++ b/kubernetes/aio/docs/BatchApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/CertificatesApi.md b/kubernetes/aio/docs/CertificatesApi.md index 4fd104ccde..8091308010 100644 --- a/kubernetes/aio/docs/CertificatesApi.md +++ b/kubernetes/aio/docs/CertificatesApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/CertificatesV1Api.md b/kubernetes/aio/docs/CertificatesV1Api.md index c3055da817..18f65dcb59 100644 --- a/kubernetes/aio/docs/CertificatesV1Api.md +++ b/kubernetes/aio/docs/CertificatesV1Api.md @@ -5,19 +5,37 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_certificate_signing_request**](CertificatesV1Api.md#create_certificate_signing_request) | **POST** /apis/certificates.k8s.io/v1/certificatesigningrequests | +[**create_cluster_trust_bundle**](CertificatesV1Api.md#create_cluster_trust_bundle) | **POST** /apis/certificates.k8s.io/v1/clustertrustbundles | +[**create_namespaced_pod_certificate_request**](CertificatesV1Api.md#create_namespaced_pod_certificate_request) | **POST** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests | [**delete_certificate_signing_request**](CertificatesV1Api.md#delete_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | +[**delete_cluster_trust_bundle**](CertificatesV1Api.md#delete_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1/clustertrustbundles/{name} | [**delete_collection_certificate_signing_request**](CertificatesV1Api.md#delete_collection_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1/certificatesigningrequests | +[**delete_collection_cluster_trust_bundle**](CertificatesV1Api.md#delete_collection_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1/clustertrustbundles | +[**delete_collection_namespaced_pod_certificate_request**](CertificatesV1Api.md#delete_collection_namespaced_pod_certificate_request) | **DELETE** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests | +[**delete_namespaced_pod_certificate_request**](CertificatesV1Api.md#delete_namespaced_pod_certificate_request) | **DELETE** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name} | [**get_api_resources**](CertificatesV1Api.md#get_api_resources) | **GET** /apis/certificates.k8s.io/v1/ | [**list_certificate_signing_request**](CertificatesV1Api.md#list_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests | +[**list_cluster_trust_bundle**](CertificatesV1Api.md#list_cluster_trust_bundle) | **GET** /apis/certificates.k8s.io/v1/clustertrustbundles | +[**list_namespaced_pod_certificate_request**](CertificatesV1Api.md#list_namespaced_pod_certificate_request) | **GET** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests | +[**list_pod_certificate_request_for_all_namespaces**](CertificatesV1Api.md#list_pod_certificate_request_for_all_namespaces) | **GET** /apis/certificates.k8s.io/v1/podcertificaterequests | [**patch_certificate_signing_request**](CertificatesV1Api.md#patch_certificate_signing_request) | **PATCH** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | [**patch_certificate_signing_request_approval**](CertificatesV1Api.md#patch_certificate_signing_request_approval) | **PATCH** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval | [**patch_certificate_signing_request_status**](CertificatesV1Api.md#patch_certificate_signing_request_status) | **PATCH** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status | +[**patch_cluster_trust_bundle**](CertificatesV1Api.md#patch_cluster_trust_bundle) | **PATCH** /apis/certificates.k8s.io/v1/clustertrustbundles/{name} | +[**patch_namespaced_pod_certificate_request**](CertificatesV1Api.md#patch_namespaced_pod_certificate_request) | **PATCH** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name} | +[**patch_namespaced_pod_certificate_request_status**](CertificatesV1Api.md#patch_namespaced_pod_certificate_request_status) | **PATCH** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status | [**read_certificate_signing_request**](CertificatesV1Api.md#read_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | [**read_certificate_signing_request_approval**](CertificatesV1Api.md#read_certificate_signing_request_approval) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval | [**read_certificate_signing_request_status**](CertificatesV1Api.md#read_certificate_signing_request_status) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status | +[**read_cluster_trust_bundle**](CertificatesV1Api.md#read_cluster_trust_bundle) | **GET** /apis/certificates.k8s.io/v1/clustertrustbundles/{name} | +[**read_namespaced_pod_certificate_request**](CertificatesV1Api.md#read_namespaced_pod_certificate_request) | **GET** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name} | +[**read_namespaced_pod_certificate_request_status**](CertificatesV1Api.md#read_namespaced_pod_certificate_request_status) | **GET** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status | [**replace_certificate_signing_request**](CertificatesV1Api.md#replace_certificate_signing_request) | **PUT** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | [**replace_certificate_signing_request_approval**](CertificatesV1Api.md#replace_certificate_signing_request_approval) | **PUT** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval | [**replace_certificate_signing_request_status**](CertificatesV1Api.md#replace_certificate_signing_request_status) | **PUT** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status | +[**replace_cluster_trust_bundle**](CertificatesV1Api.md#replace_cluster_trust_bundle) | **PUT** /apis/certificates.k8s.io/v1/clustertrustbundles/{name} | +[**replace_namespaced_pod_certificate_request**](CertificatesV1Api.md#replace_namespaced_pod_certificate_request) | **PUT** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name} | +[**replace_namespaced_pod_certificate_request_status**](CertificatesV1Api.md#replace_namespaced_pod_certificate_request_status) | **PUT** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status | # **create_certificate_signing_request** @@ -107,6 +125,182 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_cluster_trust_bundle** +> V1ClusterTrustBundle create_cluster_trust_bundle(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +create a ClusterTrustBundle + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_cluster_trust_bundle import V1ClusterTrustBundle +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + body = kubernetes.aio.client.V1ClusterTrustBundle() # V1ClusterTrustBundle | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = await api_instance.create_cluster_trust_bundle(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of CertificatesV1Api->create_cluster_trust_bundle:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->create_cluster_trust_bundle: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ClusterTrustBundle**](V1ClusterTrustBundle.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1ClusterTrustBundle**](V1ClusterTrustBundle.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 | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_pod_certificate_request** +> V1PodCertificateRequest create_namespaced_pod_certificate_request(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +create a PodCertificateRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_pod_certificate_request import V1PodCertificateRequest +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.aio.client.V1PodCertificateRequest() # V1PodCertificateRequest | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = await api_instance.create_namespaced_pod_certificate_request(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of CertificatesV1Api->create_namespaced_pod_certificate_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->create_namespaced_pod_certificate_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1PodCertificateRequest**](V1PodCertificateRequest.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1PodCertificateRequest**](V1PodCertificateRequest.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 | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_certificate_signing_request** > object delete_certificate_signing_request(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) @@ -199,6 +393,98 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_cluster_trust_bundle** +> object delete_cluster_trust_bundle(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + +delete a ClusterTrustBundle + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the ClusterTrustBundle + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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 = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = await api_instance.delete_cluster_trust_bundle(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of CertificatesV1Api->delete_cluster_trust_bundle:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->delete_cluster_trust_bundle: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterTrustBundle | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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 + +**object** + +### 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 | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_collection_certificate_signing_request** > V1Status delete_collection_certificate_signing_request(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) @@ -258,7 +544,1427 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: print("The response of CertificatesV1Api->delete_collection_certificate_signing_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->delete_collection_certificate_signing_request: %s\n" % e) + print("Exception when calling CertificatesV1Api->delete_collection_certificate_signing_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| 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**: 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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_cluster_trust_bundle** +> V1Status delete_collection_cluster_trust_bundle(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + +delete collection of ClusterTrustBundle + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.aio.client.models.v1_status import V1Status +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = await api_instance.delete_collection_cluster_trust_bundle(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of CertificatesV1Api->delete_collection_cluster_trust_bundle:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->delete_collection_cluster_trust_bundle: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| 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**: 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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_pod_certificate_request** +> V1Status delete_collection_namespaced_pod_certificate_request(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + +delete collection of PodCertificateRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.aio.client.models.v1_status import V1Status +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = await api_instance.delete_collection_namespaced_pod_certificate_request(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of CertificatesV1Api->delete_collection_namespaced_pod_certificate_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->delete_collection_namespaced_pod_certificate_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| 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**: 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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_pod_certificate_request** +> object delete_namespaced_pod_certificate_request(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + +delete a PodCertificateRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the PodCertificateRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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 = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = await api_instance.delete_namespaced_pod_certificate_request(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of CertificatesV1Api->delete_namespaced_pod_certificate_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->delete_namespaced_pod_certificate_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodCertificateRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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 + +**object** + +### 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 | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_api_resources** +> V1APIResourceList get_api_resources() + +get available resources + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_api_resource_list import V1APIResourceList +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + + try: + api_response = await api_instance.get_api_resources() + print("The response of CertificatesV1Api->get_api_resources:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->get_api_resources: %s\n" % e) +``` + + + +### 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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_certificate_signing_request** +> V1CertificateSigningRequestList list_certificate_signing_request(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind CertificateSigningRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_certificate_signing_request_list import V1CertificateSigningRequestList +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', 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) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = await api_instance.list_certificate_signing_request(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of CertificatesV1Api->list_certificate_signing_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->list_certificate_signing_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', 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] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1CertificateSigningRequestList**](V1CertificateSigningRequestList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_cluster_trust_bundle** +> V1ClusterTrustBundleList list_cluster_trust_bundle(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind ClusterTrustBundle + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_cluster_trust_bundle_list import V1ClusterTrustBundleList +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', 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) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = await api_instance.list_cluster_trust_bundle(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of CertificatesV1Api->list_cluster_trust_bundle:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->list_cluster_trust_bundle: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', 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] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ClusterTrustBundleList**](V1ClusterTrustBundleList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_pod_certificate_request** +> V1PodCertificateRequestList list_namespaced_pod_certificate_request(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind PodCertificateRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_pod_certificate_request_list import V1PodCertificateRequestList +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = await api_instance.list_namespaced_pod_certificate_request(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of CertificatesV1Api->list_namespaced_pod_certificate_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->list_namespaced_pod_certificate_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1PodCertificateRequestList**](V1PodCertificateRequestList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_pod_certificate_request_for_all_namespaces** +> V1PodCertificateRequestList list_pod_certificate_request_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind PodCertificateRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_pod_certificate_request_list import V1PodCertificateRequestList +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = await api_instance.list_pod_certificate_request_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of CertificatesV1Api->list_pod_certificate_request_for_all_namespaces:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->list_pod_certificate_request_for_all_namespaces: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1PodCertificateRequestList**](V1PodCertificateRequestList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_certificate_signing_request** +> V1CertificateSigningRequest patch_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified CertificateSigningRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of CertificatesV1Api->patch_certificate_signing_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->patch_certificate_signing_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_certificate_signing_request_approval** +> V1CertificateSigningRequest patch_certificate_signing_request_approval(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update approval of the specified CertificateSigningRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_certificate_signing_request_approval(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of CertificatesV1Api->patch_certificate_signing_request_approval:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->patch_certificate_signing_request_approval: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_certificate_signing_request_status** +> V1CertificateSigningRequest patch_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update status of the specified CertificateSigningRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of CertificatesV1Api->patch_certificate_signing_request_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->patch_certificate_signing_request_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_cluster_trust_bundle** +> V1ClusterTrustBundle patch_cluster_trust_bundle(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified ClusterTrustBundle + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_cluster_trust_bundle import V1ClusterTrustBundle +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the ClusterTrustBundle + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_cluster_trust_bundle(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of CertificatesV1Api->patch_cluster_trust_bundle:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->patch_cluster_trust_bundle: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterTrustBundle | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1ClusterTrustBundle**](V1ClusterTrustBundle.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_pod_certificate_request** +> V1PodCertificateRequest patch_namespaced_pod_certificate_request(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified PodCertificateRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_pod_certificate_request import V1PodCertificateRequest +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the PodCertificateRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_namespaced_pod_certificate_request(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of CertificatesV1Api->patch_namespaced_pod_certificate_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->patch_namespaced_pod_certificate_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodCertificateRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1PodCertificateRequest**](V1PodCertificateRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_pod_certificate_request_status** +> V1PodCertificateRequest patch_namespaced_pod_certificate_request_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update status of the specified PodCertificateRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_pod_certificate_request import V1PodCertificateRequest +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the PodCertificateRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_namespaced_pod_certificate_request_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of CertificatesV1Api->patch_namespaced_pod_certificate_request_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->patch_namespaced_pod_certificate_request_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodCertificateRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1PodCertificateRequest**](V1PodCertificateRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_certificate_signing_request** +> V1CertificateSigningRequest read_certificate_signing_request(name, pretty=pretty) + +read the specified CertificateSigningRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest + pretty = 'pretty_example' # str | If 'true', 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) + + try: + api_response = await api_instance.read_certificate_signing_request(name, pretty=pretty) + print("The response of CertificatesV1Api->read_certificate_signing_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->read_certificate_signing_request: %s\n" % e) ``` @@ -268,26 +1974,12 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **grace_period_seconds** | **int**| 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] - **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] - **orphan_dependents** | **bool**| 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] - **propagation_policy** | **str**| 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] - **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] - **timeout_seconds** | **int**| 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) +[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) ### Authorization @@ -307,10 +1999,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_resources** -> V1APIResourceList get_api_resources() +# **read_certificate_signing_request_approval** +> V1CertificateSigningRequest read_certificate_signing_request_approval(name, pretty=pretty) -get available resources +read approval of the specified CertificateSigningRequest ### Example @@ -318,7 +2010,7 @@ get available resources ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1_api_resource_list import V1APIResourceList +from kubernetes.aio.client.models.v1_certificate_signing_request import V1CertificateSigningRequest from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -343,24 +2035,30 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest + pretty = 'pretty_example' # str | If 'true', 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) try: - api_response = await api_instance.get_api_resources() - print("The response of CertificatesV1Api->get_api_resources:\n") + api_response = await api_instance.read_certificate_signing_request_approval(name, pretty=pretty) + print("The response of CertificatesV1Api->read_certificate_signing_request_approval:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->get_api_resources: %s\n" % e) + print("Exception when calling CertificatesV1Api->read_certificate_signing_request_approval: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | + **pretty** | **str**| If 'true', 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) +[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) ### Authorization @@ -380,10 +2078,10 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_certificate_signing_request** -> V1CertificateSigningRequestList list_certificate_signing_request(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **read_certificate_signing_request_status** +> V1CertificateSigningRequest read_certificate_signing_request_status(name, pretty=pretty) -list or watch objects of kind CertificateSigningRequest +read status of the specified CertificateSigningRequest ### Example @@ -391,7 +2089,7 @@ list or watch objects of kind CertificateSigningRequest ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1_certificate_signing_request_list import V1CertificateSigningRequestList +from kubernetes.aio.client.models.v1_certificate_signing_request import V1CertificateSigningRequest from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -416,25 +2114,15 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest pretty = 'pretty_example' # str | If 'true', 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) - allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) - field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) - resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = await api_instance.list_certificate_signing_request(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of CertificatesV1Api->list_certificate_signing_request:\n") + api_response = await api_instance.read_certificate_signing_request_status(name, pretty=pretty) + print("The response of CertificatesV1Api->read_certificate_signing_request_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->list_certificate_signing_request: %s\n" % e) + print("Exception when calling CertificatesV1Api->read_certificate_signing_request_status: %s\n" % e) ``` @@ -444,22 +2132,12 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | **pretty** | **str**| If 'true', 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] - **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] - **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1CertificateSigningRequestList**](V1CertificateSigningRequestList.md) +[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) ### Authorization @@ -468,7 +2146,7 @@ Name | Type | Description | Notes ### 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 @@ -479,10 +2157,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_certificate_signing_request** -> V1CertificateSigningRequest patch_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **read_cluster_trust_bundle** +> V1ClusterTrustBundle read_cluster_trust_bundle(name, pretty=pretty) -partially update the specified CertificateSigningRequest +read the specified ClusterTrustBundle ### Example @@ -490,7 +2168,7 @@ partially update the specified CertificateSigningRequest ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.aio.client.models.v1_cluster_trust_bundle import V1ClusterTrustBundle from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -515,20 +2193,15 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) - name = 'name_example' # str | name of the CertificateSigningRequest - body = None # object | + name = 'name_example' # str | name of the ClusterTrustBundle pretty = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) - field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) try: - api_response = await api_instance.patch_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of CertificatesV1Api->patch_certificate_signing_request:\n") + api_response = await api_instance.read_cluster_trust_bundle(name, pretty=pretty) + print("The response of CertificatesV1Api->read_cluster_trust_bundle:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->patch_certificate_signing_request: %s\n" % e) + print("Exception when calling CertificatesV1Api->read_cluster_trust_bundle: %s\n" % e) ``` @@ -538,17 +2211,12 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **body** | **object**| | + **name** | **str**| name of the ClusterTrustBundle | **pretty** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] - **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 -[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) +[**V1ClusterTrustBundle**](V1ClusterTrustBundle.md) ### Authorization @@ -556,7 +2224,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details @@ -564,15 +2232,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_certificate_signing_request_approval** -> V1CertificateSigningRequest patch_certificate_signing_request_approval(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **read_namespaced_pod_certificate_request** +> V1PodCertificateRequest read_namespaced_pod_certificate_request(name, namespace, pretty=pretty) -partially update approval of the specified CertificateSigningRequest +read the specified PodCertificateRequest ### Example @@ -580,7 +2247,7 @@ partially update approval of the specified CertificateSigningRequest ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.aio.client.models.v1_pod_certificate_request import V1PodCertificateRequest from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -605,20 +2272,16 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) - name = 'name_example' # str | name of the CertificateSigningRequest - body = None # object | + name = 'name_example' # str | name of the PodCertificateRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) - field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) try: - api_response = await api_instance.patch_certificate_signing_request_approval(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of CertificatesV1Api->patch_certificate_signing_request_approval:\n") + api_response = await api_instance.read_namespaced_pod_certificate_request(name, namespace, pretty=pretty) + print("The response of CertificatesV1Api->read_namespaced_pod_certificate_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->patch_certificate_signing_request_approval: %s\n" % e) + print("Exception when calling CertificatesV1Api->read_namespaced_pod_certificate_request: %s\n" % e) ``` @@ -628,17 +2291,13 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **body** | **object**| | + **name** | **str**| name of the PodCertificateRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] - **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 -[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) +[**V1PodCertificateRequest**](V1PodCertificateRequest.md) ### Authorization @@ -646,7 +2305,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details @@ -654,15 +2313,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_certificate_signing_request_status** -> V1CertificateSigningRequest patch_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **read_namespaced_pod_certificate_request_status** +> V1PodCertificateRequest read_namespaced_pod_certificate_request_status(name, namespace, pretty=pretty) -partially update status of the specified CertificateSigningRequest +read status of the specified PodCertificateRequest ### Example @@ -670,7 +2328,7 @@ partially update status of the specified CertificateSigningRequest ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.aio.client.models.v1_pod_certificate_request import V1PodCertificateRequest from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -695,20 +2353,16 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) - name = 'name_example' # str | name of the CertificateSigningRequest - body = None # object | + name = 'name_example' # str | name of the PodCertificateRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) - field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) try: - api_response = await api_instance.patch_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of CertificatesV1Api->patch_certificate_signing_request_status:\n") + api_response = await api_instance.read_namespaced_pod_certificate_request_status(name, namespace, pretty=pretty) + print("The response of CertificatesV1Api->read_namespaced_pod_certificate_request_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->patch_certificate_signing_request_status: %s\n" % e) + print("Exception when calling CertificatesV1Api->read_namespaced_pod_certificate_request_status: %s\n" % e) ``` @@ -718,17 +2372,13 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **body** | **object**| | + **name** | **str**| name of the PodCertificateRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] - **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 -[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) +[**V1PodCertificateRequest**](V1PodCertificateRequest.md) ### Authorization @@ -736,7 +2386,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details @@ -744,15 +2394,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_certificate_signing_request** -> V1CertificateSigningRequest read_certificate_signing_request(name, pretty=pretty) +# **replace_certificate_signing_request** +> V1CertificateSigningRequest replace_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -read the specified CertificateSigningRequest +replace the specified CertificateSigningRequest ### Example @@ -786,14 +2435,18 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) name = 'name_example' # str | name of the CertificateSigningRequest + body = kubernetes.aio.client.V1CertificateSigningRequest() # V1CertificateSigningRequest | pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = await api_instance.read_certificate_signing_request(name, pretty=pretty) - print("The response of CertificatesV1Api->read_certificate_signing_request:\n") + api_response = await api_instance.replace_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of CertificatesV1Api->replace_certificate_signing_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->read_certificate_signing_request: %s\n" % e) + print("Exception when calling CertificatesV1Api->replace_certificate_signing_request: %s\n" % e) ``` @@ -804,7 +2457,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CertificateSigningRequest | + **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 @@ -824,14 +2481,15 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_certificate_signing_request_approval** -> V1CertificateSigningRequest read_certificate_signing_request_approval(name, pretty=pretty) +# **replace_certificate_signing_request_approval** +> V1CertificateSigningRequest replace_certificate_signing_request_approval(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -read approval of the specified CertificateSigningRequest +replace approval of the specified CertificateSigningRequest ### Example @@ -865,14 +2523,18 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) name = 'name_example' # str | name of the CertificateSigningRequest + body = kubernetes.aio.client.V1CertificateSigningRequest() # V1CertificateSigningRequest | pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = await api_instance.read_certificate_signing_request_approval(name, pretty=pretty) - print("The response of CertificatesV1Api->read_certificate_signing_request_approval:\n") + api_response = await api_instance.replace_certificate_signing_request_approval(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of CertificatesV1Api->replace_certificate_signing_request_approval:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->read_certificate_signing_request_approval: %s\n" % e) + print("Exception when calling CertificatesV1Api->replace_certificate_signing_request_approval: %s\n" % e) ``` @@ -883,7 +2545,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CertificateSigningRequest | + **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 @@ -903,14 +2569,15 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_certificate_signing_request_status** -> V1CertificateSigningRequest read_certificate_signing_request_status(name, pretty=pretty) +# **replace_certificate_signing_request_status** +> V1CertificateSigningRequest replace_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -read status of the specified CertificateSigningRequest +replace status of the specified CertificateSigningRequest ### Example @@ -944,14 +2611,18 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) name = 'name_example' # str | name of the CertificateSigningRequest + body = kubernetes.aio.client.V1CertificateSigningRequest() # V1CertificateSigningRequest | pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = await api_instance.read_certificate_signing_request_status(name, pretty=pretty) - print("The response of CertificatesV1Api->read_certificate_signing_request_status:\n") + api_response = await api_instance.replace_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of CertificatesV1Api->replace_certificate_signing_request_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->read_certificate_signing_request_status: %s\n" % e) + print("Exception when calling CertificatesV1Api->replace_certificate_signing_request_status: %s\n" % e) ``` @@ -962,7 +2633,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CertificateSigningRequest | + **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 @@ -982,14 +2657,15 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_certificate_signing_request** -> V1CertificateSigningRequest replace_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +# **replace_cluster_trust_bundle** +> V1ClusterTrustBundle replace_cluster_trust_bundle(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -replace the specified CertificateSigningRequest +replace the specified ClusterTrustBundle ### Example @@ -997,7 +2673,7 @@ replace the specified CertificateSigningRequest ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.aio.client.models.v1_cluster_trust_bundle import V1ClusterTrustBundle from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1022,19 +2698,19 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) - name = 'name_example' # str | name of the CertificateSigningRequest - body = kubernetes.aio.client.V1CertificateSigningRequest() # V1CertificateSigningRequest | + name = 'name_example' # str | name of the ClusterTrustBundle + body = kubernetes.aio.client.V1ClusterTrustBundle() # V1ClusterTrustBundle | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = await api_instance.replace_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of CertificatesV1Api->replace_certificate_signing_request:\n") + api_response = await api_instance.replace_cluster_trust_bundle(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of CertificatesV1Api->replace_cluster_trust_bundle:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->replace_certificate_signing_request: %s\n" % e) + print("Exception when calling CertificatesV1Api->replace_cluster_trust_bundle: %s\n" % e) ``` @@ -1044,8 +2720,8 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | + **name** | **str**| name of the ClusterTrustBundle | + **body** | [**V1ClusterTrustBundle**](V1ClusterTrustBundle.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -1053,7 +2729,7 @@ Name | Type | Description | Notes ### Return type -[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) +[**V1ClusterTrustBundle**](V1ClusterTrustBundle.md) ### Authorization @@ -1074,10 +2750,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_certificate_signing_request_approval** -> V1CertificateSigningRequest replace_certificate_signing_request_approval(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +# **replace_namespaced_pod_certificate_request** +> V1PodCertificateRequest replace_namespaced_pod_certificate_request(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -replace approval of the specified CertificateSigningRequest +replace the specified PodCertificateRequest ### Example @@ -1085,7 +2761,7 @@ replace approval of the specified CertificateSigningRequest ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.aio.client.models.v1_pod_certificate_request import V1PodCertificateRequest from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1110,19 +2786,20 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) - name = 'name_example' # str | name of the CertificateSigningRequest - body = kubernetes.aio.client.V1CertificateSigningRequest() # V1CertificateSigningRequest | + name = 'name_example' # str | name of the PodCertificateRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.aio.client.V1PodCertificateRequest() # V1PodCertificateRequest | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = await api_instance.replace_certificate_signing_request_approval(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of CertificatesV1Api->replace_certificate_signing_request_approval:\n") + api_response = await api_instance.replace_namespaced_pod_certificate_request(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of CertificatesV1Api->replace_namespaced_pod_certificate_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->replace_certificate_signing_request_approval: %s\n" % e) + print("Exception when calling CertificatesV1Api->replace_namespaced_pod_certificate_request: %s\n" % e) ``` @@ -1132,8 +2809,9 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | + **name** | **str**| name of the PodCertificateRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1PodCertificateRequest**](V1PodCertificateRequest.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -1141,7 +2819,7 @@ Name | Type | Description | Notes ### Return type -[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) +[**V1PodCertificateRequest**](V1PodCertificateRequest.md) ### Authorization @@ -1162,10 +2840,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_certificate_signing_request_status** -> V1CertificateSigningRequest replace_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +# **replace_namespaced_pod_certificate_request_status** +> V1PodCertificateRequest replace_namespaced_pod_certificate_request_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -replace status of the specified CertificateSigningRequest +replace status of the specified PodCertificateRequest ### Example @@ -1173,7 +2851,7 @@ replace status of the specified CertificateSigningRequest ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.aio.client.models.v1_pod_certificate_request import V1PodCertificateRequest from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1198,19 +2876,20 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.CertificatesV1Api(api_client) - name = 'name_example' # str | name of the CertificateSigningRequest - body = kubernetes.aio.client.V1CertificateSigningRequest() # V1CertificateSigningRequest | + name = 'name_example' # str | name of the PodCertificateRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.aio.client.V1PodCertificateRequest() # V1PodCertificateRequest | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = await api_instance.replace_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of CertificatesV1Api->replace_certificate_signing_request_status:\n") + api_response = await api_instance.replace_namespaced_pod_certificate_request_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of CertificatesV1Api->replace_namespaced_pod_certificate_request_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->replace_certificate_signing_request_status: %s\n" % e) + print("Exception when calling CertificatesV1Api->replace_namespaced_pod_certificate_request_status: %s\n" % e) ``` @@ -1220,8 +2899,9 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | + **name** | **str**| name of the PodCertificateRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1PodCertificateRequest**](V1PodCertificateRequest.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -1229,7 +2909,7 @@ Name | Type | Description | Notes ### Return type -[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) +[**V1PodCertificateRequest**](V1PodCertificateRequest.md) ### Authorization diff --git a/kubernetes/aio/docs/CoordinationApi.md b/kubernetes/aio/docs/CoordinationApi.md index 7b1038bf4a..e45d12dbd4 100644 --- a/kubernetes/aio/docs/CoordinationApi.md +++ b/kubernetes/aio/docs/CoordinationApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/CoreApi.md b/kubernetes/aio/docs/CoreApi.md index 33f9c182d6..9aa437c1ee 100644 --- a/kubernetes/aio/docs/CoreApi.md +++ b/kubernetes/aio/docs/CoreApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/DiscoveryApi.md b/kubernetes/aio/docs/DiscoveryApi.md index ec10303226..3a9fb94308 100644 --- a/kubernetes/aio/docs/DiscoveryApi.md +++ b/kubernetes/aio/docs/DiscoveryApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/EventsApi.md b/kubernetes/aio/docs/EventsApi.md index bb33eb9d43..4f3a9406ff 100644 --- a/kubernetes/aio/docs/EventsApi.md +++ b/kubernetes/aio/docs/EventsApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/FlowcontrolApiserverApi.md b/kubernetes/aio/docs/FlowcontrolApiserverApi.md index 1463d753a6..012137778e 100644 --- a/kubernetes/aio/docs/FlowcontrolApiserverApi.md +++ b/kubernetes/aio/docs/FlowcontrolApiserverApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/InternalApiserverApi.md b/kubernetes/aio/docs/InternalApiserverApi.md index d265dca42e..270dcc3585 100644 --- a/kubernetes/aio/docs/InternalApiserverApi.md +++ b/kubernetes/aio/docs/InternalApiserverApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/LifecycleApi.md b/kubernetes/aio/docs/LifecycleApi.md new file mode 100644 index 0000000000..e6952c6463 --- /dev/null +++ b/kubernetes/aio/docs/LifecycleApi.md @@ -0,0 +1,81 @@ +# kubernetes.aio.client.LifecycleApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_api_group**](LifecycleApi.md#get_api_group) | **GET** /apis/lifecycle.k8s.io/ | + + +# **get_api_group** +> V1APIGroup get_api_group() + +get information of a group + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_api_group import V1APIGroup +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.LifecycleApi(api_client) + + try: + api_response = await api_instance.get_api_group() + print("The response of LifecycleApi->get_api_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling LifecycleApi->get_api_group: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V1APIGroup**](V1APIGroup.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/NetworkingV1beta1Api.md b/kubernetes/aio/docs/LifecycleV1alpha1Api.md similarity index 64% rename from kubernetes/aio/docs/NetworkingV1beta1Api.md rename to kubernetes/aio/docs/LifecycleV1alpha1Api.md index 554015b398..67fc5ca81a 100644 --- a/kubernetes/aio/docs/NetworkingV1beta1Api.md +++ b/kubernetes/aio/docs/LifecycleV1alpha1Api.md @@ -1,33 +1,38 @@ -# kubernetes.aio.client.NetworkingV1beta1Api +# kubernetes.aio.client.LifecycleV1alpha1Api All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**create_ip_address**](NetworkingV1beta1Api.md#create_ip_address) | **POST** /apis/networking.k8s.io/v1beta1/ipaddresses | -[**create_service_cidr**](NetworkingV1beta1Api.md#create_service_cidr) | **POST** /apis/networking.k8s.io/v1beta1/servicecidrs | -[**delete_collection_ip_address**](NetworkingV1beta1Api.md#delete_collection_ip_address) | **DELETE** /apis/networking.k8s.io/v1beta1/ipaddresses | -[**delete_collection_service_cidr**](NetworkingV1beta1Api.md#delete_collection_service_cidr) | **DELETE** /apis/networking.k8s.io/v1beta1/servicecidrs | -[**delete_ip_address**](NetworkingV1beta1Api.md#delete_ip_address) | **DELETE** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | -[**delete_service_cidr**](NetworkingV1beta1Api.md#delete_service_cidr) | **DELETE** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | -[**get_api_resources**](NetworkingV1beta1Api.md#get_api_resources) | **GET** /apis/networking.k8s.io/v1beta1/ | -[**list_ip_address**](NetworkingV1beta1Api.md#list_ip_address) | **GET** /apis/networking.k8s.io/v1beta1/ipaddresses | -[**list_service_cidr**](NetworkingV1beta1Api.md#list_service_cidr) | **GET** /apis/networking.k8s.io/v1beta1/servicecidrs | -[**patch_ip_address**](NetworkingV1beta1Api.md#patch_ip_address) | **PATCH** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | -[**patch_service_cidr**](NetworkingV1beta1Api.md#patch_service_cidr) | **PATCH** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | -[**patch_service_cidr_status**](NetworkingV1beta1Api.md#patch_service_cidr_status) | **PATCH** /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status | -[**read_ip_address**](NetworkingV1beta1Api.md#read_ip_address) | **GET** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | -[**read_service_cidr**](NetworkingV1beta1Api.md#read_service_cidr) | **GET** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | -[**read_service_cidr_status**](NetworkingV1beta1Api.md#read_service_cidr_status) | **GET** /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status | -[**replace_ip_address**](NetworkingV1beta1Api.md#replace_ip_address) | **PUT** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | -[**replace_service_cidr**](NetworkingV1beta1Api.md#replace_service_cidr) | **PUT** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | -[**replace_service_cidr_status**](NetworkingV1beta1Api.md#replace_service_cidr_status) | **PUT** /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status | - - -# **create_ip_address** -> V1beta1IPAddress create_ip_address(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - -create an IPAddress +[**create_namespaced_eviction**](LifecycleV1alpha1Api.md#create_namespaced_eviction) | **POST** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions | +[**create_namespaced_eviction_request**](LifecycleV1alpha1Api.md#create_namespaced_eviction_request) | **POST** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests | +[**delete_collection_namespaced_eviction**](LifecycleV1alpha1Api.md#delete_collection_namespaced_eviction) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions | +[**delete_collection_namespaced_eviction_request**](LifecycleV1alpha1Api.md#delete_collection_namespaced_eviction_request) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests | +[**delete_namespaced_eviction**](LifecycleV1alpha1Api.md#delete_namespaced_eviction) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | +[**delete_namespaced_eviction_request**](LifecycleV1alpha1Api.md#delete_namespaced_eviction_request) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | +[**get_api_resources**](LifecycleV1alpha1Api.md#get_api_resources) | **GET** /apis/lifecycle.k8s.io/v1alpha1/ | +[**list_eviction_for_all_namespaces**](LifecycleV1alpha1Api.md#list_eviction_for_all_namespaces) | **GET** /apis/lifecycle.k8s.io/v1alpha1/evictions | +[**list_eviction_request_for_all_namespaces**](LifecycleV1alpha1Api.md#list_eviction_request_for_all_namespaces) | **GET** /apis/lifecycle.k8s.io/v1alpha1/evictionrequests | +[**list_namespaced_eviction**](LifecycleV1alpha1Api.md#list_namespaced_eviction) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions | +[**list_namespaced_eviction_request**](LifecycleV1alpha1Api.md#list_namespaced_eviction_request) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests | +[**patch_namespaced_eviction**](LifecycleV1alpha1Api.md#patch_namespaced_eviction) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | +[**patch_namespaced_eviction_request**](LifecycleV1alpha1Api.md#patch_namespaced_eviction_request) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | +[**patch_namespaced_eviction_request_status**](LifecycleV1alpha1Api.md#patch_namespaced_eviction_request_status) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status | +[**patch_namespaced_eviction_status**](LifecycleV1alpha1Api.md#patch_namespaced_eviction_status) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status | +[**read_namespaced_eviction**](LifecycleV1alpha1Api.md#read_namespaced_eviction) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | +[**read_namespaced_eviction_request**](LifecycleV1alpha1Api.md#read_namespaced_eviction_request) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | +[**read_namespaced_eviction_request_status**](LifecycleV1alpha1Api.md#read_namespaced_eviction_request_status) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status | +[**read_namespaced_eviction_status**](LifecycleV1alpha1Api.md#read_namespaced_eviction_status) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status | +[**replace_namespaced_eviction**](LifecycleV1alpha1Api.md#replace_namespaced_eviction) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | +[**replace_namespaced_eviction_request**](LifecycleV1alpha1Api.md#replace_namespaced_eviction_request) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | +[**replace_namespaced_eviction_request_status**](LifecycleV1alpha1Api.md#replace_namespaced_eviction_request_status) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status | +[**replace_namespaced_eviction_status**](LifecycleV1alpha1Api.md#replace_namespaced_eviction_status) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status | + + +# **create_namespaced_eviction** +> V1alpha1Eviction create_namespaced_eviction(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +create an Eviction ### Example @@ -35,7 +40,7 @@ create an IPAddress ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1beta1_ip_address import V1beta1IPAddress +from kubernetes.aio.client.models.v1alpha1_eviction import V1alpha1Eviction from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -59,19 +64,20 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.NetworkingV1beta1Api(api_client) - body = kubernetes.aio.client.V1beta1IPAddress() # V1beta1IPAddress | + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.aio.client.V1alpha1Eviction() # V1alpha1Eviction | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = await api_instance.create_ip_address(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of NetworkingV1beta1Api->create_ip_address:\n") + api_response = await api_instance.create_namespaced_eviction(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of LifecycleV1alpha1Api->create_namespaced_eviction:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->create_ip_address: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->create_namespaced_eviction: %s\n" % e) ``` @@ -81,7 +87,8 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1IPAddress**](V1beta1IPAddress.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1Eviction**](V1alpha1Eviction.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -89,7 +96,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1IPAddress**](V1beta1IPAddress.md) +[**V1alpha1Eviction**](V1alpha1Eviction.md) ### Authorization @@ -111,10 +118,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_service_cidr** -> V1beta1ServiceCIDR create_service_cidr(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +# **create_namespaced_eviction_request** +> V1alpha1EvictionRequest create_namespaced_eviction_request(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -create a ServiceCIDR +create an EvictionRequest ### Example @@ -122,7 +129,7 @@ create a ServiceCIDR ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR +from kubernetes.aio.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -146,19 +153,20 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.NetworkingV1beta1Api(api_client) - body = kubernetes.aio.client.V1beta1ServiceCIDR() # V1beta1ServiceCIDR | + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.aio.client.V1alpha1EvictionRequest() # V1alpha1EvictionRequest | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = await api_instance.create_service_cidr(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of NetworkingV1beta1Api->create_service_cidr:\n") + api_response = await api_instance.create_namespaced_eviction_request(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of LifecycleV1alpha1Api->create_namespaced_eviction_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->create_service_cidr: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->create_namespaced_eviction_request: %s\n" % e) ``` @@ -168,7 +176,8 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -176,7 +185,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -198,10 +207,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_ip_address** -> V1Status delete_collection_ip_address(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) +# **delete_collection_namespaced_eviction** +> V1Status delete_collection_namespaced_eviction(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) -delete collection of IPAddress +delete collection of Eviction ### Example @@ -234,7 +243,8 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.NetworkingV1beta1Api(api_client) + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -253,11 +263,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = await api_instance.delete_collection_ip_address(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - print("The response of NetworkingV1beta1Api->delete_collection_ip_address:\n") + api_response = await api_instance.delete_collection_namespaced_eviction(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of LifecycleV1alpha1Api->delete_collection_namespaced_eviction:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->delete_collection_ip_address: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->delete_collection_namespaced_eviction: %s\n" % e) ``` @@ -267,6 +277,7 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] @@ -306,10 +317,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_service_cidr** -> V1Status delete_collection_service_cidr(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) +# **delete_collection_namespaced_eviction_request** +> V1Status delete_collection_namespaced_eviction_request(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) -delete collection of ServiceCIDR +delete collection of EvictionRequest ### Example @@ -342,7 +353,8 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.NetworkingV1beta1Api(api_client) + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -361,11 +373,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = await api_instance.delete_collection_service_cidr(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - print("The response of NetworkingV1beta1Api->delete_collection_service_cidr:\n") + api_response = await api_instance.delete_collection_namespaced_eviction_request(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of LifecycleV1alpha1Api->delete_collection_namespaced_eviction_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->delete_collection_service_cidr: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->delete_collection_namespaced_eviction_request: %s\n" % e) ``` @@ -375,6 +387,7 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] @@ -414,10 +427,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_ip_address** -> object delete_ip_address(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) +# **delete_namespaced_eviction** +> object delete_namespaced_eviction(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) -delete an IPAddress +delete an Eviction ### Example @@ -449,8 +462,9 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the IPAddress + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the Eviction + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) grace_period_seconds = 56 # int | 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) @@ -460,11 +474,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = await api_instance.delete_ip_address(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of NetworkingV1beta1Api->delete_ip_address:\n") + api_response = await api_instance.delete_namespaced_eviction(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of LifecycleV1alpha1Api->delete_namespaced_eviction:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->delete_ip_address: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->delete_namespaced_eviction: %s\n" % e) ``` @@ -474,7 +488,8 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the IPAddress | + **name** | **str**| name of the Eviction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **grace_period_seconds** | **int**| 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] @@ -506,10 +521,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_service_cidr** -> object delete_service_cidr(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) +# **delete_namespaced_eviction_request** +> object delete_namespaced_eviction_request(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) -delete a ServiceCIDR +delete an EvictionRequest ### Example @@ -541,8 +556,9 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the ServiceCIDR + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the EvictionRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) grace_period_seconds = 56 # int | 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) @@ -552,11 +568,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = await api_instance.delete_service_cidr(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of NetworkingV1beta1Api->delete_service_cidr:\n") + api_response = await api_instance.delete_namespaced_eviction_request(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of LifecycleV1alpha1Api->delete_namespaced_eviction_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->delete_service_cidr: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->delete_namespaced_eviction_request: %s\n" % e) ``` @@ -566,7 +582,8 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ServiceCIDR | + **name** | **str**| name of the EvictionRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **grace_period_seconds** | **int**| 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] @@ -633,14 +650,14 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.NetworkingV1beta1Api(api_client) + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) try: api_response = await api_instance.get_api_resources() - print("The response of NetworkingV1beta1Api->get_api_resources:\n") + print("The response of LifecycleV1alpha1Api->get_api_resources:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->get_api_resources: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->get_api_resources: %s\n" % e) ``` @@ -671,10 +688,10 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_ip_address** -> V1beta1IPAddressList list_ip_address(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **list_eviction_for_all_namespaces** +> V1alpha1EvictionList list_eviction_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind IPAddress +list or watch objects of kind Eviction ### Example @@ -682,7 +699,7 @@ list or watch objects of kind IPAddress ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1beta1_ip_address_list import V1beta1IPAddressList +from kubernetes.aio.client.models.v1alpha1_eviction_list import V1alpha1EvictionList from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -706,13 +723,112 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.NetworkingV1beta1Api(api_client) + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = await api_instance.list_eviction_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of LifecycleV1alpha1Api->list_eviction_for_all_namespaces:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling LifecycleV1alpha1Api->list_eviction_for_all_namespaces: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1EvictionList**](V1alpha1EvictionList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_eviction_request_for_all_namespaces** +> V1alpha1EvictionRequestList list_eviction_request_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind EvictionRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha1_eviction_request_list import V1alpha1EvictionRequestList +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -721,11 +837,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = await api_instance.list_ip_address(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of NetworkingV1beta1Api->list_ip_address:\n") + api_response = await api_instance.list_eviction_request_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of LifecycleV1alpha1Api->list_eviction_request_for_all_namespaces:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->list_ip_address: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->list_eviction_request_for_all_namespaces: %s\n" % e) ``` @@ -735,6 +851,107 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1EvictionRequestList**](V1alpha1EvictionRequestList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_eviction** +> V1alpha1EvictionList list_namespaced_eviction(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind Eviction + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha1_eviction_list import V1alpha1EvictionList +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = await api_instance.list_namespaced_eviction(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of LifecycleV1alpha1Api->list_namespaced_eviction:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling LifecycleV1alpha1Api->list_namespaced_eviction: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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] **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] @@ -750,7 +967,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1IPAddressList**](V1beta1IPAddressList.md) +[**V1alpha1EvictionList**](V1alpha1EvictionList.md) ### Authorization @@ -770,10 +987,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_service_cidr** -> V1beta1ServiceCIDRList list_service_cidr(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_eviction_request** +> V1alpha1EvictionRequestList list_namespaced_eviction_request(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind ServiceCIDR +list or watch objects of kind EvictionRequest ### Example @@ -781,7 +998,7 @@ list or watch objects of kind ServiceCIDR ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1beta1_service_cidr_list import V1beta1ServiceCIDRList +from kubernetes.aio.client.models.v1alpha1_eviction_request_list import V1alpha1EvictionRequestList from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -805,7 +1022,8 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.NetworkingV1beta1Api(api_client) + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) @@ -820,11 +1038,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = await api_instance.list_service_cidr(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of NetworkingV1beta1Api->list_service_cidr:\n") + api_response = await api_instance.list_namespaced_eviction_request(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of LifecycleV1alpha1Api->list_namespaced_eviction_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->list_service_cidr: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->list_namespaced_eviction_request: %s\n" % e) ``` @@ -834,6 +1052,7 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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] **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] @@ -849,7 +1068,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ServiceCIDRList**](V1beta1ServiceCIDRList.md) +[**V1alpha1EvictionRequestList**](V1alpha1EvictionRequestList.md) ### Authorization @@ -869,10 +1088,102 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_ip_address** -> V1beta1IPAddress patch_ip_address(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **patch_namespaced_eviction** +> V1alpha1Eviction patch_namespaced_eviction(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified Eviction + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha1_eviction import V1alpha1Eviction +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the Eviction + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_namespaced_eviction(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of LifecycleV1alpha1Api->patch_namespaced_eviction:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling LifecycleV1alpha1Api->patch_namespaced_eviction: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Eviction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1alpha1Eviction**](V1alpha1Eviction.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_eviction_request** +> V1alpha1EvictionRequest patch_namespaced_eviction_request(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) -partially update the specified IPAddress +partially update the specified EvictionRequest ### Example @@ -880,7 +1191,7 @@ partially update the specified IPAddress ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1beta1_ip_address import V1beta1IPAddress +from kubernetes.aio.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -904,8 +1215,9 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the IPAddress + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the EvictionRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -914,11 +1226,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: force = True # bool | 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) try: - api_response = await api_instance.patch_ip_address(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of NetworkingV1beta1Api->patch_ip_address:\n") + api_response = await api_instance.patch_namespaced_eviction_request(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of LifecycleV1alpha1Api->patch_namespaced_eviction_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->patch_ip_address: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->patch_namespaced_eviction_request: %s\n" % e) ``` @@ -928,7 +1240,8 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the IPAddress | + **name** | **str**| name of the EvictionRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] @@ -938,7 +1251,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1IPAddress**](V1beta1IPAddress.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -959,10 +1272,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_service_cidr** -> V1beta1ServiceCIDR patch_service_cidr(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **patch_namespaced_eviction_request_status** +> V1alpha1EvictionRequest patch_namespaced_eviction_request_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) -partially update the specified ServiceCIDR +partially update status of the specified EvictionRequest ### Example @@ -970,7 +1283,7 @@ partially update the specified ServiceCIDR ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR +from kubernetes.aio.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -994,8 +1307,9 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the ServiceCIDR + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the EvictionRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -1004,11 +1318,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: force = True # bool | 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) try: - api_response = await api_instance.patch_service_cidr(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of NetworkingV1beta1Api->patch_service_cidr:\n") + api_response = await api_instance.patch_namespaced_eviction_request_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of LifecycleV1alpha1Api->patch_namespaced_eviction_request_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->patch_service_cidr: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->patch_namespaced_eviction_request_status: %s\n" % e) ``` @@ -1018,7 +1332,8 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ServiceCIDR | + **name** | **str**| name of the EvictionRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] @@ -1028,7 +1343,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -1049,10 +1364,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_service_cidr_status** -> V1beta1ServiceCIDR patch_service_cidr_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **patch_namespaced_eviction_status** +> V1alpha1Eviction patch_namespaced_eviction_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) -partially update status of the specified ServiceCIDR +partially update status of the specified Eviction ### Example @@ -1060,7 +1375,7 @@ partially update status of the specified ServiceCIDR ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR +from kubernetes.aio.client.models.v1alpha1_eviction import V1alpha1Eviction from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1084,8 +1399,9 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the ServiceCIDR + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the Eviction + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -1094,11 +1410,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: force = True # bool | 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) try: - api_response = await api_instance.patch_service_cidr_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of NetworkingV1beta1Api->patch_service_cidr_status:\n") + api_response = await api_instance.patch_namespaced_eviction_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of LifecycleV1alpha1Api->patch_namespaced_eviction_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->patch_service_cidr_status: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->patch_namespaced_eviction_status: %s\n" % e) ``` @@ -1108,7 +1424,8 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ServiceCIDR | + **name** | **str**| name of the Eviction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] @@ -1118,7 +1435,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1Eviction**](V1alpha1Eviction.md) ### Authorization @@ -1139,10 +1456,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_ip_address** -> V1beta1IPAddress read_ip_address(name, pretty=pretty) +# **read_namespaced_eviction** +> V1alpha1Eviction read_namespaced_eviction(name, namespace, pretty=pretty) -read the specified IPAddress +read the specified Eviction ### Example @@ -1150,7 +1467,7 @@ read the specified IPAddress ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1beta1_ip_address import V1beta1IPAddress +from kubernetes.aio.client.models.v1alpha1_eviction import V1alpha1Eviction from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1174,16 +1491,17 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the IPAddress + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the Eviction + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) try: - api_response = await api_instance.read_ip_address(name, pretty=pretty) - print("The response of NetworkingV1beta1Api->read_ip_address:\n") + api_response = await api_instance.read_namespaced_eviction(name, namespace, pretty=pretty) + print("The response of LifecycleV1alpha1Api->read_namespaced_eviction:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->read_ip_address: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->read_namespaced_eviction: %s\n" % e) ``` @@ -1193,12 +1511,13 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the IPAddress | + **name** | **str**| name of the Eviction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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 -[**V1beta1IPAddress**](V1beta1IPAddress.md) +[**V1alpha1Eviction**](V1alpha1Eviction.md) ### Authorization @@ -1218,10 +1537,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_service_cidr** -> V1beta1ServiceCIDR read_service_cidr(name, pretty=pretty) +# **read_namespaced_eviction_request** +> V1alpha1EvictionRequest read_namespaced_eviction_request(name, namespace, pretty=pretty) -read the specified ServiceCIDR +read the specified EvictionRequest ### Example @@ -1229,7 +1548,7 @@ read the specified ServiceCIDR ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR +from kubernetes.aio.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1253,16 +1572,17 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the ServiceCIDR + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the EvictionRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) try: - api_response = await api_instance.read_service_cidr(name, pretty=pretty) - print("The response of NetworkingV1beta1Api->read_service_cidr:\n") + api_response = await api_instance.read_namespaced_eviction_request(name, namespace, pretty=pretty) + print("The response of LifecycleV1alpha1Api->read_namespaced_eviction_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->read_service_cidr: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->read_namespaced_eviction_request: %s\n" % e) ``` @@ -1272,12 +1592,13 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ServiceCIDR | + **name** | **str**| name of the EvictionRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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 -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -1297,10 +1618,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_service_cidr_status** -> V1beta1ServiceCIDR read_service_cidr_status(name, pretty=pretty) +# **read_namespaced_eviction_request_status** +> V1alpha1EvictionRequest read_namespaced_eviction_request_status(name, namespace, pretty=pretty) -read status of the specified ServiceCIDR +read status of the specified EvictionRequest ### Example @@ -1308,7 +1629,7 @@ read status of the specified ServiceCIDR ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR +from kubernetes.aio.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1332,16 +1653,17 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the ServiceCIDR + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the EvictionRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) try: - api_response = await api_instance.read_service_cidr_status(name, pretty=pretty) - print("The response of NetworkingV1beta1Api->read_service_cidr_status:\n") + api_response = await api_instance.read_namespaced_eviction_request_status(name, namespace, pretty=pretty) + print("The response of LifecycleV1alpha1Api->read_namespaced_eviction_request_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->read_service_cidr_status: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->read_namespaced_eviction_request_status: %s\n" % e) ``` @@ -1351,12 +1673,13 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ServiceCIDR | + **name** | **str**| name of the EvictionRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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 -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -1376,10 +1699,181 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_ip_address** -> V1beta1IPAddress replace_ip_address(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +# **read_namespaced_eviction_status** +> V1alpha1Eviction read_namespaced_eviction_status(name, namespace, pretty=pretty) + +read status of the specified Eviction + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha1_eviction import V1alpha1Eviction +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the Eviction + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + + try: + api_response = await api_instance.read_namespaced_eviction_status(name, namespace, pretty=pretty) + print("The response of LifecycleV1alpha1Api->read_namespaced_eviction_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling LifecycleV1alpha1Api->read_namespaced_eviction_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Eviction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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 + +[**V1alpha1Eviction**](V1alpha1Eviction.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_eviction** +> V1alpha1Eviction replace_namespaced_eviction(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace the specified Eviction + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha1_eviction import V1alpha1Eviction +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the Eviction + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.aio.client.V1alpha1Eviction() # V1alpha1Eviction | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = await api_instance.replace_namespaced_eviction(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of LifecycleV1alpha1Api->replace_namespaced_eviction:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling LifecycleV1alpha1Api->replace_namespaced_eviction: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Eviction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1Eviction**](V1alpha1Eviction.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1alpha1Eviction**](V1alpha1Eviction.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_eviction_request** +> V1alpha1EvictionRequest replace_namespaced_eviction_request(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -replace the specified IPAddress +replace the specified EvictionRequest ### Example @@ -1387,7 +1881,7 @@ replace the specified IPAddress ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1beta1_ip_address import V1beta1IPAddress +from kubernetes.aio.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1411,20 +1905,21 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the IPAddress - body = kubernetes.aio.client.V1beta1IPAddress() # V1beta1IPAddress | + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the EvictionRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.aio.client.V1alpha1EvictionRequest() # V1alpha1EvictionRequest | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = await api_instance.replace_ip_address(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of NetworkingV1beta1Api->replace_ip_address:\n") + api_response = await api_instance.replace_namespaced_eviction_request(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of LifecycleV1alpha1Api->replace_namespaced_eviction_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->replace_ip_address: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->replace_namespaced_eviction_request: %s\n" % e) ``` @@ -1434,8 +1929,9 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the IPAddress | - **body** | [**V1beta1IPAddress**](V1beta1IPAddress.md)| | + **name** | **str**| name of the EvictionRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -1443,7 +1939,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1IPAddress**](V1beta1IPAddress.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -1464,10 +1960,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_service_cidr** -> V1beta1ServiceCIDR replace_service_cidr(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +# **replace_namespaced_eviction_request_status** +> V1alpha1EvictionRequest replace_namespaced_eviction_request_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -replace the specified ServiceCIDR +replace status of the specified EvictionRequest ### Example @@ -1475,7 +1971,7 @@ replace the specified ServiceCIDR ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR +from kubernetes.aio.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1499,20 +1995,21 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the ServiceCIDR - body = kubernetes.aio.client.V1beta1ServiceCIDR() # V1beta1ServiceCIDR | + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the EvictionRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.aio.client.V1alpha1EvictionRequest() # V1alpha1EvictionRequest | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = await api_instance.replace_service_cidr(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of NetworkingV1beta1Api->replace_service_cidr:\n") + api_response = await api_instance.replace_namespaced_eviction_request_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of LifecycleV1alpha1Api->replace_namespaced_eviction_request_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->replace_service_cidr: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->replace_namespaced_eviction_request_status: %s\n" % e) ``` @@ -1522,8 +2019,9 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ServiceCIDR | - **body** | [**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md)| | + **name** | **str**| name of the EvictionRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -1531,7 +2029,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -1552,10 +2050,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_service_cidr_status** -> V1beta1ServiceCIDR replace_service_cidr_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +# **replace_namespaced_eviction_status** +> V1alpha1Eviction replace_namespaced_eviction_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -replace status of the specified ServiceCIDR +replace status of the specified Eviction ### Example @@ -1563,7 +2061,7 @@ replace status of the specified ServiceCIDR ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR +from kubernetes.aio.client.models.v1alpha1_eviction import V1alpha1Eviction from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1587,20 +2085,21 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the ServiceCIDR - body = kubernetes.aio.client.V1beta1ServiceCIDR() # V1beta1ServiceCIDR | + api_instance = kubernetes.aio.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the Eviction + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.aio.client.V1alpha1Eviction() # V1alpha1Eviction | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = await api_instance.replace_service_cidr_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of NetworkingV1beta1Api->replace_service_cidr_status:\n") + api_response = await api_instance.replace_namespaced_eviction_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of LifecycleV1alpha1Api->replace_namespaced_eviction_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->replace_service_cidr_status: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->replace_namespaced_eviction_status: %s\n" % e) ``` @@ -1610,8 +2109,9 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ServiceCIDR | - **body** | [**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md)| | + **name** | **str**| name of the Eviction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1Eviction**](V1alpha1Eviction.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -1619,7 +2119,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1Eviction**](V1alpha1Eviction.md) ### Authorization diff --git a/kubernetes/aio/docs/NetworkingApi.md b/kubernetes/aio/docs/NetworkingApi.md index 8c3b701d36..7d186390ad 100644 --- a/kubernetes/aio/docs/NetworkingApi.md +++ b/kubernetes/aio/docs/NetworkingApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/NodeApi.md b/kubernetes/aio/docs/NodeApi.md index 7ddcb9e54f..56964aad3c 100644 --- a/kubernetes/aio/docs/NodeApi.md +++ b/kubernetes/aio/docs/NodeApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/PolicyApi.md b/kubernetes/aio/docs/PolicyApi.md index a1eb873cc8..9fcec201de 100644 --- a/kubernetes/aio/docs/PolicyApi.md +++ b/kubernetes/aio/docs/PolicyApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/RbacAuthorizationApi.md b/kubernetes/aio/docs/RbacAuthorizationApi.md index 6a4a94bcf3..29b0533722 100644 --- a/kubernetes/aio/docs/RbacAuthorizationApi.md +++ b/kubernetes/aio/docs/RbacAuthorizationApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/RbacV1Subject.md b/kubernetes/aio/docs/RbacV1Subject.md index f1b1286e23..fb16bf46e7 100644 --- a/kubernetes/aio/docs/RbacV1Subject.md +++ b/kubernetes/aio/docs/RbacV1Subject.md @@ -6,10 +6,10 @@ Subject contains a reference to the object or user identities a role binding app Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_group** | **str** | APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. | [optional] -**kind** | **str** | 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. | -**name** | **str** | Name of the object being referenced. | -**namespace** | **str** | Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. | [optional] +**api_group** | **str** | apiGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. | [optional] +**kind** | **str** | 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. | +**name** | **str** | name of the object being referenced. | +**namespace** | **str** | namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. | [optional] ## Example diff --git a/kubernetes/aio/docs/ResourceApi.md b/kubernetes/aio/docs/ResourceApi.md index d81bee3130..1b19f0574a 100644 --- a/kubernetes/aio/docs/ResourceApi.md +++ b/kubernetes/aio/docs/ResourceApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/ResourceV1Api.md b/kubernetes/aio/docs/ResourceV1Api.md index ac6d4fb8f7..67fe5330da 100644 --- a/kubernetes/aio/docs/ResourceV1Api.md +++ b/kubernetes/aio/docs/ResourceV1Api.md @@ -5,35 +5,45 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_device_class**](ResourceV1Api.md#create_device_class) | **POST** /apis/resource.k8s.io/v1/deviceclasses | +[**create_device_taint_rule**](ResourceV1Api.md#create_device_taint_rule) | **POST** /apis/resource.k8s.io/v1/devicetaintrules | [**create_namespaced_resource_claim**](ResourceV1Api.md#create_namespaced_resource_claim) | **POST** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | [**create_namespaced_resource_claim_template**](ResourceV1Api.md#create_namespaced_resource_claim_template) | **POST** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | [**create_resource_slice**](ResourceV1Api.md#create_resource_slice) | **POST** /apis/resource.k8s.io/v1/resourceslices | [**delete_collection_device_class**](ResourceV1Api.md#delete_collection_device_class) | **DELETE** /apis/resource.k8s.io/v1/deviceclasses | +[**delete_collection_device_taint_rule**](ResourceV1Api.md#delete_collection_device_taint_rule) | **DELETE** /apis/resource.k8s.io/v1/devicetaintrules | [**delete_collection_namespaced_resource_claim**](ResourceV1Api.md#delete_collection_namespaced_resource_claim) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | [**delete_collection_namespaced_resource_claim_template**](ResourceV1Api.md#delete_collection_namespaced_resource_claim_template) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | [**delete_collection_resource_slice**](ResourceV1Api.md#delete_collection_resource_slice) | **DELETE** /apis/resource.k8s.io/v1/resourceslices | [**delete_device_class**](ResourceV1Api.md#delete_device_class) | **DELETE** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**delete_device_taint_rule**](ResourceV1Api.md#delete_device_taint_rule) | **DELETE** /apis/resource.k8s.io/v1/devicetaintrules/{name} | [**delete_namespaced_resource_claim**](ResourceV1Api.md#delete_namespaced_resource_claim) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | [**delete_namespaced_resource_claim_template**](ResourceV1Api.md#delete_namespaced_resource_claim_template) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | [**delete_resource_slice**](ResourceV1Api.md#delete_resource_slice) | **DELETE** /apis/resource.k8s.io/v1/resourceslices/{name} | [**get_api_resources**](ResourceV1Api.md#get_api_resources) | **GET** /apis/resource.k8s.io/v1/ | [**list_device_class**](ResourceV1Api.md#list_device_class) | **GET** /apis/resource.k8s.io/v1/deviceclasses | +[**list_device_taint_rule**](ResourceV1Api.md#list_device_taint_rule) | **GET** /apis/resource.k8s.io/v1/devicetaintrules | [**list_namespaced_resource_claim**](ResourceV1Api.md#list_namespaced_resource_claim) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | [**list_namespaced_resource_claim_template**](ResourceV1Api.md#list_namespaced_resource_claim_template) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | [**list_resource_claim_for_all_namespaces**](ResourceV1Api.md#list_resource_claim_for_all_namespaces) | **GET** /apis/resource.k8s.io/v1/resourceclaims | [**list_resource_claim_template_for_all_namespaces**](ResourceV1Api.md#list_resource_claim_template_for_all_namespaces) | **GET** /apis/resource.k8s.io/v1/resourceclaimtemplates | [**list_resource_slice**](ResourceV1Api.md#list_resource_slice) | **GET** /apis/resource.k8s.io/v1/resourceslices | [**patch_device_class**](ResourceV1Api.md#patch_device_class) | **PATCH** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**patch_device_taint_rule**](ResourceV1Api.md#patch_device_taint_rule) | **PATCH** /apis/resource.k8s.io/v1/devicetaintrules/{name} | +[**patch_device_taint_rule_status**](ResourceV1Api.md#patch_device_taint_rule_status) | **PATCH** /apis/resource.k8s.io/v1/devicetaintrules/{name}/status | [**patch_namespaced_resource_claim**](ResourceV1Api.md#patch_namespaced_resource_claim) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | [**patch_namespaced_resource_claim_status**](ResourceV1Api.md#patch_namespaced_resource_claim_status) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | [**patch_namespaced_resource_claim_template**](ResourceV1Api.md#patch_namespaced_resource_claim_template) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | [**patch_resource_slice**](ResourceV1Api.md#patch_resource_slice) | **PATCH** /apis/resource.k8s.io/v1/resourceslices/{name} | [**read_device_class**](ResourceV1Api.md#read_device_class) | **GET** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**read_device_taint_rule**](ResourceV1Api.md#read_device_taint_rule) | **GET** /apis/resource.k8s.io/v1/devicetaintrules/{name} | +[**read_device_taint_rule_status**](ResourceV1Api.md#read_device_taint_rule_status) | **GET** /apis/resource.k8s.io/v1/devicetaintrules/{name}/status | [**read_namespaced_resource_claim**](ResourceV1Api.md#read_namespaced_resource_claim) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | [**read_namespaced_resource_claim_status**](ResourceV1Api.md#read_namespaced_resource_claim_status) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | [**read_namespaced_resource_claim_template**](ResourceV1Api.md#read_namespaced_resource_claim_template) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | [**read_resource_slice**](ResourceV1Api.md#read_resource_slice) | **GET** /apis/resource.k8s.io/v1/resourceslices/{name} | [**replace_device_class**](ResourceV1Api.md#replace_device_class) | **PUT** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**replace_device_taint_rule**](ResourceV1Api.md#replace_device_taint_rule) | **PUT** /apis/resource.k8s.io/v1/devicetaintrules/{name} | +[**replace_device_taint_rule_status**](ResourceV1Api.md#replace_device_taint_rule_status) | **PUT** /apis/resource.k8s.io/v1/devicetaintrules/{name}/status | [**replace_namespaced_resource_claim**](ResourceV1Api.md#replace_namespaced_resource_claim) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | [**replace_namespaced_resource_claim_status**](ResourceV1Api.md#replace_namespaced_resource_claim_status) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | [**replace_namespaced_resource_claim_template**](ResourceV1Api.md#replace_namespaced_resource_claim_template) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | @@ -127,6 +137,93 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_device_taint_rule** +> V1DeviceTaintRule create_device_taint_rule(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +create a DeviceTaintRule + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_device_taint_rule import V1DeviceTaintRule +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.ResourceV1Api(api_client) + body = kubernetes.aio.client.V1DeviceTaintRule() # V1DeviceTaintRule | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = await api_instance.create_device_taint_rule(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of ResourceV1Api->create_device_taint_rule:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->create_device_taint_rule: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1DeviceTaintRule**](V1DeviceTaintRule.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1DeviceTaintRule**](V1DeviceTaintRule.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 | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_namespaced_resource_claim** > ResourceV1ResourceClaim create_namespaced_resource_claim(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) @@ -500,10 +597,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_resource_claim** -> V1Status delete_collection_namespaced_resource_claim(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) +# **delete_collection_device_taint_rule** +> V1Status delete_collection_device_taint_rule(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) -delete collection of ResourceClaim +delete collection of DeviceTaintRule ### Example @@ -537,7 +634,6 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) - namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -556,11 +652,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = await api_instance.delete_collection_namespaced_resource_claim(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - print("The response of ResourceV1Api->delete_collection_namespaced_resource_claim:\n") + api_response = await api_instance.delete_collection_device_taint_rule(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of ResourceV1Api->delete_collection_device_taint_rule:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->delete_collection_namespaced_resource_claim: %s\n" % e) + print("Exception when calling ResourceV1Api->delete_collection_device_taint_rule: %s\n" % e) ``` @@ -570,7 +666,6 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] @@ -610,10 +705,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_resource_claim_template** -> V1Status delete_collection_namespaced_resource_claim_template(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) +# **delete_collection_namespaced_resource_claim** +> V1Status delete_collection_namespaced_resource_claim(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) -delete collection of ResourceClaimTemplate +delete collection of ResourceClaim ### Example @@ -666,11 +761,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = await api_instance.delete_collection_namespaced_resource_claim_template(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - print("The response of ResourceV1Api->delete_collection_namespaced_resource_claim_template:\n") + api_response = await api_instance.delete_collection_namespaced_resource_claim(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of ResourceV1Api->delete_collection_namespaced_resource_claim:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->delete_collection_namespaced_resource_claim_template: %s\n" % e) + print("Exception when calling ResourceV1Api->delete_collection_namespaced_resource_claim: %s\n" % e) ``` @@ -720,10 +815,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_resource_slice** -> V1Status delete_collection_resource_slice(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) +# **delete_collection_namespaced_resource_claim_template** +> V1Status delete_collection_namespaced_resource_claim_template(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) -delete collection of ResourceSlice +delete collection of ResourceClaimTemplate ### Example @@ -757,6 +852,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -775,11 +871,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = await api_instance.delete_collection_resource_slice(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - print("The response of ResourceV1Api->delete_collection_resource_slice:\n") + api_response = await api_instance.delete_collection_namespaced_resource_claim_template(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of ResourceV1Api->delete_collection_namespaced_resource_claim_template:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->delete_collection_resource_slice: %s\n" % e) + print("Exception when calling ResourceV1Api->delete_collection_namespaced_resource_claim_template: %s\n" % e) ``` @@ -789,6 +885,7 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] @@ -828,10 +925,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_device_class** -> V1DeviceClass delete_device_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) +# **delete_collection_resource_slice** +> V1Status delete_collection_resource_slice(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) -delete a DeviceClass +delete collection of ResourceSlice ### Example @@ -840,7 +937,7 @@ delete a DeviceClass ```python import kubernetes.aio.client from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions -from kubernetes.aio.client.models.v1_device_class import V1DeviceClass +from kubernetes.aio.client.models.v1_status import V1Status from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -865,21 +962,29 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the DeviceClass pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) grace_period_seconds = 56 # int | 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) ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) orphan_dependents = True # bool | 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) propagation_policy = 'propagation_policy_example' # str | 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = await api_instance.delete_device_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of ResourceV1Api->delete_device_class:\n") + api_response = await api_instance.delete_collection_resource_slice(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of ResourceV1Api->delete_collection_resource_slice:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->delete_device_class: %s\n" % e) + print("Exception when calling ResourceV1Api->delete_collection_resource_slice: %s\n" % e) ``` @@ -889,18 +994,26 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the DeviceClass | **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **grace_period_seconds** | **int**| 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] **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] **orphan_dependents** | **bool**| 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] **propagation_policy** | **str**| 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| 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 -[**V1DeviceClass**](V1DeviceClass.md) +[**V1Status**](V1Status.md) ### Authorization @@ -916,15 +1029,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_resource_claim** -> ResourceV1ResourceClaim delete_namespaced_resource_claim(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) +# **delete_device_class** +> V1DeviceClass delete_device_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) -delete a ResourceClaim +delete a DeviceClass ### Example @@ -932,8 +1044,8 @@ delete a ResourceClaim ```python import kubernetes.aio.client -from kubernetes.aio.client.models.resource_v1_resource_claim import ResourceV1ResourceClaim from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.aio.client.models.v1_device_class import V1DeviceClass from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -958,8 +1070,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the ResourceClaim - namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + name = 'name_example' # str | name of the DeviceClass pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) grace_period_seconds = 56 # int | 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) @@ -969,11 +1080,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = await api_instance.delete_namespaced_resource_claim(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of ResourceV1Api->delete_namespaced_resource_claim:\n") + api_response = await api_instance.delete_device_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of ResourceV1Api->delete_device_class:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->delete_namespaced_resource_claim: %s\n" % e) + print("Exception when calling ResourceV1Api->delete_device_class: %s\n" % e) ``` @@ -983,8 +1094,7 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ResourceClaim | - **namespace** | **str**| object name and auth scope, such as for teams and projects | + **name** | **str**| name of the DeviceClass | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **grace_period_seconds** | **int**| 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] @@ -995,7 +1105,7 @@ Name | Type | Description | Notes ### Return type -[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) +[**V1DeviceClass**](V1DeviceClass.md) ### Authorization @@ -1016,10 +1126,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_resource_claim_template** -> V1ResourceClaimTemplate delete_namespaced_resource_claim_template(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) +# **delete_device_taint_rule** +> object delete_device_taint_rule(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) -delete a ResourceClaimTemplate +delete a DeviceTaintRule ### Example @@ -1028,7 +1138,6 @@ delete a ResourceClaimTemplate ```python import kubernetes.aio.client from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions -from kubernetes.aio.client.models.v1_resource_claim_template import V1ResourceClaimTemplate from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1053,8 +1162,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the ResourceClaimTemplate - namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + name = 'name_example' # str | name of the DeviceTaintRule pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) grace_period_seconds = 56 # int | 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) @@ -1064,11 +1172,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = await api_instance.delete_namespaced_resource_claim_template(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of ResourceV1Api->delete_namespaced_resource_claim_template:\n") + api_response = await api_instance.delete_device_taint_rule(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of ResourceV1Api->delete_device_taint_rule:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->delete_namespaced_resource_claim_template: %s\n" % e) + print("Exception when calling ResourceV1Api->delete_device_taint_rule: %s\n" % e) ``` @@ -1078,8 +1186,7 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ResourceClaimTemplate | - **namespace** | **str**| object name and auth scope, such as for teams and projects | + **name** | **str**| name of the DeviceTaintRule | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **grace_period_seconds** | **int**| 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] @@ -1090,7 +1197,7 @@ Name | Type | Description | Notes ### Return type -[**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.md) +**object** ### Authorization @@ -1111,10 +1218,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_resource_slice** -> V1ResourceSlice delete_resource_slice(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) +# **delete_namespaced_resource_claim** +> ResourceV1ResourceClaim delete_namespaced_resource_claim(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) -delete a ResourceSlice +delete a ResourceClaim ### Example @@ -1122,8 +1229,8 @@ delete a ResourceSlice ```python import kubernetes.aio.client +from kubernetes.aio.client.models.resource_v1_resource_claim import ResourceV1ResourceClaim from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions -from kubernetes.aio.client.models.v1_resource_slice import V1ResourceSlice from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1148,7 +1255,8 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the ResourceSlice + name = 'name_example' # str | name of the ResourceClaim + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) grace_period_seconds = 56 # int | 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) @@ -1158,11 +1266,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = await api_instance.delete_resource_slice(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of ResourceV1Api->delete_resource_slice:\n") + api_response = await api_instance.delete_namespaced_resource_claim(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of ResourceV1Api->delete_namespaced_resource_claim:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->delete_resource_slice: %s\n" % e) + print("Exception when calling ResourceV1Api->delete_namespaced_resource_claim: %s\n" % e) ``` @@ -1172,7 +1280,8 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ResourceSlice | + **name** | **str**| name of the ResourceClaim | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **grace_period_seconds** | **int**| 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] @@ -1183,7 +1292,7 @@ Name | Type | Description | Notes ### Return type -[**V1ResourceSlice**](V1ResourceSlice.md) +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) ### Authorization @@ -1204,10 +1313,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_resources** -> V1APIResourceList get_api_resources() +# **delete_namespaced_resource_claim_template** +> V1ResourceClaimTemplate delete_namespaced_resource_claim_template(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) -get available resources +delete a ResourceClaimTemplate ### Example @@ -1215,7 +1324,8 @@ get available resources ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1_api_resource_list import V1APIResourceList +from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.aio.client.models.v1_resource_claim_template import V1ResourceClaimTemplate from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1240,24 +1350,44 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) + name = 'name_example' # str | name of the ResourceClaimTemplate + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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 = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = await api_instance.get_api_resources() - print("The response of ResourceV1Api->get_api_resources:\n") + api_response = await api_instance.delete_namespaced_resource_claim_template(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of ResourceV1Api->delete_namespaced_resource_claim_template:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->get_api_resources: %s\n" % e) + print("Exception when calling ResourceV1Api->delete_namespaced_resource_claim_template: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ResourceClaimTemplate | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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) +[**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.md) ### Authorization @@ -1273,14 +1403,15 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_device_class** -> V1DeviceClassList list_device_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **delete_resource_slice** +> V1ResourceSlice delete_resource_slice(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) -list or watch objects of kind DeviceClass +delete a ResourceSlice ### Example @@ -1288,7 +1419,8 @@ list or watch objects of kind DeviceClass ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1_device_class_list import V1DeviceClassList +from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.aio.client.models.v1_resource_slice import V1ResourceSlice from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1313,25 +1445,21 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) + name = 'name_example' # str | name of the ResourceSlice pretty = 'pretty_example' # str | If 'true', 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) - allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) - field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) - resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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 = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = await api_instance.list_device_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of ResourceV1Api->list_device_class:\n") + api_response = await api_instance.delete_resource_slice(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of ResourceV1Api->delete_resource_slice:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->list_device_class: %s\n" % e) + print("Exception when calling ResourceV1Api->delete_resource_slice: %s\n" % e) ``` @@ -1341,22 +1469,18 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ResourceSlice | **pretty** | **str**| If 'true', 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] - **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] - **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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 -[**V1DeviceClassList**](V1DeviceClassList.md) +[**V1ResourceSlice**](V1ResourceSlice.md) ### Authorization @@ -1365,21 +1489,22 @@ Name | Type | Description | Notes ### 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 | |-------------|-------------|------------------| **200** | OK | - | +**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_resource_claim** -> V1ResourceClaimList list_namespaced_resource_claim(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **get_api_resources** +> V1APIResourceList get_api_resources() -list or watch objects of kind ResourceClaim +get available resources ### Example @@ -1387,7 +1512,80 @@ list or watch objects of kind ResourceClaim ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1_resource_claim_list import V1ResourceClaimList +from kubernetes.aio.client.models.v1_api_resource_list import V1APIResourceList +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.ResourceV1Api(api_client) + + try: + api_response = await api_instance.get_api_resources() + print("The response of ResourceV1Api->get_api_resources:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->get_api_resources: %s\n" % e) +``` + + + +### 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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_device_class** +> V1DeviceClassList list_device_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind DeviceClass + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_device_class_list import V1DeviceClassList from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1412,7 +1610,6 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) - namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) @@ -1427,11 +1624,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = await api_instance.list_namespaced_resource_claim(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of ResourceV1Api->list_namespaced_resource_claim:\n") + api_response = await api_instance.list_device_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of ResourceV1Api->list_device_class:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->list_namespaced_resource_claim: %s\n" % e) + print("Exception when calling ResourceV1Api->list_device_class: %s\n" % e) ``` @@ -1441,7 +1638,6 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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] **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] @@ -1457,7 +1653,7 @@ Name | Type | Description | Notes ### Return type -[**V1ResourceClaimList**](V1ResourceClaimList.md) +[**V1DeviceClassList**](V1DeviceClassList.md) ### Authorization @@ -1477,10 +1673,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_resource_claim_template** -> V1ResourceClaimTemplateList list_namespaced_resource_claim_template(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **list_device_taint_rule** +> V1DeviceTaintRuleList list_device_taint_rule(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind ResourceClaimTemplate +list or watch objects of kind DeviceTaintRule ### Example @@ -1488,7 +1684,7 @@ list or watch objects of kind ResourceClaimTemplate ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1_resource_claim_template_list import V1ResourceClaimTemplateList +from kubernetes.aio.client.models.v1_device_taint_rule_list import V1DeviceTaintRuleList from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1513,7 +1709,6 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) - namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) @@ -1528,11 +1723,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = await api_instance.list_namespaced_resource_claim_template(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of ResourceV1Api->list_namespaced_resource_claim_template:\n") + api_response = await api_instance.list_device_taint_rule(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of ResourceV1Api->list_device_taint_rule:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->list_namespaced_resource_claim_template: %s\n" % e) + print("Exception when calling ResourceV1Api->list_device_taint_rule: %s\n" % e) ``` @@ -1542,7 +1737,6 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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] **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] @@ -1558,7 +1752,7 @@ Name | Type | Description | Notes ### Return type -[**V1ResourceClaimTemplateList**](V1ResourceClaimTemplateList.md) +[**V1DeviceTaintRuleList**](V1DeviceTaintRuleList.md) ### Authorization @@ -1578,8 +1772,8 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_resource_claim_for_all_namespaces** -> V1ResourceClaimList list_resource_claim_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_resource_claim** +> V1ResourceClaimList list_namespaced_resource_claim(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ResourceClaim @@ -1614,12 +1808,13 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -1628,11 +1823,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = await api_instance.list_resource_claim_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of ResourceV1Api->list_resource_claim_for_all_namespaces:\n") + api_response = await api_instance.list_namespaced_resource_claim(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of ResourceV1Api->list_namespaced_resource_claim:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->list_resource_claim_for_all_namespaces: %s\n" % e) + print("Exception when calling ResourceV1Api->list_namespaced_resource_claim: %s\n" % e) ``` @@ -1642,12 +1837,13 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -1677,8 +1873,8 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_resource_claim_template_for_all_namespaces** -> V1ResourceClaimTemplateList list_resource_claim_template_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_resource_claim_template** +> V1ResourceClaimTemplateList list_namespaced_resource_claim_template(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ResourceClaimTemplate @@ -1713,12 +1909,13 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -1727,11 +1924,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = await api_instance.list_resource_claim_template_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of ResourceV1Api->list_resource_claim_template_for_all_namespaces:\n") + api_response = await api_instance.list_namespaced_resource_claim_template(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of ResourceV1Api->list_namespaced_resource_claim_template:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->list_resource_claim_template_for_all_namespaces: %s\n" % e) + print("Exception when calling ResourceV1Api->list_namespaced_resource_claim_template: %s\n" % e) ``` @@ -1741,12 +1938,13 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -1776,10 +1974,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_resource_slice** -> V1ResourceSliceList list_resource_slice(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **list_resource_claim_for_all_namespaces** +> V1ResourceClaimList list_resource_claim_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind ResourceSlice +list or watch objects of kind ResourceClaim ### Example @@ -1787,7 +1985,7 @@ list or watch objects of kind ResourceSlice ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1_resource_slice_list import V1ResourceSliceList +from kubernetes.aio.client.models.v1_resource_claim_list import V1ResourceClaimList from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1812,12 +2010,12 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) - pretty = 'pretty_example' # str | If 'true', 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) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -1826,11 +2024,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = await api_instance.list_resource_slice(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of ResourceV1Api->list_resource_slice:\n") + api_response = await api_instance.list_resource_claim_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of ResourceV1Api->list_resource_claim_for_all_namespaces:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->list_resource_slice: %s\n" % e) + print("Exception when calling ResourceV1Api->list_resource_claim_for_all_namespaces: %s\n" % e) ``` @@ -1840,12 +2038,12 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **str**| If 'true', 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] **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -1855,7 +2053,7 @@ Name | Type | Description | Notes ### Return type -[**V1ResourceSliceList**](V1ResourceSliceList.md) +[**V1ResourceClaimList**](V1ResourceClaimList.md) ### Authorization @@ -1875,10 +2073,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_device_class** -> V1DeviceClass patch_device_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **list_resource_claim_template_for_all_namespaces** +> V1ResourceClaimTemplateList list_resource_claim_template_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) -partially update the specified DeviceClass +list or watch objects of kind ResourceClaimTemplate ### Example @@ -1886,7 +2084,7 @@ partially update the specified DeviceClass ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1_device_class import V1DeviceClass +from kubernetes.aio.client.models.v1_resource_claim_template_list import V1ResourceClaimTemplateList from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1911,20 +2109,25 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the DeviceClass - body = None # object | + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) - field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = await api_instance.patch_device_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of ResourceV1Api->patch_device_class:\n") + api_response = await api_instance.list_resource_claim_template_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of ResourceV1Api->list_resource_claim_template_for_all_namespaces:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->patch_device_class: %s\n" % e) + print("Exception when calling ResourceV1Api->list_resource_claim_template_for_all_namespaces: %s\n" % e) ``` @@ -1934,17 +2137,22 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the DeviceClass | - **body** | **object**| | + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] - **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1DeviceClass**](V1DeviceClass.md) +[**V1ResourceClaimTemplateList**](V1ResourceClaimTemplateList.md) ### Authorization @@ -1952,21 +2160,389 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **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 | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_resource_claim** -> ResourceV1ResourceClaim patch_namespaced_resource_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **list_resource_slice** +> V1ResourceSliceList list_resource_slice(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind ResourceSlice + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_resource_slice_list import V1ResourceSliceList +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.ResourceV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', 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) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = await api_instance.list_resource_slice(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of ResourceV1Api->list_resource_slice:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->list_resource_slice: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', 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] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ResourceSliceList**](V1ResourceSliceList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_device_class** +> V1DeviceClass patch_device_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified DeviceClass + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_device_class import V1DeviceClass +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.ResourceV1Api(api_client) + name = 'name_example' # str | name of the DeviceClass + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_device_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of ResourceV1Api->patch_device_class:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->patch_device_class: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DeviceClass | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1DeviceClass**](V1DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_device_taint_rule** +> V1DeviceTaintRule patch_device_taint_rule(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified DeviceTaintRule + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_device_taint_rule import V1DeviceTaintRule +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.ResourceV1Api(api_client) + name = 'name_example' # str | name of the DeviceTaintRule + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_device_taint_rule(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of ResourceV1Api->patch_device_taint_rule:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->patch_device_taint_rule: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DeviceTaintRule | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1DeviceTaintRule**](V1DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_device_taint_rule_status** +> V1DeviceTaintRule patch_device_taint_rule_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update status of the specified DeviceTaintRule + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_device_taint_rule import V1DeviceTaintRule +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.ResourceV1Api(api_client) + name = 'name_example' # str | name of the DeviceTaintRule + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_device_taint_rule_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of ResourceV1Api->patch_device_taint_rule_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->patch_device_taint_rule_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DeviceTaintRule | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1DeviceTaintRule**](V1DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_resource_claim** +> ResourceV1ResourceClaim patch_namespaced_resource_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) partially update the specified ResourceClaim @@ -1976,7 +2552,191 @@ partially update the specified ResourceClaim ```python import kubernetes.aio.client -from kubernetes.aio.client.models.resource_v1_resource_claim import ResourceV1ResourceClaim +from kubernetes.aio.client.models.resource_v1_resource_claim import ResourceV1ResourceClaim +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.ResourceV1Api(api_client) + name = 'name_example' # str | name of the ResourceClaim + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_namespaced_resource_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of ResourceV1Api->patch_namespaced_resource_claim:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->patch_namespaced_resource_claim: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ResourceClaim | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_resource_claim_status** +> ResourceV1ResourceClaim patch_namespaced_resource_claim_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update status of the specified ResourceClaim + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.resource_v1_resource_claim import ResourceV1ResourceClaim +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.ResourceV1Api(api_client) + name = 'name_example' # str | name of the ResourceClaim + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_namespaced_resource_claim_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of ResourceV1Api->patch_namespaced_resource_claim_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->patch_namespaced_resource_claim_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ResourceClaim | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_resource_claim_template** +> V1ResourceClaimTemplate patch_namespaced_resource_claim_template(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified ResourceClaimTemplate + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_resource_claim_template import V1ResourceClaimTemplate from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -2001,7 +2761,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the ResourceClaim + name = 'name_example' # str | name of the ResourceClaimTemplate namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', 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) @@ -2011,11 +2771,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: force = True # bool | 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) try: - api_response = await api_instance.patch_namespaced_resource_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of ResourceV1Api->patch_namespaced_resource_claim:\n") + api_response = await api_instance.patch_namespaced_resource_claim_template(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of ResourceV1Api->patch_namespaced_resource_claim_template:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->patch_namespaced_resource_claim: %s\n" % e) + print("Exception when calling ResourceV1Api->patch_namespaced_resource_claim_template: %s\n" % e) ``` @@ -2025,7 +2785,7 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ResourceClaim | + **name** | **str**| name of the ResourceClaimTemplate | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', 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] @@ -2036,7 +2796,7 @@ Name | Type | Description | Notes ### Return type -[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) +[**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.md) ### Authorization @@ -2057,10 +2817,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_resource_claim_status** -> ResourceV1ResourceClaim patch_namespaced_resource_claim_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **patch_resource_slice** +> V1ResourceSlice patch_resource_slice(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) -partially update status of the specified ResourceClaim +partially update the specified ResourceSlice ### Example @@ -2068,7 +2828,7 @@ partially update status of the specified ResourceClaim ```python import kubernetes.aio.client -from kubernetes.aio.client.models.resource_v1_resource_claim import ResourceV1ResourceClaim +from kubernetes.aio.client.models.v1_resource_slice import V1ResourceSlice from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -2093,8 +2853,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the ResourceClaim - namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + name = 'name_example' # str | name of the ResourceSlice body = None # object | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -2103,11 +2862,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: force = True # bool | 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) try: - api_response = await api_instance.patch_namespaced_resource_claim_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of ResourceV1Api->patch_namespaced_resource_claim_status:\n") + api_response = await api_instance.patch_resource_slice(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of ResourceV1Api->patch_resource_slice:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->patch_namespaced_resource_claim_status: %s\n" % e) + print("Exception when calling ResourceV1Api->patch_resource_slice: %s\n" % e) ``` @@ -2117,8 +2876,7 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ResourceClaim | - **namespace** | **str**| object name and auth scope, such as for teams and projects | + **name** | **str**| name of the ResourceSlice | **body** | **object**| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] @@ -2128,7 +2886,7 @@ Name | Type | Description | Notes ### Return type -[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) +[**V1ResourceSlice**](V1ResourceSlice.md) ### Authorization @@ -2149,10 +2907,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_resource_claim_template** -> V1ResourceClaimTemplate patch_namespaced_resource_claim_template(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **read_device_class** +> V1DeviceClass read_device_class(name, pretty=pretty) -partially update the specified ResourceClaimTemplate +read the specified DeviceClass ### Example @@ -2160,7 +2918,7 @@ partially update the specified ResourceClaimTemplate ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1_resource_claim_template import V1ResourceClaimTemplate +from kubernetes.aio.client.models.v1_device_class import V1DeviceClass from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -2185,21 +2943,15 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the ResourceClaimTemplate - namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects - body = None # object | + name = 'name_example' # str | name of the DeviceClass pretty = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) - field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) try: - api_response = await api_instance.patch_namespaced_resource_claim_template(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of ResourceV1Api->patch_namespaced_resource_claim_template:\n") + api_response = await api_instance.read_device_class(name, pretty=pretty) + print("The response of ResourceV1Api->read_device_class:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->patch_namespaced_resource_claim_template: %s\n" % e) + print("Exception when calling ResourceV1Api->read_device_class: %s\n" % e) ``` @@ -2209,18 +2961,12 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ResourceClaimTemplate | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **name** | **str**| name of the DeviceClass | **pretty** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] - **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 -[**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.md) +[**V1DeviceClass**](V1DeviceClass.md) ### Authorization @@ -2228,7 +2974,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details @@ -2236,15 +2982,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_resource_slice** -> V1ResourceSlice patch_resource_slice(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **read_device_taint_rule** +> V1DeviceTaintRule read_device_taint_rule(name, pretty=pretty) -partially update the specified ResourceSlice +read the specified DeviceTaintRule ### Example @@ -2252,7 +2997,7 @@ partially update the specified ResourceSlice ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1_resource_slice import V1ResourceSlice +from kubernetes.aio.client.models.v1_device_taint_rule import V1DeviceTaintRule from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -2277,20 +3022,15 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the ResourceSlice - body = None # object | + name = 'name_example' # str | name of the DeviceTaintRule pretty = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) - field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) try: - api_response = await api_instance.patch_resource_slice(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of ResourceV1Api->patch_resource_slice:\n") + api_response = await api_instance.read_device_taint_rule(name, pretty=pretty) + print("The response of ResourceV1Api->read_device_taint_rule:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->patch_resource_slice: %s\n" % e) + print("Exception when calling ResourceV1Api->read_device_taint_rule: %s\n" % e) ``` @@ -2300,17 +3040,12 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ResourceSlice | - **body** | **object**| | + **name** | **str**| name of the DeviceTaintRule | **pretty** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] - **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 -[**V1ResourceSlice**](V1ResourceSlice.md) +[**V1DeviceTaintRule**](V1DeviceTaintRule.md) ### Authorization @@ -2318,7 +3053,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details @@ -2326,15 +3061,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_device_class** -> V1DeviceClass read_device_class(name, pretty=pretty) +# **read_device_taint_rule_status** +> V1DeviceTaintRule read_device_taint_rule_status(name, pretty=pretty) -read the specified DeviceClass +read status of the specified DeviceTaintRule ### Example @@ -2342,7 +3076,7 @@ read the specified DeviceClass ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1_device_class import V1DeviceClass +from kubernetes.aio.client.models.v1_device_taint_rule import V1DeviceTaintRule from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -2367,15 +3101,15 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.aio.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the DeviceClass + name = 'name_example' # str | name of the DeviceTaintRule pretty = 'pretty_example' # str | If 'true', 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) try: - api_response = await api_instance.read_device_class(name, pretty=pretty) - print("The response of ResourceV1Api->read_device_class:\n") + api_response = await api_instance.read_device_taint_rule_status(name, pretty=pretty) + print("The response of ResourceV1Api->read_device_taint_rule_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->read_device_class: %s\n" % e) + print("Exception when calling ResourceV1Api->read_device_taint_rule_status: %s\n" % e) ``` @@ -2385,12 +3119,12 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the DeviceClass | + **name** | **str**| name of the DeviceTaintRule | **pretty** | **str**| If 'true', 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 -[**V1DeviceClass**](V1DeviceClass.md) +[**V1DeviceTaintRule**](V1DeviceTaintRule.md) ### Authorization @@ -2820,6 +3554,182 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **replace_device_taint_rule** +> V1DeviceTaintRule replace_device_taint_rule(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace the specified DeviceTaintRule + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_device_taint_rule import V1DeviceTaintRule +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.ResourceV1Api(api_client) + name = 'name_example' # str | name of the DeviceTaintRule + body = kubernetes.aio.client.V1DeviceTaintRule() # V1DeviceTaintRule | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = await api_instance.replace_device_taint_rule(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of ResourceV1Api->replace_device_taint_rule:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->replace_device_taint_rule: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DeviceTaintRule | + **body** | [**V1DeviceTaintRule**](V1DeviceTaintRule.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1DeviceTaintRule**](V1DeviceTaintRule.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_device_taint_rule_status** +> V1DeviceTaintRule replace_device_taint_rule_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace status of the specified DeviceTaintRule + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_device_taint_rule import V1DeviceTaintRule +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.ResourceV1Api(api_client) + name = 'name_example' # str | name of the DeviceTaintRule + body = kubernetes.aio.client.V1DeviceTaintRule() # V1DeviceTaintRule | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = await api_instance.replace_device_taint_rule_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of ResourceV1Api->replace_device_taint_rule_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->replace_device_taint_rule_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DeviceTaintRule | + **body** | [**V1DeviceTaintRule**](V1DeviceTaintRule.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1DeviceTaintRule**](V1DeviceTaintRule.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **replace_namespaced_resource_claim** > ResourceV1ResourceClaim replace_namespaced_resource_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) diff --git a/kubernetes/aio/docs/ResourceV1ResourceClaim.md b/kubernetes/aio/docs/ResourceV1ResourceClaim.md index c6c8147cf9..f6658b2b9a 100644 --- a/kubernetes/aio/docs/ResourceV1ResourceClaim.md +++ b/kubernetes/aio/docs/ResourceV1ResourceClaim.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1ResourceClaimSpec**](V1ResourceClaimSpec.md) | | +**spec** | [**V1ResourceClaimSpec**](V1ResourceClaimSpec.md) | | [optional] **status** | [**V1ResourceClaimStatus**](V1ResourceClaimStatus.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/SchedulingApi.md b/kubernetes/aio/docs/SchedulingApi.md index 0d6b228232..b45d1264f9 100644 --- a/kubernetes/aio/docs/SchedulingApi.md +++ b/kubernetes/aio/docs/SchedulingApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/SchedulingV1alpha3Api.md b/kubernetes/aio/docs/SchedulingV1alpha3Api.md new file mode 100644 index 0000000000..a7c9efe143 --- /dev/null +++ b/kubernetes/aio/docs/SchedulingV1alpha3Api.md @@ -0,0 +1,2905 @@ +# kubernetes.aio.client.SchedulingV1alpha3Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_namespaced_composite_pod_group**](SchedulingV1alpha3Api.md#create_namespaced_composite_pod_group) | **POST** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups | +[**create_namespaced_pod_group**](SchedulingV1alpha3Api.md#create_namespaced_pod_group) | **POST** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups | +[**create_namespaced_workload**](SchedulingV1alpha3Api.md#create_namespaced_workload) | **POST** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads | +[**delete_collection_namespaced_composite_pod_group**](SchedulingV1alpha3Api.md#delete_collection_namespaced_composite_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups | +[**delete_collection_namespaced_pod_group**](SchedulingV1alpha3Api.md#delete_collection_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups | +[**delete_collection_namespaced_workload**](SchedulingV1alpha3Api.md#delete_collection_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads | +[**delete_namespaced_composite_pod_group**](SchedulingV1alpha3Api.md#delete_namespaced_composite_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | +[**delete_namespaced_pod_group**](SchedulingV1alpha3Api.md#delete_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | +[**delete_namespaced_workload**](SchedulingV1alpha3Api.md#delete_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | +[**get_api_resources**](SchedulingV1alpha3Api.md#get_api_resources) | **GET** /apis/scheduling.k8s.io/v1alpha3/ | +[**list_composite_pod_group_for_all_namespaces**](SchedulingV1alpha3Api.md#list_composite_pod_group_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha3/compositepodgroups | +[**list_namespaced_composite_pod_group**](SchedulingV1alpha3Api.md#list_namespaced_composite_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups | +[**list_namespaced_pod_group**](SchedulingV1alpha3Api.md#list_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups | +[**list_namespaced_workload**](SchedulingV1alpha3Api.md#list_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads | +[**list_pod_group_for_all_namespaces**](SchedulingV1alpha3Api.md#list_pod_group_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha3/podgroups | +[**list_workload_for_all_namespaces**](SchedulingV1alpha3Api.md#list_workload_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha3/workloads | +[**patch_namespaced_composite_pod_group**](SchedulingV1alpha3Api.md#patch_namespaced_composite_pod_group) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | +[**patch_namespaced_composite_pod_group_status**](SchedulingV1alpha3Api.md#patch_namespaced_composite_pod_group_status) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status | +[**patch_namespaced_pod_group**](SchedulingV1alpha3Api.md#patch_namespaced_pod_group) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | +[**patch_namespaced_pod_group_status**](SchedulingV1alpha3Api.md#patch_namespaced_pod_group_status) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status | +[**patch_namespaced_workload**](SchedulingV1alpha3Api.md#patch_namespaced_workload) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | +[**read_namespaced_composite_pod_group**](SchedulingV1alpha3Api.md#read_namespaced_composite_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | +[**read_namespaced_composite_pod_group_status**](SchedulingV1alpha3Api.md#read_namespaced_composite_pod_group_status) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status | +[**read_namespaced_pod_group**](SchedulingV1alpha3Api.md#read_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | +[**read_namespaced_pod_group_status**](SchedulingV1alpha3Api.md#read_namespaced_pod_group_status) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status | +[**read_namespaced_workload**](SchedulingV1alpha3Api.md#read_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | +[**replace_namespaced_composite_pod_group**](SchedulingV1alpha3Api.md#replace_namespaced_composite_pod_group) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | +[**replace_namespaced_composite_pod_group_status**](SchedulingV1alpha3Api.md#replace_namespaced_composite_pod_group_status) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status | +[**replace_namespaced_pod_group**](SchedulingV1alpha3Api.md#replace_namespaced_pod_group) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | +[**replace_namespaced_pod_group_status**](SchedulingV1alpha3Api.md#replace_namespaced_pod_group_status) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status | +[**replace_namespaced_workload**](SchedulingV1alpha3Api.md#replace_namespaced_workload) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | + + +# **create_namespaced_composite_pod_group** +> V1alpha3CompositePodGroup create_namespaced_composite_pod_group(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +create a CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.aio.client.V1alpha3CompositePodGroup() # V1alpha3CompositePodGroup | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = await api_instance.create_namespaced_composite_pod_group(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of SchedulingV1alpha3Api->create_namespaced_composite_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->create_namespaced_composite_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_pod_group** +> V1alpha3PodGroup create_namespaced_pod_group(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +create a PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_pod_group import V1alpha3PodGroup +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.aio.client.V1alpha3PodGroup() # V1alpha3PodGroup | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = await api_instance.create_namespaced_pod_group(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of SchedulingV1alpha3Api->create_namespaced_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->create_namespaced_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3PodGroup**](V1alpha3PodGroup.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.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 | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_workload** +> V1alpha3Workload create_namespaced_workload(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +create a Workload + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_workload import V1alpha3Workload +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.aio.client.V1alpha3Workload() # V1alpha3Workload | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = await api_instance.create_namespaced_workload(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of SchedulingV1alpha3Api->create_namespaced_workload:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->create_namespaced_workload: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3Workload**](V1alpha3Workload.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1alpha3Workload**](V1alpha3Workload.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 | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_composite_pod_group** +> V1Status delete_collection_namespaced_composite_pod_group(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + +delete collection of CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.aio.client.models.v1_status import V1Status +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = await api_instance.delete_collection_namespaced_composite_pod_group(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of SchedulingV1alpha3Api->delete_collection_namespaced_composite_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->delete_collection_namespaced_composite_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| 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**: 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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_pod_group** +> V1Status delete_collection_namespaced_pod_group(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + +delete collection of PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.aio.client.models.v1_status import V1Status +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = await api_instance.delete_collection_namespaced_pod_group(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of SchedulingV1alpha3Api->delete_collection_namespaced_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->delete_collection_namespaced_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| 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**: 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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_workload** +> V1Status delete_collection_namespaced_workload(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + +delete collection of Workload + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.aio.client.models.v1_status import V1Status +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = await api_instance.delete_collection_namespaced_workload(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of SchedulingV1alpha3Api->delete_collection_namespaced_workload:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->delete_collection_namespaced_workload: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| 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**: 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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_composite_pod_group** +> object delete_namespaced_composite_pod_group(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + +delete a CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the CompositePodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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 = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = await api_instance.delete_namespaced_composite_pod_group(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of SchedulingV1alpha3Api->delete_namespaced_composite_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->delete_namespaced_composite_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CompositePodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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 + +**object** + +### 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 | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_pod_group** +> object delete_namespaced_pod_group(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + +delete a PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the PodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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 = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = await api_instance.delete_namespaced_pod_group(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of SchedulingV1alpha3Api->delete_namespaced_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->delete_namespaced_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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 + +**object** + +### 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 | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_workload** +> object delete_namespaced_workload(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + +delete a Workload + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the Workload + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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 = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = await api_instance.delete_namespaced_workload(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of SchedulingV1alpha3Api->delete_namespaced_workload:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->delete_namespaced_workload: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Workload | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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 + +**object** + +### 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 | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_api_resources** +> V1APIResourceList get_api_resources() + +get available resources + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_api_resource_list import V1APIResourceList +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + + try: + api_response = await api_instance.get_api_resources() + print("The response of SchedulingV1alpha3Api->get_api_resources:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->get_api_resources: %s\n" % e) +``` + + + +### 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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_composite_pod_group_for_all_namespaces** +> V1alpha3CompositePodGroupList list_composite_pod_group_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_composite_pod_group_list import V1alpha3CompositePodGroupList +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = await api_instance.list_composite_pod_group_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of SchedulingV1alpha3Api->list_composite_pod_group_for_all_namespaces:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->list_composite_pod_group_for_all_namespaces: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3CompositePodGroupList**](V1alpha3CompositePodGroupList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_composite_pod_group** +> V1alpha3CompositePodGroupList list_namespaced_composite_pod_group(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_composite_pod_group_list import V1alpha3CompositePodGroupList +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = await api_instance.list_namespaced_composite_pod_group(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of SchedulingV1alpha3Api->list_namespaced_composite_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->list_namespaced_composite_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3CompositePodGroupList**](V1alpha3CompositePodGroupList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_pod_group** +> V1alpha3PodGroupList list_namespaced_pod_group(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_pod_group_list import V1alpha3PodGroupList +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = await api_instance.list_namespaced_pod_group(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of SchedulingV1alpha3Api->list_namespaced_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->list_namespaced_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3PodGroupList**](V1alpha3PodGroupList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_workload** +> V1alpha3WorkloadList list_namespaced_workload(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind Workload + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_workload_list import V1alpha3WorkloadList +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = await api_instance.list_namespaced_workload(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of SchedulingV1alpha3Api->list_namespaced_workload:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->list_namespaced_workload: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3WorkloadList**](V1alpha3WorkloadList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_pod_group_for_all_namespaces** +> V1alpha3PodGroupList list_pod_group_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_pod_group_list import V1alpha3PodGroupList +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = await api_instance.list_pod_group_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of SchedulingV1alpha3Api->list_pod_group_for_all_namespaces:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->list_pod_group_for_all_namespaces: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3PodGroupList**](V1alpha3PodGroupList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_workload_for_all_namespaces** +> V1alpha3WorkloadList list_workload_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind Workload + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_workload_list import V1alpha3WorkloadList +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = await api_instance.list_workload_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of SchedulingV1alpha3Api->list_workload_for_all_namespaces:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->list_workload_for_all_namespaces: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3WorkloadList**](V1alpha3WorkloadList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_composite_pod_group** +> V1alpha3CompositePodGroup patch_namespaced_composite_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the CompositePodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_namespaced_composite_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of SchedulingV1alpha3Api->patch_namespaced_composite_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->patch_namespaced_composite_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CompositePodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_composite_pod_group_status** +> V1alpha3CompositePodGroup patch_namespaced_composite_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update status of the specified CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the CompositePodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_namespaced_composite_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of SchedulingV1alpha3Api->patch_namespaced_composite_pod_group_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->patch_namespaced_composite_pod_group_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CompositePodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_pod_group** +> V1alpha3PodGroup patch_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_pod_group import V1alpha3PodGroup +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the PodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of SchedulingV1alpha3Api->patch_namespaced_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->patch_namespaced_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_pod_group_status** +> V1alpha3PodGroup patch_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update status of the specified PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_pod_group import V1alpha3PodGroup +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the PodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of SchedulingV1alpha3Api->patch_namespaced_pod_group_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->patch_namespaced_pod_group_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_workload** +> V1alpha3Workload patch_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified Workload + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_workload import V1alpha3Workload +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the Workload + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of SchedulingV1alpha3Api->patch_namespaced_workload:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->patch_namespaced_workload: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Workload | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1alpha3Workload**](V1alpha3Workload.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_composite_pod_group** +> V1alpha3CompositePodGroup read_namespaced_composite_pod_group(name, namespace, pretty=pretty) + +read the specified CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the CompositePodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + + try: + api_response = await api_instance.read_namespaced_composite_pod_group(name, namespace, pretty=pretty) + print("The response of SchedulingV1alpha3Api->read_namespaced_composite_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->read_namespaced_composite_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CompositePodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_composite_pod_group_status** +> V1alpha3CompositePodGroup read_namespaced_composite_pod_group_status(name, namespace, pretty=pretty) + +read status of the specified CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the CompositePodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + + try: + api_response = await api_instance.read_namespaced_composite_pod_group_status(name, namespace, pretty=pretty) + print("The response of SchedulingV1alpha3Api->read_namespaced_composite_pod_group_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->read_namespaced_composite_pod_group_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CompositePodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_pod_group** +> V1alpha3PodGroup read_namespaced_pod_group(name, namespace, pretty=pretty) + +read the specified PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_pod_group import V1alpha3PodGroup +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the PodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + + try: + api_response = await api_instance.read_namespaced_pod_group(name, namespace, pretty=pretty) + print("The response of SchedulingV1alpha3Api->read_namespaced_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->read_namespaced_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_pod_group_status** +> V1alpha3PodGroup read_namespaced_pod_group_status(name, namespace, pretty=pretty) + +read status of the specified PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_pod_group import V1alpha3PodGroup +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the PodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + + try: + api_response = await api_instance.read_namespaced_pod_group_status(name, namespace, pretty=pretty) + print("The response of SchedulingV1alpha3Api->read_namespaced_pod_group_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->read_namespaced_pod_group_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_workload** +> V1alpha3Workload read_namespaced_workload(name, namespace, pretty=pretty) + +read the specified Workload + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_workload import V1alpha3Workload +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the Workload + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + + try: + api_response = await api_instance.read_namespaced_workload(name, namespace, pretty=pretty) + print("The response of SchedulingV1alpha3Api->read_namespaced_workload:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->read_namespaced_workload: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Workload | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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 + +[**V1alpha3Workload**](V1alpha3Workload.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_composite_pod_group** +> V1alpha3CompositePodGroup replace_namespaced_composite_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace the specified CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the CompositePodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.aio.client.V1alpha3CompositePodGroup() # V1alpha3CompositePodGroup | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = await api_instance.replace_namespaced_composite_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of SchedulingV1alpha3Api->replace_namespaced_composite_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->replace_namespaced_composite_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CompositePodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_composite_pod_group_status** +> V1alpha3CompositePodGroup replace_namespaced_composite_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace status of the specified CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the CompositePodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.aio.client.V1alpha3CompositePodGroup() # V1alpha3CompositePodGroup | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = await api_instance.replace_namespaced_composite_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of SchedulingV1alpha3Api->replace_namespaced_composite_pod_group_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->replace_namespaced_composite_pod_group_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CompositePodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_pod_group** +> V1alpha3PodGroup replace_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace the specified PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_pod_group import V1alpha3PodGroup +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the PodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.aio.client.V1alpha3PodGroup() # V1alpha3PodGroup | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = await api_instance.replace_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of SchedulingV1alpha3Api->replace_namespaced_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->replace_namespaced_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3PodGroup**](V1alpha3PodGroup.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_pod_group_status** +> V1alpha3PodGroup replace_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace status of the specified PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_pod_group import V1alpha3PodGroup +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the PodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.aio.client.V1alpha3PodGroup() # V1alpha3PodGroup | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = await api_instance.replace_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of SchedulingV1alpha3Api->replace_namespaced_pod_group_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->replace_namespaced_pod_group_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3PodGroup**](V1alpha3PodGroup.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_workload** +> V1alpha3Workload replace_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace the specified Workload + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1alpha3_workload import V1alpha3Workload +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the Workload + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.aio.client.V1alpha3Workload() # V1alpha3Workload | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = await api_instance.replace_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of SchedulingV1alpha3Api->replace_namespaced_workload:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->replace_namespaced_workload: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Workload | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3Workload**](V1alpha3Workload.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1alpha3Workload**](V1alpha3Workload.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/SchedulingV1alpha2Api.md b/kubernetes/aio/docs/SchedulingV1beta1Api.md similarity index 93% rename from kubernetes/aio/docs/SchedulingV1alpha2Api.md rename to kubernetes/aio/docs/SchedulingV1beta1Api.md index cddd8a4960..e68ea4f2b7 100644 --- a/kubernetes/aio/docs/SchedulingV1alpha2Api.md +++ b/kubernetes/aio/docs/SchedulingV1beta1Api.md @@ -1,33 +1,33 @@ -# kubernetes.aio.client.SchedulingV1alpha2Api +# kubernetes.aio.client.SchedulingV1beta1Api All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**create_namespaced_pod_group**](SchedulingV1alpha2Api.md#create_namespaced_pod_group) | **POST** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups | -[**create_namespaced_workload**](SchedulingV1alpha2Api.md#create_namespaced_workload) | **POST** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads | -[**delete_collection_namespaced_pod_group**](SchedulingV1alpha2Api.md#delete_collection_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups | -[**delete_collection_namespaced_workload**](SchedulingV1alpha2Api.md#delete_collection_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads | -[**delete_namespaced_pod_group**](SchedulingV1alpha2Api.md#delete_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | -[**delete_namespaced_workload**](SchedulingV1alpha2Api.md#delete_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | -[**get_api_resources**](SchedulingV1alpha2Api.md#get_api_resources) | **GET** /apis/scheduling.k8s.io/v1alpha2/ | -[**list_namespaced_pod_group**](SchedulingV1alpha2Api.md#list_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups | -[**list_namespaced_workload**](SchedulingV1alpha2Api.md#list_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads | -[**list_pod_group_for_all_namespaces**](SchedulingV1alpha2Api.md#list_pod_group_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha2/podgroups | -[**list_workload_for_all_namespaces**](SchedulingV1alpha2Api.md#list_workload_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha2/workloads | -[**patch_namespaced_pod_group**](SchedulingV1alpha2Api.md#patch_namespaced_pod_group) | **PATCH** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | -[**patch_namespaced_pod_group_status**](SchedulingV1alpha2Api.md#patch_namespaced_pod_group_status) | **PATCH** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status | -[**patch_namespaced_workload**](SchedulingV1alpha2Api.md#patch_namespaced_workload) | **PATCH** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | -[**read_namespaced_pod_group**](SchedulingV1alpha2Api.md#read_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | -[**read_namespaced_pod_group_status**](SchedulingV1alpha2Api.md#read_namespaced_pod_group_status) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status | -[**read_namespaced_workload**](SchedulingV1alpha2Api.md#read_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | -[**replace_namespaced_pod_group**](SchedulingV1alpha2Api.md#replace_namespaced_pod_group) | **PUT** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | -[**replace_namespaced_pod_group_status**](SchedulingV1alpha2Api.md#replace_namespaced_pod_group_status) | **PUT** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status | -[**replace_namespaced_workload**](SchedulingV1alpha2Api.md#replace_namespaced_workload) | **PUT** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | +[**create_namespaced_pod_group**](SchedulingV1beta1Api.md#create_namespaced_pod_group) | **POST** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups | +[**create_namespaced_workload**](SchedulingV1beta1Api.md#create_namespaced_workload) | **POST** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads | +[**delete_collection_namespaced_pod_group**](SchedulingV1beta1Api.md#delete_collection_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups | +[**delete_collection_namespaced_workload**](SchedulingV1beta1Api.md#delete_collection_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads | +[**delete_namespaced_pod_group**](SchedulingV1beta1Api.md#delete_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | +[**delete_namespaced_workload**](SchedulingV1beta1Api.md#delete_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | +[**get_api_resources**](SchedulingV1beta1Api.md#get_api_resources) | **GET** /apis/scheduling.k8s.io/v1beta1/ | +[**list_namespaced_pod_group**](SchedulingV1beta1Api.md#list_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups | +[**list_namespaced_workload**](SchedulingV1beta1Api.md#list_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads | +[**list_pod_group_for_all_namespaces**](SchedulingV1beta1Api.md#list_pod_group_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1beta1/podgroups | +[**list_workload_for_all_namespaces**](SchedulingV1beta1Api.md#list_workload_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1beta1/workloads | +[**patch_namespaced_pod_group**](SchedulingV1beta1Api.md#patch_namespaced_pod_group) | **PATCH** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | +[**patch_namespaced_pod_group_status**](SchedulingV1beta1Api.md#patch_namespaced_pod_group_status) | **PATCH** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status | +[**patch_namespaced_workload**](SchedulingV1beta1Api.md#patch_namespaced_workload) | **PATCH** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | +[**read_namespaced_pod_group**](SchedulingV1beta1Api.md#read_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | +[**read_namespaced_pod_group_status**](SchedulingV1beta1Api.md#read_namespaced_pod_group_status) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status | +[**read_namespaced_workload**](SchedulingV1beta1Api.md#read_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | +[**replace_namespaced_pod_group**](SchedulingV1beta1Api.md#replace_namespaced_pod_group) | **PUT** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | +[**replace_namespaced_pod_group_status**](SchedulingV1beta1Api.md#replace_namespaced_pod_group_status) | **PUT** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status | +[**replace_namespaced_workload**](SchedulingV1beta1Api.md#replace_namespaced_workload) | **PUT** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | # **create_namespaced_pod_group** -> V1alpha2PodGroup create_namespaced_pod_group(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +> V1beta1PodGroup create_namespaced_pod_group(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) create a PodGroup @@ -37,7 +37,7 @@ create a PodGroup ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha2_pod_group import V1alpha2PodGroup +from kubernetes.aio.client.models.v1beta1_pod_group import V1beta1PodGroup from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -61,9 +61,9 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects - body = kubernetes.aio.client.V1alpha2PodGroup() # V1alpha2PodGroup | + body = kubernetes.aio.client.V1beta1PodGroup() # V1beta1PodGroup | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) @@ -71,10 +71,10 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: try: api_response = await api_instance.create_namespaced_pod_group(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of SchedulingV1alpha2Api->create_namespaced_pod_group:\n") + print("The response of SchedulingV1beta1Api->create_namespaced_pod_group:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->create_namespaced_pod_group: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->create_namespaced_pod_group: %s\n" % e) ``` @@ -85,7 +85,7 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2PodGroup**](V1alpha2PodGroup.md)| | + **body** | [**V1beta1PodGroup**](V1beta1PodGroup.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -93,7 +93,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -116,7 +116,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_workload** -> V1alpha2Workload create_namespaced_workload(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +> V1beta1Workload create_namespaced_workload(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) create a Workload @@ -126,7 +126,7 @@ create a Workload ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha2_workload import V1alpha2Workload +from kubernetes.aio.client.models.v1beta1_workload import V1beta1Workload from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -150,9 +150,9 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects - body = kubernetes.aio.client.V1alpha2Workload() # V1alpha2Workload | + body = kubernetes.aio.client.V1beta1Workload() # V1beta1Workload | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) @@ -160,10 +160,10 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: try: api_response = await api_instance.create_namespaced_workload(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of SchedulingV1alpha2Api->create_namespaced_workload:\n") + print("The response of SchedulingV1beta1Api->create_namespaced_workload:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->create_namespaced_workload: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->create_namespaced_workload: %s\n" % e) ``` @@ -174,7 +174,7 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2Workload**](V1alpha2Workload.md)| | + **body** | [**V1beta1Workload**](V1beta1Workload.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -182,7 +182,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2Workload**](V1alpha2Workload.md) +[**V1beta1Workload**](V1beta1Workload.md) ### Authorization @@ -240,7 +240,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) @@ -261,10 +261,10 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: try: api_response = await api_instance.delete_collection_namespaced_pod_group(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - print("The response of SchedulingV1alpha2Api->delete_collection_namespaced_pod_group:\n") + print("The response of SchedulingV1beta1Api->delete_collection_namespaced_pod_group:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->delete_collection_namespaced_pod_group: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->delete_collection_namespaced_pod_group: %s\n" % e) ``` @@ -350,7 +350,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) @@ -371,10 +371,10 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: try: api_response = await api_instance.delete_collection_namespaced_workload(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - print("The response of SchedulingV1alpha2Api->delete_collection_namespaced_workload:\n") + print("The response of SchedulingV1beta1Api->delete_collection_namespaced_workload:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->delete_collection_namespaced_workload: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->delete_collection_namespaced_workload: %s\n" % e) ``` @@ -459,7 +459,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the PodGroup namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) @@ -472,10 +472,10 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: try: api_response = await api_instance.delete_namespaced_pod_group(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of SchedulingV1alpha2Api->delete_namespaced_pod_group:\n") + print("The response of SchedulingV1beta1Api->delete_namespaced_pod_group:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->delete_namespaced_pod_group: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->delete_namespaced_pod_group: %s\n" % e) ``` @@ -553,7 +553,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the Workload namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) @@ -566,10 +566,10 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: try: api_response = await api_instance.delete_namespaced_workload(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of SchedulingV1alpha2Api->delete_namespaced_workload:\n") + print("The response of SchedulingV1beta1Api->delete_namespaced_workload:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->delete_namespaced_workload: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->delete_namespaced_workload: %s\n" % e) ``` @@ -647,14 +647,14 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) try: api_response = await api_instance.get_api_resources() - print("The response of SchedulingV1alpha2Api->get_api_resources:\n") + print("The response of SchedulingV1beta1Api->get_api_resources:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->get_api_resources: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->get_api_resources: %s\n" % e) ``` @@ -686,7 +686,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_pod_group** -> V1alpha2PodGroupList list_namespaced_pod_group(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1PodGroupList list_namespaced_pod_group(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind PodGroup @@ -696,7 +696,7 @@ list or watch objects of kind PodGroup ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha2_pod_group_list import V1alpha2PodGroupList +from kubernetes.aio.client.models.v1beta1_pod_group_list import V1beta1PodGroupList from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -720,7 +720,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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) @@ -737,10 +737,10 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: try: api_response = await api_instance.list_namespaced_pod_group(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of SchedulingV1alpha2Api->list_namespaced_pod_group:\n") + print("The response of SchedulingV1beta1Api->list_namespaced_pod_group:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->list_namespaced_pod_group: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->list_namespaced_pod_group: %s\n" % e) ``` @@ -766,7 +766,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2PodGroupList**](V1alpha2PodGroupList.md) +[**V1beta1PodGroupList**](V1beta1PodGroupList.md) ### Authorization @@ -787,7 +787,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_workload** -> V1alpha2WorkloadList list_namespaced_workload(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1WorkloadList list_namespaced_workload(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Workload @@ -797,7 +797,7 @@ list or watch objects of kind Workload ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha2_workload_list import V1alpha2WorkloadList +from kubernetes.aio.client.models.v1beta1_workload_list import V1beta1WorkloadList from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -821,7 +821,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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) @@ -838,10 +838,10 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: try: api_response = await api_instance.list_namespaced_workload(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of SchedulingV1alpha2Api->list_namespaced_workload:\n") + print("The response of SchedulingV1beta1Api->list_namespaced_workload:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->list_namespaced_workload: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->list_namespaced_workload: %s\n" % e) ``` @@ -867,7 +867,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2WorkloadList**](V1alpha2WorkloadList.md) +[**V1beta1WorkloadList**](V1beta1WorkloadList.md) ### Authorization @@ -888,7 +888,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_pod_group_for_all_namespaces** -> V1alpha2PodGroupList list_pod_group_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1PodGroupList list_pod_group_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind PodGroup @@ -898,7 +898,7 @@ list or watch objects of kind PodGroup ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha2_pod_group_list import V1alpha2PodGroupList +from kubernetes.aio.client.models.v1beta1_pod_group_list import V1beta1PodGroupList from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -922,7 +922,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -938,10 +938,10 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: try: api_response = await api_instance.list_pod_group_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of SchedulingV1alpha2Api->list_pod_group_for_all_namespaces:\n") + print("The response of SchedulingV1beta1Api->list_pod_group_for_all_namespaces:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->list_pod_group_for_all_namespaces: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->list_pod_group_for_all_namespaces: %s\n" % e) ``` @@ -966,7 +966,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2PodGroupList**](V1alpha2PodGroupList.md) +[**V1beta1PodGroupList**](V1beta1PodGroupList.md) ### Authorization @@ -987,7 +987,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_workload_for_all_namespaces** -> V1alpha2WorkloadList list_workload_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1WorkloadList list_workload_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Workload @@ -997,7 +997,7 @@ list or watch objects of kind Workload ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha2_workload_list import V1alpha2WorkloadList +from kubernetes.aio.client.models.v1beta1_workload_list import V1beta1WorkloadList from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1021,7 +1021,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1037,10 +1037,10 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: try: api_response = await api_instance.list_workload_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of SchedulingV1alpha2Api->list_workload_for_all_namespaces:\n") + print("The response of SchedulingV1beta1Api->list_workload_for_all_namespaces:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->list_workload_for_all_namespaces: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->list_workload_for_all_namespaces: %s\n" % e) ``` @@ -1065,7 +1065,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2WorkloadList**](V1alpha2WorkloadList.md) +[**V1beta1WorkloadList**](V1beta1WorkloadList.md) ### Authorization @@ -1086,7 +1086,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_pod_group** -> V1alpha2PodGroup patch_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +> V1beta1PodGroup patch_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) partially update the specified PodGroup @@ -1096,7 +1096,7 @@ partially update the specified PodGroup ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha2_pod_group import V1alpha2PodGroup +from kubernetes.aio.client.models.v1beta1_pod_group import V1beta1PodGroup from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1120,7 +1120,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the PodGroup namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | @@ -1132,10 +1132,10 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: try: api_response = await api_instance.patch_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of SchedulingV1alpha2Api->patch_namespaced_pod_group:\n") + print("The response of SchedulingV1beta1Api->patch_namespaced_pod_group:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->patch_namespaced_pod_group: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->patch_namespaced_pod_group: %s\n" % e) ``` @@ -1156,7 +1156,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -1178,7 +1178,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_pod_group_status** -> V1alpha2PodGroup patch_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +> V1beta1PodGroup patch_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) partially update status of the specified PodGroup @@ -1188,7 +1188,7 @@ partially update status of the specified PodGroup ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha2_pod_group import V1alpha2PodGroup +from kubernetes.aio.client.models.v1beta1_pod_group import V1beta1PodGroup from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1212,7 +1212,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the PodGroup namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | @@ -1224,10 +1224,10 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: try: api_response = await api_instance.patch_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of SchedulingV1alpha2Api->patch_namespaced_pod_group_status:\n") + print("The response of SchedulingV1beta1Api->patch_namespaced_pod_group_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->patch_namespaced_pod_group_status: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->patch_namespaced_pod_group_status: %s\n" % e) ``` @@ -1248,7 +1248,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -1270,7 +1270,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_workload** -> V1alpha2Workload patch_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +> V1beta1Workload patch_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) partially update the specified Workload @@ -1280,7 +1280,7 @@ partially update the specified Workload ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha2_workload import V1alpha2Workload +from kubernetes.aio.client.models.v1beta1_workload import V1beta1Workload from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1304,7 +1304,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the Workload namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | @@ -1316,10 +1316,10 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: try: api_response = await api_instance.patch_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of SchedulingV1alpha2Api->patch_namespaced_workload:\n") + print("The response of SchedulingV1beta1Api->patch_namespaced_workload:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->patch_namespaced_workload: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->patch_namespaced_workload: %s\n" % e) ``` @@ -1340,7 +1340,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2Workload**](V1alpha2Workload.md) +[**V1beta1Workload**](V1beta1Workload.md) ### Authorization @@ -1362,7 +1362,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_pod_group** -> V1alpha2PodGroup read_namespaced_pod_group(name, namespace, pretty=pretty) +> V1beta1PodGroup read_namespaced_pod_group(name, namespace, pretty=pretty) read the specified PodGroup @@ -1372,7 +1372,7 @@ read the specified PodGroup ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha2_pod_group import V1alpha2PodGroup +from kubernetes.aio.client.models.v1beta1_pod_group import V1beta1PodGroup from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1396,17 +1396,17 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the PodGroup namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) try: api_response = await api_instance.read_namespaced_pod_group(name, namespace, pretty=pretty) - print("The response of SchedulingV1alpha2Api->read_namespaced_pod_group:\n") + print("The response of SchedulingV1beta1Api->read_namespaced_pod_group:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->read_namespaced_pod_group: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->read_namespaced_pod_group: %s\n" % e) ``` @@ -1422,7 +1422,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -1443,7 +1443,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_pod_group_status** -> V1alpha2PodGroup read_namespaced_pod_group_status(name, namespace, pretty=pretty) +> V1beta1PodGroup read_namespaced_pod_group_status(name, namespace, pretty=pretty) read status of the specified PodGroup @@ -1453,7 +1453,7 @@ read status of the specified PodGroup ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha2_pod_group import V1alpha2PodGroup +from kubernetes.aio.client.models.v1beta1_pod_group import V1beta1PodGroup from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1477,17 +1477,17 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the PodGroup namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) try: api_response = await api_instance.read_namespaced_pod_group_status(name, namespace, pretty=pretty) - print("The response of SchedulingV1alpha2Api->read_namespaced_pod_group_status:\n") + print("The response of SchedulingV1beta1Api->read_namespaced_pod_group_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->read_namespaced_pod_group_status: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->read_namespaced_pod_group_status: %s\n" % e) ``` @@ -1503,7 +1503,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -1524,7 +1524,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_workload** -> V1alpha2Workload read_namespaced_workload(name, namespace, pretty=pretty) +> V1beta1Workload read_namespaced_workload(name, namespace, pretty=pretty) read the specified Workload @@ -1534,7 +1534,7 @@ read the specified Workload ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha2_workload import V1alpha2Workload +from kubernetes.aio.client.models.v1beta1_workload import V1beta1Workload from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1558,17 +1558,17 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the Workload namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) try: api_response = await api_instance.read_namespaced_workload(name, namespace, pretty=pretty) - print("The response of SchedulingV1alpha2Api->read_namespaced_workload:\n") + print("The response of SchedulingV1beta1Api->read_namespaced_workload:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->read_namespaced_workload: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->read_namespaced_workload: %s\n" % e) ``` @@ -1584,7 +1584,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2Workload**](V1alpha2Workload.md) +[**V1beta1Workload**](V1beta1Workload.md) ### Authorization @@ -1605,7 +1605,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_pod_group** -> V1alpha2PodGroup replace_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +> V1beta1PodGroup replace_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) replace the specified PodGroup @@ -1615,7 +1615,7 @@ replace the specified PodGroup ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha2_pod_group import V1alpha2PodGroup +from kubernetes.aio.client.models.v1beta1_pod_group import V1beta1PodGroup from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1639,10 +1639,10 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the PodGroup namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects - body = kubernetes.aio.client.V1alpha2PodGroup() # V1alpha2PodGroup | + body = kubernetes.aio.client.V1beta1PodGroup() # V1beta1PodGroup | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) @@ -1650,10 +1650,10 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: try: api_response = await api_instance.replace_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of SchedulingV1alpha2Api->replace_namespaced_pod_group:\n") + print("The response of SchedulingV1beta1Api->replace_namespaced_pod_group:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->replace_namespaced_pod_group: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->replace_namespaced_pod_group: %s\n" % e) ``` @@ -1665,7 +1665,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodGroup | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2PodGroup**](V1alpha2PodGroup.md)| | + **body** | [**V1beta1PodGroup**](V1beta1PodGroup.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -1673,7 +1673,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -1695,7 +1695,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_pod_group_status** -> V1alpha2PodGroup replace_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +> V1beta1PodGroup replace_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) replace status of the specified PodGroup @@ -1705,7 +1705,7 @@ replace status of the specified PodGroup ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha2_pod_group import V1alpha2PodGroup +from kubernetes.aio.client.models.v1beta1_pod_group import V1beta1PodGroup from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1729,10 +1729,10 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the PodGroup namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects - body = kubernetes.aio.client.V1alpha2PodGroup() # V1alpha2PodGroup | + body = kubernetes.aio.client.V1beta1PodGroup() # V1beta1PodGroup | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) @@ -1740,10 +1740,10 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: try: api_response = await api_instance.replace_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of SchedulingV1alpha2Api->replace_namespaced_pod_group_status:\n") + print("The response of SchedulingV1beta1Api->replace_namespaced_pod_group_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->replace_namespaced_pod_group_status: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->replace_namespaced_pod_group_status: %s\n" % e) ``` @@ -1755,7 +1755,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodGroup | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2PodGroup**](V1alpha2PodGroup.md)| | + **body** | [**V1beta1PodGroup**](V1beta1PodGroup.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -1763,7 +1763,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -1785,7 +1785,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_workload** -> V1alpha2Workload replace_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +> V1beta1Workload replace_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) replace the specified Workload @@ -1795,7 +1795,7 @@ replace the specified Workload ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha2_workload import V1alpha2Workload +from kubernetes.aio.client.models.v1beta1_workload import V1beta1Workload from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -1819,10 +1819,10 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.aio.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the Workload namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects - body = kubernetes.aio.client.V1alpha2Workload() # V1alpha2Workload | + body = kubernetes.aio.client.V1beta1Workload() # V1beta1Workload | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) @@ -1830,10 +1830,10 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: try: api_response = await api_instance.replace_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of SchedulingV1alpha2Api->replace_namespaced_workload:\n") + print("The response of SchedulingV1beta1Api->replace_namespaced_workload:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->replace_namespaced_workload: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->replace_namespaced_workload: %s\n" % e) ``` @@ -1845,7 +1845,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Workload | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2Workload**](V1alpha2Workload.md)| | + **body** | [**V1beta1Workload**](V1beta1Workload.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -1853,7 +1853,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2Workload**](V1alpha2Workload.md) +[**V1beta1Workload**](V1beta1Workload.md) ### Authorization diff --git a/kubernetes/aio/docs/StorageApi.md b/kubernetes/aio/docs/StorageApi.md index f3aa35de60..170a0c8522 100644 --- a/kubernetes/aio/docs/StorageApi.md +++ b/kubernetes/aio/docs/StorageApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/StorageV1Api.md b/kubernetes/aio/docs/StorageV1Api.md index d4d13afe90..6ee91a145d 100644 --- a/kubernetes/aio/docs/StorageV1Api.md +++ b/kubernetes/aio/docs/StorageV1Api.md @@ -32,6 +32,7 @@ Method | HTTP request | Description [**list_volume_attributes_class**](StorageV1Api.md#list_volume_attributes_class) | **GET** /apis/storage.k8s.io/v1/volumeattributesclasses | [**patch_csi_driver**](StorageV1Api.md#patch_csi_driver) | **PATCH** /apis/storage.k8s.io/v1/csidrivers/{name} | [**patch_csi_node**](StorageV1Api.md#patch_csi_node) | **PATCH** /apis/storage.k8s.io/v1/csinodes/{name} | +[**patch_csi_node_status**](StorageV1Api.md#patch_csi_node_status) | **PATCH** /apis/storage.k8s.io/v1/csinodes/{name}/status | [**patch_namespaced_csi_storage_capacity**](StorageV1Api.md#patch_namespaced_csi_storage_capacity) | **PATCH** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | [**patch_storage_class**](StorageV1Api.md#patch_storage_class) | **PATCH** /apis/storage.k8s.io/v1/storageclasses/{name} | [**patch_volume_attachment**](StorageV1Api.md#patch_volume_attachment) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name} | @@ -39,6 +40,7 @@ Method | HTTP request | Description [**patch_volume_attributes_class**](StorageV1Api.md#patch_volume_attributes_class) | **PATCH** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | [**read_csi_driver**](StorageV1Api.md#read_csi_driver) | **GET** /apis/storage.k8s.io/v1/csidrivers/{name} | [**read_csi_node**](StorageV1Api.md#read_csi_node) | **GET** /apis/storage.k8s.io/v1/csinodes/{name} | +[**read_csi_node_status**](StorageV1Api.md#read_csi_node_status) | **GET** /apis/storage.k8s.io/v1/csinodes/{name}/status | [**read_namespaced_csi_storage_capacity**](StorageV1Api.md#read_namespaced_csi_storage_capacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | [**read_storage_class**](StorageV1Api.md#read_storage_class) | **GET** /apis/storage.k8s.io/v1/storageclasses/{name} | [**read_volume_attachment**](StorageV1Api.md#read_volume_attachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name} | @@ -46,6 +48,7 @@ Method | HTTP request | Description [**read_volume_attributes_class**](StorageV1Api.md#read_volume_attributes_class) | **GET** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | [**replace_csi_driver**](StorageV1Api.md#replace_csi_driver) | **PUT** /apis/storage.k8s.io/v1/csidrivers/{name} | [**replace_csi_node**](StorageV1Api.md#replace_csi_node) | **PUT** /apis/storage.k8s.io/v1/csinodes/{name} | +[**replace_csi_node_status**](StorageV1Api.md#replace_csi_node_status) | **PUT** /apis/storage.k8s.io/v1/csinodes/{name}/status | [**replace_namespaced_csi_storage_capacity**](StorageV1Api.md#replace_namespaced_csi_storage_capacity) | **PUT** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | [**replace_storage_class**](StorageV1Api.md#replace_storage_class) | **PUT** /apis/storage.k8s.io/v1/storageclasses/{name} | [**replace_volume_attachment**](StorageV1Api.md#replace_volume_attachment) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name} | @@ -2698,6 +2701,96 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CSINode | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1CSINode**](V1CSINode.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_csi_node_status** +> V1CSINode patch_csi_node_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update status of the specified CSINode + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_csi_node import V1CSINode +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.StorageV1Api(api_client) + name = 'name_example' # str | name of the CSINode + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_csi_node_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of StorageV1Api->patch_csi_node_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StorageV1Api->patch_csi_node_status: %s\n" % e) +``` + + + ### Parameters @@ -3314,6 +3407,85 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CSINode | + **pretty** | **str**| If 'true', 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 + +[**V1CSINode**](V1CSINode.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_csi_node_status** +> V1CSINode read_csi_node_status(name, pretty=pretty) + +read status of the specified CSINode + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_csi_node import V1CSINode +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.StorageV1Api(api_client) + name = 'name_example' # str | name of the CSINode + pretty = 'pretty_example' # str | If 'true', 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) + + try: + api_response = await api_instance.read_csi_node_status(name, pretty=pretty) + print("The response of StorageV1Api->read_csi_node_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StorageV1Api->read_csi_node_status: %s\n" % e) +``` + + + ### Parameters @@ -3882,6 +4054,94 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CSINode | + **body** | [**V1CSINode**](V1CSINode.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1CSINode**](V1CSINode.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_csi_node_status** +> V1CSINode replace_csi_node_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace status of the specified CSINode + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_csi_node import V1CSINode +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.StorageV1Api(api_client) + name = 'name_example' # str | name of the CSINode + body = kubernetes.aio.client.V1CSINode() # V1CSINode | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = await api_instance.replace_csi_node_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of StorageV1Api->replace_csi_node_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StorageV1Api->replace_csi_node_status: %s\n" % e) +``` + + + ### Parameters diff --git a/kubernetes/aio/docs/StorageV1beta1Api.md b/kubernetes/aio/docs/StorageV1beta1Api.md deleted file mode 100644 index 90a2e6624a..0000000000 --- a/kubernetes/aio/docs/StorageV1beta1Api.md +++ /dev/null @@ -1,732 +0,0 @@ -# kubernetes.aio.client.StorageV1beta1Api - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_volume_attributes_class**](StorageV1beta1Api.md#create_volume_attributes_class) | **POST** /apis/storage.k8s.io/v1beta1/volumeattributesclasses | -[**delete_collection_volume_attributes_class**](StorageV1beta1Api.md#delete_collection_volume_attributes_class) | **DELETE** /apis/storage.k8s.io/v1beta1/volumeattributesclasses | -[**delete_volume_attributes_class**](StorageV1beta1Api.md#delete_volume_attributes_class) | **DELETE** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | -[**get_api_resources**](StorageV1beta1Api.md#get_api_resources) | **GET** /apis/storage.k8s.io/v1beta1/ | -[**list_volume_attributes_class**](StorageV1beta1Api.md#list_volume_attributes_class) | **GET** /apis/storage.k8s.io/v1beta1/volumeattributesclasses | -[**patch_volume_attributes_class**](StorageV1beta1Api.md#patch_volume_attributes_class) | **PATCH** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | -[**read_volume_attributes_class**](StorageV1beta1Api.md#read_volume_attributes_class) | **GET** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | -[**replace_volume_attributes_class**](StorageV1beta1Api.md#replace_volume_attributes_class) | **PUT** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | - - -# **create_volume_attributes_class** -> V1beta1VolumeAttributesClass create_volume_attributes_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - -create a VolumeAttributesClass - -### Example - -* Api Key Authentication (BearerToken): - -```python -import kubernetes.aio.client -from kubernetes.aio.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass -from kubernetes.aio.client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = kubernetes.aio.client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: BearerToken -configuration.api_key['BearerToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['BearerToken'] = 'Bearer' - -# Enter a context with an instance of the API client -async with kubernetes.aio.client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = kubernetes.aio.client.StorageV1beta1Api(api_client) - body = kubernetes.aio.client.V1beta1VolumeAttributesClass() # V1beta1VolumeAttributesClass | - pretty = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) - field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) - - try: - api_response = await api_instance.create_volume_attributes_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of StorageV1beta1Api->create_volume_attributes_class:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling StorageV1beta1Api->create_volume_attributes_class: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.md)| | - **pretty** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] - **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 - -[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.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 | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_collection_volume_attributes_class** -> V1Status delete_collection_volume_attributes_class(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - -delete collection of VolumeAttributesClass - -### Example - -* Api Key Authentication (BearerToken): - -```python -import kubernetes.aio.client -from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions -from kubernetes.aio.client.models.v1_status import V1Status -from kubernetes.aio.client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = kubernetes.aio.client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: BearerToken -configuration.api_key['BearerToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['BearerToken'] = 'Bearer' - -# Enter a context with an instance of the API client -async with kubernetes.aio.client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = kubernetes.aio.client.StorageV1beta1Api(api_client) - pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - grace_period_seconds = 56 # int | 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) - ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) - label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) - orphan_dependents = True # bool | 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) - propagation_policy = 'propagation_policy_example' # str | 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) - resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) - - try: - api_response = await api_instance.delete_collection_volume_attributes_class(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - print("The response of StorageV1beta1Api->delete_collection_volume_attributes_class:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling StorageV1beta1Api->delete_collection_volume_attributes_class: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **grace_period_seconds** | **int**| 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] - **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] - **orphan_dependents** | **bool**| 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] - **propagation_policy** | **str**| 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] - **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] - **timeout_seconds** | **int**| 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**: 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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_volume_attributes_class** -> V1beta1VolumeAttributesClass delete_volume_attributes_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - -delete a VolumeAttributesClass - -### Example - -* Api Key Authentication (BearerToken): - -```python -import kubernetes.aio.client -from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions -from kubernetes.aio.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass -from kubernetes.aio.client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = kubernetes.aio.client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: BearerToken -configuration.api_key['BearerToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['BearerToken'] = 'Bearer' - -# Enter a context with an instance of the API client -async with kubernetes.aio.client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = kubernetes.aio.client.StorageV1beta1Api(api_client) - name = 'name_example' # str | name of the VolumeAttributesClass - pretty = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - grace_period_seconds = 56 # int | 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) - ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) - orphan_dependents = True # bool | 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) - propagation_policy = 'propagation_policy_example' # str | 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 = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) - - try: - api_response = await api_instance.delete_volume_attributes_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of StorageV1beta1Api->delete_volume_attributes_class:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling StorageV1beta1Api->delete_volume_attributes_class: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the VolumeAttributesClass | - **pretty** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **grace_period_seconds** | **int**| 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] - **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] - **orphan_dependents** | **bool**| 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] - **propagation_policy** | **str**| 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 - -[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.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 | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_api_resources** -> V1APIResourceList get_api_resources() - -get available resources - -### Example - -* Api Key Authentication (BearerToken): - -```python -import kubernetes.aio.client -from kubernetes.aio.client.models.v1_api_resource_list import V1APIResourceList -from kubernetes.aio.client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = kubernetes.aio.client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: BearerToken -configuration.api_key['BearerToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['BearerToken'] = 'Bearer' - -# Enter a context with an instance of the API client -async with kubernetes.aio.client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = kubernetes.aio.client.StorageV1beta1Api(api_client) - - try: - api_response = await api_instance.get_api_resources() - print("The response of StorageV1beta1Api->get_api_resources:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling StorageV1beta1Api->get_api_resources: %s\n" % e) -``` - - - -### 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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_volume_attributes_class** -> V1beta1VolumeAttributesClassList list_volume_attributes_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - -list or watch objects of kind VolumeAttributesClass - -### Example - -* Api Key Authentication (BearerToken): - -```python -import kubernetes.aio.client -from kubernetes.aio.client.models.v1beta1_volume_attributes_class_list import V1beta1VolumeAttributesClassList -from kubernetes.aio.client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = kubernetes.aio.client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: BearerToken -configuration.api_key['BearerToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['BearerToken'] = 'Bearer' - -# Enter a context with an instance of the API client -async with kubernetes.aio.client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = kubernetes.aio.client.StorageV1beta1Api(api_client) - pretty = 'pretty_example' # str | If 'true', 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) - allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) - field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) - resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - - try: - api_response = await api_instance.list_volume_attributes_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of StorageV1beta1Api->list_volume_attributes_class:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling StorageV1beta1Api->list_volume_attributes_class: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **str**| If 'true', 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] - **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] - **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1VolumeAttributesClassList**](V1beta1VolumeAttributesClassList.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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_volume_attributes_class** -> V1beta1VolumeAttributesClass patch_volume_attributes_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - -partially update the specified VolumeAttributesClass - -### Example - -* Api Key Authentication (BearerToken): - -```python -import kubernetes.aio.client -from kubernetes.aio.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass -from kubernetes.aio.client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = kubernetes.aio.client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: BearerToken -configuration.api_key['BearerToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['BearerToken'] = 'Bearer' - -# Enter a context with an instance of the API client -async with kubernetes.aio.client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = kubernetes.aio.client.StorageV1beta1Api(api_client) - name = 'name_example' # str | name of the VolumeAttributesClass - body = None # object | - pretty = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) - field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) - - try: - api_response = await api_instance.patch_volume_attributes_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of StorageV1beta1Api->patch_volume_attributes_class:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling StorageV1beta1Api->patch_volume_attributes_class: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the VolumeAttributesClass | - **body** | **object**| | - **pretty** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] - **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 - -[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_volume_attributes_class** -> V1beta1VolumeAttributesClass read_volume_attributes_class(name, pretty=pretty) - -read the specified VolumeAttributesClass - -### Example - -* Api Key Authentication (BearerToken): - -```python -import kubernetes.aio.client -from kubernetes.aio.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass -from kubernetes.aio.client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = kubernetes.aio.client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: BearerToken -configuration.api_key['BearerToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['BearerToken'] = 'Bearer' - -# Enter a context with an instance of the API client -async with kubernetes.aio.client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = kubernetes.aio.client.StorageV1beta1Api(api_client) - name = 'name_example' # str | name of the VolumeAttributesClass - pretty = 'pretty_example' # str | If 'true', 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) - - try: - api_response = await api_instance.read_volume_attributes_class(name, pretty=pretty) - print("The response of StorageV1beta1Api->read_volume_attributes_class:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling StorageV1beta1Api->read_volume_attributes_class: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the VolumeAttributesClass | - **pretty** | **str**| If 'true', 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 - -[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_volume_attributes_class** -> V1beta1VolumeAttributesClass replace_volume_attributes_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - -replace the specified VolumeAttributesClass - -### Example - -* Api Key Authentication (BearerToken): - -```python -import kubernetes.aio.client -from kubernetes.aio.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass -from kubernetes.aio.client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = kubernetes.aio.client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: BearerToken -configuration.api_key['BearerToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['BearerToken'] = 'Bearer' - -# Enter a context with an instance of the API client -async with kubernetes.aio.client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = kubernetes.aio.client.StorageV1beta1Api(api_client) - name = 'name_example' # str | name of the VolumeAttributesClass - body = kubernetes.aio.client.V1beta1VolumeAttributesClass() # V1beta1VolumeAttributesClass | - pretty = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) - field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) - - try: - api_response = await api_instance.replace_volume_attributes_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of StorageV1beta1Api->replace_volume_attributes_class:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling StorageV1beta1Api->replace_volume_attributes_class: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the VolumeAttributesClass | - **body** | [**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.md)| | - **pretty** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] - **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 - -[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.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 | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/StoragemigrationApi.md b/kubernetes/aio/docs/StoragemigrationApi.md index fe3653cffd..55b38b2013 100644 --- a/kubernetes/aio/docs/StoragemigrationApi.md +++ b/kubernetes/aio/docs/StoragemigrationApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/aio/docs/CertificatesV1alpha1Api.md b/kubernetes/aio/docs/StoragemigrationV1Api.md similarity index 71% rename from kubernetes/aio/docs/CertificatesV1alpha1Api.md rename to kubernetes/aio/docs/StoragemigrationV1Api.md index 9b2122daf2..35796780ec 100644 --- a/kubernetes/aio/docs/CertificatesV1alpha1Api.md +++ b/kubernetes/aio/docs/StoragemigrationV1Api.md @@ -1,23 +1,26 @@ -# kubernetes.aio.client.CertificatesV1alpha1Api +# kubernetes.aio.client.StoragemigrationV1Api All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**create_cluster_trust_bundle**](CertificatesV1alpha1Api.md#create_cluster_trust_bundle) | **POST** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | -[**delete_cluster_trust_bundle**](CertificatesV1alpha1Api.md#delete_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | -[**delete_collection_cluster_trust_bundle**](CertificatesV1alpha1Api.md#delete_collection_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | -[**get_api_resources**](CertificatesV1alpha1Api.md#get_api_resources) | **GET** /apis/certificates.k8s.io/v1alpha1/ | -[**list_cluster_trust_bundle**](CertificatesV1alpha1Api.md#list_cluster_trust_bundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | -[**patch_cluster_trust_bundle**](CertificatesV1alpha1Api.md#patch_cluster_trust_bundle) | **PATCH** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | -[**read_cluster_trust_bundle**](CertificatesV1alpha1Api.md#read_cluster_trust_bundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | -[**replace_cluster_trust_bundle**](CertificatesV1alpha1Api.md#replace_cluster_trust_bundle) | **PUT** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | +[**create_storage_version_migration**](StoragemigrationV1Api.md#create_storage_version_migration) | **POST** /apis/storagemigration.k8s.io/v1/storageversionmigrations | +[**delete_collection_storage_version_migration**](StoragemigrationV1Api.md#delete_collection_storage_version_migration) | **DELETE** /apis/storagemigration.k8s.io/v1/storageversionmigrations | +[**delete_storage_version_migration**](StoragemigrationV1Api.md#delete_storage_version_migration) | **DELETE** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | +[**get_api_resources**](StoragemigrationV1Api.md#get_api_resources) | **GET** /apis/storagemigration.k8s.io/v1/ | +[**list_storage_version_migration**](StoragemigrationV1Api.md#list_storage_version_migration) | **GET** /apis/storagemigration.k8s.io/v1/storageversionmigrations | +[**patch_storage_version_migration**](StoragemigrationV1Api.md#patch_storage_version_migration) | **PATCH** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | +[**patch_storage_version_migration_status**](StoragemigrationV1Api.md#patch_storage_version_migration_status) | **PATCH** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status | +[**read_storage_version_migration**](StoragemigrationV1Api.md#read_storage_version_migration) | **GET** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | +[**read_storage_version_migration_status**](StoragemigrationV1Api.md#read_storage_version_migration_status) | **GET** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status | +[**replace_storage_version_migration**](StoragemigrationV1Api.md#replace_storage_version_migration) | **PUT** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | +[**replace_storage_version_migration_status**](StoragemigrationV1Api.md#replace_storage_version_migration_status) | **PUT** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status | -# **create_cluster_trust_bundle** -> V1alpha1ClusterTrustBundle create_cluster_trust_bundle(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +# **create_storage_version_migration** +> V1StorageVersionMigration create_storage_version_migration(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -create a ClusterTrustBundle +create a StorageVersionMigration ### Example @@ -25,7 +28,7 @@ create a ClusterTrustBundle ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle +from kubernetes.aio.client.models.v1_storage_version_migration import V1StorageVersionMigration from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -49,19 +52,19 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.CertificatesV1alpha1Api(api_client) - body = kubernetes.aio.client.V1alpha1ClusterTrustBundle() # V1alpha1ClusterTrustBundle | + api_instance = kubernetes.aio.client.StoragemigrationV1Api(api_client) + body = kubernetes.aio.client.V1StorageVersionMigration() # V1StorageVersionMigration | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = await api_instance.create_cluster_trust_bundle(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of CertificatesV1alpha1Api->create_cluster_trust_bundle:\n") + api_response = await api_instance.create_storage_version_migration(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of StoragemigrationV1Api->create_storage_version_migration:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1alpha1Api->create_cluster_trust_bundle: %s\n" % e) + print("Exception when calling StoragemigrationV1Api->create_storage_version_migration: %s\n" % e) ``` @@ -71,7 +74,7 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md)| | + **body** | [**V1StorageVersionMigration**](V1StorageVersionMigration.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -79,7 +82,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md) +[**V1StorageVersionMigration**](V1StorageVersionMigration.md) ### Authorization @@ -101,10 +104,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_cluster_trust_bundle** -> object delete_cluster_trust_bundle(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) +# **delete_collection_storage_version_migration** +> V1Status delete_collection_storage_version_migration(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) -delete a ClusterTrustBundle +delete collection of StorageVersionMigration ### Example @@ -113,6 +116,7 @@ delete a ClusterTrustBundle ```python import kubernetes.aio.client from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.aio.client.models.v1_status import V1Status from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -136,22 +140,30 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.CertificatesV1alpha1Api(api_client) - name = 'name_example' # str | name of the ClusterTrustBundle + api_instance = kubernetes.aio.client.StoragemigrationV1Api(api_client) pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) grace_period_seconds = 56 # int | 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) ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) orphan_dependents = True # bool | 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) propagation_policy = 'propagation_policy_example' # str | 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = await api_instance.delete_cluster_trust_bundle(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of CertificatesV1alpha1Api->delete_cluster_trust_bundle:\n") + api_response = await api_instance.delete_collection_storage_version_migration(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of StoragemigrationV1Api->delete_collection_storage_version_migration:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1alpha1Api->delete_cluster_trust_bundle: %s\n" % e) + print("Exception when calling StoragemigrationV1Api->delete_collection_storage_version_migration: %s\n" % e) ``` @@ -161,18 +173,26 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterTrustBundle | **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **grace_period_seconds** | **int**| 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] **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] **orphan_dependents** | **bool**| 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] **propagation_policy** | **str**| 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| 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 -**object** +[**V1Status**](V1Status.md) ### Authorization @@ -188,15 +208,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_cluster_trust_bundle** -> V1Status delete_collection_cluster_trust_bundle(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) +# **delete_storage_version_migration** +> object delete_storage_version_migration(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) -delete collection of ClusterTrustBundle +delete a StorageVersionMigration ### Example @@ -205,7 +224,6 @@ delete collection of ClusterTrustBundle ```python import kubernetes.aio.client from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions -from kubernetes.aio.client.models.v1_status import V1Status from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -229,30 +247,22 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.CertificatesV1alpha1Api(api_client) + api_instance = kubernetes.aio.client.StoragemigrationV1Api(api_client) + name = 'name_example' # str | name of the StorageVersionMigration pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) grace_period_seconds = 56 # int | 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) ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) - label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) orphan_dependents = True # bool | 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) propagation_policy = 'propagation_policy_example' # str | 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) - resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) body = kubernetes.aio.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = await api_instance.delete_collection_cluster_trust_bundle(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - print("The response of CertificatesV1alpha1Api->delete_collection_cluster_trust_bundle:\n") + api_response = await api_instance.delete_storage_version_migration(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of StoragemigrationV1Api->delete_storage_version_migration:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1alpha1Api->delete_collection_cluster_trust_bundle: %s\n" % e) + print("Exception when calling StoragemigrationV1Api->delete_storage_version_migration: %s\n" % e) ``` @@ -262,26 +272,18 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StorageVersionMigration | **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **grace_period_seconds** | **int**| 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] **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] **orphan_dependents** | **bool**| 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] **propagation_policy** | **str**| 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] - **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] - **timeout_seconds** | **int**| 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) +**object** ### Authorization @@ -297,6 +299,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -336,14 +339,14 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.CertificatesV1alpha1Api(api_client) + api_instance = kubernetes.aio.client.StoragemigrationV1Api(api_client) try: api_response = await api_instance.get_api_resources() - print("The response of CertificatesV1alpha1Api->get_api_resources:\n") + print("The response of StoragemigrationV1Api->get_api_resources:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1alpha1Api->get_api_resources: %s\n" % e) + print("Exception when calling StoragemigrationV1Api->get_api_resources: %s\n" % e) ``` @@ -374,10 +377,10 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_cluster_trust_bundle** -> V1alpha1ClusterTrustBundleList list_cluster_trust_bundle(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **list_storage_version_migration** +> V1StorageVersionMigrationList list_storage_version_migration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind ClusterTrustBundle +list or watch objects of kind StorageVersionMigration ### Example @@ -385,7 +388,7 @@ list or watch objects of kind ClusterTrustBundle ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_list import V1alpha1ClusterTrustBundleList +from kubernetes.aio.client.models.v1_storage_version_migration_list import V1StorageVersionMigrationList from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -409,7 +412,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.CertificatesV1alpha1Api(api_client) + api_instance = kubernetes.aio.client.StoragemigrationV1Api(api_client) pretty = 'pretty_example' # str | If 'true', 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) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) @@ -424,11 +427,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = await api_instance.list_cluster_trust_bundle(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of CertificatesV1alpha1Api->list_cluster_trust_bundle:\n") + api_response = await api_instance.list_storage_version_migration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of StoragemigrationV1Api->list_storage_version_migration:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1alpha1Api->list_cluster_trust_bundle: %s\n" % e) + print("Exception when calling StoragemigrationV1Api->list_storage_version_migration: %s\n" % e) ``` @@ -453,7 +456,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1ClusterTrustBundleList**](V1alpha1ClusterTrustBundleList.md) +[**V1StorageVersionMigrationList**](V1StorageVersionMigrationList.md) ### Authorization @@ -473,10 +476,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_cluster_trust_bundle** -> V1alpha1ClusterTrustBundle patch_cluster_trust_bundle(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **patch_storage_version_migration** +> V1StorageVersionMigration patch_storage_version_migration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) -partially update the specified ClusterTrustBundle +partially update the specified StorageVersionMigration ### Example @@ -484,7 +487,7 @@ partially update the specified ClusterTrustBundle ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle +from kubernetes.aio.client.models.v1_storage_version_migration import V1StorageVersionMigration from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -508,8 +511,8 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.CertificatesV1alpha1Api(api_client) - name = 'name_example' # str | name of the ClusterTrustBundle + api_instance = kubernetes.aio.client.StoragemigrationV1Api(api_client) + name = 'name_example' # str | name of the StorageVersionMigration body = None # object | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -518,11 +521,11 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: force = True # bool | 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) try: - api_response = await api_instance.patch_cluster_trust_bundle(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of CertificatesV1alpha1Api->patch_cluster_trust_bundle:\n") + api_response = await api_instance.patch_storage_version_migration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of StoragemigrationV1Api->patch_storage_version_migration:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1alpha1Api->patch_cluster_trust_bundle: %s\n" % e) + print("Exception when calling StoragemigrationV1Api->patch_storage_version_migration: %s\n" % e) ``` @@ -532,7 +535,7 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterTrustBundle | + **name** | **str**| name of the StorageVersionMigration | **body** | **object**| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] @@ -542,7 +545,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md) +[**V1StorageVersionMigration**](V1StorageVersionMigration.md) ### Authorization @@ -563,10 +566,179 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_cluster_trust_bundle** -> V1alpha1ClusterTrustBundle read_cluster_trust_bundle(name, pretty=pretty) +# **patch_storage_version_migration_status** +> V1StorageVersionMigration patch_storage_version_migration_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update status of the specified StorageVersionMigration + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_storage_version_migration import V1StorageVersionMigration +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.StoragemigrationV1Api(api_client) + name = 'name_example' # str | name of the StorageVersionMigration + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = await api_instance.patch_storage_version_migration_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of StoragemigrationV1Api->patch_storage_version_migration_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StoragemigrationV1Api->patch_storage_version_migration_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StorageVersionMigration | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1StorageVersionMigration**](V1StorageVersionMigration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_storage_version_migration** +> V1StorageVersionMigration read_storage_version_migration(name, pretty=pretty) + +read the specified StorageVersionMigration + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_storage_version_migration import V1StorageVersionMigration +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.StoragemigrationV1Api(api_client) + name = 'name_example' # str | name of the StorageVersionMigration + pretty = 'pretty_example' # str | If 'true', 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) + + try: + api_response = await api_instance.read_storage_version_migration(name, pretty=pretty) + print("The response of StoragemigrationV1Api->read_storage_version_migration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StoragemigrationV1Api->read_storage_version_migration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StorageVersionMigration | + **pretty** | **str**| If 'true', 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 + +[**V1StorageVersionMigration**](V1StorageVersionMigration.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_storage_version_migration_status** +> V1StorageVersionMigration read_storage_version_migration_status(name, pretty=pretty) -read the specified ClusterTrustBundle +read status of the specified StorageVersionMigration ### Example @@ -574,7 +746,7 @@ read the specified ClusterTrustBundle ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle +from kubernetes.aio.client.models.v1_storage_version_migration import V1StorageVersionMigration from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -598,16 +770,16 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.CertificatesV1alpha1Api(api_client) - name = 'name_example' # str | name of the ClusterTrustBundle + api_instance = kubernetes.aio.client.StoragemigrationV1Api(api_client) + name = 'name_example' # str | name of the StorageVersionMigration pretty = 'pretty_example' # str | If 'true', 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) try: - api_response = await api_instance.read_cluster_trust_bundle(name, pretty=pretty) - print("The response of CertificatesV1alpha1Api->read_cluster_trust_bundle:\n") + api_response = await api_instance.read_storage_version_migration_status(name, pretty=pretty) + print("The response of StoragemigrationV1Api->read_storage_version_migration_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1alpha1Api->read_cluster_trust_bundle: %s\n" % e) + print("Exception when calling StoragemigrationV1Api->read_storage_version_migration_status: %s\n" % e) ``` @@ -617,12 +789,12 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterTrustBundle | + **name** | **str**| name of the StorageVersionMigration | **pretty** | **str**| If 'true', 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 -[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md) +[**V1StorageVersionMigration**](V1StorageVersionMigration.md) ### Authorization @@ -642,10 +814,98 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_cluster_trust_bundle** -> V1alpha1ClusterTrustBundle replace_cluster_trust_bundle(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +# **replace_storage_version_migration** +> V1StorageVersionMigration replace_storage_version_migration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace the specified StorageVersionMigration + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.aio.client +from kubernetes.aio.client.models.v1_storage_version_migration import V1StorageVersionMigration +from kubernetes.aio.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.aio.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +async with kubernetes.aio.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.aio.client.StoragemigrationV1Api(api_client) + name = 'name_example' # str | name of the StorageVersionMigration + body = kubernetes.aio.client.V1StorageVersionMigration() # V1StorageVersionMigration | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = await api_instance.replace_storage_version_migration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of StoragemigrationV1Api->replace_storage_version_migration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StoragemigrationV1Api->replace_storage_version_migration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StorageVersionMigration | + **body** | [**V1StorageVersionMigration**](V1StorageVersionMigration.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1StorageVersionMigration**](V1StorageVersionMigration.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_storage_version_migration_status** +> V1StorageVersionMigration replace_storage_version_migration_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -replace the specified ClusterTrustBundle +replace status of the specified StorageVersionMigration ### Example @@ -653,7 +913,7 @@ replace the specified ClusterTrustBundle ```python import kubernetes.aio.client -from kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle +from kubernetes.aio.client.models.v1_storage_version_migration import V1StorageVersionMigration from kubernetes.aio.client.rest import ApiException from pprint import pprint @@ -677,20 +937,20 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client async with kubernetes.aio.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.aio.client.CertificatesV1alpha1Api(api_client) - name = 'name_example' # str | name of the ClusterTrustBundle - body = kubernetes.aio.client.V1alpha1ClusterTrustBundle() # V1alpha1ClusterTrustBundle | + api_instance = kubernetes.aio.client.StoragemigrationV1Api(api_client) + name = 'name_example' # str | name of the StorageVersionMigration + body = kubernetes.aio.client.V1StorageVersionMigration() # V1StorageVersionMigration | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = await api_instance.replace_cluster_trust_bundle(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of CertificatesV1alpha1Api->replace_cluster_trust_bundle:\n") + api_response = await api_instance.replace_storage_version_migration_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of StoragemigrationV1Api->replace_storage_version_migration_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1alpha1Api->replace_cluster_trust_bundle: %s\n" % e) + print("Exception when calling StoragemigrationV1Api->replace_storage_version_migration_status: %s\n" % e) ``` @@ -700,8 +960,8 @@ async with kubernetes.aio.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterTrustBundle | - **body** | [**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md)| | + **name** | **str**| name of the StorageVersionMigration | + **body** | [**V1StorageVersionMigration**](V1StorageVersionMigration.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -709,7 +969,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md) +[**V1StorageVersionMigration**](V1StorageVersionMigration.md) ### Authorization diff --git a/kubernetes/aio/docs/V1AggregationRule.md b/kubernetes/aio/docs/V1AggregationRule.md index ceada05c60..664ba2a41c 100644 --- a/kubernetes/aio/docs/V1AggregationRule.md +++ b/kubernetes/aio/docs/V1AggregationRule.md @@ -6,7 +6,7 @@ AggregationRule describes how to locate ClusterRoles to aggregate into the Clust Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cluster_role_selectors** | [**List[V1LabelSelector]**](V1LabelSelector.md) | ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added | [optional] +**cluster_role_selectors** | [**List[V1LabelSelector]**](V1LabelSelector.md) | clusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added | [optional] ## Example diff --git a/kubernetes/aio/docs/V1BoundObjectReference.md b/kubernetes/aio/docs/V1BoundObjectReference.md index 72947c92f2..c252d31578 100644 --- a/kubernetes/aio/docs/V1BoundObjectReference.md +++ b/kubernetes/aio/docs/V1BoundObjectReference.md @@ -7,7 +7,7 @@ BoundObjectReference is a reference to an object that a token is bound to. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | apiVersion is API version of the referent. | [optional] -**kind** | **str** | kind of the referent. Valid kinds are 'Pod' and 'Secret'. | [optional] +**kind** | **str** | kind of the referent. Valid kinds are 'Pod', 'Secret', 'Node', 'ValidatingWebhookConfiguration', and 'MutatingWebhookConfiguration'. | [optional] **name** | **str** | name of the referent. | [optional] **uid** | **str** | uid of the referent. | [optional] diff --git a/kubernetes/aio/docs/V1CELDeviceSelector.md b/kubernetes/aio/docs/V1CELDeviceSelector.md index 1204b5c53f..00559e4ff6 100644 --- a/kubernetes/aio/docs/V1CELDeviceSelector.md +++ b/kubernetes/aio/docs/V1CELDeviceSelector.md @@ -6,7 +6,7 @@ CELDeviceSelector contains a CEL expression for selecting a device. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**expression** | **str** | 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. | +**expression** | **str** | 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. | ## Example diff --git a/kubernetes/aio/docs/V1CSIDriverSpec.md b/kubernetes/aio/docs/V1CSIDriverSpec.md index 56c93bdf9c..c52595ea1e 100644 --- a/kubernetes/aio/docs/V1CSIDriverSpec.md +++ b/kubernetes/aio/docs/V1CSIDriverSpec.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **fs_group_policy** | **str** | 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] **node_allocatable_update_period_seconds** | **int** | 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] **pod_info_on_mount** | **bool** | 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] -**prevent_pod_scheduling_if_missing** | **bool** | 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] +**prevent_pod_scheduling_if_missing** | **bool** | 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 a beta feature and requires the VolumeLimitScaling feature gate to be enabled. Default is \"false\". | [optional] **requires_republish** | **bool** | 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] **se_linux_mount** | **bool** | 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] **service_account_token_in_secrets** | **bool** | 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/aio/docs/V1CSINode.md b/kubernetes/aio/docs/V1CSINode.md index bab3252603..34ed870659 100644 --- a/kubernetes/aio/docs/V1CSINode.md +++ b/kubernetes/aio/docs/V1CSINode.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **kind** | **str** | 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** | [**V1CSINodeSpec**](V1CSINodeSpec.md) | | +**status** | [**V1CSINodeStatus**](V1CSINodeStatus.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1CSINodeStatus.md b/kubernetes/aio/docs/V1CSINodeStatus.md new file mode 100644 index 0000000000..25c9b00648 --- /dev/null +++ b/kubernetes/aio/docs/V1CSINodeStatus.md @@ -0,0 +1,28 @@ +# V1CSINodeStatus + +CSINodeStatus contains health and status information for storage on a node. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**storage_health** | [**List[V1StorageHealth]**](V1StorageHealth.md) | storageHealth contains backend health reports for CSI drivers registered on the node. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1_csi_node_status import V1CSINodeStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1CSINodeStatus from a JSON string +v1_csi_node_status_instance = V1CSINodeStatus.from_json(json) +# print the JSON string representation of the object +print(V1CSINodeStatus.to_json()) + +# convert the object into a dict +v1_csi_node_status_dict = v1_csi_node_status_instance.to_dict() +# create an instance of V1CSINodeStatus from a dict +v1_csi_node_status_from_dict = V1CSINodeStatus.from_dict(v1_csi_node_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1CapacityRequestPolicyRange.md b/kubernetes/aio/docs/V1CapacityRequestPolicyRange.md index 882a8eda16..f5ffdd3103 100644 --- a/kubernetes/aio/docs/V1CapacityRequestPolicyRange.md +++ b/kubernetes/aio/docs/V1CapacityRequestPolicyRange.md @@ -1,6 +1,6 @@ # V1CapacityRequestPolicyRange -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. +CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - 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. ## Properties diff --git a/kubernetes/aio/docs/V1ClusterRole.md b/kubernetes/aio/docs/V1ClusterRole.md index c716d1ef92..94430b21fb 100644 --- a/kubernetes/aio/docs/V1ClusterRole.md +++ b/kubernetes/aio/docs/V1ClusterRole.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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] -**rules** | [**List[V1PolicyRule]**](V1PolicyRule.md) | Rules holds all the PolicyRules for this ClusterRole | [optional] +**rules** | [**List[V1PolicyRule]**](V1PolicyRule.md) | rules holds all the PolicyRules for this ClusterRole | [optional] ## Example diff --git a/kubernetes/aio/docs/V1ClusterRoleBinding.md b/kubernetes/aio/docs/V1ClusterRoleBinding.md index 387024cabc..0fb577c32e 100644 --- a/kubernetes/aio/docs/V1ClusterRoleBinding.md +++ b/kubernetes/aio/docs/V1ClusterRoleBinding.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **kind** | **str** | 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] **role_ref** | [**V1RoleRef**](V1RoleRef.md) | | -**subjects** | [**List[RbacV1Subject]**](RbacV1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] +**subjects** | [**List[RbacV1Subject]**](RbacV1Subject.md) | subjects holds references to the objects the role applies to. | [optional] ## Example diff --git a/kubernetes/docs/V1alpha1ClusterTrustBundle.md b/kubernetes/aio/docs/V1ClusterTrustBundle.md similarity index 61% rename from kubernetes/docs/V1alpha1ClusterTrustBundle.md rename to kubernetes/aio/docs/V1ClusterTrustBundle.md index 987b978410..41ad8ed503 100644 --- a/kubernetes/docs/V1alpha1ClusterTrustBundle.md +++ b/kubernetes/aio/docs/V1ClusterTrustBundle.md @@ -1,6 +1,6 @@ -# V1alpha1ClusterTrustBundle +# V1ClusterTrustBundle -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. +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 signer, 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. ## Properties @@ -9,23 +9,23 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1alpha1ClusterTrustBundleSpec**](V1alpha1ClusterTrustBundleSpec.md) | | +**spec** | [**V1ClusterTrustBundleSpec**](V1ClusterTrustBundleSpec.md) | | ## Example ```python -from kubernetes.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle +from kubernetes.aio.client.models.v1_cluster_trust_bundle import V1ClusterTrustBundle # TODO update the JSON string below json = "{}" -# create an instance of V1alpha1ClusterTrustBundle from a JSON string -v1alpha1_cluster_trust_bundle_instance = V1alpha1ClusterTrustBundle.from_json(json) +# create an instance of V1ClusterTrustBundle from a JSON string +v1_cluster_trust_bundle_instance = V1ClusterTrustBundle.from_json(json) # print the JSON string representation of the object -print(V1alpha1ClusterTrustBundle.to_json()) +print(V1ClusterTrustBundle.to_json()) # convert the object into a dict -v1alpha1_cluster_trust_bundle_dict = v1alpha1_cluster_trust_bundle_instance.to_dict() -# create an instance of V1alpha1ClusterTrustBundle from a dict -v1alpha1_cluster_trust_bundle_from_dict = V1alpha1ClusterTrustBundle.from_dict(v1alpha1_cluster_trust_bundle_dict) +v1_cluster_trust_bundle_dict = v1_cluster_trust_bundle_instance.to_dict() +# create an instance of V1ClusterTrustBundle from a dict +v1_cluster_trust_bundle_from_dict = V1ClusterTrustBundle.from_dict(v1_cluster_trust_bundle_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1ClusterTrustBundleList.md b/kubernetes/aio/docs/V1ClusterTrustBundleList.md similarity index 61% rename from kubernetes/docs/V1alpha1ClusterTrustBundleList.md rename to kubernetes/aio/docs/V1ClusterTrustBundleList.md index 5f7e4a9330..6085361749 100644 --- a/kubernetes/docs/V1alpha1ClusterTrustBundleList.md +++ b/kubernetes/aio/docs/V1ClusterTrustBundleList.md @@ -1,4 +1,4 @@ -# V1alpha1ClusterTrustBundleList +# V1ClusterTrustBundleList ClusterTrustBundleList is a collection of ClusterTrustBundle objects @@ -7,25 +7,25 @@ ClusterTrustBundleList is a collection of ClusterTrustBundle objects Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | 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[V1alpha1ClusterTrustBundle]**](V1alpha1ClusterTrustBundle.md) | items is a collection of ClusterTrustBundle objects | +**items** | [**List[V1ClusterTrustBundle]**](V1ClusterTrustBundle.md) | items is a collection of ClusterTrustBundle objects | **kind** | **str** | 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] ## Example ```python -from kubernetes.client.models.v1alpha1_cluster_trust_bundle_list import V1alpha1ClusterTrustBundleList +from kubernetes.aio.client.models.v1_cluster_trust_bundle_list import V1ClusterTrustBundleList # TODO update the JSON string below json = "{}" -# create an instance of V1alpha1ClusterTrustBundleList from a JSON string -v1alpha1_cluster_trust_bundle_list_instance = V1alpha1ClusterTrustBundleList.from_json(json) +# create an instance of V1ClusterTrustBundleList from a JSON string +v1_cluster_trust_bundle_list_instance = V1ClusterTrustBundleList.from_json(json) # print the JSON string representation of the object -print(V1alpha1ClusterTrustBundleList.to_json()) +print(V1ClusterTrustBundleList.to_json()) # convert the object into a dict -v1alpha1_cluster_trust_bundle_list_dict = v1alpha1_cluster_trust_bundle_list_instance.to_dict() -# create an instance of V1alpha1ClusterTrustBundleList from a dict -v1alpha1_cluster_trust_bundle_list_from_dict = V1alpha1ClusterTrustBundleList.from_dict(v1alpha1_cluster_trust_bundle_list_dict) +v1_cluster_trust_bundle_list_dict = v1_cluster_trust_bundle_list_instance.to_dict() +# create an instance of V1ClusterTrustBundleList from a dict +v1_cluster_trust_bundle_list_from_dict = V1ClusterTrustBundleList.from_dict(v1_cluster_trust_bundle_list_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1ClusterTrustBundleProjection.md b/kubernetes/aio/docs/V1ClusterTrustBundleProjection.md index b1c703e959..f7bf61660b 100644 --- a/kubernetes/aio/docs/V1ClusterTrustBundleProjection.md +++ b/kubernetes/aio/docs/V1ClusterTrustBundleProjection.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **optional** | **bool** | If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles. | [optional] **path** | **str** | Relative path from the volume root to write the bundle. | **signer_name** | **str** | Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated. | [optional] +**user** | **int** | user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] ## Example diff --git a/kubernetes/docs/V1alpha1ClusterTrustBundleSpec.md b/kubernetes/aio/docs/V1ClusterTrustBundleSpec.md similarity index 76% rename from kubernetes/docs/V1alpha1ClusterTrustBundleSpec.md rename to kubernetes/aio/docs/V1ClusterTrustBundleSpec.md index 15320adb0e..735ee671c8 100644 --- a/kubernetes/docs/V1alpha1ClusterTrustBundleSpec.md +++ b/kubernetes/aio/docs/V1ClusterTrustBundleSpec.md @@ -1,4 +1,4 @@ -# V1alpha1ClusterTrustBundleSpec +# V1ClusterTrustBundleSpec ClusterTrustBundleSpec contains the signer and trust anchors. @@ -12,18 +12,18 @@ Name | Type | Description | Notes ## Example ```python -from kubernetes.client.models.v1alpha1_cluster_trust_bundle_spec import V1alpha1ClusterTrustBundleSpec +from kubernetes.aio.client.models.v1_cluster_trust_bundle_spec import V1ClusterTrustBundleSpec # TODO update the JSON string below json = "{}" -# create an instance of V1alpha1ClusterTrustBundleSpec from a JSON string -v1alpha1_cluster_trust_bundle_spec_instance = V1alpha1ClusterTrustBundleSpec.from_json(json) +# create an instance of V1ClusterTrustBundleSpec from a JSON string +v1_cluster_trust_bundle_spec_instance = V1ClusterTrustBundleSpec.from_json(json) # print the JSON string representation of the object -print(V1alpha1ClusterTrustBundleSpec.to_json()) +print(V1ClusterTrustBundleSpec.to_json()) # convert the object into a dict -v1alpha1_cluster_trust_bundle_spec_dict = v1alpha1_cluster_trust_bundle_spec_instance.to_dict() -# create an instance of V1alpha1ClusterTrustBundleSpec from a dict -v1alpha1_cluster_trust_bundle_spec_from_dict = V1alpha1ClusterTrustBundleSpec.from_dict(v1alpha1_cluster_trust_bundle_spec_dict) +v1_cluster_trust_bundle_spec_dict = v1_cluster_trust_bundle_spec_instance.to_dict() +# create an instance of V1ClusterTrustBundleSpec from a dict +v1_cluster_trust_bundle_spec_from_dict = V1ClusterTrustBundleSpec.from_dict(v1_cluster_trust_bundle_spec_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1ConfigMap.md b/kubernetes/aio/docs/V1ConfigMap.md index 3fd7847364..f63176049e 100644 --- a/kubernetes/aio/docs/V1ConfigMap.md +++ b/kubernetes/aio/docs/V1ConfigMap.md @@ -7,7 +7,7 @@ ConfigMap holds configuration data for pods to consume. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | 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] -**binary_data** | **Dict[str, bytes]** | BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. | [optional] +**binary_data** | **Dict[str, bytes]** | BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in 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] **data** | **Dict[str, str]** | Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. | [optional] **immutable** | **bool** | Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. | [optional] **kind** | **str** | 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] diff --git a/kubernetes/aio/docs/V1ConfigMapEnvSource.md b/kubernetes/aio/docs/V1ConfigMapEnvSource.md index e4a0cf4f9c..930f83cce0 100644 --- a/kubernetes/aio/docs/V1ConfigMapEnvSource.md +++ b/kubernetes/aio/docs/V1ConfigMapEnvSource.md @@ -1,6 +1,6 @@ # V1ConfigMapEnvSource -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. +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. Keys in the BinaryData field are not currently propagated to container env vars. ## Properties diff --git a/kubernetes/aio/docs/V1ConfigMapKeySelector.md b/kubernetes/aio/docs/V1ConfigMapKeySelector.md index 3193876a04..bd652c944c 100644 --- a/kubernetes/aio/docs/V1ConfigMapKeySelector.md +++ b/kubernetes/aio/docs/V1ConfigMapKeySelector.md @@ -6,7 +6,7 @@ Selects a key from a ConfigMap. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**key** | **str** | The key to select. | +**key** | **str** | The key to select from the ConfigMap's Data field. Keys in the BinaryData field are not currently propagated to container env vars. | **name** | **str** | Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] **optional** | **bool** | Specify whether the ConfigMap or its key must be defined | [optional] diff --git a/kubernetes/aio/docs/V1ConfigMapVolumeSource.md b/kubernetes/aio/docs/V1ConfigMapVolumeSource.md index 3d9356f4f8..32341817a1 100644 --- a/kubernetes/aio/docs/V1ConfigMapVolumeSource.md +++ b/kubernetes/aio/docs/V1ConfigMapVolumeSource.md @@ -7,6 +7,7 @@ Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data f Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default_mode** | **int** | defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] +**default_user** | **int** | defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] **items** | [**List[V1KeyToPath]**](V1KeyToPath.md) | items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] **name** | **str** | Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] **optional** | **bool** | optional specify whether the ConfigMap or its keys must be defined | [optional] diff --git a/kubernetes/aio/docs/V1ControllerRevision.md b/kubernetes/aio/docs/V1ControllerRevision.md index d61210bc1e..8353ca272a 100644 --- a/kubernetes/aio/docs/V1ControllerRevision.md +++ b/kubernetes/aio/docs/V1ControllerRevision.md @@ -7,10 +7,10 @@ ControllerRevision implements an immutable snapshot of state data. Clients are r Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | 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] -**data** | **object** | Data is the serialized representation of the state. | [optional] +**data** | **object** | Data is the serialized representation of the state. | **kind** | **str** | 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] -**revision** | **int** | Revision indicates the revision of the state represented by Data. | +**revision** | **int** | Revision indicates the revision of the state represented by Data. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1DaemonSet.md b/kubernetes/aio/docs/V1DaemonSet.md index a45a19c683..bae2762767 100644 --- a/kubernetes/aio/docs/V1DaemonSet.md +++ b/kubernetes/aio/docs/V1DaemonSet.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1DaemonSetSpec**](V1DaemonSetSpec.md) | | [optional] +**spec** | [**V1DaemonSetSpec**](V1DaemonSetSpec.md) | | **status** | [**V1DaemonSetStatus**](V1DaemonSetStatus.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1DaemonSetCondition.md b/kubernetes/aio/docs/V1DaemonSetCondition.md index 11d7b67cf8..b5c19c62c7 100644 --- a/kubernetes/aio/docs/V1DaemonSetCondition.md +++ b/kubernetes/aio/docs/V1DaemonSetCondition.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes **last_transition_time** | **datetime** | Last time the condition transitioned from one status to another. | [optional] **message** | **str** | A human readable message indicating details about the transition. | [optional] **reason** | **str** | The reason for the condition's last transition. | [optional] -**status** | **str** | Status of the condition, one of True, False, Unknown. | -**type** | **str** | Type of DaemonSet condition. | +**status** | **str** | Status of the condition, one of True, False, Unknown. | [optional] +**type** | **str** | Type of DaemonSet condition. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1Deployment.md b/kubernetes/aio/docs/V1Deployment.md index 7786d3358c..016baa9f0f 100644 --- a/kubernetes/aio/docs/V1Deployment.md +++ b/kubernetes/aio/docs/V1Deployment.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1DeploymentSpec**](V1DeploymentSpec.md) | | [optional] +**spec** | [**V1DeploymentSpec**](V1DeploymentSpec.md) | | **status** | [**V1DeploymentStatus**](V1DeploymentStatus.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1DeploymentCondition.md b/kubernetes/aio/docs/V1DeploymentCondition.md index e5b04cd3e5..184c47425d 100644 --- a/kubernetes/aio/docs/V1DeploymentCondition.md +++ b/kubernetes/aio/docs/V1DeploymentCondition.md @@ -10,8 +10,8 @@ Name | Type | Description | Notes **last_update_time** | **datetime** | The last time this condition was updated. | [optional] **message** | **str** | A human readable message indicating details about the transition. | [optional] **reason** | **str** | The reason for the condition's last transition. | [optional] -**status** | **str** | Status of the condition, one of True, False, Unknown. | -**type** | **str** | Type of deployment condition. | +**status** | **str** | Status of the condition, one of True, False, Unknown. | [optional] +**type** | **str** | Type of deployment condition. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1Device.md b/kubernetes/aio/docs/V1Device.md index 3456ec0815..68ca30c2be 100644 --- a/kubernetes/aio/docs/V1Device.md +++ b/kubernetes/aio/docs/V1Device.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **capacity** | [**Dict[str, 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] **consumes_counters** | [**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** | **str** | Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. | -**node_allocatable_resource_mappings** | [**Dict[str, 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] +**node_allocatable_resources** | [**Dict[str, V1NodeAllocatableResource]**](V1NodeAllocatableResource.md) | NodeAllocatableResources 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] **node_name** | **str** | 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] **node_selector** | [**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 a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] diff --git a/kubernetes/aio/docs/V1DeviceClass.md b/kubernetes/aio/docs/V1DeviceClass.md index 63778684dc..ad2847c046 100644 --- a/kubernetes/aio/docs/V1DeviceClass.md +++ b/kubernetes/aio/docs/V1DeviceClass.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1DeviceClassSpec**](V1DeviceClassSpec.md) | | +**spec** | [**V1DeviceClassSpec**](V1DeviceClassSpec.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1DeviceClassSpec.md b/kubernetes/aio/docs/V1DeviceClassSpec.md index d96eec757d..d34ce2a400 100644 --- a/kubernetes/aio/docs/V1DeviceClassSpec.md +++ b/kubernetes/aio/docs/V1DeviceClassSpec.md @@ -7,7 +7,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] -**extended_resource_name** | **str** | 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] +**extended_resource_name** | **str** | 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] **selectors** | [**List[V1DeviceSelector]**](V1DeviceSelector.md) | Each selector must be satisfied by a device which is claimed via this class. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1DeviceCounterConsumption.md b/kubernetes/aio/docs/V1DeviceCounterConsumption.md index 123cc9aecf..b5e7d9594b 100644 --- a/kubernetes/aio/docs/V1DeviceCounterConsumption.md +++ b/kubernetes/aio/docs/V1DeviceCounterConsumption.md @@ -6,6 +6,7 @@ DeviceCounterConsumption defines a set of counters that a device will consume fr Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**compatibility_groups** | **List[str]** | CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique. | [optional] **counter_set** | **str** | CounterSet is the name of the set from which the counters defined will be consumed. | **counters** | [**Dict[str, V1Counter]**](V1Counter.md) | Counters defines the counters that will be consumed by the device. The maximum number of counters is 32. | diff --git a/kubernetes/aio/docs/V1DeviceDerivedAttribute.md b/kubernetes/aio/docs/V1DeviceDerivedAttribute.md new file mode 100644 index 0000000000..ff97a5b000 --- /dev/null +++ b/kubernetes/aio/docs/V1DeviceDerivedAttribute.md @@ -0,0 +1,29 @@ +# V1DeviceDerivedAttribute + +DeviceDerivedAttribute defines a derived attribute computed via CEL. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expression** | **str** | Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget. | +**name** | **str** | Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint. | + +## Example + +```python +from kubernetes.aio.client.models.v1_device_derived_attribute import V1DeviceDerivedAttribute + +# TODO update the JSON string below +json = "{}" +# create an instance of V1DeviceDerivedAttribute from a JSON string +v1_device_derived_attribute_instance = V1DeviceDerivedAttribute.from_json(json) +# print the JSON string representation of the object +print(V1DeviceDerivedAttribute.to_json()) + +# convert the object into a dict +v1_device_derived_attribute_dict = v1_device_derived_attribute_instance.to_dict() +# create an instance of V1DeviceDerivedAttribute from a dict +v1_device_derived_attribute_from_dict = V1DeviceDerivedAttribute.from_dict(v1_device_derived_attribute_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1DeviceRequestAllocationResult.md b/kubernetes/aio/docs/V1DeviceRequestAllocationResult.md index a7f3a0aa11..729dce1179 100644 --- a/kubernetes/aio/docs/V1DeviceRequestAllocationResult.md +++ b/kubernetes/aio/docs/V1DeviceRequestAllocationResult.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **pool** | **str** | 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** | **str** | 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. | **share_id** | **str** | 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] +**skip_node_operations** | **List[str]** | SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated. | [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] ## Example diff --git a/kubernetes/aio/docs/V1DeviceSubRequest.md b/kubernetes/aio/docs/V1DeviceSubRequest.md index 74c5fb6e8b..6bc2418a09 100644 --- a/kubernetes/aio/docs/V1DeviceSubRequest.md +++ b/kubernetes/aio/docs/V1DeviceSubRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **allocation_mode** | **str** | 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] **capacity** | [**V1CapacityRequirements**](V1CapacityRequirements.md) | | [optional] **count** | **int** | 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] +**derived_attributes** | [**List[V1DeviceDerivedAttribute]**](V1DeviceDerivedAttribute.md) | DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. | [optional] **device_class_name** | **str** | 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** | **str** | 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] diff --git a/kubernetes/aio/docs/V1DeviceTaintRule.md b/kubernetes/aio/docs/V1DeviceTaintRule.md new file mode 100644 index 0000000000..c3221cdd1b --- /dev/null +++ b/kubernetes/aio/docs/V1DeviceTaintRule.md @@ -0,0 +1,32 @@ +# V1DeviceTaintRule + +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 +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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** | **str** | 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** | [**V1DeviceTaintRuleSpec**](V1DeviceTaintRuleSpec.md) | | +**status** | [**V1DeviceTaintRuleStatus**](V1DeviceTaintRuleStatus.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1_device_taint_rule import V1DeviceTaintRule + +# TODO update the JSON string below +json = "{}" +# create an instance of V1DeviceTaintRule from a JSON string +v1_device_taint_rule_instance = V1DeviceTaintRule.from_json(json) +# print the JSON string representation of the object +print(V1DeviceTaintRule.to_json()) + +# convert the object into a dict +v1_device_taint_rule_dict = v1_device_taint_rule_instance.to_dict() +# create an instance of V1DeviceTaintRule from a dict +v1_device_taint_rule_from_dict = V1DeviceTaintRule.from_dict(v1_device_taint_rule_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1ServiceCIDRList.md b/kubernetes/aio/docs/V1DeviceTaintRuleList.md similarity index 63% rename from kubernetes/docs/V1beta1ServiceCIDRList.md rename to kubernetes/aio/docs/V1DeviceTaintRuleList.md index 8398fbdc32..a771cf53f0 100644 --- a/kubernetes/docs/V1beta1ServiceCIDRList.md +++ b/kubernetes/aio/docs/V1DeviceTaintRuleList.md @@ -1,31 +1,31 @@ -# V1beta1ServiceCIDRList +# V1DeviceTaintRuleList -ServiceCIDRList contains a list of ServiceCIDR objects. +DeviceTaintRuleList is a collection of DeviceTaintRules. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | 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[V1beta1ServiceCIDR]**](V1beta1ServiceCIDR.md) | items is the list of ServiceCIDRs. | +**items** | [**List[V1DeviceTaintRule]**](V1DeviceTaintRule.md) | Items is the list of DeviceTaintRules. | **kind** | **str** | 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] ## Example ```python -from kubernetes.client.models.v1beta1_service_cidr_list import V1beta1ServiceCIDRList +from kubernetes.aio.client.models.v1_device_taint_rule_list import V1DeviceTaintRuleList # TODO update the JSON string below json = "{}" -# create an instance of V1beta1ServiceCIDRList from a JSON string -v1beta1_service_cidr_list_instance = V1beta1ServiceCIDRList.from_json(json) +# create an instance of V1DeviceTaintRuleList from a JSON string +v1_device_taint_rule_list_instance = V1DeviceTaintRuleList.from_json(json) # print the JSON string representation of the object -print(V1beta1ServiceCIDRList.to_json()) +print(V1DeviceTaintRuleList.to_json()) # convert the object into a dict -v1beta1_service_cidr_list_dict = v1beta1_service_cidr_list_instance.to_dict() -# create an instance of V1beta1ServiceCIDRList from a dict -v1beta1_service_cidr_list_from_dict = V1beta1ServiceCIDRList.from_dict(v1beta1_service_cidr_list_dict) +v1_device_taint_rule_list_dict = v1_device_taint_rule_list_instance.to_dict() +# create an instance of V1DeviceTaintRuleList from a dict +v1_device_taint_rule_list_from_dict = V1DeviceTaintRuleList.from_dict(v1_device_taint_rule_list_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1DeviceTaintRuleSpec.md b/kubernetes/aio/docs/V1DeviceTaintRuleSpec.md new file mode 100644 index 0000000000..39c3c4b1f3 --- /dev/null +++ b/kubernetes/aio/docs/V1DeviceTaintRuleSpec.md @@ -0,0 +1,29 @@ +# V1DeviceTaintRuleSpec + +DeviceTaintRuleSpec specifies the selector and one taint. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device_selector** | [**V1DeviceTaintSelector**](V1DeviceTaintSelector.md) | | [optional] +**taint** | [**V1DeviceTaint**](V1DeviceTaint.md) | | + +## Example + +```python +from kubernetes.aio.client.models.v1_device_taint_rule_spec import V1DeviceTaintRuleSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1DeviceTaintRuleSpec from a JSON string +v1_device_taint_rule_spec_instance = V1DeviceTaintRuleSpec.from_json(json) +# print the JSON string representation of the object +print(V1DeviceTaintRuleSpec.to_json()) + +# convert the object into a dict +v1_device_taint_rule_spec_dict = v1_device_taint_rule_spec_instance.to_dict() +# create an instance of V1DeviceTaintRuleSpec from a dict +v1_device_taint_rule_spec_from_dict = V1DeviceTaintRuleSpec.from_dict(v1_device_taint_rule_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1DeviceTaintRuleStatus.md b/kubernetes/aio/docs/V1DeviceTaintRuleStatus.md new file mode 100644 index 0000000000..258433aaff --- /dev/null +++ b/kubernetes/aio/docs/V1DeviceTaintRuleStatus.md @@ -0,0 +1,28 @@ +# V1DeviceTaintRuleStatus + +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] + +## Example + +```python +from kubernetes.aio.client.models.v1_device_taint_rule_status import V1DeviceTaintRuleStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1DeviceTaintRuleStatus from a JSON string +v1_device_taint_rule_status_instance = V1DeviceTaintRuleStatus.from_json(json) +# print the JSON string representation of the object +print(V1DeviceTaintRuleStatus.to_json()) + +# convert the object into a dict +v1_device_taint_rule_status_dict = v1_device_taint_rule_status_instance.to_dict() +# create an instance of V1DeviceTaintRuleStatus from a dict +v1_device_taint_rule_status_from_dict = V1DeviceTaintRuleStatus.from_dict(v1_device_taint_rule_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1DeviceTaintSelector.md b/kubernetes/aio/docs/V1DeviceTaintSelector.md new file mode 100644 index 0000000000..f36df117d3 --- /dev/null +++ b/kubernetes/aio/docs/V1DeviceTaintSelector.md @@ -0,0 +1,30 @@ +# V1DeviceTaintSelector + +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** | **str** | 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** | **str** | If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver. | [optional] +**pool** | **str** | 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] + +## Example + +```python +from kubernetes.aio.client.models.v1_device_taint_selector import V1DeviceTaintSelector + +# TODO update the JSON string below +json = "{}" +# create an instance of V1DeviceTaintSelector from a JSON string +v1_device_taint_selector_instance = V1DeviceTaintSelector.from_json(json) +# print the JSON string representation of the object +print(V1DeviceTaintSelector.to_json()) + +# convert the object into a dict +v1_device_taint_selector_dict = v1_device_taint_selector_instance.to_dict() +# create an instance of V1DeviceTaintSelector from a dict +v1_device_taint_selector_from_dict = V1DeviceTaintSelector.from_dict(v1_device_taint_selector_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1DownwardAPIVolumeFile.md b/kubernetes/aio/docs/V1DownwardAPIVolumeFile.md index b8ee6248be..4f3b46f6e4 100644 --- a/kubernetes/aio/docs/V1DownwardAPIVolumeFile.md +++ b/kubernetes/aio/docs/V1DownwardAPIVolumeFile.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **mode** | **int** | Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] **path** | **str** | Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' | **resource_field_ref** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | | [optional] +**user** | **int** | user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1DownwardAPIVolumeSource.md b/kubernetes/aio/docs/V1DownwardAPIVolumeSource.md index 515ab04dda..102c59ddad 100644 --- a/kubernetes/aio/docs/V1DownwardAPIVolumeSource.md +++ b/kubernetes/aio/docs/V1DownwardAPIVolumeSource.md @@ -7,6 +7,7 @@ DownwardAPIVolumeSource represents a volume containing downward API info. Downwa Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default_mode** | **int** | Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] +**default_user** | **int** | defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] **items** | [**List[V1DownwardAPIVolumeFile]**](V1DownwardAPIVolumeFile.md) | Items is a list of downward API volume file | [optional] ## Example diff --git a/kubernetes/aio/docs/V1EmptyDirVolumeSource.md b/kubernetes/aio/docs/V1EmptyDirVolumeSource.md index c8087c4e2b..b8ae9c8062 100644 --- a/kubernetes/aio/docs/V1EmptyDirVolumeSource.md +++ b/kubernetes/aio/docs/V1EmptyDirVolumeSource.md @@ -7,6 +7,7 @@ Represents an empty directory for a pod. Empty directory volumes support ownersh Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **medium** | **str** | medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir | [optional] +**mode** | **int** | mode specifies the permission bits for the emptyDir directory, in numeric notation (e.g., 0755, 01777). Must be a value between 0000 and 01777. If not specified, defaults to 0777. This might be in conflict with other options that affect the file mode, like fsGroup. If fsGroup is specified, the fsGroup permissions will override the mode specified here. This field has no effect on Windows. This field is alpha and requires EmptyDirVolumeMode featuregate to be enabled. | [optional] **size_limit** | **str** | sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir | [optional] ## Example diff --git a/kubernetes/aio/docs/V1EvictionResponder.md b/kubernetes/aio/docs/V1EvictionResponder.md new file mode 100644 index 0000000000..deaddabe31 --- /dev/null +++ b/kubernetes/aio/docs/V1EvictionResponder.md @@ -0,0 +1,29 @@ +# V1EvictionResponder + +EvictionResponder allows you to specify the responder reacting to an Eviction. Responders should observe and communicate through the Eviction Resource API to help with the graceful eviction of a target (e.g. termination of a pod). + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | name allows you to identify the responder responding to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field must be unique for each responder. This field is required. | +**priority** | **int** | priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last. The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders. The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required. | + +## Example + +```python +from kubernetes.aio.client.models.v1_eviction_responder import V1EvictionResponder + +# TODO update the JSON string below +json = "{}" +# create an instance of V1EvictionResponder from a JSON string +v1_eviction_responder_instance = V1EvictionResponder.from_json(json) +# print the JSON string representation of the object +print(V1EvictionResponder.to_json()) + +# convert the object into a dict +v1_eviction_responder_dict = v1_eviction_responder_instance.to_dict() +# create an instance of V1EvictionResponder from a dict +v1_eviction_responder_from_dict = V1EvictionResponder.from_dict(v1_eviction_responder_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1ExactDeviceRequest.md b/kubernetes/aio/docs/V1ExactDeviceRequest.md index 977f2088dc..355ded7136 100644 --- a/kubernetes/aio/docs/V1ExactDeviceRequest.md +++ b/kubernetes/aio/docs/V1ExactDeviceRequest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **allocation_mode** | **str** | 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** | **int** | 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] +**derived_attributes** | [**List[V1DeviceDerivedAttribute]**](V1DeviceDerivedAttribute.md) | DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. | [optional] **device_class_name** | **str** | 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 a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] diff --git a/kubernetes/aio/docs/V1FlowSchema.md b/kubernetes/aio/docs/V1FlowSchema.md index 41c293b7e5..9796fba91a 100644 --- a/kubernetes/aio/docs/V1FlowSchema.md +++ b/kubernetes/aio/docs/V1FlowSchema.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1FlowSchemaSpec**](V1FlowSchemaSpec.md) | | [optional] +**spec** | [**V1FlowSchemaSpec**](V1FlowSchemaSpec.md) | | **status** | [**V1FlowSchemaStatus**](V1FlowSchemaStatus.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1FlowSchemaCondition.md b/kubernetes/aio/docs/V1FlowSchemaCondition.md index f5e2a2fff1..2c9221ac0f 100644 --- a/kubernetes/aio/docs/V1FlowSchemaCondition.md +++ b/kubernetes/aio/docs/V1FlowSchemaCondition.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes **last_transition_time** | **datetime** | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] **message** | **str** | `message` is a human-readable message indicating details about last transition. | [optional] **reason** | **str** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] -**status** | **str** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] -**type** | **str** | `type` is the type of the condition. Required. | [optional] +**status** | **str** | `status` is the status of the condition. Should be specified and set to one of True, False, Unknown. | [optional] +**type** | **str** | `type` is the type of the condition. Required. | ## Example diff --git a/kubernetes/aio/docs/V1GRPCAction.md b/kubernetes/aio/docs/V1GRPCAction.md index c5293a400f..20528f99f5 100644 --- a/kubernetes/aio/docs/V1GRPCAction.md +++ b/kubernetes/aio/docs/V1GRPCAction.md @@ -6,6 +6,7 @@ GRPCAction specifies an action involving a GRPC service. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**mode** | **str** | mode specifies the connection mode for the gRPC health probe. Set to \"TLS\" to use TLS without certificate verification. Set to \"Plaintext\" to use a plaintext (insecure) connection explicitly. If not specified, the probe uses a plaintext (insecure) connection. | [optional] **port** | **int** | Port number of the gRPC service. Number must be in the range 1 to 65535. | **service** | **str** | Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC. | [optional] diff --git a/kubernetes/aio/docs/V1HTTPGetAction.md b/kubernetes/aio/docs/V1HTTPGetAction.md index bf52b3c8ce..d19497b80a 100644 --- a/kubernetes/aio/docs/V1HTTPGetAction.md +++ b/kubernetes/aio/docs/V1HTTPGetAction.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **http_headers** | [**List[V1HTTPHeader]**](V1HTTPHeader.md) | Custom headers to set in the request. HTTP allows repeated headers. | [optional] **path** | **str** | Path to access on the HTTP server. | [optional] **port** | **Union[int, str]** | Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. | +**protocol** | **str** | Protocol selects the wire protocol for the probe connection. Nil defaults to HTTP/1.1. | [optional] **scheme** | **str** | Scheme to use for connecting to the host. Defaults to HTTP. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1JobSchedulingConfiguration.md b/kubernetes/aio/docs/V1JobSchedulingConfiguration.md new file mode 100644 index 0000000000..82dc88f2c8 --- /dev/null +++ b/kubernetes/aio/docs/V1JobSchedulingConfiguration.md @@ -0,0 +1,31 @@ +# V1JobSchedulingConfiguration + +JobSchedulingConfiguration composes the reusable workload-aware scheduling building blocks. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disruption_mode** | [**V1alpha3WorkloadPodGroupDisruptionMode**](V1alpha3WorkloadPodGroupDisruptionMode.md) | | [optional] +**resource_claims** | [**List[V1alpha3WorkloadPodGroupResourceClaim]**](V1alpha3WorkloadPodGroupResourceClaim.md) | ResourceClaims defines which ResourceClaims may be shared among Pods in the Job. 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. At most 4 claims may be set, matching the limit on the resulting PodGroup. This list is immutable after creation: entries may neither be added, removed, nor modified. | [optional] +**scheduling_constraints** | [**V1alpha3WorkloadPodGroupSchedulingConstraints**](V1alpha3WorkloadPodGroupSchedulingConstraints.md) | | [optional] +**scheduling_policy** | [**V1alpha3WorkloadPodGroupSchedulingPolicy**](V1alpha3WorkloadPodGroupSchedulingPolicy.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1_job_scheduling_configuration import V1JobSchedulingConfiguration + +# TODO update the JSON string below +json = "{}" +# create an instance of V1JobSchedulingConfiguration from a JSON string +v1_job_scheduling_configuration_instance = V1JobSchedulingConfiguration.from_json(json) +# print the JSON string representation of the object +print(V1JobSchedulingConfiguration.to_json()) + +# convert the object into a dict +v1_job_scheduling_configuration_dict = v1_job_scheduling_configuration_instance.to_dict() +# create an instance of V1JobSchedulingConfiguration from a dict +v1_job_scheduling_configuration_from_dict = V1JobSchedulingConfiguration.from_dict(v1_job_scheduling_configuration_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1JobSpec.md b/kubernetes/aio/docs/V1JobSpec.md index e05da721d0..b5fca312f4 100644 --- a/kubernetes/aio/docs/V1JobSpec.md +++ b/kubernetes/aio/docs/V1JobSpec.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **parallelism** | **int** | Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ | [optional] **pod_failure_policy** | [**V1PodFailurePolicy**](V1PodFailurePolicy.md) | | [optional] **pod_replacement_policy** | **str** | podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed. - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. | [optional] +**scheduling** | [**V1JobSchedulingConfiguration**](V1JobSchedulingConfiguration.md) | | [optional] **selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **success_policy** | [**V1SuccessPolicy**](V1SuccessPolicy.md) | | [optional] **suspend** | **bool** | suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. | [optional] diff --git a/kubernetes/aio/docs/V1JobStatus.md b/kubernetes/aio/docs/V1JobStatus.md index cd7987f9c4..3300ee6d77 100644 --- a/kubernetes/aio/docs/V1JobStatus.md +++ b/kubernetes/aio/docs/V1JobStatus.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **ready** | **int** | The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp). | [optional] **start_time** | **datetime** | Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC. Once set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished. | [optional] **succeeded** | **int** | The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs. | [optional] -**terminating** | **int** | 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] +**terminating** | **int** | The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp). | [optional] **uncounted_terminated_pods** | [**V1UncountedTerminatedPods**](V1UncountedTerminatedPods.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1KeyToPath.md b/kubernetes/aio/docs/V1KeyToPath.md index be17d85e34..7284517e34 100644 --- a/kubernetes/aio/docs/V1KeyToPath.md +++ b/kubernetes/aio/docs/V1KeyToPath.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **key** | **str** | key is the key to project. | **mode** | **int** | mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] **path** | **str** | path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. | +**user** | **int** | user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1LeaseSpec.md b/kubernetes/aio/docs/V1LeaseSpec.md index ca8b9042c9..8e84503bf5 100644 --- a/kubernetes/aio/docs/V1LeaseSpec.md +++ b/kubernetes/aio/docs/V1LeaseSpec.md @@ -10,9 +10,9 @@ Name | Type | Description | Notes **holder_identity** | **str** | 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] **lease_duration_seconds** | **int** | 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] **lease_transitions** | **int** | leaseTransitions is the number of transitions of a lease between holders. | [optional] -**preferred_holder** | **str** | 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. | [optional] +**preferred_holder** | **str** | 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. | [optional] **renew_time** | **datetime** | renewTime is a time when the current holder of a lease has last updated the lease. | [optional] -**strategy** | **str** | 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. | [optional] +**strategy** | **str** | 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. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1LimitedPriorityLevelConfiguration.md b/kubernetes/aio/docs/V1LimitedPriorityLevelConfiguration.md index eee7318c71..72c1eb1d02 100644 --- a/kubernetes/aio/docs/V1LimitedPriorityLevelConfiguration.md +++ b/kubernetes/aio/docs/V1LimitedPriorityLevelConfiguration.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **borrowing_limit_percent** | **int** | `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] **lendable_percent** | **int** | `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] -**limit_response** | [**V1LimitResponse**](V1LimitResponse.md) | | [optional] +**limit_response** | [**V1LimitResponse**](V1LimitResponse.md) | | **nominal_concurrency_shares** | **int** | `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] ## Example diff --git a/kubernetes/aio/docs/V1NodeAllocatableMappedResources.md b/kubernetes/aio/docs/V1NodeAllocatableMappedResources.md new file mode 100644 index 0000000000..89089ec18e --- /dev/null +++ b/kubernetes/aio/docs/V1NodeAllocatableMappedResources.md @@ -0,0 +1,29 @@ +# V1NodeAllocatableMappedResources + +NodeAllocatableMappedResources describes mapped node allocatable resource allocations. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name is the name of the resource (e.g., cpu, memory). | +**quantity** | **str** | Quantity is the total node allocatable resource capacity allocated for the claim. This claim's allocated devices is shared by all the containers referencing the claim. Kubelet adds this value to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. | + +## Example + +```python +from kubernetes.aio.client.models.v1_node_allocatable_mapped_resources import V1NodeAllocatableMappedResources + +# TODO update the JSON string below +json = "{}" +# create an instance of V1NodeAllocatableMappedResources from a JSON string +v1_node_allocatable_mapped_resources_instance = V1NodeAllocatableMappedResources.from_json(json) +# print the JSON string representation of the object +print(V1NodeAllocatableMappedResources.to_json()) + +# convert the object into a dict +v1_node_allocatable_mapped_resources_dict = v1_node_allocatable_mapped_resources_instance.to_dict() +# create an instance of V1NodeAllocatableMappedResources from a dict +v1_node_allocatable_mapped_resources_from_dict = V1NodeAllocatableMappedResources.from_dict(v1_node_allocatable_mapped_resources_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1NodeAllocatableMapping.md b/kubernetes/aio/docs/V1NodeAllocatableMapping.md new file mode 100644 index 0000000000..dad9f9a1c1 --- /dev/null +++ b/kubernetes/aio/docs/V1NodeAllocatableMapping.md @@ -0,0 +1,30 @@ +# V1NodeAllocatableMapping + +NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capacity_key** | **str** | 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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. | [optional] +**capacity_multiplier** | **str** | CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16. | [optional] +**device_multiplier** | **str** | DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1_node_allocatable_mapping import V1NodeAllocatableMapping + +# TODO update the JSON string below +json = "{}" +# create an instance of V1NodeAllocatableMapping from a JSON string +v1_node_allocatable_mapping_instance = V1NodeAllocatableMapping.from_json(json) +# print the JSON string representation of the object +print(V1NodeAllocatableMapping.to_json()) + +# convert the object into a dict +v1_node_allocatable_mapping_dict = v1_node_allocatable_mapping_instance.to_dict() +# create an instance of V1NodeAllocatableMapping from a dict +v1_node_allocatable_mapping_from_dict = V1NodeAllocatableMapping.from_dict(v1_node_allocatable_mapping_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1NodeAllocatableOverhead.md b/kubernetes/aio/docs/V1NodeAllocatableOverhead.md new file mode 100644 index 0000000000..343a0a0dd3 --- /dev/null +++ b/kubernetes/aio/docs/V1NodeAllocatableOverhead.md @@ -0,0 +1,29 @@ +# V1NodeAllocatableOverhead + +NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per_container** | **str** | PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once. | [optional] +**per_pod** | **str** | PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1_node_allocatable_overhead import V1NodeAllocatableOverhead + +# TODO update the JSON string below +json = "{}" +# create an instance of V1NodeAllocatableOverhead from a JSON string +v1_node_allocatable_overhead_instance = V1NodeAllocatableOverhead.from_json(json) +# print the JSON string representation of the object +print(V1NodeAllocatableOverhead.to_json()) + +# convert the object into a dict +v1_node_allocatable_overhead_dict = v1_node_allocatable_overhead_instance.to_dict() +# create an instance of V1NodeAllocatableOverhead from a dict +v1_node_allocatable_overhead_from_dict = V1NodeAllocatableOverhead.from_dict(v1_node_allocatable_overhead_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1NodeAllocatableOverheadResources.md b/kubernetes/aio/docs/V1NodeAllocatableOverheadResources.md new file mode 100644 index 0000000000..5cff160f9c --- /dev/null +++ b/kubernetes/aio/docs/V1NodeAllocatableOverheadResources.md @@ -0,0 +1,30 @@ +# V1NodeAllocatableOverheadResources + +NodeAllocatableOverheadResources describes auxiliary overhead resource allocations. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name is the name of the resource (e.g., cpu, memory). | +**per_container** | **str** | PerContainer is the variable overhead quantity applied for each container referencing the claim. The container references are recorded in `nodeAllocatableResourceClaimStatuses.containers`. The total overhead quantity allocated for the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once. At least one of PerPod or PerContainer must be specified. Specifying neither is an invalid configuration. | [optional] +**per_pod** | **str** | PerPod is the flat overhead quantity allocated per pod. Adding to each container limit allows individual containers to utilize the overhead, while the parent pod-level cgroup limit caps the total usage at the pod boundary where the overhead is accounted for exactly once. At least one of PerPod or PerContainer must be specified. Specifying neither is an invalid configuration. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1_node_allocatable_overhead_resources import V1NodeAllocatableOverheadResources + +# TODO update the JSON string below +json = "{}" +# create an instance of V1NodeAllocatableOverheadResources from a JSON string +v1_node_allocatable_overhead_resources_instance = V1NodeAllocatableOverheadResources.from_json(json) +# print the JSON string representation of the object +print(V1NodeAllocatableOverheadResources.to_json()) + +# convert the object into a dict +v1_node_allocatable_overhead_resources_dict = v1_node_allocatable_overhead_resources_instance.to_dict() +# create an instance of V1NodeAllocatableOverheadResources from a dict +v1_node_allocatable_overhead_resources_from_dict = V1NodeAllocatableOverheadResources.from_dict(v1_node_allocatable_overhead_resources_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1NodeAllocatableResource.md b/kubernetes/aio/docs/V1NodeAllocatableResource.md new file mode 100644 index 0000000000..f1692cc664 --- /dev/null +++ b/kubernetes/aio/docs/V1NodeAllocatableResource.md @@ -0,0 +1,29 @@ +# V1NodeAllocatableResource + +NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mapping** | [**V1NodeAllocatableMapping**](V1NodeAllocatableMapping.md) | | [optional] +**overhead** | [**V1NodeAllocatableOverhead**](V1NodeAllocatableOverhead.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1_node_allocatable_resource import V1NodeAllocatableResource + +# TODO update the JSON string below +json = "{}" +# create an instance of V1NodeAllocatableResource from a JSON string +v1_node_allocatable_resource_instance = V1NodeAllocatableResource.from_json(json) +# print the JSON string representation of the object +print(V1NodeAllocatableResource.to_json()) + +# convert the object into a dict +v1_node_allocatable_resource_dict = v1_node_allocatable_resource_instance.to_dict() +# create an instance of V1NodeAllocatableResource from a dict +v1_node_allocatable_resource_from_dict = V1NodeAllocatableResource.from_dict(v1_node_allocatable_resource_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1NodeAllocatableResourceClaimStatus.md b/kubernetes/aio/docs/V1NodeAllocatableResourceClaimStatus.md index 23dadc443b..3b720d655a 100644 --- a/kubernetes/aio/docs/V1NodeAllocatableResourceClaimStatus.md +++ b/kubernetes/aio/docs/V1NodeAllocatableResourceClaimStatus.md @@ -7,8 +7,9 @@ NodeAllocatableResourceClaimStatus describes the status of node allocatable reso Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **containers** | **List[str]** | Containers lists the names of all containers in this pod that reference the claim. | [optional] +**mapping** | [**List[V1NodeAllocatableMappedResources]**](V1NodeAllocatableMappedResources.md) | Mapping contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].mapping` field. This is used by kubelet for pod level and container-level cgroup enforcement. | [optional] +**overhead** | [**List[V1NodeAllocatableOverheadResources]**](V1NodeAllocatableOverheadResources.md) | Overhead contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].overhead` field. This is used by kubelet for pod level and container-level cgroup enforcement. | [optional] **resource_claim_name** | **str** | ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation. | -**resources** | **Dict[str, str]** | Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim. | ## Example diff --git a/kubernetes/aio/docs/V1NodeAllocatableResourceMapping.md b/kubernetes/aio/docs/V1NodeAllocatableResourceMapping.md deleted file mode 100644 index 6682f5312b..0000000000 --- a/kubernetes/aio/docs/V1NodeAllocatableResourceMapping.md +++ /dev/null @@ -1,29 +0,0 @@ -# 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 ------------- | ------------- | ------------- | ------------- -**allocation_multiplier** | **str** | 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] -**capacity_key** | **str** | 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] - -## Example - -```python -from kubernetes.aio.client.models.v1_node_allocatable_resource_mapping import V1NodeAllocatableResourceMapping - -# TODO update the JSON string below -json = "{}" -# create an instance of V1NodeAllocatableResourceMapping from a JSON string -v1_node_allocatable_resource_mapping_instance = V1NodeAllocatableResourceMapping.from_json(json) -# print the JSON string representation of the object -print(V1NodeAllocatableResourceMapping.to_json()) - -# convert the object into a dict -v1_node_allocatable_resource_mapping_dict = v1_node_allocatable_resource_mapping_instance.to_dict() -# create an instance of V1NodeAllocatableResourceMapping from a dict -v1_node_allocatable_resource_mapping_from_dict = V1NodeAllocatableResourceMapping.from_dict(v1_node_allocatable_resource_mapping_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1NodePodPreemptionPolicy.md b/kubernetes/aio/docs/V1NodePodPreemptionPolicy.md new file mode 100644 index 0000000000..4e96bbe706 --- /dev/null +++ b/kubernetes/aio/docs/V1NodePodPreemptionPolicy.md @@ -0,0 +1,28 @@ +# V1NodePodPreemptionPolicy + +NodePodPreemptionPolicy defines the node-level policies governing preemption for pods on this node. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disable_resize_preemption** | **List[str]** | DisableResizePreemption lists the owners (e.g., autoscalers, operators, administrators) that have requested to disable scheduler and Kubelet preemption for in-place pod resize on this node. If this list is non-empty, resize-induced preemption is disabled on this node. This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption feature gate. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1_node_pod_preemption_policy import V1NodePodPreemptionPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1NodePodPreemptionPolicy from a JSON string +v1_node_pod_preemption_policy_instance = V1NodePodPreemptionPolicy.from_json(json) +# print the JSON string representation of the object +print(V1NodePodPreemptionPolicy.to_json()) + +# convert the object into a dict +v1_node_pod_preemption_policy_dict = v1_node_pod_preemption_policy_instance.to_dict() +# create an instance of V1NodePodPreemptionPolicy from a dict +v1_node_pod_preemption_policy_from_dict = V1NodePodPreemptionPolicy.from_dict(v1_node_pod_preemption_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1NodeSpec.md b/kubernetes/aio/docs/V1NodeSpec.md index 391628a510..d468df4f56 100644 --- a/kubernetes/aio/docs/V1NodeSpec.md +++ b/kubernetes/aio/docs/V1NodeSpec.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **external_id** | **str** | Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 | [optional] **pod_cidr** | **str** | PodCIDR represents the pod IP range assigned to the node. | [optional] **pod_cidrs** | **List[str]** | podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. | [optional] +**pod_preemption_policy** | [**V1NodePodPreemptionPolicy**](V1NodePodPreemptionPolicy.md) | | [optional] **provider_id** | **str** | ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID> | [optional] **taints** | [**List[V1Taint]**](V1Taint.md) | If specified, the node's taints. | [optional] **unschedulable** | **bool** | Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration | [optional] diff --git a/kubernetes/aio/docs/V1NodeSystemInfo.md b/kubernetes/aio/docs/V1NodeSystemInfo.md index f22531b7cd..bea0e8fafa 100644 --- a/kubernetes/aio/docs/V1NodeSystemInfo.md +++ b/kubernetes/aio/docs/V1NodeSystemInfo.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **machine_id** | **str** | MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html | **operating_system** | **str** | The Operating System reported by the node | **os_image** | **str** | OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). | +**running_in_user_namespace** | **bool** | Whether the node is running in a user namespace. | [optional] **swap** | [**V1NodeSwapStatus**](V1NodeSwapStatus.md) | | [optional] **system_uuid** | **str** | SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid | diff --git a/kubernetes/aio/docs/V1ParentReference.md b/kubernetes/aio/docs/V1ParentReference.md index 125571d3d7..a5fb0cd0b3 100644 --- a/kubernetes/aio/docs/V1ParentReference.md +++ b/kubernetes/aio/docs/V1ParentReference.md @@ -6,10 +6,10 @@ ParentReference describes a reference to a parent object. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**group** | **str** | Group is the group of the object being referenced. | [optional] -**name** | **str** | Name is the name of the object being referenced. | -**namespace** | **str** | Namespace is the namespace of the object being referenced. | [optional] -**resource** | **str** | Resource is the resource of the object being referenced. | +**group** | **str** | group is the group of the object being referenced. | [optional] +**name** | **str** | name is the name of the object being referenced. | +**namespace** | **str** | namespace is the namespace of the object being referenced. | [optional] +**resource** | **str** | resource is the resource of the object being referenced. | ## Example diff --git a/kubernetes/aio/docs/V1PersistentVolumeClaimStatus.md b/kubernetes/aio/docs/V1PersistentVolumeClaimStatus.md index 2c6ac21792..43283820d7 100644 --- a/kubernetes/aio/docs/V1PersistentVolumeClaimStatus.md +++ b/kubernetes/aio/docs/V1PersistentVolumeClaimStatus.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **capacity** | **Dict[str, str]** | capacity represents the actual resources of the underlying volume. | [optional] **conditions** | [**List[V1PersistentVolumeClaimCondition]**](V1PersistentVolumeClaimCondition.md) | conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'. | [optional] **current_volume_attributes_class_name** | **str** | currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim | [optional] +**health_status** | [**V1VolumeHealthStatus**](V1VolumeHealthStatus.md) | | [optional] **modify_volume_status** | [**V1ModifyVolumeStatus**](V1ModifyVolumeStatus.md) | | [optional] **phase** | **str** | phase represents the current phase of PersistentVolumeClaim. | [optional] diff --git a/kubernetes/aio/docs/V1PodCertificateProjection.md b/kubernetes/aio/docs/V1PodCertificateProjection.md index 1952b9949a..487196e7b4 100644 --- a/kubernetes/aio/docs/V1PodCertificateProjection.md +++ b/kubernetes/aio/docs/V1PodCertificateProjection.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **key_type** | **str** | The type of keypair Kubelet will generate for the pod. Valid values are \"RSA3072\", \"RSA4096\", \"ECDSAP256\", \"ECDSAP384\", \"ECDSAP521\", and \"ED25519\". | **max_expiration_seconds** | **int** | maxExpirationSeconds is the maximum lifetime permitted for the certificate. Kubelet copies this value verbatim into the PodCertificateRequests it generates for this projection. 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] **signer_name** | **str** | Kubelet's generated CSRs will be addressed to this signer. | +**user** | **int** | user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] **user_annotations** | **Dict[str, str]** | userAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way. These values are copied verbatim into the `spec.unverifiedUserAnnotations` field of the PodCertificateRequest objects that Kubelet creates. 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] ## Example diff --git a/kubernetes/aio/docs/V1PodCertificateRequest.md b/kubernetes/aio/docs/V1PodCertificateRequest.md new file mode 100644 index 0000000000..3b42fe3431 --- /dev/null +++ b/kubernetes/aio/docs/V1PodCertificateRequest.md @@ -0,0 +1,32 @@ +# V1PodCertificateRequest + +PodCertificateRequest encodes a pod requesting a certificate from a given signer. Kubelets use this API to implement podCertificate projected volumes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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** | **str** | 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** | [**V1PodCertificateRequestSpec**](V1PodCertificateRequestSpec.md) | | +**status** | [**V1PodCertificateRequestStatus**](V1PodCertificateRequestStatus.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1_pod_certificate_request import V1PodCertificateRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1PodCertificateRequest from a JSON string +v1_pod_certificate_request_instance = V1PodCertificateRequest.from_json(json) +# print the JSON string representation of the object +print(V1PodCertificateRequest.to_json()) + +# convert the object into a dict +v1_pod_certificate_request_dict = v1_pod_certificate_request_instance.to_dict() +# create an instance of V1PodCertificateRequest from a dict +v1_pod_certificate_request_from_dict = V1PodCertificateRequest.from_dict(v1_pod_certificate_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1PodCertificateRequestList.md b/kubernetes/aio/docs/V1PodCertificateRequestList.md new file mode 100644 index 0000000000..dab66ab672 --- /dev/null +++ b/kubernetes/aio/docs/V1PodCertificateRequestList.md @@ -0,0 +1,31 @@ +# V1PodCertificateRequestList + +PodCertificateRequestList is a collection of PodCertificateRequest objects + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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[V1PodCertificateRequest]**](V1PodCertificateRequest.md) | items is a collection of PodCertificateRequest objects | +**kind** | **str** | 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] + +## Example + +```python +from kubernetes.aio.client.models.v1_pod_certificate_request_list import V1PodCertificateRequestList + +# TODO update the JSON string below +json = "{}" +# create an instance of V1PodCertificateRequestList from a JSON string +v1_pod_certificate_request_list_instance = V1PodCertificateRequestList.from_json(json) +# print the JSON string representation of the object +print(V1PodCertificateRequestList.to_json()) + +# convert the object into a dict +v1_pod_certificate_request_list_dict = v1_pod_certificate_request_list_instance.to_dict() +# create an instance of V1PodCertificateRequestList from a dict +v1_pod_certificate_request_list_from_dict = V1PodCertificateRequestList.from_dict(v1_pod_certificate_request_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1PodCertificateRequestSpec.md b/kubernetes/aio/docs/V1PodCertificateRequestSpec.md new file mode 100644 index 0000000000..e51d5c4a7e --- /dev/null +++ b/kubernetes/aio/docs/V1PodCertificateRequestSpec.md @@ -0,0 +1,37 @@ +# V1PodCertificateRequestSpec + +PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_expiration_seconds** | **int** | 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] +**node_name** | **str** | nodeName is the name of the node the pod is assigned to. | +**node_uid** | **str** | nodeUID is the UID of the node the pod is assigned to. | +**pod_name** | **str** | podName is the name of the pod into which the certificate will be mounted. | +**pod_uid** | **str** | podUID is the UID of the pod into which the certificate will be mounted. | +**service_account_name** | **str** | serviceAccountName is the name of the service account the pod is running as. | +**service_account_uid** | **str** | serviceAccountUID is the UID of the service account the pod is running as. | +**signer_name** | **str** | 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. | +**stub_pkcs10_request** | **bytes** | 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. | +**unverified_user_annotations** | **Dict[str, str]** | 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] + +## Example + +```python +from kubernetes.aio.client.models.v1_pod_certificate_request_spec import V1PodCertificateRequestSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1PodCertificateRequestSpec from a JSON string +v1_pod_certificate_request_spec_instance = V1PodCertificateRequestSpec.from_json(json) +# print the JSON string representation of the object +print(V1PodCertificateRequestSpec.to_json()) + +# convert the object into a dict +v1_pod_certificate_request_spec_dict = v1_pod_certificate_request_spec_instance.to_dict() +# create an instance of V1PodCertificateRequestSpec from a dict +v1_pod_certificate_request_spec_from_dict = V1PodCertificateRequestSpec.from_dict(v1_pod_certificate_request_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1PodCertificateRequestStatus.md b/kubernetes/aio/docs/V1PodCertificateRequestStatus.md new file mode 100644 index 0000000000..4aaf7af22e --- /dev/null +++ b/kubernetes/aio/docs/V1PodCertificateRequestStatus.md @@ -0,0 +1,32 @@ +# V1PodCertificateRequestStatus + +PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**begin_refresh_at** | **datetime** | beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable. This field is only a hint. Kubelet may start refreshing before or after this time if necessary. | [optional] +**certificate_chain** | **str** | certificateChain is populated with an issued certificate by the signer. This field is set via the /status subresource. Once populated, this field is immutable. If the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty. Validation requirements: 1. certificateChain must consist of one or more PEM-formatted certificates. 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as described in section 4 of RFC5280. If more than one block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers. | [optional] +**conditions** | [**List[V1Condition]**](V1Condition.md) | conditions applied to the request. The types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\". If the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field. | [optional] +**not_after** | **datetime** | notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain. | [optional] +**not_before** | **datetime** | notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1_pod_certificate_request_status import V1PodCertificateRequestStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1PodCertificateRequestStatus from a JSON string +v1_pod_certificate_request_status_instance = V1PodCertificateRequestStatus.from_json(json) +# print the JSON string representation of the object +print(V1PodCertificateRequestStatus.to_json()) + +# convert the object into a dict +v1_pod_certificate_request_status_dict = v1_pod_certificate_request_status_instance.to_dict() +# create an instance of V1PodCertificateRequestStatus from a dict +v1_pod_certificate_request_status_from_dict = V1PodCertificateRequestStatus.from_dict(v1_pod_certificate_request_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1PodDisruptionBudgetSpec.md b/kubernetes/aio/docs/V1PodDisruptionBudgetSpec.md index 59f1b99679..e25f613f64 100644 --- a/kubernetes/aio/docs/V1PodDisruptionBudgetSpec.md +++ b/kubernetes/aio/docs/V1PodDisruptionBudgetSpec.md @@ -6,10 +6,10 @@ PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**max_unavailable** | **Union[int, str]** | An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\". | [optional] -**min_available** | **Union[int, str]** | An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". | [optional] +**max_unavailable** | **Union[int, str]** | maxUnavailable indicates that an eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\". | [optional] +**min_available** | **Union[int, str]** | minAvailable indicates that an eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". | [optional] **selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] -**unhealthy_pod_eviction_policy** | **str** | UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. | [optional] +**unhealthy_pod_eviction_policy** | **str** | unhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1PodSecurityContext.md b/kubernetes/aio/docs/V1PodSecurityContext.md index 859dfbdaf6..d7a51d1f5d 100644 --- a/kubernetes/aio/docs/V1PodSecurityContext.md +++ b/kubernetes/aio/docs/V1PodSecurityContext.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **run_as_group** | **int** | The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. | [optional] **run_as_non_root** | **bool** | 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 SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] **run_as_user** | **int** | The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. | [optional] -**se_linux_change_policy** | **str** | seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\". \"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. \"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. 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. 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. | [optional] +**se_linux_change_policy** | **str** | seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\". \"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. \"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. 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. 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. | [optional] **se_linux_options** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | | [optional] **seccomp_profile** | [**V1SeccompProfile**](V1SeccompProfile.md) | | [optional] **supplemental_groups** | **List[int]** | A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows. | [optional] diff --git a/kubernetes/aio/docs/V1PodSpec.md b/kubernetes/aio/docs/V1PodSpec.md index 0f3bf4677b..6ca96c14d1 100644 --- a/kubernetes/aio/docs/V1PodSpec.md +++ b/kubernetes/aio/docs/V1PodSpec.md @@ -14,20 +14,21 @@ Name | Type | Description | Notes **dns_policy** | **str** | Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. | [optional] **enable_service_links** | **bool** | EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. | [optional] **ephemeral_containers** | [**List[V1EphemeralContainer]**](V1EphemeralContainer.md) | List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. | [optional] +**eviction_responders** | [**List[V1EvictionResponder]**](V1EvictionResponder.md) | evictionResponders reference responders that react to Evictions based on EvictionRequests. Responders should observe and communicate through the Eviction Resource API to help with the graceful termination of a pod. The responders are selected sequentially, according to their specified priority. Responders should periodically report on an eviction progress by updating the .status.responders[].heartbeatTime field of the Eviction object. If this field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there is no other responder, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods/<name>/eviction subresource). The maximum length of the responders list is 10. Responders are not supported when the pod is part of a PodGroup (.spec.schedulingGroup is set). This field can only be set on creation and is immutable afterwards. | [optional] **host_aliases** | [**List[V1HostAlias]**](V1HostAlias.md) | HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. | [optional] **host_ipc** | **bool** | Use the host's ipc namespace. Optional: Default to false. | [optional] **host_network** | **bool** | 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] **host_pid** | **bool** | Use the host's pid namespace. Optional: Default to false. | [optional] **host_users** | **bool** | 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** | **str** | Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. | [optional] -**hostname_override** | **str** | 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] +**hostname_override** | **str** | 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. | [optional] **image_pull_secrets** | [**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] **init_containers** | [**List[V1Container]**](V1Container.md) | List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ | [optional] **node_name** | **str** | NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename | [optional] **node_selector** | **Dict[str, str]** | NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | [optional] **os** | [**V1PodOS**](V1PodOS.md) | | [optional] **overhead** | **Dict[str, str]** | Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md | [optional] -**preemption_policy** | **str** | PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. | [optional] +**preemption_policy** | **str** | 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] **priority** | **int** | The priority value. Various system components use this field to find the priority of the pod. 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. | [optional] **priority_class_name** | **str** | If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. | [optional] **readiness_gates** | [**List[V1PodReadinessGate]**](V1PodReadinessGate.md) | If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates | [optional] diff --git a/kubernetes/aio/docs/V1PodStatus.md b/kubernetes/aio/docs/V1PodStatus.md index 803f898bd0..14bdd8a650 100644 --- a/kubernetes/aio/docs/V1PodStatus.md +++ b/kubernetes/aio/docs/V1PodStatus.md @@ -27,6 +27,7 @@ Name | Type | Description | Notes **resource_claim_statuses** | [**List[V1PodResourceClaimStatus]**](V1PodResourceClaimStatus.md) | Status of resource claims. | [optional] **resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] **start_time** | **datetime** | RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. | [optional] +**volume_health** | [**List[V1PodVolumeHealth]**](V1PodVolumeHealth.md) | volumeHealth contains node-reported health for each volume the pod is using. Populated by the kubelet on the pod's node. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1PodVolumeHealth.md b/kubernetes/aio/docs/V1PodVolumeHealth.md new file mode 100644 index 0000000000..677929ca89 --- /dev/null +++ b/kubernetes/aio/docs/V1PodVolumeHealth.md @@ -0,0 +1,30 @@ +# V1PodVolumeHealth + +PodVolumeHealth contains health information for a volume used by a pod, reported by the CSI node plugin via the kubelet. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**health_conditions** | [**List[V1VolumeHealthCondition]**](V1VolumeHealthCondition.md) | conditions is the set of adverse conditions reported by the CSI node plugin for this volume on this node. At most 16 conditions may be reported. | [optional] +**last_transition_time** | **datetime** | lastTransitionTime is when the current set of conditions first appeared. | [optional] +**name** | **str** | name matches an entry in pod.spec.volumes. | + +## Example + +```python +from kubernetes.aio.client.models.v1_pod_volume_health import V1PodVolumeHealth + +# TODO update the JSON string below +json = "{}" +# create an instance of V1PodVolumeHealth from a JSON string +v1_pod_volume_health_instance = V1PodVolumeHealth.from_json(json) +# print the JSON string representation of the object +print(V1PodVolumeHealth.to_json()) + +# convert the object into a dict +v1_pod_volume_health_dict = v1_pod_volume_health_instance.to_dict() +# create an instance of V1PodVolumeHealth from a dict +v1_pod_volume_health_from_dict = V1PodVolumeHealth.from_dict(v1_pod_volume_health_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1PolicyRule.md b/kubernetes/aio/docs/V1PolicyRule.md index c717aeec15..12b8f1b615 100644 --- a/kubernetes/aio/docs/V1PolicyRule.md +++ b/kubernetes/aio/docs/V1PolicyRule.md @@ -6,11 +6,11 @@ PolicyRule holds information that describes a policy rule, but does not contain Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_groups** | **List[str]** | 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. \"\" represents the core API group and \"*\" represents all API groups. | [optional] -**non_resource_urls** | **List[str]** | 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 Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. | [optional] -**resource_names** | **List[str]** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] -**resources** | **List[str]** | Resources is a list of resources this rule applies to. '*' represents all resources. | [optional] -**verbs** | **List[str]** | Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. | +**api_groups** | **List[str]** | 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. \"\" represents the core API group and \"*\" represents all API groups. | [optional] +**non_resource_urls** | **List[str]** | 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 Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. | [optional] +**resource_names** | **List[str]** | resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] +**resources** | **List[str]** | resources is a list of resources this rule applies to. '*' represents all resources. | [optional] +**verbs** | **List[str]** | verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. | ## Example diff --git a/kubernetes/aio/docs/V1PriorityLevelConfiguration.md b/kubernetes/aio/docs/V1PriorityLevelConfiguration.md index 63cc2fb7e8..8e52c093d5 100644 --- a/kubernetes/aio/docs/V1PriorityLevelConfiguration.md +++ b/kubernetes/aio/docs/V1PriorityLevelConfiguration.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1PriorityLevelConfigurationSpec**](V1PriorityLevelConfigurationSpec.md) | | [optional] +**spec** | [**V1PriorityLevelConfigurationSpec**](V1PriorityLevelConfigurationSpec.md) | | **status** | [**V1PriorityLevelConfigurationStatus**](V1PriorityLevelConfigurationStatus.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1PriorityLevelConfigurationCondition.md b/kubernetes/aio/docs/V1PriorityLevelConfigurationCondition.md index b5b68fe857..b950ccde02 100644 --- a/kubernetes/aio/docs/V1PriorityLevelConfigurationCondition.md +++ b/kubernetes/aio/docs/V1PriorityLevelConfigurationCondition.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes **last_transition_time** | **datetime** | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] **message** | **str** | `message` is a human-readable message indicating details about last transition. | [optional] **reason** | **str** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] -**status** | **str** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] -**type** | **str** | `type` is the type of the condition. Required. | [optional] +**status** | **str** | `status` is the status of the condition. Should be specified and set to one of True, False, Unknown. | [optional] +**type** | **str** | `type` is the type of the condition. Required. | ## Example diff --git a/kubernetes/aio/docs/V1ProjectedVolumeSource.md b/kubernetes/aio/docs/V1ProjectedVolumeSource.md index 619472fdce..be07ee4372 100644 --- a/kubernetes/aio/docs/V1ProjectedVolumeSource.md +++ b/kubernetes/aio/docs/V1ProjectedVolumeSource.md @@ -7,6 +7,7 @@ Represents a projected volume source Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default_mode** | **int** | defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] +**default_user** | **int** | defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] **sources** | [**List[V1VolumeProjection]**](V1VolumeProjection.md) | sources is the list of volume projections. Each entry in this list handles one source. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1ReplicaSet.md b/kubernetes/aio/docs/V1ReplicaSet.md index 79c06fe9a5..6c7891f599 100644 --- a/kubernetes/aio/docs/V1ReplicaSet.md +++ b/kubernetes/aio/docs/V1ReplicaSet.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1ReplicaSetSpec**](V1ReplicaSetSpec.md) | | [optional] +**spec** | [**V1ReplicaSetSpec**](V1ReplicaSetSpec.md) | | **status** | [**V1ReplicaSetStatus**](V1ReplicaSetStatus.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1ReplicaSetCondition.md b/kubernetes/aio/docs/V1ReplicaSetCondition.md index e6ddc60a18..1fa6c1704d 100644 --- a/kubernetes/aio/docs/V1ReplicaSetCondition.md +++ b/kubernetes/aio/docs/V1ReplicaSetCondition.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes **last_transition_time** | **datetime** | The last time the condition transitioned from one status to another. | [optional] **message** | **str** | A human readable message indicating details about the transition. | [optional] **reason** | **str** | The reason for the condition's last transition. | [optional] -**status** | **str** | Status of the condition, one of True, False, Unknown. | -**type** | **str** | Type of replica set condition. | +**status** | **str** | Status of the condition, one of True, False, Unknown. | [optional] +**type** | **str** | Type of replica set condition. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1ResourceClaimTemplate.md b/kubernetes/aio/docs/V1ResourceClaimTemplate.md index ad08b87e7c..0d0f6807bf 100644 --- a/kubernetes/aio/docs/V1ResourceClaimTemplate.md +++ b/kubernetes/aio/docs/V1ResourceClaimTemplate.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1ResourceClaimTemplateSpec**](V1ResourceClaimTemplateSpec.md) | | +**spec** | [**V1ResourceClaimTemplateSpec**](V1ResourceClaimTemplateSpec.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1ResourceClaimTemplateSpec.md b/kubernetes/aio/docs/V1ResourceClaimTemplateSpec.md index f0a80f1424..7ec1c1a922 100644 --- a/kubernetes/aio/docs/V1ResourceClaimTemplateSpec.md +++ b/kubernetes/aio/docs/V1ResourceClaimTemplateSpec.md @@ -7,7 +7,7 @@ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1ResourceClaimSpec**](V1ResourceClaimSpec.md) | | +**spec** | [**V1ResourceClaimSpec**](V1ResourceClaimSpec.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1ResourcePool.md b/kubernetes/aio/docs/V1ResourcePool.md index f64786fd11..fac43154e5 100644 --- a/kubernetes/aio/docs/V1ResourcePool.md +++ b/kubernetes/aio/docs/V1ResourcePool.md @@ -7,7 +7,7 @@ ResourcePool describes the pool that ResourceSlices belong to. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **generation** | **int** | 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. | -**name** | **str** | 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. | +**name** | **str** | Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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. | **resource_slice_count** | **int** | 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. | ## Example diff --git a/kubernetes/aio/docs/V1ResourceSliceSpec.md b/kubernetes/aio/docs/V1ResourceSliceSpec.md index 7358b51be0..c2f81ce815 100644 --- a/kubernetes/aio/docs/V1ResourceSliceSpec.md +++ b/kubernetes/aio/docs/V1ResourceSliceSpec.md @@ -11,9 +11,11 @@ Name | Type | Description | Notes **driver** | **str** | 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. | **node_name** | **str** | 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] **node_selector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] +**partition_type_attribute** | **str** | PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost. | [optional] **per_device_node_selection** | **bool** | 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] **pool** | [**V1ResourcePool**](V1ResourcePool.md) | | **shared_counters** | [**List[V1CounterSet]**](V1CounterSet.md) | 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] +**skip_node_operations** | **List[str]** | SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1ResourceStatus.md b/kubernetes/aio/docs/V1ResourceStatus.md index eb898944ef..aadf034266 100644 --- a/kubernetes/aio/docs/V1ResourceStatus.md +++ b/kubernetes/aio/docs/V1ResourceStatus.md @@ -6,7 +6,7 @@ ResourceStatus represents the status of a single resource allocated to a Pod. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:<claim_name>/<request>\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container. | +**name** | **str** | Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:<claim_name>/<request>\" when container.resources.claims[*].request is set or \"claim:<claim_name>\" when container.resources.claims[*].request is empty. For DRA-backed extended resources, \"claim:<claim_name>/<request>\" is used when the claim name and request name are recorded in pod.status.extendedResourceClaimStatus. When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container. | **resources** | [**List[V1ResourceHealth]**](V1ResourceHealth.md) | List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1Role.md b/kubernetes/aio/docs/V1Role.md index f50584bdf9..1a856973fc 100644 --- a/kubernetes/aio/docs/V1Role.md +++ b/kubernetes/aio/docs/V1Role.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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] -**rules** | [**List[V1PolicyRule]**](V1PolicyRule.md) | Rules holds all the PolicyRules for this Role | [optional] +**rules** | [**List[V1PolicyRule]**](V1PolicyRule.md) | rules holds all the PolicyRules for this Role | [optional] ## Example diff --git a/kubernetes/aio/docs/V1RoleBinding.md b/kubernetes/aio/docs/V1RoleBinding.md index c4fc71b69c..844c19a585 100644 --- a/kubernetes/aio/docs/V1RoleBinding.md +++ b/kubernetes/aio/docs/V1RoleBinding.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **kind** | **str** | 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] **role_ref** | [**V1RoleRef**](V1RoleRef.md) | | -**subjects** | [**List[RbacV1Subject]**](RbacV1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] +**subjects** | [**List[RbacV1Subject]**](RbacV1Subject.md) | subjects holds references to the objects the role applies to. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1RoleRef.md b/kubernetes/aio/docs/V1RoleRef.md index 1cce1eb28e..2a1a7e90af 100644 --- a/kubernetes/aio/docs/V1RoleRef.md +++ b/kubernetes/aio/docs/V1RoleRef.md @@ -6,9 +6,9 @@ RoleRef contains information that points to the role being used Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_group** | **str** | APIGroup is the group for the resource being referenced | [optional] -**kind** | **str** | Kind is the type of resource being referenced | -**name** | **str** | Name is the name of resource being referenced | +**api_group** | **str** | apiGroup is the group for the resource being referenced | [optional] +**kind** | **str** | kind is the type of resource being referenced | +**name** | **str** | name is the name of resource being referenced | ## Example diff --git a/kubernetes/aio/docs/V1SecretVolumeSource.md b/kubernetes/aio/docs/V1SecretVolumeSource.md index 57d19c9227..3c0623746d 100644 --- a/kubernetes/aio/docs/V1SecretVolumeSource.md +++ b/kubernetes/aio/docs/V1SecretVolumeSource.md @@ -7,6 +7,7 @@ Adapts a Secret into a volume. The contents of the target Secret's Data field w Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default_mode** | **int** | defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] +**default_user** | **int** | defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] **items** | [**List[V1KeyToPath]**](V1KeyToPath.md) | items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] **optional** | **bool** | optional field specify whether the Secret or its keys must be defined | [optional] **secret_name** | **str** | secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret | [optional] diff --git a/kubernetes/aio/docs/V1ServiceAccountTokenProjection.md b/kubernetes/aio/docs/V1ServiceAccountTokenProjection.md index fcc3181f1b..bfa611bde4 100644 --- a/kubernetes/aio/docs/V1ServiceAccountTokenProjection.md +++ b/kubernetes/aio/docs/V1ServiceAccountTokenProjection.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **audience** | **str** | audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. | [optional] **expiration_seconds** | **int** | expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. | [optional] **path** | **str** | path is the path relative to the mount point of the file to project the token into. | +**user** | **int** | user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1ServiceCIDRSpec.md b/kubernetes/aio/docs/V1ServiceCIDRSpec.md index cd77dc517b..ee215dab69 100644 --- a/kubernetes/aio/docs/V1ServiceCIDRSpec.md +++ b/kubernetes/aio/docs/V1ServiceCIDRSpec.md @@ -6,7 +6,7 @@ ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cidrs** | **List[str]** | CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable. | [optional] +**cidrs** | **List[str]** | cidrs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1StatefulSet.md b/kubernetes/aio/docs/V1StatefulSet.md index 72cdb76ee3..a68afc81a2 100644 --- a/kubernetes/aio/docs/V1StatefulSet.md +++ b/kubernetes/aio/docs/V1StatefulSet.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1StatefulSetSpec**](V1StatefulSetSpec.md) | | [optional] +**spec** | [**V1StatefulSetSpec**](V1StatefulSetSpec.md) | | **status** | [**V1StatefulSetStatus**](V1StatefulSetStatus.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1StatefulSetCondition.md b/kubernetes/aio/docs/V1StatefulSetCondition.md index 4779230c21..6717760132 100644 --- a/kubernetes/aio/docs/V1StatefulSetCondition.md +++ b/kubernetes/aio/docs/V1StatefulSetCondition.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes **last_transition_time** | **datetime** | Last time the condition transitioned from one status to another. | [optional] **message** | **str** | A human readable message indicating details about the transition. | [optional] **reason** | **str** | The reason for the condition's last transition. | [optional] -**status** | **str** | Status of the condition, one of True, False, Unknown. | -**type** | **str** | Type of statefulset condition. | +**status** | **str** | Status of the condition, one of True, False, Unknown. | [optional] +**type** | **str** | Type of statefulset condition. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1StorageHealth.md b/kubernetes/aio/docs/V1StorageHealth.md new file mode 100644 index 0000000000..05e2876019 --- /dev/null +++ b/kubernetes/aio/docs/V1StorageHealth.md @@ -0,0 +1,29 @@ +# V1StorageHealth + +StorageHealth contains storage backend health reported by a CSI driver on a node. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**health_conditions** | [**List[V1StorageHealthCondition]**](V1StorageHealthCondition.md) | healthConditions are the adverse storage backend conditions reported by the CSI driver. At most 16 conditions may be reported. | [optional] +**name** | **str** | name is the CSI driver name, matching CSINodeDriver.name. | + +## Example + +```python +from kubernetes.aio.client.models.v1_storage_health import V1StorageHealth + +# TODO update the JSON string below +json = "{}" +# create an instance of V1StorageHealth from a JSON string +v1_storage_health_instance = V1StorageHealth.from_json(json) +# print the JSON string representation of the object +print(V1StorageHealth.to_json()) + +# convert the object into a dict +v1_storage_health_dict = v1_storage_health_instance.to_dict() +# create an instance of V1StorageHealth from a dict +v1_storage_health_from_dict = V1StorageHealth.from_dict(v1_storage_health_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1StorageHealthCondition.md b/kubernetes/aio/docs/V1StorageHealthCondition.md new file mode 100644 index 0000000000..5348b5816b --- /dev/null +++ b/kubernetes/aio/docs/V1StorageHealthCondition.md @@ -0,0 +1,33 @@ +# V1StorageHealthCondition + +StorageHealthCondition represents an adverse health condition reported by a CSI driver for its storage backend on a node. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_mode** | **str** | accessMode is the access mode affected. Nil means all access modes are affected. | [optional] +**last_transition_time** | **datetime** | lastTransitionTime is when this condition first appeared at its current state. | [optional] +**message** | **str** | message is a human-readable description. Maximum permitted length of a message is 1024 characters. | [optional] +**reason** | **str** | reason is a brief CamelCase machine-parseable reason. Maximum permitted length of a reason is 256 characters. | +**status** | **str** | status is the health status category. One of \"StorageUnreachable\", \"StorageDegraded\". | +**volume_mode** | **str** | volumeMode is the volume mode affected. Nil means both are affected. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1_storage_health_condition import V1StorageHealthCondition + +# TODO update the JSON string below +json = "{}" +# create an instance of V1StorageHealthCondition from a JSON string +v1_storage_health_condition_instance = V1StorageHealthCondition.from_json(json) +# print the JSON string representation of the object +print(V1StorageHealthCondition.to_json()) + +# convert the object into a dict +v1_storage_health_condition_dict = v1_storage_health_condition_instance.to_dict() +# create an instance of V1StorageHealthCondition from a dict +v1_storage_health_condition_from_dict = V1StorageHealthCondition.from_dict(v1_storage_health_condition_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1StorageVersionMigration.md b/kubernetes/aio/docs/V1StorageVersionMigration.md new file mode 100644 index 0000000000..8601216d11 --- /dev/null +++ b/kubernetes/aio/docs/V1StorageVersionMigration.md @@ -0,0 +1,32 @@ +# V1StorageVersionMigration + +StorageVersionMigration represents a migration of stored data to the latest storage version. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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** | **str** | 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** | [**V1StorageVersionMigrationSpec**](V1StorageVersionMigrationSpec.md) | | [optional] +**status** | [**V1StorageVersionMigrationStatus**](V1StorageVersionMigrationStatus.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1_storage_version_migration import V1StorageVersionMigration + +# TODO update the JSON string below +json = "{}" +# create an instance of V1StorageVersionMigration from a JSON string +v1_storage_version_migration_instance = V1StorageVersionMigration.from_json(json) +# print the JSON string representation of the object +print(V1StorageVersionMigration.to_json()) + +# convert the object into a dict +v1_storage_version_migration_dict = v1_storage_version_migration_instance.to_dict() +# create an instance of V1StorageVersionMigration from a dict +v1_storage_version_migration_from_dict = V1StorageVersionMigration.from_dict(v1_storage_version_migration_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1StorageVersionMigrationList.md b/kubernetes/aio/docs/V1StorageVersionMigrationList.md new file mode 100644 index 0000000000..50958aeca7 --- /dev/null +++ b/kubernetes/aio/docs/V1StorageVersionMigrationList.md @@ -0,0 +1,31 @@ +# V1StorageVersionMigrationList + +StorageVersionMigrationList is a collection of storage version migrations. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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[V1StorageVersionMigration]**](V1StorageVersionMigration.md) | Items is the list of StorageVersionMigration | +**kind** | **str** | 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] + +## Example + +```python +from kubernetes.aio.client.models.v1_storage_version_migration_list import V1StorageVersionMigrationList + +# TODO update the JSON string below +json = "{}" +# create an instance of V1StorageVersionMigrationList from a JSON string +v1_storage_version_migration_list_instance = V1StorageVersionMigrationList.from_json(json) +# print the JSON string representation of the object +print(V1StorageVersionMigrationList.to_json()) + +# convert the object into a dict +v1_storage_version_migration_list_dict = v1_storage_version_migration_list_instance.to_dict() +# create an instance of V1StorageVersionMigrationList from a dict +v1_storage_version_migration_list_from_dict = V1StorageVersionMigrationList.from_dict(v1_storage_version_migration_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1StorageVersionMigrationSpec.md b/kubernetes/aio/docs/V1StorageVersionMigrationSpec.md new file mode 100644 index 0000000000..4492c6fb21 --- /dev/null +++ b/kubernetes/aio/docs/V1StorageVersionMigrationSpec.md @@ -0,0 +1,28 @@ +# V1StorageVersionMigrationSpec + +Spec of the storage version migration. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource** | [**V1GroupResource**](V1GroupResource.md) | | + +## Example + +```python +from kubernetes.aio.client.models.v1_storage_version_migration_spec import V1StorageVersionMigrationSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1StorageVersionMigrationSpec from a JSON string +v1_storage_version_migration_spec_instance = V1StorageVersionMigrationSpec.from_json(json) +# print the JSON string representation of the object +print(V1StorageVersionMigrationSpec.to_json()) + +# convert the object into a dict +v1_storage_version_migration_spec_dict = v1_storage_version_migration_spec_instance.to_dict() +# create an instance of V1StorageVersionMigrationSpec from a dict +v1_storage_version_migration_spec_from_dict = V1StorageVersionMigrationSpec.from_dict(v1_storage_version_migration_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1StorageVersionMigrationStatus.md b/kubernetes/aio/docs/V1StorageVersionMigrationStatus.md new file mode 100644 index 0000000000..2352c37f0d --- /dev/null +++ b/kubernetes/aio/docs/V1StorageVersionMigrationStatus.md @@ -0,0 +1,29 @@ +# V1StorageVersionMigrationStatus + +Status of the storage version migration. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**List[V1Condition]**](V1Condition.md) | The latest available observations of the migration's current state. | [optional] +**resource_version** | **str** | 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] + +## Example + +```python +from kubernetes.aio.client.models.v1_storage_version_migration_status import V1StorageVersionMigrationStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1StorageVersionMigrationStatus from a JSON string +v1_storage_version_migration_status_instance = V1StorageVersionMigrationStatus.from_json(json) +# print the JSON string representation of the object +print(V1StorageVersionMigrationStatus.to_json()) + +# convert the object into a dict +v1_storage_version_migration_status_dict = v1_storage_version_migration_status_instance.to_dict() +# create an instance of V1StorageVersionMigrationStatus from a dict +v1_storage_version_migration_status_from_dict = V1StorageVersionMigrationStatus.from_dict(v1_storage_version_migration_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1TokenRequestSpec.md b/kubernetes/aio/docs/V1TokenRequestSpec.md index 9932c55441..a83bad0026 100644 --- a/kubernetes/aio/docs/V1TokenRequestSpec.md +++ b/kubernetes/aio/docs/V1TokenRequestSpec.md @@ -6,6 +6,7 @@ TokenRequestSpec contains client provided parameters of a token request. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**attestations** | **Dict[str, List[str]]** | attestations is a map of well-known keys to string-slice values. The values for each key have a specific semantic meaning, which is documented on the key definition. Requesters of tokens may ask the Kubernetes API Server to attest to certain claims. The API Server may perform authorization checks depending on the key of this map. | [optional] **audiences** | **List[str]** | 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] **bound_object_ref** | [**V1BoundObjectReference**](V1BoundObjectReference.md) | | [optional] **expiration_seconds** | **int** | 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/aio/docs/V1VolumeAttributesClass.md b/kubernetes/aio/docs/V1VolumeAttributesClass.md index 3cf17f2a50..a78c2a77e7 100644 --- a/kubernetes/aio/docs/V1VolumeAttributesClass.md +++ b/kubernetes/aio/docs/V1VolumeAttributesClass.md @@ -7,7 +7,7 @@ VolumeAttributesClass represents a specification of mutable volume attributes de Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | 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] -**driver_name** | **str** | Name of the CSI driver This field is immutable. | +**driver_name** | **str** | driverName is the name of the CSI driver This field is immutable. | **kind** | **str** | 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] **parameters** | **Dict[str, str]** | parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field. | [optional] diff --git a/kubernetes/aio/docs/V1VolumeHealthCondition.md b/kubernetes/aio/docs/V1VolumeHealthCondition.md new file mode 100644 index 0000000000..73fc2ef8c6 --- /dev/null +++ b/kubernetes/aio/docs/V1VolumeHealthCondition.md @@ -0,0 +1,30 @@ +# V1VolumeHealthCondition + +VolumeHealthCondition represents an adverse health condition reported for a volume. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | message is a human-readable description. Maximum permitted length of a message is 1024 bytes. | [optional] +**reason** | **str** | reason is a brief CamelCase machine-parseable reason. Together with status it forms the unique identity of a condition entry. Maximum permitted length of a reason is 256 bytes. | +**status** | **str** | status is the machine-parseable health category. Possible values: - \"Inaccessible\": the volume cannot be accessed. - \"DataLoss\": data loss has been detected on the volume. - \"Degraded\": the volume is functioning with reduced capability. | + +## Example + +```python +from kubernetes.aio.client.models.v1_volume_health_condition import V1VolumeHealthCondition + +# TODO update the JSON string below +json = "{}" +# create an instance of V1VolumeHealthCondition from a JSON string +v1_volume_health_condition_instance = V1VolumeHealthCondition.from_json(json) +# print the JSON string representation of the object +print(V1VolumeHealthCondition.to_json()) + +# convert the object into a dict +v1_volume_health_condition_dict = v1_volume_health_condition_instance.to_dict() +# create an instance of V1VolumeHealthCondition from a dict +v1_volume_health_condition_from_dict = V1VolumeHealthCondition.from_dict(v1_volume_health_condition_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1VolumeHealthStatus.md b/kubernetes/aio/docs/V1VolumeHealthStatus.md new file mode 100644 index 0000000000..03e1e10340 --- /dev/null +++ b/kubernetes/aio/docs/V1VolumeHealthStatus.md @@ -0,0 +1,29 @@ +# V1VolumeHealthStatus + +VolumeHealthStatus contains health information for a volume reported by the CSI controller plugin. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**health_conditions** | [**List[V1VolumeHealthCondition]**](V1VolumeHealthCondition.md) | conditions is the set of adverse conditions reported by the CSI controller plugin. An empty list means no adverse condition. At most 16 conditions may be reported. | [optional] +**last_transition_time** | **datetime** | lastTransitionTime is when the current set of conditions first appeared. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1_volume_health_status import V1VolumeHealthStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1VolumeHealthStatus from a JSON string +v1_volume_health_status_instance = V1VolumeHealthStatus.from_json(json) +# print the JSON string representation of the object +print(V1VolumeHealthStatus.to_json()) + +# convert the object into a dict +v1_volume_health_status_dict = v1_volume_health_status_instance.to_dict() +# create an instance of V1VolumeHealthStatus from a dict +v1_volume_health_status_from_dict = V1VolumeHealthStatus.from_dict(v1_volume_health_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1VolumeMount.md b/kubernetes/aio/docs/V1VolumeMount.md index 16d0fe1960..3ab16efd87 100644 --- a/kubernetes/aio/docs/V1VolumeMount.md +++ b/kubernetes/aio/docs/V1VolumeMount.md @@ -6,7 +6,8 @@ VolumeMount describes a mounting of a Volume within a container. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**mount_path** | **str** | Path within the container at which the volume should be mounted. Must not contain ':'. | +**bind_mount_options** | **List[str]** | bindMountOptions is the list of additional bind mount options to apply when mounting this volume into the container. Allowed values are noexec, nodev, and nosuid. These are Linux mount options and have no effect on Windows nodes. This field is not supported with image volumes. This is an alpha field and requires enabling the VolumeBindMountOptions feature gate. | [optional] +**mount_path** | **str** | Path within the container at which the volume should be mounted. | **mount_propagation** | **str** | mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). | [optional] **name** | **str** | This must match the Name of a Volume. | **read_only** | **bool** | Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. | [optional] diff --git a/kubernetes/aio/docs/V1alpha1Eviction.md b/kubernetes/aio/docs/V1alpha1Eviction.md new file mode 100644 index 0000000000..a8750506b6 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha1Eviction.md @@ -0,0 +1,32 @@ +# V1alpha1Eviction + +Eviction initiates an eviction process, which should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod). The evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. It manages the Eviction lifecycle. Requesters are preserved in .status.requesters even after they have withdrawn their request. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Once all EvictionRequest corresponding to this Eviction .spec.target have been removed, this Eviction object will eventually be garbage collected. If the target is a pod, the .status.targetResponders is populated from Pod's .spec.evictionResponders. Responders should observe and communicate through the .status to help with the eviction of the target when they see their state == Active in .status.targetResponders. ResponderStatus struct should then be periodically updated to indicate the progress or completion of the eviction process by each responder in .status.responders. If .status.responders[].heartbeatTime is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there are no other responders and the target is a pod, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource). + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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** | **str** | 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** | [**V1alpha1EvictionSpec**](V1alpha1EvictionSpec.md) | | +**status** | [**V1alpha1EvictionStatus**](V1alpha1EvictionStatus.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha1_eviction import V1alpha1Eviction + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1Eviction from a JSON string +v1alpha1_eviction_instance = V1alpha1Eviction.from_json(json) +# print the JSON string representation of the object +print(V1alpha1Eviction.to_json()) + +# convert the object into a dict +v1alpha1_eviction_dict = v1alpha1_eviction_instance.to_dict() +# create an instance of V1alpha1Eviction from a dict +v1alpha1_eviction_from_dict = V1alpha1Eviction.from_dict(v1alpha1_eviction_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1IPAddressList.md b/kubernetes/aio/docs/V1alpha1EvictionList.md similarity index 63% rename from kubernetes/aio/docs/V1beta1IPAddressList.md rename to kubernetes/aio/docs/V1alpha1EvictionList.md index 1d8606fa8b..b93e6d7c81 100644 --- a/kubernetes/aio/docs/V1beta1IPAddressList.md +++ b/kubernetes/aio/docs/V1alpha1EvictionList.md @@ -1,31 +1,31 @@ -# V1beta1IPAddressList +# V1alpha1EvictionList -IPAddressList contains a list of IPAddress. +EvictionList contains a list of Eviction resources. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | 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[V1beta1IPAddress]**](V1beta1IPAddress.md) | items is the list of IPAddresses. | +**items** | [**List[V1alpha1Eviction]**](V1alpha1Eviction.md) | items is the list of Evictions. | **kind** | **str** | 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] ## Example ```python -from kubernetes.aio.client.models.v1beta1_ip_address_list import V1beta1IPAddressList +from kubernetes.aio.client.models.v1alpha1_eviction_list import V1alpha1EvictionList # TODO update the JSON string below json = "{}" -# create an instance of V1beta1IPAddressList from a JSON string -v1beta1_ip_address_list_instance = V1beta1IPAddressList.from_json(json) +# create an instance of V1alpha1EvictionList from a JSON string +v1alpha1_eviction_list_instance = V1alpha1EvictionList.from_json(json) # print the JSON string representation of the object -print(V1beta1IPAddressList.to_json()) +print(V1alpha1EvictionList.to_json()) # convert the object into a dict -v1beta1_ip_address_list_dict = v1beta1_ip_address_list_instance.to_dict() -# create an instance of V1beta1IPAddressList from a dict -v1beta1_ip_address_list_from_dict = V1beta1IPAddressList.from_dict(v1beta1_ip_address_list_dict) +v1alpha1_eviction_list_dict = v1alpha1_eviction_list_instance.to_dict() +# create an instance of V1alpha1EvictionList from a dict +v1alpha1_eviction_list_from_dict = V1alpha1EvictionList.from_dict(v1alpha1_eviction_list_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha1EvictionPodReference.md b/kubernetes/aio/docs/V1alpha1EvictionPodReference.md new file mode 100644 index 0000000000..4e2470964e --- /dev/null +++ b/kubernetes/aio/docs/V1alpha1EvictionPodReference.md @@ -0,0 +1,29 @@ +# V1alpha1EvictionPodReference + +EvictionPodReference contains enough information to locate the referenced pod inside the same namespace. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | name of the target. This field is required. | +**uid** | **str** | uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required. | + +## Example + +```python +from kubernetes.aio.client.models.v1alpha1_eviction_pod_reference import V1alpha1EvictionPodReference + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionPodReference from a JSON string +v1alpha1_eviction_pod_reference_instance = V1alpha1EvictionPodReference.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionPodReference.to_json()) + +# convert the object into a dict +v1alpha1_eviction_pod_reference_dict = v1alpha1_eviction_pod_reference_instance.to_dict() +# create an instance of V1alpha1EvictionPodReference from a dict +v1alpha1_eviction_pod_reference_from_dict = V1alpha1EvictionPodReference.from_dict(v1alpha1_eviction_pod_reference_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha1EvictionRequest.md b/kubernetes/aio/docs/V1alpha1EvictionRequest.md new file mode 100644 index 0000000000..145b4e6805 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha1EvictionRequest.md @@ -0,0 +1,32 @@ +# V1alpha1EvictionRequest + +EvictionRequest defines a request that should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod). The evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. - .spec.requester is set as a label on the Eviction for easier lookup. - Each target can have a set of responders assigned to it. Eviction objects are observed by these responders, who implement the eviction logic and update the Eviction's status with progress. There is many-to-many relationship between EvictionRequests and Evictions in general. And many-to-one if the target is a pod. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Deleting an EvictionRequest also counts as a withdrawal. Once all EvictionRequest of a target are removed, the corresponding Evictions are eventually garbage collected. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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** | **str** | 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** | [**V1alpha1EvictionRequestSpec**](V1alpha1EvictionRequestSpec.md) | | +**status** | [**V1alpha1EvictionRequestStatus**](V1alpha1EvictionRequestStatus.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionRequest from a JSON string +v1alpha1_eviction_request_instance = V1alpha1EvictionRequest.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionRequest.to_json()) + +# convert the object into a dict +v1alpha1_eviction_request_dict = v1alpha1_eviction_request_instance.to_dict() +# create an instance of V1alpha1EvictionRequest from a dict +v1alpha1_eviction_request_from_dict = V1alpha1EvictionRequest.from_dict(v1alpha1_eviction_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha1EvictionRequestList.md b/kubernetes/aio/docs/V1alpha1EvictionRequestList.md new file mode 100644 index 0000000000..5e10bd02d1 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha1EvictionRequestList.md @@ -0,0 +1,31 @@ +# V1alpha1EvictionRequestList + +EvictionRequestList contains a list of EvictionRequests resources. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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[V1alpha1EvictionRequest]**](V1alpha1EvictionRequest.md) | items is the list of EvictionRequests. | +**kind** | **str** | 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] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha1_eviction_request_list import V1alpha1EvictionRequestList + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionRequestList from a JSON string +v1alpha1_eviction_request_list_instance = V1alpha1EvictionRequestList.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionRequestList.to_json()) + +# convert the object into a dict +v1alpha1_eviction_request_list_dict = v1alpha1_eviction_request_list_instance.to_dict() +# create an instance of V1alpha1EvictionRequestList from a dict +v1alpha1_eviction_request_list_from_dict = V1alpha1EvictionRequestList.from_dict(v1alpha1_eviction_request_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha1EvictionRequestPodReference.md b/kubernetes/aio/docs/V1alpha1EvictionRequestPodReference.md new file mode 100644 index 0000000000..f4963cfd22 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha1EvictionRequestPodReference.md @@ -0,0 +1,29 @@ +# V1alpha1EvictionRequestPodReference + +EvictionRequestPodReference contains enough information to locate the referenced pod inside the same namespace. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | name of the target. This field is required. | +**uid** | **str** | uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required. | + +## Example + +```python +from kubernetes.aio.client.models.v1alpha1_eviction_request_pod_reference import V1alpha1EvictionRequestPodReference + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionRequestPodReference from a JSON string +v1alpha1_eviction_request_pod_reference_instance = V1alpha1EvictionRequestPodReference.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionRequestPodReference.to_json()) + +# convert the object into a dict +v1alpha1_eviction_request_pod_reference_dict = v1alpha1_eviction_request_pod_reference_instance.to_dict() +# create an instance of V1alpha1EvictionRequestPodReference from a dict +v1alpha1_eviction_request_pod_reference_from_dict = V1alpha1EvictionRequestPodReference.from_dict(v1alpha1_eviction_request_pod_reference_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha1EvictionRequestSpec.md b/kubernetes/aio/docs/V1alpha1EvictionRequestSpec.md new file mode 100644 index 0000000000..ac5feb3232 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha1EvictionRequestSpec.md @@ -0,0 +1,30 @@ +# V1alpha1EvictionRequestSpec + +EvictionRequestSpec is a specification of an EvictionRequest. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**intent** | **str** | intent specifies the action that should be taken for the specified target. - Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target. If all requesters' intents are withdrawn for a common target, the eviction will be canceled. Cancellation consequences: - Inactive responders will never run. - Active responders are expected to cancel the eviction. - Completed or Interrupted responders should not take any action. | +**requester** | **str** | requester allows you to identify the entity, that requested the eviction of the target. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field is required and immutable. | +**target** | [**V1alpha1EvictionRequestTarget**](V1alpha1EvictionRequestTarget.md) | | + +## Example + +```python +from kubernetes.aio.client.models.v1alpha1_eviction_request_spec import V1alpha1EvictionRequestSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionRequestSpec from a JSON string +v1alpha1_eviction_request_spec_instance = V1alpha1EvictionRequestSpec.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionRequestSpec.to_json()) + +# convert the object into a dict +v1alpha1_eviction_request_spec_dict = v1alpha1_eviction_request_spec_instance.to_dict() +# create an instance of V1alpha1EvictionRequestSpec from a dict +v1alpha1_eviction_request_spec_from_dict = V1alpha1EvictionRequestSpec.from_dict(v1alpha1_eviction_request_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha1EvictionRequestStatus.md b/kubernetes/aio/docs/V1alpha1EvictionRequestStatus.md new file mode 100644 index 0000000000..f200a3e333 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha1EvictionRequestStatus.md @@ -0,0 +1,29 @@ +# V1alpha1EvictionRequestStatus + +EvictionRequestStatus represents the last observed status of the eviction request. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**List[V1Condition]**](V1Condition.md) | conditions contain information about the eviction request. EvictionRequest specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed by any eviction responder. This can happen if the request is canceled or if no responder managed to evict the target (e.g. terminate or delete a pod). - TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted). These conditions can be reset if the eviction was unsuccessful and a new Eviction intent has been submitted. The maximum length of the conditions list is 100. | [optional] +**observed_generation** | **int** | observedGeneration is EvictionRequest's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha1_eviction_request_status import V1alpha1EvictionRequestStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionRequestStatus from a JSON string +v1alpha1_eviction_request_status_instance = V1alpha1EvictionRequestStatus.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionRequestStatus.to_json()) + +# convert the object into a dict +v1alpha1_eviction_request_status_dict = v1alpha1_eviction_request_status_instance.to_dict() +# create an instance of V1alpha1EvictionRequestStatus from a dict +v1alpha1_eviction_request_status_from_dict = V1alpha1EvictionRequestStatus.from_dict(v1alpha1_eviction_request_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha1EvictionRequestTarget.md b/kubernetes/aio/docs/V1alpha1EvictionRequestTarget.md new file mode 100644 index 0000000000..e4bcfbc49f --- /dev/null +++ b/kubernetes/aio/docs/V1alpha1EvictionRequestTarget.md @@ -0,0 +1,28 @@ +# V1alpha1EvictionRequestTarget + +EvictionRequestTarget contains a reference to an object that should be evicted. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pod** | [**V1alpha1EvictionRequestPodReference**](V1alpha1EvictionRequestPodReference.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha1_eviction_request_target import V1alpha1EvictionRequestTarget + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionRequestTarget from a JSON string +v1alpha1_eviction_request_target_instance = V1alpha1EvictionRequestTarget.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionRequestTarget.to_json()) + +# convert the object into a dict +v1alpha1_eviction_request_target_dict = v1alpha1_eviction_request_target_instance.to_dict() +# create an instance of V1alpha1EvictionRequestTarget from a dict +v1alpha1_eviction_request_target_from_dict = V1alpha1EvictionRequestTarget.from_dict(v1alpha1_eviction_request_target_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha1EvictionSpec.md b/kubernetes/aio/docs/V1alpha1EvictionSpec.md new file mode 100644 index 0000000000..5a195aa1a4 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha1EvictionSpec.md @@ -0,0 +1,28 @@ +# V1alpha1EvictionSpec + +EvictionSpec is a specification of an Eviction. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**target** | [**V1alpha1EvictionTarget**](V1alpha1EvictionTarget.md) | | + +## Example + +```python +from kubernetes.aio.client.models.v1alpha1_eviction_spec import V1alpha1EvictionSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionSpec from a JSON string +v1alpha1_eviction_spec_instance = V1alpha1EvictionSpec.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionSpec.to_json()) + +# convert the object into a dict +v1alpha1_eviction_spec_dict = v1alpha1_eviction_spec_instance.to_dict() +# create an instance of V1alpha1EvictionSpec from a dict +v1alpha1_eviction_spec_from_dict = V1alpha1EvictionSpec.from_dict(v1alpha1_eviction_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha1EvictionStatus.md b/kubernetes/aio/docs/V1alpha1EvictionStatus.md new file mode 100644 index 0000000000..92417a8178 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha1EvictionStatus.md @@ -0,0 +1,32 @@ +# V1alpha1EvictionStatus + +EvictionStatus represents the last observed status of the eviction request. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**List[V1Condition]**](V1Condition.md) | conditions contain information about the eviction request. Eviction specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed by any eviction responder. This can happen if the request is canceled or if no responder managed to evict the target (e.g. terminate or delete a pod). - TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted). The maximum length of the conditions list is 100. | [optional] +**observed_generation** | **int** | observedGeneration is Eviction's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller. | [optional] +**requesters** | [**List[V1alpha1Requester]**](V1alpha1Requester.md) | requesters allow you to identify the entities, that requested the eviction of the target. If all the requesters withdraw their eviction intent, the eviction will be canceled. The maximum length of the requesters list is 100. If this limit is exceeded, requesters with Withdrawn intent should be dropped first. | [optional] +**responders** | [**List[V1alpha1ResponderStatus]**](V1alpha1ResponderStatus.md) | responders represents the eviction process status of each declared responder. The responder list should be the same length and have the same .name fields as .status.targetResponders. Only responders with .name that have Active state in .targetResponders[].state should be updated and can be mutated. First initialization of the list is allowed. Each ResponderStatus is initialized by evictionrequest-controller and then managed by the designated responder. | [optional] +**target_responders** | [**List[V1alpha1TargetResponder]**](V1alpha1TargetResponder.md) | targetResponders reference responders that should eventually respond to this eviction to help with the graceful eviction of a target. These responders are selected sequentially, according to their specified priority by setting the Active state to the TargetResponder .state field. The maximum number of active responders allowed is 1. Eventually each responder can end up in an Interrupted, Canceled or, Completed state. Responders should observe these states in order to navigate their lifecycle. If the target is a pod, the field is populated from Pod's .spec.evictionResponders. Default responders may be added to the list according to the target. Default responders: - imperative-eviction.k8s.io/evictor responder with a priority of 100 is added to the list if the target is a pod. It will call the imperative Eviction API (pods/<name>/eviction subresource). This call may not succeed due to PodDisruptionBudgets, which may block the pod termination. It will update the responder message and try again with a backoff. The maximum length of the responders list is 11. The length and keys of the list cannot change once set. This field is managed by evictionrequest-controller. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha1_eviction_status import V1alpha1EvictionStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionStatus from a JSON string +v1alpha1_eviction_status_instance = V1alpha1EvictionStatus.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionStatus.to_json()) + +# convert the object into a dict +v1alpha1_eviction_status_dict = v1alpha1_eviction_status_instance.to_dict() +# create an instance of V1alpha1EvictionStatus from a dict +v1alpha1_eviction_status_from_dict = V1alpha1EvictionStatus.from_dict(v1alpha1_eviction_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha1EvictionTarget.md b/kubernetes/aio/docs/V1alpha1EvictionTarget.md new file mode 100644 index 0000000000..d4e3769e11 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha1EvictionTarget.md @@ -0,0 +1,28 @@ +# V1alpha1EvictionTarget + +EvictionTarget contains a reference to an object that should be evicted. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pod** | [**V1alpha1EvictionPodReference**](V1alpha1EvictionPodReference.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha1_eviction_target import V1alpha1EvictionTarget + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionTarget from a JSON string +v1alpha1_eviction_target_instance = V1alpha1EvictionTarget.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionTarget.to_json()) + +# convert the object into a dict +v1alpha1_eviction_target_dict = v1alpha1_eviction_target_instance.to_dict() +# create an instance of V1alpha1EvictionTarget from a dict +v1alpha1_eviction_target_from_dict = V1alpha1EvictionTarget.from_dict(v1alpha1_eviction_target_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha1Requester.md b/kubernetes/aio/docs/V1alpha1Requester.md new file mode 100644 index 0000000000..9b03038b28 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha1Requester.md @@ -0,0 +1,29 @@ +# V1alpha1Requester + +Requester allows you to identify the entity, that requested the eviction of the target. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**intent** | **str** | intent specifies the action that should be taken for the specified target. - Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target. If all requesters' intents are withdrawn, the eviction will be canceled. Cancellation consequences: - Inactive responders will never run. - Active responders are expected to cancel the eviction. - Completed or Interrupted responders should not take any action. | +**name** | **str** | name allows you to identify the entity, that requested the eviction of the target. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each requester. This field is required. | + +## Example + +```python +from kubernetes.aio.client.models.v1alpha1_requester import V1alpha1Requester + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1Requester from a JSON string +v1alpha1_requester_instance = V1alpha1Requester.from_json(json) +# print the JSON string representation of the object +print(V1alpha1Requester.to_json()) + +# convert the object into a dict +v1alpha1_requester_dict = v1alpha1_requester_instance.to_dict() +# create an instance of V1alpha1Requester from a dict +v1alpha1_requester_from_dict = V1alpha1Requester.from_dict(v1alpha1_requester_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha1ResponderStatus.md b/kubernetes/aio/docs/V1alpha1ResponderStatus.md new file mode 100644 index 0000000000..94c628f3c9 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha1ResponderStatus.md @@ -0,0 +1,33 @@ +# V1alpha1ResponderStatus + +ResponderStatus represents the last observed status of the eviction process of the responder. It should be only updated by the designated responder whose name is .name field. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**completion_time** | **datetime** | completionTime tracks the time at which the Responder stopped processing the eviction request. Completion means that the responders has either fully or partially completed the eviction process, which may have resulted in target eviction (e.g. pod termination). It should reflect the present time when set. This field becomes immutable once set. | [optional] +**expected_completion_time** | **datetime** | expectedCompletionTime is the time at which the eviction process step is expected to end for the responder. The time cannot be set to the past. May be omitted if no estimate can be made. | [optional] +**heartbeat_time** | **datetime** | heartbeatTime is the last time at which the eviction process was reported to be in progress by the responder. It should reflect the present time when set. Responders should avoid heartbeats more frequent than 20 seconds to avoid overloading the control-plane. | [optional] +**message** | **str** | message provides human-readable details about the state of the responder and the eviction process. Maximum length is 4000 characters. | [optional] +**name** | **str** | name allows you to identify the responder reacting to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field is initialized by Kubernetes and must be unique for each responder. This field is required. | +**start_time** | **datetime** | startTime tracks the time at which this responder was designated as active and should start processing the eviction request. It should reflect the present time when set. This field is initialized by Kubernetes when this responder becomes active. This field becomes immutable once set. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha1_responder_status import V1alpha1ResponderStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1ResponderStatus from a JSON string +v1alpha1_responder_status_instance = V1alpha1ResponderStatus.from_json(json) +# print the JSON string representation of the object +print(V1alpha1ResponderStatus.to_json()) + +# convert the object into a dict +v1alpha1_responder_status_dict = v1alpha1_responder_status_instance.to_dict() +# create an instance of V1alpha1ResponderStatus from a dict +v1alpha1_responder_status_from_dict = V1alpha1ResponderStatus.from_dict(v1alpha1_responder_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha1TargetResponder.md b/kubernetes/aio/docs/V1alpha1TargetResponder.md new file mode 100644 index 0000000000..9935d6821e --- /dev/null +++ b/kubernetes/aio/docs/V1alpha1TargetResponder.md @@ -0,0 +1,30 @@ +# V1alpha1TargetResponder + +TargetResponder allows you to specify the responder reacting to the Eviction. Responders should observe and communicate through the Eviction API (see .state) to help with the graceful eviction of a target (e.g. termination of a pod). + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | name allows you to identify the responder reacting to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each responder. This field is required. | +**priority** | **int** | priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last. The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders. The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required and immutable. | +**state** | **str** | state specifies a state that is assigned by the evictionrequest-controller. Responders should observe this state in order to navigate their lifecycle. - Inactive means that the responder should not yet process this eviction request. - Active means that the responder is either running or expected to start soon. Also, startTime has been set in the ResponderStatus by the evictionrequest-controller. An active responder should currently interact with the eviction process by updating .status.responders, where .name is the active responder name. ResponderStatus fields should be periodically updated to indicate the progress or completion of the eviction process. If .status.responders[].heartbeatTime field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. Only one responder can be active at a time. - Interrupted means that the responder has failed to start or failed to update heartbeatTime in ResponderStatus in a timely manner. - Canceled means that the responder has been canceled. In other words, there is no EvictionRequest with the same target and Eviction intent in .spec.intent. - Completed means that the responder has successfully completed and set completionTime in ResponderStatus. Please refer to the ResponderStatus in .status.responders for more details on each responder. | + +## Example + +```python +from kubernetes.aio.client.models.v1alpha1_target_responder import V1alpha1TargetResponder + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1TargetResponder from a JSON string +v1alpha1_target_responder_instance = V1alpha1TargetResponder.from_json(json) +# print the JSON string representation of the object +print(V1alpha1TargetResponder.to_json()) + +# convert the object into a dict +v1alpha1_target_responder_dict = v1alpha1_target_responder_instance.to_dict() +# create an instance of V1alpha1TargetResponder from a dict +v1alpha1_target_responder_from_dict = V1alpha1TargetResponder.from_dict(v1alpha1_target_responder_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha2GangSchedulingPolicy.md b/kubernetes/aio/docs/V1alpha2GangSchedulingPolicy.md deleted file mode 100644 index 4721339859..0000000000 --- a/kubernetes/aio/docs/V1alpha2GangSchedulingPolicy.md +++ /dev/null @@ -1,28 +0,0 @@ -# V1alpha2GangSchedulingPolicy - -GangSchedulingPolicy defines the parameters for gang scheduling. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**min_count** | **int** | MinCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. | - -## Example - -```python -from kubernetes.aio.client.models.v1alpha2_gang_scheduling_policy import V1alpha2GangSchedulingPolicy - -# TODO update the JSON string below -json = "{}" -# create an instance of V1alpha2GangSchedulingPolicy from a JSON string -v1alpha2_gang_scheduling_policy_instance = V1alpha2GangSchedulingPolicy.from_json(json) -# print the JSON string representation of the object -print(V1alpha2GangSchedulingPolicy.to_json()) - -# convert the object into a dict -v1alpha2_gang_scheduling_policy_dict = v1alpha2_gang_scheduling_policy_instance.to_dict() -# create an instance of V1alpha2GangSchedulingPolicy from a dict -v1alpha2_gang_scheduling_policy_from_dict = V1alpha2GangSchedulingPolicy.from_dict(v1alpha2_gang_scheduling_policy_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha2LeaseCandidateSpec.md b/kubernetes/aio/docs/V1alpha2LeaseCandidateSpec.md index 0d36ea88a3..067f9ed83d 100644 --- a/kubernetes/aio/docs/V1alpha2LeaseCandidateSpec.md +++ b/kubernetes/aio/docs/V1alpha2LeaseCandidateSpec.md @@ -6,12 +6,12 @@ LeaseCandidateSpec is a specification of a Lease. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**binary_version** | **str** | BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required. | -**emulation_version** | **str** | EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\" | [optional] -**lease_name** | **str** | LeaseName is the name of the lease for which this candidate is contending. This field is immutable. | -**ping_time** | **datetime** | PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime. | [optional] -**renew_time** | **datetime** | RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates. | [optional] -**strategy** | **str** | Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. | +**binary_version** | **str** | binaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required. | +**emulation_version** | **str** | emulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\" | [optional] +**lease_name** | **str** | leaseName is the name of the lease for which this candidate is contending. This field is immutable. | +**ping_time** | **datetime** | pingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime. | [optional] +**renew_time** | **datetime** | renewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates. | [optional] +**strategy** | **str** | strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. | ## Example diff --git a/kubernetes/aio/docs/V1alpha2PodGroupSchedulingPolicy.md b/kubernetes/aio/docs/V1alpha2PodGroupSchedulingPolicy.md deleted file mode 100644 index a413224b20..0000000000 --- a/kubernetes/aio/docs/V1alpha2PodGroupSchedulingPolicy.md +++ /dev/null @@ -1,29 +0,0 @@ -# V1alpha2PodGroupSchedulingPolicy - -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** | [**V1alpha2GangSchedulingPolicy**](V1alpha2GangSchedulingPolicy.md) | | [optional] - -## Example - -```python -from kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_policy import V1alpha2PodGroupSchedulingPolicy - -# TODO update the JSON string below -json = "{}" -# create an instance of V1alpha2PodGroupSchedulingPolicy from a JSON string -v1alpha2_pod_group_scheduling_policy_instance = V1alpha2PodGroupSchedulingPolicy.from_json(json) -# print the JSON string representation of the object -print(V1alpha2PodGroupSchedulingPolicy.to_json()) - -# convert the object into a dict -v1alpha2_pod_group_scheduling_policy_dict = v1alpha2_pod_group_scheduling_policy_instance.to_dict() -# create an instance of V1alpha2PodGroupSchedulingPolicy from a dict -v1alpha2_pod_group_scheduling_policy_from_dict = V1alpha2PodGroupSchedulingPolicy.from_dict(v1alpha2_pod_group_scheduling_policy_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha2PodGroupSpec.md b/kubernetes/aio/docs/V1alpha2PodGroupSpec.md deleted file mode 100644 index 1a7f96307f..0000000000 --- a/kubernetes/aio/docs/V1alpha2PodGroupSpec.md +++ /dev/null @@ -1,34 +0,0 @@ -# V1alpha2PodGroupSpec - -PodGroupSpec defines the desired state of a PodGroup. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**disruption_mode** | **str** | 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] -**pod_group_template_ref** | [**V1alpha2PodGroupTemplateReference**](V1alpha2PodGroupTemplateReference.md) | | [optional] -**priority** | **int** | 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] -**priority_class_name** | **str** | 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] -**resource_claims** | [**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] -**scheduling_constraints** | [**V1alpha2PodGroupSchedulingConstraints**](V1alpha2PodGroupSchedulingConstraints.md) | | [optional] -**scheduling_policy** | [**V1alpha2PodGroupSchedulingPolicy**](V1alpha2PodGroupSchedulingPolicy.md) | | - -## Example - -```python -from kubernetes.aio.client.models.v1alpha2_pod_group_spec import V1alpha2PodGroupSpec - -# TODO update the JSON string below -json = "{}" -# create an instance of V1alpha2PodGroupSpec from a JSON string -v1alpha2_pod_group_spec_instance = V1alpha2PodGroupSpec.from_json(json) -# print the JSON string representation of the object -print(V1alpha2PodGroupSpec.to_json()) - -# convert the object into a dict -v1alpha2_pod_group_spec_dict = v1alpha2_pod_group_spec_instance.to_dict() -# create an instance of V1alpha2PodGroupSpec from a dict -v1alpha2_pod_group_spec_from_dict = V1alpha2PodGroupSpec.from_dict(v1alpha2_pod_group_spec_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha2PodGroupStatus.md b/kubernetes/aio/docs/V1alpha2PodGroupStatus.md deleted file mode 100644 index 07aa69e861..0000000000 --- a/kubernetes/aio/docs/V1alpha2PodGroupStatus.md +++ /dev/null @@ -1,29 +0,0 @@ -# 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] -**resource_claim_statuses** | [**List[V1alpha2PodGroupResourceClaimStatus]**](V1alpha2PodGroupResourceClaimStatus.md) | Status of resource claims. | [optional] - -## Example - -```python -from kubernetes.aio.client.models.v1alpha2_pod_group_status import V1alpha2PodGroupStatus - -# TODO update the JSON string below -json = "{}" -# create an instance of V1alpha2PodGroupStatus from a JSON string -v1alpha2_pod_group_status_instance = V1alpha2PodGroupStatus.from_json(json) -# print the JSON string representation of the object -print(V1alpha2PodGroupStatus.to_json()) - -# convert the object into a dict -v1alpha2_pod_group_status_dict = v1alpha2_pod_group_status_instance.to_dict() -# create an instance of V1alpha2PodGroupStatus from a dict -v1alpha2_pod_group_status_from_dict = V1alpha2PodGroupStatus.from_dict(v1alpha2_pod_group_status_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha2PodGroupTemplate.md b/kubernetes/aio/docs/V1alpha2PodGroupTemplate.md deleted file mode 100644 index 55b920a3f2..0000000000 --- a/kubernetes/aio/docs/V1alpha2PodGroupTemplate.md +++ /dev/null @@ -1,34 +0,0 @@ -# V1alpha2PodGroupTemplate - -PodGroupTemplate represents a template for a set of pods with a scheduling policy. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**disruption_mode** | **str** | 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** | **str** | Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable. | -**priority** | **int** | 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] -**priority_class_name** | **str** | 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] -**resource_claims** | [**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] -**scheduling_constraints** | [**V1alpha2PodGroupSchedulingConstraints**](V1alpha2PodGroupSchedulingConstraints.md) | | [optional] -**scheduling_policy** | [**V1alpha2PodGroupSchedulingPolicy**](V1alpha2PodGroupSchedulingPolicy.md) | | - -## Example - -```python -from kubernetes.aio.client.models.v1alpha2_pod_group_template import V1alpha2PodGroupTemplate - -# TODO update the JSON string below -json = "{}" -# create an instance of V1alpha2PodGroupTemplate from a JSON string -v1alpha2_pod_group_template_instance = V1alpha2PodGroupTemplate.from_json(json) -# print the JSON string representation of the object -print(V1alpha2PodGroupTemplate.to_json()) - -# convert the object into a dict -v1alpha2_pod_group_template_dict = v1alpha2_pod_group_template_instance.to_dict() -# create an instance of V1alpha2PodGroupTemplate from a dict -v1alpha2_pod_group_template_from_dict = V1alpha2PodGroupTemplate.from_dict(v1alpha2_pod_group_template_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha2PodGroupTemplateReference.md b/kubernetes/aio/docs/V1alpha2PodGroupTemplateReference.md deleted file mode 100644 index afcbe2a096..0000000000 --- a/kubernetes/aio/docs/V1alpha2PodGroupTemplateReference.md +++ /dev/null @@ -1,28 +0,0 @@ -# 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] - -## Example - -```python -from kubernetes.aio.client.models.v1alpha2_pod_group_template_reference import V1alpha2PodGroupTemplateReference - -# TODO update the JSON string below -json = "{}" -# create an instance of V1alpha2PodGroupTemplateReference from a JSON string -v1alpha2_pod_group_template_reference_instance = V1alpha2PodGroupTemplateReference.from_json(json) -# print the JSON string representation of the object -print(V1alpha2PodGroupTemplateReference.to_json()) - -# convert the object into a dict -v1alpha2_pod_group_template_reference_dict = v1alpha2_pod_group_template_reference_instance.to_dict() -# create an instance of V1alpha2PodGroupTemplateReference from a dict -v1alpha2_pod_group_template_reference_from_dict = V1alpha2PodGroupTemplateReference.from_dict(v1alpha2_pod_group_template_reference_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha2WorkloadPodGroupTemplateReference.md b/kubernetes/aio/docs/V1alpha2WorkloadPodGroupTemplateReference.md deleted file mode 100644 index f6613568f0..0000000000 --- a/kubernetes/aio/docs/V1alpha2WorkloadPodGroupTemplateReference.md +++ /dev/null @@ -1,29 +0,0 @@ -# V1alpha2WorkloadPodGroupTemplateReference - -WorkloadPodGroupTemplateReference references the PodGroupTemplate within the Workload object. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pod_group_template_name** | **str** | PodGroupTemplateName defines the PodGroupTemplate name within the Workload object. | -**workload_name** | **str** | WorkloadName defines the name of the Workload object. | - -## Example - -```python -from kubernetes.aio.client.models.v1alpha2_workload_pod_group_template_reference import V1alpha2WorkloadPodGroupTemplateReference - -# TODO update the JSON string below -json = "{}" -# create an instance of V1alpha2WorkloadPodGroupTemplateReference from a JSON string -v1alpha2_workload_pod_group_template_reference_instance = V1alpha2WorkloadPodGroupTemplateReference.from_json(json) -# print the JSON string representation of the object -print(V1alpha2WorkloadPodGroupTemplateReference.to_json()) - -# convert the object into a dict -v1alpha2_workload_pod_group_template_reference_dict = v1alpha2_workload_pod_group_template_reference_instance.to_dict() -# create an instance of V1alpha2WorkloadPodGroupTemplateReference from a dict -v1alpha2_workload_pod_group_template_reference_from_dict = V1alpha2WorkloadPodGroupTemplateReference.from_dict(v1alpha2_workload_pod_group_template_reference_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha2WorkloadSpec.md b/kubernetes/aio/docs/V1alpha2WorkloadSpec.md deleted file mode 100644 index 3029ccd344..0000000000 --- a/kubernetes/aio/docs/V1alpha2WorkloadSpec.md +++ /dev/null @@ -1,29 +0,0 @@ -# V1alpha2WorkloadSpec - -WorkloadSpec defines the desired state of a Workload. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**controller_ref** | [**V1alpha2TypedLocalObjectReference**](V1alpha2TypedLocalObjectReference.md) | | [optional] -**pod_group_templates** | [**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. | - -## Example - -```python -from kubernetes.aio.client.models.v1alpha2_workload_spec import V1alpha2WorkloadSpec - -# TODO update the JSON string below -json = "{}" -# create an instance of V1alpha2WorkloadSpec from a JSON string -v1alpha2_workload_spec_instance = V1alpha2WorkloadSpec.from_json(json) -# print the JSON string representation of the object -print(V1alpha2WorkloadSpec.to_json()) - -# convert the object into a dict -v1alpha2_workload_spec_dict = v1alpha2_workload_spec_instance.to_dict() -# create an instance of V1alpha2WorkloadSpec from a dict -v1alpha2_workload_spec_from_dict = V1alpha2WorkloadSpec.from_dict(v1alpha2_workload_spec_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3CompositeDisruptionMode.md b/kubernetes/aio/docs/V1alpha3CompositeDisruptionMode.md new file mode 100644 index 0000000000..4348526733 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3CompositeDisruptionMode.md @@ -0,0 +1,29 @@ +# V1alpha3CompositeDisruptionMode + +CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**all** | **object** | all specifies that all children groups can only be disrupted together. | [optional] +**single** | **object** | single specifies that children groups can be disrupted independently from each other. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_composite_disruption_mode import V1alpha3CompositeDisruptionMode + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3CompositeDisruptionMode from a JSON string +v1alpha3_composite_disruption_mode_instance = V1alpha3CompositeDisruptionMode.from_json(json) +# print the JSON string representation of the object +print(V1alpha3CompositeDisruptionMode.to_json()) + +# convert the object into a dict +v1alpha3_composite_disruption_mode_dict = v1alpha3_composite_disruption_mode_instance.to_dict() +# create an instance of V1alpha3CompositeDisruptionMode from a dict +v1alpha3_composite_disruption_mode_from_dict = V1alpha3CompositeDisruptionMode.from_dict(v1alpha3_composite_disruption_mode_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3CompositeGangSchedulingPolicy.md b/kubernetes/aio/docs/V1alpha3CompositeGangSchedulingPolicy.md new file mode 100644 index 0000000000..ea30a07d1b --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3CompositeGangSchedulingPolicy.md @@ -0,0 +1,28 @@ +# V1alpha3CompositeGangSchedulingPolicy + +CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_group_count** | **int** | minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. | + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_composite_gang_scheduling_policy import V1alpha3CompositeGangSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3CompositeGangSchedulingPolicy from a JSON string +v1alpha3_composite_gang_scheduling_policy_instance = V1alpha3CompositeGangSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1alpha3CompositeGangSchedulingPolicy.to_json()) + +# convert the object into a dict +v1alpha3_composite_gang_scheduling_policy_dict = v1alpha3_composite_gang_scheduling_policy_instance.to_dict() +# create an instance of V1alpha3CompositeGangSchedulingPolicy from a dict +v1alpha3_composite_gang_scheduling_policy_from_dict = V1alpha3CompositeGangSchedulingPolicy.from_dict(v1alpha3_composite_gang_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3CompositePodGroup.md b/kubernetes/aio/docs/V1alpha3CompositePodGroup.md new file mode 100644 index 0000000000..f9d1e85ddd --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3CompositePodGroup.md @@ -0,0 +1,32 @@ +# V1alpha3CompositePodGroup + +CompositePodGroup represents a runtime instance of pod groups grouped together. CompositePodGroups are created by workload controllers (LWS, JobSet, etc...) from Workload.compositePodGroupTemplates. CompositePodGroup API enablement is toggled by the CompositePodGroup feature gate. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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** | **str** | 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** | [**V1alpha3CompositePodGroupSpec**](V1alpha3CompositePodGroupSpec.md) | | +**status** | [**V1alpha3CompositePodGroupStatus**](V1alpha3CompositePodGroupStatus.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3CompositePodGroup from a JSON string +v1alpha3_composite_pod_group_instance = V1alpha3CompositePodGroup.from_json(json) +# print the JSON string representation of the object +print(V1alpha3CompositePodGroup.to_json()) + +# convert the object into a dict +v1alpha3_composite_pod_group_dict = v1alpha3_composite_pod_group_instance.to_dict() +# create an instance of V1alpha3CompositePodGroup from a dict +v1alpha3_composite_pod_group_from_dict = V1alpha3CompositePodGroup.from_dict(v1alpha3_composite_pod_group_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3CompositePodGroupList.md b/kubernetes/aio/docs/V1alpha3CompositePodGroupList.md new file mode 100644 index 0000000000..fdd0a7ddf3 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3CompositePodGroupList.md @@ -0,0 +1,31 @@ +# V1alpha3CompositePodGroupList + +CompositePodGroupList contains a list of CompositePodGroup resources. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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[V1alpha3CompositePodGroup]**](V1alpha3CompositePodGroup.md) | Items is the list of CompositePodGroups. | +**kind** | **str** | 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] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_composite_pod_group_list import V1alpha3CompositePodGroupList + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3CompositePodGroupList from a JSON string +v1alpha3_composite_pod_group_list_instance = V1alpha3CompositePodGroupList.from_json(json) +# print the JSON string representation of the object +print(V1alpha3CompositePodGroupList.to_json()) + +# convert the object into a dict +v1alpha3_composite_pod_group_list_dict = v1alpha3_composite_pod_group_list_instance.to_dict() +# create an instance of V1alpha3CompositePodGroupList from a dict +v1alpha3_composite_pod_group_list_from_dict = V1alpha3CompositePodGroupList.from_dict(v1alpha3_composite_pod_group_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3CompositePodGroupSchedulingConstraints.md b/kubernetes/aio/docs/V1alpha3CompositePodGroupSchedulingConstraints.md new file mode 100644 index 0000000000..0a41e14e6b --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3CompositePodGroupSchedulingConstraints.md @@ -0,0 +1,28 @@ +# V1alpha3CompositePodGroupSchedulingConstraints + +CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**topology** | [**List[V1alpha3TopologyConstraint]**](V1alpha3TopologyConstraint.md) | topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_composite_pod_group_scheduling_constraints import V1alpha3CompositePodGroupSchedulingConstraints + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3CompositePodGroupSchedulingConstraints from a JSON string +v1alpha3_composite_pod_group_scheduling_constraints_instance = V1alpha3CompositePodGroupSchedulingConstraints.from_json(json) +# print the JSON string representation of the object +print(V1alpha3CompositePodGroupSchedulingConstraints.to_json()) + +# convert the object into a dict +v1alpha3_composite_pod_group_scheduling_constraints_dict = v1alpha3_composite_pod_group_scheduling_constraints_instance.to_dict() +# create an instance of V1alpha3CompositePodGroupSchedulingConstraints from a dict +v1alpha3_composite_pod_group_scheduling_constraints_from_dict = V1alpha3CompositePodGroupSchedulingConstraints.from_dict(v1alpha3_composite_pod_group_scheduling_constraints_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3CompositePodGroupSchedulingPolicy.md b/kubernetes/aio/docs/V1alpha3CompositePodGroupSchedulingPolicy.md new file mode 100644 index 0000000000..98633b83bd --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3CompositePodGroupSchedulingPolicy.md @@ -0,0 +1,29 @@ +# V1alpha3CompositePodGroupSchedulingPolicy + +CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**basic** | **object** | basic specifies that the groups of this composite group should be scheduled independently. This field is immutable. | [optional] +**gang** | [**V1alpha3CompositeGangSchedulingPolicy**](V1alpha3CompositeGangSchedulingPolicy.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_composite_pod_group_scheduling_policy import V1alpha3CompositePodGroupSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3CompositePodGroupSchedulingPolicy from a JSON string +v1alpha3_composite_pod_group_scheduling_policy_instance = V1alpha3CompositePodGroupSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1alpha3CompositePodGroupSchedulingPolicy.to_json()) + +# convert the object into a dict +v1alpha3_composite_pod_group_scheduling_policy_dict = v1alpha3_composite_pod_group_scheduling_policy_instance.to_dict() +# create an instance of V1alpha3CompositePodGroupSchedulingPolicy from a dict +v1alpha3_composite_pod_group_scheduling_policy_from_dict = V1alpha3CompositePodGroupSchedulingPolicy.from_dict(v1alpha3_composite_pod_group_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3CompositePodGroupSpec.md b/kubernetes/aio/docs/V1alpha3CompositePodGroupSpec.md new file mode 100644 index 0000000000..9c51448d70 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3CompositePodGroupSpec.md @@ -0,0 +1,35 @@ +# V1alpha3CompositePodGroupSpec + +CompositePodGroupSpec defines the desired state of CompositePodGroup. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disruption_mode** | [**V1alpha3CompositeDisruptionMode**](V1alpha3CompositeDisruptionMode.md) | | [optional] +**parent_composite_pod_group_name** | **str** | parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this composite pod group. It must be a DNS name. If it's nil, then this composite pod group is a root of a workload's hierarchy. This field is immutable. | [optional] +**preemption_policy** | **str** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] +**priority** | **int** | priority is the value of priority of this composite pod group. Various system components use this field to find the priority of the composite 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. | [optional] +**priority_class_name** | **str** | priorityClassName defines the priority that should be considered when scheduling this CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. If left unspecified, it is validated and resolved similarly to the PriorityClassName field in Pods (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the composite pod group's priority will be zero). This field is immutable. | [optional] +**scheduling_constraints** | [**V1alpha3CompositePodGroupSchedulingConstraints**](V1alpha3CompositePodGroupSchedulingConstraints.md) | | [optional] +**scheduling_policy** | [**V1alpha3CompositePodGroupSchedulingPolicy**](V1alpha3CompositePodGroupSchedulingPolicy.md) | | +**workload_ref** | [**V1alpha3WorkloadReference**](V1alpha3WorkloadReference.md) | | + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_composite_pod_group_spec import V1alpha3CompositePodGroupSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3CompositePodGroupSpec from a JSON string +v1alpha3_composite_pod_group_spec_instance = V1alpha3CompositePodGroupSpec.from_json(json) +# print the JSON string representation of the object +print(V1alpha3CompositePodGroupSpec.to_json()) + +# convert the object into a dict +v1alpha3_composite_pod_group_spec_dict = v1alpha3_composite_pod_group_spec_instance.to_dict() +# create an instance of V1alpha3CompositePodGroupSpec from a dict +v1alpha3_composite_pod_group_spec_from_dict = V1alpha3CompositePodGroupSpec.from_dict(v1alpha3_composite_pod_group_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3CompositePodGroupStatus.md b/kubernetes/aio/docs/V1alpha3CompositePodGroupStatus.md new file mode 100644 index 0000000000..4ac6e2bc80 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3CompositePodGroupStatus.md @@ -0,0 +1,28 @@ +# V1alpha3CompositePodGroupStatus + +CompositePodGroupStatus represents information about the status of a composite pod group. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**List[V1Condition]**](V1Condition.md) | conditions represent the latest observations of the CompositePodGroup's state. Known condition types: - \"CompositePodGroupInitiallyScheduled\": Indicates whether the overall scheduling requirement for the subtree under this CompositePodGroup has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently deleted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the CompositePodGroup is about to be terminated due to disruption such as preemption. Known reasons for the CompositePodGroupInitiallyScheduled condition: - \"Unschedulable\": The CompositePodGroup's subtree could not be placed due to resource constraints, affinity/anti-affinity, or topological constraints. - \"SchedulerError\": The CompositePodGroup cannot be scheduled due to some internal error that occurred during scheduling. - \"Invalid\": Set to True when kube-scheduler detects an invalid group layout during runtime validation. The `message` field details the specific layout violation (such as a detected cycle, exceeding the maximum depth of 4, or referencing multiple distinct Workloads). Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The CompositePodGroup was targeted by the scheduler's preemption loop to free up capacity for higher-priority preemptors. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_composite_pod_group_status import V1alpha3CompositePodGroupStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3CompositePodGroupStatus from a JSON string +v1alpha3_composite_pod_group_status_instance = V1alpha3CompositePodGroupStatus.from_json(json) +# print the JSON string representation of the object +print(V1alpha3CompositePodGroupStatus.to_json()) + +# convert the object into a dict +v1alpha3_composite_pod_group_status_dict = v1alpha3_composite_pod_group_status_instance.to_dict() +# create an instance of V1alpha3CompositePodGroupStatus from a dict +v1alpha3_composite_pod_group_status_from_dict = V1alpha3CompositePodGroupStatus.from_dict(v1alpha3_composite_pod_group_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3CompositePodGroupTemplate.md b/kubernetes/aio/docs/V1alpha3CompositePodGroupTemplate.md new file mode 100644 index 0000000000..d7f8400d50 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3CompositePodGroupTemplate.md @@ -0,0 +1,36 @@ +# V1alpha3CompositePodGroupTemplate + +CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**composite_pod_group_templates** | [**List[V1alpha3CompositePodGroupTemplate]**](V1alpha3CompositePodGroupTemplate.md) | compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set. | [optional] +**disruption_mode** | [**V1alpha3CompositeDisruptionMode**](V1alpha3CompositeDisruptionMode.md) | | [optional] +**name** | **str** | name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required. | +**pod_group_templates** | [**List[V1alpha3PodGroupTemplate]**](V1alpha3PodGroupTemplate.md) | podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set. | [optional] +**preemption_policy** | **str** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] +**priority** | **int** | priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite 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. | [optional] +**priority_class_name** | **str** | priorityClassName indicates the priority that should be considered when scheduling a composite 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, composite pod groups created from this template will have the priority set to zero. This field is immutable. | [optional] +**scheduling_constraints** | [**V1alpha3CompositePodGroupSchedulingConstraints**](V1alpha3CompositePodGroupSchedulingConstraints.md) | | [optional] +**scheduling_policy** | [**V1alpha3CompositePodGroupSchedulingPolicy**](V1alpha3CompositePodGroupSchedulingPolicy.md) | | + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_composite_pod_group_template import V1alpha3CompositePodGroupTemplate + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3CompositePodGroupTemplate from a JSON string +v1alpha3_composite_pod_group_template_instance = V1alpha3CompositePodGroupTemplate.from_json(json) +# print the JSON string representation of the object +print(V1alpha3CompositePodGroupTemplate.to_json()) + +# convert the object into a dict +v1alpha3_composite_pod_group_template_dict = v1alpha3_composite_pod_group_template_instance.to_dict() +# create an instance of V1alpha3CompositePodGroupTemplate from a dict +v1alpha3_composite_pod_group_template_from_dict = V1alpha3CompositePodGroupTemplate.from_dict(v1alpha3_composite_pod_group_template_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3DisruptionMode.md b/kubernetes/aio/docs/V1alpha3DisruptionMode.md new file mode 100644 index 0000000000..977383c6ad --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3DisruptionMode.md @@ -0,0 +1,29 @@ +# V1alpha3DisruptionMode + +DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**all** | **object** | all specifies that all children can only be disrupted together. | [optional] +**single** | **object** | single specifies that children can be disrupted independently from each other. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_disruption_mode import V1alpha3DisruptionMode + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3DisruptionMode from a JSON string +v1alpha3_disruption_mode_instance = V1alpha3DisruptionMode.from_json(json) +# print the JSON string representation of the object +print(V1alpha3DisruptionMode.to_json()) + +# convert the object into a dict +v1alpha3_disruption_mode_dict = v1alpha3_disruption_mode_instance.to_dict() +# create an instance of V1alpha3DisruptionMode from a dict +v1alpha3_disruption_mode_from_dict = V1alpha3DisruptionMode.from_dict(v1alpha3_disruption_mode_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3GangSchedulingPolicy.md b/kubernetes/aio/docs/V1alpha3GangSchedulingPolicy.md new file mode 100644 index 0000000000..98716da823 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3GangSchedulingPolicy.md @@ -0,0 +1,28 @@ +# V1alpha3GangSchedulingPolicy + +GangSchedulingPolicy defines the parameters for gang scheduling. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_count** | **int** | minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling. Note that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles. | + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_gang_scheduling_policy import V1alpha3GangSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3GangSchedulingPolicy from a JSON string +v1alpha3_gang_scheduling_policy_instance = V1alpha3GangSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1alpha3GangSchedulingPolicy.to_json()) + +# convert the object into a dict +v1alpha3_gang_scheduling_policy_dict = v1alpha3_gang_scheduling_policy_instance.to_dict() +# create an instance of V1alpha3GangSchedulingPolicy from a dict +v1alpha3_gang_scheduling_policy_from_dict = V1alpha3GangSchedulingPolicy.from_dict(v1alpha3_gang_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3PartitionTypeStatus.md b/kubernetes/aio/docs/V1alpha3PartitionTypeStatus.md new file mode 100644 index 0000000000..0d8d444b34 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3PartitionTypeStatus.md @@ -0,0 +1,31 @@ +# V1alpha3PartitionTypeStatus + +PartitionTypeStatus reports allocatability for a single partition type, identified by the value of a grouping attribute. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocatable** | **int** | Allocatable is the number of additional devices of this partition type that could still be allocated given current shared-counter consumption. | +**attribute** | **str** | Attribute is the fully qualified name of the device attribute whose value groups this entry. It is the PartitionTypeAttribute declared by the devices' own slice, or the default named in the request when their slice declares none. | +**total** | **int** | Total is the number of devices of this partition type in the pool. | +**type** | **str** | Type is the partition type value (e.g. \"Full\" or \"Half\"). | + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_partition_type_status import V1alpha3PartitionTypeStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3PartitionTypeStatus from a JSON string +v1alpha3_partition_type_status_instance = V1alpha3PartitionTypeStatus.from_json(json) +# print the JSON string representation of the object +print(V1alpha3PartitionTypeStatus.to_json()) + +# convert the object into a dict +v1alpha3_partition_type_status_dict = v1alpha3_partition_type_status_instance.to_dict() +# create an instance of V1alpha3PartitionTypeStatus from a dict +v1alpha3_partition_type_status_from_dict = V1alpha3PartitionTypeStatus.from_dict(v1alpha3_partition_type_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha2PodGroup.md b/kubernetes/aio/docs/V1alpha3PodGroup.md similarity index 71% rename from kubernetes/aio/docs/V1alpha2PodGroup.md rename to kubernetes/aio/docs/V1alpha3PodGroup.md index 0403558368..14760b1860 100644 --- a/kubernetes/aio/docs/V1alpha2PodGroup.md +++ b/kubernetes/aio/docs/V1alpha3PodGroup.md @@ -1,4 +1,4 @@ -# V1alpha2PodGroup +# V1alpha3PodGroup 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. @@ -9,24 +9,24 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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] +**spec** | [**V1alpha3PodGroupSpec**](V1alpha3PodGroupSpec.md) | | +**status** | [**V1alpha3PodGroupStatus**](V1alpha3PodGroupStatus.md) | | [optional] ## Example ```python -from kubernetes.aio.client.models.v1alpha2_pod_group import V1alpha2PodGroup +from kubernetes.aio.client.models.v1alpha3_pod_group import V1alpha3PodGroup # TODO update the JSON string below json = "{}" -# create an instance of V1alpha2PodGroup from a JSON string -v1alpha2_pod_group_instance = V1alpha2PodGroup.from_json(json) +# create an instance of V1alpha3PodGroup from a JSON string +v1alpha3_pod_group_instance = V1alpha3PodGroup.from_json(json) # print the JSON string representation of the object -print(V1alpha2PodGroup.to_json()) +print(V1alpha3PodGroup.to_json()) # convert the object into a dict -v1alpha2_pod_group_dict = v1alpha2_pod_group_instance.to_dict() -# create an instance of V1alpha2PodGroup from a dict -v1alpha2_pod_group_from_dict = V1alpha2PodGroup.from_dict(v1alpha2_pod_group_dict) +v1alpha3_pod_group_dict = v1alpha3_pod_group_instance.to_dict() +# create an instance of V1alpha3PodGroup from a dict +v1alpha3_pod_group_from_dict = V1alpha3PodGroup.from_dict(v1alpha3_pod_group_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha2PodGroupList.md b/kubernetes/aio/docs/V1alpha3PodGroupList.md similarity index 69% rename from kubernetes/aio/docs/V1alpha2PodGroupList.md rename to kubernetes/aio/docs/V1alpha3PodGroupList.md index 8e34881b51..fee3804e69 100644 --- a/kubernetes/aio/docs/V1alpha2PodGroupList.md +++ b/kubernetes/aio/docs/V1alpha3PodGroupList.md @@ -1,4 +1,4 @@ -# V1alpha2PodGroupList +# V1alpha3PodGroupList PodGroupList contains a list of PodGroup resources. @@ -7,25 +7,25 @@ PodGroupList contains a list of PodGroup resources. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | 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. | +**items** | [**List[V1alpha3PodGroup]**](V1alpha3PodGroup.md) | Items is the list of PodGroups. | **kind** | **str** | 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] ## Example ```python -from kubernetes.aio.client.models.v1alpha2_pod_group_list import V1alpha2PodGroupList +from kubernetes.aio.client.models.v1alpha3_pod_group_list import V1alpha3PodGroupList # TODO update the JSON string below json = "{}" -# create an instance of V1alpha2PodGroupList from a JSON string -v1alpha2_pod_group_list_instance = V1alpha2PodGroupList.from_json(json) +# create an instance of V1alpha3PodGroupList from a JSON string +v1alpha3_pod_group_list_instance = V1alpha3PodGroupList.from_json(json) # print the JSON string representation of the object -print(V1alpha2PodGroupList.to_json()) +print(V1alpha3PodGroupList.to_json()) # convert the object into a dict -v1alpha2_pod_group_list_dict = v1alpha2_pod_group_list_instance.to_dict() -# create an instance of V1alpha2PodGroupList from a dict -v1alpha2_pod_group_list_from_dict = V1alpha2PodGroupList.from_dict(v1alpha2_pod_group_list_dict) +v1alpha3_pod_group_list_dict = v1alpha3_pod_group_list_instance.to_dict() +# create an instance of V1alpha3PodGroupList from a dict +v1alpha3_pod_group_list_from_dict = V1alpha3PodGroupList.from_dict(v1alpha3_pod_group_list_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha2PodGroupResourceClaim.md b/kubernetes/aio/docs/V1alpha3PodGroupResourceClaim.md similarity index 71% rename from kubernetes/aio/docs/V1alpha2PodGroupResourceClaim.md rename to kubernetes/aio/docs/V1alpha3PodGroupResourceClaim.md index 9b8f8e2110..4c0a0766a7 100644 --- a/kubernetes/aio/docs/V1alpha2PodGroupResourceClaim.md +++ b/kubernetes/aio/docs/V1alpha3PodGroupResourceClaim.md @@ -1,4 +1,4 @@ -# V1alpha2PodGroupResourceClaim +# V1alpha3PodGroupResourceClaim 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. @@ -6,25 +6,25 @@ PodGroupResourceClaim references exactly one ResourceClaim, either directly or b Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL. | -**resource_claim_name** | **str** | 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] -**resource_claim_template_name** | **str** | 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] +**name** | **str** | name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL. | +**resource_claim_name** | **str** | 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] +**resource_claim_template_name** | **str** | 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] ## Example ```python -from kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim import V1alpha2PodGroupResourceClaim +from kubernetes.aio.client.models.v1alpha3_pod_group_resource_claim import V1alpha3PodGroupResourceClaim # TODO update the JSON string below json = "{}" -# create an instance of V1alpha2PodGroupResourceClaim from a JSON string -v1alpha2_pod_group_resource_claim_instance = V1alpha2PodGroupResourceClaim.from_json(json) +# create an instance of V1alpha3PodGroupResourceClaim from a JSON string +v1alpha3_pod_group_resource_claim_instance = V1alpha3PodGroupResourceClaim.from_json(json) # print the JSON string representation of the object -print(V1alpha2PodGroupResourceClaim.to_json()) +print(V1alpha3PodGroupResourceClaim.to_json()) # convert the object into a dict -v1alpha2_pod_group_resource_claim_dict = v1alpha2_pod_group_resource_claim_instance.to_dict() -# create an instance of V1alpha2PodGroupResourceClaim from a dict -v1alpha2_pod_group_resource_claim_from_dict = V1alpha2PodGroupResourceClaim.from_dict(v1alpha2_pod_group_resource_claim_dict) +v1alpha3_pod_group_resource_claim_dict = v1alpha3_pod_group_resource_claim_instance.to_dict() +# create an instance of V1alpha3PodGroupResourceClaim from a dict +v1alpha3_pod_group_resource_claim_from_dict = V1alpha3PodGroupResourceClaim.from_dict(v1alpha3_pod_group_resource_claim_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha2PodGroupResourceClaimStatus.md b/kubernetes/aio/docs/V1alpha3PodGroupResourceClaimStatus.md similarity index 61% rename from kubernetes/aio/docs/V1alpha2PodGroupResourceClaimStatus.md rename to kubernetes/aio/docs/V1alpha3PodGroupResourceClaimStatus.md index 5ce956fcd2..0ab837fcdc 100644 --- a/kubernetes/aio/docs/V1alpha2PodGroupResourceClaimStatus.md +++ b/kubernetes/aio/docs/V1alpha3PodGroupResourceClaimStatus.md @@ -1,4 +1,4 @@ -# V1alpha2PodGroupResourceClaimStatus +# V1alpha3PodGroupResourceClaimStatus PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. @@ -6,24 +6,24 @@ PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupRes Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | 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. | -**resource_claim_name** | **str** | 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] +**name** | **str** | 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. | +**resource_claim_name** | **str** | 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] ## Example ```python -from kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim_status import V1alpha2PodGroupResourceClaimStatus +from kubernetes.aio.client.models.v1alpha3_pod_group_resource_claim_status import V1alpha3PodGroupResourceClaimStatus # TODO update the JSON string below json = "{}" -# create an instance of V1alpha2PodGroupResourceClaimStatus from a JSON string -v1alpha2_pod_group_resource_claim_status_instance = V1alpha2PodGroupResourceClaimStatus.from_json(json) +# create an instance of V1alpha3PodGroupResourceClaimStatus from a JSON string +v1alpha3_pod_group_resource_claim_status_instance = V1alpha3PodGroupResourceClaimStatus.from_json(json) # print the JSON string representation of the object -print(V1alpha2PodGroupResourceClaimStatus.to_json()) +print(V1alpha3PodGroupResourceClaimStatus.to_json()) # convert the object into a dict -v1alpha2_pod_group_resource_claim_status_dict = v1alpha2_pod_group_resource_claim_status_instance.to_dict() -# create an instance of V1alpha2PodGroupResourceClaimStatus from a dict -v1alpha2_pod_group_resource_claim_status_from_dict = V1alpha2PodGroupResourceClaimStatus.from_dict(v1alpha2_pod_group_resource_claim_status_dict) +v1alpha3_pod_group_resource_claim_status_dict = v1alpha3_pod_group_resource_claim_status_instance.to_dict() +# create an instance of V1alpha3PodGroupResourceClaimStatus from a dict +v1alpha3_pod_group_resource_claim_status_from_dict = V1alpha3PodGroupResourceClaimStatus.from_dict(v1alpha3_pod_group_resource_claim_status_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha2PodGroupSchedulingConstraints.md b/kubernetes/aio/docs/V1alpha3PodGroupSchedulingConstraints.md similarity index 52% rename from kubernetes/aio/docs/V1alpha2PodGroupSchedulingConstraints.md rename to kubernetes/aio/docs/V1alpha3PodGroupSchedulingConstraints.md index 83a2013ab8..a8890ef361 100644 --- a/kubernetes/aio/docs/V1alpha2PodGroupSchedulingConstraints.md +++ b/kubernetes/aio/docs/V1alpha3PodGroupSchedulingConstraints.md @@ -1,4 +1,4 @@ -# V1alpha2PodGroupSchedulingConstraints +# V1alpha3PodGroupSchedulingConstraints PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup. @@ -6,23 +6,23 @@ PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for 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] +**topology** | [**List[V1alpha3TopologyConstraint]**](V1alpha3TopologyConstraint.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] ## Example ```python -from kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_constraints import V1alpha2PodGroupSchedulingConstraints +from kubernetes.aio.client.models.v1alpha3_pod_group_scheduling_constraints import V1alpha3PodGroupSchedulingConstraints # TODO update the JSON string below json = "{}" -# create an instance of V1alpha2PodGroupSchedulingConstraints from a JSON string -v1alpha2_pod_group_scheduling_constraints_instance = V1alpha2PodGroupSchedulingConstraints.from_json(json) +# create an instance of V1alpha3PodGroupSchedulingConstraints from a JSON string +v1alpha3_pod_group_scheduling_constraints_instance = V1alpha3PodGroupSchedulingConstraints.from_json(json) # print the JSON string representation of the object -print(V1alpha2PodGroupSchedulingConstraints.to_json()) +print(V1alpha3PodGroupSchedulingConstraints.to_json()) # convert the object into a dict -v1alpha2_pod_group_scheduling_constraints_dict = v1alpha2_pod_group_scheduling_constraints_instance.to_dict() -# create an instance of V1alpha2PodGroupSchedulingConstraints from a dict -v1alpha2_pod_group_scheduling_constraints_from_dict = V1alpha2PodGroupSchedulingConstraints.from_dict(v1alpha2_pod_group_scheduling_constraints_dict) +v1alpha3_pod_group_scheduling_constraints_dict = v1alpha3_pod_group_scheduling_constraints_instance.to_dict() +# create an instance of V1alpha3PodGroupSchedulingConstraints from a dict +v1alpha3_pod_group_scheduling_constraints_from_dict = V1alpha3PodGroupSchedulingConstraints.from_dict(v1alpha3_pod_group_scheduling_constraints_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3PodGroupSchedulingPolicy.md b/kubernetes/aio/docs/V1alpha3PodGroupSchedulingPolicy.md new file mode 100644 index 0000000000..4bbdd295c6 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3PodGroupSchedulingPolicy.md @@ -0,0 +1,29 @@ +# V1alpha3PodGroupSchedulingPolicy + +PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**basic** | **object** | basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward. | [optional] +**gang** | [**V1alpha3GangSchedulingPolicy**](V1alpha3GangSchedulingPolicy.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_pod_group_scheduling_policy import V1alpha3PodGroupSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3PodGroupSchedulingPolicy from a JSON string +v1alpha3_pod_group_scheduling_policy_instance = V1alpha3PodGroupSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1alpha3PodGroupSchedulingPolicy.to_json()) + +# convert the object into a dict +v1alpha3_pod_group_scheduling_policy_dict = v1alpha3_pod_group_scheduling_policy_instance.to_dict() +# create an instance of V1alpha3PodGroupSchedulingPolicy from a dict +v1alpha3_pod_group_scheduling_policy_from_dict = V1alpha3PodGroupSchedulingPolicy.from_dict(v1alpha3_pod_group_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3PodGroupSpec.md b/kubernetes/aio/docs/V1alpha3PodGroupSpec.md new file mode 100644 index 0000000000..0e31831b6a --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3PodGroupSpec.md @@ -0,0 +1,36 @@ +# V1alpha3PodGroupSpec + +PodGroupSpec defines the desired state of a PodGroup. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disruption_mode** | [**V1alpha3DisruptionMode**](V1alpha3DisruptionMode.md) | | [optional] +**parent_composite_pod_group_name** | **str** | parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable. | [optional] +**preemption_policy** | **str** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] +**priority** | **int** | 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. | [optional] +**priority_class_name** | **str** | 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. | [optional] +**resource_claims** | [**List[V1alpha3PodGroupResourceClaim]**](V1alpha3PodGroupResourceClaim.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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. | [optional] +**scheduling_constraints** | [**V1alpha3PodGroupSchedulingConstraints**](V1alpha3PodGroupSchedulingConstraints.md) | | [optional] +**scheduling_policy** | [**V1alpha3PodGroupSchedulingPolicy**](V1alpha3PodGroupSchedulingPolicy.md) | | +**workload_ref** | [**V1alpha3WorkloadReference**](V1alpha3WorkloadReference.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_pod_group_spec import V1alpha3PodGroupSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3PodGroupSpec from a JSON string +v1alpha3_pod_group_spec_instance = V1alpha3PodGroupSpec.from_json(json) +# print the JSON string representation of the object +print(V1alpha3PodGroupSpec.to_json()) + +# convert the object into a dict +v1alpha3_pod_group_spec_dict = v1alpha3_pod_group_spec_instance.to_dict() +# create an instance of V1alpha3PodGroupSpec from a dict +v1alpha3_pod_group_spec_from_dict = V1alpha3PodGroupSpec.from_dict(v1alpha3_pod_group_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3PodGroupStatus.md b/kubernetes/aio/docs/V1alpha3PodGroupStatus.md new file mode 100644 index 0000000000..210699adaf --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3PodGroupStatus.md @@ -0,0 +1,29 @@ +# V1alpha3PodGroupStatus + +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: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupInitiallyScheduled 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] +**resource_claim_statuses** | [**List[V1alpha3PodGroupResourceClaimStatus]**](V1alpha3PodGroupResourceClaimStatus.md) | resourceClaimStatuses is status of resource claims. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_pod_group_status import V1alpha3PodGroupStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3PodGroupStatus from a JSON string +v1alpha3_pod_group_status_instance = V1alpha3PodGroupStatus.from_json(json) +# print the JSON string representation of the object +print(V1alpha3PodGroupStatus.to_json()) + +# convert the object into a dict +v1alpha3_pod_group_status_dict = v1alpha3_pod_group_status_instance.to_dict() +# create an instance of V1alpha3PodGroupStatus from a dict +v1alpha3_pod_group_status_from_dict = V1alpha3PodGroupStatus.from_dict(v1alpha3_pod_group_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3PodGroupTemplate.md b/kubernetes/aio/docs/V1alpha3PodGroupTemplate.md new file mode 100644 index 0000000000..c07d754292 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3PodGroupTemplate.md @@ -0,0 +1,35 @@ +# V1alpha3PodGroupTemplate + +PodGroupTemplate represents a template for a set of pods with a scheduling policy. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disruption_mode** | [**V1alpha3DisruptionMode**](V1alpha3DisruptionMode.md) | | [optional] +**name** | **str** | name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable. | +**preemption_policy** | **str** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] +**priority** | **int** | 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. The higher the value, the higher the priority. This field is immutable. | [optional] +**priority_class_name** | **str** | priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable. | [optional] +**resource_claims** | [**List[V1alpha3PodGroupResourceClaim]**](V1alpha3PodGroupResourceClaim.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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. | [optional] +**scheduling_constraints** | [**V1alpha3PodGroupSchedulingConstraints**](V1alpha3PodGroupSchedulingConstraints.md) | | [optional] +**scheduling_policy** | [**V1alpha3PodGroupSchedulingPolicy**](V1alpha3PodGroupSchedulingPolicy.md) | | + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_pod_group_template import V1alpha3PodGroupTemplate + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3PodGroupTemplate from a JSON string +v1alpha3_pod_group_template_instance = V1alpha3PodGroupTemplate.from_json(json) +# print the JSON string representation of the object +print(V1alpha3PodGroupTemplate.to_json()) + +# convert the object into a dict +v1alpha3_pod_group_template_dict = v1alpha3_pod_group_template_instance.to_dict() +# create an instance of V1alpha3PodGroupTemplate from a dict +v1alpha3_pod_group_template_from_dict = V1alpha3PodGroupTemplate.from_dict(v1alpha3_pod_group_template_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3PoolStatus.md b/kubernetes/aio/docs/V1alpha3PoolStatus.md index 40d61ac82d..7ae6b4533a 100644 --- a/kubernetes/aio/docs/V1alpha3PoolStatus.md +++ b/kubernetes/aio/docs/V1alpha3PoolStatus.md @@ -11,8 +11,10 @@ Name | Type | Description | Notes **driver** | **str** | Driver is the DRA driver name for this pool. Must be a DNS subdomain (e.g., \"gpu.example.com\"). | **generation** | **int** | 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. | **node_name** | **str** | 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] +**partition_summary** | [**List[V1alpha3PartitionTypeStatus]**](V1alpha3PartitionTypeStatus.md) | PartitionSummary reports allocatability per (attribute, partition type) for a partitionable pool that publishes SharedCounters. Each entry names the grouping attribute it was resolved from: the PartitionTypeAttribute declared by a device's own slice, or for devices whose slice declares none, the default named in the request. A pool that mixes partitions declared under different attributes reports each independently. When no slice declares an attribute and the request names no default, the pool reports no partition summary. | [optional] **pool_name** | **str** | PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by \"/\"). | **resource_slice_count** | **int** | ResourceSliceCount is the number of ResourceSlices that make up this pool. May be unset when validationError is set. | [optional] +**shareable_summary** | [**V1alpha3ShareableSummaryStatus**](V1alpha3ShareableSummaryStatus.md) | | [optional] **total_devices** | **int** | 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] **unavailable_devices** | **int** | 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] **validation_error** | **str** | 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/aio/docs/V1alpha3ResourcePoolStatusRequestSpec.md b/kubernetes/aio/docs/V1alpha3ResourcePoolStatusRequestSpec.md index e60f1d7440..f6e6490a69 100644 --- a/kubernetes/aio/docs/V1alpha3ResourcePoolStatusRequestSpec.md +++ b/kubernetes/aio/docs/V1alpha3ResourcePoolStatusRequestSpec.md @@ -6,6 +6,7 @@ ResourcePoolStatusRequestSpec defines the filters for the pool status request. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**default_partition_type_attribute** | **str** | DefaultPartitionTypeAttribute optionally names a device attribute (by its fully qualified name, e.g. \"gpu.example.com/profile\") to use as the default grouping attribute for partitionable devices whose slice has not declared one themselves. A slice's own PartitionTypeAttribute always takes precedence. This default applies only to devices whose slice does not declare one, so that a request can still get an accurate partitionSummary from a driver that has not been updated to declare it. When neither the slice nor this default names an attribute, a partitionable pool reports no partitionSummary. Must include the domain qualifier. | [optional] **driver** | **str** | 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** | **int** | 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] **pool_name** | **str** | 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/aio/docs/V1alpha3ShareableCapacityStatus.md b/kubernetes/aio/docs/V1alpha3ShareableCapacityStatus.md new file mode 100644 index 0000000000..16d46b643d --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3ShareableCapacityStatus.md @@ -0,0 +1,31 @@ +# V1alpha3ShareableCapacityStatus + +ShareableCapacityStatus reports aggregate amounts for a single shareable capacity key. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available** | **str** | Available is Total minus Consumed, never negative. | +**consumed** | **str** | Consumed is the amount drawn by current allocations. | +**name** | **str** | Name is the capacity name. | +**total** | **str** | Total is the sum of this capacity across shareable devices in the pool. | + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_shareable_capacity_status import V1alpha3ShareableCapacityStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3ShareableCapacityStatus from a JSON string +v1alpha3_shareable_capacity_status_instance = V1alpha3ShareableCapacityStatus.from_json(json) +# print the JSON string representation of the object +print(V1alpha3ShareableCapacityStatus.to_json()) + +# convert the object into a dict +v1alpha3_shareable_capacity_status_dict = v1alpha3_shareable_capacity_status_instance.to_dict() +# create an instance of V1alpha3ShareableCapacityStatus from a dict +v1alpha3_shareable_capacity_status_from_dict = V1alpha3ShareableCapacityStatus.from_dict(v1alpha3_shareable_capacity_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3ShareableSummaryStatus.md b/kubernetes/aio/docs/V1alpha3ShareableSummaryStatus.md new file mode 100644 index 0000000000..1e2fe614af --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3ShareableSummaryStatus.md @@ -0,0 +1,30 @@ +# V1alpha3ShareableSummaryStatus + +ShareableSummaryStatus reports aggregate capacity for a pool that contains devices with AllowMultipleAllocations. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capacity** | [**List[V1alpha3ShareableCapacityStatus]**](V1alpha3ShareableCapacityStatus.md) | Capacity reports aggregate total, consumed, and available amounts per shareable capacity key across the pool. | [optional] +**fully_available_devices** | **int** | FullyAvailableDevices is the number of shareable devices with no capacity consumed. | +**partially_available_devices** | **int** | PartiallyAvailableDevices is the number of shareable devices with some but not all capacity consumed. | + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_shareable_summary_status import V1alpha3ShareableSummaryStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3ShareableSummaryStatus from a JSON string +v1alpha3_shareable_summary_status_instance = V1alpha3ShareableSummaryStatus.from_json(json) +# print the JSON string representation of the object +print(V1alpha3ShareableSummaryStatus.to_json()) + +# convert the object into a dict +v1alpha3_shareable_summary_status_dict = v1alpha3_shareable_summary_status_instance.to_dict() +# create an instance of V1alpha3ShareableSummaryStatus from a dict +v1alpha3_shareable_summary_status_from_dict = V1alpha3ShareableSummaryStatus.from_dict(v1alpha3_shareable_summary_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha2TopologyConstraint.md b/kubernetes/aio/docs/V1alpha3TopologyConstraint.md similarity index 57% rename from kubernetes/aio/docs/V1alpha2TopologyConstraint.md rename to kubernetes/aio/docs/V1alpha3TopologyConstraint.md index 8c60159db7..26c93eccda 100644 --- a/kubernetes/aio/docs/V1alpha2TopologyConstraint.md +++ b/kubernetes/aio/docs/V1alpha3TopologyConstraint.md @@ -1,4 +1,4 @@ -# V1alpha2TopologyConstraint +# V1alpha3TopologyConstraint TopologyConstraint defines a topology constraint for a PodGroup. @@ -6,23 +6,23 @@ TopologyConstraint defines a topology constraint for a PodGroup. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**key** | **str** | 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\" | +**key** | **str** | 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\" | ## Example ```python -from kubernetes.aio.client.models.v1alpha2_topology_constraint import V1alpha2TopologyConstraint +from kubernetes.aio.client.models.v1alpha3_topology_constraint import V1alpha3TopologyConstraint # TODO update the JSON string below json = "{}" -# create an instance of V1alpha2TopologyConstraint from a JSON string -v1alpha2_topology_constraint_instance = V1alpha2TopologyConstraint.from_json(json) +# create an instance of V1alpha3TopologyConstraint from a JSON string +v1alpha3_topology_constraint_instance = V1alpha3TopologyConstraint.from_json(json) # print the JSON string representation of the object -print(V1alpha2TopologyConstraint.to_json()) +print(V1alpha3TopologyConstraint.to_json()) # convert the object into a dict -v1alpha2_topology_constraint_dict = v1alpha2_topology_constraint_instance.to_dict() -# create an instance of V1alpha2TopologyConstraint from a dict -v1alpha2_topology_constraint_from_dict = V1alpha2TopologyConstraint.from_dict(v1alpha2_topology_constraint_dict) +v1alpha3_topology_constraint_dict = v1alpha3_topology_constraint_instance.to_dict() +# create an instance of V1alpha3TopologyConstraint from a dict +v1alpha3_topology_constraint_from_dict = V1alpha3TopologyConstraint.from_dict(v1alpha3_topology_constraint_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha2TypedLocalObjectReference.md b/kubernetes/aio/docs/V1alpha3TypedLocalObjectReference.md similarity index 53% rename from kubernetes/aio/docs/V1alpha2TypedLocalObjectReference.md rename to kubernetes/aio/docs/V1alpha3TypedLocalObjectReference.md index d197dfe88b..ac2d321fdf 100644 --- a/kubernetes/aio/docs/V1alpha2TypedLocalObjectReference.md +++ b/kubernetes/aio/docs/V1alpha3TypedLocalObjectReference.md @@ -1,4 +1,4 @@ -# V1alpha2TypedLocalObjectReference +# V1alpha3TypedLocalObjectReference TypedLocalObjectReference allows to reference typed object inside the same namespace. @@ -6,25 +6,25 @@ TypedLocalObjectReference allows to reference typed object inside the same names Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_group** | **str** | APIGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain. | [optional] -**kind** | **str** | Kind is the type of resource being referenced. It must be a path segment name. | -**name** | **str** | Name is the name of resource being referenced. It must be a path segment name. | +**api_group** | **str** | apiGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain. | [optional] +**kind** | **str** | kind is the type of resource being referenced. It must be a path segment name. | +**name** | **str** | name is the name of resource being referenced. It must be a path segment name. | ## Example ```python -from kubernetes.aio.client.models.v1alpha2_typed_local_object_reference import V1alpha2TypedLocalObjectReference +from kubernetes.aio.client.models.v1alpha3_typed_local_object_reference import V1alpha3TypedLocalObjectReference # TODO update the JSON string below json = "{}" -# create an instance of V1alpha2TypedLocalObjectReference from a JSON string -v1alpha2_typed_local_object_reference_instance = V1alpha2TypedLocalObjectReference.from_json(json) +# create an instance of V1alpha3TypedLocalObjectReference from a JSON string +v1alpha3_typed_local_object_reference_instance = V1alpha3TypedLocalObjectReference.from_json(json) # print the JSON string representation of the object -print(V1alpha2TypedLocalObjectReference.to_json()) +print(V1alpha3TypedLocalObjectReference.to_json()) # convert the object into a dict -v1alpha2_typed_local_object_reference_dict = v1alpha2_typed_local_object_reference_instance.to_dict() -# create an instance of V1alpha2TypedLocalObjectReference from a dict -v1alpha2_typed_local_object_reference_from_dict = V1alpha2TypedLocalObjectReference.from_dict(v1alpha2_typed_local_object_reference_dict) +v1alpha3_typed_local_object_reference_dict = v1alpha3_typed_local_object_reference_instance.to_dict() +# create an instance of V1alpha3TypedLocalObjectReference from a dict +v1alpha3_typed_local_object_reference_from_dict = V1alpha3TypedLocalObjectReference.from_dict(v1alpha3_typed_local_object_reference_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha2Workload.md b/kubernetes/aio/docs/V1alpha3Workload.md similarity index 73% rename from kubernetes/aio/docs/V1alpha2Workload.md rename to kubernetes/aio/docs/V1alpha3Workload.md index 341dda3b54..5be4c49745 100644 --- a/kubernetes/aio/docs/V1alpha2Workload.md +++ b/kubernetes/aio/docs/V1alpha3Workload.md @@ -1,4 +1,4 @@ -# V1alpha2Workload +# V1alpha3Workload 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. @@ -9,23 +9,23 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1alpha2WorkloadSpec**](V1alpha2WorkloadSpec.md) | | +**spec** | [**V1alpha3WorkloadSpec**](V1alpha3WorkloadSpec.md) | | ## Example ```python -from kubernetes.aio.client.models.v1alpha2_workload import V1alpha2Workload +from kubernetes.aio.client.models.v1alpha3_workload import V1alpha3Workload # TODO update the JSON string below json = "{}" -# create an instance of V1alpha2Workload from a JSON string -v1alpha2_workload_instance = V1alpha2Workload.from_json(json) +# create an instance of V1alpha3Workload from a JSON string +v1alpha3_workload_instance = V1alpha3Workload.from_json(json) # print the JSON string representation of the object -print(V1alpha2Workload.to_json()) +print(V1alpha3Workload.to_json()) # convert the object into a dict -v1alpha2_workload_dict = v1alpha2_workload_instance.to_dict() -# create an instance of V1alpha2Workload from a dict -v1alpha2_workload_from_dict = V1alpha2Workload.from_dict(v1alpha2_workload_dict) +v1alpha3_workload_dict = v1alpha3_workload_instance.to_dict() +# create an instance of V1alpha3Workload from a dict +v1alpha3_workload_from_dict = V1alpha3Workload.from_dict(v1alpha3_workload_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha2WorkloadList.md b/kubernetes/aio/docs/V1alpha3WorkloadList.md similarity index 69% rename from kubernetes/aio/docs/V1alpha2WorkloadList.md rename to kubernetes/aio/docs/V1alpha3WorkloadList.md index 0617620064..7272e2de1e 100644 --- a/kubernetes/aio/docs/V1alpha2WorkloadList.md +++ b/kubernetes/aio/docs/V1alpha3WorkloadList.md @@ -1,4 +1,4 @@ -# V1alpha2WorkloadList +# V1alpha3WorkloadList WorkloadList contains a list of Workload resources. @@ -7,25 +7,25 @@ WorkloadList contains a list of Workload resources. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | 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[V1alpha2Workload]**](V1alpha2Workload.md) | Items is the list of Workloads. | +**items** | [**List[V1alpha3Workload]**](V1alpha3Workload.md) | Items is the list of Workloads. | **kind** | **str** | 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] ## Example ```python -from kubernetes.aio.client.models.v1alpha2_workload_list import V1alpha2WorkloadList +from kubernetes.aio.client.models.v1alpha3_workload_list import V1alpha3WorkloadList # TODO update the JSON string below json = "{}" -# create an instance of V1alpha2WorkloadList from a JSON string -v1alpha2_workload_list_instance = V1alpha2WorkloadList.from_json(json) +# create an instance of V1alpha3WorkloadList from a JSON string +v1alpha3_workload_list_instance = V1alpha3WorkloadList.from_json(json) # print the JSON string representation of the object -print(V1alpha2WorkloadList.to_json()) +print(V1alpha3WorkloadList.to_json()) # convert the object into a dict -v1alpha2_workload_list_dict = v1alpha2_workload_list_instance.to_dict() -# create an instance of V1alpha2WorkloadList from a dict -v1alpha2_workload_list_from_dict = V1alpha2WorkloadList.from_dict(v1alpha2_workload_list_dict) +v1alpha3_workload_list_dict = v1alpha3_workload_list_instance.to_dict() +# create an instance of V1alpha3WorkloadList from a dict +v1alpha3_workload_list_from_dict = V1alpha3WorkloadList.from_dict(v1alpha3_workload_list_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3WorkloadPodGroupDisruptionMode.md b/kubernetes/aio/docs/V1alpha3WorkloadPodGroupDisruptionMode.md new file mode 100644 index 0000000000..6d0de6a814 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3WorkloadPodGroupDisruptionMode.md @@ -0,0 +1,29 @@ +# V1alpha3WorkloadPodGroupDisruptionMode + +WorkloadPodGroupDisruptionMode defines how individual pods within a group can be disrupted. Exactly one mode must be set. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**all** | **object** | all specifies that all pods in the group must be disrupted together. | [optional] +**single** | **object** | single specifies that pods can be disrupted independently from each other. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_workload_pod_group_disruption_mode import V1alpha3WorkloadPodGroupDisruptionMode + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3WorkloadPodGroupDisruptionMode from a JSON string +v1alpha3_workload_pod_group_disruption_mode_instance = V1alpha3WorkloadPodGroupDisruptionMode.from_json(json) +# print the JSON string representation of the object +print(V1alpha3WorkloadPodGroupDisruptionMode.to_json()) + +# convert the object into a dict +v1alpha3_workload_pod_group_disruption_mode_dict = v1alpha3_workload_pod_group_disruption_mode_instance.to_dict() +# create an instance of V1alpha3WorkloadPodGroupDisruptionMode from a dict +v1alpha3_workload_pod_group_disruption_mode_from_dict = V1alpha3WorkloadPodGroupDisruptionMode.from_dict(v1alpha3_workload_pod_group_disruption_mode_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3WorkloadPodGroupGangSchedulingPolicy.md b/kubernetes/aio/docs/V1alpha3WorkloadPodGroupGangSchedulingPolicy.md new file mode 100644 index 0000000000..2a405fcba5 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3WorkloadPodGroupGangSchedulingPolicy.md @@ -0,0 +1,28 @@ +# V1alpha3WorkloadPodGroupGangSchedulingPolicy + +WorkloadPodGroupGangSchedulingPolicy defines the parameters for gang (all-or-nothing) scheduling. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_count** | **int** | minCount is the minimum number of pods that must be scheduled at the same time for the scheduler to admit the entire group. This field is optional. If it is not specified, the controller should inject a context-specific sane default (e.g., parallelism for a Job). If set, it must be a positive integer. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_workload_pod_group_gang_scheduling_policy import V1alpha3WorkloadPodGroupGangSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3WorkloadPodGroupGangSchedulingPolicy from a JSON string +v1alpha3_workload_pod_group_gang_scheduling_policy_instance = V1alpha3WorkloadPodGroupGangSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1alpha3WorkloadPodGroupGangSchedulingPolicy.to_json()) + +# convert the object into a dict +v1alpha3_workload_pod_group_gang_scheduling_policy_dict = v1alpha3_workload_pod_group_gang_scheduling_policy_instance.to_dict() +# create an instance of V1alpha3WorkloadPodGroupGangSchedulingPolicy from a dict +v1alpha3_workload_pod_group_gang_scheduling_policy_from_dict = V1alpha3WorkloadPodGroupGangSchedulingPolicy.from_dict(v1alpha3_workload_pod_group_gang_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3WorkloadPodGroupResourceClaim.md b/kubernetes/aio/docs/V1alpha3WorkloadPodGroupResourceClaim.md new file mode 100644 index 0000000000..5df5ddea0c --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3WorkloadPodGroupResourceClaim.md @@ -0,0 +1,30 @@ +# V1alpha3WorkloadPodGroupResourceClaim + +WorkloadPodGroupResourceClaim references a dynamic resource claim that is shared across pods in the group. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | name uniquely identifies this resource claim inside the group. This field is required. It must be a DNS_LABEL. | +**resource_claim_name** | **str** | resourceClaimName is the name of a ResourceClaim object in the same namespace. This field is optional. If it is not specified, no resource claim is used. If set, it must be a DNS subdomain. | [optional] +**resource_claim_template_name** | **str** | resourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace. This field is optional. If it is not specified, no resource claim template is used. If set, it must be a DNS subdomain. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_workload_pod_group_resource_claim import V1alpha3WorkloadPodGroupResourceClaim + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3WorkloadPodGroupResourceClaim from a JSON string +v1alpha3_workload_pod_group_resource_claim_instance = V1alpha3WorkloadPodGroupResourceClaim.from_json(json) +# print the JSON string representation of the object +print(V1alpha3WorkloadPodGroupResourceClaim.to_json()) + +# convert the object into a dict +v1alpha3_workload_pod_group_resource_claim_dict = v1alpha3_workload_pod_group_resource_claim_instance.to_dict() +# create an instance of V1alpha3WorkloadPodGroupResourceClaim from a dict +v1alpha3_workload_pod_group_resource_claim_from_dict = V1alpha3WorkloadPodGroupResourceClaim.from_dict(v1alpha3_workload_pod_group_resource_claim_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3WorkloadPodGroupSchedulingConstraints.md b/kubernetes/aio/docs/V1alpha3WorkloadPodGroupSchedulingConstraints.md new file mode 100644 index 0000000000..d6544a41db --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3WorkloadPodGroupSchedulingConstraints.md @@ -0,0 +1,28 @@ +# V1alpha3WorkloadPodGroupSchedulingConstraints + +WorkloadPodGroupSchedulingConstraints defines leaf-level scheduling constraints, such as topology. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**topology** | [**List[V1alpha3TopologyConstraint]**](V1alpha3TopologyConstraint.md) | topology specifies desired topological placements for all pods within the pod group. If unset, no topology placement is requested. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_workload_pod_group_scheduling_constraints import V1alpha3WorkloadPodGroupSchedulingConstraints + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3WorkloadPodGroupSchedulingConstraints from a JSON string +v1alpha3_workload_pod_group_scheduling_constraints_instance = V1alpha3WorkloadPodGroupSchedulingConstraints.from_json(json) +# print the JSON string representation of the object +print(V1alpha3WorkloadPodGroupSchedulingConstraints.to_json()) + +# convert the object into a dict +v1alpha3_workload_pod_group_scheduling_constraints_dict = v1alpha3_workload_pod_group_scheduling_constraints_instance.to_dict() +# create an instance of V1alpha3WorkloadPodGroupSchedulingConstraints from a dict +v1alpha3_workload_pod_group_scheduling_constraints_from_dict = V1alpha3WorkloadPodGroupSchedulingConstraints.from_dict(v1alpha3_workload_pod_group_scheduling_constraints_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3WorkloadPodGroupSchedulingPolicy.md b/kubernetes/aio/docs/V1alpha3WorkloadPodGroupSchedulingPolicy.md new file mode 100644 index 0000000000..df247cfe2e --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3WorkloadPodGroupSchedulingPolicy.md @@ -0,0 +1,29 @@ +# V1alpha3WorkloadPodGroupSchedulingPolicy + +WorkloadPodGroupSchedulingPolicy defines the scheduling policy for a group of pods managed by a workload controller. Exactly one policy must be set. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**basic** | **object** | basic specifies that standard, pod-by-pod Kubernetes scheduling behavior should be used. | [optional] +**gang** | [**V1alpha3WorkloadPodGroupGangSchedulingPolicy**](V1alpha3WorkloadPodGroupGangSchedulingPolicy.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_workload_pod_group_scheduling_policy import V1alpha3WorkloadPodGroupSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3WorkloadPodGroupSchedulingPolicy from a JSON string +v1alpha3_workload_pod_group_scheduling_policy_instance = V1alpha3WorkloadPodGroupSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1alpha3WorkloadPodGroupSchedulingPolicy.to_json()) + +# convert the object into a dict +v1alpha3_workload_pod_group_scheduling_policy_dict = v1alpha3_workload_pod_group_scheduling_policy_instance.to_dict() +# create an instance of V1alpha3WorkloadPodGroupSchedulingPolicy from a dict +v1alpha3_workload_pod_group_scheduling_policy_from_dict = V1alpha3WorkloadPodGroupSchedulingPolicy.from_dict(v1alpha3_workload_pod_group_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3WorkloadReference.md b/kubernetes/aio/docs/V1alpha3WorkloadReference.md new file mode 100644 index 0000000000..6703b2417f --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3WorkloadReference.md @@ -0,0 +1,29 @@ +# V1alpha3WorkloadReference + +WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**template_name** | **str** | templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required. | +**workload_name** | **str** | workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required. | + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_workload_reference import V1alpha3WorkloadReference + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3WorkloadReference from a JSON string +v1alpha3_workload_reference_instance = V1alpha3WorkloadReference.from_json(json) +# print the JSON string representation of the object +print(V1alpha3WorkloadReference.to_json()) + +# convert the object into a dict +v1alpha3_workload_reference_dict = v1alpha3_workload_reference_instance.to_dict() +# create an instance of V1alpha3WorkloadReference from a dict +v1alpha3_workload_reference_from_dict = V1alpha3WorkloadReference.from_dict(v1alpha3_workload_reference_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha3WorkloadSpec.md b/kubernetes/aio/docs/V1alpha3WorkloadSpec.md new file mode 100644 index 0000000000..2084c902b9 --- /dev/null +++ b/kubernetes/aio/docs/V1alpha3WorkloadSpec.md @@ -0,0 +1,30 @@ +# V1alpha3WorkloadSpec + +WorkloadSpec defines the desired state of a Workload. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**composite_pod_group_templates** | [**List[V1alpha3CompositePodGroupTemplate]**](V1alpha3CompositePodGroupTemplate.md) | compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. This field is used only when the CompositePodGroup feature gate is enabled. | [optional] +**controller_ref** | [**V1alpha3TypedLocalObjectReference**](V1alpha3TypedLocalObjectReference.md) | | [optional] +**pod_group_templates** | [**List[V1alpha3PodGroupTemplate]**](V1alpha3PodGroupTemplate.md) | podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1alpha3_workload_spec import V1alpha3WorkloadSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3WorkloadSpec from a JSON string +v1alpha3_workload_spec_instance = V1alpha3WorkloadSpec.from_json(json) +# print the JSON string representation of the object +print(V1alpha3WorkloadSpec.to_json()) + +# convert the object into a dict +v1alpha3_workload_spec_dict = v1alpha3_workload_spec_instance.to_dict() +# create an instance of V1alpha3WorkloadSpec from a dict +v1alpha3_workload_spec_from_dict = V1alpha3WorkloadSpec.from_dict(v1alpha3_workload_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1BasicDevice.md b/kubernetes/aio/docs/V1beta1BasicDevice.md index 970dc3925d..227173d5db 100644 --- a/kubernetes/aio/docs/V1beta1BasicDevice.md +++ b/kubernetes/aio/docs/V1beta1BasicDevice.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **binds_to_node** | **bool** | 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** | [**Dict[str, 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] **consumes_counters** | [**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] -**node_allocatable_resource_mappings** | [**Dict[str, 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] +**node_allocatable_resources** | [**Dict[str, V1beta1NodeAllocatableResource]**](V1beta1NodeAllocatableResource.md) | NodeAllocatableResources 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] **node_name** | **str** | 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] **node_selector** | [**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 a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] diff --git a/kubernetes/aio/docs/V1beta1CELDeviceSelector.md b/kubernetes/aio/docs/V1beta1CELDeviceSelector.md index 2d6c02b538..4ae1ac2db3 100644 --- a/kubernetes/aio/docs/V1beta1CELDeviceSelector.md +++ b/kubernetes/aio/docs/V1beta1CELDeviceSelector.md @@ -6,7 +6,7 @@ CELDeviceSelector contains a CEL expression for selecting a device. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**expression** | **str** | 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. | +**expression** | **str** | 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. | ## Example diff --git a/kubernetes/aio/docs/V1beta1CapacityRequestPolicyRange.md b/kubernetes/aio/docs/V1beta1CapacityRequestPolicyRange.md index 5bb19d2bcf..2cf09de2d1 100644 --- a/kubernetes/aio/docs/V1beta1CapacityRequestPolicyRange.md +++ b/kubernetes/aio/docs/V1beta1CapacityRequestPolicyRange.md @@ -1,6 +1,6 @@ # V1beta1CapacityRequestPolicyRange -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. +CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - 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. ## Properties diff --git a/kubernetes/aio/docs/V1beta1ClusterTrustBundle.md b/kubernetes/aio/docs/V1beta1ClusterTrustBundle.md index 6eab10f60e..05dd6a67c7 100644 --- a/kubernetes/aio/docs/V1beta1ClusterTrustBundle.md +++ b/kubernetes/aio/docs/V1beta1ClusterTrustBundle.md @@ -1,6 +1,6 @@ # V1beta1ClusterTrustBundle -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. +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 signer, 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. ## Properties diff --git a/kubernetes/aio/docs/V1beta1CompositeDisruptionMode.md b/kubernetes/aio/docs/V1beta1CompositeDisruptionMode.md new file mode 100644 index 0000000000..ec2b74fcf5 --- /dev/null +++ b/kubernetes/aio/docs/V1beta1CompositeDisruptionMode.md @@ -0,0 +1,29 @@ +# V1beta1CompositeDisruptionMode + +CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**all** | **object** | all specifies that all children groups can only be disrupted together. | [optional] +**single** | **object** | single specifies that children groups can be disrupted independently from each other. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_composite_disruption_mode import V1beta1CompositeDisruptionMode + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CompositeDisruptionMode from a JSON string +v1beta1_composite_disruption_mode_instance = V1beta1CompositeDisruptionMode.from_json(json) +# print the JSON string representation of the object +print(V1beta1CompositeDisruptionMode.to_json()) + +# convert the object into a dict +v1beta1_composite_disruption_mode_dict = v1beta1_composite_disruption_mode_instance.to_dict() +# create an instance of V1beta1CompositeDisruptionMode from a dict +v1beta1_composite_disruption_mode_from_dict = V1beta1CompositeDisruptionMode.from_dict(v1beta1_composite_disruption_mode_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1CompositeGangSchedulingPolicy.md b/kubernetes/aio/docs/V1beta1CompositeGangSchedulingPolicy.md new file mode 100644 index 0000000000..63c3ee0396 --- /dev/null +++ b/kubernetes/aio/docs/V1beta1CompositeGangSchedulingPolicy.md @@ -0,0 +1,28 @@ +# V1beta1CompositeGangSchedulingPolicy + +CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_group_count** | **int** | minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. | + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_composite_gang_scheduling_policy import V1beta1CompositeGangSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CompositeGangSchedulingPolicy from a JSON string +v1beta1_composite_gang_scheduling_policy_instance = V1beta1CompositeGangSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1beta1CompositeGangSchedulingPolicy.to_json()) + +# convert the object into a dict +v1beta1_composite_gang_scheduling_policy_dict = v1beta1_composite_gang_scheduling_policy_instance.to_dict() +# create an instance of V1beta1CompositeGangSchedulingPolicy from a dict +v1beta1_composite_gang_scheduling_policy_from_dict = V1beta1CompositeGangSchedulingPolicy.from_dict(v1beta1_composite_gang_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1CompositePodGroupSchedulingConstraints.md b/kubernetes/aio/docs/V1beta1CompositePodGroupSchedulingConstraints.md new file mode 100644 index 0000000000..ad9939c70d --- /dev/null +++ b/kubernetes/aio/docs/V1beta1CompositePodGroupSchedulingConstraints.md @@ -0,0 +1,28 @@ +# V1beta1CompositePodGroupSchedulingConstraints + +CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**topology** | [**List[V1beta1TopologyConstraint]**](V1beta1TopologyConstraint.md) | topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_composite_pod_group_scheduling_constraints import V1beta1CompositePodGroupSchedulingConstraints + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CompositePodGroupSchedulingConstraints from a JSON string +v1beta1_composite_pod_group_scheduling_constraints_instance = V1beta1CompositePodGroupSchedulingConstraints.from_json(json) +# print the JSON string representation of the object +print(V1beta1CompositePodGroupSchedulingConstraints.to_json()) + +# convert the object into a dict +v1beta1_composite_pod_group_scheduling_constraints_dict = v1beta1_composite_pod_group_scheduling_constraints_instance.to_dict() +# create an instance of V1beta1CompositePodGroupSchedulingConstraints from a dict +v1beta1_composite_pod_group_scheduling_constraints_from_dict = V1beta1CompositePodGroupSchedulingConstraints.from_dict(v1beta1_composite_pod_group_scheduling_constraints_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1CompositePodGroupSchedulingPolicy.md b/kubernetes/aio/docs/V1beta1CompositePodGroupSchedulingPolicy.md new file mode 100644 index 0000000000..ed81c50d8c --- /dev/null +++ b/kubernetes/aio/docs/V1beta1CompositePodGroupSchedulingPolicy.md @@ -0,0 +1,29 @@ +# V1beta1CompositePodGroupSchedulingPolicy + +CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**basic** | **object** | basic specifies that the groups of this composite group should be scheduled independently. This field is immutable. | [optional] +**gang** | [**V1beta1CompositeGangSchedulingPolicy**](V1beta1CompositeGangSchedulingPolicy.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_composite_pod_group_scheduling_policy import V1beta1CompositePodGroupSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CompositePodGroupSchedulingPolicy from a JSON string +v1beta1_composite_pod_group_scheduling_policy_instance = V1beta1CompositePodGroupSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1beta1CompositePodGroupSchedulingPolicy.to_json()) + +# convert the object into a dict +v1beta1_composite_pod_group_scheduling_policy_dict = v1beta1_composite_pod_group_scheduling_policy_instance.to_dict() +# create an instance of V1beta1CompositePodGroupSchedulingPolicy from a dict +v1beta1_composite_pod_group_scheduling_policy_from_dict = V1beta1CompositePodGroupSchedulingPolicy.from_dict(v1beta1_composite_pod_group_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1CompositePodGroupTemplate.md b/kubernetes/aio/docs/V1beta1CompositePodGroupTemplate.md new file mode 100644 index 0000000000..ff53b62f03 --- /dev/null +++ b/kubernetes/aio/docs/V1beta1CompositePodGroupTemplate.md @@ -0,0 +1,36 @@ +# V1beta1CompositePodGroupTemplate + +CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**composite_pod_group_templates** | [**List[V1beta1CompositePodGroupTemplate]**](V1beta1CompositePodGroupTemplate.md) | compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set. | [optional] +**disruption_mode** | [**V1beta1CompositeDisruptionMode**](V1beta1CompositeDisruptionMode.md) | | [optional] +**name** | **str** | name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required. | +**pod_group_templates** | [**List[V1beta1PodGroupTemplate]**](V1beta1PodGroupTemplate.md) | podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set. | [optional] +**preemption_policy** | **str** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] +**priority** | **int** | priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite 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. | [optional] +**priority_class_name** | **str** | priorityClassName indicates the priority that should be considered when scheduling a composite 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, composite pod groups created from this template will have the priority set to zero. This field is immutable. | [optional] +**scheduling_constraints** | [**V1beta1CompositePodGroupSchedulingConstraints**](V1beta1CompositePodGroupSchedulingConstraints.md) | | [optional] +**scheduling_policy** | [**V1beta1CompositePodGroupSchedulingPolicy**](V1beta1CompositePodGroupSchedulingPolicy.md) | | + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_composite_pod_group_template import V1beta1CompositePodGroupTemplate + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CompositePodGroupTemplate from a JSON string +v1beta1_composite_pod_group_template_instance = V1beta1CompositePodGroupTemplate.from_json(json) +# print the JSON string representation of the object +print(V1beta1CompositePodGroupTemplate.to_json()) + +# convert the object into a dict +v1beta1_composite_pod_group_template_dict = v1beta1_composite_pod_group_template_instance.to_dict() +# create an instance of V1beta1CompositePodGroupTemplate from a dict +v1beta1_composite_pod_group_template_from_dict = V1beta1CompositePodGroupTemplate.from_dict(v1beta1_composite_pod_group_template_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1DeviceClass.md b/kubernetes/aio/docs/V1beta1DeviceClass.md index fb921c0142..7144290ee5 100644 --- a/kubernetes/aio/docs/V1beta1DeviceClass.md +++ b/kubernetes/aio/docs/V1beta1DeviceClass.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1beta1DeviceClassSpec**](V1beta1DeviceClassSpec.md) | | +**spec** | [**V1beta1DeviceClassSpec**](V1beta1DeviceClassSpec.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1beta1DeviceClassSpec.md b/kubernetes/aio/docs/V1beta1DeviceClassSpec.md index 579795a7d8..99defffa32 100644 --- a/kubernetes/aio/docs/V1beta1DeviceClassSpec.md +++ b/kubernetes/aio/docs/V1beta1DeviceClassSpec.md @@ -7,7 +7,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] -**extended_resource_name** | **str** | 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] +**extended_resource_name** | **str** | 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] **selectors** | [**List[V1beta1DeviceSelector]**](V1beta1DeviceSelector.md) | Each selector must be satisfied by a device which is claimed via this class. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1beta1DeviceCounterConsumption.md b/kubernetes/aio/docs/V1beta1DeviceCounterConsumption.md index 87b3e87a60..47654ffcbb 100644 --- a/kubernetes/aio/docs/V1beta1DeviceCounterConsumption.md +++ b/kubernetes/aio/docs/V1beta1DeviceCounterConsumption.md @@ -6,6 +6,7 @@ DeviceCounterConsumption defines a set of counters that a device will consume fr Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**compatibility_groups** | **List[str]** | CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique. | [optional] **counter_set** | **str** | CounterSet is the name of the set from which the counters defined will be consumed. | **counters** | [**Dict[str, V1beta1Counter]**](V1beta1Counter.md) | Counters defines the counters that will be consumed by the device. The maximum number of counters is 32. | diff --git a/kubernetes/aio/docs/V1beta1DeviceDerivedAttribute.md b/kubernetes/aio/docs/V1beta1DeviceDerivedAttribute.md new file mode 100644 index 0000000000..fca7831f2e --- /dev/null +++ b/kubernetes/aio/docs/V1beta1DeviceDerivedAttribute.md @@ -0,0 +1,29 @@ +# V1beta1DeviceDerivedAttribute + +DeviceDerivedAttribute defines a derived attribute computed via CEL. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expression** | **str** | Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget. | +**name** | **str** | Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint. | + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_device_derived_attribute import V1beta1DeviceDerivedAttribute + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1DeviceDerivedAttribute from a JSON string +v1beta1_device_derived_attribute_instance = V1beta1DeviceDerivedAttribute.from_json(json) +# print the JSON string representation of the object +print(V1beta1DeviceDerivedAttribute.to_json()) + +# convert the object into a dict +v1beta1_device_derived_attribute_dict = v1beta1_device_derived_attribute_instance.to_dict() +# create an instance of V1beta1DeviceDerivedAttribute from a dict +v1beta1_device_derived_attribute_from_dict = V1beta1DeviceDerivedAttribute.from_dict(v1beta1_device_derived_attribute_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1DeviceRequest.md b/kubernetes/aio/docs/V1beta1DeviceRequest.md index c52010dbab..9a2ca53137 100644 --- a/kubernetes/aio/docs/V1beta1DeviceRequest.md +++ b/kubernetes/aio/docs/V1beta1DeviceRequest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **allocation_mode** | **str** | 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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] **capacity** | [**V1beta1CapacityRequirements**](V1beta1CapacityRequirements.md) | | [optional] **count** | **int** | 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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. | [optional] +**derived_attributes** | [**List[V1beta1DeviceDerivedAttribute]**](V1beta1DeviceDerivedAttribute.md) | DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. | [optional] **device_class_name** | **str** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. 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. | [optional] **first_available** | [**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** | **str** | 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. | diff --git a/kubernetes/aio/docs/V1beta1DeviceRequestAllocationResult.md b/kubernetes/aio/docs/V1beta1DeviceRequestAllocationResult.md index 01dfb9d671..c0fe6681fd 100644 --- a/kubernetes/aio/docs/V1beta1DeviceRequestAllocationResult.md +++ b/kubernetes/aio/docs/V1beta1DeviceRequestAllocationResult.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **pool** | **str** | 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** | **str** | 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. | **share_id** | **str** | 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] +**skip_node_operations** | **List[str]** | SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated. | [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] ## Example diff --git a/kubernetes/aio/docs/V1beta1DeviceSubRequest.md b/kubernetes/aio/docs/V1beta1DeviceSubRequest.md index e070aa380c..f5552e1c67 100644 --- a/kubernetes/aio/docs/V1beta1DeviceSubRequest.md +++ b/kubernetes/aio/docs/V1beta1DeviceSubRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **allocation_mode** | **str** | 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] **capacity** | [**V1beta1CapacityRequirements**](V1beta1CapacityRequirements.md) | | [optional] **count** | **int** | 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] +**derived_attributes** | [**List[V1beta1DeviceDerivedAttribute]**](V1beta1DeviceDerivedAttribute.md) | DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. | [optional] **device_class_name** | **str** | 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** | **str** | 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] diff --git a/kubernetes/aio/docs/V1beta1DisruptionMode.md b/kubernetes/aio/docs/V1beta1DisruptionMode.md new file mode 100644 index 0000000000..82631efb85 --- /dev/null +++ b/kubernetes/aio/docs/V1beta1DisruptionMode.md @@ -0,0 +1,29 @@ +# V1beta1DisruptionMode + +DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**all** | **object** | all specifies that all children can only be disrupted together. | [optional] +**single** | **object** | single specifies that children can be disrupted independently from each other. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_disruption_mode import V1beta1DisruptionMode + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1DisruptionMode from a JSON string +v1beta1_disruption_mode_instance = V1beta1DisruptionMode.from_json(json) +# print the JSON string representation of the object +print(V1beta1DisruptionMode.to_json()) + +# convert the object into a dict +v1beta1_disruption_mode_dict = v1beta1_disruption_mode_instance.to_dict() +# create an instance of V1beta1DisruptionMode from a dict +v1beta1_disruption_mode_from_dict = V1beta1DisruptionMode.from_dict(v1beta1_disruption_mode_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1GangSchedulingPolicy.md b/kubernetes/aio/docs/V1beta1GangSchedulingPolicy.md new file mode 100644 index 0000000000..97cadaebef --- /dev/null +++ b/kubernetes/aio/docs/V1beta1GangSchedulingPolicy.md @@ -0,0 +1,28 @@ +# V1beta1GangSchedulingPolicy + +GangSchedulingPolicy defines the parameters for gang scheduling. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_count** | **int** | minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling. Note that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles. | + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_gang_scheduling_policy import V1beta1GangSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GangSchedulingPolicy from a JSON string +v1beta1_gang_scheduling_policy_instance = V1beta1GangSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1beta1GangSchedulingPolicy.to_json()) + +# convert the object into a dict +v1beta1_gang_scheduling_policy_dict = v1beta1_gang_scheduling_policy_instance.to_dict() +# create an instance of V1beta1GangSchedulingPolicy from a dict +v1beta1_gang_scheduling_policy_from_dict = V1beta1GangSchedulingPolicy.from_dict(v1beta1_gang_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1IPAddress.md b/kubernetes/aio/docs/V1beta1IPAddress.md deleted file mode 100644 index 28e794f1c4..0000000000 --- a/kubernetes/aio/docs/V1beta1IPAddress.md +++ /dev/null @@ -1,31 +0,0 @@ -# V1beta1IPAddress - -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 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | 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** | **str** | 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) | | - -## Example - -```python -from kubernetes.aio.client.models.v1beta1_ip_address import V1beta1IPAddress - -# TODO update the JSON string below -json = "{}" -# create an instance of V1beta1IPAddress from a JSON string -v1beta1_ip_address_instance = V1beta1IPAddress.from_json(json) -# print the JSON string representation of the object -print(V1beta1IPAddress.to_json()) - -# convert the object into a dict -v1beta1_ip_address_dict = v1beta1_ip_address_instance.to_dict() -# create an instance of V1beta1IPAddress from a dict -v1beta1_ip_address_from_dict = V1beta1IPAddress.from_dict(v1beta1_ip_address_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1IPAddressSpec.md b/kubernetes/aio/docs/V1beta1IPAddressSpec.md deleted file mode 100644 index 311dd4d7fa..0000000000 --- a/kubernetes/aio/docs/V1beta1IPAddressSpec.md +++ /dev/null @@ -1,28 +0,0 @@ -# V1beta1IPAddressSpec - -IPAddressSpec describe the attributes in an IP Address. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**parent_ref** | [**V1beta1ParentReference**](V1beta1ParentReference.md) | | - -## Example - -```python -from kubernetes.aio.client.models.v1beta1_ip_address_spec import V1beta1IPAddressSpec - -# TODO update the JSON string below -json = "{}" -# create an instance of V1beta1IPAddressSpec from a JSON string -v1beta1_ip_address_spec_instance = V1beta1IPAddressSpec.from_json(json) -# print the JSON string representation of the object -print(V1beta1IPAddressSpec.to_json()) - -# convert the object into a dict -v1beta1_ip_address_spec_dict = v1beta1_ip_address_spec_instance.to_dict() -# create an instance of V1beta1IPAddressSpec from a dict -v1beta1_ip_address_spec_from_dict = V1beta1IPAddressSpec.from_dict(v1beta1_ip_address_spec_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1LeaseCandidateSpec.md b/kubernetes/aio/docs/V1beta1LeaseCandidateSpec.md index a40163b22d..9c03abf8c8 100644 --- a/kubernetes/aio/docs/V1beta1LeaseCandidateSpec.md +++ b/kubernetes/aio/docs/V1beta1LeaseCandidateSpec.md @@ -6,12 +6,12 @@ LeaseCandidateSpec is a specification of a Lease. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**binary_version** | **str** | BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required. | -**emulation_version** | **str** | EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\" | [optional] -**lease_name** | **str** | LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable. | -**ping_time** | **datetime** | PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime. | [optional] -**renew_time** | **datetime** | RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates. | [optional] -**strategy** | **str** | Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. | +**binary_version** | **str** | binaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required. | +**emulation_version** | **str** | emulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\" | [optional] +**lease_name** | **str** | leaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable. | +**ping_time** | **datetime** | pingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime. | [optional] +**renew_time** | **datetime** | renewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates. | [optional] +**strategy** | **str** | strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. | ## Example diff --git a/kubernetes/aio/docs/V1beta1NodeAllocatableMapping.md b/kubernetes/aio/docs/V1beta1NodeAllocatableMapping.md new file mode 100644 index 0000000000..594afe2b08 --- /dev/null +++ b/kubernetes/aio/docs/V1beta1NodeAllocatableMapping.md @@ -0,0 +1,30 @@ +# V1beta1NodeAllocatableMapping + +NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices or the specific capacity consumed. These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capacity_key** | **str** | 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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. | [optional] +**capacity_multiplier** | **str** | CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16. | [optional] +**device_multiplier** | **str** | DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_node_allocatable_mapping import V1beta1NodeAllocatableMapping + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1NodeAllocatableMapping from a JSON string +v1beta1_node_allocatable_mapping_instance = V1beta1NodeAllocatableMapping.from_json(json) +# print the JSON string representation of the object +print(V1beta1NodeAllocatableMapping.to_json()) + +# convert the object into a dict +v1beta1_node_allocatable_mapping_dict = v1beta1_node_allocatable_mapping_instance.to_dict() +# create an instance of V1beta1NodeAllocatableMapping from a dict +v1beta1_node_allocatable_mapping_from_dict = V1beta1NodeAllocatableMapping.from_dict(v1beta1_node_allocatable_mapping_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1NodeAllocatableOverhead.md b/kubernetes/aio/docs/V1beta1NodeAllocatableOverhead.md new file mode 100644 index 0000000000..8aa55b3b35 --- /dev/null +++ b/kubernetes/aio/docs/V1beta1NodeAllocatableOverhead.md @@ -0,0 +1,29 @@ +# V1beta1NodeAllocatableOverhead + +NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per_container** | **str** | PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once. | [optional] +**per_pod** | **str** | PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_node_allocatable_overhead import V1beta1NodeAllocatableOverhead + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1NodeAllocatableOverhead from a JSON string +v1beta1_node_allocatable_overhead_instance = V1beta1NodeAllocatableOverhead.from_json(json) +# print the JSON string representation of the object +print(V1beta1NodeAllocatableOverhead.to_json()) + +# convert the object into a dict +v1beta1_node_allocatable_overhead_dict = v1beta1_node_allocatable_overhead_instance.to_dict() +# create an instance of V1beta1NodeAllocatableOverhead from a dict +v1beta1_node_allocatable_overhead_from_dict = V1beta1NodeAllocatableOverhead.from_dict(v1beta1_node_allocatable_overhead_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1NodeAllocatableResource.md b/kubernetes/aio/docs/V1beta1NodeAllocatableResource.md new file mode 100644 index 0000000000..c267882335 --- /dev/null +++ b/kubernetes/aio/docs/V1beta1NodeAllocatableResource.md @@ -0,0 +1,29 @@ +# V1beta1NodeAllocatableResource + +NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mapping** | [**V1beta1NodeAllocatableMapping**](V1beta1NodeAllocatableMapping.md) | | [optional] +**overhead** | [**V1beta1NodeAllocatableOverhead**](V1beta1NodeAllocatableOverhead.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_node_allocatable_resource import V1beta1NodeAllocatableResource + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1NodeAllocatableResource from a JSON string +v1beta1_node_allocatable_resource_instance = V1beta1NodeAllocatableResource.from_json(json) +# print the JSON string representation of the object +print(V1beta1NodeAllocatableResource.to_json()) + +# convert the object into a dict +v1beta1_node_allocatable_resource_dict = v1beta1_node_allocatable_resource_instance.to_dict() +# create an instance of V1beta1NodeAllocatableResource from a dict +v1beta1_node_allocatable_resource_from_dict = V1beta1NodeAllocatableResource.from_dict(v1beta1_node_allocatable_resource_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1NodeAllocatableResourceMapping.md b/kubernetes/aio/docs/V1beta1NodeAllocatableResourceMapping.md deleted file mode 100644 index 0c47aca119..0000000000 --- a/kubernetes/aio/docs/V1beta1NodeAllocatableResourceMapping.md +++ /dev/null @@ -1,29 +0,0 @@ -# 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 ------------- | ------------- | ------------- | ------------- -**allocation_multiplier** | **str** | 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] -**capacity_key** | **str** | 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] - -## Example - -```python -from kubernetes.aio.client.models.v1beta1_node_allocatable_resource_mapping import V1beta1NodeAllocatableResourceMapping - -# TODO update the JSON string below -json = "{}" -# create an instance of V1beta1NodeAllocatableResourceMapping from a JSON string -v1beta1_node_allocatable_resource_mapping_instance = V1beta1NodeAllocatableResourceMapping.from_json(json) -# print the JSON string representation of the object -print(V1beta1NodeAllocatableResourceMapping.to_json()) - -# convert the object into a dict -v1beta1_node_allocatable_resource_mapping_dict = v1beta1_node_allocatable_resource_mapping_instance.to_dict() -# create an instance of V1beta1NodeAllocatableResourceMapping from a dict -v1beta1_node_allocatable_resource_mapping_from_dict = V1beta1NodeAllocatableResourceMapping.from_dict(v1beta1_node_allocatable_resource_mapping_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1ParentReference.md b/kubernetes/aio/docs/V1beta1ParentReference.md deleted file mode 100644 index 3d787dce2b..0000000000 --- a/kubernetes/aio/docs/V1beta1ParentReference.md +++ /dev/null @@ -1,31 +0,0 @@ -# V1beta1ParentReference - -ParentReference describes a reference to a parent object. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group** | **str** | Group is the group of the object being referenced. | [optional] -**name** | **str** | Name is the name of the object being referenced. | -**namespace** | **str** | Namespace is the namespace of the object being referenced. | [optional] -**resource** | **str** | Resource is the resource of the object being referenced. | - -## Example - -```python -from kubernetes.aio.client.models.v1beta1_parent_reference import V1beta1ParentReference - -# TODO update the JSON string below -json = "{}" -# create an instance of V1beta1ParentReference from a JSON string -v1beta1_parent_reference_instance = V1beta1ParentReference.from_json(json) -# print the JSON string representation of the object -print(V1beta1ParentReference.to_json()) - -# convert the object into a dict -v1beta1_parent_reference_dict = v1beta1_parent_reference_instance.to_dict() -# create an instance of V1beta1ParentReference from a dict -v1beta1_parent_reference_from_dict = V1beta1ParentReference.from_dict(v1beta1_parent_reference_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1ServiceCIDR.md b/kubernetes/aio/docs/V1beta1PodGroup.md similarity index 59% rename from kubernetes/docs/V1beta1ServiceCIDR.md rename to kubernetes/aio/docs/V1beta1PodGroup.md index ecc01c8c33..32d667e762 100644 --- a/kubernetes/docs/V1beta1ServiceCIDR.md +++ b/kubernetes/aio/docs/V1beta1PodGroup.md @@ -1,6 +1,6 @@ -# V1beta1ServiceCIDR +# V1beta1PodGroup -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. +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 @@ -9,24 +9,24 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1beta1ServiceCIDRSpec**](V1beta1ServiceCIDRSpec.md) | | [optional] -**status** | [**V1beta1ServiceCIDRStatus**](V1beta1ServiceCIDRStatus.md) | | [optional] +**spec** | [**V1beta1PodGroupSpec**](V1beta1PodGroupSpec.md) | | +**status** | [**V1beta1PodGroupStatus**](V1beta1PodGroupStatus.md) | | [optional] ## Example ```python -from kubernetes.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR +from kubernetes.aio.client.models.v1beta1_pod_group import V1beta1PodGroup # TODO update the JSON string below json = "{}" -# create an instance of V1beta1ServiceCIDR from a JSON string -v1beta1_service_cidr_instance = V1beta1ServiceCIDR.from_json(json) +# create an instance of V1beta1PodGroup from a JSON string +v1beta1_pod_group_instance = V1beta1PodGroup.from_json(json) # print the JSON string representation of the object -print(V1beta1ServiceCIDR.to_json()) +print(V1beta1PodGroup.to_json()) # convert the object into a dict -v1beta1_service_cidr_dict = v1beta1_service_cidr_instance.to_dict() -# create an instance of V1beta1ServiceCIDR from a dict -v1beta1_service_cidr_from_dict = V1beta1ServiceCIDR.from_dict(v1beta1_service_cidr_dict) +v1beta1_pod_group_dict = v1beta1_pod_group_instance.to_dict() +# create an instance of V1beta1PodGroup from a dict +v1beta1_pod_group_from_dict = V1beta1PodGroup.from_dict(v1beta1_pod_group_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1PodGroupList.md b/kubernetes/aio/docs/V1beta1PodGroupList.md new file mode 100644 index 0000000000..c16f3f3311 --- /dev/null +++ b/kubernetes/aio/docs/V1beta1PodGroupList.md @@ -0,0 +1,31 @@ +# V1beta1PodGroupList + +PodGroupList contains a list of PodGroup resources. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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[V1beta1PodGroup]**](V1beta1PodGroup.md) | Items is the list of PodGroups. | +**kind** | **str** | 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] + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_pod_group_list import V1beta1PodGroupList + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PodGroupList from a JSON string +v1beta1_pod_group_list_instance = V1beta1PodGroupList.from_json(json) +# print the JSON string representation of the object +print(V1beta1PodGroupList.to_json()) + +# convert the object into a dict +v1beta1_pod_group_list_dict = v1beta1_pod_group_list_instance.to_dict() +# create an instance of V1beta1PodGroupList from a dict +v1beta1_pod_group_list_from_dict = V1beta1PodGroupList.from_dict(v1beta1_pod_group_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1PodGroupResourceClaim.md b/kubernetes/aio/docs/V1beta1PodGroupResourceClaim.md new file mode 100644 index 0000000000..3f456b3290 --- /dev/null +++ b/kubernetes/aio/docs/V1beta1PodGroupResourceClaim.md @@ -0,0 +1,30 @@ +# V1beta1PodGroupResourceClaim + +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** | **str** | name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL. | +**resource_claim_name** | **str** | 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] +**resource_claim_template_name** | **str** | 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] + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_pod_group_resource_claim import V1beta1PodGroupResourceClaim + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PodGroupResourceClaim from a JSON string +v1beta1_pod_group_resource_claim_instance = V1beta1PodGroupResourceClaim.from_json(json) +# print the JSON string representation of the object +print(V1beta1PodGroupResourceClaim.to_json()) + +# convert the object into a dict +v1beta1_pod_group_resource_claim_dict = v1beta1_pod_group_resource_claim_instance.to_dict() +# create an instance of V1beta1PodGroupResourceClaim from a dict +v1beta1_pod_group_resource_claim_from_dict = V1beta1PodGroupResourceClaim.from_dict(v1beta1_pod_group_resource_claim_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1PodGroupResourceClaimStatus.md b/kubernetes/aio/docs/V1beta1PodGroupResourceClaimStatus.md new file mode 100644 index 0000000000..e83e2b3f2c --- /dev/null +++ b/kubernetes/aio/docs/V1beta1PodGroupResourceClaimStatus.md @@ -0,0 +1,29 @@ +# V1beta1PodGroupResourceClaimStatus + +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** | **str** | 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. | +**resource_claim_name** | **str** | 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] + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_pod_group_resource_claim_status import V1beta1PodGroupResourceClaimStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PodGroupResourceClaimStatus from a JSON string +v1beta1_pod_group_resource_claim_status_instance = V1beta1PodGroupResourceClaimStatus.from_json(json) +# print the JSON string representation of the object +print(V1beta1PodGroupResourceClaimStatus.to_json()) + +# convert the object into a dict +v1beta1_pod_group_resource_claim_status_dict = v1beta1_pod_group_resource_claim_status_instance.to_dict() +# create an instance of V1beta1PodGroupResourceClaimStatus from a dict +v1beta1_pod_group_resource_claim_status_from_dict = V1beta1PodGroupResourceClaimStatus.from_dict(v1beta1_pod_group_resource_claim_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1PodGroupSchedulingConstraints.md b/kubernetes/aio/docs/V1beta1PodGroupSchedulingConstraints.md new file mode 100644 index 0000000000..dede0f7ec1 --- /dev/null +++ b/kubernetes/aio/docs/V1beta1PodGroupSchedulingConstraints.md @@ -0,0 +1,28 @@ +# V1beta1PodGroupSchedulingConstraints + +PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**topology** | [**List[V1beta1TopologyConstraint]**](V1beta1TopologyConstraint.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] + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_pod_group_scheduling_constraints import V1beta1PodGroupSchedulingConstraints + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PodGroupSchedulingConstraints from a JSON string +v1beta1_pod_group_scheduling_constraints_instance = V1beta1PodGroupSchedulingConstraints.from_json(json) +# print the JSON string representation of the object +print(V1beta1PodGroupSchedulingConstraints.to_json()) + +# convert the object into a dict +v1beta1_pod_group_scheduling_constraints_dict = v1beta1_pod_group_scheduling_constraints_instance.to_dict() +# create an instance of V1beta1PodGroupSchedulingConstraints from a dict +v1beta1_pod_group_scheduling_constraints_from_dict = V1beta1PodGroupSchedulingConstraints.from_dict(v1beta1_pod_group_scheduling_constraints_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1PodGroupSchedulingPolicy.md b/kubernetes/aio/docs/V1beta1PodGroupSchedulingPolicy.md new file mode 100644 index 0000000000..cf598db2d8 --- /dev/null +++ b/kubernetes/aio/docs/V1beta1PodGroupSchedulingPolicy.md @@ -0,0 +1,29 @@ +# V1beta1PodGroupSchedulingPolicy + +PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**basic** | **object** | basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward. | [optional] +**gang** | [**V1beta1GangSchedulingPolicy**](V1beta1GangSchedulingPolicy.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_pod_group_scheduling_policy import V1beta1PodGroupSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PodGroupSchedulingPolicy from a JSON string +v1beta1_pod_group_scheduling_policy_instance = V1beta1PodGroupSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1beta1PodGroupSchedulingPolicy.to_json()) + +# convert the object into a dict +v1beta1_pod_group_scheduling_policy_dict = v1beta1_pod_group_scheduling_policy_instance.to_dict() +# create an instance of V1beta1PodGroupSchedulingPolicy from a dict +v1beta1_pod_group_scheduling_policy_from_dict = V1beta1PodGroupSchedulingPolicy.from_dict(v1beta1_pod_group_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1PodGroupSpec.md b/kubernetes/aio/docs/V1beta1PodGroupSpec.md new file mode 100644 index 0000000000..fbeab23a36 --- /dev/null +++ b/kubernetes/aio/docs/V1beta1PodGroupSpec.md @@ -0,0 +1,36 @@ +# V1beta1PodGroupSpec + +PodGroupSpec defines the desired state of a PodGroup. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disruption_mode** | [**V1beta1DisruptionMode**](V1beta1DisruptionMode.md) | | [optional] +**parent_composite_pod_group_name** | **str** | parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable. | [optional] +**preemption_policy** | **str** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] +**priority** | **int** | 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. | [optional] +**priority_class_name** | **str** | 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. | [optional] +**resource_claims** | [**List[V1beta1PodGroupResourceClaim]**](V1beta1PodGroupResourceClaim.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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. | [optional] +**scheduling_constraints** | [**V1beta1PodGroupSchedulingConstraints**](V1beta1PodGroupSchedulingConstraints.md) | | [optional] +**scheduling_policy** | [**V1beta1PodGroupSchedulingPolicy**](V1beta1PodGroupSchedulingPolicy.md) | | +**workload_ref** | [**V1beta1WorkloadReference**](V1beta1WorkloadReference.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_pod_group_spec import V1beta1PodGroupSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PodGroupSpec from a JSON string +v1beta1_pod_group_spec_instance = V1beta1PodGroupSpec.from_json(json) +# print the JSON string representation of the object +print(V1beta1PodGroupSpec.to_json()) + +# convert the object into a dict +v1beta1_pod_group_spec_dict = v1beta1_pod_group_spec_instance.to_dict() +# create an instance of V1beta1PodGroupSpec from a dict +v1beta1_pod_group_spec_from_dict = V1beta1PodGroupSpec.from_dict(v1beta1_pod_group_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1PodGroupStatus.md b/kubernetes/aio/docs/V1beta1PodGroupStatus.md new file mode 100644 index 0000000000..961bb9e098 --- /dev/null +++ b/kubernetes/aio/docs/V1beta1PodGroupStatus.md @@ -0,0 +1,29 @@ +# V1beta1PodGroupStatus + +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: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupInitiallyScheduled 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] +**resource_claim_statuses** | [**List[V1beta1PodGroupResourceClaimStatus]**](V1beta1PodGroupResourceClaimStatus.md) | resourceClaimStatuses is status of resource claims. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_pod_group_status import V1beta1PodGroupStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PodGroupStatus from a JSON string +v1beta1_pod_group_status_instance = V1beta1PodGroupStatus.from_json(json) +# print the JSON string representation of the object +print(V1beta1PodGroupStatus.to_json()) + +# convert the object into a dict +v1beta1_pod_group_status_dict = v1beta1_pod_group_status_instance.to_dict() +# create an instance of V1beta1PodGroupStatus from a dict +v1beta1_pod_group_status_from_dict = V1beta1PodGroupStatus.from_dict(v1beta1_pod_group_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1PodGroupTemplate.md b/kubernetes/aio/docs/V1beta1PodGroupTemplate.md new file mode 100644 index 0000000000..bc269da8d3 --- /dev/null +++ b/kubernetes/aio/docs/V1beta1PodGroupTemplate.md @@ -0,0 +1,35 @@ +# V1beta1PodGroupTemplate + +PodGroupTemplate represents a template for a set of pods with a scheduling policy. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disruption_mode** | [**V1beta1DisruptionMode**](V1beta1DisruptionMode.md) | | [optional] +**name** | **str** | name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable. | +**preemption_policy** | **str** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] +**priority** | **int** | 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. The higher the value, the higher the priority. This field is immutable. | [optional] +**priority_class_name** | **str** | priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable. | [optional] +**resource_claims** | [**List[V1beta1PodGroupResourceClaim]**](V1beta1PodGroupResourceClaim.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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. | [optional] +**scheduling_constraints** | [**V1beta1PodGroupSchedulingConstraints**](V1beta1PodGroupSchedulingConstraints.md) | | [optional] +**scheduling_policy** | [**V1beta1PodGroupSchedulingPolicy**](V1beta1PodGroupSchedulingPolicy.md) | | + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_pod_group_template import V1beta1PodGroupTemplate + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PodGroupTemplate from a JSON string +v1beta1_pod_group_template_instance = V1beta1PodGroupTemplate.from_json(json) +# print the JSON string representation of the object +print(V1beta1PodGroupTemplate.to_json()) + +# convert the object into a dict +v1beta1_pod_group_template_dict = v1beta1_pod_group_template_instance.to_dict() +# create an instance of V1beta1PodGroupTemplate from a dict +v1beta1_pod_group_template_from_dict = V1beta1PodGroupTemplate.from_dict(v1beta1_pod_group_template_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1ResourceClaim.md b/kubernetes/aio/docs/V1beta1ResourceClaim.md index 04533a7ba8..bb9fb3d3be 100644 --- a/kubernetes/aio/docs/V1beta1ResourceClaim.md +++ b/kubernetes/aio/docs/V1beta1ResourceClaim.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1beta1ResourceClaimSpec**](V1beta1ResourceClaimSpec.md) | | +**spec** | [**V1beta1ResourceClaimSpec**](V1beta1ResourceClaimSpec.md) | | [optional] **status** | [**V1beta1ResourceClaimStatus**](V1beta1ResourceClaimStatus.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1beta1ResourceClaimTemplate.md b/kubernetes/aio/docs/V1beta1ResourceClaimTemplate.md index d324fd96ba..458bad5c11 100644 --- a/kubernetes/aio/docs/V1beta1ResourceClaimTemplate.md +++ b/kubernetes/aio/docs/V1beta1ResourceClaimTemplate.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1beta1ResourceClaimTemplateSpec**](V1beta1ResourceClaimTemplateSpec.md) | | +**spec** | [**V1beta1ResourceClaimTemplateSpec**](V1beta1ResourceClaimTemplateSpec.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1beta1ResourceClaimTemplateSpec.md b/kubernetes/aio/docs/V1beta1ResourceClaimTemplateSpec.md index d6bf1a46b9..44f419561f 100644 --- a/kubernetes/aio/docs/V1beta1ResourceClaimTemplateSpec.md +++ b/kubernetes/aio/docs/V1beta1ResourceClaimTemplateSpec.md @@ -7,7 +7,7 @@ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1ResourceClaimSpec**](V1beta1ResourceClaimSpec.md) | | +**spec** | [**V1beta1ResourceClaimSpec**](V1beta1ResourceClaimSpec.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1beta1ResourcePool.md b/kubernetes/aio/docs/V1beta1ResourcePool.md index c7a824fa04..a76524a1df 100644 --- a/kubernetes/aio/docs/V1beta1ResourcePool.md +++ b/kubernetes/aio/docs/V1beta1ResourcePool.md @@ -7,7 +7,7 @@ ResourcePool describes the pool that ResourceSlices belong to. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **generation** | **int** | 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. | -**name** | **str** | 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. | +**name** | **str** | Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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. | **resource_slice_count** | **int** | 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. | ## Example diff --git a/kubernetes/aio/docs/V1beta1ResourceSliceSpec.md b/kubernetes/aio/docs/V1beta1ResourceSliceSpec.md index 9c7ebe0028..48666e6b2e 100644 --- a/kubernetes/aio/docs/V1beta1ResourceSliceSpec.md +++ b/kubernetes/aio/docs/V1beta1ResourceSliceSpec.md @@ -11,9 +11,11 @@ Name | Type | Description | Notes **driver** | **str** | 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. | **node_name** | **str** | 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] **node_selector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] +**partition_type_attribute** | **str** | PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost. | [optional] **per_device_node_selection** | **bool** | 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] **pool** | [**V1beta1ResourcePool**](V1beta1ResourcePool.md) | | **shared_counters** | [**List[V1beta1CounterSet]**](V1beta1CounterSet.md) | 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] +**skip_node_operations** | **List[str]** | SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1beta1ServiceCIDRSpec.md b/kubernetes/aio/docs/V1beta1ServiceCIDRSpec.md deleted file mode 100644 index 66ac61e89c..0000000000 --- a/kubernetes/aio/docs/V1beta1ServiceCIDRSpec.md +++ /dev/null @@ -1,28 +0,0 @@ -# V1beta1ServiceCIDRSpec - -ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cidrs** | **List[str]** | CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable. | [optional] - -## Example - -```python -from kubernetes.aio.client.models.v1beta1_service_cidr_spec import V1beta1ServiceCIDRSpec - -# TODO update the JSON string below -json = "{}" -# create an instance of V1beta1ServiceCIDRSpec from a JSON string -v1beta1_service_cidr_spec_instance = V1beta1ServiceCIDRSpec.from_json(json) -# print the JSON string representation of the object -print(V1beta1ServiceCIDRSpec.to_json()) - -# convert the object into a dict -v1beta1_service_cidr_spec_dict = v1beta1_service_cidr_spec_instance.to_dict() -# create an instance of V1beta1ServiceCIDRSpec from a dict -v1beta1_service_cidr_spec_from_dict = V1beta1ServiceCIDRSpec.from_dict(v1beta1_service_cidr_spec_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1ServiceCIDRStatus.md b/kubernetes/aio/docs/V1beta1ServiceCIDRStatus.md deleted file mode 100644 index 3d59a6cb8f..0000000000 --- a/kubernetes/aio/docs/V1beta1ServiceCIDRStatus.md +++ /dev/null @@ -1,28 +0,0 @@ -# V1beta1ServiceCIDRStatus - -ServiceCIDRStatus describes the current state of the ServiceCIDR. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List[V1Condition]**](V1Condition.md) | conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state | [optional] - -## Example - -```python -from kubernetes.aio.client.models.v1beta1_service_cidr_status import V1beta1ServiceCIDRStatus - -# TODO update the JSON string below -json = "{}" -# create an instance of V1beta1ServiceCIDRStatus from a JSON string -v1beta1_service_cidr_status_instance = V1beta1ServiceCIDRStatus.from_json(json) -# print the JSON string representation of the object -print(V1beta1ServiceCIDRStatus.to_json()) - -# convert the object into a dict -v1beta1_service_cidr_status_dict = v1beta1_service_cidr_status_instance.to_dict() -# create an instance of V1beta1ServiceCIDRStatus from a dict -v1beta1_service_cidr_status_from_dict = V1beta1ServiceCIDRStatus.from_dict(v1beta1_service_cidr_status_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1TopologyConstraint.md b/kubernetes/aio/docs/V1beta1TopologyConstraint.md new file mode 100644 index 0000000000..198f8e5e24 --- /dev/null +++ b/kubernetes/aio/docs/V1beta1TopologyConstraint.md @@ -0,0 +1,28 @@ +# V1beta1TopologyConstraint + +TopologyConstraint defines a topology constraint for a PodGroup. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **str** | 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\" | + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_topology_constraint import V1beta1TopologyConstraint + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1TopologyConstraint from a JSON string +v1beta1_topology_constraint_instance = V1beta1TopologyConstraint.from_json(json) +# print the JSON string representation of the object +print(V1beta1TopologyConstraint.to_json()) + +# convert the object into a dict +v1beta1_topology_constraint_dict = v1beta1_topology_constraint_instance.to_dict() +# create an instance of V1beta1TopologyConstraint from a dict +v1beta1_topology_constraint_from_dict = V1beta1TopologyConstraint.from_dict(v1beta1_topology_constraint_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1TypedLocalObjectReference.md b/kubernetes/aio/docs/V1beta1TypedLocalObjectReference.md new file mode 100644 index 0000000000..3280cb7a3a --- /dev/null +++ b/kubernetes/aio/docs/V1beta1TypedLocalObjectReference.md @@ -0,0 +1,30 @@ +# V1beta1TypedLocalObjectReference + +TypedLocalObjectReference allows to reference typed object inside the same namespace. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_group** | **str** | apiGroup is the group for the resource being referenced. If apiGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting apiGroup is required. It must be a DNS subdomain. | [optional] +**kind** | **str** | kind is the type of resource being referenced. It must be a path segment name. | +**name** | **str** | name is the name of resource being referenced. It must be a path segment name. | + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_typed_local_object_reference import V1beta1TypedLocalObjectReference + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1TypedLocalObjectReference from a JSON string +v1beta1_typed_local_object_reference_instance = V1beta1TypedLocalObjectReference.from_json(json) +# print the JSON string representation of the object +print(V1beta1TypedLocalObjectReference.to_json()) + +# convert the object into a dict +v1beta1_typed_local_object_reference_dict = v1beta1_typed_local_object_reference_instance.to_dict() +# create an instance of V1beta1TypedLocalObjectReference from a dict +v1beta1_typed_local_object_reference_from_dict = V1beta1TypedLocalObjectReference.from_dict(v1beta1_typed_local_object_reference_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1VolumeAttributesClass.md b/kubernetes/aio/docs/V1beta1VolumeAttributesClass.md deleted file mode 100644 index 2407be7514..0000000000 --- a/kubernetes/aio/docs/V1beta1VolumeAttributesClass.md +++ /dev/null @@ -1,32 +0,0 @@ -# V1beta1VolumeAttributesClass - -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. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | 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] -**driver_name** | **str** | Name of the CSI driver This field is immutable. | -**kind** | **str** | 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] -**parameters** | **Dict[str, str]** | parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field. | [optional] - -## Example - -```python -from kubernetes.aio.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass - -# TODO update the JSON string below -json = "{}" -# create an instance of V1beta1VolumeAttributesClass from a JSON string -v1beta1_volume_attributes_class_instance = V1beta1VolumeAttributesClass.from_json(json) -# print the JSON string representation of the object -print(V1beta1VolumeAttributesClass.to_json()) - -# convert the object into a dict -v1beta1_volume_attributes_class_dict = v1beta1_volume_attributes_class_instance.to_dict() -# create an instance of V1beta1VolumeAttributesClass from a dict -v1beta1_volume_attributes_class_from_dict = V1beta1VolumeAttributesClass.from_dict(v1beta1_volume_attributes_class_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1VolumeAttributesClassList.md b/kubernetes/aio/docs/V1beta1VolumeAttributesClassList.md deleted file mode 100644 index 7a513f9e58..0000000000 --- a/kubernetes/aio/docs/V1beta1VolumeAttributesClassList.md +++ /dev/null @@ -1,31 +0,0 @@ -# V1beta1VolumeAttributesClassList - -VolumeAttributesClassList is a collection of VolumeAttributesClass objects. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | 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[V1beta1VolumeAttributesClass]**](V1beta1VolumeAttributesClass.md) | items is the list of VolumeAttributesClass objects. | -**kind** | **str** | 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] - -## Example - -```python -from kubernetes.aio.client.models.v1beta1_volume_attributes_class_list import V1beta1VolumeAttributesClassList - -# TODO update the JSON string below -json = "{}" -# create an instance of V1beta1VolumeAttributesClassList from a JSON string -v1beta1_volume_attributes_class_list_instance = V1beta1VolumeAttributesClassList.from_json(json) -# print the JSON string representation of the object -print(V1beta1VolumeAttributesClassList.to_json()) - -# convert the object into a dict -v1beta1_volume_attributes_class_list_dict = v1beta1_volume_attributes_class_list_instance.to_dict() -# create an instance of V1beta1VolumeAttributesClassList from a dict -v1beta1_volume_attributes_class_list_from_dict = V1beta1VolumeAttributesClassList.from_dict(v1beta1_volume_attributes_class_list_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1Workload.md b/kubernetes/aio/docs/V1beta1Workload.md new file mode 100644 index 0000000000..9e1d6e595f --- /dev/null +++ b/kubernetes/aio/docs/V1beta1Workload.md @@ -0,0 +1,31 @@ +# V1beta1Workload + +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 + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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** | **str** | 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** | [**V1beta1WorkloadSpec**](V1beta1WorkloadSpec.md) | | + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_workload import V1beta1Workload + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Workload from a JSON string +v1beta1_workload_instance = V1beta1Workload.from_json(json) +# print the JSON string representation of the object +print(V1beta1Workload.to_json()) + +# convert the object into a dict +v1beta1_workload_dict = v1beta1_workload_instance.to_dict() +# create an instance of V1beta1Workload from a dict +v1beta1_workload_from_dict = V1beta1Workload.from_dict(v1beta1_workload_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1IPAddressList.md b/kubernetes/aio/docs/V1beta1WorkloadList.md similarity index 63% rename from kubernetes/docs/V1beta1IPAddressList.md rename to kubernetes/aio/docs/V1beta1WorkloadList.md index ffbcd2ab06..9faaa69aa2 100644 --- a/kubernetes/docs/V1beta1IPAddressList.md +++ b/kubernetes/aio/docs/V1beta1WorkloadList.md @@ -1,31 +1,31 @@ -# V1beta1IPAddressList +# V1beta1WorkloadList -IPAddressList contains a list of IPAddress. +WorkloadList contains a list of Workload resources. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | 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[V1beta1IPAddress]**](V1beta1IPAddress.md) | items is the list of IPAddresses. | +**items** | [**List[V1beta1Workload]**](V1beta1Workload.md) | items is the list of Workloads. | **kind** | **str** | 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] ## Example ```python -from kubernetes.client.models.v1beta1_ip_address_list import V1beta1IPAddressList +from kubernetes.aio.client.models.v1beta1_workload_list import V1beta1WorkloadList # TODO update the JSON string below json = "{}" -# create an instance of V1beta1IPAddressList from a JSON string -v1beta1_ip_address_list_instance = V1beta1IPAddressList.from_json(json) +# create an instance of V1beta1WorkloadList from a JSON string +v1beta1_workload_list_instance = V1beta1WorkloadList.from_json(json) # print the JSON string representation of the object -print(V1beta1IPAddressList.to_json()) +print(V1beta1WorkloadList.to_json()) # convert the object into a dict -v1beta1_ip_address_list_dict = v1beta1_ip_address_list_instance.to_dict() -# create an instance of V1beta1IPAddressList from a dict -v1beta1_ip_address_list_from_dict = V1beta1IPAddressList.from_dict(v1beta1_ip_address_list_dict) +v1beta1_workload_list_dict = v1beta1_workload_list_instance.to_dict() +# create an instance of V1beta1WorkloadList from a dict +v1beta1_workload_list_from_dict = V1beta1WorkloadList.from_dict(v1beta1_workload_list_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1WorkloadReference.md b/kubernetes/aio/docs/V1beta1WorkloadReference.md new file mode 100644 index 0000000000..420da260dc --- /dev/null +++ b/kubernetes/aio/docs/V1beta1WorkloadReference.md @@ -0,0 +1,29 @@ +# V1beta1WorkloadReference + +WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**template_name** | **str** | templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required. | +**workload_name** | **str** | workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required. | + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_workload_reference import V1beta1WorkloadReference + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1WorkloadReference from a JSON string +v1beta1_workload_reference_instance = V1beta1WorkloadReference.from_json(json) +# print the JSON string representation of the object +print(V1beta1WorkloadReference.to_json()) + +# convert the object into a dict +v1beta1_workload_reference_dict = v1beta1_workload_reference_instance.to_dict() +# create an instance of V1beta1WorkloadReference from a dict +v1beta1_workload_reference_from_dict = V1beta1WorkloadReference.from_dict(v1beta1_workload_reference_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1WorkloadSpec.md b/kubernetes/aio/docs/V1beta1WorkloadSpec.md new file mode 100644 index 0000000000..0e4fc8ac53 --- /dev/null +++ b/kubernetes/aio/docs/V1beta1WorkloadSpec.md @@ -0,0 +1,30 @@ +# V1beta1WorkloadSpec + +WorkloadSpec defines the desired state of a Workload. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**composite_pod_group_templates** | [**List[V1beta1CompositePodGroupTemplate]**](V1beta1CompositePodGroupTemplate.md) | compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. This field is used only when the CompositePodGroup feature gate is enabled. | [optional] +**controller_ref** | [**V1beta1TypedLocalObjectReference**](V1beta1TypedLocalObjectReference.md) | | [optional] +**pod_group_templates** | [**List[V1beta1PodGroupTemplate]**](V1beta1PodGroupTemplate.md) | podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1beta1_workload_spec import V1beta1WorkloadSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1WorkloadSpec from a JSON string +v1beta1_workload_spec_instance = V1beta1WorkloadSpec.from_json(json) +# print the JSON string representation of the object +print(V1beta1WorkloadSpec.to_json()) + +# convert the object into a dict +v1beta1_workload_spec_dict = v1beta1_workload_spec_instance.to_dict() +# create an instance of V1beta1WorkloadSpec from a dict +v1beta1_workload_spec_from_dict = V1beta1WorkloadSpec.from_dict(v1beta1_workload_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta2CELDeviceSelector.md b/kubernetes/aio/docs/V1beta2CELDeviceSelector.md index e56f5c9728..af190c7240 100644 --- a/kubernetes/aio/docs/V1beta2CELDeviceSelector.md +++ b/kubernetes/aio/docs/V1beta2CELDeviceSelector.md @@ -6,7 +6,7 @@ CELDeviceSelector contains a CEL expression for selecting a device. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**expression** | **str** | 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. | +**expression** | **str** | 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. | ## Example diff --git a/kubernetes/aio/docs/V1beta2CapacityRequestPolicyRange.md b/kubernetes/aio/docs/V1beta2CapacityRequestPolicyRange.md index 495cc30edd..c109cc7b90 100644 --- a/kubernetes/aio/docs/V1beta2CapacityRequestPolicyRange.md +++ b/kubernetes/aio/docs/V1beta2CapacityRequestPolicyRange.md @@ -1,6 +1,6 @@ # V1beta2CapacityRequestPolicyRange -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. +CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - 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. ## Properties diff --git a/kubernetes/aio/docs/V1beta2Device.md b/kubernetes/aio/docs/V1beta2Device.md index 520451bded..c7fadf02dd 100644 --- a/kubernetes/aio/docs/V1beta2Device.md +++ b/kubernetes/aio/docs/V1beta2Device.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **capacity** | [**Dict[str, 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] **consumes_counters** | [**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** | **str** | Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. | -**node_allocatable_resource_mappings** | [**Dict[str, 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] +**node_allocatable_resources** | [**Dict[str, V1beta2NodeAllocatableResource]**](V1beta2NodeAllocatableResource.md) | NodeAllocatableResources 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] **node_name** | **str** | 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] **node_selector** | [**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 a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] diff --git a/kubernetes/aio/docs/V1beta2DeviceClass.md b/kubernetes/aio/docs/V1beta2DeviceClass.md index be0f8795d7..410e079637 100644 --- a/kubernetes/aio/docs/V1beta2DeviceClass.md +++ b/kubernetes/aio/docs/V1beta2DeviceClass.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1beta2DeviceClassSpec**](V1beta2DeviceClassSpec.md) | | +**spec** | [**V1beta2DeviceClassSpec**](V1beta2DeviceClassSpec.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1beta2DeviceClassSpec.md b/kubernetes/aio/docs/V1beta2DeviceClassSpec.md index 4bb5994a63..2def0b6e7a 100644 --- a/kubernetes/aio/docs/V1beta2DeviceClassSpec.md +++ b/kubernetes/aio/docs/V1beta2DeviceClassSpec.md @@ -7,7 +7,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] -**extended_resource_name** | **str** | 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] +**extended_resource_name** | **str** | 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] **selectors** | [**List[V1beta2DeviceSelector]**](V1beta2DeviceSelector.md) | Each selector must be satisfied by a device which is claimed via this class. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1beta2DeviceCounterConsumption.md b/kubernetes/aio/docs/V1beta2DeviceCounterConsumption.md index f9b23c71bc..34eb0b1694 100644 --- a/kubernetes/aio/docs/V1beta2DeviceCounterConsumption.md +++ b/kubernetes/aio/docs/V1beta2DeviceCounterConsumption.md @@ -6,6 +6,7 @@ DeviceCounterConsumption defines a set of counters that a device will consume fr Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**compatibility_groups** | **List[str]** | CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique. | [optional] **counter_set** | **str** | CounterSet is the name of the set from which the counters defined will be consumed. | **counters** | [**Dict[str, V1beta2Counter]**](V1beta2Counter.md) | Counters defines the counters that will be consumed by the device. The maximum number of counters is 32. | diff --git a/kubernetes/aio/docs/V1beta2DeviceDerivedAttribute.md b/kubernetes/aio/docs/V1beta2DeviceDerivedAttribute.md new file mode 100644 index 0000000000..67f7a70583 --- /dev/null +++ b/kubernetes/aio/docs/V1beta2DeviceDerivedAttribute.md @@ -0,0 +1,29 @@ +# V1beta2DeviceDerivedAttribute + +DeviceDerivedAttribute defines a derived attribute computed via CEL. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expression** | **str** | Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget. | +**name** | **str** | Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint. | + +## Example + +```python +from kubernetes.aio.client.models.v1beta2_device_derived_attribute import V1beta2DeviceDerivedAttribute + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta2DeviceDerivedAttribute from a JSON string +v1beta2_device_derived_attribute_instance = V1beta2DeviceDerivedAttribute.from_json(json) +# print the JSON string representation of the object +print(V1beta2DeviceDerivedAttribute.to_json()) + +# convert the object into a dict +v1beta2_device_derived_attribute_dict = v1beta2_device_derived_attribute_instance.to_dict() +# create an instance of V1beta2DeviceDerivedAttribute from a dict +v1beta2_device_derived_attribute_from_dict = V1beta2DeviceDerivedAttribute.from_dict(v1beta2_device_derived_attribute_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta2DeviceRequestAllocationResult.md b/kubernetes/aio/docs/V1beta2DeviceRequestAllocationResult.md index 7dfbb85dba..aaaec08933 100644 --- a/kubernetes/aio/docs/V1beta2DeviceRequestAllocationResult.md +++ b/kubernetes/aio/docs/V1beta2DeviceRequestAllocationResult.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **pool** | **str** | 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** | **str** | 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. | **share_id** | **str** | 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] +**skip_node_operations** | **List[str]** | SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated. | [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] ## Example diff --git a/kubernetes/aio/docs/V1beta2DeviceSubRequest.md b/kubernetes/aio/docs/V1beta2DeviceSubRequest.md index d7475e8160..7bbed7f4e3 100644 --- a/kubernetes/aio/docs/V1beta2DeviceSubRequest.md +++ b/kubernetes/aio/docs/V1beta2DeviceSubRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **allocation_mode** | **str** | 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] **capacity** | [**V1beta2CapacityRequirements**](V1beta2CapacityRequirements.md) | | [optional] **count** | **int** | 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] +**derived_attributes** | [**List[V1beta2DeviceDerivedAttribute]**](V1beta2DeviceDerivedAttribute.md) | DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. | [optional] **device_class_name** | **str** | 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** | **str** | 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] diff --git a/kubernetes/aio/docs/V1beta2ExactDeviceRequest.md b/kubernetes/aio/docs/V1beta2ExactDeviceRequest.md index ee347927af..8c594bf015 100644 --- a/kubernetes/aio/docs/V1beta2ExactDeviceRequest.md +++ b/kubernetes/aio/docs/V1beta2ExactDeviceRequest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **allocation_mode** | **str** | 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** | [**V1beta2CapacityRequirements**](V1beta2CapacityRequirements.md) | | [optional] **count** | **int** | 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] +**derived_attributes** | [**List[V1beta2DeviceDerivedAttribute]**](V1beta2DeviceDerivedAttribute.md) | DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. | [optional] **device_class_name** | **str** | 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 a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] diff --git a/kubernetes/aio/docs/V1beta2NodeAllocatableMapping.md b/kubernetes/aio/docs/V1beta2NodeAllocatableMapping.md new file mode 100644 index 0000000000..290dd1dc36 --- /dev/null +++ b/kubernetes/aio/docs/V1beta2NodeAllocatableMapping.md @@ -0,0 +1,30 @@ +# V1beta2NodeAllocatableMapping + +NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capacity_key** | **str** | 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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. | [optional] +**capacity_multiplier** | **str** | CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16. | [optional] +**device_multiplier** | **str** | DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1beta2_node_allocatable_mapping import V1beta2NodeAllocatableMapping + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta2NodeAllocatableMapping from a JSON string +v1beta2_node_allocatable_mapping_instance = V1beta2NodeAllocatableMapping.from_json(json) +# print the JSON string representation of the object +print(V1beta2NodeAllocatableMapping.to_json()) + +# convert the object into a dict +v1beta2_node_allocatable_mapping_dict = v1beta2_node_allocatable_mapping_instance.to_dict() +# create an instance of V1beta2NodeAllocatableMapping from a dict +v1beta2_node_allocatable_mapping_from_dict = V1beta2NodeAllocatableMapping.from_dict(v1beta2_node_allocatable_mapping_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta2NodeAllocatableOverhead.md b/kubernetes/aio/docs/V1beta2NodeAllocatableOverhead.md new file mode 100644 index 0000000000..87326817a8 --- /dev/null +++ b/kubernetes/aio/docs/V1beta2NodeAllocatableOverhead.md @@ -0,0 +1,29 @@ +# V1beta2NodeAllocatableOverhead + +NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per_container** | **str** | PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once. | [optional] +**per_pod** | **str** | PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim. | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1beta2_node_allocatable_overhead import V1beta2NodeAllocatableOverhead + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta2NodeAllocatableOverhead from a JSON string +v1beta2_node_allocatable_overhead_instance = V1beta2NodeAllocatableOverhead.from_json(json) +# print the JSON string representation of the object +print(V1beta2NodeAllocatableOverhead.to_json()) + +# convert the object into a dict +v1beta2_node_allocatable_overhead_dict = v1beta2_node_allocatable_overhead_instance.to_dict() +# create an instance of V1beta2NodeAllocatableOverhead from a dict +v1beta2_node_allocatable_overhead_from_dict = V1beta2NodeAllocatableOverhead.from_dict(v1beta2_node_allocatable_overhead_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta2NodeAllocatableResource.md b/kubernetes/aio/docs/V1beta2NodeAllocatableResource.md new file mode 100644 index 0000000000..552e5467a7 --- /dev/null +++ b/kubernetes/aio/docs/V1beta2NodeAllocatableResource.md @@ -0,0 +1,29 @@ +# V1beta2NodeAllocatableResource + +NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mapping** | [**V1beta2NodeAllocatableMapping**](V1beta2NodeAllocatableMapping.md) | | [optional] +**overhead** | [**V1beta2NodeAllocatableOverhead**](V1beta2NodeAllocatableOverhead.md) | | [optional] + +## Example + +```python +from kubernetes.aio.client.models.v1beta2_node_allocatable_resource import V1beta2NodeAllocatableResource + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta2NodeAllocatableResource from a JSON string +v1beta2_node_allocatable_resource_instance = V1beta2NodeAllocatableResource.from_json(json) +# print the JSON string representation of the object +print(V1beta2NodeAllocatableResource.to_json()) + +# convert the object into a dict +v1beta2_node_allocatable_resource_dict = v1beta2_node_allocatable_resource_instance.to_dict() +# create an instance of V1beta2NodeAllocatableResource from a dict +v1beta2_node_allocatable_resource_from_dict = V1beta2NodeAllocatableResource.from_dict(v1beta2_node_allocatable_resource_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta2NodeAllocatableResourceMapping.md b/kubernetes/aio/docs/V1beta2NodeAllocatableResourceMapping.md deleted file mode 100644 index 1c4962ffee..0000000000 --- a/kubernetes/aio/docs/V1beta2NodeAllocatableResourceMapping.md +++ /dev/null @@ -1,29 +0,0 @@ -# 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 ------------- | ------------- | ------------- | ------------- -**allocation_multiplier** | **str** | 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] -**capacity_key** | **str** | 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] - -## Example - -```python -from kubernetes.aio.client.models.v1beta2_node_allocatable_resource_mapping import V1beta2NodeAllocatableResourceMapping - -# TODO update the JSON string below -json = "{}" -# create an instance of V1beta2NodeAllocatableResourceMapping from a JSON string -v1beta2_node_allocatable_resource_mapping_instance = V1beta2NodeAllocatableResourceMapping.from_json(json) -# print the JSON string representation of the object -print(V1beta2NodeAllocatableResourceMapping.to_json()) - -# convert the object into a dict -v1beta2_node_allocatable_resource_mapping_dict = v1beta2_node_allocatable_resource_mapping_instance.to_dict() -# create an instance of V1beta2NodeAllocatableResourceMapping from a dict -v1beta2_node_allocatable_resource_mapping_from_dict = V1beta2NodeAllocatableResourceMapping.from_dict(v1beta2_node_allocatable_resource_mapping_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta2ResourceClaim.md b/kubernetes/aio/docs/V1beta2ResourceClaim.md index 9245dc3ea2..90ca1e775b 100644 --- a/kubernetes/aio/docs/V1beta2ResourceClaim.md +++ b/kubernetes/aio/docs/V1beta2ResourceClaim.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1beta2ResourceClaimSpec**](V1beta2ResourceClaimSpec.md) | | +**spec** | [**V1beta2ResourceClaimSpec**](V1beta2ResourceClaimSpec.md) | | [optional] **status** | [**V1beta2ResourceClaimStatus**](V1beta2ResourceClaimStatus.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1beta2ResourceClaimTemplate.md b/kubernetes/aio/docs/V1beta2ResourceClaimTemplate.md index 442372f206..e0b46f0355 100644 --- a/kubernetes/aio/docs/V1beta2ResourceClaimTemplate.md +++ b/kubernetes/aio/docs/V1beta2ResourceClaimTemplate.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1beta2ResourceClaimTemplateSpec**](V1beta2ResourceClaimTemplateSpec.md) | | +**spec** | [**V1beta2ResourceClaimTemplateSpec**](V1beta2ResourceClaimTemplateSpec.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1beta2ResourceClaimTemplateSpec.md b/kubernetes/aio/docs/V1beta2ResourceClaimTemplateSpec.md index 3d38857a51..74b58833f4 100644 --- a/kubernetes/aio/docs/V1beta2ResourceClaimTemplateSpec.md +++ b/kubernetes/aio/docs/V1beta2ResourceClaimTemplateSpec.md @@ -7,7 +7,7 @@ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta2ResourceClaimSpec**](V1beta2ResourceClaimSpec.md) | | +**spec** | [**V1beta2ResourceClaimSpec**](V1beta2ResourceClaimSpec.md) | | [optional] ## Example diff --git a/kubernetes/aio/docs/V1beta2ResourcePool.md b/kubernetes/aio/docs/V1beta2ResourcePool.md index b8c76bf85b..102d31daf5 100644 --- a/kubernetes/aio/docs/V1beta2ResourcePool.md +++ b/kubernetes/aio/docs/V1beta2ResourcePool.md @@ -7,7 +7,7 @@ ResourcePool describes the pool that ResourceSlices belong to. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **generation** | **int** | 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. | -**name** | **str** | 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. | +**name** | **str** | Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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. | **resource_slice_count** | **int** | 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. | ## Example diff --git a/kubernetes/aio/docs/V1beta2ResourceSliceSpec.md b/kubernetes/aio/docs/V1beta2ResourceSliceSpec.md index cb8470954e..87fb439469 100644 --- a/kubernetes/aio/docs/V1beta2ResourceSliceSpec.md +++ b/kubernetes/aio/docs/V1beta2ResourceSliceSpec.md @@ -11,9 +11,11 @@ Name | Type | Description | Notes **driver** | **str** | 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. | **node_name** | **str** | 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] **node_selector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] +**partition_type_attribute** | **str** | PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost. | [optional] **per_device_node_selection** | **bool** | 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] **pool** | [**V1beta2ResourcePool**](V1beta2ResourcePool.md) | | **shared_counters** | [**List[V1beta2CounterSet]**](V1beta2CounterSet.md) | 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] +**skip_node_operations** | **List[str]** | SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values. | [optional] ## Example diff --git a/kubernetes/aio/docs/V2HPAScalingRules.md b/kubernetes/aio/docs/V2HPAScalingRules.md index 7e6ad7c03e..ccfc161ab6 100644 --- a/kubernetes/aio/docs/V2HPAScalingRules.md +++ b/kubernetes/aio/docs/V2HPAScalingRules.md @@ -1,6 +1,6 @@ # V2HPAScalingRules -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.) +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. ## Properties @@ -9,7 +9,7 @@ Name | Type | Description | Notes **policies** | [**List[V2HPAScalingPolicy]**](V2HPAScalingPolicy.md) | policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window. | [optional] **select_policy** | **str** | selectPolicy is used to specify which policy should be used. If not set, the default value Max is used. | [optional] **stabilization_window_seconds** | **int** | stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). | [optional] -**tolerance** | **str** | tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%). For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi. This is an beta field and requires the HPAConfigurableTolerance feature gate to be enabled. | [optional] +**tolerance** | **str** | tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%). For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi. | [optional] ## Example diff --git a/kubernetes/aio/docs/V2HorizontalPodAutoscalerCondition.md b/kubernetes/aio/docs/V2HorizontalPodAutoscalerCondition.md index 3fe6fef36f..30117d68ae 100644 --- a/kubernetes/aio/docs/V2HorizontalPodAutoscalerCondition.md +++ b/kubernetes/aio/docs/V2HorizontalPodAutoscalerCondition.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **last_transition_time** | **datetime** | lastTransitionTime is the last time the condition transitioned from one status to another | [optional] **message** | **str** | message is a human-readable explanation containing details about the transition | [optional] +**observed_generation** | **int** | 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] **reason** | **str** | reason is the reason for the condition's last transition. | [optional] **status** | **str** | status is the status of the condition (True, False, Unknown) | **type** | **str** | type describes the current condition | diff --git a/kubernetes/aio/docs/V2MetricValueStatus.md b/kubernetes/aio/docs/V2MetricValueStatus.md index 04b68ef45f..4d412198cd 100644 --- a/kubernetes/aio/docs/V2MetricValueStatus.md +++ b/kubernetes/aio/docs/V2MetricValueStatus.md @@ -6,7 +6,7 @@ MetricValueStatus holds the current value for a metric Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**average_utilization** | **int** | currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. | [optional] +**average_utilization** | **int** | 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] **average_value** | **str** | averageValue is the current value of the average of the metric across all relevant pods (as a quantity) | [optional] **value** | **str** | value is the current value of the metric (as a quantity). | [optional] diff --git a/kubernetes/aio/swagger.json.unprocessed b/kubernetes/aio/swagger.json.unprocessed index 67de7f202b..1312319359 100644 --- a/kubernetes/aio/swagger.json.unprocessed +++ b/kubernetes/aio/swagger.json.unprocessed @@ -2112,7 +2112,7 @@ } }, "required": [ - "revision" + "data" ], "type": "object", "x-kubernetes-group-version-kind": [ @@ -2182,6 +2182,9 @@ "description": "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. 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": [ { @@ -2215,10 +2218,6 @@ "type": "string" } }, - "required": [ - "type", - "status" - ], "type": "object" }, "io.k8s.api.apps.v1.DaemonSetList": { @@ -2396,6 +2395,9 @@ "description": "Most recently observed status of the Deployment." } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -2433,10 +2435,6 @@ "type": "string" } }, - "required": [ - "type", - "status" - ], "type": "object" }, "io.k8s.api.apps.v1.DeploymentList": { @@ -2618,6 +2616,9 @@ "description": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. 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": [ { @@ -2651,10 +2652,6 @@ "type": "string" } }, - "required": [ - "type", - "status" - ], "type": "object" }, "io.k8s.api.apps.v1.ReplicaSetList": { @@ -2838,6 +2835,9 @@ "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time." } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -2871,10 +2871,6 @@ "type": "string" } }, - "required": [ - "type", - "status" - ], "type": "object" }, "io.k8s.api.apps.v1.StatefulSetList": { @@ -3085,7 +3081,7 @@ "type": "string" }, "kind": { - "description": "kind of the referent. Valid kinds are 'Pod' and 'Secret'.", + "description": "kind of the referent. Valid kinds are 'Pod', 'Secret', 'Node', 'ValidatingWebhookConfiguration', and 'MutatingWebhookConfiguration'.", "type": "string" }, "name": { @@ -3174,6 +3170,16 @@ "io.k8s.api.authentication.v1.TokenRequestSpec": { "description": "TokenRequestSpec contains client provided parameters of a token request.", "properties": { + "attestations": { + "additionalProperties": { + "items": { + "type": "string" + }, + "type": "array" + }, + "description": "attestations is a map of well-known keys to string-slice values. The values for each key have a specific semantic meaning, which is documented on the key definition. Requesters of tokens may ask the Kubernetes API Server to attest to certain claims. The API Server may perform authorization checks depending on the key of this map.", + "type": "object" + }, "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": { @@ -3785,7 +3791,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec", @@ -3858,7 +3864,7 @@ }, "scaleTargetRef": { "$ref": "#/definitions/io.k8s.api.autoscaling.v1.CrossVersionObjectReference", - "description": "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." + "description": "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." }, "targetCPUUtilizationPercentage": { "description": "targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.", @@ -3919,7 +3925,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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/io.k8s.api.autoscaling.v1.ScaleSpec", @@ -4098,7 +4104,7 @@ "type": "object" }, "io.k8s.api.autoscaling.v2.HPAScalingRules": { - "description": "HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.\n\nScaling 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.\n\nThe 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.)", + "description": "HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.\n\nScaling 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.\n\nThe tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations.", "properties": { "policies": { "description": "policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window.", @@ -4119,7 +4125,7 @@ }, "tolerance": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).\n\nFor example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.\n\nThis is an beta field and requires the HPAConfigurableTolerance feature gate to be enabled." + "description": "tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).\n\nFor example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi." } }, "type": "object" @@ -4185,6 +4191,11 @@ "description": "message is a human-readable explanation containing details about the transition", "type": "string" }, + "observedGeneration": { + "description": "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.", + "format": "int64", + "type": "integer" + }, "reason": { "description": "reason is the reason for the condition's last transition.", "type": "string" @@ -4379,7 +4390,7 @@ "properties": { "containerResource": { "$ref": "#/definitions/io.k8s.api.autoscaling.v2.ContainerResourceMetricStatus", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + "description": "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 to normal per-pod metrics using the \"pods\" source." }, "external": { "$ref": "#/definitions/io.k8s.api.autoscaling.v2.ExternalMetricStatus", @@ -4437,7 +4448,7 @@ "description": "MetricValueStatus holds the current value for a metric", "properties": { "averageUtilization": { - "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", + "description": "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.", "format": "int32", "type": "integer" }, @@ -4484,7 +4495,7 @@ }, "describedObject": { "$ref": "#/definitions/io.k8s.api.autoscaling.v2.CrossVersionObjectReference", - "description": "DescribedObject specifies the descriptions of a object,such as kind,name apiVersion" + "description": "describedObject specifies the descriptions of a object,such as kind,name apiVersion" }, "metric": { "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricIdentifier", @@ -4810,6 +4821,37 @@ } ] }, + "io.k8s.api.batch.v1.JobSchedulingConfiguration": { + "description": "JobSchedulingConfiguration composes the reusable workload-aware scheduling building blocks.", + "properties": { + "disruptionMode": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupDisruptionMode", + "description": "DisruptionMode defines the mode in which the Job's pods can be disrupted. One of Single, All. This field is immutable after creation: it may not be added or removed, and the selected mode may not be changed." + }, + "resourceClaims": { + "description": "ResourceClaims defines which ResourceClaims may be shared among Pods in the Job. 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. At most 4 claims may be set, matching the limit on the resulting PodGroup. This list is immutable after creation: entries may neither be added, removed, nor modified.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupResourceClaim" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "schedulingConstraints": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupSchedulingConstraints", + "description": "SchedulingConstraints defines scheduling constraints (e.g. topology) for the Job's pods. This field is immutable after creation." + }, + "schedulingPolicy": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupSchedulingPolicy", + "description": "SchedulingPolicy defines the scheduling policy for this Job. Exactly one of Basic or Gang must be set. This field is immutable after creation: the policy may not be added or removed. The policy variant (basic/gang) is frozen by hand-written validation; only schedulingPolicy.gang.minCount may be changed." + } + }, + "type": "object" + }, "io.k8s.api.batch.v1.JobSpec": { "description": "JobSpec describes how the job execution will look like.", "properties": { @@ -4863,6 +4905,10 @@ "description": "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use.", "type": "string" }, + "scheduling": { + "$ref": "#/definitions/io.k8s.api.batch.v1.JobSchedulingConfiguration", + "description": "scheduling defines the Workload-aware Scheduling configuration for this Job. When set, it specifies the scheduling policy (basic or gang), topology constraints, disruption mode, and shared resource claims. When omitted, the Job defaults to the basic scheduling policy, which behaves as standard pod-by-pod scheduling. This field is alpha-level and requires the WorkloadWithJob feature gate. This field is immutable, including whether it is set at all, only policy.gang.minCount may be changed after creation." + }, "selector": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", "description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" @@ -4940,7 +4986,7 @@ "type": "integer" }, "terminating": { - "description": "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).\n\nThis field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).", + "description": "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).", "format": "int32", "type": "integer" }, @@ -5288,8 +5334,8 @@ }, "type": "object" }, - "io.k8s.api.certificates.v1alpha1.ClusterTrustBundle": { - "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle 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.\n\nIt 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.", + "io.k8s.api.certificates.v1.ClusterTrustBundle": { + "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle 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.\n\nIt can be optionally associated with a particular signer, 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.", "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", @@ -5304,7 +5350,7 @@ "description": "metadata contains the object metadata." }, "spec": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec", + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundleSpec", "description": "spec contains the signer (if any) and trust anchors." } }, @@ -5316,11 +5362,11 @@ { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } ] }, - "io.k8s.api.certificates.v1alpha1.ClusterTrustBundleList": { + "io.k8s.api.certificates.v1.ClusterTrustBundleList": { "description": "ClusterTrustBundleList is a collection of ClusterTrustBundle objects", "properties": { "apiVersion": { @@ -5330,7 +5376,7 @@ "items": { "description": "items is a collection of ClusterTrustBundle objects", "items": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" }, "type": "array" }, @@ -5351,11 +5397,11 @@ { "group": "certificates.k8s.io", "kind": "ClusterTrustBundleList", - "version": "v1alpha1" + "version": "v1" } ] }, - "io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec": { + "io.k8s.api.certificates.v1.ClusterTrustBundleSpec": { "description": "ClusterTrustBundleSpec contains the signer and trust anchors.", "properties": { "signerName": { @@ -5372,8 +5418,175 @@ ], "type": "object" }, + "io.k8s.api.certificates.v1.PodCertificateRequest": { + "description": "PodCertificateRequest encodes a pod requesting a certificate from a given signer.\n\nKubelets use this API to implement podCertificate projected volumes", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "metadata contains the object metadata." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequestSpec", + "description": "spec contains the details about the certificate being requested." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequestStatus", + "description": "status contains the issued certificate, and a standard set of conditions." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1" + } + ] + }, + "io.k8s.api.certificates.v1.PodCertificateRequestList": { + "description": "PodCertificateRequestList is a collection of PodCertificateRequest 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", + "type": "string" + }, + "items": { + "description": "items is a collection of PodCertificateRequest objects", + "items": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" + }, + "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/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "metadata contains the list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "PodCertificateRequestList", + "version": "v1" + } + ] + }, + "io.k8s.api.certificates.v1.PodCertificateRequestSpec": { + "description": "PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation.", + "properties": { + "maxExpirationSeconds": { + "description": "maxExpirationSeconds is the maximum lifetime permitted for the certificate.\n\nIf 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).\n\nThe 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.", + "format": "int32", + "type": "integer" + }, + "nodeName": { + "description": "nodeName is the name of the node the pod is assigned to.", + "type": "string" + }, + "nodeUID": { + "description": "nodeUID is the UID of the node the pod is assigned to.", + "type": "string" + }, + "podName": { + "description": "podName is the name of the pod into which the certificate will be mounted.", + "type": "string" + }, + "podUID": { + "description": "podUID is the UID of the pod into which the certificate will be mounted.", + "type": "string" + }, + "serviceAccountName": { + "description": "serviceAccountName is the name of the service account the pod is running as.", + "type": "string" + }, + "serviceAccountUID": { + "description": "serviceAccountUID is the UID of the service account the pod is running as.", + "type": "string" + }, + "signerName": { + "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" + }, + "description": "unverifiedUserAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way.\n\nEntries 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.\n\nSigners should document the keys and values they support. Signers should deny requests that contain keys they do not recognize.", + "type": "object" + } + }, + "required": [ + "signerName", + "podName", + "podUID", + "serviceAccountName", + "serviceAccountUID", + "nodeName", + "nodeUID", + "stubPKCS10Request" + ], + "type": "object" + }, + "io.k8s.api.certificates.v1.PodCertificateRequestStatus": { + "description": "PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued.", + "properties": { + "beginRefreshAt": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable.\n\nThis field is only a hint. Kubelet may start refreshing before or after this time if necessary." + }, + "certificateChain": { + "description": "certificateChain is populated with an issued certificate by the signer. This field is set via the /status subresource. Once populated, this field is immutable.\n\nIf the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty.\n\nValidation requirements:\n 1. certificateChain must consist of one or more PEM-formatted certificates.\n 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as\n described in section 4 of RFC5280.\n\nIf more than one block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers.", + "type": "string" + }, + "conditions": { + "description": "conditions applied to the request.\n\nThe types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\".\n\nIf the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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" + }, + "notAfter": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain." + }, + "notBefore": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain." + } + }, + "type": "object" + }, "io.k8s.api.certificates.v1beta1.ClusterTrustBundle": { - "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle 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.\n\nIt 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.", + "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle 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.\n\nIt can be optionally associated with a particular signer, 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.", "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", @@ -5646,7 +5859,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "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/io.k8s.api.coordination.v1.LeaseSpec", @@ -5719,7 +5932,7 @@ "type": "integer" }, "preferredHolder": { - "description": "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.", + "description": "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.", "type": "string" }, "renewTime": { @@ -5727,7 +5940,7 @@ "description": "renewTime is a time when the current holder of a lease has last updated the lease." }, "strategy": { - "description": "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.", + "description": "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.", "type": "string" } }, @@ -5746,7 +5959,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "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/io.k8s.api.coordination.v1alpha2.LeaseCandidateSpec", @@ -5804,27 +6017,27 @@ "description": "LeaseCandidateSpec is a specification of a Lease.", "properties": { "binaryVersion": { - "description": "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", + "description": "binaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", "type": "string" }, "emulationVersion": { - "description": "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", + "description": "emulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", "type": "string" }, "leaseName": { - "description": "LeaseName is the name of the lease for which this candidate is contending. This field is immutable.", + "description": "leaseName is the name of the lease for which this candidate is contending. This field is immutable.", "type": "string" }, "pingTime": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime." + "description": "pingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime." }, "renewTime": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates." + "description": "renewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates." }, "strategy": { - "description": "Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.", + "description": "strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.", "type": "string" } }, @@ -5848,7 +6061,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "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/io.k8s.api.coordination.v1beta1.LeaseCandidateSpec", @@ -5906,27 +6119,27 @@ "description": "LeaseCandidateSpec is a specification of a Lease.", "properties": { "binaryVersion": { - "description": "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", + "description": "binaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", "type": "string" }, "emulationVersion": { - "description": "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", + "description": "emulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", "type": "string" }, "leaseName": { - "description": "LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.", + "description": "leaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.", "type": "string" }, "pingTime": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime." + "description": "pingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime." }, "renewTime": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates." + "description": "renewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates." }, "strategy": { - "description": "Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.", + "description": "strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.", "type": "string" } }, @@ -6402,6 +6615,11 @@ "signerName": { "description": "Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.", "type": "string" + }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" } }, "required": [ @@ -6520,7 +6738,7 @@ "format": "byte", "type": "string" }, - "description": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.", + "description": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in 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.", "type": "object" }, "data": { @@ -6553,7 +6771,7 @@ ] }, "io.k8s.api.core.v1.ConfigMapEnvSource": { - "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", + "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe 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.", "properties": { "name": { "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", @@ -6570,7 +6788,7 @@ "description": "Selects a key from a ConfigMap.", "properties": { "key": { - "description": "The key to select.", + "description": "The key to select from the ConfigMap's Data field. Keys in the BinaryData field are not currently propagated to container env vars.", "type": "string" }, "name": { @@ -6684,6 +6902,11 @@ "format": "int32", "type": "integer" }, + "defaultUser": { + "description": "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "items": { "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", "items": { @@ -7232,6 +7455,11 @@ "resourceFieldRef": { "$ref": "#/definitions/io.k8s.api.core.v1.ResourceFieldSelector", "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported." + }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" } }, "required": [ @@ -7247,6 +7475,11 @@ "format": "int32", "type": "integer" }, + "defaultUser": { + "description": "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "items": { "description": "Items is a list of downward API volume file", "items": { @@ -7265,6 +7498,11 @@ "description": "medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", "type": "string" }, + "mode": { + "description": "mode specifies the permission bits for the emptyDir directory, in numeric notation (e.g., 0755, 01777). Must be a value between 0000 and 01777. If not specified, defaults to 0777. This might be in conflict with other options that affect the file mode, like fsGroup. If fsGroup is specified, the fsGroup permissions will override the mode specified here. This field has no effect on Windows. This field is alpha and requires EmptyDirVolumeMode featuregate to be enabled.", + "format": "int32", + "type": "integer" + }, "sizeLimit": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir" @@ -7818,6 +8056,26 @@ }, "type": "object" }, + "io.k8s.api.core.v1.EvictionResponder": { + "description": "EvictionResponder allows you to specify the responder reacting to an Eviction. Responders should observe and communicate through the Eviction Resource API to help with the graceful eviction of a target (e.g. termination of a pod).", + "properties": { + "name": { + "description": "name allows you to identify the responder responding to the Eviction.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field must be unique for each responder. This field is required.", + "type": "string" + }, + "priority": { + "description": "priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last.\n\nThe responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders.\n\nThe minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "name", + "priority" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, "io.k8s.api.core.v1.ExecAction": { "description": "ExecAction describes a \"run in container\" action.", "properties": { @@ -8002,6 +8260,10 @@ "io.k8s.api.core.v1.GRPCAction": { "description": "GRPCAction specifies an action involving a GRPC service.", "properties": { + "mode": { + "description": "mode specifies the connection mode for the gRPC health probe. Set to \"TLS\" to use TLS without certificate verification. Set to \"Plaintext\" to use a plaintext (insecure) connection explicitly. If not specified, the probe uses a plaintext (insecure) connection.", + "type": "string" + }, "port": { "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", "format": "int32", @@ -8109,6 +8371,10 @@ "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." }, + "protocol": { + "description": "Protocol selects the wire protocol for the probe connection. Nil defaults to HTTP/1.1.", + "type": "string" + }, "scheme": { "description": "Scheme to use for connecting to the host. Defaults to HTTP.", "type": "string" @@ -8350,6 +8616,11 @@ "path": { "description": "path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", "type": "string" + }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" } }, "required": [ @@ -8867,6 +9138,45 @@ }, "type": "object" }, + "io.k8s.api.core.v1.NodeAllocatableMappedResources": { + "description": "NodeAllocatableMappedResources describes mapped node allocatable resource allocations.", + "properties": { + "name": { + "description": "Name is the name of the resource (e.g., cpu, memory).", + "type": "string" + }, + "quantity": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "Quantity is the total node allocatable resource capacity allocated for the claim. This claim's allocated devices is shared by all the containers referencing the claim. Kubelet adds this value to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim." + } + }, + "required": [ + "name", + "quantity" + ], + "type": "object" + }, + "io.k8s.api.core.v1.NodeAllocatableOverheadResources": { + "description": "NodeAllocatableOverheadResources describes auxiliary overhead resource allocations.", + "properties": { + "name": { + "description": "Name is the name of the resource (e.g., cpu, memory).", + "type": "string" + }, + "perContainer": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "PerContainer is the variable overhead quantity applied for each container referencing the claim. The container references are recorded in `nodeAllocatableResourceClaimStatuses.containers`. The total overhead quantity allocated for the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once. At least one of PerPod or PerContainer must be specified. Specifying neither is an invalid configuration." + }, + "perPod": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "PerPod is the flat overhead quantity allocated per pod. Adding to each container limit allows individual containers to utilize the overhead, while the parent pod-level cgroup limit caps the total usage at the pod boundary where the overhead is accounted for exactly once. At least one of PerPod or PerContainer must be specified. Specifying neither is an invalid configuration." + } + }, + "required": [ + "name" + ], + "type": "object" + }, "io.k8s.api.core.v1.NodeAllocatableResourceClaimStatus": { "description": "NodeAllocatableResourceClaimStatus describes the status of node allocatable resources allocated via DRA.", "properties": { @@ -8878,21 +9188,39 @@ "type": "array", "x-kubernetes-list-type": "set" }, + "mapping": { + "description": "Mapping contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].mapping` field. This is used by kubelet for pod level and container-level cgroup enforcement.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeAllocatableMappedResources" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "overhead": { + "description": "Overhead contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].overhead` field. This is used by kubelet for pod level and container-level cgroup enforcement.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeAllocatableOverheadResources" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, "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/io.k8s.apimachinery.pkg.api.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" + "resourceClaimName" ], "type": "object" }, @@ -9017,6 +9345,20 @@ } ] }, + "io.k8s.api.core.v1.NodePodPreemptionPolicy": { + "description": "NodePodPreemptionPolicy defines the node-level policies governing preemption for pods on this node.", + "properties": { + "disableResizePreemption": { + "description": "DisableResizePreemption lists the owners (e.g., autoscalers, operators, administrators) that have requested to disable scheduler and Kubelet preemption for in-place pod resize on this node. If this list is non-empty, resize-induced preemption is disabled on this node. This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption feature gate.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, "io.k8s.api.core.v1.NodeRuntimeHandler": { "description": "NodeRuntimeHandler is a set of runtime handler information.", "properties": { @@ -9136,6 +9478,10 @@ "x-kubernetes-list-type": "set", "x-kubernetes-patch-strategy": "merge" }, + "podPreemptionPolicy": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodePodPreemptionPolicy", + "description": "PodPreemptionPolicy controls the node-level preemption behaviors for pods on this node. This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption feature gate." + }, "providerID": { "description": "ID of the node assigned by the cloud provider in the format: ://", "type": "string" @@ -9311,6 +9657,10 @@ "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", "type": "string" }, + "runningInUserNamespace": { + "description": "Whether the node is running in a user namespace.", + "type": "boolean" + }, "swap": { "$ref": "#/definitions/io.k8s.api.core.v1.NodeSwapStatus", "description": "Swap Info reported by the node." @@ -9535,11 +9885,11 @@ }, "dataSource": { "$ref": "#/definitions/io.k8s.api.core.v1.TypedLocalObjectReference", - "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * 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. If the namespace is specified, then dataSourceRef will not be copied to dataSource." + "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * 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. 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." }, "dataSourceRef": { "$ref": "#/definitions/io.k8s.api.core.v1.TypedObjectReference", - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(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." + "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled." }, "resources": { "$ref": "#/definitions/io.k8s.api.core.v1.VolumeResourceRequirements", @@ -9618,6 +9968,10 @@ "description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim", "type": "string" }, + "healthStatus": { + "$ref": "#/definitions/io.k8s.api.core.v1.VolumeHealthStatus", + "description": "healthStatus contains the latest controller-reported health information for the volume bound to this claim." + }, "modifyVolumeStatus": { "$ref": "#/definitions/io.k8s.api.core.v1.ModifyVolumeStatus", "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted." @@ -10029,6 +10383,11 @@ "description": "Kubelet's generated CSRs will be addressed to this signer.", "type": "string" }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "userAnnotations": { "additionalProperties": { "type": "string" @@ -10321,7 +10680,7 @@ "type": "integer" }, "seLinuxChangePolicy": { - "description": "seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\".\n\n\"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.\n\n\"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. 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.\n\nIf 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.\n\nThis field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.\n\nAll 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.", + "description": "seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\".\n\n\"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.\n\n\"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. 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.\n\nIf not specified, \"MountOption\" is used.\n\nThis field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.\n\nAll 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.", "type": "string" }, "seLinuxOptions": { @@ -10414,6 +10773,19 @@ "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge" }, + "evictionResponders": { + "description": "evictionResponders reference responders that react to Evictions based on EvictionRequests. Responders should observe and communicate through the Eviction Resource API to help with the graceful termination of a pod. The responders are selected sequentially, according to their specified priority.\n\nResponders should periodically report on an eviction progress by updating the .status.responders[].heartbeatTime field of the Eviction object. If this field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there is no other responder, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource).\n\nThe maximum length of the responders list is 10. Responders are not supported when the pod is part of a PodGroup (.spec.schedulingGroup is set). This field can only be set on creation and is immutable afterwards.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.EvictionResponder" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, "hostAliases": { "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.", "items": { @@ -10448,7 +10820,7 @@ "type": "string" }, "hostnameOverride": { - "description": "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.\n\nThis 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.", + "description": "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.\n\nThis field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters.", "type": "string" }, "imagePullSecrets": { @@ -10501,7 +10873,7 @@ "type": "object" }, "preemptionPolicy": { - "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", + "description": "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.", "type": "string" }, "priority": { @@ -10712,7 +11084,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.NodeAllocatableResourceClaimStatus" }, "type": "array", - "x-kubernetes-list-type": "atomic" + "x-kubernetes-list-map-keys": [ + "resourceClaimName" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "resourceClaimName", + "x-kubernetes-patch-strategy": "merge" }, "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.", @@ -10776,6 +11153,17 @@ "startTime": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", "description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod." + }, + "volumeHealth": { + "description": "volumeHealth contains node-reported health for each volume the pod is using. Populated by the kubelet on the pod's node.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodVolumeHealth" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" } }, "type": "object" @@ -10858,6 +11246,37 @@ }, "type": "object" }, + "io.k8s.api.core.v1.PodVolumeHealth": { + "description": "PodVolumeHealth contains health information for a volume used by a pod, reported by the CSI node plugin via the kubelet.", + "properties": { + "healthConditions": { + "description": "conditions is the set of adverse conditions reported by the CSI node plugin for this volume on this node. At most 16 conditions may be reported.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.VolumeHealthCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "status", + "reason" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "status", + "x-kubernetes-patch-strategy": "merge" + }, + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is when the current set of conditions first appeared." + }, + "name": { + "description": "name matches an entry in pod.spec.volumes.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, "io.k8s.api.core.v1.PortStatus": { "description": "PortStatus represents the error condition of a service port", "properties": { @@ -10981,6 +11400,11 @@ "format": "int32", "type": "integer" }, + "defaultUser": { + "description": "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "sources": { "description": "sources is the list of volume projections. Each entry in this list handles one source.", "items": { @@ -11499,7 +11923,7 @@ "description": "ResourceStatus represents the status of a single resource allocated to a Pod.", "properties": { "name": { - "description": "Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:/\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.", + "description": "Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:/\" when container.resources.claims[*].request is set or \"claim:\" when container.resources.claims[*].request is empty. For DRA-backed extended resources, \"claim:/\" is used when the claim name and request name are recorded in pod.status.extendedResourceClaimStatus. When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.", "type": "string" }, "resources": { @@ -11873,6 +12297,11 @@ "format": "int32", "type": "integer" }, + "defaultUser": { + "description": "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "items": { "description": "items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", "items": { @@ -12081,6 +12510,11 @@ "path": { "description": "path is the path relative to the mount point of the file to project the token into.", "type": "string" + }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" } }, "required": [ @@ -12748,11 +13182,65 @@ ], "type": "object" }, + "io.k8s.api.core.v1.VolumeHealthCondition": { + "description": "VolumeHealthCondition represents an adverse health condition reported for a volume.", + "properties": { + "message": { + "description": "message is a human-readable description. Maximum permitted length of a message is 1024 bytes.", + "type": "string" + }, + "reason": { + "description": "reason is a brief CamelCase machine-parseable reason. Together with status it forms the unique identity of a condition entry. Maximum permitted length of a reason is 256 bytes.", + "type": "string" + }, + "status": { + "description": "status is the machine-parseable health category. Possible values: - \"Inaccessible\": the volume cannot be accessed. - \"DataLoss\": data loss has been detected on the volume. - \"Degraded\": the volume is functioning with reduced capability.", + "type": "string" + } + }, + "required": [ + "status", + "reason" + ], + "type": "object" + }, + "io.k8s.api.core.v1.VolumeHealthStatus": { + "description": "VolumeHealthStatus contains health information for a volume reported by the CSI controller plugin.", + "properties": { + "healthConditions": { + "description": "conditions is the set of adverse conditions reported by the CSI controller plugin. An empty list means no adverse condition. At most 16 conditions may be reported.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.VolumeHealthCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "status", + "reason" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "status", + "x-kubernetes-patch-strategy": "merge" + }, + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is when the current set of conditions first appeared." + } + }, + "type": "object" + }, "io.k8s.api.core.v1.VolumeMount": { "description": "VolumeMount describes a mounting of a Volume within a container.", "properties": { + "bindMountOptions": { + "description": "bindMountOptions is the list of additional bind mount options to apply when mounting this volume into the container. Allowed values are noexec, nodev, and nosuid. These are Linux mount options and have no effect on Windows nodes. This field is not supported with image volumes. This is an alpha field and requires enabling the VolumeBindMountOptions feature gate.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", + "description": "Path within the container at which the volume should be mounted.", "type": "string" }, "mountPropagation": { @@ -13211,7 +13699,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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" }, "note": { "description": "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.", @@ -13278,7 +13766,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "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" } }, "required": [ @@ -13365,6 +13853,9 @@ "description": "`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" } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -13390,7 +13881,7 @@ "type": "string" }, "status": { - "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "description": "`status` is the status of the condition. Should be specified and set to one of True, False, Unknown.", "type": "string" }, "type": { @@ -13398,6 +13889,9 @@ "type": "string" } }, + "required": [ + "type" + ], "type": "object" }, "io.k8s.api.flowcontrol.v1.FlowSchemaList": { @@ -13545,6 +14039,9 @@ "type": "integer" } }, + "required": [ + "limitResponse" + ], "type": "object" }, "io.k8s.api.flowcontrol.v1.NonResourcePolicyRule": { @@ -13630,6 +14127,9 @@ "description": "`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" } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -13655,7 +14155,7 @@ "type": "string" }, "status": { - "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "description": "`status` is the status of the condition. Should be specified and set to one of True, False, Unknown.", "type": "string" }, "type": { @@ -13663,6 +14163,9 @@ "type": "string" } }, + "required": [ + "type" + ], "type": "object" }, "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList": { @@ -13896,6 +14399,419 @@ ], "type": "object" }, + "io.k8s.api.lifecycle.v1alpha1.Eviction": { + "description": "Eviction initiates an eviction process, which should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod).\n\nThe evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. It manages the Eviction lifecycle. Requesters are preserved in .status.requesters even after they have withdrawn their request. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Once all EvictionRequest corresponding to this Eviction .spec.target have been removed, this Eviction object will eventually be garbage collected.\n\nIf the target is a pod, the .status.targetResponders is populated from Pod's .spec.evictionResponders.\n\nResponders should observe and communicate through the .status to help with the eviction of the target when they see their state == Active in .status.targetResponders. ResponderStatus struct should then be periodically updated to indicate the progress or completion of the eviction process by each responder in .status.responders. If .status.responders[].heartbeatTime is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority.\n\nIf there are no other responders and the target is a pod, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource).", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. .metadata.name set by the evictionrequest-controller is purely informative and subject to change. .spec.target field should be used to identify the target precisesly.\n\nThe requester and responder names will be used as label keys and added to the labels of the eviction in one of the following formats: 1. acme.io/foo: \"requester\" 2. acme.io/foo: \"responder\" 3. acme.io/foo: \"requester-responder\"\n\nPlease see EvictionParticipantRole for available role label values." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionSpec", + "description": "spec defines the eviction specification. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionStatus", + "description": "status represents the most recently observed status of the eviction. Populated by responders and evictionrequest-controller. 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": [ + { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionList": { + "description": "EvictionList contains a list of Eviction 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 Evictions.", + "items": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + }, + "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/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "lifecycle.k8s.io", + "kind": "EvictionList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionPodReference": { + "description": "EvictionPodReference contains enough information to locate the referenced pod inside the same namespace.", + "properties": { + "name": { + "description": "name of the target. This field is required.", + "type": "string" + }, + "uid": { + "description": "uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required.", + "type": "string" + } + }, + "required": [ + "name", + "uid" + ], + "type": "object" + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionRequest": { + "description": "EvictionRequest defines a request that should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod).\n\nThe evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions.\n - .spec.requester is set as a label on the Eviction for easier lookup.\n - Each target can have a set of responders assigned to it. Eviction objects are observed by\n these responders, who implement the eviction logic and update the Eviction's status with\n progress.\n\nThere is many-to-many relationship between EvictionRequests and Evictions in general. And many-to-one if the target is a pod.\n\nIf all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Deleting an EvictionRequest also counts as a withdrawal. Once all EvictionRequest of a target are removed, the corresponding Evictions are eventually garbage collected.", + "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/io.k8s.apimachinery.pkg.apis.meta.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/io.k8s.api.lifecycle.v1alpha1.EvictionRequestSpec", + "description": "spec defines the eviction request specification. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequestStatus", + "description": "status represents the most recently observed status of the eviction request. 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": [ + { + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionRequestList": { + "description": "EvictionRequestList contains a list of EvictionRequests 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 EvictionRequests.", + "items": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" + }, + "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/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "lifecycle.k8s.io", + "kind": "EvictionRequestList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionRequestPodReference": { + "description": "EvictionRequestPodReference contains enough information to locate the referenced pod inside the same namespace.", + "properties": { + "name": { + "description": "name of the target. This field is required.", + "type": "string" + }, + "uid": { + "description": "uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required.", + "type": "string" + } + }, + "required": [ + "name", + "uid" + ], + "type": "object" + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionRequestSpec": { + "description": "EvictionRequestSpec is a specification of an EvictionRequest.", + "properties": { + "intent": { + "description": "intent specifies the action that should be taken for the specified target.\n\n- Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target.\n If all requesters' intents are withdrawn for a common target, the eviction will be canceled.\n Cancellation consequences:\n - Inactive responders will never run.\n - Active responders are expected to cancel the eviction.\n - Completed or Interrupted responders should not take any action.", + "type": "string" + }, + "requester": { + "description": "requester allows you to identify the entity, that requested the eviction of the target.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field is required and immutable.", + "type": "string" + }, + "target": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequestTarget", + "description": "target contains a reference to an object (e.g. a pod) that should be evicted. This field is required and immutable." + } + }, + "required": [ + "target", + "requester", + "intent" + ], + "type": "object" + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionRequestStatus": { + "description": "EvictionRequestStatus represents the last observed status of the eviction request.", + "properties": { + "conditions": { + "description": "conditions contain information about the eviction request.\n\nEvictionRequest specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed\n by any eviction responder. This can happen if the request is canceled or if no responder\n managed to evict the target (e.g. terminate or delete a pod).\n- TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted).\n\nThese conditions can be reset if the eviction was unsuccessful and a new Eviction intent has been submitted.\n\nThe maximum length of the conditions list is 100.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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" + }, + "observedGeneration": { + "description": "observedGeneration is EvictionRequest's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller.", + "format": "int64", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionRequestTarget": { + "description": "EvictionRequestTarget contains a reference to an object that should be evicted.", + "properties": { + "pod": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequestPodReference", + "description": "pod references a pod that is subject to eviction/termination. Pods that are part of a PodGroup (.spec.schedulingGroup is set) are not supported." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "pod": "Pod" + } + } + ] + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionSpec": { + "description": "EvictionSpec is a specification of an Eviction.", + "properties": { + "target": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionTarget", + "description": "target contains a reference to an object (e.g. a pod) that should be evicted. This field is required and immutable." + } + }, + "required": [ + "target" + ], + "type": "object" + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionStatus": { + "description": "EvictionStatus represents the last observed status of the eviction request.", + "properties": { + "conditions": { + "description": "conditions contain information about the eviction request.\n\nEviction specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed\n by any eviction responder. This can happen if the request is canceled or if no responder\n managed to evict the target (e.g. terminate or delete a pod).\n- TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted).\n\n\tThe maximum length of the conditions list is 100.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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" + }, + "observedGeneration": { + "description": "observedGeneration is Eviction's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller.", + "format": "int64", + "type": "integer" + }, + "requesters": { + "description": "requesters allow you to identify the entities, that requested the eviction of the target. If all the requesters withdraw their eviction intent, the eviction will be canceled.\n\nThe maximum length of the requesters list is 100. If this limit is exceeded, requesters with Withdrawn intent should be dropped first.", + "items": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Requester" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "responders": { + "description": "responders represents the eviction process status of each declared responder.\n\nThe responder list should be the same length and have the same .name fields as .status.targetResponders. Only responders with .name that have Active state in .targetResponders[].state should be updated and can be mutated. First initialization of the list is allowed.\n\nEach ResponderStatus is initialized by evictionrequest-controller and then managed by the designated responder.", + "items": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.ResponderStatus" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "targetResponders": { + "description": "targetResponders reference responders that should eventually respond to this eviction to help with the graceful eviction of a target. These responders are selected sequentially, according to their specified priority by setting the Active state to the TargetResponder .state field. The maximum number of active responders allowed is 1. Eventually each responder can end up in an Interrupted, Canceled or, Completed state. Responders should observe these states in order to navigate their lifecycle.\n\nIf the target is a pod, the field is populated from Pod's .spec.evictionResponders. Default responders may be added to the list according to the target.\n\nDefault responders: - imperative-eviction.k8s.io/evictor responder with a priority of 100 is added to the list if the\n target is a pod. It will call the imperative Eviction API (pods//eviction subresource).\n This call may not succeed due to PodDisruptionBudgets, which may block the pod termination.\n It will update the responder message and try again with a backoff.\n\nThe maximum length of the responders list is 11. The length and keys of the list cannot change once set. This field is managed by evictionrequest-controller.", + "items": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.TargetResponder" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionTarget": { + "description": "EvictionTarget contains a reference to an object that should be evicted.", + "properties": { + "pod": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionPodReference", + "description": "pod references a pod that is subject to eviction/termination. Pods that are part of a PodGroup (.spec.schedulingGroup is set) are not supported." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "pod": "Pod" + } + } + ] + }, + "io.k8s.api.lifecycle.v1alpha1.Requester": { + "description": "Requester allows you to identify the entity, that requested the eviction of the target.", + "properties": { + "intent": { + "description": "intent specifies the action that should be taken for the specified target.\n\n- Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target.\n If all requesters' intents are withdrawn, the eviction will be canceled.\n Cancellation consequences:\n - Inactive responders will never run.\n - Active responders are expected to cancel the eviction.\n - Completed or Interrupted responders should not take any action.", + "type": "string" + }, + "name": { + "description": "name allows you to identify the entity, that requested the eviction of the target.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each requester. This field is required.", + "type": "string" + } + }, + "required": [ + "name", + "intent" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.lifecycle.v1alpha1.ResponderStatus": { + "description": "ResponderStatus represents the last observed status of the eviction process of the responder. It should be only updated by the designated responder whose name is .name field.", + "properties": { + "completionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "completionTime tracks the time at which the Responder stopped processing the eviction request. Completion means that the responders has either fully or partially completed the eviction process, which may have resulted in target eviction (e.g. pod termination). It should reflect the present time when set. This field becomes immutable once set." + }, + "expectedCompletionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "expectedCompletionTime is the time at which the eviction process step is expected to end for the responder. The time cannot be set to the past. May be omitted if no estimate can be made." + }, + "heartbeatTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "heartbeatTime is the last time at which the eviction process was reported to be in progress by the responder. It should reflect the present time when set. Responders should avoid heartbeats more frequent than 20 seconds to avoid overloading the control-plane." + }, + "message": { + "description": "message provides human-readable details about the state of the responder and the eviction process. Maximum length is 4000 characters.", + "type": "string" + }, + "name": { + "description": "name allows you to identify the responder reacting to the Eviction.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field is initialized by Kubernetes and must be unique for each responder. This field is required.", + "type": "string" + }, + "startTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "startTime tracks the time at which this responder was designated as active and should start processing the eviction request. It should reflect the present time when set. This field is initialized by Kubernetes when this responder becomes active. This field becomes immutable once set." + } + }, + "required": [ + "name" + ], + "type": "object", + "x-kubernetes-map-type": "granular" + }, + "io.k8s.api.lifecycle.v1alpha1.TargetResponder": { + "description": "TargetResponder allows you to specify the responder reacting to the Eviction. Responders should observe and communicate through the Eviction API (see .state) to help with the graceful eviction of a target (e.g. termination of a pod).", + "properties": { + "name": { + "description": "name allows you to identify the responder reacting to the Eviction.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each responder. This field is required.", + "type": "string" + }, + "priority": { + "description": "priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last.\n\nThe responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders.\n\nThe minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required and immutable.", + "format": "int32", + "type": "integer" + }, + "state": { + "description": "state specifies a state that is assigned by the evictionrequest-controller. Responders should observe this state in order to navigate their lifecycle. - Inactive means that the responder should not yet process this eviction request. - Active means that the responder is either running or expected to start soon.\n Also, startTime has been set in the ResponderStatus by the evictionrequest-controller.\n\n An active responder should currently interact with the eviction process by updating\n .status.responders, where .name is the active responder name. ResponderStatus fields\n should be periodically updated to indicate the progress or completion of the eviction process.\n If .status.responders[].heartbeatTime field is not updated within the heartbeat deadline defined\n by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder\n\t with a lower priority. Only one responder can be active at a time.\n- Interrupted means that the responder has failed to start or failed to update\n heartbeatTime in ResponderStatus in a timely manner.\n- Canceled means that the responder has been canceled. In other words, there\tis no\n EvictionRequest with the same target and Eviction intent in .spec.intent.\n- Completed means that the responder has successfully completed and set completionTime\n in ResponderStatus.\n\nPlease refer to the ResponderStatus in .status.responders for more details on each responder.", + "type": "string" + } + }, + "required": [ + "name", + "priority", + "state" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, "io.k8s.api.networking.v1.HTTPIngressPath": { "description": "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", "properties": { @@ -13948,7 +14864,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddressSpec", @@ -14007,7 +14923,7 @@ "properties": { "parentRef": { "$ref": "#/definitions/io.k8s.api.networking.v1.ParentReference", - "description": "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." + "description": "parentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." } }, "required": [ @@ -14049,7 +14965,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/io.k8s.api.networking.v1.IngressSpec", @@ -14096,7 +15012,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClassSpec", @@ -14293,7 +15209,8 @@ "type": "string" }, "http": { - "$ref": "#/definitions/io.k8s.api.networking.v1.HTTPIngressRuleValue" + "$ref": "#/definitions/io.k8s.api.networking.v1.HTTPIngressRuleValue", + "description": "http is a HTTP IngressRuleValue, which contains a list of http selectors" } }, "type": "object" @@ -14386,7 +15303,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicySpec", @@ -14556,19 +15473,19 @@ "description": "ParentReference describes a reference to a parent object.", "properties": { "group": { - "description": "Group is the group of the object being referenced.", + "description": "group is the group of the object being referenced.", "type": "string" }, "name": { - "description": "Name is the name of the object being referenced.", + "description": "name is the name of the object being referenced.", "type": "string" }, "namespace": { - "description": "Namespace is the namespace of the object being referenced.", + "description": "namespace is the namespace of the object being referenced.", "type": "string" }, "resource": { - "description": "Resource is the resource of the object being referenced.", + "description": "resource is the resource of the object being referenced.", "type": "string" } }, @@ -14607,7 +15524,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDRSpec", @@ -14666,7 +15583,7 @@ "description": "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", "properties": { "cidrs": { - "description": "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", + "description": "cidrs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", "items": { "type": "string" }, @@ -14695,213 +15612,6 @@ }, "type": "object" }, - "io.k8s.api.networking.v1beta1.IPAddress": { - "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", - "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/io.k8s.apimachinery.pkg.apis.meta.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/io.k8s.api.networking.v1beta1.IPAddressSpec", - "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": [ - { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.networking.v1beta1.IPAddressList": { - "description": "IPAddressList contains a list of IPAddress.", - "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 IPAddresses.", - "items": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" - }, - "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/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "IPAddressList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.networking.v1beta1.IPAddressSpec": { - "description": "IPAddressSpec describe the attributes in an IP Address.", - "properties": { - "parentRef": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ParentReference", - "description": "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." - } - }, - "required": [ - "parentRef" - ], - "type": "object" - }, - "io.k8s.api.networking.v1beta1.ParentReference": { - "description": "ParentReference describes a reference to a parent object.", - "properties": { - "group": { - "description": "Group is the group of the object being referenced.", - "type": "string" - }, - "name": { - "description": "Name is the name of the object being referenced.", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of the object being referenced.", - "type": "string" - }, - "resource": { - "description": "Resource is the resource of the object being referenced.", - "type": "string" - } - }, - "required": [ - "resource", - "name" - ], - "type": "object" - }, - "io.k8s.api.networking.v1beta1.ServiceCIDR": { - "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.", - "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/io.k8s.apimachinery.pkg.apis.meta.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/io.k8s.api.networking.v1beta1.ServiceCIDRSpec", - "description": "spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDRStatus", - "description": "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.networking.v1beta1.ServiceCIDRList": { - "description": "ServiceCIDRList contains a list of ServiceCIDR 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", - "type": "string" - }, - "items": { - "description": "items is the list of ServiceCIDRs.", - "items": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" - }, - "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/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "ServiceCIDRList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.networking.v1beta1.ServiceCIDRSpec": { - "description": "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", - "properties": { - "cidrs": { - "description": "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "io.k8s.api.networking.v1beta1.ServiceCIDRStatus": { - "description": "ServiceCIDRStatus describes the current state of the ServiceCIDR.", - "properties": { - "conditions": { - "description": "conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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" - }, "io.k8s.api.node.v1.Overhead": { "description": "Overhead structure represents the resource overhead associated with running a pod.", "properties": { @@ -14932,7 +15642,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "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" }, "overhead": { "$ref": "#/definitions/io.k8s.api.node.v1.Overhead", @@ -15021,7 +15731,7 @@ }, "deleteOptions": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions", - "description": "DeleteOptions may be provided" + "description": "deleteOptions may be provided" }, "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", @@ -15029,7 +15739,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "ObjectMeta describes the pod that is being evicted." + "description": "metadata describes the pod that is being evicted." } }, "type": "object", @@ -15054,15 +15764,15 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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/io.k8s.api.policy.v1.PodDisruptionBudgetSpec", - "description": "Specification of the desired behavior of the PodDisruptionBudget." + "description": "spec is the specification of the desired behavior of the PodDisruptionBudget." }, "status": { "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetStatus", - "description": "Most recently observed status of the PodDisruptionBudget." + "description": "status is the most recently observed status of the PodDisruptionBudget." } }, "type": "object", @@ -15114,19 +15824,19 @@ "properties": { "maxUnavailable": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." + "description": "maxUnavailable indicates that an eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." }, "minAvailable": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." + "description": "minAvailable indicates that an eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." }, "selector": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", + "description": "selector is a label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", "x-kubernetes-patch-strategy": "replace" }, "unhealthyPodEvictionPolicy": { - "description": "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.", + "description": "unhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.", "type": "string" } }, @@ -15187,7 +15897,7 @@ "description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", "properties": { "clusterRoleSelectors": { - "description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added", + "description": "clusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added", "items": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" }, @@ -15202,7 +15912,7 @@ "properties": { "aggregationRule": { "$ref": "#/definitions/io.k8s.api.rbac.v1.AggregationRule", - "description": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." + "description": "aggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." }, "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", @@ -15214,10 +15924,10 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata." + "description": "metadata is the standard object's metadata." }, "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", + "description": "rules holds all the PolicyRules for this ClusterRole", "items": { "$ref": "#/definitions/io.k8s.api.rbac.v1.PolicyRule" }, @@ -15247,14 +15957,14 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata." + "description": "metadata is the standard object's metadata." }, "roleRef": { "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleRef", - "description": "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." + "description": "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." }, "subjects": { - "description": "Subjects holds references to the objects the role applies to.", + "description": "subjects holds references to the objects the role applies to.", "items": { "$ref": "#/definitions/io.k8s.api.rbac.v1.Subject" }, @@ -15348,7 +16058,7 @@ "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.", "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. \"\" represents the core API group and \"*\" represents all API groups.", + "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. \"\" represents the core API group and \"*\" represents all API groups.", "items": { "type": "string" }, @@ -15356,7 +16066,7 @@ "x-kubernetes-list-type": "atomic" }, "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 Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", + "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 Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", "items": { "type": "string" }, @@ -15364,7 +16074,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" }, @@ -15372,7 +16082,7 @@ "x-kubernetes-list-type": "atomic" }, "resources": { - "description": "Resources is a list of resources this rule applies to. '*' represents all resources.", + "description": "resources is a list of resources this rule applies to. '*' represents all resources.", "items": { "type": "string" }, @@ -15380,7 +16090,7 @@ "x-kubernetes-list-type": "atomic" }, "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.", + "description": "verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.", "items": { "type": "string" }, @@ -15406,10 +16116,10 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata." + "description": "metadata is the standard object's metadata." }, "rules": { - "description": "Rules holds all the PolicyRules for this Role", + "description": "rules holds all the PolicyRules for this Role", "items": { "$ref": "#/definitions/io.k8s.api.rbac.v1.PolicyRule" }, @@ -15439,14 +16149,14 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata." + "description": "metadata is the standard object's metadata." }, "roleRef": { "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleRef", - "description": "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." + "description": "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." }, "subjects": { - "description": "Subjects holds references to the objects the role applies to.", + "description": "subjects holds references to the objects the role applies to.", "items": { "$ref": "#/definitions/io.k8s.api.rbac.v1.Subject" }, @@ -15540,15 +16250,15 @@ "description": "RoleRef contains information that points to the role being used", "properties": { "apiGroup": { - "description": "APIGroup is the group for the resource being referenced", + "description": "apiGroup is the group for the resource being referenced", "type": "string" }, "kind": { - "description": "Kind is the type of resource being referenced", + "description": "kind is the type of resource being referenced", "type": "string" }, "name": { - "description": "Name is the name of resource being referenced", + "description": "name is the name of resource being referenced", "type": "string" } }, @@ -15563,19 +16273,19 @@ "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.", "properties": { "apiGroup": { - "description": "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.", + "description": "apiGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.", "type": "string" }, "kind": { - "description": "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.", + "description": "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.", "type": "string" }, "name": { - "description": "Name of the object being referenced.", + "description": "name of the object being referenced.", "type": "string" }, "namespace": { - "description": "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.", + "description": "namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.", "type": "string" } }, @@ -15654,7 +16364,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\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.", + "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\nCommon errors: - \"no such key\": Use optional chaining (.? followed by orValue())\n or guarding the check with has() for optional fields.\n See CEL Optional Types for details:\n https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes\n\nFor more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/\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" } }, @@ -15686,7 +16396,7 @@ "type": "object" }, "io.k8s.api.resource.v1.CapacityRequestPolicyRange": { - "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", + "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\nIf the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value().\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", "properties": { "max": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", @@ -15810,11 +16520,11 @@ "description": "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.", "type": "string" }, - "nodeAllocatableResourceMappings": { + "nodeAllocatableResources": { "additionalProperties": { - "$ref": "#/definitions/io.k8s.api.resource.v1.NodeAllocatableResourceMapping" + "$ref": "#/definitions/io.k8s.api.resource.v1.NodeAllocatableResource" }, - "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.", + "description": "NodeAllocatableResources 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": { @@ -16027,9 +16737,6 @@ "description": "Spec defines what can be allocated and how to configure it.\n\nThis 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.\n\nChanging the spec automatically increments the metadata.generation number." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -16096,7 +16803,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 a beta 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.", "type": "string" }, "selectors": { @@ -16135,6 +16842,14 @@ "io.k8s.api.resource.v1.DeviceCounterConsumption": { "description": "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.", "properties": { + "compatibilityGroups": { + "description": "CompatibilityGroups is a list of opaque group names for this counter set consumption.\n\nDevices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field.\n\nAn unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups.\n\nGroup names are opaque and meaningful only within the publishing driver's pool.\n\nThe maximum number of groups is 2, and the names must be unique.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "counterSet": { "description": "CounterSet is the name of the set from which the counters defined will be consumed.", "type": "string" @@ -16153,6 +16868,24 @@ ], "type": "object" }, + "io.k8s.api.resource.v1.DeviceDerivedAttribute": { + "description": "DeviceDerivedAttribute defines a derived attribute computed via CEL.", + "properties": { + "expression": { + "description": "Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail.\n\nThe expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector.\n\nWhen pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors.\n\nThe expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks).\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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.", + "type": "string" + }, + "name": { + "description": "Name is the identifier for this derived attribute, used in constraints.\n\nIt must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\").\n\nIf the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\").\n\nIt is not valid to define a derived attribute that isn't used in at least one constraint.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": "object" + }, "io.k8s.api.resource.v1.DeviceRequest": { "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.", "properties": { @@ -16228,6 +16961,14 @@ "description": "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.", "type": "string" }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, "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 a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { @@ -16271,6 +17012,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.\n\nA class is required. Which classes are available depends on the cluster.\n\nAdministrators 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.", "type": "string" @@ -16328,6 +17077,131 @@ ], "type": "object" }, + "io.k8s.api.resource.v1.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/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRuleSpec", + "description": "Spec specifies the selector and one taint.\n\nChanging the spec automatically increments the metadata.generation number." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.resource.v1.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": "v1" + } + ] + }, + "io.k8s.api.resource.v1.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/io.k8s.api.resource.v1.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/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "DeviceTaintRuleList", + "version": "v1" + } + ] + }, + "io.k8s.api.resource.v1.DeviceTaintRuleSpec": { + "description": "DeviceTaintRuleSpec specifies the selector and one taint.", + "properties": { + "deviceSelector": { + "$ref": "#/definitions/io.k8s.api.resource.v1.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/io.k8s.api.resource.v1.DeviceTaint", + "description": "The taint that gets applied to matching devices." + } + }, + "required": [ + "taint" + ], + "type": "object" + }, + "io.k8s.api.resource.v1.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/io.k8s.apimachinery.pkg.apis.meta.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" + }, + "io.k8s.api.resource.v1.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" + }, "io.k8s.api.resource.v1.DeviceToleration": { "description": "The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator .", "properties": { @@ -16375,6 +17249,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.\n\nA DeviceClassName is required.\n\nAdministrators 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.", "type": "string" @@ -16423,16 +17305,48 @@ }, "type": "object" }, - "io.k8s.api.resource.v1.NodeAllocatableResourceMapping": { - "description": "NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.", + "io.k8s.api.resource.v1.NodeAllocatableMapping": { + "description": "NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.", "properties": { - "allocationMultiplier": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.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\".", + "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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.", "type": "string" + }, + "capacityMultiplier": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16." + }, + "deviceMultiplier": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set." + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1.NodeAllocatableOverhead": { + "description": "NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers.", + "properties": { + "perContainer": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once." + }, + "perPod": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim." + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1.NodeAllocatableResource": { + "description": "NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration.", + "properties": { + "mapping": { + "$ref": "#/definitions/io.k8s.api.resource.v1.NodeAllocatableMapping", + "description": "Mapping is used when the device directly models a node allocatable resource like standard CPU or memory (e.g., with a CPU DRA driver). The calculated quantity is accounted for exactly once per claim instance on the node. To prevent node cgroup isolation friction, the scheduler explicitly blocks sharing mapped device claims across multiple pods." + }, + "overhead": { + "$ref": "#/definitions/io.k8s.api.resource.v1.NodeAllocatableOverhead", + "description": "Overhead contains fields for modeling auxiliary overhead incurred on node allocatable resources when allocating devices that are not themselves modeling a node allocatable resource (e.g., host memory overhead for GPUs). Sharing overhead-mapped claims across multiple pods is allowed. The node allocatable overhead is accounted for individually for each pod referencing the claim. Overhead is always subtracted from the node's allocatable capacity for the resource, even when mapping is specified for the same resource. Eg: If a device models memory capacity per socket as a consumable capacity pool via Mapping (with CapacityKey), any overhead specified for the same resource will be subtracted from the node's general allocatable capacity and not from the per-socket capacity pool in Mapping." } }, "type": "object" @@ -16479,9 +17393,6 @@ "description": "Status describes whether the claim is ready to use and what has been allocated." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -16620,9 +17531,6 @@ "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -16679,9 +17587,6 @@ "description": "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." } }, - "required": [ - "spec" - ], "type": "object" }, "io.k8s.api.resource.v1.ResourcePool": { @@ -16693,7 +17598,7 @@ "type": "integer" }, "name": { - "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", + "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", "type": "string" }, "resourceSliceCount": { @@ -16803,6 +17708,10 @@ "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", "description": "NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.\n\nMust use exactly one term.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set." }, + "partitionTypeAttribute": { + "description": "PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU.\n\nWhen set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.", + "type": "string" + }, "perDeviceNodeSelection": { "description": "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.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.", "type": "boolean" @@ -16818,6 +17727,14 @@ }, "type": "array", "x-kubernetes-list-type": "atomic" + }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are:\n\n- \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This\n value cannot be specified unless \"NodeUnprepareResources\" is also listed\n (or \"*\" is specified).\n- \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped.\n\nOther values may be added in the future. The kubelet must ignore unknown values.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" } }, "required": [ @@ -16977,6 +17894,36 @@ }, "type": "object" }, + "io.k8s.api.resource.v1alpha3.PartitionTypeStatus": { + "description": "PartitionTypeStatus reports allocatability for a single partition type, identified by the value of a grouping attribute.", + "properties": { + "allocatable": { + "description": "Allocatable is the number of additional devices of this partition type that could still be allocated given current shared-counter consumption.", + "format": "int32", + "type": "integer" + }, + "attribute": { + "description": "Attribute is the fully qualified name of the device attribute whose value groups this entry. It is the PartitionTypeAttribute declared by the devices' own slice, or the default named in the request when their slice declares none.", + "type": "string" + }, + "total": { + "description": "Total is the number of devices of this partition type in the pool.", + "format": "int32", + "type": "integer" + }, + "type": { + "description": "Type is the partition type value (e.g. \"Full\" or \"Half\").", + "type": "string" + } + }, + "required": [ + "attribute", + "type", + "total", + "allocatable" + ], + "type": "object" + }, "io.k8s.api.resource.v1alpha3.PoolStatus": { "description": "PoolStatus contains status information for a single resource pool.", "properties": { @@ -17003,6 +17950,14 @@ "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" }, + "partitionSummary": { + "description": "PartitionSummary reports allocatability per (attribute, partition type) for a partitionable pool that publishes SharedCounters. Each entry names the grouping attribute it was resolved from: the PartitionTypeAttribute declared by a device's own slice, or for devices whose slice declares none, the default named in the request. A pool that mixes partitions declared under different attributes reports each independently. When no slice declares an attribute and the request names no default, the pool reports no partition summary.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.PartitionTypeStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "poolName": { "description": "PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by \"/\").", "type": "string" @@ -17012,6 +17967,10 @@ "format": "int32", "type": "integer" }, + "shareableSummary": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ShareableSummaryStatus", + "description": "ShareableSummary reports aggregate capacity for a pool that contains devices with AllowMultipleAllocations. It is populated only when at least one device in the pool is shareable." + }, "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", @@ -17109,6 +18068,10 @@ "io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequestSpec": { "description": "ResourcePoolStatusRequestSpec defines the filters for the pool status request.", "properties": { + "defaultPartitionTypeAttribute": { + "description": "DefaultPartitionTypeAttribute optionally names a device attribute (by its fully qualified name, e.g. \"gpu.example.com/profile\") to use as the default grouping attribute for partitionable devices whose slice has not declared one themselves.\n\nA slice's own PartitionTypeAttribute always takes precedence. This default applies only to devices whose slice does not declare one, so that a request can still get an accurate partitionSummary from a driver that has not been updated to declare it. When neither the slice nor this default names an attribute, a partitionable pool reports no partitionSummary.\n\nMust include the domain qualifier.", + "type": "string" + }, "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" @@ -17163,6 +18126,62 @@ ], "type": "object" }, + "io.k8s.api.resource.v1alpha3.ShareableCapacityStatus": { + "description": "ShareableCapacityStatus reports aggregate amounts for a single shareable capacity key.", + "properties": { + "available": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "Available is Total minus Consumed, never negative." + }, + "consumed": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "Consumed is the amount drawn by current allocations." + }, + "name": { + "description": "Name is the capacity name.", + "type": "string" + }, + "total": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "Total is the sum of this capacity across shareable devices in the pool." + } + }, + "required": [ + "name", + "total", + "consumed", + "available" + ], + "type": "object" + }, + "io.k8s.api.resource.v1alpha3.ShareableSummaryStatus": { + "description": "ShareableSummaryStatus reports aggregate capacity for a pool that contains devices with AllowMultipleAllocations.", + "properties": { + "capacity": { + "description": "Capacity reports aggregate total, consumed, and available amounts per shareable capacity key across the pool.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ShareableCapacityStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "fullyAvailableDevices": { + "description": "FullyAvailableDevices is the number of shareable devices with no capacity consumed.", + "format": "int32", + "type": "integer" + }, + "partiallyAvailableDevices": { + "description": "PartiallyAvailableDevices is the number of shareable devices with some but not all capacity consumed.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "fullyAvailableDevices", + "partiallyAvailableDevices" + ], + "type": "object" + }, "io.k8s.api.resource.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": { @@ -17280,11 +18299,11 @@ "type": "array", "x-kubernetes-list-type": "atomic" }, - "nodeAllocatableResourceMappings": { + "nodeAllocatableResources": { "additionalProperties": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.NodeAllocatableResourceMapping" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.NodeAllocatableResource" }, - "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.", + "description": "NodeAllocatableResources 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": { @@ -17310,7 +18329,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\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.", + "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\nCommon errors: - \"no such key\": Use optional chaining (.? followed by orValue())\n or guarding the check with has() for optional fields.\n See CEL Optional Types for details:\n https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes\n\nFor more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/\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" } }, @@ -17342,7 +18361,7 @@ "type": "object" }, "io.k8s.api.resource.v1beta1.CapacityRequestPolicyRange": { - "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", + "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\nIf the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value().\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", "properties": { "max": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", @@ -17614,9 +18633,6 @@ "description": "Spec defines what can be allocated and how to configure it.\n\nThis 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.\n\nChanging the spec automatically increments the metadata.generation number." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -17683,7 +18699,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 a beta 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.", "type": "string" }, "selectors": { @@ -17722,6 +18738,14 @@ "io.k8s.api.resource.v1beta1.DeviceCounterConsumption": { "description": "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.", "properties": { + "compatibilityGroups": { + "description": "CompatibilityGroups is a list of opaque group names for this counter set consumption.\n\nDevices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field.\n\nAn unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups.\n\nGroup names are opaque and meaningful only within the publishing driver's pool.\n\nThe maximum number of groups is 2, and the names must be unique.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "counterSet": { "description": "CounterSet is the name of the set from which the counters defined will be consumed.", "type": "string" @@ -17740,6 +18764,24 @@ ], "type": "object" }, + "io.k8s.api.resource.v1beta1.DeviceDerivedAttribute": { + "description": "DeviceDerivedAttribute defines a derived attribute computed via CEL.", + "properties": { + "expression": { + "description": "Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail.\n\nThe expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector.\n\nWhen pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors.\n\nThe expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks).\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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.", + "type": "string" + }, + "name": { + "description": "Name is the identifier for this derived attribute, used in constraints.\n\nIt must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\").\n\nIf the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\").\n\nIt is not valid to define a derived attribute that isn't used in at least one constraint.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": "object" + }, "io.k8s.api.resource.v1beta1.DeviceRequest": { "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.", "properties": { @@ -17760,6 +18802,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.\n\nA class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster.\n\nAdministrators 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.", "type": "string" @@ -17848,6 +18898,14 @@ "description": "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.", "type": "string" }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, "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 a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { @@ -17891,6 +18949,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.\n\nA class is required. Which classes are available depends on the cluster.\n\nAdministrators 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.", "type": "string" @@ -17997,16 +19063,48 @@ }, "type": "object" }, - "io.k8s.api.resource.v1beta1.NodeAllocatableResourceMapping": { - "description": "NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.", + "io.k8s.api.resource.v1beta1.NodeAllocatableMapping": { + "description": "NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices or the specific capacity consumed. These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.", "properties": { - "allocationMultiplier": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.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\".", + "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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.", "type": "string" + }, + "capacityMultiplier": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16." + }, + "deviceMultiplier": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set." + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1beta1.NodeAllocatableOverhead": { + "description": "NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers.", + "properties": { + "perContainer": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once." + }, + "perPod": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim." + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1beta1.NodeAllocatableResource": { + "description": "NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration.", + "properties": { + "mapping": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.NodeAllocatableMapping", + "description": "Mapping is used when the device directly models a node allocatable resource like standard CPU or memory (e.g., with a CPU DRA driver). The calculated quantity is accounted for exactly once per claim instance on the node. To prevent node cgroup isolation friction, the scheduler explicitly blocks sharing mapped device claims across multiple pods." + }, + "overhead": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.NodeAllocatableOverhead", + "description": "Overhead contains fields for modeling auxiliary overhead incurred on node allocatable resources when allocating devices that are not themselves modeling a node allocatable resource (e.g., host memory overhead for GPUs). Sharing overhead-mapped claims across multiple pods is allowed. The node allocatable overhead is accounted for individually for each pod referencing the claim. Overhead is always subtracted from the node's allocatable capacity for the resource, even when mapping is specified for the same resource. Eg: If a device models memory capacity per socket as a consumable capacity pool via Mapping (with CapacityKey), any overhead specified for the same resource will be subtracted from the node's general allocatable capacity and not from the per-socket capacity pool in Mapping." } }, "type": "object" @@ -18053,9 +19151,6 @@ "description": "Status describes whether the claim is ready to use and what has been allocated." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -18194,9 +19289,6 @@ "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -18253,9 +19345,6 @@ "description": "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." } }, - "required": [ - "spec" - ], "type": "object" }, "io.k8s.api.resource.v1beta1.ResourcePool": { @@ -18267,7 +19356,7 @@ "type": "integer" }, "name": { - "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", + "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", "type": "string" }, "resourceSliceCount": { @@ -18377,6 +19466,10 @@ "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", "description": "NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.\n\nMust use exactly one term.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set." }, + "partitionTypeAttribute": { + "description": "PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU.\n\nWhen set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.", + "type": "string" + }, "perDeviceNodeSelection": { "description": "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.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.", "type": "boolean" @@ -18392,6 +19485,14 @@ }, "type": "array", "x-kubernetes-list-type": "atomic" + }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are:\n\n- \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This\n value cannot be specified unless \"NodeUnprepareResources\" is also listed\n (or \"*\" is specified).\n- \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped.\n\nOther values may be added in the future. The kubelet must ignore unknown values.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" } }, "required": [ @@ -18468,7 +19569,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\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.", + "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\nCommon errors: - \"no such key\": Use optional chaining (.? followed by orValue())\n or guarding the check with has() for optional fields.\n See CEL Optional Types for details:\n https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes\n\nFor more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/\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" } }, @@ -18500,7 +19601,7 @@ "type": "object" }, "io.k8s.api.resource.v1beta2.CapacityRequestPolicyRange": { - "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", + "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\nIf the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value().\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", "properties": { "max": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", @@ -18624,11 +19725,11 @@ "description": "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.", "type": "string" }, - "nodeAllocatableResourceMappings": { + "nodeAllocatableResources": { "additionalProperties": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.NodeAllocatableResourceMapping" + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.NodeAllocatableResource" }, - "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.", + "description": "NodeAllocatableResources 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": { @@ -18841,9 +19942,6 @@ "description": "Spec defines what can be allocated and how to configure it.\n\nThis 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.\n\nChanging the spec automatically increments the metadata.generation number." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -18910,7 +20008,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 a beta 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.", "type": "string" }, "selectors": { @@ -18949,6 +20047,14 @@ "io.k8s.api.resource.v1beta2.DeviceCounterConsumption": { "description": "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.", "properties": { + "compatibilityGroups": { + "description": "CompatibilityGroups is a list of opaque group names for this counter set consumption.\n\nDevices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field.\n\nAn unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups.\n\nGroup names are opaque and meaningful only within the publishing driver's pool.\n\nThe maximum number of groups is 2, and the names must be unique.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "counterSet": { "description": "CounterSet is the name of the set from which the counters defined will be consumed.", "type": "string" @@ -18967,6 +20073,24 @@ ], "type": "object" }, + "io.k8s.api.resource.v1beta2.DeviceDerivedAttribute": { + "description": "DeviceDerivedAttribute defines a derived attribute computed via CEL.", + "properties": { + "expression": { + "description": "Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail.\n\nThe expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector.\n\nWhen pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors.\n\nThe expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks).\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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.", + "type": "string" + }, + "name": { + "description": "Name is the identifier for this derived attribute, used in constraints.\n\nIt must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\").\n\nIf the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\").\n\nIt is not valid to define a derived attribute that isn't used in at least one constraint.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": "object" + }, "io.k8s.api.resource.v1beta2.DeviceRequest": { "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.", "properties": { @@ -19042,6 +20166,14 @@ "description": "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.", "type": "string" }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, "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 a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { @@ -19085,6 +20217,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.\n\nA class is required. Which classes are available depends on the cluster.\n\nAdministrators 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.", "type": "string" @@ -19314,6 +20454,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.\n\nA DeviceClassName is required.\n\nAdministrators 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.", "type": "string" @@ -19362,16 +20510,48 @@ }, "type": "object" }, - "io.k8s.api.resource.v1beta2.NodeAllocatableResourceMapping": { - "description": "NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.", + "io.k8s.api.resource.v1beta2.NodeAllocatableMapping": { + "description": "NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.", "properties": { - "allocationMultiplier": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.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\".", + "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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.", "type": "string" + }, + "capacityMultiplier": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16." + }, + "deviceMultiplier": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set." + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1beta2.NodeAllocatableOverhead": { + "description": "NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers.", + "properties": { + "perContainer": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once." + }, + "perPod": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim." + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1beta2.NodeAllocatableResource": { + "description": "NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration.", + "properties": { + "mapping": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.NodeAllocatableMapping", + "description": "Mapping is used when the device directly models a node allocatable resource like standard CPU or memory (e.g., with a CPU DRA driver). The calculated quantity is accounted for exactly once per claim instance on the node. To prevent node cgroup isolation friction, the scheduler explicitly blocks sharing mapped device claims across multiple pods." + }, + "overhead": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.NodeAllocatableOverhead", + "description": "Overhead contains fields for modeling auxiliary overhead incurred on node allocatable resources when allocating devices that are not themselves modeling a node allocatable resource (e.g., host memory overhead for GPUs). Sharing overhead-mapped claims across multiple pods is allowed. The node allocatable overhead is accounted for individually for each pod referencing the claim. Overhead is always subtracted from the node's allocatable capacity for the resource, even when mapping is specified for the same resource. Eg: If a device models memory capacity per socket as a consumable capacity pool via Mapping (with CapacityKey), any overhead specified for the same resource will be subtracted from the node's general allocatable capacity and not from the per-socket capacity pool in Mapping." } }, "type": "object" @@ -19418,9 +20598,6 @@ "description": "Status describes whether the claim is ready to use and what has been allocated." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -19559,9 +20736,6 @@ "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -19618,9 +20792,6 @@ "description": "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." } }, - "required": [ - "spec" - ], "type": "object" }, "io.k8s.api.resource.v1beta2.ResourcePool": { @@ -19632,7 +20803,7 @@ "type": "integer" }, "name": { - "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", + "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", "type": "string" }, "resourceSliceCount": { @@ -19742,6 +20913,10 @@ "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", "description": "NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.\n\nMust use exactly one term.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set." }, + "partitionTypeAttribute": { + "description": "PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU.\n\nWhen set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.", + "type": "string" + }, "perDeviceNodeSelection": { "description": "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.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.", "type": "boolean" @@ -19757,6 +20932,14 @@ }, "type": "array", "x-kubernetes-list-type": "atomic" + }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are:\n\n- \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This\n value cannot be specified unless \"NodeUnprepareResources\" is also listed\n (or \"*\" is specified).\n- \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped.\n\nOther values may be added in the future. The kubelet must ignore unknown values.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" } }, "required": [ @@ -19786,7 +20969,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "preemptionPolicy": { "description": "preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", @@ -19842,15 +21025,315 @@ } ] }, - "io.k8s.api.scheduling.v1alpha2.BasicSchedulingPolicy": { + "io.k8s.api.scheduling.v1alpha3.AllCompositeDisruptionMode": { + "description": "AllCompositeDisruptionMode means that children of a CompositePodGroup can only be disrupted or preempted together.", + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.AllDisruptionMode": { + "description": "AllDisruptionMode specifies that children can only be disrupted together.", + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.BasicSchedulingPolicy": { "description": "BasicSchedulingPolicy indicates that standard Kubernetes scheduling behavior should be used.", "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.GangSchedulingPolicy": { + "io.k8s.api.scheduling.v1alpha3.CompositeBasicSchedulingPolicy": { + "description": "CompositeBasicSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled independently.", + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.CompositeDisruptionMode": { + "description": "CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set.", + "properties": { + "all": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.AllCompositeDisruptionMode", + "description": "all specifies that all children groups can only be disrupted together." + }, + "single": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.SingleCompositeDisruptionMode", + "description": "single specifies that children groups can be disrupted independently from each other." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } + } + ] + }, + "io.k8s.api.scheduling.v1alpha3.CompositeGangSchedulingPolicy": { + "description": "CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics.", + "properties": { + "minGroupCount": { + "description": "minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "minGroupCount" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.CompositePodGroup": { + "description": "CompositePodGroup represents a runtime instance of pod groups grouped together. CompositePodGroups are created by workload controllers (LWS, JobSet, etc...) from Workload.compositePodGroupTemplates. CompositePodGroup API enablement is toggled by the CompositePodGroup 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/io.k8s.apimachinery.pkg.apis.meta.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/io.k8s.api.scheduling.v1alpha3.CompositePodGroupSpec", + "description": "spec defines the desired state of the CompositePodGroup." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroupStatus", + "description": "status represents the current observed state of the CompositePodGroup." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + ] + }, + "io.k8s.api.scheduling.v1alpha3.CompositePodGroupList": { + "description": "CompositePodGroupList contains a list of CompositePodGroup 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 CompositePodGroups.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + }, + "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/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroupList", + "version": "v1alpha3" + } + ] + }, + "io.k8s.api.scheduling.v1alpha3.CompositePodGroupSchedulingConstraints": { + "description": "CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup.", + "properties": { + "topology": { + "description": "topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.TopologyConstraint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.CompositePodGroupSchedulingPolicy": { + "description": "CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set.", + "properties": { + "basic": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositeBasicSchedulingPolicy", + "description": "basic specifies that the groups of this composite group should be scheduled independently. This field is immutable." + }, + "gang": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositeGangSchedulingPolicy", + "description": "gang specifies that the groups of this composite group should be scheduled using all-or-nothing semantics." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "basic": "Basic", + "gang": "Gang" + } + } + ] + }, + "io.k8s.api.scheduling.v1alpha3.CompositePodGroupSpec": { + "description": "CompositePodGroupSpec defines the desired state of CompositePodGroup.", + "properties": { + "disruptionMode": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositeDisruptionMode", + "description": "disruptionMode defines the mode in which a given CompositePodGroup can be disrupted. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. One of Single, All. Defaults to Single if unset. This field is immutable." + }, + "parentCompositePodGroupName": { + "description": "parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this composite pod group. It must be a DNS name. If it's nil, then this composite pod group is a root of a workload's hierarchy. This field is immutable.", + "type": "string" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" + }, + "priority": { + "description": "priority is the value of priority of this composite pod group. Various system components use this field to find the priority of the composite 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.", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "priorityClassName defines the priority that should be considered when scheduling this CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. If left unspecified, it is validated and resolved similarly to the PriorityClassName field in Pods (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the composite pod group's priority will be zero). This field is immutable.", + "type": "string" + }, + "schedulingConstraints": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroupSchedulingConstraints", + "description": "schedulingConstraints defines optional scheduling constraints (e.g. topology) for this CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. This field is immutable." + }, + "schedulingPolicy": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this instance of the CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. This field is immutable." + }, + "workloadRef": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadReference", + "description": "workloadRef references an optional CompositePodGroup template within the Workload object that was used to create the CompositePodGroup. This field is required. This field is immutable." + } + }, + "required": [ + "workloadRef", + "schedulingPolicy" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.CompositePodGroupStatus": { + "description": "CompositePodGroupStatus represents information about the status of a composite pod group.", + "properties": { + "conditions": { + "description": "conditions represent the latest observations of the CompositePodGroup's state.\n\nKnown condition types: - \"CompositePodGroupInitiallyScheduled\": Indicates whether the overall scheduling requirement\n for the subtree under this CompositePodGroup has been satisfied. Once this condition\n transitions to True, it serves as a terminal state and will never revert to False,\n even if pods are subsequently deleted and group constraints are no longer met.\n- \"DisruptionTarget\": Indicates whether the CompositePodGroup is about to be terminated\n due to disruption such as preemption.\n\nKnown reasons for the CompositePodGroupInitiallyScheduled condition: - \"Unschedulable\": The CompositePodGroup's subtree could not be placed due to resource constraints,\n affinity/anti-affinity, or topological constraints.\n- \"SchedulerError\": The CompositePodGroup cannot be scheduled due to some internal error\n that occurred during scheduling.\n- \"Invalid\": Set to True when kube-scheduler detects an invalid group layout during\n runtime validation. The `message` field details the specific layout violation (such as\n a detected cycle, exceeding the maximum depth of 4, or referencing multiple distinct Workloads).\n\nKnown reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The CompositePodGroup was targeted by the scheduler's preemption loop\n to free up capacity for higher-priority preemptors.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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" + }, + "io.k8s.api.scheduling.v1alpha3.CompositePodGroupTemplate": { + "description": "CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.", + "properties": { + "compositePodGroupTemplates": { + "description": "compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "disruptionMode": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositeDisruptionMode", + "description": "disruptionMode defines the mode in which a given CompositePodGroup can be disrupted. One of Single, All. This field is immutable." + }, + "name": { + "description": "name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required.", + "type": "string" + }, + "podGroupTemplates": { + "description": "podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" + }, + "priority": { + "description": "priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite 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.", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "priorityClassName indicates the priority that should be considered when scheduling a composite 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, composite pod groups created from this template will have the priority set to zero. This field is immutable.", + "type": "string" + }, + "schedulingConstraints": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroupSchedulingConstraints", + "description": "schedulingConstraints defines optional scheduling constraints (e.g. topology) for this CompositePodGroupTemplate. This field is immutable." + }, + "schedulingPolicy": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this template." + } + }, + "required": [ + "name", + "schedulingPolicy" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.DisruptionMode": { + "description": "DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set.", + "properties": { + "all": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.AllDisruptionMode", + "description": "all specifies that all children can only be disrupted together." + }, + "single": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.SingleDisruptionMode", + "description": "single specifies that children can be disrupted independently from each other." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } + } + ] + }, + "io.k8s.api.scheduling.v1alpha3.GangSchedulingPolicy": { "description": "GangSchedulingPolicy defines the parameters for gang scheduling.", "properties": { "minCount": { - "description": "MinCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.", + "description": "minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling.\n\nNote that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles.", "format": "int32", "type": "integer" } @@ -19860,7 +21343,7 @@ ], "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.PodGroup": { + "io.k8s.api.scheduling.v1alpha3.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": { @@ -19873,15 +21356,15 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroupSpec", - "description": "Spec defines the desired state of the PodGroup." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroupSpec", + "description": "spec defines the desired state of the PodGroup." }, "status": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroupStatus", - "description": "Status represents the current observed state of the PodGroup." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroupStatus", + "description": "status represents the current observed state of the PodGroup." } }, "required": [ @@ -19892,11 +21375,11 @@ { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1alpha3" } ] }, - "io.k8s.api.scheduling.v1alpha2.PodGroupList": { + "io.k8s.api.scheduling.v1alpha3.PodGroupList": { "description": "PodGroupList contains a list of PodGroup resources.", "properties": { "apiVersion": { @@ -19906,7 +21389,7 @@ "items": { "description": "Items is the list of PodGroups.", "items": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" }, "type": "array" }, @@ -19927,23 +21410,23 @@ { "group": "scheduling.k8s.io", "kind": "PodGroupList", - "version": "v1alpha2" + "version": "v1alpha3" } ] }, - "io.k8s.api.scheduling.v1alpha2.PodGroupResourceClaim": { + "io.k8s.api.scheduling.v1alpha3.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.", + "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.", + "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.", + "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" } }, @@ -19952,15 +21435,15 @@ ], "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.PodGroupResourceClaimStatus": { + "io.k8s.api.scheduling.v1alpha3.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 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.", + "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.", + "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" } }, @@ -19969,13 +21452,13 @@ ], "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.PodGroupSchedulingConstraints": { + "io.k8s.api.scheduling.v1alpha3.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.", + "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/io.k8s.api.scheduling.v1alpha2.TopologyConstraint" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.TopologyConstraint" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -19983,16 +21466,16 @@ }, "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.PodGroupSchedulingPolicy": { - "description": "PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set.", + "io.k8s.api.scheduling.v1alpha3.PodGroupSchedulingPolicy": { + "description": "PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it.", "properties": { "basic": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.BasicSchedulingPolicy", - "description": "Basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.BasicSchedulingPolicy", + "description": "basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward." }, "gang": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.GangSchedulingPolicy", - "description": "Gang specifies that the pods in this group should be scheduled using all-or-nothing semantics." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.GangSchedulingPolicy", + "description": "gang specifies that the pods in this group should be scheduled using all-or-nothing semantics. Setting this field at group creation time opts this group to gang scheduling; this field cannot be set or unset afterward. The minCount field within Gang scheduling policy remains mutable after group creation." } }, "type": "object", @@ -20005,30 +21488,34 @@ } ] }, - "io.k8s.api.scheduling.v1alpha2.PodGroupSpec": { + "io.k8s.api.scheduling.v1alpha3.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.", + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.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 Single, All. Defaults to Single if unset. This field is immutable." + }, + "parentCompositePodGroupName": { + "description": "parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable.", "type": "string" }, - "podGroupTemplateRef": { - "$ref": "#/definitions/io.k8s.api.scheduling.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." + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" }, "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.", + "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.", "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.", + "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.", "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.", + "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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", "items": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroupResourceClaim" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroupResourceClaim" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -20039,12 +21526,16 @@ "x-kubernetes-patch-strategy": "merge,retainKeys" }, "schedulingConstraints": { - "$ref": "#/definitions/io.k8s.api.scheduling.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." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.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/io.k8s.api.scheduling.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." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.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." + }, + "workloadRef": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadReference", + "description": "workloadRef references an optional PodGroup template within the Workload object that was used to create the PodGroup. This field is immutable." } }, "required": [ @@ -20052,11 +21543,11 @@ ], "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.PodGroupStatus": { + "io.k8s.api.scheduling.v1alpha3.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.", + "description": "conditions represent the latest observations of the PodGroup's state.\n\nKnown condition types: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated\n due to disruption such as preemption.\n\nKnown reasons for the PodGroupInitiallyScheduled 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/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" }, @@ -20069,9 +21560,9 @@ "x-kubernetes-patch-strategy": "merge" }, "resourceClaimStatuses": { - "description": "Status of resource claims.", + "description": "resourceClaimStatuses is status of resource claims.", "items": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroupResourceClaimStatus" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroupResourceClaimStatus" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -20084,30 +21575,34 @@ }, "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.PodGroupTemplate": { + "io.k8s.api.scheduling.v1alpha3.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" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.DisruptionMode", + "description": "disruptionMode defines the mode in which a given PodGroup can be disrupted. One of Single, All. This field is immutable." }, "name": { - "description": "Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.", + "description": "name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.", + "type": "string" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", "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.", + "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. The higher the value, the higher the priority. This field is immutable.", "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.", + "description": "priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable.", "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.", + "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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", "items": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroupResourceClaim" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroupResourceClaim" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -20118,12 +21613,12 @@ "x-kubernetes-patch-strategy": "merge,retainKeys" }, "schedulingConstraints": { - "$ref": "#/definitions/io.k8s.api.scheduling.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." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.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. This field is immutable." }, "schedulingPolicy": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroupSchedulingPolicy", - "description": "SchedulingPolicy defines the scheduling policy for this PodGroupTemplate." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this PodGroupTemplate." } }, "required": [ @@ -20132,28 +21627,19 @@ ], "type": "object" }, - "io.k8s.api.scheduling.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/io.k8s.api.scheduling.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" - } - } - ] + "io.k8s.api.scheduling.v1alpha3.SingleCompositeDisruptionMode": { + "description": "SingleCompositeDisruptionMode means that individual children of a CompositePodGroup can be disrupted or preempted independently.", + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.SingleDisruptionMode": { + "description": "SingleDisruptionMode specifies that children can be disrupted independently.", + "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.TopologyConstraint": { + "io.k8s.api.scheduling.v1alpha3.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\"", + "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" } }, @@ -20162,19 +21648,19 @@ ], "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.TypedLocalObjectReference": { + "io.k8s.api.scheduling.v1alpha3.TypedLocalObjectReference": { "description": "TypedLocalObjectReference allows to reference typed object inside the same namespace.", "properties": { "apiGroup": { - "description": "APIGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain.", + "description": "apiGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain.", "type": "string" }, "kind": { - "description": "Kind is the type of resource being referenced. It must be a path segment name.", + "description": "kind is the type of resource being referenced. It must be a path segment name.", "type": "string" }, "name": { - "description": "Name is the name of resource being referenced. It must be a path segment name.", + "description": "name is the name of resource being referenced. It must be a path segment name.", "type": "string" } }, @@ -20184,7 +21670,7 @@ ], "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.Workload": { + "io.k8s.api.scheduling.v1alpha3.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": { @@ -20197,11 +21683,11 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.WorkloadSpec", - "description": "Spec defines the desired behavior of a Workload." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadSpec", + "description": "spec defines the desired behavior of a Workload." } }, "required": [ @@ -20212,11 +21698,11 @@ { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1alpha3" } ] }, - "io.k8s.api.scheduling.v1alpha2.WorkloadList": { + "io.k8s.api.scheduling.v1alpha3.WorkloadList": { "description": "WorkloadList contains a list of Workload resources.", "properties": { "apiVersion": { @@ -20226,7 +21712,7 @@ "items": { "description": "Items is the list of Workloads.", "items": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" }, "type": "array" }, @@ -20247,39 +21733,152 @@ { "group": "scheduling.k8s.io", "kind": "WorkloadList", - "version": "v1alpha2" + "version": "v1alpha3" + } + ] + }, + "io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupAllDisruptionMode": { + "description": "WorkloadPodGroupAllDisruptionMode indicates that all pods in the group must be disrupted together.", + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupBasicSchedulingPolicy": { + "description": "WorkloadPodGroupBasicSchedulingPolicy indicates standard Kubernetes scheduling behavior.", + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupDisruptionMode": { + "description": "WorkloadPodGroupDisruptionMode defines how individual pods within a group can be disrupted. Exactly one mode must be set.", + "properties": { + "all": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupAllDisruptionMode", + "description": "all specifies that all pods in the group must be disrupted together." + }, + "single": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupSingleDisruptionMode", + "description": "single specifies that pods can be disrupted independently from each other." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } + } + ] + }, + "io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupGangSchedulingPolicy": { + "description": "WorkloadPodGroupGangSchedulingPolicy defines the parameters for gang (all-or-nothing) scheduling.", + "properties": { + "minCount": { + "description": "minCount is the minimum number of pods that must be scheduled at the same time for the scheduler to admit the entire group. This field is optional. If it is not specified, the controller should inject a context-specific sane default (e.g., parallelism for a Job). If set, it must be a positive integer.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupResourceClaim": { + "description": "WorkloadPodGroupResourceClaim references a dynamic resource claim that is shared across pods in the group.", + "properties": { + "name": { + "description": "name uniquely identifies this resource claim inside the group. This field is required. It must be a DNS_LABEL.", + "type": "string" + }, + "resourceClaimName": { + "description": "resourceClaimName is the name of a ResourceClaim object in the same namespace. This field is optional. If it is not specified, no resource claim is used. If set, it must be a DNS subdomain.", + "type": "string" + }, + "resourceClaimTemplateName": { + "description": "resourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace. This field is optional. If it is not specified, no resource claim template is used. If set, it must be a DNS subdomain.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupSchedulingConstraints": { + "description": "WorkloadPodGroupSchedulingConstraints defines leaf-level scheduling constraints, such as topology.", + "properties": { + "topology": { + "description": "topology specifies desired topological placements for all pods within the pod group. If unset, no topology placement is requested.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.TopologyConstraint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupSchedulingPolicy": { + "description": "WorkloadPodGroupSchedulingPolicy defines the scheduling policy for a group of pods managed by a workload controller. Exactly one policy must be set.", + "properties": { + "basic": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupBasicSchedulingPolicy", + "description": "basic specifies that standard, pod-by-pod Kubernetes scheduling behavior should be used." + }, + "gang": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupGangSchedulingPolicy", + "description": "gang specifies all-or-nothing scheduling semantics." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "basic": "Basic", + "gang": "Gang" + } } ] }, - "io.k8s.api.scheduling.v1alpha2.WorkloadPodGroupTemplateReference": { - "description": "WorkloadPodGroupTemplateReference references the PodGroupTemplate within the Workload object.", + "io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupSingleDisruptionMode": { + "description": "WorkloadPodGroupSingleDisruptionMode indicates that individual pods can be disrupted independently.", + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.WorkloadReference": { + "description": "WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup.", "properties": { - "podGroupTemplateName": { - "description": "PodGroupTemplateName defines the PodGroupTemplate name within the Workload object.", + "templateName": { + "description": "templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required.", "type": "string" }, "workloadName": { - "description": "WorkloadName defines the name of the Workload object.", + "description": "workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required.", "type": "string" } }, "required": [ "workloadName", - "podGroupTemplateName" + "templateName" ], "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.WorkloadSpec": { + "io.k8s.api.scheduling.v1alpha3.WorkloadSpec": { "description": "WorkloadSpec defines the desired state of a Workload.", "properties": { + "compositePodGroupTemplates": { + "description": "compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.\n\nThis field is used only when the CompositePodGroup feature gate is enabled.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, "controllerRef": { - "$ref": "#/definitions/io.k8s.api.scheduling.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." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.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." }, "podGroupTemplates": { - "description": "PodGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. This field is immutable.", + "description": "podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.", "items": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroupTemplate" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroupTemplate" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -20288,13 +21887,195 @@ "x-kubernetes-list-type": "map" } }, + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.AllCompositeDisruptionMode": { + "description": "AllCompositeDisruptionMode means that children of a CompositePodGroup can only be disrupted or preempted together.", + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.AllDisruptionMode": { + "description": "AllDisruptionMode specifies that children can only be disrupted together.", + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.BasicSchedulingPolicy": { + "description": "BasicSchedulingPolicy indicates that standard Kubernetes scheduling behavior should be used.", + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.CompositeBasicSchedulingPolicy": { + "description": "CompositeBasicSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled independently.", + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.CompositeDisruptionMode": { + "description": "CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set.", + "properties": { + "all": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.AllCompositeDisruptionMode", + "description": "all specifies that all children groups can only be disrupted together." + }, + "single": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.SingleCompositeDisruptionMode", + "description": "single specifies that children groups can be disrupted independently from each other." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } + } + ] + }, + "io.k8s.api.scheduling.v1beta1.CompositeGangSchedulingPolicy": { + "description": "CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics.", + "properties": { + "minGroupCount": { + "description": "minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.", + "format": "int32", + "type": "integer" + } + }, "required": [ - "podGroupTemplates" + "minGroupCount" ], "type": "object" }, - "io.k8s.api.storage.v1.CSIDriver": { - "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.", + "io.k8s.api.scheduling.v1beta1.CompositePodGroupSchedulingConstraints": { + "description": "CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup.", + "properties": { + "topology": { + "description": "topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.TopologyConstraint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.CompositePodGroupSchedulingPolicy": { + "description": "CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set.", + "properties": { + "basic": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.CompositeBasicSchedulingPolicy", + "description": "basic specifies that the groups of this composite group should be scheduled independently. This field is immutable." + }, + "gang": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.CompositeGangSchedulingPolicy", + "description": "gang specifies that the groups of this composite group should be scheduled using all-or-nothing semantics." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "basic": "Basic", + "gang": "Gang" + } + } + ] + }, + "io.k8s.api.scheduling.v1beta1.CompositePodGroupTemplate": { + "description": "CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.", + "properties": { + "compositePodGroupTemplates": { + "description": "compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.CompositePodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "disruptionMode": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.CompositeDisruptionMode", + "description": "disruptionMode defines the mode in which a given CompositePodGroup can be disrupted. One of Single, All. This field is immutable." + }, + "name": { + "description": "name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required.", + "type": "string" + }, + "podGroupTemplates": { + "description": "podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" + }, + "priority": { + "description": "priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite 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.", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "priorityClassName indicates the priority that should be considered when scheduling a composite 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, composite pod groups created from this template will have the priority set to zero. This field is immutable.", + "type": "string" + }, + "schedulingConstraints": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.CompositePodGroupSchedulingConstraints", + "description": "schedulingConstraints defines optional scheduling constraints (e.g. topology) for this CompositePodGroupTemplate. This field is immutable." + }, + "schedulingPolicy": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.CompositePodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this template." + } + }, + "required": [ + "name", + "schedulingPolicy" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.DisruptionMode": { + "description": "DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set.", + "properties": { + "all": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.AllDisruptionMode", + "description": "all specifies that all children can only be disrupted together." + }, + "single": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.SingleDisruptionMode", + "description": "single specifies that children can be disrupted independently from each other." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } + } + ] + }, + "io.k8s.api.scheduling.v1beta1.GangSchedulingPolicy": { + "description": "GangSchedulingPolicy defines the parameters for gang scheduling.", + "properties": { + "minCount": { + "description": "minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling.\n\nNote that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "minCount" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.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", @@ -20306,11 +22087,15 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. 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/io.k8s.api.storage.v1.CSIDriverSpec", - "description": "spec represents the specification of the CSI Driver." + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroupSpec", + "description": "spec defines the desired state of the PodGroup." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroupStatus", + "description": "status represents the current observed state of the PodGroup." } }, "required": [ @@ -20319,23 +22104,23 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSIDriver", - "version": "v1" + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1beta1" } ] }, - "io.k8s.api.storage.v1.CSIDriverList": { - "description": "CSIDriverList is a collection of CSIDriver objects.", + "io.k8s.api.scheduling.v1beta1.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 CSIDriver", + "description": "Items is the list of PodGroups.", "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" }, "type": "array" }, @@ -20345,7 +22130,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata." } }, "required": [ @@ -20354,41 +22139,481 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSIDriverList", - "version": "v1" + "group": "scheduling.k8s.io", + "kind": "PodGroupList", + "version": "v1beta1" } ] }, - "io.k8s.api.storage.v1.CSIDriverSpec": { - "description": "CSIDriverSpec is the specification of a CSIDriver.", + "io.k8s.api.scheduling.v1beta1.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": { - "attachRequired": { - "description": "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.\n\nThis field is immutable.", - "type": "boolean" - }, - "fsGroupPolicy": { - "description": "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.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.\n\nDefaults 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.", + "name": { + "description": "name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.", "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 feature requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", - "format": "int64", - "type": "integer" - }, - "podInfoOnMount": { - "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" + "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" }, - "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" + "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" + }, + "io.k8s.api.scheduling.v1beta1.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 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" }, - "seLinuxMount": { + "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" + }, + "io.k8s.api.scheduling.v1beta1.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/io.k8s.api.scheduling.v1beta1.TopologyConstraint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.PodGroupSchedulingPolicy": { + "description": "PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it.", + "properties": { + "basic": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.BasicSchedulingPolicy", + "description": "basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward." + }, + "gang": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.GangSchedulingPolicy", + "description": "gang specifies that the pods in this group should be scheduled using all-or-nothing semantics. Setting this field at group creation time opts this group to gang scheduling; this field cannot be set or unset afterward. The minCount field within Gang scheduling policy remains mutable after group creation." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "basic": "Basic", + "gang": "Gang" + } + } + ] + }, + "io.k8s.api.scheduling.v1beta1.PodGroupSpec": { + "description": "PodGroupSpec defines the desired state of a PodGroup.", + "properties": { + "disruptionMode": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.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 Single, All. Defaults to Single if unset. This field is immutable." + }, + "parentCompositePodGroupName": { + "description": "parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable.", + "type": "string" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" + }, + "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.", + "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.", + "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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.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/io.k8s.api.scheduling.v1beta1.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/io.k8s.api.scheduling.v1beta1.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." + }, + "workloadRef": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.WorkloadReference", + "description": "workloadRef references an optional PodGroup template within the Workload object that was used to create the PodGroup. This field is immutable." + } + }, + "required": [ + "schedulingPolicy" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.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: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated\n due to disruption such as preemption.\n\nKnown reasons for the PodGroupInitiallyScheduled 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/io.k8s.apimachinery.pkg.apis.meta.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": "resourceClaimStatuses is status of resource claims.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.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" + }, + "io.k8s.api.scheduling.v1beta1.PodGroupTemplate": { + "description": "PodGroupTemplate represents a template for a set of pods with a scheduling policy.", + "properties": { + "disruptionMode": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.DisruptionMode", + "description": "disruptionMode defines the mode in which a given PodGroup can be disrupted. One of Single, All. This field is immutable." + }, + "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" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "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. The higher the value, the higher the priority. This field is immutable.", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable.", + "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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.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/io.k8s.api.scheduling.v1beta1.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. This field is immutable." + }, + "schedulingPolicy": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this PodGroupTemplate." + } + }, + "required": [ + "name", + "schedulingPolicy" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.SingleCompositeDisruptionMode": { + "description": "SingleCompositeDisruptionMode means that individual children of a CompositePodGroup can be disrupted or preempted independently.", + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.SingleDisruptionMode": { + "description": "SingleDisruptionMode specifies that children can be disrupted independently.", + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.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" + }, + "io.k8s.api.scheduling.v1beta1.TypedLocalObjectReference": { + "description": "TypedLocalObjectReference allows to reference typed object inside the same namespace.", + "properties": { + "apiGroup": { + "description": "apiGroup is the group for the resource being referenced. If apiGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting apiGroup is required. It must be a DNS subdomain.", + "type": "string" + }, + "kind": { + "description": "kind is the type of resource being referenced. It must be a path segment name.", + "type": "string" + }, + "name": { + "description": "name is the name of resource being referenced. It must be a path segment name.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.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", + "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/io.k8s.apimachinery.pkg.apis.meta.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/io.k8s.api.scheduling.v1beta1.WorkloadSpec", + "description": "spec defines the desired behavior of a Workload." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.scheduling.v1beta1.WorkloadList": { + "description": "WorkloadList contains a list of Workload 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 Workloads.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" + }, + "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/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "metadata is the standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "WorkloadList", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.scheduling.v1beta1.WorkloadReference": { + "description": "WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup.", + "properties": { + "templateName": { + "description": "templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required.", + "type": "string" + }, + "workloadName": { + "description": "workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required.", + "type": "string" + } + }, + "required": [ + "workloadName", + "templateName" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.WorkloadSpec": { + "description": "WorkloadSpec defines the desired state of a Workload.", + "properties": { + "compositePodGroupTemplates": { + "description": "compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.\n\nThis field is used only when the CompositePodGroup feature gate is enabled.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.CompositePodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "controllerRef": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.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." + }, + "podGroupTemplates": { + "description": "podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object" + }, + "io.k8s.api.storage.v1.CSIDriver": { + "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.", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "metadata is the standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriverSpec", + "description": "spec represents the specification of the CSI Driver." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSIDriverList": { + "description": "CSIDriverList is a collection of CSIDriver 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", + "type": "string" + }, + "items": { + "description": "items is the list of CSIDriver", + "items": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + }, + "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/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIDriverList", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSIDriverSpec": { + "description": "CSIDriverSpec is the specification of a CSIDriver.", + "properties": { + "attachRequired": { + "description": "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.\n\nThis field is immutable.", + "type": "boolean" + }, + "fsGroupPolicy": { + "description": "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.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.\n\nDefaults 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.", + "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 feature requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", + "format": "int64", + "type": "integer" + }, + "podInfoOnMount": { + "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 a beta 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" + }, + "seLinuxMount": { "description": "seLinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"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.\n\nWhen \"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.\n\nDefault is \"false\".", "type": "boolean" }, @@ -20432,11 +22657,15 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. metadata.name must be the Kubernetes node name." + "description": "metadata is the standard object metadata. metadata.name must be the Kubernetes node name." }, "spec": { "$ref": "#/definitions/io.k8s.api.storage.v1.CSINodeSpec", "description": "spec is the specification of CSINode" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINodeStatus", + "description": "status contains health and status information for the node's storage." } }, "required": [ @@ -20538,6 +22767,25 @@ ], "type": "object" }, + "io.k8s.api.storage.v1.CSINodeStatus": { + "description": "CSINodeStatus contains health and status information for storage on a node.", + "properties": { + "storageHealth": { + "description": "storageHealth contains backend health reports for CSI drivers registered on the node.", + "items": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageHealth" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, "io.k8s.api.storage.v1.CSIStorageCapacity": { "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.\n\nFor 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\"\n\nThe 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\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey 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.", "properties": { @@ -20559,7 +22807,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "nodeTopology": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", @@ -20642,7 +22890,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "mountOptions": { "description": "mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.", @@ -20719,6 +22967,61 @@ } ] }, + "io.k8s.api.storage.v1.StorageHealth": { + "description": "StorageHealth contains storage backend health reported by a CSI driver on a node.", + "properties": { + "healthConditions": { + "description": "healthConditions are the adverse storage backend conditions reported by the CSI driver. At most 16 conditions may be reported.", + "items": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageHealthCondition" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "name is the CSI driver name, matching CSINodeDriver.name.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.storage.v1.StorageHealthCondition": { + "description": "StorageHealthCondition represents an adverse health condition reported by a CSI driver for its storage backend on a node.", + "properties": { + "accessMode": { + "description": "accessMode is the access mode affected. Nil means all access modes are affected.", + "type": "string" + }, + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is when this condition first appeared at its current state." + }, + "message": { + "description": "message is a human-readable description. Maximum permitted length of a message is 1024 characters.", + "type": "string" + }, + "reason": { + "description": "reason is a brief CamelCase machine-parseable reason. Maximum permitted length of a reason is 256 characters.", + "type": "string" + }, + "status": { + "description": "status is the health status category. One of \"StorageUnreachable\", \"StorageDegraded\".", + "type": "string" + }, + "volumeMode": { + "description": "volumeMode is the volume mode affected. Nil means both are affected.", + "type": "string" + } + }, + "required": [ + "status", + "reason" + ], + "type": "object" + }, "io.k8s.api.storage.v1.TokenRequest": { "description": "TokenRequest contains parameters of a service account token.", "properties": { @@ -20750,7 +23053,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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/io.k8s.api.storage.v1.VolumeAttachmentSpec", @@ -20881,7 +23184,7 @@ "type": "string" }, "driverName": { - "description": "Name of the CSI driver This field is immutable.", + "description": "driverName is the name of the CSI driver This field is immutable.", "type": "string" }, "kind": { @@ -20890,7 +23193,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "parameters": { "additionalProperties": { @@ -20977,56 +23280,50 @@ }, "type": "object" }, - "io.k8s.api.storage.v1beta1.VolumeAttributesClass": { - "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.", + "io.k8s.api.storagemigration.v1.StorageVersionMigration": { + "description": "StorageVersionMigration represents a migration of stored data to the latest storage version.", "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" }, - "driverName": { - "description": "Name of the CSI driver This field is immutable.", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "parameters": { - "additionalProperties": { - "type": "string" - }, - "description": "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\n\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.", - "type": "object" + "spec": { + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigrationSpec", + "description": "Specification of the migration." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigrationStatus", + "description": "Status of the migration." } }, - "required": [ - "driverName" - ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } ] }, - "io.k8s.api.storage.v1beta1.VolumeAttributesClassList": { - "description": "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.", + "io.k8s.api.storagemigration.v1.StorageVersionMigrationList": { + "description": "StorageVersionMigrationList is a collection of storage version migrations.", "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 VolumeAttributesClass objects.", + "description": "Items is the list of StorageVersionMigration", "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" }, "type": "array" }, @@ -21045,12 +23342,48 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClassList", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigrationList", + "version": "v1" } ] }, + "io.k8s.api.storagemigration.v1.StorageVersionMigrationSpec": { + "description": "Spec of the storage version migration.", + "properties": { + "resource": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupResource", + "description": "The resource that is being migrated. The migrator sends requests to the endpoint serving the resource. Immutable." + } + }, + "required": [ + "resource" + ], + "type": "object" + }, + "io.k8s.api.storagemigration.v1.StorageVersionMigrationStatus": { + "description": "Status of the storage version migration.", + "properties": { + "conditions": { + "description": "The latest available observations of the migration's current state.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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" + }, + "resourceVersion": { + "description": "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.", + "type": "string" + } + }, + "type": "object" + }, "io.k8s.api.storagemigration.v1beta1.StorageVersionMigration": { "description": "StorageVersionMigration represents a migration of stored data to the latest storage version.", "properties": { @@ -22376,6 +24709,11 @@ "kind": "DeleteOptions", "version": "v1alpha1" }, + { + "group": "lifecycle.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, { "group": "networking.k8s.io", "kind": "DeleteOptions", @@ -22454,7 +24792,7 @@ { "group": "scheduling.k8s.io", "kind": "DeleteOptions", - "version": "v1alpha2" + "version": "v1alpha3" }, { "group": "scheduling.k8s.io", @@ -22476,6 +24814,11 @@ "kind": "DeleteOptions", "version": "v1beta1" }, + { + "group": "storagemigration.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, { "group": "storagemigration.k8s.io", "kind": "DeleteOptions", @@ -23155,6 +25498,11 @@ "kind": "WatchEvent", "version": "v1alpha1" }, + { + "group": "lifecycle.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, { "group": "networking.k8s.io", "kind": "WatchEvent", @@ -23233,7 +25581,7 @@ { "group": "scheduling.k8s.io", "kind": "WatchEvent", - "version": "v1alpha2" + "version": "v1alpha3" }, { "group": "scheduling.k8s.io", @@ -23255,6 +25603,11 @@ "kind": "WatchEvent", "version": "v1beta1" }, + { + "group": "storagemigration.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, { "group": "storagemigration.k8s.io", "kind": "WatchEvent", @@ -23263,7 +25616,7 @@ ] }, "io.k8s.apimachinery.pkg.runtime.RawExtension": { - "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.Object `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// External package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// On the wire, the JSON will look something like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\":\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", + "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\"\"`\n\t\tMyPlugin runtime.Object `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// External package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\"\"`\n\t\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// On the wire, the JSON will look something like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\":\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", "type": "object" }, "io.k8s.apimachinery.pkg.util.intstr.IntOrString": { @@ -23890,14 +26243,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get available API versions", "operationId": "getCoreAPIVersions", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -40462,14 +42817,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get available API versions", "operationId": "getAPIVersions", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -40495,14 +42852,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAdmissionregistrationAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -47484,14 +49843,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getApiextensionsAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -48409,14 +50770,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getApiregistrationAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -49334,14 +51697,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAppsAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -54940,14 +57305,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAuthenticationAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -55172,14 +57539,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAuthorizationAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -55571,14 +57940,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAutoscalingAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -57734,14 +60105,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getBatchAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -59862,14 +62235,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getCertificatesAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -60807,214 +63182,13 @@ } } }, - "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of CertificateSigningRequest. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCertificatesV1CertificateSigningRequestList", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind CertificateSigningRequest. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCertificatesV1CertificateSigningRequest", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the CertificateSigningRequest", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/certificates.k8s.io/v1alpha1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "description": "get available resources", - "operationId": "getCertificatesV1alpha1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1alpha1" - ] - } - }, - "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles": { + "/apis/certificates.k8s.io/v1/clustertrustbundles": { "delete": { "consumes": [ "*/*" ], "description": "delete collection of ClusterTrustBundle", - "operationId": "deleteCertificatesV1alpha1CollectionClusterTrustBundle", + "operationId": "deleteCertificatesV1CollectionClusterTrustBundle", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -61087,13 +63261,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } }, "get": { @@ -61101,7 +63275,7 @@ "*/*" ], "description": "list or watch objects of kind ClusterTrustBundle", - "operationId": "listCertificatesV1alpha1ClusterTrustBundle", + "operationId": "listCertificatesV1ClusterTrustBundle", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -61150,7 +63324,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundleList" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundleList" } }, "401": { @@ -61161,13 +63335,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } }, "parameters": [ @@ -61180,14 +63354,14 @@ "*/*" ], "description": "create a ClusterTrustBundle", - "operationId": "createCertificatesV1alpha1ClusterTrustBundle", + "operationId": "createCertificatesV1ClusterTrustBundle", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, { @@ -61218,19 +63392,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, "401": { @@ -61241,23 +63415,23 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } } }, - "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}": { + "/apis/certificates.k8s.io/v1/clustertrustbundles/{name}": { "delete": { "consumes": [ "*/*" ], "description": "delete a ClusterTrustBundle", - "operationId": "deleteCertificatesV1alpha1ClusterTrustBundle", + "operationId": "deleteCertificatesV1ClusterTrustBundle", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -61309,13 +63483,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } }, "get": { @@ -61323,7 +63497,7 @@ "*/*" ], "description": "read the specified ClusterTrustBundle", - "operationId": "readCertificatesV1alpha1ClusterTrustBundle", + "operationId": "readCertificatesV1ClusterTrustBundle", "produces": [ "application/json", "application/yaml", @@ -61334,7 +63508,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, "401": { @@ -61345,13 +63519,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } }, "parameters": [ @@ -61376,7 +63550,7 @@ "application/apply-patch+cbor" ], "description": "partially update the specified ClusterTrustBundle", - "operationId": "patchCertificatesV1alpha1ClusterTrustBundle", + "operationId": "patchCertificatesV1ClusterTrustBundle", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -61412,13 +63586,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, "401": { @@ -61429,13 +63603,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } }, "put": { @@ -61443,14 +63617,14 @@ "*/*" ], "description": "replace the specified ClusterTrustBundle", - "operationId": "replaceCertificatesV1alpha1ClusterTrustBundle", + "operationId": "replaceCertificatesV1ClusterTrustBundle", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, { @@ -61481,13 +63655,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, "401": { @@ -61498,224 +63672,23 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" - } - } - }, - "/apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ClusterTrustBundle. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCertificatesV1alpha1ClusterTrustBundleList", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1alpha1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind ClusterTrustBundle. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCertificatesV1alpha1ClusterTrustBundle", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1alpha1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the ClusterTrustBundle", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "version": "v1" } - ] - }, - "/apis/certificates.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "description": "get available resources", - "operationId": "getCertificatesV1beta1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ] } }, - "/apis/certificates.k8s.io/v1beta1/clustertrustbundles": { + "/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ClusterTrustBundle", - "operationId": "deleteCertificatesV1beta1CollectionClusterTrustBundle", + "description": "delete collection of PodCertificateRequest", + "operationId": "deleteCertificatesV1CollectionNamespacedPodCertificateRequest", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -61788,21 +63761,21 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ClusterTrustBundle", - "operationId": "listCertificatesV1beta1ClusterTrustBundle", + "description": "list or watch objects of kind PodCertificateRequest", + "operationId": "listCertificatesV1NamespacedPodCertificateRequest", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -61851,7 +63824,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundleList" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequestList" } }, "401": { @@ -61862,16 +63835,19 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" } }, "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -61880,15 +63856,15 @@ "consumes": [ "*/*" ], - "description": "create a ClusterTrustBundle", - "operationId": "createCertificatesV1beta1ClusterTrustBundle", + "description": "create a PodCertificateRequest", + "operationId": "createCertificatesV1NamespacedPodCertificateRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, { @@ -61919,19 +63895,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "401": { @@ -61942,23 +63918,23 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" } } }, - "/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}": { + "/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ClusterTrustBundle", - "operationId": "deleteCertificatesV1beta1ClusterTrustBundle", + "description": "delete a PodCertificateRequest", + "operationId": "deleteCertificatesV1NamespacedPodCertificateRequest", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -62010,21 +63986,21 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ClusterTrustBundle", - "operationId": "readCertificatesV1beta1ClusterTrustBundle", + "description": "read the specified PodCertificateRequest", + "operationId": "readCertificatesV1NamespacedPodCertificateRequest", "produces": [ "application/json", "application/yaml", @@ -62035,7 +64011,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "401": { @@ -62046,24 +64022,27 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" } }, "parameters": [ { - "description": "name of the ClusterTrustBundle", + "description": "name of the PodCertificateRequest", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -62076,8 +64055,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ClusterTrustBundle", - "operationId": "patchCertificatesV1beta1ClusterTrustBundle", + "description": "partially update the specified PodCertificateRequest", + "operationId": "patchCertificatesV1NamespacedPodCertificateRequest", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -62113,13 +64092,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "401": { @@ -62130,28 +64109,28 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified ClusterTrustBundle", - "operationId": "replaceCertificatesV1beta1ClusterTrustBundle", + "description": "replace the specified PodCertificateRequest", + "operationId": "replaceCertificatesV1NamespacedPodCertificateRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, { @@ -62182,13 +64161,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "401": { @@ -62199,74 +64178,23 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" } } }, - "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests": { - "delete": { + "/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of PodCertificateRequest", - "operationId": "deleteCertificatesV1beta1CollectionNamespacedPodCertificateRequest", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - } - ], + "description": "read status of the specified PodCertificateRequest", + "operationId": "readCertificatesV1NamespacedPodCertificateRequestStatus", "produces": [ "application/json", "application/yaml", @@ -62277,7 +64205,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "401": { @@ -62288,70 +64216,83 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" } }, - "get": { + "parameters": [ + { + "description": "name of the PodCertificateRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" ], - "description": "list or watch objects of kind PodCertificateRequest", - "operationId": "listCertificatesV1beta1NamespacedPodCertificateRequest", + "description": "partially update status of the specified PodCertificateRequest", + "operationId": "patchCertificatesV1NamespacedPodCertificateRequestStatus", "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + "$ref": "#/parameters/body-78PwaGsr" }, { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 }, { - "$ref": "#/parameters/shardSelector-Kgyki_3_" + "$ref": "#/parameters/fieldManager-7c6nTn1T" }, { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "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 }, { - "$ref": "#/parameters/watch-XNNPZGbK" + "$ref": "#/parameters/force-tOGGb0Yi" } ], "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/io.k8s.api.certificates.v1beta1.PodCertificateRequestList" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "401": { @@ -62362,36 +64303,28 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" } }, - "parameters": [ - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "post": { + "put": { "consumes": [ "*/*" ], - "description": "create a PodCertificateRequest", - "operationId": "createCertificatesV1beta1NamespacedPodCertificateRequest", + "description": "replace status of the specified PodCertificateRequest", + "operationId": "replaceCertificatesV1NamespacedPodCertificateRequestStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, { @@ -62422,19 +64355,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "401": { @@ -62445,64 +64372,37 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" } } }, - "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}": { - "delete": { + "/apis/certificates.k8s.io/v1/podcertificaterequests": { + "get": { "consumes": [ "*/*" ], - "description": "delete a PodCertificateRequest", - "operationId": "deleteCertificatesV1beta1NamespacedPodCertificateRequest", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - } - ], + "description": "list or watch objects of kind PodCertificateRequest", + "operationId": "listCertificatesV1PodCertificateRequestForAllNamespaces", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequestList" } }, "401": { @@ -62513,32 +64413,75 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests": { "get": { "consumes": [ "*/*" ], - "description": "read the specified PodCertificateRequest", - "operationId": "readCertificatesV1beta1NamespacedPodCertificateRequest", + "description": "watch individual changes to a list of CertificateSigningRequest. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCertificatesV1CertificateSigningRequestList", "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/io.k8s.api.certificates.v1beta1.PodCertificateRequest" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -62549,83 +64492,75 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" + "kind": "CertificateSigningRequest", + "version": "v1" } }, "parameters": [ { - "description": "name of the PodCertificateRequest", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" }, { - "$ref": "#/parameters/namespace-vgWSWtn3" + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "patch": { + ] + }, + "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified PodCertificateRequest", - "operationId": "patchCertificatesV1beta1NamespacedPodCertificateRequest", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } + "*/*" ], + "description": "watch changes to an object of kind CertificateSigningRequest. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCertificatesV1CertificateSigningRequest", "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/io.k8s.api.certificates.v1beta1.PodCertificateRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -62636,65 +64571,83 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" + "kind": "CertificateSigningRequest", + "version": "v1" } }, - "put": { + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the CertificateSigningRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/certificates.k8s.io/v1/watch/clustertrustbundles": { + "get": { "consumes": [ "*/*" ], - "description": "replace the specified PodCertificateRequest", - "operationId": "replaceCertificatesV1beta1NamespacedPodCertificateRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": "watch individual changes to a list of ClusterTrustBundle. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCertificatesV1ClusterTrustBundleList", "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/io.k8s.api.certificates.v1beta1.PodCertificateRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -62705,327 +64658,13 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" - } - } - }, - "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified PodCertificateRequest", - "operationId": "readCertificatesV1beta1NamespacedPodCertificateRequestStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.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 - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified PodCertificateRequest", - "operationId": "patchCertificatesV1beta1NamespacedPodCertificateRequestStatus", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.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" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified PodCertificateRequest", - "operationId": "replaceCertificatesV1beta1NamespacedPodCertificateRequestStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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/io.k8s.api.certificates.v1beta1.PodCertificateRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.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" - } - } - }, - "/apis/certificates.k8s.io/v1beta1/podcertificaterequests": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodCertificateRequest", - "operationId": "listCertificatesV1beta1PodCertificateRequestForAllNamespaces", - "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/io.k8s.api.certificates.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": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ClusterTrustBundle. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCertificatesV1beta1ClusterTrustBundleList", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "ClusterTrustBundle", + "version": "v1" } }, "parameters": [ @@ -63067,13 +64706,13 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles/{name}": { + "/apis/certificates.k8s.io/v1/watch/clustertrustbundles/{name}": { "get": { "consumes": [ "*/*" ], "description": "watch changes to an object of kind ClusterTrustBundle. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCertificatesV1beta1ClusterTrustBundle", + "operationId": "watchCertificatesV1ClusterTrustBundle", "produces": [ "application/json", "application/yaml", @@ -63098,13 +64737,13 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1beta1" + "version": "v1" } }, "parameters": [ @@ -63154,13 +64793,13 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests": { + "/apis/certificates.k8s.io/v1/watch/namespaces/{namespace}/podcertificaterequests": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of PodCertificateRequest. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCertificatesV1beta1NamespacedPodCertificateRequestList", + "operationId": "watchCertificatesV1NamespacedPodCertificateRequestList", "produces": [ "application/json", "application/yaml", @@ -63185,13 +64824,13 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" } }, "parameters": [ @@ -63236,13 +64875,13 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests/{name}": { + "/apis/certificates.k8s.io/v1/watch/namespaces/{namespace}/podcertificaterequests/{name}": { "get": { "consumes": [ "*/*" ], "description": "watch changes to an object of kind PodCertificateRequest. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCertificatesV1beta1NamespacedPodCertificateRequest", + "operationId": "watchCertificatesV1NamespacedPodCertificateRequest", "produces": [ "application/json", "application/yaml", @@ -63267,13 +64906,13 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" } }, "parameters": [ @@ -63326,13 +64965,13 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/podcertificaterequests": { + "/apis/certificates.k8s.io/v1/watch/podcertificaterequests": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of PodCertificateRequest. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCertificatesV1beta1PodCertificateRequestListForAllNamespaces", + "operationId": "watchCertificatesV1PodCertificateRequestListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -63357,13 +64996,13 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" } }, "parameters": [ @@ -63405,40 +65044,7 @@ } ] }, - "/apis/coordination.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getCoordinationAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination" - ] - } - }, - "/apis/coordination.k8s.io/v1/": { + "/apis/certificates.k8s.io/v1beta1/": { "get": { "consumes": [ "application/json", @@ -63447,7 +65053,7 @@ "application/cbor" ], "description": "get available resources", - "operationId": "getCoordinationV1APIResources", + "operationId": "getCertificatesV1beta1APIResources", "produces": [ "application/json", "application/yaml", @@ -63469,96 +65075,17 @@ "https" ], "tags": [ - "coordination_v1" + "certificates_v1beta1" ] } }, - "/apis/coordination.k8s.io/v1/leases": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Lease", - "operationId": "listCoordinationV1LeaseForAllNamespaces", - "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/io.k8s.api.coordination.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": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases": { + "/apis/certificates.k8s.io/v1beta1/clustertrustbundles": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Lease", - "operationId": "deleteCoordinationV1CollectionNamespacedLease", + "description": "delete collection of ClusterTrustBundle", + "operationId": "deleteCertificatesV1beta1CollectionClusterTrustBundle", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -63631,21 +65158,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Lease", - "operationId": "listCoordinationV1NamespacedLease", + "description": "list or watch objects of kind ClusterTrustBundle", + "operationId": "listCertificatesV1beta1ClusterTrustBundle", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -63694,7 +65221,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.LeaseList" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundleList" } }, "401": { @@ -63705,19 +65232,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": [ - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -63726,15 +65250,15 @@ "consumes": [ "*/*" ], - "description": "create a Lease", - "operationId": "createCoordinationV1NamespacedLease", + "description": "create a ClusterTrustBundle", + "operationId": "createCertificatesV1beta1ClusterTrustBundle", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, { @@ -63765,19 +65289,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, "401": { @@ -63788,23 +65312,23 @@ "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" } } }, - "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}": { + "/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a Lease", - "operationId": "deleteCoordinationV1NamespacedLease", + "description": "delete a ClusterTrustBundle", + "operationId": "deleteCertificatesV1beta1ClusterTrustBundle", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -63856,21 +65380,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified Lease", - "operationId": "readCoordinationV1NamespacedLease", + "description": "read the specified ClusterTrustBundle", + "operationId": "readCertificatesV1beta1ClusterTrustBundle", "produces": [ "application/json", "application/yaml", @@ -63881,7 +65405,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, "401": { @@ -63892,27 +65416,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 }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -63925,8 +65446,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified Lease", - "operationId": "patchCoordinationV1NamespacedLease", + "description": "partially update the specified ClusterTrustBundle", + "operationId": "patchCertificatesV1beta1ClusterTrustBundle", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -63962,13 +65483,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, "401": { @@ -63979,28 +65500,28 @@ "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" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified Lease", - "operationId": "replaceCoordinationV1NamespacedLease", + "description": "replace the specified ClusterTrustBundle", + "operationId": "replaceCertificatesV1beta1ClusterTrustBundle", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, { @@ -64031,13 +65552,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, "401": { @@ -64048,388 +65569,23 @@ "https" ], "tags": [ - "coordination_v1" + "certificates_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - } - }, - "/apis/coordination.k8s.io/v1/watch/leases": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Lease. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoordinationV1LeaseListForAllNamespaces", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Lease. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoordinationV1NamespacedLeaseList", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind Lease. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoordinationV1NamespacedLease", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the Lease", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1beta1" } - ] - }, - "/apis/coordination.k8s.io/v1alpha2/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "description": "get available resources", - "operationId": "getCoordinationV1alpha2APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1alpha2" - ] } }, - "/apis/coordination.k8s.io/v1alpha2/leasecandidates": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind LeaseCandidate", - "operationId": "listCoordinationV1alpha2LeaseCandidateForAllNamespaces", - "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/io.k8s.api.coordination.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": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates": { + "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of LeaseCandidate", - "operationId": "deleteCoordinationV1alpha2CollectionNamespacedLeaseCandidate", + "description": "delete collection of PodCertificateRequest", + "operationId": "deleteCertificatesV1beta1CollectionNamespacedPodCertificateRequest", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -64502,21 +65658,21 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind LeaseCandidate", - "operationId": "listCoordinationV1alpha2NamespacedLeaseCandidate", + "description": "list or watch objects of kind PodCertificateRequest", + "operationId": "listCertificatesV1beta1NamespacedPodCertificateRequest", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -64565,7 +65721,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidateList" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequestList" } }, "401": { @@ -64576,13 +65732,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": [ @@ -64597,15 +65753,15 @@ "consumes": [ "*/*" ], - "description": "create a LeaseCandidate", - "operationId": "createCoordinationV1alpha2NamespacedLeaseCandidate", + "description": "create a PodCertificateRequest", + "operationId": "createCertificatesV1beta1NamespacedPodCertificateRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, { @@ -64636,19 +65792,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, "401": { @@ -64659,23 +65815,23 @@ "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" } } }, - "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}": { + "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a LeaseCandidate", - "operationId": "deleteCoordinationV1alpha2NamespacedLeaseCandidate", + "description": "delete a PodCertificateRequest", + "operationId": "deleteCertificatesV1beta1NamespacedPodCertificateRequest", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -64727,21 +65883,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified LeaseCandidate", - "operationId": "readCoordinationV1alpha2NamespacedLeaseCandidate", + "description": "read the specified PodCertificateRequest", + "operationId": "readCertificatesV1beta1NamespacedPodCertificateRequest", "produces": [ "application/json", "application/yaml", @@ -64752,7 +65908,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, "401": { @@ -64763,18 +65919,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, @@ -64796,8 +65952,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified LeaseCandidate", - "operationId": "patchCoordinationV1alpha2NamespacedLeaseCandidate", + "description": "partially update the specified PodCertificateRequest", + "operationId": "patchCertificatesV1beta1NamespacedPodCertificateRequest", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -64833,13 +65989,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, "401": { @@ -64850,28 +66006,28 @@ "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" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified LeaseCandidate", - "operationId": "replaceCoordinationV1alpha2NamespacedLeaseCandidate", + "description": "replace the specified PodCertificateRequest", + "operationId": "replaceCertificatesV1beta1NamespacedPodCertificateRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, { @@ -64902,13 +66058,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, "401": { @@ -64919,23 +66075,217 @@ "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" } } }, - "/apis/coordination.k8s.io/v1alpha2/watch/leasecandidates": { + "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoordinationV1alpha2LeaseCandidateListForAllNamespaces", + "description": "read status of the specified PodCertificateRequest", + "operationId": "readCertificatesV1beta1NamespacedPodCertificateRequestStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.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 + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified PodCertificateRequest", + "operationId": "patchCertificatesV1beta1NamespacedPodCertificateRequestStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.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" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PodCertificateRequest", + "operationId": "replaceCertificatesV1beta1NamespacedPodCertificateRequestStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.certificates.v1beta1.PodCertificateRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.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" + } + } + }, + "/apis/certificates.k8s.io/v1beta1/podcertificaterequests": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodCertificateRequest", + "operationId": "listCertificatesV1beta1PodCertificateRequestForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -64949,7 +66299,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequestList" } }, "401": { @@ -64960,13 +66310,13 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], - "x-kubernetes-action": "watchlist", + "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": [ @@ -65008,13 +66358,13 @@ } ] }, - "/apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates": { + "/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoordinationV1alpha2NamespacedLeaseCandidateList", + "description": "watch individual changes to a list of ClusterTrustBundle. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCertificatesV1beta1ClusterTrustBundleList", "produces": [ "application/json", "application/yaml", @@ -65039,13 +66389,13 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1beta1" } }, "parameters": [ @@ -65064,9 +66414,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -65090,13 +66437,13 @@ } ] }, - "/apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates/{name}": { + "/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoordinationV1alpha2NamespacedLeaseCandidate", + "description": "watch changes to an object of kind ClusterTrustBundle. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCertificatesV1beta1ClusterTrustBundle", "produces": [ "application/json", "application/yaml", @@ -65121,13 +66468,13 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1beta1" } }, "parameters": [ @@ -65147,16 +66494,13 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the LeaseCandidate", + "description": "name of the ClusterTrustBundle", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -65180,48 +66524,13 @@ } ] }, - "/apis/coordination.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "description": "get available resources", - "operationId": "getCoordinationV1beta1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1beta1" - ] - } - }, - "/apis/coordination.k8s.io/v1beta1/leasecandidates": { + "/apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind LeaseCandidate", - "operationId": "listCoordinationV1beta1LeaseCandidateForAllNamespaces", + "description": "watch individual changes to a list of PodCertificateRequest. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCertificatesV1beta1NamespacedPodCertificateRequestList", "produces": [ "application/json", "application/yaml", @@ -65235,7 +66544,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidateList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -65246,12 +66555,12 @@ "https" ], "tags": [ - "coordination_v1beta1" + "certificates_v1beta1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", "version": "v1beta1" } }, @@ -65271,6 +66580,9 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -65294,75 +66606,27 @@ } ] }, - "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates": { - "delete": { + "/apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of LeaseCandidate", - "operationId": "deleteCoordinationV1beta1CollectionNamespacedLeaseCandidate", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - } - ], + "description": "watch changes to an object of kind PodCertificateRequest. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCertificatesV1beta1NamespacedPodCertificateRequest", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -65373,56 +66637,72 @@ "https" ], "tags": [ - "coordination_v1beta1" + "certificates_v1beta1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", "version": "v1beta1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the PodCertificateRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/certificates.k8s.io/v1beta1/watch/podcertificaterequests": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind LeaseCandidate", - "operationId": "listCoordinationV1beta1NamespacedLeaseCandidate", - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ], + "description": "watch individual changes to a list of PodCertificateRequest. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCertificatesV1beta1PodCertificateRequestListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -65436,7 +66716,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidateList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -65447,36 +66727,386 @@ "https" ], "tags": [ - "coordination_v1beta1" + "certificates_v1beta1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", "version": "v1beta1" } }, "parameters": [ { - "$ref": "#/parameters/namespace-vgWSWtn3" + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" }, { "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a LeaseCandidate", - "operationId": "createCoordinationV1beta1NamespacedLeaseCandidate", - "parameters": [ - { - "in": "body", - "name": "body", + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/coordination.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get information of a group", + "operationId": "getCoordinationAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination" + ] + } + }, + "/apis/coordination.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get available resources", + "operationId": "getCoordinationV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ] + } + }, + "/apis/coordination.k8s.io/v1/leases": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Lease", + "operationId": "listCoordinationV1LeaseForAllNamespaces", + "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/io.k8s.api.coordination.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": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Lease", + "operationId": "deleteCoordinationV1CollectionNamespacedLease", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Lease", + "operationId": "listCoordinationV1NamespacedLease", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "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/io.k8s.api.coordination.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": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a Lease", + "operationId": "createCoordinationV1NamespacedLease", + "parameters": [ + { + "in": "body", + "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, { @@ -65507,19 +67137,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, "401": { @@ -65530,23 +67160,23 @@ "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" } } }, - "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}": { + "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a LeaseCandidate", - "operationId": "deleteCoordinationV1beta1NamespacedLeaseCandidate", + "description": "delete a Lease", + "operationId": "deleteCoordinationV1NamespacedLease", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -65598,21 +67228,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified LeaseCandidate", - "operationId": "readCoordinationV1beta1NamespacedLeaseCandidate", + "description": "read the specified Lease", + "operationId": "readCoordinationV1NamespacedLease", "produces": [ "application/json", "application/yaml", @@ -65623,7 +67253,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, "401": { @@ -65634,18 +67264,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, @@ -65667,8 +67297,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified LeaseCandidate", - "operationId": "patchCoordinationV1beta1NamespacedLeaseCandidate", + "description": "partially update the specified Lease", + "operationId": "patchCoordinationV1NamespacedLease", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -65704,13 +67334,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, "401": { @@ -65721,28 +67351,28 @@ "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" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified LeaseCandidate", - "operationId": "replaceCoordinationV1beta1NamespacedLeaseCandidate", + "description": "replace the specified Lease", + "operationId": "replaceCoordinationV1NamespacedLease", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, { @@ -65773,13 +67403,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, "401": { @@ -65790,23 +67420,23 @@ "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" } } }, - "/apis/coordination.k8s.io/v1beta1/watch/leasecandidates": { + "/apis/coordination.k8s.io/v1/watch/leases": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoordinationV1beta1LeaseCandidateListForAllNamespaces", + "description": "watch individual changes to a list of Lease. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoordinationV1LeaseListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -65831,13 +67461,13 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" } }, "parameters": [ @@ -65879,13 +67509,13 @@ } ] }, - "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates": { + "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoordinationV1beta1NamespacedLeaseCandidateList", + "description": "watch individual changes to a list of Lease. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoordinationV1NamespacedLeaseList", "produces": [ "application/json", "application/yaml", @@ -65910,13 +67540,13 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" } }, "parameters": [ @@ -65961,13 +67591,13 @@ } ] }, - "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates/{name}": { + "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoordinationV1beta1NamespacedLeaseCandidate", + "description": "watch changes to an object of kind Lease. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoordinationV1NamespacedLease", "produces": [ "application/json", "application/yaml", @@ -65992,13 +67622,13 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" } }, "parameters": [ @@ -66018,7 +67648,7 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the LeaseCandidate", + "description": "name of the Lease", "in": "path", "name": "name", "required": true, @@ -66051,40 +67681,7 @@ } ] }, - "/apis/discovery.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getDiscoveryAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery" - ] - } - }, - "/apis/discovery.k8s.io/v1/": { + "/apis/coordination.k8s.io/v1alpha2/": { "get": { "consumes": [ "application/json", @@ -66093,7 +67690,7 @@ "application/cbor" ], "description": "get available resources", - "operationId": "getDiscoveryV1APIResources", + "operationId": "getCoordinationV1alpha2APIResources", "produces": [ "application/json", "application/yaml", @@ -66115,17 +67712,17 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ] } }, - "/apis/discovery.k8s.io/v1/endpointslices": { + "/apis/coordination.k8s.io/v1alpha2/leasecandidates": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listDiscoveryV1EndpointSliceForAllNamespaces", + "description": "list or watch objects of kind LeaseCandidate", + "operationId": "listCoordinationV1alpha2LeaseCandidateForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -66139,7 +67736,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSliceList" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidateList" } }, "401": { @@ -66150,13 +67747,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": [ @@ -66198,13 +67795,13 @@ } ] }, - "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices": { + "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of EndpointSlice", - "operationId": "deleteDiscoveryV1CollectionNamespacedEndpointSlice", + "description": "delete collection of LeaseCandidate", + "operationId": "deleteCoordinationV1alpha2CollectionNamespacedLeaseCandidate", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -66277,21 +67874,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listDiscoveryV1NamespacedEndpointSlice", + "description": "list or watch objects of kind LeaseCandidate", + "operationId": "listCoordinationV1alpha2NamespacedLeaseCandidate", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -66340,7 +67937,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSliceList" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidateList" } }, "401": { @@ -66351,13 +67948,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": [ @@ -66372,15 +67969,15 @@ "consumes": [ "*/*" ], - "description": "create an EndpointSlice", - "operationId": "createDiscoveryV1NamespacedEndpointSlice", + "description": "create a LeaseCandidate", + "operationId": "createCoordinationV1alpha2NamespacedLeaseCandidate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, { @@ -66411,19 +68008,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, "401": { @@ -66434,23 +68031,23 @@ "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" } } }, - "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}": { + "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an EndpointSlice", - "operationId": "deleteDiscoveryV1NamespacedEndpointSlice", + "description": "delete a LeaseCandidate", + "operationId": "deleteCoordinationV1alpha2NamespacedLeaseCandidate", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -66502,21 +68099,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified EndpointSlice", - "operationId": "readDiscoveryV1NamespacedEndpointSlice", + "description": "read the specified LeaseCandidate", + "operationId": "readCoordinationV1alpha2NamespacedLeaseCandidate", "produces": [ "application/json", "application/yaml", @@ -66527,7 +68124,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, "401": { @@ -66538,18 +68135,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, @@ -66571,8 +68168,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified EndpointSlice", - "operationId": "patchDiscoveryV1NamespacedEndpointSlice", + "description": "partially update the specified LeaseCandidate", + "operationId": "patchCoordinationV1alpha2NamespacedLeaseCandidate", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -66608,13 +68205,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, "401": { @@ -66625,28 +68222,28 @@ "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" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified EndpointSlice", - "operationId": "replaceDiscoveryV1NamespacedEndpointSlice", + "description": "replace the specified LeaseCandidate", + "operationId": "replaceCoordinationV1alpha2NamespacedLeaseCandidate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, { @@ -66677,13 +68274,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, "401": { @@ -66694,23 +68291,23 @@ "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" } } }, - "/apis/discovery.k8s.io/v1/watch/endpointslices": { + "/apis/coordination.k8s.io/v1alpha2/watch/leasecandidates": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchDiscoveryV1EndpointSliceListForAllNamespaces", + "description": "watch individual changes to a list of LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoordinationV1alpha2LeaseCandidateListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -66735,13 +68332,13 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha2" } }, "parameters": [ @@ -66783,13 +68380,13 @@ } ] }, - "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices": { + "/apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchDiscoveryV1NamespacedEndpointSliceList", + "description": "watch individual changes to a list of LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoordinationV1alpha2NamespacedLeaseCandidateList", "produces": [ "application/json", "application/yaml", @@ -66814,13 +68411,13 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha2" } }, "parameters": [ @@ -66865,13 +68462,13 @@ } ] }, - "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}": { + "/apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchDiscoveryV1NamespacedEndpointSlice", + "description": "watch changes to an object of kind LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoordinationV1alpha2NamespacedLeaseCandidate", "produces": [ "application/json", "application/yaml", @@ -66896,13 +68493,13 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha2" } }, "parameters": [ @@ -66922,7 +68519,7 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the EndpointSlice", + "description": "name of the LeaseCandidate", "in": "path", "name": "name", "required": true, @@ -66955,40 +68552,7 @@ } ] }, - "/apis/events.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getEventsAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events" - ] - } - }, - "/apis/events.k8s.io/v1/": { + "/apis/coordination.k8s.io/v1beta1/": { "get": { "consumes": [ "application/json", @@ -66997,7 +68561,7 @@ "application/cbor" ], "description": "get available resources", - "operationId": "getEventsV1APIResources", + "operationId": "getCoordinationV1beta1APIResources", "produces": [ "application/json", "application/yaml", @@ -67019,17 +68583,17 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ] } }, - "/apis/events.k8s.io/v1/events": { + "/apis/coordination.k8s.io/v1beta1/leasecandidates": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Event", - "operationId": "listEventsV1EventForAllNamespaces", + "description": "list or watch objects of kind LeaseCandidate", + "operationId": "listCoordinationV1beta1LeaseCandidateForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -67043,7 +68607,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.EventList" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidateList" } }, "401": { @@ -67054,13 +68618,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": [ @@ -67102,13 +68666,13 @@ } ] }, - "/apis/events.k8s.io/v1/namespaces/{namespace}/events": { + "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Event", - "operationId": "deleteEventsV1CollectionNamespacedEvent", + "description": "delete collection of LeaseCandidate", + "operationId": "deleteCoordinationV1beta1CollectionNamespacedLeaseCandidate", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -67181,21 +68745,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Event", - "operationId": "listEventsV1NamespacedEvent", + "description": "list or watch objects of kind LeaseCandidate", + "operationId": "listCoordinationV1beta1NamespacedLeaseCandidate", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -67244,7 +68808,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.EventList" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidateList" } }, "401": { @@ -67255,13 +68819,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": [ @@ -67276,15 +68840,15 @@ "consumes": [ "*/*" ], - "description": "create an Event", - "operationId": "createEventsV1NamespacedEvent", + "description": "create a LeaseCandidate", + "operationId": "createCoordinationV1beta1NamespacedLeaseCandidate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, { @@ -67315,19 +68879,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, "401": { @@ -67338,23 +68902,23 @@ "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" } } }, - "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}": { + "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an Event", - "operationId": "deleteEventsV1NamespacedEvent", + "description": "delete a LeaseCandidate", + "operationId": "deleteCoordinationV1beta1NamespacedLeaseCandidate", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -67406,21 +68970,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified Event", - "operationId": "readEventsV1NamespacedEvent", + "description": "read the specified LeaseCandidate", + "operationId": "readCoordinationV1beta1NamespacedLeaseCandidate", "produces": [ "application/json", "application/yaml", @@ -67431,7 +68995,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, "401": { @@ -67442,18 +69006,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, @@ -67475,8 +69039,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified Event", - "operationId": "patchEventsV1NamespacedEvent", + "description": "partially update the specified LeaseCandidate", + "operationId": "patchCoordinationV1beta1NamespacedLeaseCandidate", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -67512,13 +69076,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, "401": { @@ -67529,28 +69093,28 @@ "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" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified Event", - "operationId": "replaceEventsV1NamespacedEvent", + "description": "replace the specified LeaseCandidate", + "operationId": "replaceCoordinationV1beta1NamespacedLeaseCandidate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, { @@ -67581,13 +69145,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, "401": { @@ -67598,23 +69162,23 @@ "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" } } }, - "/apis/events.k8s.io/v1/watch/events": { + "/apis/coordination.k8s.io/v1beta1/watch/leasecandidates": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchEventsV1EventListForAllNamespaces", + "description": "watch individual changes to a list of LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoordinationV1beta1LeaseCandidateListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -67639,13 +69203,13 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1beta1" } }, "parameters": [ @@ -67687,13 +69251,13 @@ } ] }, - "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events": { + "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchEventsV1NamespacedEventList", + "description": "watch individual changes to a list of LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoordinationV1beta1NamespacedLeaseCandidateList", "produces": [ "application/json", "application/yaml", @@ -67718,13 +69282,13 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1beta1" } }, "parameters": [ @@ -67769,13 +69333,13 @@ } ] }, - "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}": { + "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind Event. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchEventsV1NamespacedEvent", + "description": "watch changes to an object of kind LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoordinationV1beta1NamespacedLeaseCandidate", "produces": [ "application/json", "application/yaml", @@ -67800,13 +69364,13 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1beta1" } }, "parameters": [ @@ -67826,7 +69390,7 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the Event", + "description": "name of the LeaseCandidate", "in": "path", "name": "name", "required": true, @@ -67859,19 +69423,21 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/": { + "/apis/discovery.k8s.io/": { "get": { "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", - "operationId": "getFlowcontrolApiserverAPIGroup", + "operationId": "getDiscoveryAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -67888,11 +69454,11 @@ "https" ], "tags": [ - "flowcontrolApiserver" + "discovery" ] } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/": { + "/apis/discovery.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -67901,7 +69467,7 @@ "application/cbor" ], "description": "get available resources", - "operationId": "getFlowcontrolApiserverV1APIResources", + "operationId": "getDiscoveryV1APIResources", "produces": [ "application/json", "application/yaml", @@ -67923,17 +69489,96 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "discovery_v1" ] } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas": { + "/apis/discovery.k8s.io/v1/endpointslices": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind EndpointSlice", + "operationId": "listDiscoveryV1EndpointSliceForAllNamespaces", + "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/io.k8s.api.discovery.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": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of FlowSchema", - "operationId": "deleteFlowcontrolApiserverV1CollectionFlowSchema", + "description": "delete collection of EndpointSlice", + "operationId": "deleteDiscoveryV1CollectionNamespacedEndpointSlice", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -68006,12 +69651,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" } }, @@ -68019,8 +69664,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind FlowSchema", - "operationId": "listFlowcontrolApiserverV1FlowSchema", + "description": "list or watch objects of kind EndpointSlice", + "operationId": "listDiscoveryV1NamespacedEndpointSlice", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -68069,7 +69714,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchemaList" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSliceList" } }, "401": { @@ -68080,16 +69725,19 @@ "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": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -68098,15 +69746,15 @@ "consumes": [ "*/*" ], - "description": "create a FlowSchema", - "operationId": "createFlowcontrolApiserverV1FlowSchema", + "description": "create an EndpointSlice", + "operationId": "createDiscoveryV1NamespacedEndpointSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, { @@ -68137,19 +69785,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, "401": { @@ -68160,23 +69808,23 @@ "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" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}": { + "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a FlowSchema", - "operationId": "deleteFlowcontrolApiserverV1FlowSchema", + "description": "delete an EndpointSlice", + "operationId": "deleteDiscoveryV1NamespacedEndpointSlice", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -68228,12 +69876,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" } }, @@ -68241,8 +69889,8 @@ "consumes": [ "*/*" ], - "description": "read the specified FlowSchema", - "operationId": "readFlowcontrolApiserverV1FlowSchema", + "description": "read the specified EndpointSlice", + "operationId": "readDiscoveryV1NamespacedEndpointSlice", "produces": [ "application/json", "application/yaml", @@ -68253,7 +69901,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, "401": { @@ -68264,24 +69912,27 @@ "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 }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -68294,8 +69945,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified FlowSchema", - "operationId": "patchFlowcontrolApiserverV1FlowSchema", + "description": "partially update the specified EndpointSlice", + "operationId": "patchDiscoveryV1NamespacedEndpointSlice", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -68331,13 +69982,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, "401": { @@ -68348,12 +69999,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" } }, @@ -68361,15 +70012,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified FlowSchema", - "operationId": "replaceFlowcontrolApiserverV1FlowSchema", + "description": "replace the specified EndpointSlice", + "operationId": "replaceDiscoveryV1NamespacedEndpointSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, { @@ -68400,13 +70051,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, "401": { @@ -68417,34 +70068,37 @@ "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" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status": { + "/apis/discovery.k8s.io/v1/watch/endpointslices": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified FlowSchema", - "operationId": "readFlowcontrolApiserverV1FlowSchemaStatus", + "description": "watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchDiscoveryV1EndpointSliceListForAllNamespaces", "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/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -68455,80 +70109,157 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "discovery_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "watchlist", "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", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "patch": { + ] + }, + "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified FlowSchema", - "operationId": "patchFlowcontrolApiserverV1FlowSchemaStatus", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } + "*/*" ], + "description": "watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchDiscoveryV1NamespacedEndpointSliceList", "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/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, - "201": { - "description": "Created", + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchDiscoveryV1NamespacedEndpointSlice", + "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/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -68539,48 +70270,110 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "discovery_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" } }, - "put": { + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the EndpointSlice", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/events.k8s.io/": { + "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], - "description": "replace status of the specified FlowSchema", - "operationId": "replaceFlowcontrolApiserverV1FlowSchemaStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, + "description": "get information of a group", + "operationId": "getEventsAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": [ + "events" + ] + } + }, + "/apis/events.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], + "description": "get available resources", + "operationId": "getEventsV1APIResources", "produces": [ "application/json", "application/yaml", @@ -68591,13 +70384,42 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" } }, - "201": { - "description": "Created", + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "events_v1" + ] + } + }, + "/apis/events.k8s.io/v1/events": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Event", + "operationId": "listEventsV1EventForAllNamespaces", + "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/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.events.v1.EventList" } }, "401": { @@ -68608,23 +70430,61 @@ "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": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations": { + "/apis/events.k8s.io/v1/namespaces/{namespace}/events": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of PriorityLevelConfiguration", - "operationId": "deleteFlowcontrolApiserverV1CollectionPriorityLevelConfiguration", + "description": "delete collection of Event", + "operationId": "deleteEventsV1CollectionNamespacedEvent", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -68697,12 +70557,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" } }, @@ -68710,8 +70570,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind PriorityLevelConfiguration", - "operationId": "listFlowcontrolApiserverV1PriorityLevelConfiguration", + "description": "list or watch objects of kind Event", + "operationId": "listEventsV1NamespacedEvent", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -68760,7 +70620,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList" + "$ref": "#/definitions/io.k8s.api.events.v1.EventList" } }, "401": { @@ -68771,16 +70631,19 @@ "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": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -68789,15 +70652,15 @@ "consumes": [ "*/*" ], - "description": "create a PriorityLevelConfiguration", - "operationId": "createFlowcontrolApiserverV1PriorityLevelConfiguration", + "description": "create an Event", + "operationId": "createEventsV1NamespacedEvent", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, { @@ -68828,19 +70691,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, "401": { @@ -68851,23 +70714,23 @@ "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" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}": { + "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a PriorityLevelConfiguration", - "operationId": "deleteFlowcontrolApiserverV1PriorityLevelConfiguration", + "description": "delete an Event", + "operationId": "deleteEventsV1NamespacedEvent", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -68919,12 +70782,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" } }, @@ -68932,8 +70795,8 @@ "consumes": [ "*/*" ], - "description": "read the specified PriorityLevelConfiguration", - "operationId": "readFlowcontrolApiserverV1PriorityLevelConfiguration", + "description": "read the specified Event", + "operationId": "readEventsV1NamespacedEvent", "produces": [ "application/json", "application/yaml", @@ -68944,7 +70807,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, "401": { @@ -68955,24 +70818,27 @@ "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, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -68985,8 +70851,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified PriorityLevelConfiguration", - "operationId": "patchFlowcontrolApiserverV1PriorityLevelConfiguration", + "description": "partially update the specified Event", + "operationId": "patchEventsV1NamespacedEvent", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -69022,13 +70888,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, "401": { @@ -69039,12 +70905,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" } }, @@ -69052,206 +70918,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified PriorityLevelConfiguration", - "operationId": "replaceFlowcontrolApiserverV1PriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.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" - } - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified PriorityLevelConfiguration", - "operationId": "readFlowcontrolApiserverV1PriorityLevelConfigurationStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.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", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified PriorityLevelConfiguration", - "operationId": "patchFlowcontrolApiserverV1PriorityLevelConfigurationStatus", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.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" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified PriorityLevelConfiguration", - "operationId": "replaceFlowcontrolApiserverV1PriorityLevelConfigurationStatus", + "description": "replace the specified Event", + "operationId": "replaceEventsV1NamespacedEvent", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, { @@ -69282,13 +70957,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, "401": { @@ -69299,23 +70974,23 @@ "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" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas": { + "/apis/events.k8s.io/v1/watch/events": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of FlowSchema. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchFlowcontrolApiserverV1FlowSchemaList", + "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchEventsV1EventListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -69340,12 +71015,12 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "events_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" } }, @@ -69388,13 +71063,13 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas/{name}": { + "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind FlowSchema. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchFlowcontrolApiserverV1FlowSchema", + "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchEventsV1NamespacedEventList", "produces": [ "application/json", "application/yaml", @@ -69419,12 +71094,12 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "events_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" } }, @@ -69445,91 +71120,7 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the FlowSchema", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchFlowcontrolApiserverV1PriorityLevelConfigurationList", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" + "$ref": "#/parameters/namespace-vgWSWtn3" }, { "$ref": "#/parameters/pretty-tJGM1-ng" @@ -69554,13 +71145,13 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations/{name}": { + "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchFlowcontrolApiserverV1PriorityLevelConfiguration", + "description": "watch changes to an object of kind Event. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchEventsV1NamespacedEvent", "produces": [ "application/json", "application/yaml", @@ -69585,12 +71176,12 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "events_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" } }, @@ -69611,13 +71202,16 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the PriorityLevelConfiguration", + "description": "name of the Event", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -69641,19 +71235,21 @@ } ] }, - "/apis/internal.apiserver.k8s.io/": { + "/apis/flowcontrol.apiserver.k8s.io/": { "get": { "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", - "operationId": "getInternalApiserverAPIGroup", + "operationId": "getFlowcontrolApiserverAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -69670,11 +71266,11 @@ "https" ], "tags": [ - "internalApiserver" + "flowcontrolApiserver" ] } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/": { + "/apis/flowcontrol.apiserver.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -69683,7 +71279,7 @@ "application/cbor" ], "description": "get available resources", - "operationId": "getInternalApiserverV1alpha1APIResources", + "operationId": "getFlowcontrolApiserverV1APIResources", "produces": [ "application/json", "application/yaml", @@ -69705,17 +71301,17 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "flowcontrolApiserver_v1" ] } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions": { + "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of StorageVersion", - "operationId": "deleteInternalApiserverV1alpha1CollectionStorageVersion", + "description": "delete collection of FlowSchema", + "operationId": "deleteFlowcontrolApiserverV1CollectionFlowSchema", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -69788,21 +71384,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind StorageVersion", - "operationId": "listInternalApiserverV1alpha1StorageVersion", + "description": "list or watch objects of kind FlowSchema", + "operationId": "listFlowcontrolApiserverV1FlowSchema", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -69851,7 +71447,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchemaList" } }, "401": { @@ -69862,13 +71458,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": [ @@ -69880,15 +71476,15 @@ "consumes": [ "*/*" ], - "description": "create a StorageVersion", - "operationId": "createInternalApiserverV1alpha1StorageVersion", + "description": "create a FlowSchema", + "operationId": "createFlowcontrolApiserverV1FlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, { @@ -69919,19 +71515,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "401": { @@ -69942,23 +71538,23 @@ "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" } } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a StorageVersion", - "operationId": "deleteInternalApiserverV1alpha1StorageVersion", + "description": "delete a FlowSchema", + "operationId": "deleteFlowcontrolApiserverV1FlowSchema", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -70010,21 +71606,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified StorageVersion", - "operationId": "readInternalApiserverV1alpha1StorageVersion", + "description": "read the specified FlowSchema", + "operationId": "readFlowcontrolApiserverV1FlowSchema", "produces": [ "application/json", "application/yaml", @@ -70035,7 +71631,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "401": { @@ -70046,18 +71642,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, @@ -70076,8 +71672,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified StorageVersion", - "operationId": "patchInternalApiserverV1alpha1StorageVersion", + "description": "partially update the specified FlowSchema", + "operationId": "patchFlowcontrolApiserverV1FlowSchema", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -70113,13 +71709,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "401": { @@ -70130,28 +71726,28 @@ "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" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified StorageVersion", - "operationId": "replaceInternalApiserverV1alpha1StorageVersion", + "description": "replace the specified FlowSchema", + "operationId": "replaceFlowcontrolApiserverV1FlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, { @@ -70182,13 +71778,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "401": { @@ -70199,23 +71795,23 @@ "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" } } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status": { + "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified StorageVersion", - "operationId": "readInternalApiserverV1alpha1StorageVersionStatus", + "description": "read status of the specified FlowSchema", + "operationId": "readFlowcontrolApiserverV1FlowSchemaStatus", "produces": [ "application/json", "application/yaml", @@ -70226,7 +71822,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "401": { @@ -70237,18 +71833,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, @@ -70267,8 +71863,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified StorageVersion", - "operationId": "patchInternalApiserverV1alpha1StorageVersionStatus", + "description": "partially update status of the specified FlowSchema", + "operationId": "patchFlowcontrolApiserverV1FlowSchemaStatus", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -70304,13 +71900,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "401": { @@ -70321,28 +71917,28 @@ "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" } }, "put": { "consumes": [ "*/*" ], - "description": "replace status of the specified StorageVersion", - "operationId": "replaceInternalApiserverV1alpha1StorageVersionStatus", + "description": "replace status of the specified FlowSchema", + "operationId": "replaceFlowcontrolApiserverV1FlowSchemaStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, { @@ -70373,13 +71969,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "401": { @@ -70390,257 +71986,23 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - } - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of StorageVersion. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchInternalApiserverV1alpha1StorageVersionList", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind StorageVersion. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchInternalApiserverV1alpha1StorageVersion", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the StorageVersion", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" } - ] - }, - "/apis/networking.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getNetworkingAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking" - ] - } - }, - "/apis/networking.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "description": "get available resources", - "operationId": "getNetworkingV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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": [ "*/*" ], - "description": "delete collection of IngressClass", - "operationId": "deleteNetworkingV1CollectionIngressClass", + "description": "delete collection of PriorityLevelConfiguration", + "operationId": "deleteFlowcontrolApiserverV1CollectionPriorityLevelConfiguration", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -70713,12 +72075,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" } }, @@ -70726,8 +72088,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind IngressClass", - "operationId": "listNetworkingV1IngressClass", + "description": "list or watch objects of kind PriorityLevelConfiguration", + "operationId": "listFlowcontrolApiserverV1PriorityLevelConfiguration", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -70776,7 +72138,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClassList" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList" } }, "401": { @@ -70787,12 +72149,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" } }, @@ -70805,15 +72167,15 @@ "consumes": [ "*/*" ], - "description": "create an IngressClass", - "operationId": "createNetworkingV1IngressClass", + "description": "create a PriorityLevelConfiguration", + "operationId": "createFlowcontrolApiserverV1PriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, { @@ -70844,19 +72206,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "401": { @@ -70867,23 +72229,23 @@ "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" } } }, - "/apis/networking.k8s.io/v1/ingressclasses/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an IngressClass", - "operationId": "deleteNetworkingV1IngressClass", + "description": "delete a PriorityLevelConfiguration", + "operationId": "deleteFlowcontrolApiserverV1PriorityLevelConfiguration", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -70935,12 +72297,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" } }, @@ -70948,8 +72310,8 @@ "consumes": [ "*/*" ], - "description": "read the specified IngressClass", - "operationId": "readNetworkingV1IngressClass", + "description": "read the specified PriorityLevelConfiguration", + "operationId": "readFlowcontrolApiserverV1PriorityLevelConfiguration", "produces": [ "application/json", "application/yaml", @@ -70960,7 +72322,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "401": { @@ -70971,18 +72333,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, @@ -71001,8 +72363,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified IngressClass", - "operationId": "patchNetworkingV1IngressClass", + "description": "partially update the specified PriorityLevelConfiguration", + "operationId": "patchFlowcontrolApiserverV1PriorityLevelConfiguration", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -71038,13 +72400,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "401": { @@ -71055,12 +72417,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" } }, @@ -71068,15 +72430,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified IngressClass", - "operationId": "replaceNetworkingV1IngressClass", + "description": "replace the specified PriorityLevelConfiguration", + "operationId": "replaceFlowcontrolApiserverV1PriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, { @@ -71107,13 +72469,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "401": { @@ -71124,37 +72486,34 @@ "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" } } }, - "/apis/networking.k8s.io/v1/ingresses": { + "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Ingress", - "operationId": "listNetworkingV1IngressForAllNamespaces", + "description": "read status of the specified PriorityLevelConfiguration", + "operationId": "readFlowcontrolApiserverV1PriorityLevelConfigurationStatus", "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/io.k8s.api.networking.v1.IngressList" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "401": { @@ -71165,67 +72524,41 @@ "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": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true }, { "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" } - ] - }, - "/apis/networking.k8s.io/v1/ipaddresses": { - "delete": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" ], - "description": "delete collection of IPAddress", - "operationId": "deleteNetworkingV1CollectionIPAddress", + "description": "partially update status of the specified PriorityLevelConfiguration", + "operationId": "patchFlowcontrolApiserverV1PriorityLevelConfigurationStatus", "parameters": [ { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" + "$ref": "#/parameters/body-78PwaGsr" }, { "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", @@ -71235,40 +72568,17 @@ "uniqueItems": true }, { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + "$ref": "#/parameters/fieldManager-7c6nTn1T" }, { - "$ref": "#/parameters/shardSelector-Kgyki_3_" + "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 }, { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "$ref": "#/parameters/force-tOGGb0Yi" } ], "produces": [ @@ -71281,7 +72591,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "401": { @@ -71292,56 +72608,92 @@ "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" } }, - "get": { + "put": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind IPAddress", - "operationId": "listNetworkingV1IPAddress", + "description": "replace status of the specified PriorityLevelConfiguration", + "operationId": "replaceFlowcontrolApiserverV1PriorityLevelConfigurationStatus", "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } }, { - "$ref": "#/parameters/continue-QfD61s0i" + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 }, { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + "$ref": "#/parameters/fieldManager-Qy4HdaTW" }, { - "$ref": "#/parameters/shardSelector-Kgyki_3_" + "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/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "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" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas": { + "get": { + "consumes": [ + "*/*" ], + "description": "watch individual changes to a list of FlowSchema. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchFlowcontrolApiserverV1FlowSchemaList", "produces": [ "application/json", "application/yaml", @@ -71355,7 +72707,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddressList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -71366,76 +72718,75 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", "version": "v1" } }, "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "post": { + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "create an IPAddress", - "operationId": "createNetworkingV1IPAddress", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": "watch changes to an object of kind FlowSchema. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchFlowcontrolApiserverV1FlowSchema", "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/io.k8s.api.networking.v1.IPAddress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -71446,64 +72797,83 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", "version": "v1" } - } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/networking.k8s.io/v1/ipaddresses/{name}": { - "delete": { + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations": { + "get": { "consumes": [ "*/*" ], - "description": "delete an IPAddress", - "operationId": "deleteNetworkingV1IPAddress", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - } - ], + "description": "watch individual changes to a list of PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchFlowcontrolApiserverV1PriorityLevelConfigurationList", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -71514,32 +72884,75 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", "version": "v1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations/{name}": { "get": { "consumes": [ "*/*" ], - "description": "read the specified IPAddress", - "operationId": "readNetworkingV1IPAddress", + "description": "watch changes to an object of kind PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchFlowcontrolApiserverV1PriorityLevelConfiguration", "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/io.k8s.api.networking.v1.IPAddress" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -71550,18 +72963,33 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", "version": "v1" } }, "parameters": [ { - "description": "name of the IPAddress", + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the PriorityLevelConfiguration", "in": "path", "name": "name", "required": true, @@ -71570,43 +72998,37 @@ }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "patch": { + ] + }, + "/apis/internal.apiserver.k8s.io/": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified IPAddress", - "operationId": "patchNetworkingV1IPAddress", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], + "description": "get information of a group", + "operationId": "getInternalApiserverAPIGroup", "produces": [ "application/json", "application/yaml", @@ -71617,13 +73039,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" } }, "401": { @@ -71634,48 +73050,20 @@ "https" ], "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" - } - }, - "put": { + "internalApiserver" + ] + } + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/": { + "get": { "consumes": [ - "*/*" - ], - "description": "replace the specified IPAddress", - "operationId": "replaceNetworkingV1IPAddress", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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 - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], + "description": "get available resources", + "operationId": "getInternalApiserverV1alpha1APIResources", "produces": [ "application/json", "application/yaml", @@ -71686,13 +73074,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" } }, "401": { @@ -71703,23 +73085,17 @@ "https" ], "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" - } + "internalApiserver_v1alpha1" + ] } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses": { + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Ingress", - "operationId": "deleteNetworkingV1CollectionNamespacedIngress", + "description": "delete collection of StorageVersion", + "operationId": "deleteInternalApiserverV1alpha1CollectionStorageVersion", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -71792,21 +73168,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Ingress", - "operationId": "listNetworkingV1NamespacedIngress", + "description": "list or watch objects of kind StorageVersion", + "operationId": "listInternalApiserverV1alpha1StorageVersion", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -71855,7 +73231,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressList" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList" } }, "401": { @@ -71866,19 +73242,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": [ - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -71887,15 +73260,15 @@ "consumes": [ "*/*" ], - "description": "create an Ingress", - "operationId": "createNetworkingV1NamespacedIngress", + "description": "create a StorageVersion", + "operationId": "createInternalApiserverV1alpha1StorageVersion", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, { @@ -71926,19 +73299,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "401": { @@ -71949,23 +73322,23 @@ "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" } } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}": { + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an Ingress", - "operationId": "deleteNetworkingV1NamespacedIngress", + "description": "delete a StorageVersion", + "operationId": "deleteInternalApiserverV1alpha1StorageVersion", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -72017,21 +73390,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified Ingress", - "operationId": "readNetworkingV1NamespacedIngress", + "description": "read the specified StorageVersion", + "operationId": "readInternalApiserverV1alpha1StorageVersion", "produces": [ "application/json", "application/yaml", @@ -72042,7 +73415,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "401": { @@ -72053,27 +73426,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 }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -72086,8 +73456,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified Ingress", - "operationId": "patchNetworkingV1NamespacedIngress", + "description": "partially update the specified StorageVersion", + "operationId": "patchInternalApiserverV1alpha1StorageVersion", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -72123,13 +73493,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "401": { @@ -72140,28 +73510,28 @@ "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" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified Ingress", - "operationId": "replaceNetworkingV1NamespacedIngress", + "description": "replace the specified StorageVersion", + "operationId": "replaceInternalApiserverV1alpha1StorageVersion", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, { @@ -72192,13 +73562,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "401": { @@ -72209,23 +73579,23 @@ "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" } } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status": { + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified Ingress", - "operationId": "readNetworkingV1NamespacedIngressStatus", + "description": "read status of the specified StorageVersion", + "operationId": "readInternalApiserverV1alpha1StorageVersionStatus", "produces": [ "application/json", "application/yaml", @@ -72236,7 +73606,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "401": { @@ -72247,27 +73617,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 }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -72280,8 +73647,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified Ingress", - "operationId": "patchNetworkingV1NamespacedIngressStatus", + "description": "partially update status of the specified StorageVersion", + "operationId": "patchInternalApiserverV1alpha1StorageVersionStatus", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -72317,13 +73684,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "401": { @@ -72334,28 +73701,28 @@ "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" } }, "put": { "consumes": [ "*/*" ], - "description": "replace status of the specified Ingress", - "operationId": "replaceNetworkingV1NamespacedIngressStatus", + "description": "replace status of the specified StorageVersion", + "operationId": "replaceInternalApiserverV1alpha1StorageVersionStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, { @@ -72386,13 +73753,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "401": { @@ -72403,85 +73770,37 @@ "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" } } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies": { - "delete": { + "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of NetworkPolicy", - "operationId": "deleteNetworkingV1CollectionNamespacedNetworkPolicy", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - } - ], + "description": "watch individual changes to a list of StorageVersion. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchInternalApiserverV1alpha1StorageVersionList", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -72492,56 +73811,61 @@ "https" ], "tags": [ - "networking_v1" + "internalApiserver_v1alpha1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind NetworkPolicy", - "operationId": "listNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ], + "description": "watch changes to an object of kind StorageVersion. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchInternalApiserverV1alpha1StorageVersion", "produces": [ "application/json", "application/yaml", @@ -72555,7 +73879,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -72566,56 +73890,72 @@ "https" ], "tags": [ - "networking_v1" + "internalApiserver_v1alpha1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" } }, "parameters": [ { - "$ref": "#/parameters/namespace-vgWSWtn3" + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the StorageVersion", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "post": { + ] + }, + "/apis/lifecycle.k8s.io/": { + "get": { "consumes": [ - "*/*" - ], - "description": "create a NetworkPolicy", - "operationId": "createNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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 - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], + "description": "get information of a group", + "operationId": "getLifecycleAPIGroup", "produces": [ "application/json", "application/yaml", @@ -72626,19 +73966,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" } }, "401": { @@ -72649,47 +73977,20 @@ "https" ], "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } + "lifecycle" + ] } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}": { - "delete": { + "/apis/lifecycle.k8s.io/v1alpha1/": { + "get": { "consumes": [ - "*/*" - ], - "description": "delete a NetworkPolicy", - "operationId": "deleteNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], + "description": "get available resources", + "operationId": "getLifecycleV1alpha1APIResources", "produces": [ "application/json", "application/yaml", @@ -72700,13 +74001,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" } }, "401": { @@ -72717,32 +74012,31 @@ "https" ], "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, + "lifecycle_v1alpha1" + ] + } + }, + "/apis/lifecycle.k8s.io/v1alpha1/evictionrequests": { "get": { "consumes": [ "*/*" ], - "description": "read the specified NetworkPolicy", - "operationId": "readNetworkingV1NamespacedNetworkPolicy", + "description": "list or watch objects of kind EvictionRequest", + "operationId": "listLifecycleV1alpha1EvictionRequestForAllNamespaces", "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/io.k8s.api.networking.v1.NetworkPolicy" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequestList" } }, "401": { @@ -72753,179 +74047,61 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the NetworkPolicy", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" }, { - "$ref": "#/parameters/namespace-vgWSWtn3" + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" }, { "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified NetworkPolicy", - "operationId": "patchNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified NetworkPolicy", - "operationId": "replaceNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - } + ] }, - "/apis/networking.k8s.io/v1/networkpolicies": { + "/apis/lifecycle.k8s.io/v1alpha1/evictions": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind NetworkPolicy", - "operationId": "listNetworkingV1NetworkPolicyForAllNamespaces", + "description": "list or watch objects of kind Eviction", + "operationId": "listLifecycleV1alpha1EvictionForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -72939,7 +74115,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyList" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionList" } }, "401": { @@ -72950,13 +74126,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, "parameters": [ @@ -72998,13 +74174,13 @@ } ] }, - "/apis/networking.k8s.io/v1/servicecidrs": { + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ServiceCIDR", - "operationId": "deleteNetworkingV1CollectionServiceCIDR", + "description": "delete collection of EvictionRequest", + "operationId": "deleteLifecycleV1alpha1CollectionNamespacedEvictionRequest", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -73077,21 +74253,21 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ServiceCIDR", - "operationId": "listNetworkingV1ServiceCIDR", + "description": "list or watch objects of kind EvictionRequest", + "operationId": "listLifecycleV1alpha1NamespacedEvictionRequest", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -73140,7 +74316,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDRList" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequestList" } }, "401": { @@ -73151,16 +74327,19 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -73169,15 +74348,15 @@ "consumes": [ "*/*" ], - "description": "create a ServiceCIDR", - "operationId": "createNetworkingV1ServiceCIDR", + "description": "create an EvictionRequest", + "operationId": "createLifecycleV1alpha1NamespacedEvictionRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, { @@ -73208,19 +74387,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "401": { @@ -73231,23 +74410,23 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } } }, - "/apis/networking.k8s.io/v1/servicecidrs/{name}": { + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ServiceCIDR", - "operationId": "deleteNetworkingV1ServiceCIDR", + "description": "delete an EvictionRequest", + "operationId": "deleteLifecycleV1alpha1NamespacedEvictionRequest", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -73299,21 +74478,21 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ServiceCIDR", - "operationId": "readNetworkingV1ServiceCIDR", + "description": "read the specified EvictionRequest", + "operationId": "readLifecycleV1alpha1NamespacedEvictionRequest", "produces": [ "application/json", "application/yaml", @@ -73324,7 +74503,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "401": { @@ -73335,24 +74514,27 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the ServiceCIDR", + "description": "name of the EvictionRequest", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -73365,8 +74547,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ServiceCIDR", - "operationId": "patchNetworkingV1ServiceCIDR", + "description": "partially update the specified EvictionRequest", + "operationId": "patchLifecycleV1alpha1NamespacedEvictionRequest", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -73402,13 +74584,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "401": { @@ -73419,28 +74601,28 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified ServiceCIDR", - "operationId": "replaceNetworkingV1ServiceCIDR", + "description": "replace the specified EvictionRequest", + "operationId": "replaceLifecycleV1alpha1NamespacedEvictionRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, { @@ -73471,13 +74653,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "401": { @@ -73488,23 +74670,23 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } } }, - "/apis/networking.k8s.io/v1/servicecidrs/{name}/status": { + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified ServiceCIDR", - "operationId": "readNetworkingV1ServiceCIDRStatus", + "description": "read status of the specified EvictionRequest", + "operationId": "readLifecycleV1alpha1NamespacedEvictionRequestStatus", "produces": [ "application/json", "application/yaml", @@ -73515,7 +74697,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "401": { @@ -73526,24 +74708,27 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the ServiceCIDR", + "description": "name of the EvictionRequest", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -73556,8 +74741,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified ServiceCIDR", - "operationId": "patchNetworkingV1ServiceCIDRStatus", + "description": "partially update status of the specified EvictionRequest", + "operationId": "patchLifecycleV1alpha1NamespacedEvictionRequestStatus", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -73593,13 +74778,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "401": { @@ -73610,28 +74795,28 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace status of the specified ServiceCIDR", - "operationId": "replaceNetworkingV1ServiceCIDRStatus", + "description": "replace status of the specified EvictionRequest", + "operationId": "replaceLifecycleV1alpha1NamespacedEvictionRequestStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, { @@ -73662,13 +74847,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "401": { @@ -73679,37 +74864,85 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } } }, - "/apis/networking.k8s.io/v1/watch/ingressclasses": { - "get": { + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions": { + "delete": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of IngressClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1IngressClassList", + "description": "delete collection of Eviction", + "operationId": "deleteLifecycleV1alpha1CollectionNamespacedEviction", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -73720,61 +74953,56 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/networking.k8s.io/v1/watch/ingressclasses/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind IngressClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNetworkingV1IngressClass", + "description": "list or watch objects of kind Eviction", + "operationId": "listLifecycleV1alpha1NamespacedEviction", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], "produces": [ "application/json", "application/yaml", @@ -73788,7 +75016,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionList" } }, "401": { @@ -73799,83 +75027,79 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the IngressClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "$ref": "#/parameters/namespace-vgWSWtn3" }, { "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" } - ] - }, - "/apis/networking.k8s.io/v1/watch/ingresses": { - "get": { + ], + "post": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of Ingress. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1IngressListForAllNamespaces", + "description": "create an Eviction", + "operationId": "createLifecycleV1alpha1NamespacedEviction", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" } }, "401": { @@ -73886,75 +75110,64 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } - ] + } }, - "/apis/networking.k8s.io/v1/watch/ipaddresses": { - "get": { + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}": { + "delete": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of IPAddress. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1IPAddressList", + "description": "delete an Eviction", + "operationId": "deleteLifecycleV1alpha1NamespacedEviction", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -73965,75 +75178,32 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/networking.k8s.io/v1/watch/ipaddresses/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind IPAddress. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNetworkingV1IPAddress", + "description": "read the specified Eviction", + "operationId": "readLifecycleV1alpha1NamespacedEviction", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" } }, "401": { @@ -74044,33 +75214,18 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the IPAddress", + "description": "name of the Eviction", "in": "path", "name": "name", "required": true, @@ -74078,49 +75233,64 @@ "uniqueItems": true }, { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "$ref": "#/parameters/namespace-vgWSWtn3" }, { - "$ref": "#/parameters/watch-XNNPZGbK" + "$ref": "#/parameters/pretty-tJGM1-ng" } - ] - }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses": { - "get": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified Eviction", + "operationId": "patchLifecycleV1alpha1NamespacedEviction", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } ], - "description": "watch individual changes to a list of Ingress. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1NamespacedIngressList", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" } }, "401": { @@ -74131,64 +75301,286 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Eviction", + "operationId": "replaceLifecycleV1alpha1NamespacedEviction", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" + } + } + }, + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified Eviction", + "operationId": "readLifecycleV1alpha1NamespacedEvictionStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" + } + }, + "parameters": [ { - "$ref": "#/parameters/limit-1NfNmdNH" + "description": "name of the Eviction", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true }, { "$ref": "#/parameters/namespace-vgWSWtn3" }, { "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified Eviction", + "operationId": "patchLifecycleV1alpha1NamespacedEvictionStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified Eviction", + "operationId": "replaceLifecycleV1alpha1NamespacedEvictionStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } - ] + } }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/evictionrequests": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind Ingress. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNetworkingV1NamespacedIngress", + "description": "watch individual changes to a list of EvictionRequest. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchLifecycleV1alpha1EvictionRequestListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -74213,13 +75605,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ @@ -74238,17 +75630,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "description": "name of the Ingress", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -74272,13 +75653,13 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/evictions": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1NamespacedNetworkPolicyList", + "description": "watch individual changes to a list of Eviction. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchLifecycleV1alpha1EvictionListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -74303,13 +75684,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, "parameters": [ @@ -74328,9 +75709,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -74354,13 +75732,13 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictionrequests": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNetworkingV1NamespacedNetworkPolicy", + "description": "watch individual changes to a list of EvictionRequest. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchLifecycleV1alpha1NamespacedEvictionRequestList", "produces": [ "application/json", "application/yaml", @@ -74385,13 +75763,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ @@ -74410,14 +75788,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "description": "name of the NetworkPolicy", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "$ref": "#/parameters/namespace-vgWSWtn3" }, @@ -74444,13 +75814,13 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/networkpolicies": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictionrequests/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1NetworkPolicyListForAllNamespaces", + "description": "watch changes to an object of kind EvictionRequest. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchLifecycleV1alpha1NamespacedEvictionRequest", "produces": [ "application/json", "application/yaml", @@ -74475,13 +75845,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ @@ -74500,6 +75870,17 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, + { + "description": "name of the EvictionRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -74523,13 +75904,13 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/servicecidrs": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictions": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ServiceCIDR. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1ServiceCIDRList", + "description": "watch individual changes to a list of Eviction. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchLifecycleV1alpha1NamespacedEvictionList", "produces": [ "application/json", "application/yaml", @@ -74554,13 +75935,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, "parameters": [ @@ -74579,6 +75960,9 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -74602,13 +75986,13 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/servicecidrs/{name}": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictions/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ServiceCIDR. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNetworkingV1ServiceCIDR", + "description": "watch changes to an object of kind Eviction. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchLifecycleV1alpha1NamespacedEviction", "produces": [ "application/json", "application/yaml", @@ -74633,13 +76017,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, "parameters": [ @@ -74659,13 +76043,16 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the ServiceCIDR", + "description": "name of the Eviction", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -74689,7 +76076,42 @@ } ] }, - "/apis/networking.k8s.io/v1beta1/": { + "/apis/networking.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get information of a group", + "operationId": "getNetworkingAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking" + ] + } + }, + "/apis/networking.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -74698,7 +76120,7 @@ "application/cbor" ], "description": "get available resources", - "operationId": "getNetworkingV1beta1APIResources", + "operationId": "getNetworkingV1APIResources", "produces": [ "application/json", "application/yaml", @@ -74720,17 +76142,17 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ] } }, - "/apis/networking.k8s.io/v1beta1/ipaddresses": { + "/apis/networking.k8s.io/v1/ingressclasses": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of IPAddress", - "operationId": "deleteNetworkingV1beta1CollectionIPAddress", + "description": "delete collection of IngressClass", + "operationId": "deleteNetworkingV1CollectionIngressClass", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -74803,21 +76225,21 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind IPAddress", - "operationId": "listNetworkingV1beta1IPAddress", + "description": "list or watch objects of kind IngressClass", + "operationId": "listNetworkingV1IngressClass", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -74866,7 +76288,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddressList" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClassList" } }, "401": { @@ -74877,13 +76299,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } }, "parameters": [ @@ -74895,15 +76317,15 @@ "consumes": [ "*/*" ], - "description": "create an IPAddress", - "operationId": "createNetworkingV1beta1IPAddress", + "description": "create an IngressClass", + "operationId": "createNetworkingV1IngressClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, { @@ -74934,19 +76356,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, "401": { @@ -74957,23 +76379,23 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } } }, - "/apis/networking.k8s.io/v1beta1/ipaddresses/{name}": { + "/apis/networking.k8s.io/v1/ingressclasses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an IPAddress", - "operationId": "deleteNetworkingV1beta1IPAddress", + "description": "delete an IngressClass", + "operationId": "deleteNetworkingV1IngressClass", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -75025,21 +76447,21 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified IPAddress", - "operationId": "readNetworkingV1beta1IPAddress", + "description": "read the specified IngressClass", + "operationId": "readNetworkingV1IngressClass", "produces": [ "application/json", "application/yaml", @@ -75050,7 +76472,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, "401": { @@ -75061,18 +76483,18 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } }, "parameters": [ { - "description": "name of the IPAddress", + "description": "name of the IngressClass", "in": "path", "name": "name", "required": true, @@ -75091,8 +76513,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified IPAddress", - "operationId": "patchNetworkingV1beta1IPAddress", + "description": "partially update the specified IngressClass", + "operationId": "patchNetworkingV1IngressClass", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -75128,13 +76550,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, "401": { @@ -75145,28 +76567,28 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified IPAddress", - "operationId": "replaceNetworkingV1beta1IPAddress", + "description": "replace the specified IngressClass", + "operationId": "replaceNetworkingV1IngressClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, { @@ -75197,13 +76619,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, "401": { @@ -75214,23 +76636,102 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } } }, - "/apis/networking.k8s.io/v1beta1/servicecidrs": { + "/apis/networking.k8s.io/v1/ingresses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Ingress", + "operationId": "listNetworkingV1IngressForAllNamespaces", + "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/io.k8s.api.networking.v1.IngressList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1/ipaddresses": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ServiceCIDR", - "operationId": "deleteNetworkingV1beta1CollectionServiceCIDR", + "description": "delete collection of IPAddress", + "operationId": "deleteNetworkingV1CollectionIPAddress", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -75303,21 +76804,21 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ServiceCIDR", - "operationId": "listNetworkingV1beta1ServiceCIDR", + "description": "list or watch objects of kind IPAddress", + "operationId": "listNetworkingV1IPAddress", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -75366,7 +76867,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDRList" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddressList" } }, "401": { @@ -75377,13 +76878,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" } }, "parameters": [ @@ -75395,15 +76896,15 @@ "consumes": [ "*/*" ], - "description": "create a ServiceCIDR", - "operationId": "createNetworkingV1beta1ServiceCIDR", + "description": "create an IPAddress", + "operationId": "createNetworkingV1IPAddress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, { @@ -75434,19 +76935,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, "401": { @@ -75457,23 +76958,23 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" } } }, - "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}": { + "/apis/networking.k8s.io/v1/ipaddresses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ServiceCIDR", - "operationId": "deleteNetworkingV1beta1ServiceCIDR", + "description": "delete an IPAddress", + "operationId": "deleteNetworkingV1IPAddress", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -75525,21 +77026,21 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ServiceCIDR", - "operationId": "readNetworkingV1beta1ServiceCIDR", + "description": "read the specified IPAddress", + "operationId": "readNetworkingV1IPAddress", "produces": [ "application/json", "application/yaml", @@ -75550,7 +77051,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, "401": { @@ -75561,18 +77062,18 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" } }, "parameters": [ { - "description": "name of the ServiceCIDR", + "description": "name of the IPAddress", "in": "path", "name": "name", "required": true, @@ -75591,8 +77092,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ServiceCIDR", - "operationId": "patchNetworkingV1beta1ServiceCIDR", + "description": "partially update the specified IPAddress", + "operationId": "patchNetworkingV1IPAddress", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -75628,13 +77129,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, "401": { @@ -75645,28 +77146,28 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified ServiceCIDR", - "operationId": "replaceNetworkingV1beta1ServiceCIDR", + "description": "replace the specified IPAddress", + "operationId": "replaceNetworkingV1IPAddress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, { @@ -75697,13 +77198,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, "401": { @@ -75714,23 +77215,74 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" } } }, - "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status": { - "get": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses": { + "delete": { "consumes": [ "*/*" ], - "description": "read status of the specified ServiceCIDR", - "operationId": "readNetworkingV1beta1ServiceCIDRStatus", + "description": "delete collection of Ingress", + "operationId": "deleteNetworkingV1CollectionNamespacedIngress", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], "produces": [ "application/json", "application/yaml", @@ -75741,7 +77293,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -75752,80 +77304,70 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "Ingress", + "version": "v1" } }, - "parameters": [ - { - "description": "name of the ServiceCIDR", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "patch": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" + "*/*" ], - "description": "partially update status of the specified ServiceCIDR", - "operationId": "patchNetworkingV1beta1ServiceCIDRStatus", + "description": "list or watch objects of kind Ingress", + "operationId": "listNetworkingV1NamespacedIngress", "parameters": [ { - "$ref": "#/parameters/body-78PwaGsr" + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" }, { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + "$ref": "#/parameters/continue-QfD61s0i" }, { - "$ref": "#/parameters/fieldManager-7c6nTn1T" + "$ref": "#/parameters/fieldSelector-xIcQKXFG" }, { - "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 + "$ref": "#/parameters/labelSelector-5Zw57w4C" }, { - "$ref": "#/parameters/force-tOGGb0Yi" + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } ], "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/io.k8s.api.networking.v1beta1.ServiceCIDR" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressList" } }, "401": { @@ -75836,28 +77378,36 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "Ingress", + "version": "v1" } }, - "put": { + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { "consumes": [ "*/*" ], - "description": "replace status of the specified ServiceCIDR", - "operationId": "replaceNetworkingV1beta1ServiceCIDRStatus", + "description": "create an Ingress", + "operationId": "createNetworkingV1NamespacedIngress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" } }, { @@ -75888,13 +77438,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" } }, "401": { @@ -75905,37 +77461,64 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "Ingress", + "version": "v1" } } }, - "/apis/networking.k8s.io/v1beta1/watch/ipaddresses": { - "get": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}": { + "delete": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of IPAddress. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1beta1IPAddressList", + "description": "delete an Ingress", + "operationId": "deleteNetworkingV1NamespacedIngress", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -75946,75 +77529,32 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "Ingress", + "version": "v1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/networking.k8s.io/v1beta1/watch/ipaddresses/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind IPAddress. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNetworkingV1beta1IPAddress", + "description": "read the specified Ingress", + "operationId": "readNetworkingV1NamespacedIngress", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" } }, "401": { @@ -76025,33 +77565,18 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "Ingress", + "version": "v1" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the IPAddress", + "description": "name of the Ingress", "in": "path", "name": "name", "required": true, @@ -76059,49 +77584,64 @@ "uniqueItems": true }, { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "$ref": "#/parameters/namespace-vgWSWtn3" }, { - "$ref": "#/parameters/watch-XNNPZGbK" + "$ref": "#/parameters/pretty-tJGM1-ng" } - ] - }, - "/apis/networking.k8s.io/v1beta1/watch/servicecidrs": { - "get": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified Ingress", + "operationId": "patchNetworkingV1NamespacedIngress", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } ], - "description": "watch individual changes to a list of ServiceCIDR. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1beta1ServiceCIDRList", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" } }, "401": { @@ -76112,75 +77652,103 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "Ingress", + "version": "v1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Ingress", + "operationId": "replaceNetworkingV1NamespacedIngress", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.networking.v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" } - ] + } }, - "/apis/networking.k8s.io/v1beta1/watch/servicecidrs/{name}": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ServiceCIDR. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNetworkingV1beta1ServiceCIDR", + "description": "read status of the specified Ingress", + "operationId": "readNetworkingV1NamespacedIngressStatus", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" } }, "401": { @@ -76191,33 +77759,18 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "Ingress", + "version": "v1" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the ServiceCIDR", + "description": "name of the Ingress", "in": "path", "name": "name", "required": true, @@ -76225,47 +77778,64 @@ "uniqueItems": true }, { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "$ref": "#/parameters/namespace-vgWSWtn3" }, { - "$ref": "#/parameters/watch-XNNPZGbK" + "$ref": "#/parameters/pretty-tJGM1-ng" } - ] - }, - "/apis/node.k8s.io/": { - "get": { + ], + "patch": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified Ingress", + "operationId": "patchNetworkingV1NamespacedIngressStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } ], - "description": "get information of a group", - "operationId": "getNodeAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" } }, "401": { @@ -76276,20 +77846,48 @@ "https" ], "tags": [ - "node" - ] - } - }, - "/apis/node.k8s.io/v1/": { - "get": { + "networking_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + }, + "put": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" + "*/*" + ], + "description": "replace status of the specified Ingress", + "operationId": "replaceNetworkingV1NamespacedIngressStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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": "get available resources", - "operationId": "getNodeV1APIResources", "produces": [ "application/json", "application/yaml", @@ -76300,7 +77898,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" } }, "401": { @@ -76311,17 +77915,23 @@ "https" ], "tags": [ - "node_v1" - ] + "networking_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } } }, - "/apis/node.k8s.io/v1/runtimeclasses": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of RuntimeClass", - "operationId": "deleteNodeV1CollectionRuntimeClass", + "description": "delete collection of NetworkPolicy", + "operationId": "deleteNetworkingV1CollectionNamespacedNetworkPolicy", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -76394,12 +78004,12 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, @@ -76407,8 +78017,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind RuntimeClass", - "operationId": "listNodeV1RuntimeClass", + "description": "list or watch objects of kind NetworkPolicy", + "operationId": "listNetworkingV1NamespacedNetworkPolicy", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -76457,7 +78067,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClassList" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyList" } }, "401": { @@ -76468,16 +78078,19 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -76486,15 +78099,15 @@ "consumes": [ "*/*" ], - "description": "create a RuntimeClass", - "operationId": "createNodeV1RuntimeClass", + "description": "create a NetworkPolicy", + "operationId": "createNetworkingV1NamespacedNetworkPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, { @@ -76525,19 +78138,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, "401": { @@ -76548,23 +78161,23 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } } }, - "/apis/node.k8s.io/v1/runtimeclasses/{name}": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a RuntimeClass", - "operationId": "deleteNodeV1RuntimeClass", + "description": "delete a NetworkPolicy", + "operationId": "deleteNetworkingV1NamespacedNetworkPolicy", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -76616,12 +78229,12 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, @@ -76629,8 +78242,8 @@ "consumes": [ "*/*" ], - "description": "read the specified RuntimeClass", - "operationId": "readNodeV1RuntimeClass", + "description": "read the specified NetworkPolicy", + "operationId": "readNetworkingV1NamespacedNetworkPolicy", "produces": [ "application/json", "application/yaml", @@ -76641,7 +78254,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, "401": { @@ -76652,24 +78265,27 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, "parameters": [ { - "description": "name of the RuntimeClass", + "description": "name of the NetworkPolicy", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -76682,8 +78298,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified RuntimeClass", - "operationId": "patchNodeV1RuntimeClass", + "description": "partially update the specified NetworkPolicy", + "operationId": "patchNetworkingV1NamespacedNetworkPolicy", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -76719,13 +78335,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, "401": { @@ -76736,12 +78352,12 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, @@ -76749,15 +78365,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified RuntimeClass", - "operationId": "replaceNodeV1RuntimeClass", + "description": "replace the specified NetworkPolicy", + "operationId": "replaceNetworkingV1NamespacedNetworkPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, { @@ -76788,13 +78404,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, "401": { @@ -76805,102 +78421,23 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } } }, - "/apis/node.k8s.io/v1/watch/runtimeclasses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNodeV1RuntimeClassList", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/node.k8s.io/v1/watch/runtimeclasses/{name}": { + "/apis/networking.k8s.io/v1/networkpolicies": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNodeV1RuntimeClass", + "description": "list or watch objects of kind NetworkPolicy", + "operationId": "listNetworkingV1NetworkPolicyForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -76914,7 +78451,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyList" } }, "401": { @@ -76925,12 +78462,12 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, @@ -76950,14 +78487,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "description": "name of the RuntimeClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -76981,81 +78510,13 @@ } ] }, - "/apis/policy/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getPolicyAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy" - ] - } - }, - "/apis/policy/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "description": "get available resources", - "operationId": "getPolicyV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ] - } - }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets": { + "/apis/networking.k8s.io/v1/servicecidrs": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of PodDisruptionBudget", - "operationId": "deletePolicyV1CollectionNamespacedPodDisruptionBudget", + "description": "delete collection of ServiceCIDR", + "operationId": "deleteNetworkingV1CollectionServiceCIDR", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -77128,12 +78589,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } }, @@ -77141,8 +78602,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listPolicyV1NamespacedPodDisruptionBudget", + "description": "list or watch objects of kind ServiceCIDR", + "operationId": "listNetworkingV1ServiceCIDR", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -77191,7 +78652,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetList" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDRList" } }, "401": { @@ -77202,19 +78663,16 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } }, "parameters": [ - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -77223,15 +78681,15 @@ "consumes": [ "*/*" ], - "description": "create a PodDisruptionBudget", - "operationId": "createPolicyV1NamespacedPodDisruptionBudget", + "description": "create a ServiceCIDR", + "operationId": "createNetworkingV1ServiceCIDR", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, { @@ -77262,19 +78720,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "401": { @@ -77285,23 +78743,23 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } } }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "/apis/networking.k8s.io/v1/servicecidrs/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a PodDisruptionBudget", - "operationId": "deletePolicyV1NamespacedPodDisruptionBudget", + "description": "delete a ServiceCIDR", + "operationId": "deleteNetworkingV1ServiceCIDR", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -77353,12 +78811,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } }, @@ -77366,8 +78824,8 @@ "consumes": [ "*/*" ], - "description": "read the specified PodDisruptionBudget", - "operationId": "readPolicyV1NamespacedPodDisruptionBudget", + "description": "read the specified ServiceCIDR", + "operationId": "readNetworkingV1ServiceCIDR", "produces": [ "application/json", "application/yaml", @@ -77378,7 +78836,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "401": { @@ -77389,27 +78847,24 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } }, "parameters": [ { - "description": "name of the PodDisruptionBudget", + "description": "name of the ServiceCIDR", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -77422,8 +78877,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified PodDisruptionBudget", - "operationId": "patchPolicyV1NamespacedPodDisruptionBudget", + "description": "partially update the specified ServiceCIDR", + "operationId": "patchNetworkingV1ServiceCIDR", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -77459,13 +78914,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "401": { @@ -77476,12 +78931,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } }, @@ -77489,15 +78944,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified PodDisruptionBudget", - "operationId": "replacePolicyV1NamespacedPodDisruptionBudget", + "description": "replace the specified ServiceCIDR", + "operationId": "replaceNetworkingV1ServiceCIDR", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, { @@ -77528,13 +78983,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "401": { @@ -77545,23 +79000,23 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } } }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { + "/apis/networking.k8s.io/v1/servicecidrs/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified PodDisruptionBudget", - "operationId": "readPolicyV1NamespacedPodDisruptionBudgetStatus", + "description": "read status of the specified ServiceCIDR", + "operationId": "readNetworkingV1ServiceCIDRStatus", "produces": [ "application/json", "application/yaml", @@ -77572,7 +79027,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "401": { @@ -77583,27 +79038,24 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } }, "parameters": [ { - "description": "name of the PodDisruptionBudget", + "description": "name of the ServiceCIDR", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -77616,8 +79068,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified PodDisruptionBudget", - "operationId": "patchPolicyV1NamespacedPodDisruptionBudgetStatus", + "description": "partially update status of the specified ServiceCIDR", + "operationId": "patchNetworkingV1ServiceCIDRStatus", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -77653,13 +79105,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "401": { @@ -77670,12 +79122,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } }, @@ -77683,15 +79135,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified PodDisruptionBudget", - "operationId": "replacePolicyV1NamespacedPodDisruptionBudgetStatus", + "description": "replace status of the specified ServiceCIDR", + "operationId": "replaceNetworkingV1ServiceCIDRStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, { @@ -77722,13 +79174,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "401": { @@ -77739,102 +79191,23 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } } }, - "/apis/policy/v1/poddisruptionbudgets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listPolicyV1PodDisruptionBudgetForAllNamespaces", - "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/io.k8s.api.policy.v1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets": { + "/apis/networking.k8s.io/v1/watch/ingressclasses": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchPolicyV1NamespacedPodDisruptionBudgetList", + "description": "watch individual changes to a list of IngressClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1IngressClassList", "produces": [ "application/json", "application/yaml", @@ -77859,12 +79232,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "IngressClass", "version": "v1" } }, @@ -77884,9 +79257,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -77910,13 +79280,13 @@ } ] }, - "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "/apis/networking.k8s.io/v1/watch/ingressclasses/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchPolicyV1NamespacedPodDisruptionBudget", + "description": "watch changes to an object of kind IngressClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNetworkingV1IngressClass", "produces": [ "application/json", "application/yaml", @@ -77941,12 +79311,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "IngressClass", "version": "v1" } }, @@ -77967,16 +79337,13 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the PodDisruptionBudget", + "description": "name of the IngressClass", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -78000,13 +79367,13 @@ } ] }, - "/apis/policy/v1/watch/poddisruptionbudgets": { + "/apis/networking.k8s.io/v1/watch/ingresses": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchPolicyV1PodDisruptionBudgetListForAllNamespaces", + "description": "watch individual changes to a list of Ingress. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1IngressListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -78031,12 +79398,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" } }, @@ -78079,25 +79446,27 @@ } ] }, - "/apis/rbac.authorization.k8s.io/": { + "/apis/networking.k8s.io/v1/watch/ipaddresses": { "get": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], - "description": "get information of a group", - "operationId": "getRbacAuthorizationAPIGroup", + "description": "watch individual changes to a list of IPAddress. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1IPAddressList", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "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/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -78108,31 +79477,75 @@ "https" ], "tags": [ - "rbacAuthorization" - ] - } + "networking_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/rbac.authorization.k8s.io/v1/": { + "/apis/networking.k8s.io/v1/watch/ipaddresses/{name}": { "get": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" + "*/*" ], - "description": "get available resources", - "operationId": "getRbacAuthorizationV1APIResources", + "description": "watch changes to an object of kind IPAddress. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNetworkingV1IPAddress", "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/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -78143,79 +79556,83 @@ "https" ], "tags": [ - "rbacAuthorization_v1" - ] - } + "networking_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the IPAddress", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings": { - "delete": { + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of ClusterRoleBinding", - "operationId": "deleteRbacAuthorizationV1CollectionClusterRoleBinding", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - } - ], + "description": "watch individual changes to a list of Ingress. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1NamespacedIngressList", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -78226,56 +79643,64 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ClusterRoleBinding", - "operationId": "listRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ], + "description": "watch changes to an object of kind Ingress. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNetworkingV1NamespacedIngress", "produces": [ "application/json", "application/yaml", @@ -78289,7 +79714,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBindingList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -78300,76 +79725,86 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" } }, "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the Ingress", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "post": { + ] + }, + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { + "get": { "consumes": [ "*/*" ], - "description": "create a ClusterRoleBinding", - "operationId": "createRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": "watch individual changes to a list of NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1NamespacedNetworkPolicyList", "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/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -78380,64 +79815,78 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } - } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}": { - "delete": { + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "delete a ClusterRoleBinding", - "operationId": "deleteRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - } - ], + "description": "watch changes to an object of kind NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNetworkingV1NamespacedNetworkPolicy", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -78448,32 +79897,86 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the NetworkPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1/watch/networkpolicies": { "get": { "consumes": [ "*/*" ], - "description": "read the specified ClusterRoleBinding", - "operationId": "readRbacAuthorizationV1ClusterRoleBinding", + "description": "watch individual changes to a list of NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1NetworkPolicyListForAllNamespaces", "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/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -78484,80 +79987,75 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, "parameters": [ { - "description": "name of the ClusterRoleBinding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "patch": { + ] + }, + "/apis/networking.k8s.io/v1/watch/servicecidrs": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified ClusterRoleBinding", - "operationId": "patchRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } + "*/*" ], + "description": "watch individual changes to a list of ServiceCIDR. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1ServiceCIDRList", "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/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -78568,48 +80066,151 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } }, - "put": { + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1/watch/servicecidrs/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "replace the specified ClusterRoleBinding", - "operationId": "replaceRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, + "description": "watch changes to an object of kind ServiceCIDR. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNetworkingV1ServiceCIDR", + "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/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": [ + "networking_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ServiceCIDR", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/node.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], + "description": "get information of a group", + "operationId": "getNodeAPIGroup", "produces": [ "application/json", "application/yaml", @@ -78620,13 +80221,42 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" } }, - "201": { - "description": "Created", + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node" + ] + } + }, + "/apis/node.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get available resources", + "operationId": "getNodeV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" } }, "401": { @@ -78637,23 +80267,17 @@ "https" ], "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } + "node_v1" + ] } }, - "/apis/rbac.authorization.k8s.io/v1/clusterroles": { + "/apis/node.k8s.io/v1/runtimeclasses": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ClusterRole", - "operationId": "deleteRbacAuthorizationV1CollectionClusterRole", + "description": "delete collection of RuntimeClass", + "operationId": "deleteNodeV1CollectionRuntimeClass", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -78726,12 +80350,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "node_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" } }, @@ -78739,8 +80363,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ClusterRole", - "operationId": "listRbacAuthorizationV1ClusterRole", + "description": "list or watch objects of kind RuntimeClass", + "operationId": "listNodeV1RuntimeClass", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -78789,7 +80413,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleList" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClassList" } }, "401": { @@ -78800,12 +80424,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "node_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" } }, @@ -78818,15 +80442,15 @@ "consumes": [ "*/*" ], - "description": "create a ClusterRole", - "operationId": "createRbacAuthorizationV1ClusterRole", + "description": "create a RuntimeClass", + "operationId": "createNodeV1RuntimeClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, { @@ -78857,19 +80481,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, "401": { @@ -78880,23 +80504,23 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "node_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" } } }, - "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}": { + "/apis/node.k8s.io/v1/runtimeclasses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ClusterRole", - "operationId": "deleteRbacAuthorizationV1ClusterRole", + "description": "delete a RuntimeClass", + "operationId": "deleteNodeV1RuntimeClass", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -78948,12 +80572,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "node_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" } }, @@ -78961,8 +80585,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ClusterRole", - "operationId": "readRbacAuthorizationV1ClusterRole", + "description": "read the specified RuntimeClass", + "operationId": "readNodeV1RuntimeClass", "produces": [ "application/json", "application/yaml", @@ -78973,7 +80597,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, "401": { @@ -78984,18 +80608,18 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "node_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" } }, "parameters": [ { - "description": "name of the ClusterRole", + "description": "name of the RuntimeClass", "in": "path", "name": "name", "required": true, @@ -79014,8 +80638,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ClusterRole", - "operationId": "patchRbacAuthorizationV1ClusterRole", + "description": "partially update the specified RuntimeClass", + "operationId": "patchNodeV1RuntimeClass", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -79051,13 +80675,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, "401": { @@ -79068,12 +80692,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "node_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" } }, @@ -79081,15 +80705,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ClusterRole", - "operationId": "replaceRbacAuthorizationV1ClusterRole", + "description": "replace the specified RuntimeClass", + "operationId": "replaceNodeV1RuntimeClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, { @@ -79120,13 +80744,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, "401": { @@ -79137,45 +80761,281 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "node_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" } } }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings": { - "delete": { + "/apis/node.k8s.io/v1/watch/runtimeclasses": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of RoleBinding", - "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRoleBinding", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + "description": "watch individual changes to a list of RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNodeV1RuntimeClassList", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/node.k8s.io/v1/watch/runtimeclasses/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNodeV1RuntimeClass", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the RuntimeClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/policy/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get information of a group", + "operationId": "getPolicyAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy" + ] + } + }, + "/apis/policy/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get available resources", + "operationId": "getPolicyV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ] + } + }, + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PodDisruptionBudget", + "operationId": "deletePolicyV1CollectionNamespacedPodDisruptionBudget", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" }, { "$ref": "#/parameters/labelSelector-5Zw57w4C" @@ -79226,12 +81086,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, @@ -79239,8 +81099,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind RoleBinding", - "operationId": "listRbacAuthorizationV1NamespacedRoleBinding", + "description": "list or watch objects of kind PodDisruptionBudget", + "operationId": "listPolicyV1NamespacedPodDisruptionBudget", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -79289,7 +81149,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBindingList" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetList" } }, "401": { @@ -79300,12 +81160,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, @@ -79321,15 +81181,15 @@ "consumes": [ "*/*" ], - "description": "create a RoleBinding", - "operationId": "createRbacAuthorizationV1NamespacedRoleBinding", + "description": "create a PodDisruptionBudget", + "operationId": "createPolicyV1NamespacedPodDisruptionBudget", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, { @@ -79360,19 +81220,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "401": { @@ -79383,23 +81243,23 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } } }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}": { + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a RoleBinding", - "operationId": "deleteRbacAuthorizationV1NamespacedRoleBinding", + "description": "delete a PodDisruptionBudget", + "operationId": "deletePolicyV1NamespacedPodDisruptionBudget", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -79451,12 +81311,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, @@ -79464,8 +81324,8 @@ "consumes": [ "*/*" ], - "description": "read the specified RoleBinding", - "operationId": "readRbacAuthorizationV1NamespacedRoleBinding", + "description": "read the specified PodDisruptionBudget", + "operationId": "readPolicyV1NamespacedPodDisruptionBudget", "produces": [ "application/json", "application/yaml", @@ -79476,7 +81336,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "401": { @@ -79487,18 +81347,18 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, "parameters": [ { - "description": "name of the RoleBinding", + "description": "name of the PodDisruptionBudget", "in": "path", "name": "name", "required": true, @@ -79520,8 +81380,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified RoleBinding", - "operationId": "patchRbacAuthorizationV1NamespacedRoleBinding", + "description": "partially update the specified PodDisruptionBudget", + "operationId": "patchPolicyV1NamespacedPodDisruptionBudget", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -79557,13 +81417,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "401": { @@ -79574,12 +81434,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, @@ -79587,15 +81447,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified RoleBinding", - "operationId": "replaceRbacAuthorizationV1NamespacedRoleBinding", + "description": "replace the specified PodDisruptionBudget", + "operationId": "replacePolicyV1NamespacedPodDisruptionBudget", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, { @@ -79626,13 +81486,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "401": { @@ -79643,74 +81503,23 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } } }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles": { - "delete": { + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of Role", - "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRole", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - } - ], + "description": "read status of the specified PodDisruptionBudget", + "operationId": "readPolicyV1NamespacedPodDisruptionBudgetStatus", "produces": [ "application/json", "application/yaml", @@ -79721,7 +81530,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "401": { @@ -79732,70 +81541,83 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, - "get": { + "parameters": [ + { + "description": "name of the PodDisruptionBudget", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" ], - "description": "list or watch objects of kind Role", - "operationId": "listRbacAuthorizationV1NamespacedRole", + "description": "partially update status of the specified PodDisruptionBudget", + "operationId": "patchPolicyV1NamespacedPodDisruptionBudgetStatus", "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + "$ref": "#/parameters/body-78PwaGsr" }, { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 }, { - "$ref": "#/parameters/shardSelector-Kgyki_3_" + "$ref": "#/parameters/fieldManager-7c6nTn1T" }, { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "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 }, { - "$ref": "#/parameters/watch-XNNPZGbK" + "$ref": "#/parameters/force-tOGGb0Yi" } ], "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/io.k8s.api.rbac.v1.RoleList" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "401": { @@ -79806,36 +81628,28 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, - "parameters": [ - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "post": { + "put": { "consumes": [ "*/*" ], - "description": "create a Role", - "operationId": "createRbacAuthorizationV1NamespacedRole", + "description": "replace status of the specified PodDisruptionBudget", + "operationId": "replacePolicyV1NamespacedPodDisruptionBudgetStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, { @@ -79866,279 +81680,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - } - }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a Role", - "operationId": "deleteRbacAuthorizationV1NamespacedRole", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Role", - "operationId": "readRbacAuthorizationV1NamespacedRole", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Role", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified Role", - "operationId": "patchRbacAuthorizationV1NamespacedRole", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Role", - "operationId": "replaceRbacAuthorizationV1NamespacedRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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/io.k8s.api.rbac.v1.Role" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "401": { @@ -80149,102 +81697,23 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } } }, - "/apis/rbac.authorization.k8s.io/v1/rolebindings": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind RoleBinding", - "operationId": "listRbacAuthorizationV1RoleBindingForAllNamespaces", - "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/io.k8s.api.rbac.v1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/roles": { + "/apis/policy/v1/poddisruptionbudgets": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Role", - "operationId": "listRbacAuthorizationV1RoleForAllNamespaces", + "description": "list or watch objects of kind PodDisruptionBudget", + "operationId": "listPolicyV1PodDisruptionBudgetForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -80258,7 +81727,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleList" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetList" } }, "401": { @@ -80269,12 +81738,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, @@ -80317,13 +81786,13 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { + "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1ClusterRoleBindingList", + "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchPolicyV1NamespacedPodDisruptionBudgetList", "produces": [ "application/json", "application/yaml", @@ -80348,12 +81817,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, @@ -80373,6 +81842,9 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -80396,13 +81868,13 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { + "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1ClusterRoleBinding", + "description": "watch changes to an object of kind PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchPolicyV1NamespacedPodDisruptionBudget", "produces": [ "application/json", "application/yaml", @@ -80427,12 +81899,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, @@ -80453,13 +81925,16 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the ClusterRoleBinding", + "description": "name of the PodDisruptionBudget", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -80483,13 +81958,13 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles": { + "/apis/policy/v1/watch/poddisruptionbudgets": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ClusterRole. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1ClusterRoleList", + "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchPolicyV1PodDisruptionBudgetListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -80514,12 +81989,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, @@ -80562,27 +82037,27 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}": { + "/apis/rbac.authorization.k8s.io/": { "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], - "description": "watch changes to an object of kind ClusterRole. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1ClusterRole", + "description": "get information of a group", + "operationId": "getRbacAuthorizationAPIGroup", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" } }, "401": { @@ -80593,83 +82068,31 @@ "https" ], "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the ClusterRole", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] + "rbacAuthorization" + ] + } }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings": { + "/apis/rbac.authorization.k8s.io/v1/": { "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], - "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1NamespacedRoleBindingList", + "description": "get available resources", + "operationId": "getRbacAuthorizationV1APIResources", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" } }, "401": { @@ -80681,77 +82104,78 @@ ], "tags": [ "rbacAuthorization_v1" + ] + } + }, + "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings": { + "delete": { + "consumes": [ + "*/*" ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}": { - "get": { - "consumes": [ - "*/*" + "description": "delete collection of ClusterRoleBinding", + "operationId": "deleteRbacAuthorizationV1CollectionClusterRoleBinding", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } ], - "description": "watch changes to an object of kind RoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1NamespacedRoleBinding", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -80764,70 +82188,54 @@ "tags": [ "rbacAuthorization_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", + "kind": "ClusterRoleBinding", "version": "v1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the RoleBinding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1NamespacedRoleList", + "description": "list or watch objects of kind ClusterRoleBinding", + "operationId": "listRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], "produces": [ "application/json", "application/yaml", @@ -80841,7 +82249,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBindingList" } }, "401": { @@ -80854,76 +82262,74 @@ "tags": [ "rbacAuthorization_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "rbac.authorization.k8s.io", - "kind": "Role", + "kind": "ClusterRoleBinding", "version": "v1" } }, "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}": { - "get": { + ], + "post": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind Role. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1NamespacedRole", + "description": "create a ClusterRoleBinding", + "operationId": "createRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" } }, "401": { @@ -80936,84 +82342,62 @@ "tags": [ "rbacAuthorization_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "rbac.authorization.k8s.io", - "kind": "Role", + "kind": "ClusterRoleBinding", "version": "v1" } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the Role", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] + } }, - "/apis/rbac.authorization.k8s.io/v1/watch/rolebindings": { - "get": { + "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}": { + "delete": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1RoleBindingListForAllNamespaces", + "description": "delete a ClusterRoleBinding", + "operationId": "deleteRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -81026,73 +82410,30 @@ "tags": [ "rbacAuthorization_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", + "kind": "ClusterRoleBinding", "version": "v1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/roles": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1RoleListForAllNamespaces", + "description": "read the specified ClusterRoleBinding", + "operationId": "readRbacAuthorizationV1ClusterRoleBinding", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" } }, "401": { @@ -81105,71 +82446,78 @@ "tags": [ "rbacAuthorization_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "rbac.authorization.k8s.io", - "kind": "Role", + "kind": "ClusterRoleBinding", "version": "v1" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" + "description": "name of the ClusterRoleBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true }, { "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" } - ] - }, - "/apis/resource.k8s.io/": { - "get": { + ], + "patch": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified ClusterRoleBinding", + "operationId": "patchRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } ], - "description": "get information of a group", - "operationId": "getResourceAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" } }, "401": { @@ -81180,20 +82528,48 @@ "https" ], "tags": [ - "resource" - ] - } - }, - "/apis/resource.k8s.io/v1/": { - "get": { + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "put": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" + "*/*" + ], + "description": "replace the specified ClusterRoleBinding", + "operationId": "replaceRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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": "get available resources", - "operationId": "getResourceV1APIResources", "produces": [ "application/json", "application/yaml", @@ -81204,7 +82580,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" } }, "401": { @@ -81215,17 +82597,23 @@ "https" ], "tags": [ - "resource_v1" - ] + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } } }, - "/apis/resource.k8s.io/v1/deviceclasses": { + "/apis/rbac.authorization.k8s.io/v1/clusterroles": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of DeviceClass", - "operationId": "deleteResourceV1CollectionDeviceClass", + "description": "delete collection of ClusterRole", + "operationId": "deleteRbacAuthorizationV1CollectionClusterRole", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -81298,12 +82686,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } }, @@ -81311,8 +82699,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind DeviceClass", - "operationId": "listResourceV1DeviceClass", + "description": "list or watch objects of kind ClusterRole", + "operationId": "listRbacAuthorizationV1ClusterRole", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -81361,7 +82749,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClassList" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleList" } }, "401": { @@ -81372,12 +82760,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } }, @@ -81390,15 +82778,15 @@ "consumes": [ "*/*" ], - "description": "create a DeviceClass", - "operationId": "createResourceV1DeviceClass", + "description": "create a ClusterRole", + "operationId": "createRbacAuthorizationV1ClusterRole", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, { @@ -81429,19 +82817,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "401": { @@ -81452,23 +82840,23 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } } }, - "/apis/resource.k8s.io/v1/deviceclasses/{name}": { + "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a DeviceClass", - "operationId": "deleteResourceV1DeviceClass", + "description": "delete a ClusterRole", + "operationId": "deleteRbacAuthorizationV1ClusterRole", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -81503,13 +82891,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -81520,12 +82908,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } }, @@ -81533,8 +82921,8 @@ "consumes": [ "*/*" ], - "description": "read the specified DeviceClass", - "operationId": "readResourceV1DeviceClass", + "description": "read the specified ClusterRole", + "operationId": "readRbacAuthorizationV1ClusterRole", "produces": [ "application/json", "application/yaml", @@ -81545,7 +82933,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "401": { @@ -81556,18 +82944,18 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } }, "parameters": [ { - "description": "name of the DeviceClass", + "description": "name of the ClusterRole", "in": "path", "name": "name", "required": true, @@ -81586,8 +82974,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified DeviceClass", - "operationId": "patchResourceV1DeviceClass", + "description": "partially update the specified ClusterRole", + "operationId": "patchRbacAuthorizationV1ClusterRole", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -81623,13 +83011,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "401": { @@ -81640,12 +83028,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } }, @@ -81653,15 +83041,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified DeviceClass", - "operationId": "replaceResourceV1DeviceClass", + "description": "replace the specified ClusterRole", + "operationId": "replaceRbacAuthorizationV1ClusterRole", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, { @@ -81692,13 +83080,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "401": { @@ -81709,23 +83097,23 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } } }, - "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims": { + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceClaim", - "operationId": "deleteResourceV1CollectionNamespacedResourceClaim", + "description": "delete collection of RoleBinding", + "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRoleBinding", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -81798,12 +83186,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, @@ -81811,8 +83199,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listResourceV1NamespacedResourceClaim", + "description": "list or watch objects of kind RoleBinding", + "operationId": "listRbacAuthorizationV1NamespacedRoleBinding", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -81861,7 +83249,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimList" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBindingList" } }, "401": { @@ -81872,12 +83260,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, @@ -81893,15 +83281,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceClaim", - "operationId": "createResourceV1NamespacedResourceClaim", + "description": "create a RoleBinding", + "operationId": "createRbacAuthorizationV1NamespacedRoleBinding", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, { @@ -81932,19 +83320,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "401": { @@ -81955,23 +83343,23 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } } }, - "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceClaim", - "operationId": "deleteResourceV1NamespacedResourceClaim", + "description": "delete a RoleBinding", + "operationId": "deleteRbacAuthorizationV1NamespacedRoleBinding", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -82006,13 +83394,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -82023,215 +83411,21 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified ResourceClaim", - "operationId": "readResourceV1NamespacedResourceClaim", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ResourceClaim", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified ResourceClaim", - "operationId": "patchResourceV1NamespacedResourceClaim", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ResourceClaim", - "operationId": "replaceResourceV1NamespacedResourceClaim", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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/io.k8s.api.resource.v1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1" - } - } - }, - "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified ResourceClaim", - "operationId": "readResourceV1NamespacedResourceClaimStatus", + "description": "read the specified RoleBinding", + "operationId": "readRbacAuthorizationV1NamespacedRoleBinding", "produces": [ "application/json", "application/yaml", @@ -82242,7 +83436,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "401": { @@ -82253,18 +83447,18 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, "parameters": [ { - "description": "name of the ResourceClaim", + "description": "name of the RoleBinding", "in": "path", "name": "name", "required": true, @@ -82286,8 +83480,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified ResourceClaim", - "operationId": "patchResourceV1NamespacedResourceClaimStatus", + "description": "partially update the specified RoleBinding", + "operationId": "patchRbacAuthorizationV1NamespacedRoleBinding", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -82323,13 +83517,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "401": { @@ -82340,12 +83534,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, @@ -82353,15 +83547,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified ResourceClaim", - "operationId": "replaceResourceV1NamespacedResourceClaimStatus", + "description": "replace the specified RoleBinding", + "operationId": "replaceRbacAuthorizationV1NamespacedRoleBinding", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, { @@ -82392,13 +83586,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "401": { @@ -82409,23 +83603,23 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } } }, - "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceClaimTemplate", - "operationId": "deleteResourceV1CollectionNamespacedResourceClaimTemplate", + "description": "delete collection of Role", + "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRole", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -82498,12 +83692,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -82511,8 +83705,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listResourceV1NamespacedResourceClaimTemplate", + "description": "list or watch objects of kind Role", + "operationId": "listRbacAuthorizationV1NamespacedRole", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -82561,7 +83755,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplateList" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleList" } }, "401": { @@ -82572,12 +83766,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -82593,15 +83787,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceClaimTemplate", - "operationId": "createResourceV1NamespacedResourceClaimTemplate", + "description": "create a Role", + "operationId": "createRbacAuthorizationV1NamespacedRole", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, { @@ -82632,19 +83826,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "401": { @@ -82655,23 +83849,23 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } } }, - "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceClaimTemplate", - "operationId": "deleteResourceV1NamespacedResourceClaimTemplate", + "description": "delete a Role", + "operationId": "deleteRbacAuthorizationV1NamespacedRole", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -82706,13 +83900,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -82723,12 +83917,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -82736,8 +83930,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ResourceClaimTemplate", - "operationId": "readResourceV1NamespacedResourceClaimTemplate", + "description": "read the specified Role", + "operationId": "readRbacAuthorizationV1NamespacedRole", "produces": [ "application/json", "application/yaml", @@ -82748,7 +83942,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "401": { @@ -82759,18 +83953,18 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, "parameters": [ { - "description": "name of the ResourceClaimTemplate", + "description": "name of the Role", "in": "path", "name": "name", "required": true, @@ -82792,8 +83986,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourceClaimTemplate", - "operationId": "patchResourceV1NamespacedResourceClaimTemplate", + "description": "partially update the specified Role", + "operationId": "patchRbacAuthorizationV1NamespacedRole", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -82829,13 +84023,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "401": { @@ -82846,12 +84040,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -82859,15 +84053,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ResourceClaimTemplate", - "operationId": "replaceResourceV1NamespacedResourceClaimTemplate", + "description": "replace the specified Role", + "operationId": "replaceRbacAuthorizationV1NamespacedRole", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, { @@ -82898,13 +84092,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "401": { @@ -82915,23 +84109,23 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } } }, - "/apis/resource.k8s.io/v1/resourceclaims": { + "/apis/rbac.authorization.k8s.io/v1/rolebindings": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listResourceV1ResourceClaimForAllNamespaces", + "description": "list or watch objects of kind RoleBinding", + "operationId": "listRbacAuthorizationV1RoleBindingForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -82945,7 +84139,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimList" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBindingList" } }, "401": { @@ -82956,12 +84150,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, @@ -83004,13 +84198,13 @@ } ] }, - "/apis/resource.k8s.io/v1/resourceclaimtemplates": { + "/apis/rbac.authorization.k8s.io/v1/roles": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listResourceV1ResourceClaimTemplateForAllNamespaces", + "description": "list or watch objects of kind Role", + "operationId": "listRbacAuthorizationV1RoleForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -83024,7 +84218,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplateList" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleList" } }, "401": { @@ -83035,12 +84229,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -83083,75 +84277,27 @@ } ] }, - "/apis/resource.k8s.io/v1/resourceslices": { - "delete": { + "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceSlice", - "operationId": "deleteResourceV1CollectionResourceSlice", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - } - ], + "description": "watch individual changes to a list of ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1ClusterRoleBindingList", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -83162,56 +84308,61 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", "version": "v1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceSlice", - "operationId": "listResourceV1ResourceSlice", - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ], + "description": "watch changes to an object of kind ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchRbacAuthorizationV1ClusterRoleBinding", "produces": [ "application/json", "application/yaml", @@ -83225,7 +84376,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSliceList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -83236,76 +84387,83 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", "version": "v1" } }, "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ClusterRoleBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "post": { + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles": { + "get": { "consumes": [ "*/*" ], - "description": "create a ResourceSlice", - "operationId": "createResourceV1ResourceSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": "watch individual changes to a list of ClusterRole. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1ClusterRoleList", "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/io.k8s.api.resource.v1.ResourceSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -83316,64 +84474,75 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } - } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/resource.k8s.io/v1/resourceslices/{name}": { - "delete": { + "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "delete a ResourceSlice", - "operationId": "deleteResourceV1ResourceSlice", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - } - ], + "description": "watch changes to an object of kind ClusterRole. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchRbacAuthorizationV1ClusterRole", "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/io.k8s.api.resource.v1.ResourceSlice" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -83384,32 +84553,83 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ClusterRole", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings": { "get": { "consumes": [ "*/*" ], - "description": "read the specified ResourceSlice", - "operationId": "readResourceV1ResourceSlice", + "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1NamespacedRoleBindingList", "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/io.k8s.api.resource.v1.ResourceSlice" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -83420,255 +84640,64 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, "parameters": [ { - "description": "name of the ResourceSlice", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified ResourceSlice", - "operationId": "patchResourceV1ResourceSlice", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ResourceSlice", - "operationId": "replaceResourceV1ResourceSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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/io.k8s.api.resource.v1.ResourceSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1" - } - } - }, - "/apis/resource.k8s.io/v1/watch/deviceclasses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of DeviceClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1DeviceClassList", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/resource.k8s.io/v1/watch/deviceclasses/{name}": { - "get": { + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind DeviceClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1DeviceClass", + "description": "watch changes to an object of kind RoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchRbacAuthorizationV1NamespacedRoleBinding", "produces": [ "application/json", "application/yaml", @@ -83693,12 +84722,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, @@ -83719,13 +84748,16 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the DeviceClass", + "description": "name of the RoleBinding", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -83749,13 +84781,13 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims": { + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1NamespacedResourceClaimList", + "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1NamespacedRoleList", "produces": [ "application/json", "application/yaml", @@ -83780,12 +84812,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -83831,13 +84863,13 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1NamespacedResourceClaim", + "description": "watch changes to an object of kind Role. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchRbacAuthorizationV1NamespacedRole", "produces": [ "application/json", "application/yaml", @@ -83862,12 +84894,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -83888,7 +84920,7 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the ResourceClaim", + "description": "name of the Role", "in": "path", "name": "name", "required": true, @@ -83921,13 +84953,13 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/rbac.authorization.k8s.io/v1/watch/rolebindings": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1NamespacedResourceClaimTemplateList", + "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1RoleBindingListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -83952,12 +84984,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, @@ -83977,9 +85009,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -84003,13 +85032,13 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/rbac.authorization.k8s.io/v1/watch/roles": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1NamespacedResourceClaimTemplate", + "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1RoleListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -84034,12 +85063,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -84059,17 +85088,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "description": "name of the ResourceClaimTemplate", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -84093,27 +85111,27 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/resourceclaims": { + "/apis/resource.k8s.io/": { "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], - "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1ResourceClaimListForAllNamespaces", + "description": "get information of a group", + "operationId": "getResourceAPIGroup", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" } }, "401": { @@ -84124,75 +85142,31 @@ "https" ], "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] + "resource" + ] + } }, - "/apis/resource.k8s.io/v1/watch/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1/": { "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], - "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1ResourceClaimTemplateListForAllNamespaces", + "description": "get available resources", + "operationId": "getResourceV1APIResources", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" } }, "401": { @@ -84204,74 +85178,78 @@ ], "tags": [ "resource_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] + ] + } }, - "/apis/resource.k8s.io/v1/watch/resourceslices": { - "get": { + "/apis/resource.k8s.io/v1/deviceclasses": { + "delete": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1ResourceSliceList", + "description": "delete collection of DeviceClass", + "operationId": "deleteResourceV1CollectionDeviceClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -84284,59 +85262,54 @@ "tags": [ "resource_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", + "kind": "DeviceClass", "version": "v1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/resource.k8s.io/v1/watch/resourceslices/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1ResourceSlice", + "description": "list or watch objects of kind DeviceClass", + "operationId": "listResourceV1DeviceClass", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], "produces": [ "application/json", "application/yaml", @@ -84350,7 +85323,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClassList" } }, "401": { @@ -84363,31 +85336,200 @@ "tags": [ "resource_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", + "kind": "DeviceClass", "version": "v1" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a DeviceClass", + "operationId": "createResourceV1DeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1" + } + } + }, + "/apis/resource.k8s.io/v1/deviceclasses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a DeviceClass", + "operationId": "deleteResourceV1DeviceClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/limit-1NfNmdNH" + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified DeviceClass", + "operationId": "readResourceV1DeviceClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1" + } + }, + "parameters": [ { - "description": "name of the ResourceSlice", + "description": "name of the DeviceClass", "in": "path", "name": "name", "required": true, @@ -84396,37 +85538,112 @@ }, { "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" } - ] - }, - "/apis/resource.k8s.io/v1alpha3/": { - "get": { + ], + "patch": { "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified DeviceClass", + "operationId": "patchResourceV1DeviceClass", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" ], - "description": "get available resources", - "operationId": "getResourceV1alpha3APIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified DeviceClass", + "operationId": "replaceResourceV1DeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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", @@ -84437,7 +85654,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" } }, "401": { @@ -84448,17 +85671,23 @@ "https" ], "tags": [ - "resource_v1alpha3" - ] + "resource_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1" + } } }, - "/apis/resource.k8s.io/v1alpha3/devicetaintrules": { + "/apis/resource.k8s.io/v1/devicetaintrules": { "delete": { "consumes": [ "*/*" ], "description": "delete collection of DeviceTaintRule", - "operationId": "deleteResourceV1alpha3CollectionDeviceTaintRule", + "operationId": "deleteResourceV1CollectionDeviceTaintRule", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -84531,13 +85760,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } }, "get": { @@ -84545,7 +85774,7 @@ "*/*" ], "description": "list or watch objects of kind DeviceTaintRule", - "operationId": "listResourceV1alpha3DeviceTaintRule", + "operationId": "listResourceV1DeviceTaintRule", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -84594,7 +85823,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRuleList" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRuleList" } }, "401": { @@ -84605,13 +85834,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } }, "parameters": [ @@ -84624,14 +85853,14 @@ "*/*" ], "description": "create a DeviceTaintRule", - "operationId": "createResourceV1alpha3DeviceTaintRule", + "operationId": "createResourceV1DeviceTaintRule", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, { @@ -84662,19 +85891,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "401": { @@ -84685,23 +85914,23 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } } }, - "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}": { + "/apis/resource.k8s.io/v1/devicetaintrules/{name}": { "delete": { "consumes": [ "*/*" ], "description": "delete a DeviceTaintRule", - "operationId": "deleteResourceV1alpha3DeviceTaintRule", + "operationId": "deleteResourceV1DeviceTaintRule", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -84736,13 +85965,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -84753,13 +85982,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } }, "get": { @@ -84767,7 +85996,7 @@ "*/*" ], "description": "read the specified DeviceTaintRule", - "operationId": "readResourceV1alpha3DeviceTaintRule", + "operationId": "readResourceV1DeviceTaintRule", "produces": [ "application/json", "application/yaml", @@ -84778,7 +86007,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "401": { @@ -84789,13 +86018,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } }, "parameters": [ @@ -84820,7 +86049,7 @@ "application/apply-patch+cbor" ], "description": "partially update the specified DeviceTaintRule", - "operationId": "patchResourceV1alpha3DeviceTaintRule", + "operationId": "patchResourceV1DeviceTaintRule", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -84856,13 +86085,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "401": { @@ -84873,13 +86102,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } }, "put": { @@ -84887,14 +86116,14 @@ "*/*" ], "description": "replace the specified DeviceTaintRule", - "operationId": "replaceResourceV1alpha3DeviceTaintRule", + "operationId": "replaceResourceV1DeviceTaintRule", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, { @@ -84925,13 +86154,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "401": { @@ -84942,23 +86171,23 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } } }, - "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status": { + "/apis/resource.k8s.io/v1/devicetaintrules/{name}/status": { "get": { "consumes": [ "*/*" ], "description": "read status of the specified DeviceTaintRule", - "operationId": "readResourceV1alpha3DeviceTaintRuleStatus", + "operationId": "readResourceV1DeviceTaintRuleStatus", "produces": [ "application/json", "application/yaml", @@ -84969,7 +86198,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "401": { @@ -84980,13 +86209,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } }, "parameters": [ @@ -85011,7 +86240,7 @@ "application/apply-patch+cbor" ], "description": "partially update status of the specified DeviceTaintRule", - "operationId": "patchResourceV1alpha3DeviceTaintRuleStatus", + "operationId": "patchResourceV1DeviceTaintRuleStatus", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -85047,13 +86276,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "401": { @@ -85064,13 +86293,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } }, "put": { @@ -85078,14 +86307,14 @@ "*/*" ], "description": "replace status of the specified DeviceTaintRule", - "operationId": "replaceResourceV1alpha3DeviceTaintRuleStatus", + "operationId": "replaceResourceV1DeviceTaintRuleStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, { @@ -85116,13 +86345,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "401": { @@ -85133,23 +86362,23 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } } }, - "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests": { + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourcePoolStatusRequest", - "operationId": "deleteResourceV1alpha3CollectionResourcePoolStatusRequest", + "description": "delete collection of ResourceClaim", + "operationId": "deleteResourceV1CollectionNamespacedResourceClaim", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -85222,21 +86451,21 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourcePoolStatusRequest", - "operationId": "listResourceV1alpha3ResourcePoolStatusRequest", + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceV1NamespacedResourceClaim", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -85285,7 +86514,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequestList" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimList" } }, "401": { @@ -85296,33 +86525,36 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } }, "parameters": [ { - "$ref": "#/parameters/pretty-tJGM1-ng" + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" } ], "post": { "consumes": [ "*/*" ], - "description": "create a ResourcePoolStatusRequest", - "operationId": "createResourceV1alpha3ResourcePoolStatusRequest", + "description": "create a ResourceClaim", + "operationId": "createResourceV1NamespacedResourceClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, { @@ -85353,19 +86585,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "401": { @@ -85376,23 +86608,23 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } } }, - "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}": { + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourcePoolStatusRequest", - "operationId": "deleteResourceV1alpha3ResourcePoolStatusRequest", + "description": "delete a ResourceClaim", + "operationId": "deleteResourceV1NamespacedResourceClaim", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -85427,13 +86659,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "401": { @@ -85444,21 +86676,21 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ResourcePoolStatusRequest", - "operationId": "readResourceV1alpha3ResourcePoolStatusRequest", + "description": "read the specified ResourceClaim", + "operationId": "readResourceV1NamespacedResourceClaim", "produces": [ "application/json", "application/yaml", @@ -85469,7 +86701,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "401": { @@ -85480,24 +86712,27 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } }, "parameters": [ { - "description": "name of the ResourcePoolStatusRequest", + "description": "name of the ResourceClaim", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -85510,8 +86745,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourcePoolStatusRequest", - "operationId": "patchResourceV1alpha3ResourcePoolStatusRequest", + "description": "partially update the specified ResourceClaim", + "operationId": "patchResourceV1NamespacedResourceClaim", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -85547,13 +86782,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "401": { @@ -85564,28 +86799,28 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified ResourcePoolStatusRequest", - "operationId": "replaceResourceV1alpha3ResourcePoolStatusRequest", + "description": "replace the specified ResourceClaim", + "operationId": "replaceResourceV1NamespacedResourceClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, { @@ -85616,13 +86851,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "401": { @@ -85633,23 +86868,23 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } } }, - "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status": { + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified ResourcePoolStatusRequest", - "operationId": "readResourceV1alpha3ResourcePoolStatusRequestStatus", + "description": "read status of the specified ResourceClaim", + "operationId": "readResourceV1NamespacedResourceClaimStatus", "produces": [ "application/json", "application/yaml", @@ -85660,7 +86895,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "401": { @@ -85671,24 +86906,27 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } }, "parameters": [ { - "description": "name of the ResourcePoolStatusRequest", + "description": "name of the ResourceClaim", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -85701,8 +86939,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified ResourcePoolStatusRequest", - "operationId": "patchResourceV1alpha3ResourcePoolStatusRequestStatus", + "description": "partially update status of the specified ResourceClaim", + "operationId": "patchResourceV1NamespacedResourceClaimStatus", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -85738,13 +86976,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "401": { @@ -85755,28 +86993,28 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace status of the specified ResourcePoolStatusRequest", - "operationId": "replaceResourceV1alpha3ResourcePoolStatusRequestStatus", + "description": "replace status of the specified ResourceClaim", + "operationId": "replaceResourceV1NamespacedResourceClaimStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, { @@ -85807,13 +87045,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "401": { @@ -85824,37 +87062,85 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } } }, - "/apis/resource.k8s.io/v1alpha3/watch/devicetaintrules": { - "get": { + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates": { + "delete": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1alpha3DeviceTaintRuleList", + "description": "delete collection of ResourceClaimTemplate", + "operationId": "deleteResourceV1CollectionNamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -85865,61 +87151,56 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + "kind": "ResourceClaimTemplate", + "version": "v1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/resource.k8s.io/v1alpha3/watch/devicetaintrules/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1alpha3DeviceTaintRule", + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceV1NamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], "produces": [ "application/json", "application/yaml", @@ -85933,7 +87214,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplateList" } }, "401": { @@ -85944,83 +87225,79 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + "kind": "ResourceClaimTemplate", + "version": "v1" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the DeviceTaintRule", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "$ref": "#/parameters/namespace-vgWSWtn3" }, { "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" } - ] - }, - "/apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests": { - "get": { + ], + "post": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourcePoolStatusRequest. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1alpha3ResourcePoolStatusRequestList", + "description": "create a ResourceClaimTemplate", + "operationId": "createResourceV1NamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" } }, "401": { @@ -86031,75 +87308,64 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "kind": "ResourceClaimTemplate", + "version": "v1" } - ] + } }, - "/apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests/{name}": { - "get": { + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "delete": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ResourcePoolStatusRequest. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1alpha3ResourcePoolStatusRequest", + "description": "delete a ResourceClaimTemplate", + "operationId": "deleteResourceV1NamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" } }, "401": { @@ -86110,39 +87376,264 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaimTemplate", + "version": "v1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the ResourcePoolStatusRequest", + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceClaimTemplate", + "operationId": "readResourceV1NamespacedResourceClaimTemplate", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaimTemplate", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified ResourceClaimTemplate", + "operationId": "patchResourceV1NamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceClaimTemplate", + "operationId": "replaceResourceV1NamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1" + } + } + }, + "/apis/resource.k8s.io/v1/resourceclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceV1ResourceClaimForAllNamespaces", + "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/io.k8s.api.resource.v1.ResourceClaimList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -86166,27 +87657,27 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/": { + "/apis/resource.k8s.io/v1/resourceclaimtemplates": { "get": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" + "*/*" ], - "description": "get available resources", - "operationId": "getResourceV1beta1APIResources", + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceV1ResourceClaimTemplateForAllNamespaces", "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/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplateList" } }, "401": { @@ -86197,17 +87688,61 @@ "https" ], "tags": [ - "resource_v1beta1" - ] - } + "resource_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/resource.k8s.io/v1beta1/deviceclasses": { + "/apis/resource.k8s.io/v1/resourceslices": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of DeviceClass", - "operationId": "deleteResourceV1beta1CollectionDeviceClass", + "description": "delete collection of ResourceSlice", + "operationId": "deleteResourceV1CollectionResourceSlice", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -86280,21 +87815,21 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "ResourceSlice", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind DeviceClass", - "operationId": "listResourceV1beta1DeviceClass", + "description": "list or watch objects of kind ResourceSlice", + "operationId": "listResourceV1ResourceSlice", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -86343,7 +87878,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClassList" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSliceList" } }, "401": { @@ -86354,13 +87889,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "ResourceSlice", + "version": "v1" } }, "parameters": [ @@ -86372,15 +87907,15 @@ "consumes": [ "*/*" ], - "description": "create a DeviceClass", - "operationId": "createResourceV1beta1DeviceClass", + "description": "create a ResourceSlice", + "operationId": "createResourceV1ResourceSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, { @@ -86411,19 +87946,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "401": { @@ -86434,23 +87969,23 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "ResourceSlice", + "version": "v1" } } }, - "/apis/resource.k8s.io/v1beta1/deviceclasses/{name}": { + "/apis/resource.k8s.io/v1/resourceslices/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a DeviceClass", - "operationId": "deleteResourceV1beta1DeviceClass", + "description": "delete a ResourceSlice", + "operationId": "deleteResourceV1ResourceSlice", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -86485,13 +88020,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "401": { @@ -86502,21 +88037,21 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "ResourceSlice", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified DeviceClass", - "operationId": "readResourceV1beta1DeviceClass", + "description": "read the specified ResourceSlice", + "operationId": "readResourceV1ResourceSlice", "produces": [ "application/json", "application/yaml", @@ -86527,7 +88062,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "401": { @@ -86538,18 +88073,18 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "ResourceSlice", + "version": "v1" } }, "parameters": [ { - "description": "name of the DeviceClass", + "description": "name of the ResourceSlice", "in": "path", "name": "name", "required": true, @@ -86568,8 +88103,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified DeviceClass", - "operationId": "patchResourceV1beta1DeviceClass", + "description": "partially update the specified ResourceSlice", + "operationId": "patchResourceV1ResourceSlice", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -86605,13 +88140,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "401": { @@ -86622,28 +88157,28 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "ResourceSlice", + "version": "v1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified DeviceClass", - "operationId": "replaceResourceV1beta1DeviceClass", + "description": "replace the specified ResourceSlice", + "operationId": "replaceResourceV1ResourceSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, { @@ -86674,13 +88209,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "401": { @@ -86691,85 +88226,37 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "ResourceSlice", + "version": "v1" } } }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims": { - "delete": { + "/apis/resource.k8s.io/v1/watch/deviceclasses": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceClaim", - "operationId": "deleteResourceV1beta1CollectionNamespacedResourceClaim", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - } - ], + "description": "watch individual changes to a list of DeviceClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1DeviceClassList", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -86780,56 +88267,61 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceClass", + "version": "v1" } }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listResourceV1beta1NamespacedResourceClaim", - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1/watch/deviceclasses/{name}": { + "get": { + "consumes": [ + "*/*" ], + "description": "watch changes to an object of kind DeviceClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1DeviceClass", "produces": [ "application/json", "application/yaml", @@ -86843,7 +88335,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -86854,79 +88346,162 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceClass", + "version": "v1" } }, "parameters": [ { - "$ref": "#/parameters/namespace-vgWSWtn3" + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the DeviceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "post": { + ] + }, + "/apis/resource.k8s.io/v1/watch/devicetaintrules": { + "get": { "consumes": [ "*/*" ], - "description": "create a ResourceClaim", - "operationId": "createResourceV1beta1NamespacedResourceClaim", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, + "description": "watch individual changes to a list of DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1DeviceTaintRuleList", + "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/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": [ + "resource_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1/watch/devicetaintrules/{name}": { + "get": { + "consumes": [ + "*/*" ], + "description": "watch changes to an object of kind DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1DeviceTaintRule", "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/io.k8s.api.resource.v1beta1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -86937,64 +88512,83 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1" } - } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}": { - "delete": { + "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims": { + "get": { "consumes": [ "*/*" ], - "description": "delete a ResourceClaim", - "operationId": "deleteResourceV1beta1NamespacedResourceClaim", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - } - ], + "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1NamespacedResourceClaimList", "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/io.k8s.api.resource.v1beta1.ResourceClaim" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -87005,32 +88599,78 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta1" + "version": "v1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims/{name}": { "get": { "consumes": [ "*/*" ], - "description": "read the specified ResourceClaim", - "operationId": "readResourceV1beta1NamespacedResourceClaim", + "description": "watch changes to an object of kind ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1NamespacedResourceClaim", "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/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -87041,16 +88681,31 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta1" + "version": "v1" } }, "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, { "description": "name of the ResourceClaim", "in": "path", @@ -87064,60 +88719,48 @@ }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "patch": { + ] + }, + "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified ResourceClaim", - "operationId": "patchResourceV1beta1NamespacedResourceClaim", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } + "*/*" ], + "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1NamespacedResourceClaimTemplateList", "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/io.k8s.api.resource.v1beta1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -87128,65 +88771,78 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "ResourceClaimTemplate", + "version": "v1" } }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ResourceClaim", - "operationId": "replaceResourceV1beta1NamespacedResourceClaim", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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 - } + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "get": { + "consumes": [ + "*/*" ], + "description": "watch changes to an object of kind ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1NamespacedResourceClaimTemplate", "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/io.k8s.api.resource.v1beta1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -87197,34 +88853,86 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "ResourceClaimTemplate", + "version": "v1" } - } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ResourceClaimTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status": { + "/apis/resource.k8s.io/v1/watch/resourceclaims": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified ResourceClaim", - "operationId": "readResourceV1beta1NamespacedResourceClaimStatus", + "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1ResourceClaimListForAllNamespaces", "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/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -87235,83 +88943,75 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta1" + "version": "v1" } }, "parameters": [ { - "description": "name of the ResourceClaim", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" }, { - "$ref": "#/parameters/namespace-vgWSWtn3" + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "patch": { + ] + }, + "/apis/resource.k8s.io/v1/watch/resourceclaimtemplates": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified ResourceClaim", - "operationId": "patchResourceV1beta1NamespacedResourceClaimStatus", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } + "*/*" ], + "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1ResourceClaimTemplateListForAllNamespaces", "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/io.k8s.api.resource.v1beta1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -87322,65 +89022,154 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "ResourceClaimTemplate", + "version": "v1" } }, - "put": { + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1/watch/resourceslices": { + "get": { "consumes": [ "*/*" ], - "description": "replace status of the specified ResourceClaim", - "operationId": "replaceResourceV1beta1NamespacedResourceClaimStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, + "description": "watch individual changes to a list of ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1ResourceSliceList", + "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/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": [ + "resource_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1/watch/resourceslices/{name}": { + "get": { + "consumes": [ + "*/*" ], + "description": "watch changes to an object of kind ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1ResourceSlice", "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/io.k8s.api.resource.v1beta1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -87391,23 +89180,104 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "ResourceSlice", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ResourceSlice", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } + ] + }, + "/apis/resource.k8s.io/v1alpha3/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get available resources", + "operationId": "getResourceV1alpha3APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ] } }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1alpha3/devicetaintrules": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceClaimTemplate", - "operationId": "deleteResourceV1beta1CollectionNamespacedResourceClaimTemplate", + "description": "delete collection of DeviceTaintRule", + "operationId": "deleteResourceV1alpha3CollectionDeviceTaintRule", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -87480,21 +89350,21 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listResourceV1beta1NamespacedResourceClaimTemplate", + "description": "list or watch objects of kind DeviceTaintRule", + "operationId": "listResourceV1alpha3DeviceTaintRule", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -87543,7 +89413,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplateList" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRuleList" } }, "401": { @@ -87554,19 +89424,16 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, "parameters": [ - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -87575,15 +89442,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceClaimTemplate", - "operationId": "createResourceV1beta1NamespacedResourceClaimTemplate", + "description": "create a DeviceTaintRule", + "operationId": "createResourceV1alpha3DeviceTaintRule", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, { @@ -87614,19 +89481,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "401": { @@ -87637,23 +89504,23 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } } }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceClaimTemplate", - "operationId": "deleteResourceV1beta1NamespacedResourceClaimTemplate", + "description": "delete a DeviceTaintRule", + "operationId": "deleteResourceV1alpha3DeviceTaintRule", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -87688,13 +89555,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "401": { @@ -87705,21 +89572,21 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ResourceClaimTemplate", - "operationId": "readResourceV1beta1NamespacedResourceClaimTemplate", + "description": "read the specified DeviceTaintRule", + "operationId": "readResourceV1alpha3DeviceTaintRule", "produces": [ "application/json", "application/yaml", @@ -87730,7 +89597,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "401": { @@ -87741,27 +89608,24 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, "parameters": [ { - "description": "name of the ResourceClaimTemplate", + "description": "name of the DeviceTaintRule", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -87774,8 +89638,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourceClaimTemplate", - "operationId": "patchResourceV1beta1NamespacedResourceClaimTemplate", + "description": "partially update the specified DeviceTaintRule", + "operationId": "patchResourceV1alpha3DeviceTaintRule", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -87811,13 +89675,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "401": { @@ -87828,28 +89692,28 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified ResourceClaimTemplate", - "operationId": "replaceResourceV1beta1NamespacedResourceClaimTemplate", + "description": "replace the specified DeviceTaintRule", + "operationId": "replaceResourceV1alpha3DeviceTaintRule", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, { @@ -87880,13 +89744,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "401": { @@ -87897,37 +89761,34 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } } }, - "/apis/resource.k8s.io/v1beta1/resourceclaims": { + "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listResourceV1beta1ResourceClaimForAllNamespaces", + "description": "read status of the specified DeviceTaintRule", + "operationId": "readResourceV1alpha3DeviceTaintRuleStatus", "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/io.k8s.api.resource.v1beta1.ResourceClaimList" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "401": { @@ -87938,75 +89799,80 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true }, { "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" } - ] - }, - "/apis/resource.k8s.io/v1beta1/resourceclaimtemplates": { - "get": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified DeviceTaintRule", + "operationId": "patchResourceV1alpha3DeviceTaintRuleStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listResourceV1beta1ResourceClaimTemplateForAllNamespaces", "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/io.k8s.api.resource.v1beta1.ResourceClaimTemplateList" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "401": { @@ -88017,61 +89883,92 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified DeviceTaintRule", + "operationId": "replaceResourceV1alpha3DeviceTaintRuleStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" } - ] + } }, - "/apis/resource.k8s.io/v1beta1/resourceslices": { + "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceSlice", - "operationId": "deleteResourceV1beta1CollectionResourceSlice", + "description": "delete collection of ResourcePoolStatusRequest", + "operationId": "deleteResourceV1alpha3CollectionResourcePoolStatusRequest", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -88144,21 +90041,21 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceSlice", - "operationId": "listResourceV1beta1ResourceSlice", + "description": "list or watch objects of kind ResourcePoolStatusRequest", + "operationId": "listResourceV1alpha3ResourcePoolStatusRequest", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -88207,7 +90104,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSliceList" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequestList" } }, "401": { @@ -88218,13 +90115,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, "parameters": [ @@ -88236,15 +90133,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceSlice", - "operationId": "createResourceV1beta1ResourceSlice", + "description": "create a ResourcePoolStatusRequest", + "operationId": "createResourceV1alpha3ResourcePoolStatusRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, { @@ -88275,19 +90172,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -88298,23 +90195,23 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } } }, - "/apis/resource.k8s.io/v1beta1/resourceslices/{name}": { + "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceSlice", - "operationId": "deleteResourceV1beta1ResourceSlice", + "description": "delete a ResourcePoolStatusRequest", + "operationId": "deleteResourceV1alpha3ResourcePoolStatusRequest", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -88349,13 +90246,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -88366,21 +90263,21 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ResourceSlice", - "operationId": "readResourceV1beta1ResourceSlice", + "description": "read the specified ResourcePoolStatusRequest", + "operationId": "readResourceV1alpha3ResourcePoolStatusRequest", "produces": [ "application/json", "application/yaml", @@ -88391,7 +90288,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -88402,18 +90299,18 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, "parameters": [ { - "description": "name of the ResourceSlice", + "description": "name of the ResourcePoolStatusRequest", "in": "path", "name": "name", "required": true, @@ -88432,8 +90329,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourceSlice", - "operationId": "patchResourceV1beta1ResourceSlice", + "description": "partially update the specified ResourcePoolStatusRequest", + "operationId": "patchResourceV1alpha3ResourcePoolStatusRequest", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -88469,13 +90366,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -88486,28 +90383,28 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified ResourceSlice", - "operationId": "replaceResourceV1beta1ResourceSlice", + "description": "replace the specified ResourcePoolStatusRequest", + "operationId": "replaceResourceV1alpha3ResourcePoolStatusRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, { @@ -88538,13 +90435,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -88555,37 +90452,34 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } } }, - "/apis/resource.k8s.io/v1beta1/watch/deviceclasses": { + "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of DeviceClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta1DeviceClassList", + "description": "read status of the specified ResourcePoolStatusRequest", + "operationId": "readResourceV1alpha3ResourcePoolStatusRequestStatus", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -88596,75 +90490,80 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" + "description": "name of the ResourcePoolStatusRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true }, { "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" } - ] - }, - "/apis/resource.k8s.io/v1beta1/watch/deviceclasses/{name}": { - "get": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified ResourcePoolStatusRequest", + "operationId": "patchResourceV1alpha3ResourcePoolStatusRequestStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } ], - "description": "watch changes to an object of kind DeviceClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1beta1DeviceClass", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -88675,69 +90574,92 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the DeviceClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified ResourcePoolStatusRequest", + "operationId": "replaceResourceV1alpha3ResourcePoolStatusRequestStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } - ] + } }, - "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims": { + "/apis/resource.k8s.io/v1alpha3/watch/devicetaintrules": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta1NamespacedResourceClaimList", + "description": "watch individual changes to a list of DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha3DeviceTaintRuleList", "produces": [ "application/json", "application/yaml", @@ -88762,13 +90684,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, "parameters": [ @@ -88787,9 +90709,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -88813,13 +90732,13 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/resource.k8s.io/v1alpha3/watch/devicetaintrules/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1beta1NamespacedResourceClaim", + "description": "watch changes to an object of kind DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1alpha3DeviceTaintRule", "produces": [ "application/json", "application/yaml", @@ -88844,13 +90763,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, "parameters": [ @@ -88870,16 +90789,13 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the ResourceClaim", + "description": "name of the DeviceTaintRule", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -88903,13 +90819,13 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta1NamespacedResourceClaimTemplateList", + "description": "watch individual changes to a list of ResourcePoolStatusRequest. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha3ResourcePoolStatusRequestList", "produces": [ "application/json", "application/yaml", @@ -88934,13 +90850,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, "parameters": [ @@ -88959,9 +90875,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -88985,340 +90898,13 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1beta1NamespacedResourceClaimTemplate", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the ResourceClaimTemplate", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/resource.k8s.io/v1beta1/watch/resourceclaims": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta1ResourceClaimListForAllNamespaces", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/resource.k8s.io/v1beta1/watch/resourceclaimtemplates": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta1ResourceClaimTemplateListForAllNamespaces", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/resource.k8s.io/v1beta1/watch/resourceslices": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta1ResourceSliceList", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/resource.k8s.io/v1beta1/watch/resourceslices/{name}": { + "/apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1beta1ResourceSlice", + "description": "watch changes to an object of kind ResourcePoolStatusRequest. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1alpha3ResourcePoolStatusRequest", "produces": [ "application/json", "application/yaml", @@ -89343,13 +90929,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, "parameters": [ @@ -89369,7 +90955,7 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the ResourceSlice", + "description": "name of the ResourcePoolStatusRequest", "in": "path", "name": "name", "required": true, @@ -89399,7 +90985,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/": { + "/apis/resource.k8s.io/v1beta1/": { "get": { "consumes": [ "application/json", @@ -89408,7 +90994,7 @@ "application/cbor" ], "description": "get available resources", - "operationId": "getResourceV1beta2APIResources", + "operationId": "getResourceV1beta1APIResources", "produces": [ "application/json", "application/yaml", @@ -89430,17 +91016,17 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ] } }, - "/apis/resource.k8s.io/v1beta2/deviceclasses": { + "/apis/resource.k8s.io/v1beta1/deviceclasses": { "delete": { "consumes": [ "*/*" ], "description": "delete collection of DeviceClass", - "operationId": "deleteResourceV1beta2CollectionDeviceClass", + "operationId": "deleteResourceV1beta1CollectionDeviceClass", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -89513,13 +91099,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta2" + "version": "v1beta1" } }, "get": { @@ -89527,7 +91113,7 @@ "*/*" ], "description": "list or watch objects of kind DeviceClass", - "operationId": "listResourceV1beta2DeviceClass", + "operationId": "listResourceV1beta1DeviceClass", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -89576,7 +91162,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClassList" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClassList" } }, "401": { @@ -89587,13 +91173,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta2" + "version": "v1beta1" } }, "parameters": [ @@ -89606,14 +91192,14 @@ "*/*" ], "description": "create a DeviceClass", - "operationId": "createResourceV1beta2DeviceClass", + "operationId": "createResourceV1beta1DeviceClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, { @@ -89644,19 +91230,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "401": { @@ -89667,23 +91253,23 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta2" + "version": "v1beta1" } } }, - "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}": { + "/apis/resource.k8s.io/v1beta1/deviceclasses/{name}": { "delete": { "consumes": [ "*/*" ], "description": "delete a DeviceClass", - "operationId": "deleteResourceV1beta2DeviceClass", + "operationId": "deleteResourceV1beta1DeviceClass", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -89718,13 +91304,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "401": { @@ -89735,13 +91321,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta2" + "version": "v1beta1" } }, "get": { @@ -89749,7 +91335,7 @@ "*/*" ], "description": "read the specified DeviceClass", - "operationId": "readResourceV1beta2DeviceClass", + "operationId": "readResourceV1beta1DeviceClass", "produces": [ "application/json", "application/yaml", @@ -89760,7 +91346,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "401": { @@ -89771,13 +91357,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta2" + "version": "v1beta1" } }, "parameters": [ @@ -89802,7 +91388,7 @@ "application/apply-patch+cbor" ], "description": "partially update the specified DeviceClass", - "operationId": "patchResourceV1beta2DeviceClass", + "operationId": "patchResourceV1beta1DeviceClass", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -89838,13 +91424,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "401": { @@ -89855,13 +91441,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta2" + "version": "v1beta1" } }, "put": { @@ -89869,14 +91455,14 @@ "*/*" ], "description": "replace the specified DeviceClass", - "operationId": "replaceResourceV1beta2DeviceClass", + "operationId": "replaceResourceV1beta1DeviceClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, { @@ -89907,13 +91493,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "401": { @@ -89924,23 +91510,23 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta2" + "version": "v1beta1" } } }, - "/apis/resource.k8s.io/v1beta2/devicetaintrules": { + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of DeviceTaintRule", - "operationId": "deleteResourceV1beta2CollectionDeviceTaintRule", + "description": "delete collection of ResourceClaim", + "operationId": "deleteResourceV1beta1CollectionNamespacedResourceClaim", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -90013,21 +91599,21 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind DeviceTaintRule", - "operationId": "listResourceV1beta2DeviceTaintRule", + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceV1beta1NamespacedResourceClaim", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -90076,7 +91662,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRuleList" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimList" } }, "401": { @@ -90087,16 +91673,19 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -90105,15 +91694,15 @@ "consumes": [ "*/*" ], - "description": "create a DeviceTaintRule", - "operationId": "createResourceV1beta2DeviceTaintRule", + "description": "create a ResourceClaim", + "operationId": "createResourceV1beta1NamespacedResourceClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, { @@ -90144,19 +91733,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "401": { @@ -90167,23 +91756,23 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } } }, - "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}": { + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a DeviceTaintRule", - "operationId": "deleteResourceV1beta2DeviceTaintRule", + "description": "delete a ResourceClaim", + "operationId": "deleteResourceV1beta1NamespacedResourceClaim", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -90218,13 +91807,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "401": { @@ -90235,21 +91824,21 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified DeviceTaintRule", - "operationId": "readResourceV1beta2DeviceTaintRule", + "description": "read the specified ResourceClaim", + "operationId": "readResourceV1beta1NamespacedResourceClaim", "produces": [ "application/json", "application/yaml", @@ -90260,7 +91849,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "401": { @@ -90271,24 +91860,27 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the DeviceTaintRule", + "description": "name of the ResourceClaim", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -90301,8 +91893,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified DeviceTaintRule", - "operationId": "patchResourceV1beta2DeviceTaintRule", + "description": "partially update the specified ResourceClaim", + "operationId": "patchResourceV1beta1NamespacedResourceClaim", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -90338,13 +91930,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "401": { @@ -90355,28 +91947,28 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified DeviceTaintRule", - "operationId": "replaceResourceV1beta2DeviceTaintRule", + "description": "replace the specified ResourceClaim", + "operationId": "replaceResourceV1beta1NamespacedResourceClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, { @@ -90407,13 +91999,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "401": { @@ -90424,23 +92016,23 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } } }, - "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status": { + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified DeviceTaintRule", - "operationId": "readResourceV1beta2DeviceTaintRuleStatus", + "description": "read status of the specified ResourceClaim", + "operationId": "readResourceV1beta1NamespacedResourceClaimStatus", "produces": [ "application/json", "application/yaml", @@ -90451,7 +92043,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "401": { @@ -90462,24 +92054,27 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the DeviceTaintRule", + "description": "name of the ResourceClaim", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -90492,8 +92087,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified DeviceTaintRule", - "operationId": "patchResourceV1beta2DeviceTaintRuleStatus", + "description": "partially update status of the specified ResourceClaim", + "operationId": "patchResourceV1beta1NamespacedResourceClaimStatus", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -90529,13 +92124,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "401": { @@ -90546,28 +92141,28 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace status of the specified DeviceTaintRule", - "operationId": "replaceResourceV1beta2DeviceTaintRuleStatus", + "description": "replace status of the specified ResourceClaim", + "operationId": "replaceResourceV1beta1NamespacedResourceClaimStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, { @@ -90598,13 +92193,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "401": { @@ -90615,23 +92210,23 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims": { + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceClaim", - "operationId": "deleteResourceV1beta2CollectionNamespacedResourceClaim", + "description": "delete collection of ResourceClaimTemplate", + "operationId": "deleteResourceV1beta1CollectionNamespacedResourceClaimTemplate", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -90704,21 +92299,21 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listResourceV1beta2NamespacedResourceClaim", + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceV1beta1NamespacedResourceClaimTemplate", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -90767,7 +92362,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimList" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplateList" } }, "401": { @@ -90778,13 +92373,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } }, "parameters": [ @@ -90799,15 +92394,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceClaim", - "operationId": "createResourceV1beta2NamespacedResourceClaim", + "description": "create a ResourceClaimTemplate", + "operationId": "createResourceV1beta1NamespacedResourceClaimTemplate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, { @@ -90838,19 +92433,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "401": { @@ -90861,23 +92456,23 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceClaim", - "operationId": "deleteResourceV1beta2NamespacedResourceClaim", + "description": "delete a ResourceClaimTemplate", + "operationId": "deleteResourceV1beta1NamespacedResourceClaimTemplate", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -90912,13 +92507,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "401": { @@ -90929,21 +92524,21 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ResourceClaim", - "operationId": "readResourceV1beta2NamespacedResourceClaim", + "description": "read the specified ResourceClaimTemplate", + "operationId": "readResourceV1beta1NamespacedResourceClaimTemplate", "produces": [ "application/json", "application/yaml", @@ -90954,7 +92549,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "401": { @@ -90965,18 +92560,18 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the ResourceClaim", + "description": "name of the ResourceClaimTemplate", "in": "path", "name": "name", "required": true, @@ -90998,8 +92593,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourceClaim", - "operationId": "patchResourceV1beta2NamespacedResourceClaim", + "description": "partially update the specified ResourceClaimTemplate", + "operationId": "patchResourceV1beta1NamespacedResourceClaimTemplate", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -91035,13 +92630,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "401": { @@ -91052,28 +92647,28 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified ResourceClaim", - "operationId": "replaceResourceV1beta2NamespacedResourceClaim", + "description": "replace the specified ResourceClaimTemplate", + "operationId": "replaceResourceV1beta1NamespacedResourceClaimTemplate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, { @@ -91104,13 +92699,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "401": { @@ -91121,34 +92716,37 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status": { + "/apis/resource.k8s.io/v1beta1/resourceclaims": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified ResourceClaim", - "operationId": "readResourceV1beta2NamespacedResourceClaimStatus", + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceV1beta1ResourceClaimForAllNamespaces", "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/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimList" } }, "401": { @@ -91159,83 +92757,75 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta2" + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the ResourceClaim", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" }, { - "$ref": "#/parameters/namespace-vgWSWtn3" + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "patch": { + ] + }, + "/apis/resource.k8s.io/v1beta1/resourceclaimtemplates": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified ResourceClaim", - "operationId": "patchResourceV1beta2NamespacedResourceClaimStatus", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } + "*/*" ], + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceV1beta1ResourceClaimTemplateForAllNamespaces", "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/io.k8s.api.resource.v1beta2.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplateList" } }, "401": { @@ -91246,92 +92836,61 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified ResourceClaim", - "operationId": "replaceResourceV1beta2NamespacedResourceClaimStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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/io.k8s.api.resource.v1beta2.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" - } - }, - "401": { - "description": "Unauthorized" - } + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - } + ] }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1beta1/resourceslices": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceClaimTemplate", - "operationId": "deleteResourceV1beta2CollectionNamespacedResourceClaimTemplate", + "description": "delete collection of ResourceSlice", + "operationId": "deleteResourceV1beta1CollectionResourceSlice", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -91404,21 +92963,21 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "kind": "ResourceSlice", + "version": "v1beta1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listResourceV1beta2NamespacedResourceClaimTemplate", + "description": "list or watch objects of kind ResourceSlice", + "operationId": "listResourceV1beta1ResourceSlice", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -91467,7 +93026,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplateList" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSliceList" } }, "401": { @@ -91478,19 +93037,16 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "kind": "ResourceSlice", + "version": "v1beta1" } }, "parameters": [ - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -91499,15 +93055,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceClaimTemplate", - "operationId": "createResourceV1beta2NamespacedResourceClaimTemplate", + "description": "create a ResourceSlice", + "operationId": "createResourceV1beta1ResourceSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, { @@ -91538,19 +93094,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "401": { @@ -91561,23 +93117,23 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "kind": "ResourceSlice", + "version": "v1beta1" } } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/resource.k8s.io/v1beta1/resourceslices/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceClaimTemplate", - "operationId": "deleteResourceV1beta2NamespacedResourceClaimTemplate", + "description": "delete a ResourceSlice", + "operationId": "deleteResourceV1beta1ResourceSlice", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -91612,13 +93168,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "401": { @@ -91629,21 +93185,21 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "kind": "ResourceSlice", + "version": "v1beta1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ResourceClaimTemplate", - "operationId": "readResourceV1beta2NamespacedResourceClaimTemplate", + "description": "read the specified ResourceSlice", + "operationId": "readResourceV1beta1ResourceSlice", "produces": [ "application/json", "application/yaml", @@ -91654,7 +93210,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "401": { @@ -91665,27 +93221,24 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "kind": "ResourceSlice", + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the ResourceClaimTemplate", + "description": "name of the ResourceSlice", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -91698,8 +93251,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourceClaimTemplate", - "operationId": "patchResourceV1beta2NamespacedResourceClaimTemplate", + "description": "partially update the specified ResourceSlice", + "operationId": "patchResourceV1beta1ResourceSlice", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -91735,13 +93288,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "401": { @@ -91752,28 +93305,28 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "kind": "ResourceSlice", + "version": "v1beta1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified ResourceClaimTemplate", - "operationId": "replaceResourceV1beta2NamespacedResourceClaimTemplate", + "description": "replace the specified ResourceSlice", + "operationId": "replaceResourceV1beta1ResourceSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, { @@ -91804,13 +93357,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "401": { @@ -91821,23 +93374,23 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "kind": "ResourceSlice", + "version": "v1beta1" } } }, - "/apis/resource.k8s.io/v1beta2/resourceclaims": { + "/apis/resource.k8s.io/v1beta1/watch/deviceclasses": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listResourceV1beta2ResourceClaimForAllNamespaces", + "description": "watch individual changes to a list of DeviceClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta1DeviceClassList", "produces": [ "application/json", "application/yaml", @@ -91851,7 +93404,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -91862,13 +93415,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "kind": "DeviceClass", + "version": "v1beta1" } }, "parameters": [ @@ -91910,13 +93463,13 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1beta1/watch/deviceclasses/{name}": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listResourceV1beta2ResourceClaimTemplateForAllNamespaces", + "description": "watch changes to an object of kind DeviceClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1beta1DeviceClass", "produces": [ "application/json", "application/yaml", @@ -91930,7 +93483,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplateList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -91941,13 +93494,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "kind": "DeviceClass", + "version": "v1beta1" } }, "parameters": [ @@ -91966,6 +93519,14 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, + { + "description": "name of the DeviceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -91989,75 +93550,27 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/resourceslices": { - "delete": { + "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceSlice", - "operationId": "deleteResourceV1beta2CollectionResourceSlice", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - } - ], + "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta1NamespacedResourceClaimList", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -92068,56 +93581,64 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims/{name}": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceSlice", - "operationId": "listResourceV1beta2ResourceSlice", - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ], + "description": "watch changes to an object of kind ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1beta1NamespacedResourceClaim", "produces": [ "application/json", "application/yaml", @@ -92131,7 +93652,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSliceList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -92142,76 +93663,86 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "post": { + ] + }, + "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates": { + "get": { "consumes": [ "*/*" ], - "description": "create a ResourceSlice", - "operationId": "createResourceV1beta2ResourceSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta1NamespacedResourceClaimTemplateList", "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/io.k8s.api.resource.v1beta2.ResourceSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -92222,64 +93753,78 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } - } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/resource.k8s.io/v1beta2/resourceslices/{name}": { - "delete": { + "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "delete a ResourceSlice", - "operationId": "deleteResourceV1beta2ResourceSlice", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - } - ], + "description": "watch changes to an object of kind ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1beta1NamespacedResourceClaimTemplate", "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/io.k8s.api.resource.v1beta2.ResourceSlice" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -92290,212 +93835,72 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified ResourceSlice", - "operationId": "readResourceV1beta2ResourceSlice", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the ResourceSlice", + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ResourceClaimTemplate", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified ResourceSlice", - "operationId": "patchResourceV1beta2ResourceSlice", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.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" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ResourceSlice", - "operationId": "replaceResourceV1beta2ResourceSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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/io.k8s.api.resource.v1beta2.ResourceSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" - } - }, - "401": { - "description": "Unauthorized" - } + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - } + ] }, - "/apis/resource.k8s.io/v1beta2/watch/deviceclasses": { + "/apis/resource.k8s.io/v1beta1/watch/resourceclaims": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of DeviceClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta2DeviceClassList", + "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta1ResourceClaimListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -92520,13 +93925,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, "parameters": [ @@ -92568,13 +93973,13 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/deviceclasses/{name}": { + "/apis/resource.k8s.io/v1beta1/watch/resourceclaimtemplates": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind DeviceClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1beta2DeviceClass", + "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta1ResourceClaimTemplateListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -92599,13 +94004,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } }, "parameters": [ @@ -92624,14 +94029,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "description": "name of the DeviceClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -92655,13 +94052,13 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/devicetaintrules": { + "/apis/resource.k8s.io/v1beta1/watch/resourceslices": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta2DeviceTaintRuleList", + "description": "watch individual changes to a list of ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta1ResourceSliceList", "produces": [ "application/json", "application/yaml", @@ -92686,13 +94083,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceSlice", + "version": "v1beta1" } }, "parameters": [ @@ -92734,13 +94131,13 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/devicetaintrules/{name}": { + "/apis/resource.k8s.io/v1beta1/watch/resourceslices/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1beta2DeviceTaintRule", + "description": "watch changes to an object of kind ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1beta1ResourceSlice", "produces": [ "application/json", "application/yaml", @@ -92765,13 +94162,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceSlice", + "version": "v1beta1" } }, "parameters": [ @@ -92791,7 +94188,7 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the DeviceTaintRule", + "description": "name of the ResourceSlice", "in": "path", "name": "name", "required": true, @@ -92821,27 +94218,27 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims": { + "/apis/resource.k8s.io/v1beta2/": { "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], - "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta2NamespacedResourceClaimList", + "description": "get available resources", + "operationId": "getResourceV1beta2APIResources", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" } }, "401": { @@ -92853,77 +94250,78 @@ ], "tags": [ "resource_v1beta2" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] + ] + } }, - "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims/{name}": { - "get": { + "/apis/resource.k8s.io/v1beta2/deviceclasses": { + "delete": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1beta2NamespacedResourceClaim", + "description": "delete collection of DeviceClass", + "operationId": "deleteResourceV1beta2CollectionDeviceClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -92936,70 +94334,54 @@ "tags": [ "resource_v1beta2" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", + "kind": "DeviceClass", "version": "v1beta2" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the ResourceClaim", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta2NamespacedResourceClaimTemplateList", + "description": "list or watch objects of kind DeviceClass", + "operationId": "listResourceV1beta2DeviceClass", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], "produces": [ "application/json", "application/yaml", @@ -93013,7 +94395,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClassList" } }, "401": { @@ -93026,76 +94408,5980 @@ "tags": [ "resource_v1beta2" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "kind": "DeviceClass", "version": "v1beta2" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a DeviceClass", + "operationId": "createResourceV1beta2DeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" + } + } + }, + "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a DeviceClass", + "operationId": "deleteResourceV1beta2DeviceClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified DeviceClass", + "operationId": "readResourceV1beta2DeviceClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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": "name of the DeviceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified DeviceClass", + "operationId": "patchResourceV1beta2DeviceClass", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified DeviceClass", + "operationId": "replaceResourceV1beta2DeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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" + } + } + }, + "/apis/resource.k8s.io/v1beta2/devicetaintrules": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of DeviceTaintRule", + "operationId": "deleteResourceV1beta2CollectionDeviceTaintRule", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind DeviceTaintRule", + "operationId": "listResourceV1beta2DeviceTaintRule", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "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/io.k8s.api.resource.v1beta2.DeviceTaintRuleList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a DeviceTaintRule", + "operationId": "createResourceV1beta2DeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + } + }, + "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a DeviceTaintRule", + "operationId": "deleteResourceV1beta2DeviceTaintRule", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified DeviceTaintRule", + "operationId": "readResourceV1beta2DeviceTaintRule", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "parameters": [ + { + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified DeviceTaintRule", + "operationId": "patchResourceV1beta2DeviceTaintRule", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified DeviceTaintRule", + "operationId": "replaceResourceV1beta2DeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + } + }, + "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified DeviceTaintRule", + "operationId": "readResourceV1beta2DeviceTaintRuleStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "parameters": [ + { + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified DeviceTaintRule", + "operationId": "patchResourceV1beta2DeviceTaintRuleStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified DeviceTaintRule", + "operationId": "replaceResourceV1beta2DeviceTaintRuleStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + } + }, + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ResourceClaim", + "operationId": "deleteResourceV1beta2CollectionNamespacedResourceClaim", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceV1beta2NamespacedResourceClaim", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "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/io.k8s.api.resource.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" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ResourceClaim", + "operationId": "createResourceV1beta2NamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta2" + } + } + }, + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ResourceClaim", + "operationId": "deleteResourceV1beta2NamespacedResourceClaim", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceClaim", + "operationId": "readResourceV1beta2NamespacedResourceClaim", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified ResourceClaim", + "operationId": "patchResourceV1beta2NamespacedResourceClaim", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceClaim", + "operationId": "replaceResourceV1beta2NamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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" + } + } + }, + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified ResourceClaim", + "operationId": "readResourceV1beta2NamespacedResourceClaimStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified ResourceClaim", + "operationId": "patchResourceV1beta2NamespacedResourceClaimStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified ResourceClaim", + "operationId": "replaceResourceV1beta2NamespacedResourceClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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" + } + } + }, + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ResourceClaimTemplate", + "operationId": "deleteResourceV1beta2CollectionNamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceV1beta2NamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "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/io.k8s.api.resource.v1beta2.ResourceClaimTemplateList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ResourceClaimTemplate", + "operationId": "createResourceV1beta2NamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + } + }, + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ResourceClaimTemplate", + "operationId": "deleteResourceV1beta2NamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceClaimTemplate", + "operationId": "readResourceV1beta2NamespacedResourceClaimTemplate", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaimTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified ResourceClaimTemplate", + "operationId": "patchResourceV1beta2NamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceClaimTemplate", + "operationId": "replaceResourceV1beta2NamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + } + }, + "/apis/resource.k8s.io/v1beta2/resourceclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceV1beta2ResourceClaimForAllNamespaces", + "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/io.k8s.api.resource.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" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/resourceclaimtemplates": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceV1beta2ResourceClaimTemplateForAllNamespaces", + "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/io.k8s.api.resource.v1beta2.ResourceClaimTemplateList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/resourceslices": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ResourceSlice", + "operationId": "deleteResourceV1beta2CollectionResourceSlice", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceSlice", + "operationId": "listResourceV1beta2ResourceSlice", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "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/io.k8s.api.resource.v1beta2.ResourceSliceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ResourceSlice", + "operationId": "createResourceV1beta2ResourceSlice", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.ResourceSlice" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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" + } + } + }, + "/apis/resource.k8s.io/v1beta2/resourceslices/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ResourceSlice", + "operationId": "deleteResourceV1beta2ResourceSlice", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceSlice", + "operationId": "readResourceV1beta2ResourceSlice", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta2" + } + }, + "parameters": [ + { + "description": "name of the ResourceSlice", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified ResourceSlice", + "operationId": "patchResourceV1beta2ResourceSlice", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceSlice", + "operationId": "replaceResourceV1beta2ResourceSlice", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.ResourceSlice" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta2" + } + } + }, + "/apis/resource.k8s.io/v1beta2/watch/deviceclasses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of DeviceClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta2DeviceClassList", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/deviceclasses/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind DeviceClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1beta2DeviceClass", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the DeviceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/devicetaintrules": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta2DeviceTaintRuleList", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/devicetaintrules/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1beta2DeviceTaintRule", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta2NamespacedResourceClaimList", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1beta2NamespacedResourceClaim", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta2NamespacedResourceClaimTemplateList", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1beta2NamespacedResourceClaimTemplate", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ResourceClaimTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/resourceclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta2ResourceClaimListForAllNamespaces", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/resourceclaimtemplates": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta2ResourceClaimTemplateListForAllNamespaces", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/resourceslices": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta2ResourceSliceList", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/resourceslices/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1beta2ResourceSlice", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ResourceSlice", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get information of a group", + "operationId": "getSchedulingAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling" + ] + } + }, + "/apis/scheduling.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get available resources", + "operationId": "getSchedulingV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ] + } + }, + "/apis/scheduling.k8s.io/v1/priorityclasses": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PriorityClass", + "operationId": "deleteSchedulingV1CollectionPriorityClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PriorityClass", + "operationId": "listSchedulingV1PriorityClass", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "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/io.k8s.api.scheduling.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": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a PriorityClass", + "operationId": "createSchedulingV1PriorityClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.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" + } + } + }, + "/apis/scheduling.k8s.io/v1/priorityclasses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a PriorityClass", + "operationId": "deleteSchedulingV1PriorityClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified PriorityClass", + "operationId": "readSchedulingV1PriorityClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PriorityClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified PriorityClass", + "operationId": "patchSchedulingV1PriorityClass", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PriorityClass", + "operationId": "replaceSchedulingV1PriorityClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + } + }, + "/apis/scheduling.k8s.io/v1/watch/priorityclasses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PriorityClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchSchedulingV1PriorityClassList", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind PriorityClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchSchedulingV1PriorityClass", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the PriorityClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get available resources", + "operationId": "getSchedulingV1alpha3APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ] + } + }, + "/apis/scheduling.k8s.io/v1alpha3/compositepodgroups": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind CompositePodGroup", + "operationId": "listSchedulingV1alpha3CompositePodGroupForAllNamespaces", + "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/io.k8s.api.scheduling.v1alpha3.CompositePodGroupList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of CompositePodGroup", + "operationId": "deleteSchedulingV1alpha3CollectionNamespacedCompositePodGroup", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind CompositePodGroup", + "operationId": "listSchedulingV1alpha3NamespacedCompositePodGroup", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "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/io.k8s.api.scheduling.v1alpha3.CompositePodGroupList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a CompositePodGroup", + "operationId": "createSchedulingV1alpha3NamespacedCompositePodGroup", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + } + }, + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a CompositePodGroup", + "operationId": "deleteSchedulingV1alpha3NamespacedCompositePodGroup", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified CompositePodGroup", + "operationId": "readSchedulingV1alpha3NamespacedCompositePodGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "description": "name of the CompositePodGroup", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified CompositePodGroup", + "operationId": "patchSchedulingV1alpha3NamespacedCompositePodGroup", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified CompositePodGroup", + "operationId": "replaceSchedulingV1alpha3NamespacedCompositePodGroup", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + } + }, + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified CompositePodGroup", + "operationId": "readSchedulingV1alpha3NamespacedCompositePodGroupStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + }, + "parameters": [ { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" + "description": "name of the CompositePodGroup", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified CompositePodGroup", + "operationId": "patchSchedulingV1alpha3NamespacedCompositePodGroupStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified CompositePodGroup", + "operationId": "replaceSchedulingV1alpha3NamespacedCompositePodGroupStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + } + }, + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PodGroup", + "operationId": "deleteSchedulingV1alpha3CollectionNamespacedPodGroup", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodGroup", + "operationId": "listSchedulingV1alpha3NamespacedPodGroup", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "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/io.k8s.api.scheduling.v1alpha3.PodGroupList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a PodGroup", + "operationId": "createSchedulingV1alpha3NamespacedPodGroup", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + } + } + }, + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a PodGroup", + "operationId": "deleteSchedulingV1alpha3NamespacedPodGroup", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified PodGroup", + "operationId": "readSchedulingV1alpha3NamespacedPodGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + } + }, + "parameters": [ { - "$ref": "#/parameters/limit-1NfNmdNH" + "description": "name of the PodGroup", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true }, { "$ref": "#/parameters/namespace-vgWSWtn3" }, { "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified PodGroup", + "operationId": "patchSchedulingV1alpha3NamespacedPodGroup", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PodGroup", + "operationId": "replaceSchedulingV1alpha3NamespacedPodGroup", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" } - ] + } }, - "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1beta2NamespacedResourceClaimTemplate", + "description": "read status of the specified PodGroup", + "operationId": "readSchedulingV1alpha3NamespacedPodGroupStatus", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" } }, "401": { @@ -93106,33 +100392,18 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the ResourceClaimTemplate", + "description": "name of the PodGroup", "in": "path", "name": "name", "required": true, @@ -93144,34 +100415,278 @@ }, { "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified PodGroup", + "operationId": "patchSchedulingV1alpha3NamespacedPodGroupStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PodGroup", + "operationId": "replaceSchedulingV1alpha3NamespacedPodGroupStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" } - ] + } }, - "/apis/resource.k8s.io/v1beta2/watch/resourceclaims": { + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Workload", + "operationId": "deleteSchedulingV1alpha3CollectionNamespacedWorkload", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" + } + }, "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta2ResourceClaimListForAllNamespaces", + "description": "list or watch objects of kind Workload", + "operationId": "listSchedulingV1alpha3NamespacedWorkload", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], "produces": [ "application/json", "application/yaml", @@ -93185,7 +100700,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadList" } }, "401": { @@ -93196,75 +100711,79 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" + "$ref": "#/parameters/namespace-vgWSWtn3" }, { "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" } - ] - }, - "/apis/resource.k8s.io/v1beta2/watch/resourceclaimtemplates": { - "get": { + ], + "post": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta2ResourceClaimTemplateListForAllNamespaces", + "description": "create a Workload", + "operationId": "createSchedulingV1alpha3NamespacedWorkload", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" } }, "401": { @@ -93275,75 +100794,64 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" } - ] + } }, - "/apis/resource.k8s.io/v1beta2/watch/resourceslices": { - "get": { + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name}": { + "delete": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta2ResourceSliceList", + "description": "delete a Workload", + "operationId": "deleteSchedulingV1alpha3NamespacedWorkload", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -93354,75 +100862,32 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/resource.k8s.io/v1beta2/watch/resourceslices/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1beta2ResourceSlice", + "description": "read the specified Workload", + "operationId": "readSchedulingV1alpha3NamespacedWorkload", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" } }, "401": { @@ -93433,33 +100898,18 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the ResourceSlice", + "description": "name of the Workload", "in": "path", "name": "name", "required": true, @@ -93467,71 +100917,47 @@ "uniqueItems": true }, { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "$ref": "#/parameters/namespace-vgWSWtn3" }, { - "$ref": "#/parameters/watch-XNNPZGbK" + "$ref": "#/parameters/pretty-tJGM1-ng" } - ] - }, - "/apis/scheduling.k8s.io/": { - "get": { + ], + "patch": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getSchedulingAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } + "description": "partially update the specified Workload", + "operationId": "patchSchedulingV1alpha3NamespacedWorkload", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" }, - "401": { - "description": "Unauthorized" + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling" - ] - } - }, - "/apis/scheduling.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" ], - "description": "get available resources", - "operationId": "getSchedulingV1APIResources", "produces": [ "application/json", "application/yaml", @@ -93542,7 +100968,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" } }, "401": { @@ -93553,23 +100985,29 @@ "https" ], "tags": [ - "scheduling_v1" - ] - } - }, - "/apis/scheduling.k8s.io/v1/priorityclasses": { - "delete": { + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" + } + }, + "put": { "consumes": [ "*/*" ], - "description": "delete collection of PriorityClass", - "operationId": "deleteSchedulingV1CollectionPriorityClass", + "description": "replace the specified Workload", + "operationId": "replaceSchedulingV1alpha3NamespacedWorkload", "parameters": [ { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" + } }, { "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", @@ -93579,40 +101017,14 @@ "uniqueItems": true }, { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" + "$ref": "#/parameters/fieldManager-Qy4HdaTW" }, { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "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": [ @@ -93625,7 +101037,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" } }, "401": { @@ -93636,56 +101054,23 @@ "https" ], "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" + "scheduling_v1alpha3" ], - "description": "list or watch objects of kind PriorityClass", - "operationId": "listSchedulingV1PriorityClass", - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" + } + } + }, + "/apis/scheduling.k8s.io/v1alpha3/podgroups": { + "get": { + "consumes": [ + "*/*" ], + "description": "list or watch objects of kind PodGroup", + "operationId": "listSchedulingV1alpha3PodGroupForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -93699,7 +101084,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClassList" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroupList" } }, "401": { @@ -93710,76 +101095,75 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha3" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "PodGroup", + "version": "v1alpha3" } }, "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "post": { + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/watch/compositepodgroups": { + "get": { "consumes": [ "*/*" ], - "description": "create a PriorityClass", - "operationId": "createSchedulingV1PriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": "watch individual changes to a list of CompositePodGroup. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchSchedulingV1alpha3CompositePodGroupListForAllNamespaces", "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/io.k8s.api.scheduling.v1.PriorityClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -93790,64 +101174,75 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "CompositePodGroup", + "version": "v1alpha3" } - } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/scheduling.k8s.io/v1/priorityclasses/{name}": { - "delete": { + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/compositepodgroups": { + "get": { "consumes": [ "*/*" ], - "description": "delete a PriorityClass", - "operationId": "deleteSchedulingV1PriorityClass", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - } - ], + "description": "watch individual changes to a list of CompositePodGroup. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchSchedulingV1alpha3NamespacedCompositePodGroupList", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -93858,32 +101253,78 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "CompositePodGroup", + "version": "v1alpha3" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/compositepodgroups/{name}": { "get": { "consumes": [ "*/*" ], - "description": "read the specified PriorityClass", - "operationId": "readSchedulingV1PriorityClass", + "description": "watch changes to an object of kind CompositePodGroup. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchSchedulingV1alpha3NamespacedCompositePodGroup", "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/io.k8s.api.scheduling.v1.PriorityClass" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -93894,80 +101335,86 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "CompositePodGroup", + "version": "v1alpha3" } }, "parameters": [ { - "description": "name of the PriorityClass", + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the CompositePodGroup", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "patch": { + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/podgroups": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified PriorityClass", - "operationId": "patchSchedulingV1PriorityClass", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } + "*/*" ], + "description": "watch individual changes to a list of PodGroup. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchSchedulingV1alpha3NamespacedPodGroupList", "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/io.k8s.api.scheduling.v1.PriorityClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -93978,65 +101425,78 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "PodGroup", + "version": "v1alpha3" } }, - "put": { + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/podgroups/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "replace the specified PriorityClass", - "operationId": "replaceSchedulingV1PriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": "watch changes to an object of kind PodGroup. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchSchedulingV1alpha3NamespacedPodGroup", "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/io.k8s.api.scheduling.v1.PriorityClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -94047,23 +101507,72 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "PodGroup", + "version": "v1alpha3" } - } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the PodGroup", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/scheduling.k8s.io/v1/watch/priorityclasses": { + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/workloads": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of PriorityClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchSchedulingV1PriorityClassList", + "description": "watch individual changes to a list of Workload. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchSchedulingV1alpha3NamespacedWorkloadList", "produces": [ "application/json", "application/yaml", @@ -94088,13 +101597,13 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha3" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "Workload", + "version": "v1alpha3" } }, "parameters": [ @@ -94113,6 +101622,9 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -94136,13 +101648,13 @@ } ] }, - "/apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}": { + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/workloads/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind PriorityClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchSchedulingV1PriorityClass", + "description": "watch changes to an object of kind Workload. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchSchedulingV1alpha3NamespacedWorkload", "produces": [ "application/json", "application/yaml", @@ -94167,13 +101679,13 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha3" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "Workload", + "version": "v1alpha3" } }, "parameters": [ @@ -94193,13 +101705,95 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the PriorityClass", + "description": "name of the Workload", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/watch/podgroups": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PodGroup. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchSchedulingV1alpha3PodGroupListForAllNamespaces", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -94223,7 +101817,165 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/": { + "/apis/scheduling.k8s.io/v1alpha3/watch/workloads": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Workload. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchSchedulingV1alpha3WorkloadListForAllNamespaces", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/workloads": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Workload", + "operationId": "listSchedulingV1alpha3WorkloadForAllNamespaces", + "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/io.k8s.api.scheduling.v1alpha3.WorkloadList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/v1beta1/": { "get": { "consumes": [ "application/json", @@ -94232,7 +101984,7 @@ "application/cbor" ], "description": "get available resources", - "operationId": "getSchedulingV1alpha2APIResources", + "operationId": "getSchedulingV1beta1APIResources", "produces": [ "application/json", "application/yaml", @@ -94254,17 +102006,17 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ] } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups": { "delete": { "consumes": [ "*/*" ], "description": "delete collection of PodGroup", - "operationId": "deleteSchedulingV1alpha2CollectionNamespacedPodGroup", + "operationId": "deleteSchedulingV1beta1CollectionNamespacedPodGroup", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -94337,13 +102089,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "get": { @@ -94351,7 +102103,7 @@ "*/*" ], "description": "list or watch objects of kind PodGroup", - "operationId": "listSchedulingV1alpha2NamespacedPodGroup", + "operationId": "listSchedulingV1beta1NamespacedPodGroup", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -94400,7 +102152,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroupList" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroupList" } }, "401": { @@ -94411,13 +102163,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -94433,14 +102185,14 @@ "*/*" ], "description": "create a PodGroup", - "operationId": "createSchedulingV1alpha2NamespacedPodGroup", + "operationId": "createSchedulingV1beta1NamespacedPodGroup", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, { @@ -94471,19 +102223,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "401": { @@ -94494,23 +102246,23 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}": { "delete": { "consumes": [ "*/*" ], "description": "delete a PodGroup", - "operationId": "deleteSchedulingV1alpha2NamespacedPodGroup", + "operationId": "deleteSchedulingV1beta1NamespacedPodGroup", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -94562,13 +102314,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "get": { @@ -94576,7 +102328,7 @@ "*/*" ], "description": "read the specified PodGroup", - "operationId": "readSchedulingV1alpha2NamespacedPodGroup", + "operationId": "readSchedulingV1beta1NamespacedPodGroup", "produces": [ "application/json", "application/yaml", @@ -94587,7 +102339,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "401": { @@ -94598,13 +102350,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -94632,7 +102384,7 @@ "application/apply-patch+cbor" ], "description": "partially update the specified PodGroup", - "operationId": "patchSchedulingV1alpha2NamespacedPodGroup", + "operationId": "patchSchedulingV1beta1NamespacedPodGroup", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -94668,13 +102420,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "401": { @@ -94685,13 +102437,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "put": { @@ -94699,14 +102451,14 @@ "*/*" ], "description": "replace the specified PodGroup", - "operationId": "replaceSchedulingV1alpha2NamespacedPodGroup", + "operationId": "replaceSchedulingV1beta1NamespacedPodGroup", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, { @@ -94737,13 +102489,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "401": { @@ -94754,23 +102506,23 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status": { "get": { "consumes": [ "*/*" ], "description": "read status of the specified PodGroup", - "operationId": "readSchedulingV1alpha2NamespacedPodGroupStatus", + "operationId": "readSchedulingV1beta1NamespacedPodGroupStatus", "produces": [ "application/json", "application/yaml", @@ -94781,7 +102533,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "401": { @@ -94792,13 +102544,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -94826,7 +102578,7 @@ "application/apply-patch+cbor" ], "description": "partially update status of the specified PodGroup", - "operationId": "patchSchedulingV1alpha2NamespacedPodGroupStatus", + "operationId": "patchSchedulingV1beta1NamespacedPodGroupStatus", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -94862,13 +102614,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "401": { @@ -94879,13 +102631,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "put": { @@ -94893,14 +102645,14 @@ "*/*" ], "description": "replace status of the specified PodGroup", - "operationId": "replaceSchedulingV1alpha2NamespacedPodGroupStatus", + "operationId": "replaceSchedulingV1beta1NamespacedPodGroupStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, { @@ -94931,13 +102683,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "401": { @@ -94948,23 +102700,23 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads": { "delete": { "consumes": [ "*/*" ], "description": "delete collection of Workload", - "operationId": "deleteSchedulingV1alpha2CollectionNamespacedWorkload", + "operationId": "deleteSchedulingV1beta1CollectionNamespacedWorkload", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -95037,13 +102789,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "get": { @@ -95051,7 +102803,7 @@ "*/*" ], "description": "list or watch objects of kind Workload", - "operationId": "listSchedulingV1alpha2NamespacedWorkload", + "operationId": "listSchedulingV1beta1NamespacedWorkload", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -95100,7 +102852,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.WorkloadList" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.WorkloadList" } }, "401": { @@ -95111,13 +102863,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -95133,14 +102885,14 @@ "*/*" ], "description": "create a Workload", - "operationId": "createSchedulingV1alpha2NamespacedWorkload", + "operationId": "createSchedulingV1beta1NamespacedWorkload", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, { @@ -95171,19 +102923,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, "401": { @@ -95194,23 +102946,23 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name}": { "delete": { "consumes": [ "*/*" ], "description": "delete a Workload", - "operationId": "deleteSchedulingV1alpha2NamespacedWorkload", + "operationId": "deleteSchedulingV1beta1NamespacedWorkload", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -95262,13 +103014,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "get": { @@ -95276,7 +103028,7 @@ "*/*" ], "description": "read the specified Workload", - "operationId": "readSchedulingV1alpha2NamespacedWorkload", + "operationId": "readSchedulingV1beta1NamespacedWorkload", "produces": [ "application/json", "application/yaml", @@ -95287,7 +103039,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, "401": { @@ -95298,13 +103050,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -95332,7 +103084,7 @@ "application/apply-patch+cbor" ], "description": "partially update the specified Workload", - "operationId": "patchSchedulingV1alpha2NamespacedWorkload", + "operationId": "patchSchedulingV1beta1NamespacedWorkload", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -95368,13 +103120,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, "401": { @@ -95385,13 +103137,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "put": { @@ -95399,14 +103151,14 @@ "*/*" ], "description": "replace the specified Workload", - "operationId": "replaceSchedulingV1alpha2NamespacedWorkload", + "operationId": "replaceSchedulingV1beta1NamespacedWorkload", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, { @@ -95437,13 +103189,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, "401": { @@ -95454,23 +103206,23 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } } }, - "/apis/scheduling.k8s.io/v1alpha2/podgroups": { + "/apis/scheduling.k8s.io/v1beta1/podgroups": { "get": { "consumes": [ "*/*" ], "description": "list or watch objects of kind PodGroup", - "operationId": "listSchedulingV1alpha2PodGroupForAllNamespaces", + "operationId": "listSchedulingV1beta1PodGroupForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -95484,7 +103236,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroupList" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroupList" } }, "401": { @@ -95495,13 +103247,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -95543,13 +103295,13 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/podgroups": { + "/apis/scheduling.k8s.io/v1beta1/watch/namespaces/{namespace}/podgroups": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of PodGroup. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchSchedulingV1alpha2NamespacedPodGroupList", + "operationId": "watchSchedulingV1beta1NamespacedPodGroupList", "produces": [ "application/json", "application/yaml", @@ -95574,13 +103326,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -95625,13 +103377,13 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/podgroups/{name}": { + "/apis/scheduling.k8s.io/v1beta1/watch/namespaces/{namespace}/podgroups/{name}": { "get": { "consumes": [ "*/*" ], "description": "watch changes to an object of kind PodGroup. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchSchedulingV1alpha2NamespacedPodGroup", + "operationId": "watchSchedulingV1beta1NamespacedPodGroup", "produces": [ "application/json", "application/yaml", @@ -95656,13 +103408,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -95715,13 +103467,13 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/workloads": { + "/apis/scheduling.k8s.io/v1beta1/watch/namespaces/{namespace}/workloads": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of Workload. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchSchedulingV1alpha2NamespacedWorkloadList", + "operationId": "watchSchedulingV1beta1NamespacedWorkloadList", "produces": [ "application/json", "application/yaml", @@ -95746,13 +103498,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -95797,13 +103549,13 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/workloads/{name}": { + "/apis/scheduling.k8s.io/v1beta1/watch/namespaces/{namespace}/workloads/{name}": { "get": { "consumes": [ "*/*" ], "description": "watch changes to an object of kind Workload. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchSchedulingV1alpha2NamespacedWorkload", + "operationId": "watchSchedulingV1beta1NamespacedWorkload", "produces": [ "application/json", "application/yaml", @@ -95828,13 +103580,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -95887,13 +103639,13 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/podgroups": { + "/apis/scheduling.k8s.io/v1beta1/watch/podgroups": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of PodGroup. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchSchedulingV1alpha2PodGroupListForAllNamespaces", + "operationId": "watchSchedulingV1beta1PodGroupListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -95918,13 +103670,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -95966,13 +103718,13 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/workloads": { + "/apis/scheduling.k8s.io/v1beta1/watch/workloads": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of Workload. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchSchedulingV1alpha2WorkloadListForAllNamespaces", + "operationId": "watchSchedulingV1beta1WorkloadListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -95997,13 +103749,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -96045,13 +103797,13 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/workloads": { + "/apis/scheduling.k8s.io/v1beta1/workloads": { "get": { "consumes": [ "*/*" ], "description": "list or watch objects of kind Workload", - "operationId": "listSchedulingV1alpha2WorkloadForAllNamespaces", + "operationId": "listSchedulingV1beta1WorkloadForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -96065,7 +103817,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.WorkloadList" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.WorkloadList" } }, "401": { @@ -96076,13 +103828,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -96129,14 +103881,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getStorageAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -97192,6 +104946,197 @@ } } }, + "/apis/storage.k8s.io/v1/csinodes/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified CSINode", + "operationId": "readStorageV1CSINodeStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the CSINode", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified CSINode", + "operationId": "patchStorageV1CSINodeStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified CSINode", + "operationId": "replaceStorageV1CSINodeStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.storage.v1.CSINode" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + } + }, "/apis/storage.k8s.io/v1/csistoragecapacities": { "get": { "consumes": [ @@ -100549,7 +108494,42 @@ } ] }, - "/apis/storage.k8s.io/v1beta1/": { + "/apis/storagemigration.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get information of a group", + "operationId": "getStoragemigrationAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storagemigration" + ] + } + }, + "/apis/storagemigration.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -100558,7 +108538,7 @@ "application/cbor" ], "description": "get available resources", - "operationId": "getStorageV1beta1APIResources", + "operationId": "getStoragemigrationV1APIResources", "produces": [ "application/json", "application/yaml", @@ -100580,17 +108560,17 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ] } }, - "/apis/storage.k8s.io/v1beta1/volumeattributesclasses": { + "/apis/storagemigration.k8s.io/v1/storageversionmigrations": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of VolumeAttributesClass", - "operationId": "deleteStorageV1beta1CollectionVolumeAttributesClass", + "description": "delete collection of StorageVersionMigration", + "operationId": "deleteStoragemigrationV1CollectionStorageVersionMigration", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -100663,21 +108643,21 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind VolumeAttributesClass", - "operationId": "listStorageV1beta1VolumeAttributesClass", + "description": "list or watch objects of kind StorageVersionMigration", + "operationId": "listStoragemigrationV1StorageVersionMigration", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -100726,7 +108706,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClassList" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigrationList" } }, "401": { @@ -100737,13 +108717,13 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } }, "parameters": [ @@ -100755,15 +108735,15 @@ "consumes": [ "*/*" ], - "description": "create a VolumeAttributesClass", - "operationId": "createStorageV1beta1VolumeAttributesClass", + "description": "create a StorageVersionMigration", + "operationId": "createStoragemigrationV1StorageVersionMigration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, { @@ -100794,19 +108774,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, "401": { @@ -100817,23 +108797,23 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } } }, - "/apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}": { + "/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a VolumeAttributesClass", - "operationId": "deleteStorageV1beta1VolumeAttributesClass", + "description": "delete a StorageVersionMigration", + "operationId": "deleteStoragemigrationV1StorageVersionMigration", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -100868,13 +108848,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -100885,21 +108865,21 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified VolumeAttributesClass", - "operationId": "readStorageV1beta1VolumeAttributesClass", + "description": "read the specified StorageVersionMigration", + "operationId": "readStoragemigrationV1StorageVersionMigration", "produces": [ "application/json", "application/yaml", @@ -100910,7 +108890,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, "401": { @@ -100921,18 +108901,18 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } }, "parameters": [ { - "description": "name of the VolumeAttributesClass", + "description": "name of the StorageVersionMigration", "in": "path", "name": "name", "required": true, @@ -100951,8 +108931,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified VolumeAttributesClass", - "operationId": "patchStorageV1beta1VolumeAttributesClass", + "description": "partially update the specified StorageVersionMigration", + "operationId": "patchStoragemigrationV1StorageVersionMigration", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -100988,13 +108968,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, "401": { @@ -101005,28 +108985,28 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified VolumeAttributesClass", - "operationId": "replaceStorageV1beta1VolumeAttributesClass", + "description": "replace the specified StorageVersionMigration", + "operationId": "replaceStoragemigrationV1StorageVersionMigration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, { @@ -101057,13 +109037,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, "401": { @@ -101074,23 +109054,214 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } } }, - "/apis/storage.k8s.io/v1beta1/watch/volumeattributesclasses": { + "/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of VolumeAttributesClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchStorageV1beta1VolumeAttributesClassList", + "description": "read status of the specified StorageVersionMigration", + "operationId": "readStoragemigrationV1StorageVersionMigrationStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storagemigration_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the StorageVersionMigration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified StorageVersionMigration", + "operationId": "patchStoragemigrationV1StorageVersionMigrationStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storagemigration_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified StorageVersionMigration", + "operationId": "replaceStoragemigrationV1StorageVersionMigrationStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.storagemigration.v1.StorageVersionMigration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storagemigration_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" + } + } + }, + "/apis/storagemigration.k8s.io/v1/watch/storageversionmigrations": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of StorageVersionMigration. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchStoragemigrationV1StorageVersionMigrationList", "produces": [ "application/json", "application/yaml", @@ -101115,13 +109286,13 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } }, "parameters": [ @@ -101163,13 +109334,13 @@ } ] }, - "/apis/storage.k8s.io/v1beta1/watch/volumeattributesclasses/{name}": { + "/apis/storagemigration.k8s.io/v1/watch/storageversionmigrations/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind VolumeAttributesClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchStorageV1beta1VolumeAttributesClass", + "description": "watch changes to an object of kind StorageVersionMigration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchStoragemigrationV1StorageVersionMigration", "produces": [ "application/json", "application/yaml", @@ -101194,13 +109365,13 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } }, "parameters": [ @@ -101220,7 +109391,7 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the VolumeAttributesClass", + "description": "name of the StorageVersionMigration", "in": "path", "name": "name", "required": true, @@ -101250,39 +109421,6 @@ } ] }, - "/apis/storagemigration.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getStoragemigrationAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storagemigration" - ] - } - }, "/apis/storagemigration.k8s.io/v1beta1/": { "get": { "consumes": [ diff --git a/kubernetes/client/api/__init__.py b/kubernetes/client/api/__init__.py index 5a02d8b26c..c936fe68ae 100644 --- a/kubernetes/client/api/__init__.py +++ b/kubernetes/client/api/__init__.py @@ -24,7 +24,6 @@ "BatchV1Api", "CertificatesApi", "CertificatesV1Api", - "CertificatesV1alpha1Api", "CertificatesV1beta1Api", "CoordinationApi", "CoordinationV1Api", @@ -41,10 +40,11 @@ "FlowcontrolApiserverV1Api", "InternalApiserverApi", "InternalApiserverV1alpha1Api", + "LifecycleApi", + "LifecycleV1alpha1Api", "LogsApi", "NetworkingApi", "NetworkingV1Api", - "NetworkingV1beta1Api", "NodeApi", "NodeV1Api", "OpenidApi", @@ -59,11 +59,12 @@ "ResourceV1beta2Api", "SchedulingApi", "SchedulingV1Api", - "SchedulingV1alpha2Api", + "SchedulingV1alpha3Api", + "SchedulingV1beta1Api", "StorageApi", "StorageV1Api", - "StorageV1beta1Api", "StoragemigrationApi", + "StoragemigrationV1Api", "StoragemigrationV1beta1Api", "VersionApi", ] @@ -95,7 +96,6 @@ from kubernetes.client.api.batch_v1_api import BatchV1Api from kubernetes.client.api.certificates_api import CertificatesApi from kubernetes.client.api.certificates_v1_api import CertificatesV1Api - from kubernetes.client.api.certificates_v1alpha1_api import CertificatesV1alpha1Api from kubernetes.client.api.certificates_v1beta1_api import CertificatesV1beta1Api from kubernetes.client.api.coordination_api import CoordinationApi from kubernetes.client.api.coordination_v1_api import CoordinationV1Api @@ -112,10 +112,11 @@ from kubernetes.client.api.flowcontrol_apiserver_v1_api import FlowcontrolApiserverV1Api from kubernetes.client.api.internal_apiserver_api import InternalApiserverApi from kubernetes.client.api.internal_apiserver_v1alpha1_api import InternalApiserverV1alpha1Api + from kubernetes.client.api.lifecycle_api import LifecycleApi + from kubernetes.client.api.lifecycle_v1alpha1_api import LifecycleV1alpha1Api from kubernetes.client.api.logs_api import LogsApi from kubernetes.client.api.networking_api import NetworkingApi from kubernetes.client.api.networking_v1_api import NetworkingV1Api - from kubernetes.client.api.networking_v1beta1_api import NetworkingV1beta1Api from kubernetes.client.api.node_api import NodeApi from kubernetes.client.api.node_v1_api import NodeV1Api from kubernetes.client.api.openid_api import OpenidApi @@ -130,11 +131,12 @@ from kubernetes.client.api.resource_v1beta2_api import ResourceV1beta2Api from kubernetes.client.api.scheduling_api import SchedulingApi from kubernetes.client.api.scheduling_v1_api import SchedulingV1Api - from kubernetes.client.api.scheduling_v1alpha2_api import SchedulingV1alpha2Api + from kubernetes.client.api.scheduling_v1alpha3_api import SchedulingV1alpha3Api + from kubernetes.client.api.scheduling_v1beta1_api import SchedulingV1beta1Api from kubernetes.client.api.storage_api import StorageApi from kubernetes.client.api.storage_v1_api import StorageV1Api - from kubernetes.client.api.storage_v1beta1_api import StorageV1beta1Api from kubernetes.client.api.storagemigration_api import StoragemigrationApi + from kubernetes.client.api.storagemigration_v1_api import StoragemigrationV1Api from kubernetes.client.api.storagemigration_v1beta1_api import StoragemigrationV1beta1Api from kubernetes.client.api.version_api import VersionApi @@ -165,7 +167,6 @@ "BatchV1Api": ".batch_v1_api", "CertificatesApi": ".certificates_api", "CertificatesV1Api": ".certificates_v1_api", - "CertificatesV1alpha1Api": ".certificates_v1alpha1_api", "CertificatesV1beta1Api": ".certificates_v1beta1_api", "CoordinationApi": ".coordination_api", "CoordinationV1Api": ".coordination_v1_api", @@ -182,10 +183,11 @@ "FlowcontrolApiserverV1Api": ".flowcontrol_apiserver_v1_api", "InternalApiserverApi": ".internal_apiserver_api", "InternalApiserverV1alpha1Api": ".internal_apiserver_v1alpha1_api", + "LifecycleApi": ".lifecycle_api", + "LifecycleV1alpha1Api": ".lifecycle_v1alpha1_api", "LogsApi": ".logs_api", "NetworkingApi": ".networking_api", "NetworkingV1Api": ".networking_v1_api", - "NetworkingV1beta1Api": ".networking_v1beta1_api", "NodeApi": ".node_api", "NodeV1Api": ".node_v1_api", "OpenidApi": ".openid_api", @@ -200,11 +202,12 @@ "ResourceV1beta2Api": ".resource_v1beta2_api", "SchedulingApi": ".scheduling_api", "SchedulingV1Api": ".scheduling_v1_api", - "SchedulingV1alpha2Api": ".scheduling_v1alpha2_api", + "SchedulingV1alpha3Api": ".scheduling_v1alpha3_api", + "SchedulingV1beta1Api": ".scheduling_v1beta1_api", "StorageApi": ".storage_api", "StorageV1Api": ".storage_v1_api", - "StorageV1beta1Api": ".storage_v1beta1_api", "StoragemigrationApi": ".storagemigration_api", + "StoragemigrationV1Api": ".storagemigration_v1_api", "StoragemigrationV1beta1Api": ".storagemigration_v1beta1_api", "VersionApi": ".version_api", } diff --git a/kubernetes/client/api/admissionregistration_api.py b/kubernetes/client/api/admissionregistration_api.py index 071a6a3eb2..e71d1c3f78 100644 --- a/kubernetes/client/api/admissionregistration_api.py +++ b/kubernetes/client/api/admissionregistration_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/admissionregistration_v1_api.py b/kubernetes/client/api/admissionregistration_v1_api.py index 147c331f09..f63e51b548 100644 --- a/kubernetes/client/api/admissionregistration_v1_api.py +++ b/kubernetes/client/api/admissionregistration_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/admissionregistration_v1alpha1_api.py b/kubernetes/client/api/admissionregistration_v1alpha1_api.py index 7809a7d503..a19fe54453 100644 --- a/kubernetes/client/api/admissionregistration_v1alpha1_api.py +++ b/kubernetes/client/api/admissionregistration_v1alpha1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/admissionregistration_v1beta1_api.py b/kubernetes/client/api/admissionregistration_v1beta1_api.py index b5aba6e03b..3354842758 100644 --- a/kubernetes/client/api/admissionregistration_v1beta1_api.py +++ b/kubernetes/client/api/admissionregistration_v1beta1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/apiextensions_api.py b/kubernetes/client/api/apiextensions_api.py index 8974678534..defbc045a6 100644 --- a/kubernetes/client/api/apiextensions_api.py +++ b/kubernetes/client/api/apiextensions_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/apiextensions_v1_api.py b/kubernetes/client/api/apiextensions_v1_api.py index 79f6a421d4..d28b3028a6 100644 --- a/kubernetes/client/api/apiextensions_v1_api.py +++ b/kubernetes/client/api/apiextensions_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/apiregistration_api.py b/kubernetes/client/api/apiregistration_api.py index 2893861275..ce032171da 100644 --- a/kubernetes/client/api/apiregistration_api.py +++ b/kubernetes/client/api/apiregistration_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/apiregistration_v1_api.py b/kubernetes/client/api/apiregistration_v1_api.py index 9ba60a411d..c6d2e7ca7f 100644 --- a/kubernetes/client/api/apiregistration_v1_api.py +++ b/kubernetes/client/api/apiregistration_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/apis_api.py b/kubernetes/client/api/apis_api.py index 7dbdefa4cc..d9e2225a90 100644 --- a/kubernetes/client/api/apis_api.py +++ b/kubernetes/client/api/apis_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_versions_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/apps_api.py b/kubernetes/client/api/apps_api.py index a52734b8bc..8f22514a05 100644 --- a/kubernetes/client/api/apps_api.py +++ b/kubernetes/client/api/apps_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/apps_v1_api.py b/kubernetes/client/api/apps_v1_api.py index 67bd6a6b4d..e743e24006 100644 --- a/kubernetes/client/api/apps_v1_api.py +++ b/kubernetes/client/api/apps_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/authentication_api.py b/kubernetes/client/api/authentication_api.py index f392eca029..85c419d77a 100644 --- a/kubernetes/client/api/authentication_api.py +++ b/kubernetes/client/api/authentication_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/authentication_v1_api.py b/kubernetes/client/api/authentication_v1_api.py index cc3f1e0c7d..804751da14 100644 --- a/kubernetes/client/api/authentication_v1_api.py +++ b/kubernetes/client/api/authentication_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/authorization_api.py b/kubernetes/client/api/authorization_api.py index 62c2b513ae..adc1bf9c83 100644 --- a/kubernetes/client/api/authorization_api.py +++ b/kubernetes/client/api/authorization_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/authorization_v1_api.py b/kubernetes/client/api/authorization_v1_api.py index 8fd1c6dc7a..c4a2fdf93c 100644 --- a/kubernetes/client/api/authorization_v1_api.py +++ b/kubernetes/client/api/authorization_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/autoscaling_api.py b/kubernetes/client/api/autoscaling_api.py index d6185026a7..529db3c459 100644 --- a/kubernetes/client/api/autoscaling_api.py +++ b/kubernetes/client/api/autoscaling_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/autoscaling_v1_api.py b/kubernetes/client/api/autoscaling_v1_api.py index 565887264b..a87c73b120 100644 --- a/kubernetes/client/api/autoscaling_v1_api.py +++ b/kubernetes/client/api/autoscaling_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/autoscaling_v2_api.py b/kubernetes/client/api/autoscaling_v2_api.py index 3218313ad0..3167131a58 100644 --- a/kubernetes/client/api/autoscaling_v2_api.py +++ b/kubernetes/client/api/autoscaling_v2_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/batch_api.py b/kubernetes/client/api/batch_api.py index e510f3331c..eddf52b636 100644 --- a/kubernetes/client/api/batch_api.py +++ b/kubernetes/client/api/batch_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/batch_v1_api.py b/kubernetes/client/api/batch_v1_api.py index 8380479782..08e447a070 100644 --- a/kubernetes/client/api/batch_v1_api.py +++ b/kubernetes/client/api/batch_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/certificates_api.py b/kubernetes/client/api/certificates_api.py index 394c070e7b..1c34337ae3 100644 --- a/kubernetes/client/api/certificates_api.py +++ b/kubernetes/client/api/certificates_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/certificates_v1_api.py b/kubernetes/client/api/certificates_v1_api.py index 304e725c18..b8c9afef23 100644 --- a/kubernetes/client/api/certificates_v1_api.py +++ b/kubernetes/client/api/certificates_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,7 +21,11 @@ from kubernetes.client.models.v1_api_resource_list import V1APIResourceList from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest from kubernetes.client.models.v1_certificate_signing_request_list import V1CertificateSigningRequestList +from kubernetes.client.models.v1_cluster_trust_bundle import V1ClusterTrustBundle +from kubernetes.client.models.v1_cluster_trust_bundle_list import V1ClusterTrustBundleList from kubernetes.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.client.models.v1_pod_certificate_request import V1PodCertificateRequest +from kubernetes.client.models.v1_pod_certificate_request_list import V1PodCertificateRequestList from kubernetes.client.models.v1_status import V1Status from kubernetes.client.api_client import ApiClient, RequestSerialized @@ -343,17 +347,6148 @@ def _create_certificate_signing_request_serialize( + @validate_call(config={'defer_build': True}) + def create_cluster_trust_bundle( + self, + body: V1ClusterTrustBundle, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1ClusterTrustBundle: + """create_cluster_trust_bundle + + create a ClusterTrustBundle + + :param body: (required) + :type body: V1ClusterTrustBundle + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_cluster_trust_bundle_serialize( + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ClusterTrustBundle", + '201': "V1ClusterTrustBundle", + '202': "V1ClusterTrustBundle", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def create_cluster_trust_bundle_with_http_info( + self, + body: V1ClusterTrustBundle, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1ClusterTrustBundle, int, Any]: + """create_cluster_trust_bundle + + create a ClusterTrustBundle + + :param body: (required) + :type body: V1ClusterTrustBundle + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_cluster_trust_bundle_serialize( + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ClusterTrustBundle", + '201': "V1ClusterTrustBundle", + '202': "V1ClusterTrustBundle", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _create_cluster_trust_bundle_serialize( + self, + body, + pretty, + dry_run, + field_manager, + field_validation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/apis/certificates.k8s.io/v1/clustertrustbundles', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def create_namespaced_pod_certificate_request( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1PodCertificateRequest, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1PodCertificateRequest: + """create_namespaced_pod_certificate_request + + create a PodCertificateRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1PodCertificateRequest + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_namespaced_pod_certificate_request_serialize( + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", + '202': "V1PodCertificateRequest", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def create_namespaced_pod_certificate_request_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1PodCertificateRequest, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1PodCertificateRequest, int, Any]: + """create_namespaced_pod_certificate_request + + create a PodCertificateRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1PodCertificateRequest + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_namespaced_pod_certificate_request_serialize( + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", + '202': "V1PodCertificateRequest", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _create_namespaced_pod_certificate_request_serialize( + self, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call(config={'defer_build': True}) def delete_certificate_signing_request( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """delete_certificate_signing_request + + delete a CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_certificate_signing_request_serialize( + name=name, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def delete_certificate_signing_request_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[object, int, Any]: + """delete_certificate_signing_request + + delete a CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_certificate_signing_request_serialize( + name=name, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _delete_certificate_signing_request_serialize( + self, + name, + pretty, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def delete_cluster_trust_bundle( + self, + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """delete_cluster_trust_bundle + + delete a ClusterTrustBundle + + :param name: name of the ClusterTrustBundle (required) + :type name: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_cluster_trust_bundle_serialize( + name=name, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def delete_cluster_trust_bundle_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[object, int, Any]: + """delete_cluster_trust_bundle + + delete a ClusterTrustBundle + + :param name: name of the ClusterTrustBundle (required) + :type name: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_cluster_trust_bundle_serialize( + name=name, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _delete_cluster_trust_bundle_serialize( + self, + name, + pretty, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/certificates.k8s.io/v1/clustertrustbundles/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def delete_collection_certificate_signing_request( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1Status: + """delete_collection_certificate_signing_request + + delete collection of CertificateSigningRequest + + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_collection_certificate_signing_request_serialize( + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def delete_collection_certificate_signing_request_with_http_info( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1Status, int, Any]: + """delete_collection_certificate_signing_request + + delete collection of CertificateSigningRequest + + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_collection_certificate_signing_request_serialize( + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _delete_collection_certificate_signing_request_serialize( + self, + pretty, + _continue, + dry_run, + field_selector, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, + orphan_dependents, + propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def delete_collection_cluster_trust_bundle( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1Status: + """delete_collection_cluster_trust_bundle + + delete collection of ClusterTrustBundle + + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_collection_cluster_trust_bundle_serialize( + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def delete_collection_cluster_trust_bundle_with_http_info( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1Status, int, Any]: + """delete_collection_cluster_trust_bundle + + delete collection of ClusterTrustBundle + + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_collection_cluster_trust_bundle_serialize( + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _delete_collection_cluster_trust_bundle_serialize( + self, + pretty, + _continue, + dry_run, + field_selector, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, + orphan_dependents, + propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/certificates.k8s.io/v1/clustertrustbundles', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def delete_collection_namespaced_pod_certificate_request( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1Status: + """delete_collection_namespaced_pod_certificate_request + + delete collection of PodCertificateRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_collection_namespaced_pod_certificate_request_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def delete_collection_namespaced_pod_certificate_request_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1Status, int, Any]: + """delete_collection_namespaced_pod_certificate_request + + delete collection of PodCertificateRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :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. + :type _continue: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param body: + :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_collection_namespaced_pod_certificate_request_serialize( + namespace=namespace, + pretty=pretty, + _continue=_continue, + dry_run=dry_run, + field_selector=field_selector, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1Status", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _delete_collection_namespaced_pod_certificate_request_serialize( + self, + namespace, + pretty, + _continue, + dry_run, + field_selector, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, + orphan_dependents, + propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def delete_namespaced_pod_certificate_request( + self, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """delete_namespaced_pod_certificate_request + + delete a PodCertificateRequest + + :param name: name of the PodCertificateRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_namespaced_pod_certificate_request_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def delete_namespaced_pod_certificate_request_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[object, int, Any]: + """delete_namespaced_pod_certificate_request + + delete a PodCertificateRequest + + :param name: name of the PodCertificateRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_namespaced_pod_certificate_request_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _delete_namespaced_pod_certificate_request_serialize( + self, + name, + namespace, + pretty, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def get_api_resources( + self, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1APIResourceList: + """get_api_resources + + get available resources + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_resources_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1APIResourceList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def get_api_resources_with_http_info( + self, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1APIResourceList, int, Any]: + """get_api_resources + + get available resources + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_resources_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1APIResourceList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _get_api_resources_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/certificates.k8s.io/v1/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def list_certificate_signing_request( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1CertificateSigningRequestList: + """list_certificate_signing_request + + list or watch objects of kind CertificateSigningRequest + + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_certificate_signing_request_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequestList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def list_certificate_signing_request_with_http_info( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1CertificateSigningRequestList, int, Any]: + """list_certificate_signing_request + + list or watch objects of kind CertificateSigningRequest + + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_certificate_signing_request_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequestList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _list_certificate_signing_request_serialize( + self, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def list_cluster_trust_bundle( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1ClusterTrustBundleList: + """list_cluster_trust_bundle + + list or watch objects of kind ClusterTrustBundle + + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_cluster_trust_bundle_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ClusterTrustBundleList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def list_cluster_trust_bundle_with_http_info( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1ClusterTrustBundleList, int, Any]: + """list_cluster_trust_bundle + + list or watch objects of kind ClusterTrustBundle + + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_cluster_trust_bundle_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ClusterTrustBundleList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _list_cluster_trust_bundle_serialize( + self, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/certificates.k8s.io/v1/clustertrustbundles', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def list_namespaced_pod_certificate_request( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1PodCertificateRequestList: + """list_namespaced_pod_certificate_request + + list or watch objects of kind PodCertificateRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_namespaced_pod_certificate_request_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequestList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def list_namespaced_pod_certificate_request_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1PodCertificateRequestList, int, Any]: + """list_namespaced_pod_certificate_request + + list or watch objects of kind PodCertificateRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_namespaced_pod_certificate_request_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequestList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _list_namespaced_pod_certificate_request_serialize( + self, + namespace, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def list_pod_certificate_request_for_all_namespaces( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1PodCertificateRequestList: + """list_pod_certificate_request_for_all_namespaces + + list or watch objects of kind PodCertificateRequest + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_pod_certificate_request_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequestList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def list_pod_certificate_request_for_all_namespaces_with_http_info( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1PodCertificateRequestList, int, Any]: + """list_pod_certificate_request_for_all_namespaces + + list or watch objects of kind PodCertificateRequest + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_pod_certificate_request_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequestList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _list_pod_certificate_request_for_all_namespaces_serialize( + self, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + pretty, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/certificates.k8s.io/v1/podcertificaterequests', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_certificate_signing_request( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1CertificateSigningRequest: + """patch_certificate_signing_request + + partially update the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_certificate_signing_request_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_certificate_signing_request_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1CertificateSigningRequest, int, Any]: + """patch_certificate_signing_request + + partially update the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_certificate_signing_request_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_certificate_signing_request_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_certificate_signing_request_approval( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1CertificateSigningRequest: + """patch_certificate_signing_request_approval + + partially update approval of the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_certificate_signing_request_approval_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_certificate_signing_request_approval_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1CertificateSigningRequest, int, Any]: + """patch_certificate_signing_request_approval + + partially update approval of the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_certificate_signing_request_approval_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_certificate_signing_request_approval_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_certificate_signing_request_status( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1CertificateSigningRequest: + """patch_certificate_signing_request_status + + partially update status of the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_certificate_signing_request_status_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_certificate_signing_request_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1CertificateSigningRequest, int, Any]: + """patch_certificate_signing_request_status + + partially update status of the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_certificate_signing_request_status_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_certificate_signing_request_status_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_cluster_trust_bundle( + self, + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1ClusterTrustBundle: + """patch_cluster_trust_bundle + + partially update the specified ClusterTrustBundle + + :param name: name of the ClusterTrustBundle (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_cluster_trust_bundle_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ClusterTrustBundle", + '201': "V1ClusterTrustBundle", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_cluster_trust_bundle_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1ClusterTrustBundle, int, Any]: + """patch_cluster_trust_bundle + + partially update the specified ClusterTrustBundle + + :param name: name of the ClusterTrustBundle (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_cluster_trust_bundle_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ClusterTrustBundle", + '201': "V1ClusterTrustBundle", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_cluster_trust_bundle_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/certificates.k8s.io/v1/clustertrustbundles/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_pod_certificate_request( + self, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1PodCertificateRequest: + """patch_namespaced_pod_certificate_request + + partially update the specified PodCertificateRequest + + :param name: name of the PodCertificateRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_pod_certificate_request_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_pod_certificate_request_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1PodCertificateRequest, int, Any]: + """patch_namespaced_pod_certificate_request + + partially update the specified PodCertificateRequest + + :param name: name of the PodCertificateRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_pod_certificate_request_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_namespaced_pod_certificate_request_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_pod_certificate_request_status( + self, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - body: Optional[V1DeleteOptions] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -369,27 +6504,27 @@ def delete_certificate_signing_request( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """delete_certificate_signing_request + ) -> V1PodCertificateRequest: + """patch_namespaced_pod_certificate_request_status - delete a CertificateSigningRequest + partially update status of the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param body: - :type body: V1DeleteOptions + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -421,15 +6556,15 @@ def delete_certificate_signing_request( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_certificate_signing_request_serialize( + _param = self._patch_namespaced_pod_certificate_request_status_serialize( name=name, + namespace=namespace, + body=body, pretty=pretty, dry_run=dry_run, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - body=body, + field_manager=field_manager, + field_validation=field_validation, + force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -437,8 +6572,8 @@ def delete_certificate_signing_request( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '202': "object", + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -452,16 +6587,16 @@ def delete_certificate_signing_request( @validate_call(config={'defer_build': True}) - def delete_certificate_signing_request_with_http_info( + def patch_namespaced_pod_certificate_request_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - body: Optional[V1DeleteOptions] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -477,27 +6612,27 @@ def delete_certificate_signing_request_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[object, int, Any]: - """delete_certificate_signing_request + ) -> Tuple[V1PodCertificateRequest, int, Any]: + """patch_namespaced_pod_certificate_request_status - delete a CertificateSigningRequest + partially update status of the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param body: - :type body: V1DeleteOptions + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -529,15 +6664,15 @@ def delete_certificate_signing_request_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_certificate_signing_request_serialize( + _param = self._patch_namespaced_pod_certificate_request_status_serialize( name=name, + namespace=namespace, + body=body, pretty=pretty, dry_run=dry_run, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - body=body, + field_manager=field_manager, + field_validation=field_validation, + force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -545,8 +6680,8 @@ def delete_certificate_signing_request_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '202': "object", + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -559,16 +6694,16 @@ def delete_certificate_signing_request_with_http_info( ) - def _delete_certificate_signing_request_serialize( + def _patch_namespaced_pod_certificate_request_status_serialize( self, name, + namespace, + body, pretty, dry_run, - grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential, - orphan_dependents, - propagation_policy, - body, + field_manager, + field_validation, + force, _request_auth, _content_type, _headers, @@ -592,6 +6727,8 @@ def _delete_certificate_signing_request_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -601,21 +6738,17 @@ def _delete_certificate_signing_request_serialize( _query_params.append(('dryRun', dry_run)) - if grace_period_seconds is not None: - - _query_params.append(('gracePeriodSeconds', grace_period_seconds)) - - if ignore_store_read_error_with_cluster_breaking_potential is not None: + if field_manager is not None: - _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + _query_params.append(('fieldManager', field_manager)) - if orphan_dependents is not None: + if field_validation is not None: - _query_params.append(('orphanDependents', orphan_dependents)) + _query_params.append(('fieldValidation', field_validation)) - if propagation_policy is not None: + if force is not None: - _query_params.append(('propagationPolicy', propagation_policy)) + _query_params.append(('force', force)) # process the header parameters # process the form parameters @@ -635,6 +6768,23 @@ def _delete_certificate_signing_request_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -642,8 +6792,8 @@ def _delete_certificate_signing_request_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}', + method='PATCH', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -660,24 +6810,10 @@ def _delete_certificate_signing_request_serialize( @validate_call(config={'defer_build': True}) - def delete_collection_certificate_signing_request( + def read_certificate_signing_request( self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -691,45 +6827,17 @@ def delete_collection_certificate_signing_request( ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1Status: - """delete_collection_certificate_signing_request - - delete collection of CertificateSigningRequest - - :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). - :type pretty: str - :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. - :type _continue: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1CertificateSigningRequest: + """read_certificate_signing_request + + read the specified CertificateSigningRequest + + :param name: name of the CertificateSigningRequest (required) + :type name: str + :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). + :type pretty: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -761,23 +6869,9 @@ def delete_collection_certificate_signing_request( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_collection_certificate_signing_request_serialize( + _param = self._read_certificate_signing_request_serialize( + name=name, pretty=pretty, - _continue=_continue, - dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -785,7 +6879,7 @@ def delete_collection_certificate_signing_request( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", + '200': "V1CertificateSigningRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -799,24 +6893,10 @@ def delete_collection_certificate_signing_request( @validate_call(config={'defer_build': True}) - def delete_collection_certificate_signing_request_with_http_info( + def read_certificate_signing_request_with_http_info( self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -832,43 +6912,15 @@ def delete_collection_certificate_signing_request_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1Status, int, Any]: - """delete_collection_certificate_signing_request + ) -> Tuple[V1CertificateSigningRequest, int, Any]: + """read_certificate_signing_request - delete collection of CertificateSigningRequest + read the specified CertificateSigningRequest + :param name: name of the CertificateSigningRequest (required) + :type name: str :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). :type pretty: str - :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. - :type _continue: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -900,23 +6952,9 @@ def delete_collection_certificate_signing_request_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_collection_certificate_signing_request_serialize( + _param = self._read_certificate_signing_request_serialize( + name=name, pretty=pretty, - _continue=_continue, - dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -924,7 +6962,7 @@ def delete_collection_certificate_signing_request_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", + '200': "V1CertificateSigningRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -937,24 +6975,10 @@ def delete_collection_certificate_signing_request_with_http_info( ) - def _delete_collection_certificate_signing_request_serialize( + def _read_certificate_signing_request_serialize( self, + name, pretty, - _continue, - dry_run, - field_selector, - grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential, - label_selector, - limit, - orphan_dependents, - propagation_policy, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - body, _request_auth, _content_type, _headers, @@ -976,72 +7000,16 @@ def _delete_collection_certificate_signing_request_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if _continue is not None: - - _query_params.append(('continue', _continue)) - - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if grace_period_seconds is not None: - - _query_params.append(('gracePeriodSeconds', grace_period_seconds)) - - if ignore_store_read_error_with_cluster_breaking_potential is not None: - - _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if orphan_dependents is not None: - - _query_params.append(('orphanDependents', orphan_dependents)) - - if propagation_policy is not None: - - _query_params.append(('propagationPolicy', propagation_policy)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: - - _query_params.append(('shardSelector', shard_selector)) - - if timeout_seconds is not None: - - _query_params.append(('timeoutSeconds', timeout_seconds)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -1062,8 +7030,8 @@ def _delete_collection_certificate_signing_request_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests', + method='GET', + resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1080,8 +7048,10 @@ def _delete_collection_certificate_signing_request_serialize( @validate_call(config={'defer_build': True}) - def get_api_resources( + def read_certificate_signing_request_approval( self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -1097,11 +7067,15 @@ def get_api_resources( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1APIResourceList: - """get_api_resources + ) -> V1CertificateSigningRequest: + """read_certificate_signing_request_approval - get available resources + read approval of the specified CertificateSigningRequest + :param name: name of the CertificateSigningRequest (required) + :type name: str + :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). + :type pretty: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -1133,7 +7107,9 @@ def get_api_resources( :return: Returns the result object. """ # noqa: E501 - _param = self._get_api_resources_serialize( + _param = self._read_certificate_signing_request_approval_serialize( + name=name, + pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1141,7 +7117,7 @@ def get_api_resources( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1APIResourceList", + '200': "V1CertificateSigningRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -1155,8 +7131,10 @@ def get_api_resources( @validate_call(config={'defer_build': True}) - def get_api_resources_with_http_info( + def read_certificate_signing_request_approval_with_http_info( self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -1172,11 +7150,15 @@ def get_api_resources_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1APIResourceList, int, Any]: - """get_api_resources + ) -> Tuple[V1CertificateSigningRequest, int, Any]: + """read_certificate_signing_request_approval - get available resources + read approval of the specified CertificateSigningRequest + :param name: name of the CertificateSigningRequest (required) + :type name: str + :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). + :type pretty: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -1208,7 +7190,9 @@ def get_api_resources_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_api_resources_serialize( + _param = self._read_certificate_signing_request_approval_serialize( + name=name, + pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1216,7 +7200,7 @@ def get_api_resources_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1APIResourceList", + '200': "V1CertificateSigningRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -1229,8 +7213,10 @@ def get_api_resources_with_http_info( ) - def _get_api_resources_serialize( + def _read_certificate_signing_request_approval_serialize( self, + name, + pretty, _request_auth, _content_type, _headers, @@ -1252,7 +7238,13 @@ def _get_api_resources_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + # process the header parameters # process the form parameters # process the body parameter @@ -1277,7 +7269,7 @@ def _get_api_resources_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/certificates.k8s.io/v1/', + resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1294,20 +7286,10 @@ def _get_api_resources_serialize( @validate_call(config={'defer_build': True}) - def list_certificate_signing_request( + def read_certificate_signing_request_status( self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -1323,35 +7305,15 @@ def list_certificate_signing_request( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CertificateSigningRequestList: - """list_certificate_signing_request + ) -> V1CertificateSigningRequest: + """read_certificate_signing_request_status - list or watch objects of kind CertificateSigningRequest + read status of the specified CertificateSigningRequest + :param name: name of the CertificateSigningRequest (required) + :type name: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -1383,19 +7345,9 @@ def list_certificate_signing_request( :return: Returns the result object. """ # noqa: E501 - _param = self._list_certificate_signing_request_serialize( + _param = self._read_certificate_signing_request_status_serialize( + name=name, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1403,7 +7355,7 @@ def list_certificate_signing_request( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequestList", + '200': "V1CertificateSigningRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -1417,20 +7369,10 @@ def list_certificate_signing_request( @validate_call(config={'defer_build': True}) - def list_certificate_signing_request_with_http_info( + def read_certificate_signing_request_status_with_http_info( self, + name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -1446,35 +7388,15 @@ def list_certificate_signing_request_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1CertificateSigningRequestList, int, Any]: - """list_certificate_signing_request + ) -> Tuple[V1CertificateSigningRequest, int, Any]: + """read_certificate_signing_request_status - list or watch objects of kind CertificateSigningRequest + read status of the specified CertificateSigningRequest + :param name: name of the CertificateSigningRequest (required) + :type name: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -1506,19 +7428,9 @@ def list_certificate_signing_request_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_certificate_signing_request_serialize( + _param = self._read_certificate_signing_request_status_serialize( + name=name, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1526,7 +7438,7 @@ def list_certificate_signing_request_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequestList", + '200': "V1CertificateSigningRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -1539,20 +7451,10 @@ def list_certificate_signing_request_with_http_info( ) - def _list_certificate_signing_request_serialize( + def _read_certificate_signing_request_status_serialize( self, + name, pretty, - allow_watch_bookmarks, - _continue, - field_selector, - label_selector, - limit, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - watch, _request_auth, _content_type, _headers, @@ -1574,55 +7476,13 @@ def _list_certificate_signing_request_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if allow_watch_bookmarks is not None: - - _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) - - if _continue is not None: - - _query_params.append(('continue', _continue)) - - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: - - _query_params.append(('shardSelector', shard_selector)) - - if timeout_seconds is not None: - - _query_params.append(('timeoutSeconds', timeout_seconds)) - - if watch is not None: - - _query_params.append(('watch', watch)) - # process the header parameters # process the form parameters # process the body parameter @@ -1635,10 +7495,7 @@ def _list_certificate_signing_request_serialize( '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' ] ) @@ -1650,7 +7507,7 @@ def _list_certificate_signing_request_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests', + resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1667,15 +7524,10 @@ def _list_certificate_signing_request_serialize( @validate_call(config={'defer_build': True}) - def patch_certificate_signing_request( + def read_cluster_trust_bundle( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -1691,25 +7543,15 @@ def patch_certificate_signing_request( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CertificateSigningRequest: - """patch_certificate_signing_request + ) -> V1ClusterTrustBundle: + """read_cluster_trust_bundle - partially update the specified CertificateSigningRequest + read the specified ClusterTrustBundle - :param name: name of the CertificateSigningRequest (required) + :param name: name of the ClusterTrustBundle (required) :type name: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -1741,14 +7583,9 @@ def patch_certificate_signing_request( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_certificate_signing_request_serialize( + _param = self._read_cluster_trust_bundle_serialize( name=name, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1756,8 +7593,7 @@ def patch_certificate_signing_request( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1ClusterTrustBundle", '401': None, } return self.api_client._call_with_legacy_options( @@ -1771,15 +7607,10 @@ def patch_certificate_signing_request( @validate_call(config={'defer_build': True}) - def patch_certificate_signing_request_with_http_info( + def read_cluster_trust_bundle_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -1795,25 +7626,15 @@ def patch_certificate_signing_request_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1CertificateSigningRequest, int, Any]: - """patch_certificate_signing_request + ) -> Tuple[V1ClusterTrustBundle, int, Any]: + """read_cluster_trust_bundle - partially update the specified CertificateSigningRequest + read the specified ClusterTrustBundle - :param name: name of the CertificateSigningRequest (required) + :param name: name of the ClusterTrustBundle (required) :type name: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -1845,14 +7666,9 @@ def patch_certificate_signing_request_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_certificate_signing_request_serialize( + _param = self._read_cluster_trust_bundle_serialize( name=name, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1860,8 +7676,7 @@ def patch_certificate_signing_request_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1ClusterTrustBundle", '401': None, } return self.api_client._call_with_legacy_options( @@ -1874,15 +7689,10 @@ def patch_certificate_signing_request_with_http_info( ) - def _patch_certificate_signing_request_serialize( + def _read_cluster_trust_bundle_serialize( self, name, - body, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -1911,27 +7721,9 @@ def _patch_certificate_signing_request_serialize( _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -1945,23 +7737,6 @@ def _patch_certificate_signing_request_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -1969,8 +7744,8 @@ def _patch_certificate_signing_request_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}', + method='GET', + resource_path='/apis/certificates.k8s.io/v1/clustertrustbundles/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1987,15 +7762,11 @@ def _patch_certificate_signing_request_serialize( @validate_call(config={'defer_build': True}) - def patch_certificate_signing_request_approval( + def read_namespaced_pod_certificate_request( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -2011,25 +7782,17 @@ def patch_certificate_signing_request_approval( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CertificateSigningRequest: - """patch_certificate_signing_request_approval + ) -> V1PodCertificateRequest: + """read_namespaced_pod_certificate_request - partially update approval of the specified CertificateSigningRequest + read the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -2061,14 +7824,10 @@ def patch_certificate_signing_request_approval( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_certificate_signing_request_approval_serialize( + _param = self._read_namespaced_pod_certificate_request_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2076,8 +7835,7 @@ def patch_certificate_signing_request_approval( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -2091,15 +7849,11 @@ def patch_certificate_signing_request_approval( @validate_call(config={'defer_build': True}) - def patch_certificate_signing_request_approval_with_http_info( + def read_namespaced_pod_certificate_request_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -2115,25 +7869,17 @@ def patch_certificate_signing_request_approval_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1CertificateSigningRequest, int, Any]: - """patch_certificate_signing_request_approval + ) -> Tuple[V1PodCertificateRequest, int, Any]: + """read_namespaced_pod_certificate_request - partially update approval of the specified CertificateSigningRequest + read the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -2165,14 +7911,10 @@ def patch_certificate_signing_request_approval_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_certificate_signing_request_approval_serialize( + _param = self._read_namespaced_pod_certificate_request_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2180,8 +7922,7 @@ def patch_certificate_signing_request_approval_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -2194,15 +7935,11 @@ def patch_certificate_signing_request_approval_with_http_info( ) - def _patch_certificate_signing_request_approval_serialize( + def _read_namespaced_pod_certificate_request_serialize( self, name, - body, + namespace, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -2226,32 +7963,16 @@ def _patch_certificate_signing_request_approval_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -2265,23 +7986,6 @@ def _patch_certificate_signing_request_approval_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2289,8 +7993,8 @@ def _patch_certificate_signing_request_approval_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval', + method='GET', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2307,15 +8011,11 @@ def _patch_certificate_signing_request_approval_serialize( @validate_call(config={'defer_build': True}) - def patch_certificate_signing_request_status( + def read_namespaced_pod_certificate_request_status( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -2331,25 +8031,17 @@ def patch_certificate_signing_request_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CertificateSigningRequest: - """patch_certificate_signing_request_status + ) -> V1PodCertificateRequest: + """read_namespaced_pod_certificate_request_status - partially update status of the specified CertificateSigningRequest + read status of the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -2381,14 +8073,10 @@ def patch_certificate_signing_request_status( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_certificate_signing_request_status_serialize( + _param = self._read_namespaced_pod_certificate_request_status_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2396,8 +8084,7 @@ def patch_certificate_signing_request_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -2411,15 +8098,11 @@ def patch_certificate_signing_request_status( @validate_call(config={'defer_build': True}) - def patch_certificate_signing_request_status_with_http_info( + def read_namespaced_pod_certificate_request_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -2435,25 +8118,17 @@ def patch_certificate_signing_request_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1CertificateSigningRequest, int, Any]: - """patch_certificate_signing_request_status + ) -> Tuple[V1PodCertificateRequest, int, Any]: + """read_namespaced_pod_certificate_request_status - partially update status of the specified CertificateSigningRequest + read status of the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -2485,14 +8160,10 @@ def patch_certificate_signing_request_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_certificate_signing_request_status_serialize( + _param = self._read_namespaced_pod_certificate_request_status_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2500,8 +8171,7 @@ def patch_certificate_signing_request_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -2514,15 +8184,11 @@ def patch_certificate_signing_request_status_with_http_info( ) - def _patch_certificate_signing_request_status_serialize( + def _read_namespaced_pod_certificate_request_status_serialize( self, name, - body, + namespace, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -2546,32 +8212,16 @@ def _patch_certificate_signing_request_status_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -2585,23 +8235,6 @@ def _patch_certificate_signing_request_status_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2609,8 +8242,8 @@ def _patch_certificate_signing_request_status_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status', + method='GET', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2627,10 +8260,14 @@ def _patch_certificate_signing_request_status_serialize( @validate_call(config={'defer_build': True}) - def read_certificate_signing_request( + def replace_certificate_signing_request( self, name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: V1CertificateSigningRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -2647,14 +8284,22 @@ def read_certificate_signing_request( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1CertificateSigningRequest: - """read_certificate_signing_request + """replace_certificate_signing_request - read the specified CertificateSigningRequest + replace the specified CertificateSigningRequest :param name: name of the CertificateSigningRequest (required) :type name: str + :param body: (required) + :type body: V1CertificateSigningRequest :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -2686,9 +8331,13 @@ def read_certificate_signing_request( :return: Returns the result object. """ # noqa: E501 - _param = self._read_certificate_signing_request_serialize( + _param = self._replace_certificate_signing_request_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2697,6 +8346,7 @@ def read_certificate_signing_request( _response_types_map: Dict[str, Optional[str]] = { '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -2710,10 +8360,14 @@ def read_certificate_signing_request( @validate_call(config={'defer_build': True}) - def read_certificate_signing_request_with_http_info( + def replace_certificate_signing_request_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: V1CertificateSigningRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -2730,14 +8384,22 @@ def read_certificate_signing_request_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Tuple[V1CertificateSigningRequest, int, Any]: - """read_certificate_signing_request + """replace_certificate_signing_request - read the specified CertificateSigningRequest + replace the specified CertificateSigningRequest :param name: name of the CertificateSigningRequest (required) :type name: str + :param body: (required) + :type body: V1CertificateSigningRequest :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -2769,9 +8431,13 @@ def read_certificate_signing_request_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._read_certificate_signing_request_serialize( + _param = self._replace_certificate_signing_request_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2780,6 +8446,7 @@ def read_certificate_signing_request_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -2792,10 +8459,14 @@ def read_certificate_signing_request_with_http_info( ) - def _read_certificate_signing_request_serialize( + def _replace_certificate_signing_request_serialize( self, name, + body, pretty, + dry_run, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -2824,9 +8495,23 @@ def _read_certificate_signing_request_serialize( _query_params.append(('pretty', pretty)) + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -2847,7 +8532,7 @@ def _read_certificate_signing_request_serialize( ] return self.api_client.param_serialize( - method='GET', + method='PUT', resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}', path_params=_path_params, query_params=_query_params, @@ -2865,10 +8550,14 @@ def _read_certificate_signing_request_serialize( @validate_call(config={'defer_build': True}) - def read_certificate_signing_request_approval( + def replace_certificate_signing_request_approval( self, name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: V1CertificateSigningRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -2885,14 +8574,22 @@ def read_certificate_signing_request_approval( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1CertificateSigningRequest: - """read_certificate_signing_request_approval + """replace_certificate_signing_request_approval - read approval of the specified CertificateSigningRequest + replace approval of the specified CertificateSigningRequest :param name: name of the CertificateSigningRequest (required) :type name: str + :param body: (required) + :type body: V1CertificateSigningRequest :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -2924,9 +8621,13 @@ def read_certificate_signing_request_approval( :return: Returns the result object. """ # noqa: E501 - _param = self._read_certificate_signing_request_approval_serialize( + _param = self._replace_certificate_signing_request_approval_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2935,6 +8636,7 @@ def read_certificate_signing_request_approval( _response_types_map: Dict[str, Optional[str]] = { '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -2948,10 +8650,14 @@ def read_certificate_signing_request_approval( @validate_call(config={'defer_build': True}) - def read_certificate_signing_request_approval_with_http_info( + def replace_certificate_signing_request_approval_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: V1CertificateSigningRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -2968,14 +8674,22 @@ def read_certificate_signing_request_approval_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Tuple[V1CertificateSigningRequest, int, Any]: - """read_certificate_signing_request_approval + """replace_certificate_signing_request_approval - read approval of the specified CertificateSigningRequest + replace approval of the specified CertificateSigningRequest :param name: name of the CertificateSigningRequest (required) :type name: str + :param body: (required) + :type body: V1CertificateSigningRequest :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -3007,9 +8721,13 @@ def read_certificate_signing_request_approval_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._read_certificate_signing_request_approval_serialize( + _param = self._replace_certificate_signing_request_approval_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3018,6 +8736,7 @@ def read_certificate_signing_request_approval_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -3030,10 +8749,14 @@ def read_certificate_signing_request_approval_with_http_info( ) - def _read_certificate_signing_request_approval_serialize( + def _replace_certificate_signing_request_approval_serialize( self, name, + body, pretty, + dry_run, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -3062,9 +8785,23 @@ def _read_certificate_signing_request_approval_serialize( _query_params.append(('pretty', pretty)) + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -3085,7 +8822,7 @@ def _read_certificate_signing_request_approval_serialize( ] return self.api_client.param_serialize( - method='GET', + method='PUT', resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval', path_params=_path_params, query_params=_query_params, @@ -3103,10 +8840,14 @@ def _read_certificate_signing_request_approval_serialize( @validate_call(config={'defer_build': True}) - def read_certificate_signing_request_status( + def replace_certificate_signing_request_status( self, name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: V1CertificateSigningRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -3123,14 +8864,22 @@ def read_certificate_signing_request_status( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1CertificateSigningRequest: - """read_certificate_signing_request_status + """replace_certificate_signing_request_status - read status of the specified CertificateSigningRequest + replace status of the specified CertificateSigningRequest :param name: name of the CertificateSigningRequest (required) :type name: str + :param body: (required) + :type body: V1CertificateSigningRequest :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -3162,9 +8911,13 @@ def read_certificate_signing_request_status( :return: Returns the result object. """ # noqa: E501 - _param = self._read_certificate_signing_request_status_serialize( + _param = self._replace_certificate_signing_request_status_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3173,6 +8926,7 @@ def read_certificate_signing_request_status( _response_types_map: Dict[str, Optional[str]] = { '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -3186,10 +8940,14 @@ def read_certificate_signing_request_status( @validate_call(config={'defer_build': True}) - def read_certificate_signing_request_status_with_http_info( + def replace_certificate_signing_request_status_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], + body: V1CertificateSigningRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -3206,14 +8964,22 @@ def read_certificate_signing_request_status_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Tuple[V1CertificateSigningRequest, int, Any]: - """read_certificate_signing_request_status + """replace_certificate_signing_request_status - read status of the specified CertificateSigningRequest + replace status of the specified CertificateSigningRequest :param name: name of the CertificateSigningRequest (required) :type name: str + :param body: (required) + :type body: V1CertificateSigningRequest :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -3245,9 +9011,13 @@ def read_certificate_signing_request_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._read_certificate_signing_request_status_serialize( + _param = self._replace_certificate_signing_request_status_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3256,6 +9026,7 @@ def read_certificate_signing_request_status_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "V1CertificateSigningRequest", + '201': "V1CertificateSigningRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -3268,10 +9039,14 @@ def read_certificate_signing_request_status_with_http_info( ) - def _read_certificate_signing_request_status_serialize( + def _replace_certificate_signing_request_status_serialize( self, name, + body, pretty, + dry_run, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -3300,9 +9075,23 @@ def _read_certificate_signing_request_status_serialize( _query_params.append(('pretty', pretty)) + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -3323,7 +9112,7 @@ def _read_certificate_signing_request_status_serialize( ] return self.api_client.param_serialize( - method='GET', + method='PUT', resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status', path_params=_path_params, query_params=_query_params, @@ -3341,10 +9130,10 @@ def _read_certificate_signing_request_status_serialize( @validate_call(config={'defer_build': True}) - def replace_certificate_signing_request( + def replace_cluster_trust_bundle( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: V1CertificateSigningRequest, + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + body: V1ClusterTrustBundle, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -3364,15 +9153,15 @@ def replace_certificate_signing_request( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CertificateSigningRequest: - """replace_certificate_signing_request + ) -> V1ClusterTrustBundle: + """replace_cluster_trust_bundle - replace the specified CertificateSigningRequest + replace the specified ClusterTrustBundle - :param name: name of the CertificateSigningRequest (required) + :param name: name of the ClusterTrustBundle (required) :type name: str :param body: (required) - :type body: V1CertificateSigningRequest + :type body: V1ClusterTrustBundle :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -3412,7 +9201,7 @@ def replace_certificate_signing_request( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_certificate_signing_request_serialize( + _param = self._replace_cluster_trust_bundle_serialize( name=name, body=body, pretty=pretty, @@ -3426,8 +9215,8 @@ def replace_certificate_signing_request( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1ClusterTrustBundle", + '201': "V1ClusterTrustBundle", '401': None, } return self.api_client._call_with_legacy_options( @@ -3441,10 +9230,10 @@ def replace_certificate_signing_request( @validate_call(config={'defer_build': True}) - def replace_certificate_signing_request_with_http_info( + def replace_cluster_trust_bundle_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: V1CertificateSigningRequest, + name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + body: V1ClusterTrustBundle, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -3464,15 +9253,15 @@ def replace_certificate_signing_request_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1CertificateSigningRequest, int, Any]: - """replace_certificate_signing_request + ) -> Tuple[V1ClusterTrustBundle, int, Any]: + """replace_cluster_trust_bundle - replace the specified CertificateSigningRequest + replace the specified ClusterTrustBundle - :param name: name of the CertificateSigningRequest (required) + :param name: name of the ClusterTrustBundle (required) :type name: str :param body: (required) - :type body: V1CertificateSigningRequest + :type body: V1ClusterTrustBundle :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -3512,7 +9301,7 @@ def replace_certificate_signing_request_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_certificate_signing_request_serialize( + _param = self._replace_cluster_trust_bundle_serialize( name=name, body=body, pretty=pretty, @@ -3526,8 +9315,8 @@ def replace_certificate_signing_request_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1ClusterTrustBundle", + '201': "V1ClusterTrustBundle", '401': None, } return self.api_client._call_with_legacy_options( @@ -3540,7 +9329,7 @@ def replace_certificate_signing_request_with_http_info( ) - def _replace_certificate_signing_request_serialize( + def _replace_cluster_trust_bundle_serialize( self, name, body, @@ -3614,7 +9403,7 @@ def _replace_certificate_signing_request_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}', + resource_path='/apis/certificates.k8s.io/v1/clustertrustbundles/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3631,10 +9420,11 @@ def _replace_certificate_signing_request_serialize( @validate_call(config={'defer_build': True}) - def replace_certificate_signing_request_approval( + def replace_namespaced_pod_certificate_request( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: V1CertificateSigningRequest, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1PodCertificateRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -3654,15 +9444,17 @@ def replace_certificate_signing_request_approval( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CertificateSigningRequest: - """replace_certificate_signing_request_approval + ) -> V1PodCertificateRequest: + """replace_namespaced_pod_certificate_request - replace approval of the specified CertificateSigningRequest + replace the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1CertificateSigningRequest + :type body: V1PodCertificateRequest :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -3702,8 +9494,9 @@ def replace_certificate_signing_request_approval( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_certificate_signing_request_approval_serialize( + _param = self._replace_namespaced_pod_certificate_request_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -3716,8 +9509,8 @@ def replace_certificate_signing_request_approval( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -3731,10 +9524,11 @@ def replace_certificate_signing_request_approval( @validate_call(config={'defer_build': True}) - def replace_certificate_signing_request_approval_with_http_info( + def replace_namespaced_pod_certificate_request_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: V1CertificateSigningRequest, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1PodCertificateRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -3754,15 +9548,17 @@ def replace_certificate_signing_request_approval_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1CertificateSigningRequest, int, Any]: - """replace_certificate_signing_request_approval + ) -> Tuple[V1PodCertificateRequest, int, Any]: + """replace_namespaced_pod_certificate_request - replace approval of the specified CertificateSigningRequest + replace the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1CertificateSigningRequest + :type body: V1PodCertificateRequest :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -3802,8 +9598,9 @@ def replace_certificate_signing_request_approval_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_certificate_signing_request_approval_serialize( + _param = self._replace_namespaced_pod_certificate_request_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -3816,8 +9613,8 @@ def replace_certificate_signing_request_approval_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -3830,9 +9627,10 @@ def replace_certificate_signing_request_approval_with_http_info( ) - def _replace_certificate_signing_request_approval_serialize( + def _replace_namespaced_pod_certificate_request_serialize( self, name, + namespace, body, pretty, dry_run, @@ -3861,6 +9659,8 @@ def _replace_certificate_signing_request_approval_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -3904,7 +9704,7 @@ def _replace_certificate_signing_request_approval_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3921,10 +9721,11 @@ def _replace_certificate_signing_request_approval_serialize( @validate_call(config={'defer_build': True}) - def replace_certificate_signing_request_status( + def replace_namespaced_pod_certificate_request_status( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: V1CertificateSigningRequest, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1PodCertificateRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -3944,15 +9745,17 @@ def replace_certificate_signing_request_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CertificateSigningRequest: - """replace_certificate_signing_request_status + ) -> V1PodCertificateRequest: + """replace_namespaced_pod_certificate_request_status - replace status of the specified CertificateSigningRequest + replace status of the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1CertificateSigningRequest + :type body: V1PodCertificateRequest :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -3992,8 +9795,9 @@ def replace_certificate_signing_request_status( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_certificate_signing_request_status_serialize( + _param = self._replace_namespaced_pod_certificate_request_status_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -4006,8 +9810,8 @@ def replace_certificate_signing_request_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -4021,10 +9825,11 @@ def replace_certificate_signing_request_status( @validate_call(config={'defer_build': True}) - def replace_certificate_signing_request_status_with_http_info( + def replace_namespaced_pod_certificate_request_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CertificateSigningRequest")], - body: V1CertificateSigningRequest, + name: Annotated[StrictStr, Field(description="name of the PodCertificateRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1PodCertificateRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -4044,15 +9849,17 @@ def replace_certificate_signing_request_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1CertificateSigningRequest, int, Any]: - """replace_certificate_signing_request_status + ) -> Tuple[V1PodCertificateRequest, int, Any]: + """replace_namespaced_pod_certificate_request_status - replace status of the specified CertificateSigningRequest + replace status of the specified PodCertificateRequest - :param name: name of the CertificateSigningRequest (required) + :param name: name of the PodCertificateRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1CertificateSigningRequest + :type body: V1PodCertificateRequest :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -4092,8 +9899,9 @@ def replace_certificate_signing_request_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_certificate_signing_request_status_serialize( + _param = self._replace_namespaced_pod_certificate_request_status_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -4106,8 +9914,8 @@ def replace_certificate_signing_request_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CertificateSigningRequest", - '201': "V1CertificateSigningRequest", + '200': "V1PodCertificateRequest", + '201': "V1PodCertificateRequest", '401': None, } return self.api_client._call_with_legacy_options( @@ -4120,9 +9928,10 @@ def replace_certificate_signing_request_status_with_http_info( ) - def _replace_certificate_signing_request_status_serialize( + def _replace_namespaced_pod_certificate_request_status_serialize( self, name, + namespace, body, pretty, dry_run, @@ -4151,6 +9960,8 @@ def _replace_certificate_signing_request_status_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -4194,7 +10005,7 @@ def _replace_certificate_signing_request_status_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status', + resource_path='/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/kubernetes/client/api/certificates_v1beta1_api.py b/kubernetes/client/api/certificates_v1beta1_api.py index 6ed1ff3c4c..8ba9dd4613 100644 --- a/kubernetes/client/api/certificates_v1beta1_api.py +++ b/kubernetes/client/api/certificates_v1beta1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/coordination_api.py b/kubernetes/client/api/coordination_api.py index 00c8e0791d..5462931610 100644 --- a/kubernetes/client/api/coordination_api.py +++ b/kubernetes/client/api/coordination_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/coordination_v1_api.py b/kubernetes/client/api/coordination_v1_api.py index cb12bfe77a..a672087375 100644 --- a/kubernetes/client/api/coordination_v1_api.py +++ b/kubernetes/client/api/coordination_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/coordination_v1alpha2_api.py b/kubernetes/client/api/coordination_v1alpha2_api.py index d49a681f72..bdba1e43e9 100644 --- a/kubernetes/client/api/coordination_v1alpha2_api.py +++ b/kubernetes/client/api/coordination_v1alpha2_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/coordination_v1beta1_api.py b/kubernetes/client/api/coordination_v1beta1_api.py index 695d75355e..c49642b9ae 100644 --- a/kubernetes/client/api/coordination_v1beta1_api.py +++ b/kubernetes/client/api/coordination_v1beta1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/core_api.py b/kubernetes/client/api/core_api.py index 635671ff0f..0fa6311eb9 100644 --- a/kubernetes/client/api/core_api.py +++ b/kubernetes/client/api/core_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_versions_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/core_v1_api.py b/kubernetes/client/api/core_v1_api.py index bfa4506f55..5336e3033f 100644 --- a/kubernetes/client/api/core_v1_api.py +++ b/kubernetes/client/api/core_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/discovery_api.py b/kubernetes/client/api/discovery_api.py index 47ba5efacf..6830f1b49b 100644 --- a/kubernetes/client/api/discovery_api.py +++ b/kubernetes/client/api/discovery_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/discovery_v1_api.py b/kubernetes/client/api/discovery_v1_api.py index 1206f056cb..e12a428224 100644 --- a/kubernetes/client/api/discovery_v1_api.py +++ b/kubernetes/client/api/discovery_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/events_api.py b/kubernetes/client/api/events_api.py index 763ce02917..7d84a78524 100644 --- a/kubernetes/client/api/events_api.py +++ b/kubernetes/client/api/events_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/events_v1_api.py b/kubernetes/client/api/events_v1_api.py index aed1887ba6..4449ad9134 100644 --- a/kubernetes/client/api/events_v1_api.py +++ b/kubernetes/client/api/events_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/flowcontrol_apiserver_api.py b/kubernetes/client/api/flowcontrol_apiserver_api.py index 041df3df28..d7de1116ed 100644 --- a/kubernetes/client/api/flowcontrol_apiserver_api.py +++ b/kubernetes/client/api/flowcontrol_apiserver_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/flowcontrol_apiserver_v1_api.py b/kubernetes/client/api/flowcontrol_apiserver_v1_api.py index 687760112d..725250d5e4 100644 --- a/kubernetes/client/api/flowcontrol_apiserver_v1_api.py +++ b/kubernetes/client/api/flowcontrol_apiserver_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/internal_apiserver_api.py b/kubernetes/client/api/internal_apiserver_api.py index 0aa47d1536..5c414eb8fc 100644 --- a/kubernetes/client/api/internal_apiserver_api.py +++ b/kubernetes/client/api/internal_apiserver_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/internal_apiserver_v1alpha1_api.py b/kubernetes/client/api/internal_apiserver_v1alpha1_api.py index 8359e954b2..e66061b2f8 100644 --- a/kubernetes/client/api/internal_apiserver_v1alpha1_api.py +++ b/kubernetes/client/api/internal_apiserver_v1alpha1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/lifecycle_api.py b/kubernetes/client/api/lifecycle_api.py new file mode 100644 index 0000000000..7584c355f4 --- /dev/null +++ b/kubernetes/client/api/lifecycle_api.py @@ -0,0 +1,267 @@ +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from kubernetes.client.models.v1_api_group import V1APIGroup + +from kubernetes.client.api_client import ApiClient, RequestSerialized +from kubernetes.client.api_response import ApiResponse +from kubernetes.client.rest import RESTResponseType + + +class LifecycleApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + # api_client remains publicly assignable. Retain the client acquired at + # construction so reassignment cannot transfer or discard ownership. + if api_client is None: + api_client, owns_api_client = ApiClient._get_default_or_new() + else: + owns_api_client = False + self.api_client = api_client + self._owned_api_client: Optional[ApiClient] = ( + api_client if owns_api_client else None + ) + + + def close(self) -> None: + owned_api_client = self._owned_api_client + self._owned_api_client = None + if owned_api_client is not None: + owned_api_client.close() + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + self.close() + + + @validate_call(config={'defer_build': True}) + def get_api_group( + self, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1APIGroup: + """get_api_group + + get information of a group + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_group_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1APIGroup", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def get_api_group_with_http_info( + self, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1APIGroup, int, Any]: + """get_api_group + + get information of a group + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_group_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1APIGroup", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _get_api_group_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/lifecycle.k8s.io/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) diff --git a/kubernetes/aio/client/api/networking_v1beta1_api.py b/kubernetes/client/api/lifecycle_v1alpha1_api.py similarity index 81% rename from kubernetes/aio/client/api/networking_v1beta1_api.py rename to kubernetes/client/api/lifecycle_v1alpha1_api.py index 3f5d209267..103ec3052e 100644 --- a/kubernetes/aio/client/api/networking_v1beta1_api.py +++ b/kubernetes/client/api/lifecycle_v1alpha1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,20 +18,20 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr from typing import Any, Dict, Optional from typing_extensions import Annotated -from kubernetes.aio.client.models.v1_api_resource_list import V1APIResourceList -from kubernetes.aio.client.models.v1_delete_options import V1DeleteOptions -from kubernetes.aio.client.models.v1_status import V1Status -from kubernetes.aio.client.models.v1beta1_ip_address import V1beta1IPAddress -from kubernetes.aio.client.models.v1beta1_ip_address_list import V1beta1IPAddressList -from kubernetes.aio.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR -from kubernetes.aio.client.models.v1beta1_service_cidr_list import V1beta1ServiceCIDRList +from kubernetes.client.models.v1_api_resource_list import V1APIResourceList +from kubernetes.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.client.models.v1_status import V1Status +from kubernetes.client.models.v1alpha1_eviction import V1alpha1Eviction +from kubernetes.client.models.v1alpha1_eviction_list import V1alpha1EvictionList +from kubernetes.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest +from kubernetes.client.models.v1alpha1_eviction_request_list import V1alpha1EvictionRequestList -from kubernetes.aio.client.api_client import ApiClient, RequestSerialized -from kubernetes.aio.client.api_response import ApiResponse -from kubernetes.aio.client.rest import RESTResponseType +from kubernetes.client.api_client import ApiClient, RequestSerialized +from kubernetes.client.api_response import ApiResponse +from kubernetes.client.rest import RESTResponseType -class NetworkingV1beta1Api: +class LifecycleV1alpha1Api: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech @@ -50,132 +50,53 @@ def __init__(self, api_client=None) -> None: api_client if owns_api_client else None ) - async def close(self) -> None: + + def close(self) -> None: owned_api_client = self._owned_api_client self._owned_api_client = None if owned_api_client is not None: - await owned_api_client.close() + owned_api_client.close() - async def __aenter__(self): + def __enter__(self): return self - async def __aexit__(self, exc_type, exc_value, traceback): - await self.close() - - - @validate_call(config={'defer_build': True}) - async def create_ip_address( - self, - body: V1beta1IPAddress, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1IPAddress: - """create_ip_address - - create an IPAddress - - :param body: (required) - :type body: V1beta1IPAddress - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._create_ip_address_serialize( - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", - '201': "V1beta1IPAddress", - '202': "V1beta1IPAddress", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data + def __exit__(self, exc_type, exc_value, traceback): + self.close() @validate_call(config={'defer_build': True}) - async def create_ip_address_with_http_info( + def create_namespaced_eviction( self, - body: V1beta1IPAddress, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1Eviction, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1IPAddress]: - """create_ip_address + ) -> V1alpha1Eviction: + """create_namespaced_eviction - create an IPAddress + create an Eviction + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1IPAddress + :type body: V1alpha1Eviction :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -184,6 +105,15 @@ async def create_ip_address_with_http_info( :type field_manager: str :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -206,7 +136,8 @@ async def create_ip_address_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._create_ip_address_serialize( + _param = self._create_namespaced_eviction_serialize( + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -219,49 +150,54 @@ async def create_ip_address_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", - '201': "V1beta1IPAddress", - '202': "V1beta1IPAddress", + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '202': "V1alpha1Eviction", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, ) @validate_call(config={'defer_build': True}) - async def create_ip_address_without_preload_content( + def create_namespaced_eviction_with_http_info( self, - body: V1beta1IPAddress, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1Eviction, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """create_ip_address + ) -> Tuple[V1alpha1Eviction, int, Any]: + """create_namespaced_eviction - create an IPAddress + create an Eviction + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1IPAddress + :type body: V1alpha1Eviction :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -270,6 +206,15 @@ async def create_ip_address_without_preload_content( :type field_manager: str :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -292,7 +237,8 @@ async def create_ip_address_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._create_ip_address_serialize( + _param = self._create_namespaced_eviction_serialize( + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -305,21 +251,24 @@ async def create_ip_address_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", - '201': "V1beta1IPAddress", - '202': "V1beta1IPAddress", + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '202': "V1alpha1Eviction", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - return response_data.response - async def _create_ip_address_serialize( + def _create_namespaced_eviction_serialize( self, + namespace, body, pretty, dry_run, @@ -346,6 +295,8 @@ async def _create_ip_address_serialize( _body_params: Optional[bytes] = None # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -387,9 +338,9 @@ async def _create_ip_address_serialize( 'BearerToken' ] - return await self.api_client.param_serialize( + return self.api_client.param_serialize( method='POST', - resource_path='/apis/networking.k8s.io/v1beta1/ipaddresses', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -406,118 +357,38 @@ async def _create_ip_address_serialize( @validate_call(config={'defer_build': True}) - async def create_service_cidr( - self, - body: V1beta1ServiceCIDR, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1ServiceCIDR: - """create_service_cidr - - create a ServiceCIDR - - :param body: (required) - :type body: V1beta1ServiceCIDR - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._create_service_cidr_serialize( - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", - '202': "V1beta1ServiceCIDR", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def create_service_cidr_with_http_info( + def create_namespaced_eviction_request( self, - body: V1beta1ServiceCIDR, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1EvictionRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1ServiceCIDR]: - """create_service_cidr + ) -> V1alpha1EvictionRequest: + """create_namespaced_eviction_request - create a ServiceCIDR + create an EvictionRequest + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1ServiceCIDR + :type body: V1alpha1EvictionRequest :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -526,6 +397,15 @@ async def create_service_cidr_with_http_info( :type field_manager: str :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -548,7 +428,8 @@ async def create_service_cidr_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._create_service_cidr_serialize( + _param = self._create_namespaced_eviction_request_serialize( + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -561,49 +442,54 @@ async def create_service_cidr_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", - '202': "V1beta1ServiceCIDR", + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '202': "V1alpha1EvictionRequest", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, ) @validate_call(config={'defer_build': True}) - async def create_service_cidr_without_preload_content( + def create_namespaced_eviction_request_with_http_info( self, - body: V1beta1ServiceCIDR, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1EvictionRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """create_service_cidr + ) -> Tuple[V1alpha1EvictionRequest, int, Any]: + """create_namespaced_eviction_request - create a ServiceCIDR + create an EvictionRequest + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1ServiceCIDR + :type body: V1alpha1EvictionRequest :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -612,6 +498,15 @@ async def create_service_cidr_without_preload_content( :type field_manager: str :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -634,7 +529,8 @@ async def create_service_cidr_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._create_service_cidr_serialize( + _param = self._create_namespaced_eviction_request_serialize( + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -647,21 +543,24 @@ async def create_service_cidr_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", - '202': "V1beta1ServiceCIDR", + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '202': "V1alpha1EvictionRequest", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - return response_data.response - async def _create_service_cidr_serialize( + def _create_namespaced_eviction_request_serialize( self, + namespace, body, pretty, dry_run, @@ -688,6 +587,8 @@ async def _create_service_cidr_serialize( _body_params: Optional[bytes] = None # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -729,9 +630,9 @@ async def _create_service_cidr_serialize( 'BearerToken' ] - return await self.api_client.param_serialize( + return self.api_client.param_serialize( method='POST', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -748,8 +649,9 @@ async def _create_service_cidr_serialize( @validate_call(config={'defer_build': True}) - async def delete_collection_ip_address( + def delete_collection_namespaced_eviction( self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -766,12 +668,15 @@ async def delete_collection_ip_address( shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, @@ -779,138 +684,12 @@ async def delete_collection_ip_address( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1Status: - """delete_collection_ip_address - - delete collection of IPAddress - - :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). - :type pretty: str - :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. - :type _continue: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._delete_collection_ip_address_serialize( - pretty=pretty, - _continue=_continue, - dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def delete_collection_ip_address_with_http_info( - self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1Status]: - """delete_collection_ip_address + """delete_collection_namespaced_eviction - delete collection of IPAddress + delete collection of Eviction + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :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. @@ -943,6 +722,15 @@ async def delete_collection_ip_address_with_http_info( :type timeout_seconds: int :param body: :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -965,7 +753,8 @@ async def delete_collection_ip_address_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_ip_address_serialize( + _param = self._delete_collection_namespaced_eviction_serialize( + namespace=namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -992,20 +781,20 @@ async def delete_collection_ip_address_with_http_info( '200': "V1Status", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, ) @validate_call(config={'defer_build': True}) - async def delete_collection_ip_address_without_preload_content( + def delete_collection_namespaced_eviction_with_http_info( self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -1022,23 +811,28 @@ async def delete_collection_ip_address_without_preload_content( shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """delete_collection_ip_address + ) -> Tuple[V1Status, int, Any]: + """delete_collection_namespaced_eviction - delete collection of IPAddress + delete collection of Eviction + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :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. @@ -1071,6 +865,15 @@ async def delete_collection_ip_address_without_preload_content( :type timeout_seconds: int :param body: :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1093,7 +896,8 @@ async def delete_collection_ip_address_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_ip_address_serialize( + _param = self._delete_collection_namespaced_eviction_serialize( + namespace=namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -1120,16 +924,19 @@ async def delete_collection_ip_address_without_preload_content( '200': "V1Status", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - return response_data.response - async def _delete_collection_ip_address_serialize( + def _delete_collection_namespaced_eviction_serialize( self, + namespace, pretty, _continue, dry_run, @@ -1167,6 +974,8 @@ async def _delete_collection_ip_address_serialize( _body_params: Optional[bytes] = None # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -1252,9 +1061,9 @@ async def _delete_collection_ip_address_serialize( 'BearerToken' ] - return await self.api_client.param_serialize( + return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/networking.k8s.io/v1beta1/ipaddresses', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1271,8 +1080,9 @@ async def _delete_collection_ip_address_serialize( @validate_call(config={'defer_build': True}) - async def delete_collection_service_cidr( + def delete_collection_namespaced_eviction_request( self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -1289,12 +1099,15 @@ async def delete_collection_service_cidr( shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, @@ -1302,10 +1115,12 @@ async def delete_collection_service_cidr( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1Status: - """delete_collection_service_cidr + """delete_collection_namespaced_eviction_request - delete collection of ServiceCIDR + delete collection of EvictionRequest + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :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. @@ -1338,6 +1153,15 @@ async def delete_collection_service_cidr( :type timeout_seconds: int :param body: :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1360,7 +1184,8 @@ async def delete_collection_service_cidr( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_service_cidr_serialize( + _param = self._delete_collection_namespaced_eviction_request_serialize( + namespace=namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -1387,20 +1212,20 @@ async def delete_collection_service_cidr( '200': "V1Status", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data @validate_call(config={'defer_build': True}) - async def delete_collection_service_cidr_with_http_info( + def delete_collection_namespaced_eviction_request_with_http_info( self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -1417,23 +1242,28 @@ async def delete_collection_service_cidr_with_http_info( shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1Status]: - """delete_collection_service_cidr + ) -> Tuple[V1Status, int, Any]: + """delete_collection_namespaced_eviction_request - delete collection of ServiceCIDR + delete collection of EvictionRequest + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :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. @@ -1466,6 +1296,15 @@ async def delete_collection_service_cidr_with_http_info( :type timeout_seconds: int :param body: :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1488,7 +1327,8 @@ async def delete_collection_service_cidr_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_collection_service_cidr_serialize( + _param = self._delete_collection_namespaced_eviction_request_serialize( + namespace=namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -1515,144 +1355,19 @@ async def delete_collection_service_cidr_with_http_info( '200': "V1Status", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - @validate_call(config={'defer_build': True}) - async def delete_collection_service_cidr_without_preload_content( - self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """delete_collection_service_cidr - - delete collection of ServiceCIDR - - :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). - :type pretty: str - :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. - :type _continue: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._delete_collection_service_cidr_serialize( - pretty=pretty, - _continue=_continue, - dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout - ) - return response_data.response - - - async def _delete_collection_service_cidr_serialize( + def _delete_collection_namespaced_eviction_request_serialize( self, + namespace, pretty, _continue, dry_run, @@ -1690,6 +1405,8 @@ async def _delete_collection_service_cidr_serialize( _body_params: Optional[bytes] = None # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -1775,9 +1492,9 @@ async def _delete_collection_service_cidr_serialize( 'BearerToken' ] - return await self.api_client.param_serialize( + return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1794,9 +1511,10 @@ async def _delete_collection_service_cidr_serialize( @validate_call(config={'defer_build': True}) - async def delete_ip_address( + def delete_namespaced_eviction( self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, @@ -1804,12 +1522,15 @@ async def delete_ip_address( orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, @@ -1817,109 +1538,14 @@ async def delete_ip_address( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """delete_ip_address - - delete an IPAddress - - :param name: name of the IPAddress (required) - :type name: str - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param body: - :type body: V1DeleteOptions - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._delete_ip_address_serialize( - name=name, - pretty=pretty, - dry_run=dry_run, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '202': "object", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def delete_ip_address_with_http_info( - self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - body: Optional[V1DeleteOptions] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """delete_ip_address + """delete_namespaced_eviction - delete an IPAddress + delete an Eviction - :param name: name of the IPAddress (required) + :param name: name of the Eviction (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -1934,6 +1560,15 @@ async def delete_ip_address_with_http_info( :type propagation_policy: str :param body: :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1956,8 +1591,9 @@ async def delete_ip_address_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_ip_address_serialize( + _param = self._delete_namespaced_eviction_serialize( name=name, + namespace=namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, @@ -1976,21 +1612,21 @@ async def delete_ip_address_with_http_info( '202': "object", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, ) @validate_call(config={'defer_build': True}) - async def delete_ip_address_without_preload_content( + def delete_namespaced_eviction_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, @@ -1998,25 +1634,30 @@ async def delete_ip_address_without_preload_content( orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """delete_ip_address + ) -> Tuple[object, int, Any]: + """delete_namespaced_eviction - delete an IPAddress + delete an Eviction - :param name: name of the IPAddress (required) + :param name: name of the Eviction (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -2031,6 +1672,15 @@ async def delete_ip_address_without_preload_content( :type propagation_policy: str :param body: :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2053,8 +1703,9 @@ async def delete_ip_address_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_ip_address_serialize( + _param = self._delete_namespaced_eviction_serialize( name=name, + namespace=namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, @@ -2073,17 +1724,20 @@ async def delete_ip_address_without_preload_content( '202': "object", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - return response_data.response - async def _delete_ip_address_serialize( + def _delete_namespaced_eviction_serialize( self, name, + namespace, pretty, dry_run, grace_period_seconds, @@ -2114,6 +1768,8 @@ async def _delete_ip_address_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -2163,9 +1819,9 @@ async def _delete_ip_address_serialize( 'BearerToken' ] - return await self.api_client.param_serialize( + return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/networking.k8s.io/v1beta1/ipaddresses/{name}', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2182,9 +1838,10 @@ async def _delete_ip_address_serialize( @validate_call(config={'defer_build': True}) - async def delete_service_cidr( + def delete_namespaced_eviction_request( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, @@ -2192,12 +1849,15 @@ async def delete_service_cidr( orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, @@ -2205,12 +1865,14 @@ async def delete_service_cidr( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """delete_service_cidr + """delete_namespaced_eviction_request - delete a ServiceCIDR + delete an EvictionRequest - :param name: name of the ServiceCIDR (required) + :param name: name of the EvictionRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -2225,6 +1887,15 @@ async def delete_service_cidr( :type propagation_policy: str :param body: :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2247,8 +1918,9 @@ async def delete_service_cidr( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_service_cidr_serialize( + _param = self._delete_namespaced_eviction_request_serialize( name=name, + namespace=namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, @@ -2267,21 +1939,21 @@ async def delete_service_cidr( '202': "object", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data @validate_call(config={'defer_build': True}) - async def delete_service_cidr_with_http_info( + def delete_namespaced_eviction_request_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, @@ -2289,25 +1961,30 @@ async def delete_service_cidr_with_http_info( orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """delete_service_cidr + ) -> Tuple[object, int, Any]: + """delete_namespaced_eviction_request - delete a ServiceCIDR + delete an EvictionRequest - :param name: name of the ServiceCIDR (required) + :param name: name of the EvictionRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -2322,6 +1999,15 @@ async def delete_service_cidr_with_http_info( :type propagation_policy: str :param body: :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2344,8 +2030,9 @@ async def delete_service_cidr_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._delete_service_cidr_serialize( + _param = self._delete_namespaced_eviction_request_serialize( name=name, + namespace=namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, @@ -2364,131 +2051,37 @@ async def delete_service_cidr_with_http_info( '202': "object", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - @validate_call(config={'defer_build': True}) - async def delete_service_cidr_without_preload_content( + def _delete_namespaced_eviction_request_serialize( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - body: Optional[V1DeleteOptions] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """delete_service_cidr + name, + namespace, + pretty, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: - delete a ServiceCIDR + _host = None - :param name: name of the ServiceCIDR (required) - :type name: str - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param body: - :type body: V1DeleteOptions - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._delete_service_cidr_serialize( - name=name, - pretty=pretty, - dry_run=dry_run, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '202': "object", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout - ) - return response_data.response - - - async def _delete_service_cidr_serialize( - self, - name, - pretty, - dry_run, - grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential, - orphan_dependents, - propagation_policy, - body, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2502,6 +2095,8 @@ async def _delete_service_cidr_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -2551,9 +2146,9 @@ async def _delete_service_cidr_serialize( 'BearerToken' ] - return await self.api_client.param_serialize( + return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs/{name}', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2570,14 +2165,17 @@ async def _delete_service_cidr_serialize( @validate_call(config={'defer_build': True}) - async def get_api_resources( + def get_api_resources( self, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, @@ -2589,6 +2187,15 @@ async def get_api_resources( get available resources + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2611,71 +2218,7 @@ async def get_api_resources( :return: Returns the result object. """ # noqa: E501 - _param = await self._get_api_resources_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1APIResourceList", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def get_api_resources_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1APIResourceList]: - """get_api_resources - - get available resources - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._get_api_resources_serialize( + _param = self._get_api_resources_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2686,37 +2229,48 @@ async def get_api_resources_with_http_info( '200': "V1APIResourceList", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, ) @validate_call(config={'defer_build': True}) - async def get_api_resources_without_preload_content( + def get_api_resources_with_http_info( self, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: + ) -> Tuple[V1APIResourceList, int, Any]: """get_api_resources get available resources + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2739,7 +2293,7 @@ async def get_api_resources_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._get_api_resources_serialize( + _param = self._get_api_resources_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2750,15 +2304,17 @@ async def get_api_resources_without_preload_content( '200': "V1APIResourceList", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - return response_data.response - async def _get_api_resources_serialize( + def _get_api_resources_serialize( self, _request_auth, _content_type, @@ -2804,9 +2360,9 @@ async def _get_api_resources_serialize( 'BearerToken' ] - return await self.api_client.param_serialize( + return self.api_client.param_serialize( method='GET', - resource_path='/apis/networking.k8s.io/v1beta1/', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2823,39 +2379,40 @@ async def _get_api_resources_serialize( @validate_call(config={'defer_build': True}) - async def list_ip_address( + def list_eviction_for_all_namespaces( self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1IPAddressList: - """list_ip_address + ) -> V1alpha1EvictionList: + """list_eviction_for_all_namespaces - list or watch objects of kind IPAddress + list or watch objects of kind Eviction - :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). - :type pretty: str :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. :type allow_watch_bookmarks: bool :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. @@ -2866,118 +2423,8 @@ async def list_ip_address( :type label_selector: str :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. :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._list_ip_address_serialize( - pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddressList", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def list_ip_address_with_http_info( - self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1IPAddressList]: - """list_ip_address - - list or watch objects of kind IPAddress - :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset :type resource_version: str :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset @@ -2990,6 +2437,15 @@ async def list_ip_address_with_http_info( :type timeout_seconds: int :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3012,13 +2468,13 @@ async def list_ip_address_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_ip_address_serialize( - pretty=pretty, + _param = self._list_eviction_for_all_namespaces_serialize( allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, + pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, @@ -3032,54 +2488,54 @@ async def list_ip_address_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddressList", + '200': "V1alpha1EvictionList", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, ) @validate_call(config={'defer_build': True}) - async def list_ip_address_without_preload_content( + def list_eviction_for_all_namespaces_with_http_info( self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """list_ip_address + ) -> Tuple[V1alpha1EvictionList, int, Any]: + """list_eviction_for_all_namespaces - list or watch objects of kind IPAddress + list or watch objects of kind Eviction - :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). - :type pretty: str :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. :type allow_watch_bookmarks: bool :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. @@ -3090,6 +2546,8 @@ async def list_ip_address_without_preload_content( :type label_selector: str :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. :type limit: int + :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). + :type pretty: str :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset :type resource_version: str :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset @@ -3102,6 +2560,15 @@ async def list_ip_address_without_preload_content( :type timeout_seconds: int :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3124,13 +2591,13 @@ async def list_ip_address_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_ip_address_serialize( - pretty=pretty, + _param = self._list_eviction_for_all_namespaces_serialize( allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, + pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, @@ -3144,25 +2611,27 @@ async def list_ip_address_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddressList", + '200': "V1alpha1EvictionList", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - return response_data.response - async def _list_ip_address_serialize( + def _list_eviction_for_all_namespaces_serialize( self, - pretty, allow_watch_bookmarks, _continue, field_selector, label_selector, limit, + pretty, resource_version, resource_version_match, send_initial_events, @@ -3191,10 +2660,6 @@ async def _list_ip_address_serialize( # process the path parameters # process the query parameters - if pretty is not None: - - _query_params.append(('pretty', pretty)) - if allow_watch_bookmarks is not None: _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) @@ -3215,6 +2680,10 @@ async def _list_ip_address_serialize( _query_params.append(('limit', limit)) + if pretty is not None: + + _query_params.append(('pretty', pretty)) + if resource_version is not None: _query_params.append(('resourceVersion', resource_version)) @@ -3264,9 +2733,9 @@ async def _list_ip_address_serialize( 'BearerToken' ] - return await self.api_client.param_serialize( + return self.api_client.param_serialize( method='GET', - resource_path='/apis/networking.k8s.io/v1beta1/ipaddresses', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/evictions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3283,39 +2752,40 @@ async def _list_ip_address_serialize( @validate_call(config={'defer_build': True}) - async def list_service_cidr( + def list_eviction_request_for_all_namespaces( self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1ServiceCIDRList: - """list_service_cidr + ) -> V1alpha1EvictionRequestList: + """list_eviction_request_for_all_namespaces - list or watch objects of kind ServiceCIDR + list or watch objects of kind EvictionRequest - :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). - :type pretty: str :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. :type allow_watch_bookmarks: bool :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. @@ -3326,6 +2796,8 @@ async def list_service_cidr( :type label_selector: str :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. :type limit: int + :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). + :type pretty: str :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset :type resource_version: str :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset @@ -3338,6 +2810,15 @@ async def list_service_cidr( :type timeout_seconds: int :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3360,13 +2841,13 @@ async def list_service_cidr( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_service_cidr_serialize( - pretty=pretty, + _param = self._list_eviction_request_for_all_namespaces_serialize( allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, + pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, @@ -3380,54 +2861,54 @@ async def list_service_cidr( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDRList", + '200': "V1alpha1EvictionRequestList", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data @validate_call(config={'defer_build': True}) - async def list_service_cidr_with_http_info( + def list_eviction_request_for_all_namespaces_with_http_info( self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1ServiceCIDRList]: - """list_service_cidr + ) -> Tuple[V1alpha1EvictionRequestList, int, Any]: + """list_eviction_request_for_all_namespaces - list or watch objects of kind ServiceCIDR + list or watch objects of kind EvictionRequest - :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). - :type pretty: str :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. :type allow_watch_bookmarks: bool :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. @@ -3438,6 +2919,8 @@ async def list_service_cidr_with_http_info( :type label_selector: str :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. :type limit: int + :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). + :type pretty: str :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset :type resource_version: str :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset @@ -3450,6 +2933,15 @@ async def list_service_cidr_with_http_info( :type timeout_seconds: int :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3472,13 +2964,13 @@ async def list_service_cidr_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_service_cidr_serialize( - pretty=pretty, + _param = self._list_eviction_request_for_all_namespaces_serialize( allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, + pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, @@ -3492,59 +2984,318 @@ async def list_service_cidr_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDRList", + '200': "V1alpha1EvictionRequestList", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - @validate_call(config={'defer_build': True}) - async def list_service_cidr_without_preload_content( + def _list_eviction_request_for_all_namespaces_serialize( self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """list_service_cidr - - list or watch objects of kind ServiceCIDR - - :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). - :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + pretty, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/evictionrequests', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def list_namespaced_eviction( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1EvictionList: + """list_namespaced_eviction + + list or watch objects of kind Eviction + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_namespaced_eviction_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def list_namespaced_eviction_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1alpha1EvictionList, int, Any]: + """list_namespaced_eviction + + list or watch objects of kind Eviction + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :type field_selector: str :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :type label_selector: str @@ -3562,6 +3313,15 @@ async def list_service_cidr_without_preload_content( :type timeout_seconds: int :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3584,7 +3344,8 @@ async def list_service_cidr_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._list_service_cidr_serialize( + _param = self._list_namespaced_eviction_serialize( + namespace=namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, @@ -3604,19 +3365,22 @@ async def list_service_cidr_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDRList", + '200': "V1alpha1EvictionList", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - return response_data.response - async def _list_service_cidr_serialize( + def _list_namespaced_eviction_serialize( self, + namespace, pretty, allow_watch_bookmarks, _continue, @@ -3650,6 +3414,8 @@ async def _list_service_cidr_serialize( _body_params: Optional[bytes] = None # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -3724,9 +3490,9 @@ async def _list_service_cidr_serialize( 'BearerToken' ] - return await self.api_client.param_serialize( + return self.api_client.param_serialize( method='GET', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3743,34 +3509,863 @@ async def _list_service_cidr_serialize( @validate_call(config={'defer_build': True}) - async def patch_ip_address( + def list_namespaced_eviction_request( self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, - _request_timeout: Union[ + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1EvictionRequestList: + """list_namespaced_eviction_request + + list or watch objects of kind EvictionRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_namespaced_eviction_request_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequestList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def list_namespaced_eviction_request_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1alpha1EvictionRequestList, int, Any]: + """list_namespaced_eviction_request + + list or watch objects of kind EvictionRequest + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_namespaced_eviction_request_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequestList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _list_namespaced_eviction_request_serialize( + self, + namespace, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_eviction( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1Eviction: + """patch_namespaced_eviction + + partially update the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_eviction_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_eviction_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1alpha1Eviction, int, Any]: + """patch_namespaced_eviction + + partially update the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_eviction_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_namespaced_eviction_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_eviction_request( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha1EvictionRequest: + """patch_namespaced_eviction_request + + partially update the specified EvictionRequest + + :param name: name of the EvictionRequest (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_eviction_request_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_eviction_request_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1IPAddress: - """patch_ip_address + ) -> Tuple[V1alpha1EvictionRequest, int, Any]: + """patch_namespaced_eviction_request - partially update the specified IPAddress + partially update the specified EvictionRequest - :param name: name of the IPAddress (required) + :param name: name of the EvictionRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) :type body: object :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). @@ -3783,6 +4378,15 @@ async def patch_ip_address( :type field_validation: str :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. :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3805,65 +4409,186 @@ async def patch_ip_address( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_ip_address_serialize( - name=name, - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) + _param = self._patch_namespaced_eviction_request_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_namespaced_eviction_request_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", - '201': "V1beta1IPAddress", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data + + @validate_call(config={'defer_build': True}) - async def patch_ip_address_with_http_info( + def patch_namespaced_eviction_request_status( self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1IPAddress]: - """patch_ip_address + ) -> V1alpha1EvictionRequest: + """patch_namespaced_eviction_request_status - partially update the specified IPAddress + partially update status of the specified EvictionRequest - :param name: name of the IPAddress (required) + :param name: name of the EvictionRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) :type body: object :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). @@ -3876,6 +4601,15 @@ async def patch_ip_address_with_http_info( :type field_validation: str :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. :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3898,8 +4632,9 @@ async def patch_ip_address_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_ip_address_serialize( + _param = self._patch_namespaced_eviction_request_status_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -3913,50 +4648,55 @@ async def patch_ip_address_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", - '201': "V1beta1IPAddress", + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, ) @validate_call(config={'defer_build': True}) - async def patch_ip_address_without_preload_content( + def patch_namespaced_eviction_request_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """patch_ip_address + ) -> Tuple[V1alpha1EvictionRequest, int, Any]: + """patch_namespaced_eviction_request_status - partially update the specified IPAddress + partially update status of the specified EvictionRequest - :param name: name of the IPAddress (required) + :param name: name of the EvictionRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) :type body: object :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). @@ -3969,6 +4709,15 @@ async def patch_ip_address_without_preload_content( :type field_validation: str :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. :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3991,8 +4740,9 @@ async def patch_ip_address_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_ip_address_serialize( + _param = self._patch_namespaced_eviction_request_status_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -4006,21 +4756,24 @@ async def patch_ip_address_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", - '201': "V1beta1IPAddress", + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - return response_data.response - async def _patch_ip_address_serialize( + def _patch_namespaced_eviction_request_status_serialize( self, name, + namespace, body, pretty, dry_run, @@ -4050,6 +4803,8 @@ async def _patch_ip_address_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -4112,9 +4867,9 @@ async def _patch_ip_address_serialize( 'BearerToken' ] - return await self.api_client.param_serialize( + return self.api_client.param_serialize( method='PATCH', - resource_path='/apis/networking.k8s.io/v1beta1/ipaddresses/{name}', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4131,127 +4886,40 @@ async def _patch_ip_address_serialize( @validate_call(config={'defer_build': True}) - async def patch_service_cidr( - self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1ServiceCIDR: - """patch_service_cidr - - partially update the specified ServiceCIDR - - :param name: name of the ServiceCIDR (required) - :type name: str - :param body: (required) - :type body: object - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._patch_service_cidr_serialize( - name=name, - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def patch_service_cidr_with_http_info( + def patch_namespaced_eviction_status( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1ServiceCIDR]: - """patch_service_cidr + ) -> V1alpha1Eviction: + """patch_namespaced_eviction_status - partially update the specified ServiceCIDR + partially update status of the specified Eviction - :param name: name of the ServiceCIDR (required) + :param name: name of the Eviction (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) :type body: object :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). @@ -4264,6 +4932,15 @@ async def patch_service_cidr_with_http_info( :type field_validation: str :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. :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4286,8 +4963,9 @@ async def patch_service_cidr_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_service_cidr_serialize( + _param = self._patch_namespaced_eviction_status_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -4301,50 +4979,55 @@ async def patch_service_cidr_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, ) @validate_call(config={'defer_build': True}) - async def patch_service_cidr_without_preload_content( + def patch_namespaced_eviction_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """patch_service_cidr + ) -> Tuple[V1alpha1Eviction, int, Any]: + """patch_namespaced_eviction_status - partially update the specified ServiceCIDR + partially update status of the specified Eviction - :param name: name of the ServiceCIDR (required) + :param name: name of the Eviction (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) :type body: object :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). @@ -4357,6 +5040,15 @@ async def patch_service_cidr_without_preload_content( :type field_validation: str :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. :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4379,8 +5071,9 @@ async def patch_service_cidr_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_service_cidr_serialize( + _param = self._patch_namespaced_eviction_status_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -4394,21 +5087,24 @@ async def patch_service_cidr_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - return response_data.response - async def _patch_service_cidr_serialize( + def _patch_namespaced_eviction_status_serialize( self, name, + namespace, body, pretty, dry_run, @@ -4438,6 +5134,8 @@ async def _patch_service_cidr_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -4500,9 +5198,9 @@ async def _patch_service_cidr_serialize( 'BearerToken' ] - return await self.api_client.param_serialize( + return self.api_client.param_serialize( method='PATCH', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs/{name}', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4519,46 +5217,46 @@ async def _patch_service_cidr_serialize( @validate_call(config={'defer_build': True}) - async def patch_service_cidr_status( + def read_namespaced_eviction( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1ServiceCIDR: - """patch_service_cidr_status + ) -> V1alpha1Eviction: + """read_namespaced_eviction - partially update status of the specified ServiceCIDR + read the specified Eviction - :param name: name of the ServiceCIDR (required) + :param name: name of the Eviction (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4581,77 +5279,233 @@ async def patch_service_cidr_status( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_service_cidr_status_serialize( + _param = self._read_namespaced_eviction_serialize( name=name, - body=body, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def read_namespaced_eviction_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1alpha1Eviction, int, Any]: + """read_namespaced_eviction + + read the specified Eviction + + :param name: name of the Eviction (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._read_namespaced_eviction_serialize( + name=name, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha1Eviction", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _read_namespaced_eviction_serialize( + self, + name, + namespace, + pretty, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + @validate_call(config={'defer_build': True}) - async def patch_service_cidr_status_with_http_info( + def read_namespaced_eviction_request( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1ServiceCIDR]: - """patch_service_cidr_status + ) -> V1alpha1EvictionRequest: + """read_namespaced_eviction_request - partially update status of the specified ServiceCIDR + read the specified EvictionRequest - :param name: name of the ServiceCIDR (required) + :param name: name of the EvictionRequest (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4674,14 +5528,10 @@ async def patch_service_cidr_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_service_cidr_status_serialize( + _param = self._read_namespaced_eviction_request_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4689,62 +5539,60 @@ async def patch_service_cidr_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", + '200': "V1alpha1EvictionRequest", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, ) @validate_call(config={'defer_build': True}) - async def patch_service_cidr_status_without_preload_content( + def read_namespaced_eviction_request_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """patch_service_cidr_status + ) -> Tuple[V1alpha1EvictionRequest, int, Any]: + """read_namespaced_eviction_request - partially update status of the specified ServiceCIDR + read the specified EvictionRequest - :param name: name of the ServiceCIDR (required) + :param name: name of the EvictionRequest (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4767,14 +5615,10 @@ async def patch_service_cidr_status_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._patch_service_cidr_status_serialize( + _param = self._read_namespaced_eviction_request_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4782,27 +5626,24 @@ async def patch_service_cidr_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", + '200': "V1alpha1EvictionRequest", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - return response_data.response - async def _patch_service_cidr_status_serialize( + def _read_namespaced_eviction_request_serialize( self, name, - body, + namespace, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -4826,32 +5667,16 @@ async def _patch_service_cidr_status_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -4865,32 +5690,15 @@ async def _patch_service_cidr_status_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ 'BearerToken' ] - return await self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status', + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4907,103 +5715,46 @@ async def _patch_service_cidr_status_serialize( @validate_call(config={'defer_build': True}) - async def read_ip_address( - self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1IPAddress: - """read_ip_address - - read the specified IPAddress - - :param name: name of the IPAddress (required) - :type name: str - :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). - :type pretty: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._read_ip_address_serialize( - name=name, - pretty=pretty, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def read_ip_address_with_http_info( + def read_namespaced_eviction_request_status( self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1IPAddress]: - """read_ip_address + ) -> V1alpha1EvictionRequest: + """read_namespaced_eviction_request_status - read the specified IPAddress + read status of the specified EvictionRequest - :param name: name of the IPAddress (required) + :param name: name of the EvictionRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5026,8 +5777,9 @@ async def read_ip_address_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_ip_address_serialize( + _param = self._read_namespaced_eviction_request_status_serialize( name=name, + namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -5036,46 +5788,60 @@ async def read_ip_address_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", + '200': "V1alpha1EvictionRequest", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, ) @validate_call(config={'defer_build': True}) - async def read_ip_address_without_preload_content( + def read_namespaced_eviction_request_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """read_ip_address + ) -> Tuple[V1alpha1EvictionRequest, int, Any]: + """read_namespaced_eviction_request_status - read the specified IPAddress + read status of the specified EvictionRequest - :param name: name of the IPAddress (required) + :param name: name of the EvictionRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5098,8 +5864,9 @@ async def read_ip_address_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_ip_address_serialize( + _param = self._read_namespaced_eviction_request_status_serialize( name=name, + namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -5108,20 +5875,23 @@ async def read_ip_address_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", + '200': "V1alpha1EvictionRequest", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - return response_data.response - async def _read_ip_address_serialize( + def _read_namespaced_eviction_request_status_serialize( self, name, + namespace, pretty, _request_auth, _content_type, @@ -5146,6 +5916,8 @@ async def _read_ip_address_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -5173,9 +5945,9 @@ async def _read_ip_address_serialize( 'BearerToken' ] - return await self.api_client.param_serialize( + return self.api_client.param_serialize( method='GET', - resource_path='/apis/networking.k8s.io/v1beta1/ipaddresses/{name}', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5192,103 +5964,46 @@ async def _read_ip_address_serialize( @validate_call(config={'defer_build': True}) - async def read_service_cidr( - self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1ServiceCIDR: - """read_service_cidr - - read the specified ServiceCIDR - - :param name: name of the ServiceCIDR (required) - :type name: str - :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). - :type pretty: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._read_service_cidr_serialize( - name=name, - pretty=pretty, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def read_service_cidr_with_http_info( + def read_namespaced_eviction_status( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1ServiceCIDR]: - """read_service_cidr + ) -> V1alpha1Eviction: + """read_namespaced_eviction_status - read the specified ServiceCIDR + read status of the specified Eviction - :param name: name of the ServiceCIDR (required) + :param name: name of the Eviction (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5311,8 +6026,9 @@ async def read_service_cidr_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_service_cidr_serialize( + _param = self._read_namespaced_eviction_status_serialize( name=name, + namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -5321,46 +6037,60 @@ async def read_service_cidr_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", + '200': "V1alpha1Eviction", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, ) @validate_call(config={'defer_build': True}) - async def read_service_cidr_without_preload_content( + def read_namespaced_eviction_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """read_service_cidr + ) -> Tuple[V1alpha1Eviction, int, Any]: + """read_namespaced_eviction_status - read the specified ServiceCIDR + read status of the specified Eviction - :param name: name of the ServiceCIDR (required) + :param name: name of the Eviction (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5383,8 +6113,9 @@ async def read_service_cidr_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_service_cidr_serialize( + _param = self._read_namespaced_eviction_status_serialize( name=name, + namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -5393,20 +6124,23 @@ async def read_service_cidr_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", + '200': "V1alpha1Eviction", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - return response_data.response - async def _read_service_cidr_serialize( + def _read_namespaced_eviction_status_serialize( self, name, + namespace, pretty, _request_auth, _content_type, @@ -5431,6 +6165,8 @@ async def _read_service_cidr_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -5458,9 +6194,9 @@ async def _read_service_cidr_serialize( 'BearerToken' ] - return await self.api_client.param_serialize( + return self.api_client.param_serialize( method='GET', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs/{name}', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5470,110 +6206,65 @@ async def _read_service_cidr_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call(config={'defer_build': True}) - async def read_service_cidr_status( - self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1ServiceCIDR: - """read_service_cidr_status - - read status of the specified ServiceCIDR - - :param name: name of the ServiceCIDR (required) - :type name: str - :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). - :type pretty: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._read_service_cidr_status_serialize( - name=name, - pretty=pretty, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + _request_auth=_request_auth ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data + + @validate_call(config={'defer_build': True}) - async def read_service_cidr_status_with_http_info( + def replace_namespaced_eviction( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1Eviction, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1ServiceCIDR]: - """read_service_cidr_status + ) -> V1alpha1Eviction: + """replace_namespaced_eviction - read status of the specified ServiceCIDR + replace the specified Eviction - :param name: name of the ServiceCIDR (required) + :param name: name of the Eviction (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1Eviction :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5596,9 +6287,14 @@ async def read_service_cidr_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_service_cidr_status_serialize( + _param = self._replace_namespaced_eviction_serialize( name=name, + namespace=namespace, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5606,46 +6302,73 @@ async def read_service_cidr_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, ) @validate_call(config={'defer_build': True}) - async def read_service_cidr_status_without_preload_content( + def replace_namespaced_eviction_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1Eviction, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """read_service_cidr_status + ) -> Tuple[V1alpha1Eviction, int, Any]: + """replace_namespaced_eviction - read status of the specified ServiceCIDR + replace the specified Eviction - :param name: name of the ServiceCIDR (required) + :param name: name of the Eviction (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha1Eviction :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5668,9 +6391,14 @@ async def read_service_cidr_status_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._read_service_cidr_status_serialize( + _param = self._replace_namespaced_eviction_serialize( name=name, + namespace=namespace, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5678,21 +6406,29 @@ async def read_service_cidr_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - return response_data.response - async def _read_service_cidr_status_serialize( + def _replace_namespaced_eviction_serialize( self, name, + namespace, + body, pretty, + dry_run, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -5716,14 +6452,30 @@ async def _read_service_cidr_status_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -5743,9 +6495,9 @@ async def _read_service_cidr_status_serialize( 'BearerToken' ] - return await self.api_client.param_serialize( - method='GET', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status', + return self.api_client.param_serialize( + method='PUT', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5762,124 +6514,41 @@ async def _read_service_cidr_status_serialize( @validate_call(config={'defer_build': True}) - async def replace_ip_address( - self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], - body: V1beta1IPAddress, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1IPAddress: - """replace_ip_address - - replace the specified IPAddress - - :param name: name of the IPAddress (required) - :type name: str - :param body: (required) - :type body: V1beta1IPAddress - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._replace_ip_address_serialize( - name=name, - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", - '201': "V1beta1IPAddress", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def replace_ip_address_with_http_info( + def replace_namespaced_eviction_request( self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], - body: V1beta1IPAddress, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1EvictionRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1IPAddress]: - """replace_ip_address + ) -> V1alpha1EvictionRequest: + """replace_namespaced_eviction_request - replace the specified IPAddress + replace the specified EvictionRequest - :param name: name of the IPAddress (required) + :param name: name of the EvictionRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1IPAddress + :type body: V1alpha1EvictionRequest :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -5888,6 +6557,15 @@ async def replace_ip_address_with_http_info( :type field_manager: str :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5910,8 +6588,9 @@ async def replace_ip_address_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_ip_address_serialize( + _param = self._replace_namespaced_eviction_request_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -5924,51 +6603,56 @@ async def replace_ip_address_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", - '201': "V1beta1IPAddress", + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, ) @validate_call(config={'defer_build': True}) - async def replace_ip_address_without_preload_content( + def replace_namespaced_eviction_request_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], - body: V1beta1IPAddress, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1EvictionRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """replace_ip_address + ) -> Tuple[V1alpha1EvictionRequest, int, Any]: + """replace_namespaced_eviction_request - replace the specified IPAddress + replace the specified EvictionRequest - :param name: name of the IPAddress (required) + :param name: name of the EvictionRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1IPAddress + :type body: V1alpha1EvictionRequest :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -5977,6 +6661,15 @@ async def replace_ip_address_without_preload_content( :type field_manager: str :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5999,8 +6692,9 @@ async def replace_ip_address_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_ip_address_serialize( + _param = self._replace_namespaced_eviction_request_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -6013,21 +6707,24 @@ async def replace_ip_address_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", - '201': "V1beta1IPAddress", + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - return response_data.response - async def _replace_ip_address_serialize( + def _replace_namespaced_eviction_request_serialize( self, name, + namespace, body, pretty, dry_run, @@ -6056,6 +6753,8 @@ async def _replace_ip_address_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -6097,9 +6796,9 @@ async def _replace_ip_address_serialize( 'BearerToken' ] - return await self.api_client.param_serialize( + return self.api_client.param_serialize( method='PUT', - resource_path='/apis/networking.k8s.io/v1beta1/ipaddresses/{name}', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6116,124 +6815,41 @@ async def _replace_ip_address_serialize( @validate_call(config={'defer_build': True}) - async def replace_service_cidr( - self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - body: V1beta1ServiceCIDR, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1ServiceCIDR: - """replace_service_cidr - - replace the specified ServiceCIDR - - :param name: name of the ServiceCIDR (required) - :type name: str - :param body: (required) - :type body: V1beta1ServiceCIDR - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._replace_service_cidr_serialize( - name=name, - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def replace_service_cidr_with_http_info( + def replace_namespaced_eviction_request_status( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - body: V1beta1ServiceCIDR, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1EvictionRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1ServiceCIDR]: - """replace_service_cidr + ) -> V1alpha1EvictionRequest: + """replace_namespaced_eviction_request_status - replace the specified ServiceCIDR + replace status of the specified EvictionRequest - :param name: name of the ServiceCIDR (required) + :param name: name of the EvictionRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1ServiceCIDR + :type body: V1alpha1EvictionRequest :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -6242,6 +6858,15 @@ async def replace_service_cidr_with_http_info( :type field_manager: str :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6264,8 +6889,9 @@ async def replace_service_cidr_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_service_cidr_serialize( + _param = self._replace_namespaced_eviction_request_status_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -6278,51 +6904,56 @@ async def replace_service_cidr_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, ) @validate_call(config={'defer_build': True}) - async def replace_service_cidr_without_preload_content( + def replace_namespaced_eviction_request_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - body: V1beta1ServiceCIDR, + name: Annotated[StrictStr, Field(description="name of the EvictionRequest")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1EvictionRequest, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """replace_service_cidr + ) -> Tuple[V1alpha1EvictionRequest, int, Any]: + """replace_namespaced_eviction_request_status - replace the specified ServiceCIDR + replace status of the specified EvictionRequest - :param name: name of the ServiceCIDR (required) + :param name: name of the EvictionRequest (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1ServiceCIDR + :type body: V1alpha1EvictionRequest :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -6331,6 +6962,15 @@ async def replace_service_cidr_without_preload_content( :type field_manager: str :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6353,8 +6993,9 @@ async def replace_service_cidr_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_service_cidr_serialize( + _param = self._replace_namespaced_eviction_request_status_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -6367,21 +7008,24 @@ async def replace_service_cidr_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", + '200': "V1alpha1EvictionRequest", + '201': "V1alpha1EvictionRequest", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - return response_data.response - async def _replace_service_cidr_serialize( + def _replace_namespaced_eviction_request_status_serialize( self, name, + namespace, body, pretty, dry_run, @@ -6410,6 +7054,8 @@ async def _replace_service_cidr_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -6451,9 +7097,9 @@ async def _replace_service_cidr_serialize( 'BearerToken' ] - return await self.api_client.param_serialize( + return self.api_client.param_serialize( method='PUT', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs/{name}', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6470,124 +7116,41 @@ async def _replace_service_cidr_serialize( @validate_call(config={'defer_build': True}) - async def replace_service_cidr_status( - self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - body: V1beta1ServiceCIDR, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1ServiceCIDR: - """replace_service_cidr_status - - replace status of the specified ServiceCIDR - - :param name: name of the ServiceCIDR (required) - :type name: str - :param body: (required) - :type body: V1beta1ServiceCIDR - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = await self._replace_service_cidr_status_serialize( - name=name, - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", - '401': None, - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call(config={'defer_build': True}) - async def replace_service_cidr_status_with_http_info( + def replace_namespaced_eviction_status( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - body: V1beta1ServiceCIDR, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1Eviction, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1beta1ServiceCIDR]: - """replace_service_cidr_status + ) -> V1alpha1Eviction: + """replace_namespaced_eviction_status - replace status of the specified ServiceCIDR + replace status of the specified Eviction - :param name: name of the ServiceCIDR (required) + :param name: name of the Eviction (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1ServiceCIDR + :type body: V1alpha1Eviction :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -6596,6 +7159,15 @@ async def replace_service_cidr_status_with_http_info( :type field_manager: str :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6618,8 +7190,9 @@ async def replace_service_cidr_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_service_cidr_status_serialize( + _param = self._replace_namespaced_eviction_status_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -6632,51 +7205,56 @@ async def replace_service_cidr_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, ) @validate_call(config={'defer_build': True}) - async def replace_service_cidr_status_without_preload_content( + def replace_namespaced_eviction_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - body: V1beta1ServiceCIDR, + name: Annotated[StrictStr, Field(description="name of the Eviction")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha1Eviction, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, _request_timeout: Union[ None, - Annotated[StrictFloat, Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """replace_service_cidr_status + ) -> Tuple[V1alpha1Eviction, int, Any]: + """replace_namespaced_eviction_status - replace status of the specified ServiceCIDR + replace status of the specified Eviction - :param name: name of the ServiceCIDR (required) + :param name: name of the Eviction (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1ServiceCIDR + :type body: V1alpha1Eviction :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -6685,6 +7263,15 @@ async def replace_service_cidr_status_without_preload_content( :type field_manager: str :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6707,8 +7294,9 @@ async def replace_service_cidr_status_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = await self._replace_service_cidr_status_serialize( + _param = self._replace_namespaced_eviction_status_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -6721,21 +7309,24 @@ async def replace_service_cidr_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", + '200': "V1alpha1Eviction", + '201': "V1alpha1Eviction", '401': None, } - response_data = await self.api_client.call_api( - *_param, - _preload_content=False, - _request_timeout=_request_timeout + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, ) - return response_data.response - async def _replace_service_cidr_status_serialize( + def _replace_namespaced_eviction_status_serialize( self, name, + namespace, body, pretty, dry_run, @@ -6764,6 +7355,8 @@ async def _replace_service_cidr_status_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -6805,9 +7398,9 @@ async def _replace_service_cidr_status_serialize( 'BearerToken' ] - return await self.api_client.param_serialize( + return self.api_client.param_serialize( method='PUT', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status', + resource_path='/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/kubernetes/client/api/logs_api.py b/kubernetes/client/api/logs_api.py index 8d9f54a442..b8c30402d8 100644 --- a/kubernetes/client/api/logs_api.py +++ b/kubernetes/client/api/logs_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/networking_api.py b/kubernetes/client/api/networking_api.py index 84897cd4e6..f06a8aab1b 100644 --- a/kubernetes/client/api/networking_api.py +++ b/kubernetes/client/api/networking_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/networking_v1_api.py b/kubernetes/client/api/networking_v1_api.py index 3cbe0cadb4..e275f1afb0 100644 --- a/kubernetes/client/api/networking_v1_api.py +++ b/kubernetes/client/api/networking_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/node_api.py b/kubernetes/client/api/node_api.py index 67459452b6..c3ae784b6b 100644 --- a/kubernetes/client/api/node_api.py +++ b/kubernetes/client/api/node_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/node_v1_api.py b/kubernetes/client/api/node_v1_api.py index 6e8ef36975..453fc4806a 100644 --- a/kubernetes/client/api/node_v1_api.py +++ b/kubernetes/client/api/node_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/openid_api.py b/kubernetes/client/api/openid_api.py index 76bc10ed31..7db6459ac2 100644 --- a/kubernetes/client/api/openid_api.py +++ b/kubernetes/client/api/openid_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/policy_api.py b/kubernetes/client/api/policy_api.py index 14392bc7c8..7e990de781 100644 --- a/kubernetes/client/api/policy_api.py +++ b/kubernetes/client/api/policy_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/policy_v1_api.py b/kubernetes/client/api/policy_v1_api.py index 58b9ba91bb..5bc8ed75d9 100644 --- a/kubernetes/client/api/policy_v1_api.py +++ b/kubernetes/client/api/policy_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/rbac_authorization_api.py b/kubernetes/client/api/rbac_authorization_api.py index 9aac14790e..f99ae16867 100644 --- a/kubernetes/client/api/rbac_authorization_api.py +++ b/kubernetes/client/api/rbac_authorization_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/rbac_authorization_v1_api.py b/kubernetes/client/api/rbac_authorization_v1_api.py index 3b9c9e6bb3..2591df034d 100644 --- a/kubernetes/client/api/rbac_authorization_v1_api.py +++ b/kubernetes/client/api/rbac_authorization_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/resource_api.py b/kubernetes/client/api/resource_api.py index add235a427..48aced89de 100644 --- a/kubernetes/client/api/resource_api.py +++ b/kubernetes/client/api/resource_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/resource_v1_api.py b/kubernetes/client/api/resource_v1_api.py index 37852dc5fd..65b4594393 100644 --- a/kubernetes/client/api/resource_v1_api.py +++ b/kubernetes/client/api/resource_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -23,6 +23,8 @@ from kubernetes.client.models.v1_delete_options import V1DeleteOptions from kubernetes.client.models.v1_device_class import V1DeviceClass from kubernetes.client.models.v1_device_class_list import V1DeviceClassList +from kubernetes.client.models.v1_device_taint_rule import V1DeviceTaintRule +from kubernetes.client.models.v1_device_taint_rule_list import V1DeviceTaintRuleList from kubernetes.client.models.v1_resource_claim_list import V1ResourceClaimList from kubernetes.client.models.v1_resource_claim_template import V1ResourceClaimTemplate from kubernetes.client.models.v1_resource_claim_template_list import V1ResourceClaimTemplateList @@ -350,10 +352,9 @@ def _create_device_class_serialize( @validate_call(config={'defer_build': True}) - def create_namespaced_resource_claim( + def create_device_taint_rule( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: ResourceV1ResourceClaim, + body: V1DeviceTaintRule, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -373,15 +374,13 @@ def create_namespaced_resource_claim( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ResourceV1ResourceClaim: - """create_namespaced_resource_claim + ) -> V1DeviceTaintRule: + """create_device_taint_rule - create a ResourceClaim + create a DeviceTaintRule - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :param body: (required) - :type body: ResourceV1ResourceClaim + :type body: V1DeviceTaintRule :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -421,8 +420,7 @@ def create_namespaced_resource_claim( :return: Returns the result object. """ # noqa: E501 - _param = self._create_namespaced_resource_claim_serialize( - namespace=namespace, + _param = self._create_device_taint_rule_serialize( body=body, pretty=pretty, dry_run=dry_run, @@ -435,9 +433,9 @@ def create_namespaced_resource_claim( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '201': "ResourceV1ResourceClaim", - '202': "ResourceV1ResourceClaim", + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", + '202': "V1DeviceTaintRule", '401': None, } return self.api_client._call_with_legacy_options( @@ -451,10 +449,9 @@ def create_namespaced_resource_claim( @validate_call(config={'defer_build': True}) - def create_namespaced_resource_claim_with_http_info( + def create_device_taint_rule_with_http_info( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: ResourceV1ResourceClaim, + body: V1DeviceTaintRule, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -474,15 +471,13 @@ def create_namespaced_resource_claim_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[ResourceV1ResourceClaim, int, Any]: - """create_namespaced_resource_claim + ) -> Tuple[V1DeviceTaintRule, int, Any]: + """create_device_taint_rule - create a ResourceClaim + create a DeviceTaintRule - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :param body: (required) - :type body: ResourceV1ResourceClaim + :type body: V1DeviceTaintRule :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -522,8 +517,7 @@ def create_namespaced_resource_claim_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_namespaced_resource_claim_serialize( - namespace=namespace, + _param = self._create_device_taint_rule_serialize( body=body, pretty=pretty, dry_run=dry_run, @@ -536,9 +530,9 @@ def create_namespaced_resource_claim_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '201': "ResourceV1ResourceClaim", - '202': "ResourceV1ResourceClaim", + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", + '202': "V1DeviceTaintRule", '401': None, } return self.api_client._call_with_legacy_options( @@ -551,9 +545,8 @@ def create_namespaced_resource_claim_with_http_info( ) - def _create_namespaced_resource_claim_serialize( + def _create_device_taint_rule_serialize( self, - namespace, body, pretty, dry_run, @@ -580,8 +573,6 @@ def _create_namespaced_resource_claim_serialize( _body_params: Optional[bytes] = None # process the path parameters - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -625,7 +616,7 @@ def _create_namespaced_resource_claim_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -642,10 +633,10 @@ def _create_namespaced_resource_claim_serialize( @validate_call(config={'defer_build': True}) - def create_namespaced_resource_claim_template( + def create_namespaced_resource_claim( self, namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1ResourceClaimTemplate, + body: ResourceV1ResourceClaim, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -665,15 +656,15 @@ def create_namespaced_resource_claim_template( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceClaimTemplate: - """create_namespaced_resource_claim_template + ) -> ResourceV1ResourceClaim: + """create_namespaced_resource_claim - create a ResourceClaimTemplate + create a ResourceClaim :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1ResourceClaimTemplate + :type body: ResourceV1ResourceClaim :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -713,7 +704,7 @@ def create_namespaced_resource_claim_template( :return: Returns the result object. """ # noqa: E501 - _param = self._create_namespaced_resource_claim_template_serialize( + _param = self._create_namespaced_resource_claim_serialize( namespace=namespace, body=body, pretty=pretty, @@ -727,9 +718,9 @@ def create_namespaced_resource_claim_template( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", - '201': "V1ResourceClaimTemplate", - '202': "V1ResourceClaimTemplate", + '200': "ResourceV1ResourceClaim", + '201': "ResourceV1ResourceClaim", + '202': "ResourceV1ResourceClaim", '401': None, } return self.api_client._call_with_legacy_options( @@ -743,10 +734,10 @@ def create_namespaced_resource_claim_template( @validate_call(config={'defer_build': True}) - def create_namespaced_resource_claim_template_with_http_info( + def create_namespaced_resource_claim_with_http_info( self, namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1ResourceClaimTemplate, + body: ResourceV1ResourceClaim, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -766,15 +757,15 @@ def create_namespaced_resource_claim_template_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1ResourceClaimTemplate, int, Any]: - """create_namespaced_resource_claim_template + ) -> Tuple[ResourceV1ResourceClaim, int, Any]: + """create_namespaced_resource_claim - create a ResourceClaimTemplate + create a ResourceClaim :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1ResourceClaimTemplate + :type body: ResourceV1ResourceClaim :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -814,7 +805,7 @@ def create_namespaced_resource_claim_template_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_namespaced_resource_claim_template_serialize( + _param = self._create_namespaced_resource_claim_serialize( namespace=namespace, body=body, pretty=pretty, @@ -828,9 +819,9 @@ def create_namespaced_resource_claim_template_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", - '201': "V1ResourceClaimTemplate", - '202': "V1ResourceClaimTemplate", + '200': "ResourceV1ResourceClaim", + '201': "ResourceV1ResourceClaim", + '202': "ResourceV1ResourceClaim", '401': None, } return self.api_client._call_with_legacy_options( @@ -843,7 +834,7 @@ def create_namespaced_resource_claim_template_with_http_info( ) - def _create_namespaced_resource_claim_template_serialize( + def _create_namespaced_resource_claim_serialize( self, namespace, body, @@ -917,7 +908,7 @@ def _create_namespaced_resource_claim_template_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -934,9 +925,10 @@ def _create_namespaced_resource_claim_template_serialize( @validate_call(config={'defer_build': True}) - def create_resource_slice( + def create_namespaced_resource_claim_template( self, - body: V1ResourceSlice, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1ResourceClaimTemplate, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -956,13 +948,15 @@ def create_resource_slice( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceSlice: - """create_resource_slice + ) -> V1ResourceClaimTemplate: + """create_namespaced_resource_claim_template - create a ResourceSlice + create a ResourceClaimTemplate + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1ResourceSlice + :type body: V1ResourceClaimTemplate :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -1002,7 +996,8 @@ def create_resource_slice( :return: Returns the result object. """ # noqa: E501 - _param = self._create_resource_slice_serialize( + _param = self._create_namespaced_resource_claim_template_serialize( + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -1015,9 +1010,9 @@ def create_resource_slice( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", - '201': "V1ResourceSlice", - '202': "V1ResourceSlice", + '200': "V1ResourceClaimTemplate", + '201': "V1ResourceClaimTemplate", + '202': "V1ResourceClaimTemplate", '401': None, } return self.api_client._call_with_legacy_options( @@ -1031,9 +1026,10 @@ def create_resource_slice( @validate_call(config={'defer_build': True}) - def create_resource_slice_with_http_info( + def create_namespaced_resource_claim_template_with_http_info( self, - body: V1ResourceSlice, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1ResourceClaimTemplate, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -1053,13 +1049,15 @@ def create_resource_slice_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1ResourceSlice, int, Any]: - """create_resource_slice + ) -> Tuple[V1ResourceClaimTemplate, int, Any]: + """create_namespaced_resource_claim_template - create a ResourceSlice + create a ResourceClaimTemplate + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1ResourceSlice + :type body: V1ResourceClaimTemplate :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -1099,7 +1097,8 @@ def create_resource_slice_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_resource_slice_serialize( + _param = self._create_namespaced_resource_claim_template_serialize( + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -1112,9 +1111,9 @@ def create_resource_slice_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", - '201': "V1ResourceSlice", - '202': "V1ResourceSlice", + '200': "V1ResourceClaimTemplate", + '201': "V1ResourceClaimTemplate", + '202': "V1ResourceClaimTemplate", '401': None, } return self.api_client._call_with_legacy_options( @@ -1127,8 +1126,9 @@ def create_resource_slice_with_http_info( ) - def _create_resource_slice_serialize( + def _create_namespaced_resource_claim_template_serialize( self, + namespace, body, pretty, dry_run, @@ -1155,6 +1155,8 @@ def _create_resource_slice_serialize( _body_params: Optional[bytes] = None # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -1198,7 +1200,7 @@ def _create_resource_slice_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/apis/resource.k8s.io/v1/resourceslices', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1215,24 +1217,13 @@ def _create_resource_slice_serialize( @validate_call(config={'defer_build': True}) - def delete_collection_device_class( + def create_resource_slice( self, + body: V1ResourceSlice, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -1248,43 +1239,21 @@ def delete_collection_device_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1Status: - """delete_collection_device_class + ) -> V1ResourceSlice: + """create_resource_slice - delete collection of DeviceClass + create a ResourceSlice + :param body: (required) + :type body: V1ResourceSlice :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). :type pretty: str - :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. - :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -1316,23 +1285,12 @@ def delete_collection_device_class( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_collection_device_class_serialize( + _param = self._create_resource_slice_serialize( + body=body, pretty=pretty, - _continue=_continue, dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1340,7 +1298,9 @@ def delete_collection_device_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", + '200': "V1ResourceSlice", + '201': "V1ResourceSlice", + '202': "V1ResourceSlice", '401': None, } return self.api_client._call_with_legacy_options( @@ -1354,24 +1314,13 @@ def delete_collection_device_class( @validate_call(config={'defer_build': True}) - def delete_collection_device_class_with_http_info( + def create_resource_slice_with_http_info( self, + body: V1ResourceSlice, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -1387,43 +1336,21 @@ def delete_collection_device_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1Status, int, Any]: - """delete_collection_device_class + ) -> Tuple[V1ResourceSlice, int, Any]: + """create_resource_slice - delete collection of DeviceClass + create a ResourceSlice + :param body: (required) + :type body: V1ResourceSlice :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). :type pretty: str - :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. - :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -1455,23 +1382,12 @@ def delete_collection_device_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_collection_device_class_serialize( + _param = self._create_resource_slice_serialize( + body=body, pretty=pretty, - _continue=_continue, dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1479,7 +1395,9 @@ def delete_collection_device_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", + '200': "V1ResourceSlice", + '201': "V1ResourceSlice", + '202': "V1ResourceSlice", '401': None, } return self.api_client._call_with_legacy_options( @@ -1492,24 +1410,13 @@ def delete_collection_device_class_with_http_info( ) - def _delete_collection_device_class_serialize( + def _create_resource_slice_serialize( self, + body, pretty, - _continue, dry_run, - field_selector, - grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential, - label_selector, - limit, - orphan_dependents, - propagation_policy, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - body, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -1536,61 +1443,17 @@ def _delete_collection_device_class_serialize( _query_params.append(('pretty', pretty)) - if _continue is not None: - - _query_params.append(('continue', _continue)) - if dry_run is not None: _query_params.append(('dryRun', dry_run)) - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if grace_period_seconds is not None: - - _query_params.append(('gracePeriodSeconds', grace_period_seconds)) - - if ignore_store_read_error_with_cluster_breaking_potential is not None: - - _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if orphan_dependents is not None: - - _query_params.append(('orphanDependents', orphan_dependents)) - - if propagation_policy is not None: - - _query_params.append(('propagationPolicy', propagation_policy)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: + if field_manager is not None: - _query_params.append(('shardSelector', shard_selector)) + _query_params.append(('fieldManager', field_manager)) - if timeout_seconds is not None: + if field_validation is not None: - _query_params.append(('timeoutSeconds', timeout_seconds)) + _query_params.append(('fieldValidation', field_validation)) # process the header parameters # process the form parameters @@ -1617,8 +1480,8 @@ def _delete_collection_device_class_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/apis/resource.k8s.io/v1/deviceclasses', + method='POST', + resource_path='/apis/resource.k8s.io/v1/resourceslices', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1635,9 +1498,8 @@ def _delete_collection_device_class_serialize( @validate_call(config={'defer_build': True}) - def delete_collection_namespaced_resource_claim( + def delete_collection_device_class( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -1670,12 +1532,10 @@ def delete_collection_namespaced_resource_claim( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1Status: - """delete_collection_namespaced_resource_claim + """delete_collection_device_class - delete collection of ResourceClaim + delete collection of DeviceClass - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :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. @@ -1739,8 +1599,7 @@ def delete_collection_namespaced_resource_claim( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_collection_namespaced_resource_claim_serialize( - namespace=namespace, + _param = self._delete_collection_device_class_serialize( pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -1778,9 +1637,8 @@ def delete_collection_namespaced_resource_claim( @validate_call(config={'defer_build': True}) - def delete_collection_namespaced_resource_claim_with_http_info( + def delete_collection_device_class_with_http_info( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -1813,12 +1671,10 @@ def delete_collection_namespaced_resource_claim_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Tuple[V1Status, int, Any]: - """delete_collection_namespaced_resource_claim + """delete_collection_device_class - delete collection of ResourceClaim + delete collection of DeviceClass - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :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. @@ -1882,8 +1738,7 @@ def delete_collection_namespaced_resource_claim_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_collection_namespaced_resource_claim_serialize( - namespace=namespace, + _param = self._delete_collection_device_class_serialize( pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -1920,9 +1775,8 @@ def delete_collection_namespaced_resource_claim_with_http_info( ) - def _delete_collection_namespaced_resource_claim_serialize( + def _delete_collection_device_class_serialize( self, - namespace, pretty, _continue, dry_run, @@ -1960,8 +1814,6 @@ def _delete_collection_namespaced_resource_claim_serialize( _body_params: Optional[bytes] = None # process the path parameters - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -2049,7 +1901,7 @@ def _delete_collection_namespaced_resource_claim_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims', + resource_path='/apis/resource.k8s.io/v1/deviceclasses', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2066,9 +1918,8 @@ def _delete_collection_namespaced_resource_claim_serialize( @validate_call(config={'defer_build': True}) - def delete_collection_namespaced_resource_claim_template( + def delete_collection_device_taint_rule( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -2101,12 +1952,10 @@ def delete_collection_namespaced_resource_claim_template( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1Status: - """delete_collection_namespaced_resource_claim_template + """delete_collection_device_taint_rule - delete collection of ResourceClaimTemplate + delete collection of DeviceTaintRule - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :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. @@ -2170,8 +2019,7 @@ def delete_collection_namespaced_resource_claim_template( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_collection_namespaced_resource_claim_template_serialize( - namespace=namespace, + _param = self._delete_collection_device_taint_rule_serialize( pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -2209,9 +2057,8 @@ def delete_collection_namespaced_resource_claim_template( @validate_call(config={'defer_build': True}) - def delete_collection_namespaced_resource_claim_template_with_http_info( + def delete_collection_device_taint_rule_with_http_info( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -2244,12 +2091,10 @@ def delete_collection_namespaced_resource_claim_template_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Tuple[V1Status, int, Any]: - """delete_collection_namespaced_resource_claim_template + """delete_collection_device_taint_rule - delete collection of ResourceClaimTemplate + delete collection of DeviceTaintRule - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :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. @@ -2313,8 +2158,7 @@ def delete_collection_namespaced_resource_claim_template_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_collection_namespaced_resource_claim_template_serialize( - namespace=namespace, + _param = self._delete_collection_device_taint_rule_serialize( pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -2351,9 +2195,8 @@ def delete_collection_namespaced_resource_claim_template_with_http_info( ) - def _delete_collection_namespaced_resource_claim_template_serialize( + def _delete_collection_device_taint_rule_serialize( self, - namespace, pretty, _continue, dry_run, @@ -2391,8 +2234,6 @@ def _delete_collection_namespaced_resource_claim_template_serialize( _body_params: Optional[bytes] = None # process the path parameters - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -2480,7 +2321,7 @@ def _delete_collection_namespaced_resource_claim_template_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2497,8 +2338,9 @@ def _delete_collection_namespaced_resource_claim_template_serialize( @validate_call(config={'defer_build': True}) - def delete_collection_resource_slice( + def delete_collection_namespaced_resource_claim( self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -2531,10 +2373,12 @@ def delete_collection_resource_slice( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1Status: - """delete_collection_resource_slice + """delete_collection_namespaced_resource_claim - delete collection of ResourceSlice + delete collection of ResourceClaim + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :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. @@ -2598,7 +2442,8 @@ def delete_collection_resource_slice( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_collection_resource_slice_serialize( + _param = self._delete_collection_namespaced_resource_claim_serialize( + namespace=namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -2636,8 +2481,9 @@ def delete_collection_resource_slice( @validate_call(config={'defer_build': True}) - def delete_collection_resource_slice_with_http_info( + def delete_collection_namespaced_resource_claim_with_http_info( self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -2670,10 +2516,12 @@ def delete_collection_resource_slice_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Tuple[V1Status, int, Any]: - """delete_collection_resource_slice + """delete_collection_namespaced_resource_claim - delete collection of ResourceSlice + delete collection of ResourceClaim + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :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. @@ -2737,7 +2585,8 @@ def delete_collection_resource_slice_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_collection_resource_slice_serialize( + _param = self._delete_collection_namespaced_resource_claim_serialize( + namespace=namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -2774,8 +2623,9 @@ def delete_collection_resource_slice_with_http_info( ) - def _delete_collection_resource_slice_serialize( + def _delete_collection_namespaced_resource_claim_serialize( self, + namespace, pretty, _continue, dry_run, @@ -2813,6 +2663,8 @@ def _delete_collection_resource_slice_serialize( _body_params: Optional[bytes] = None # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -2900,7 +2752,7 @@ def _delete_collection_resource_slice_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/resource.k8s.io/v1/resourceslices', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2917,15 +2769,24 @@ def _delete_collection_resource_slice_serialize( @validate_call(config={'defer_build': True}) - def delete_device_class( + def delete_collection_namespaced_resource_claim_template( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -2942,25 +2803,43 @@ def delete_device_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceClass: - """delete_device_class + ) -> V1Status: + """delete_collection_namespaced_resource_claim_template - delete a DeviceClass + delete collection of ResourceClaimTemplate - :param name: name of the DeviceClass (required) - :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. @@ -2994,14 +2873,23 @@ def delete_device_class( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_device_class_serialize( - name=name, + _param = self._delete_collection_namespaced_resource_claim_template_serialize( + namespace=namespace, pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -3010,8 +2898,7 @@ def delete_device_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", - '202': "V1DeviceClass", + '200': "V1Status", '401': None, } return self.api_client._call_with_legacy_options( @@ -3025,15 +2912,24 @@ def delete_device_class( @validate_call(config={'defer_build': True}) - def delete_device_class_with_http_info( + def delete_collection_namespaced_resource_claim_template_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -3050,25 +2946,43 @@ def delete_device_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1DeviceClass, int, Any]: - """delete_device_class + ) -> Tuple[V1Status, int, Any]: + """delete_collection_namespaced_resource_claim_template - delete a DeviceClass + delete collection of ResourceClaimTemplate - :param name: name of the DeviceClass (required) - :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. @@ -3102,14 +3016,23 @@ def delete_device_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_device_class_serialize( - name=name, + _param = self._delete_collection_namespaced_resource_claim_template_serialize( + namespace=namespace, pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -3118,8 +3041,7 @@ def delete_device_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", - '202': "V1DeviceClass", + '200': "V1Status", '401': None, } return self.api_client._call_with_legacy_options( @@ -3132,15 +3054,24 @@ def delete_device_class_with_http_info( ) - def _delete_device_class_serialize( + def _delete_collection_namespaced_resource_claim_template_serialize( self, - name, + namespace, pretty, + _continue, dry_run, + field_selector, grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, orphan_dependents, propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, body, _request_auth, _content_type, @@ -3163,17 +3094,25 @@ def _delete_device_class_serialize( _body_params: Optional[bytes] = None # process the path parameters - if name is not None: - _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) + if _continue is not None: + + _query_params.append(('continue', _continue)) + if dry_run is not None: _query_params.append(('dryRun', dry_run)) + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + if grace_period_seconds is not None: _query_params.append(('gracePeriodSeconds', grace_period_seconds)) @@ -3182,6 +3121,14 @@ def _delete_device_class_serialize( _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + if orphan_dependents is not None: _query_params.append(('orphanDependents', orphan_dependents)) @@ -3190,6 +3137,26 @@ def _delete_device_class_serialize( _query_params.append(('propagationPolicy', propagation_policy)) + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + # process the header parameters # process the form parameters # process the body parameter @@ -3216,7 +3183,7 @@ def _delete_device_class_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/resource.k8s.io/v1/deviceclasses/{name}', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3233,16 +3200,23 @@ def _delete_device_class_serialize( @validate_call(config={'defer_build': True}) - def delete_namespaced_resource_claim( + def delete_collection_resource_slice( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -3259,27 +3233,41 @@ def delete_namespaced_resource_claim( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ResourceV1ResourceClaim: - """delete_namespaced_resource_claim + ) -> V1Status: + """delete_collection_resource_slice - delete a ResourceClaim + delete collection of ResourceSlice - :param name: name of the ResourceClaim (required) - :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. @@ -3313,15 +3301,22 @@ def delete_namespaced_resource_claim( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_namespaced_resource_claim_serialize( - name=name, - namespace=namespace, + _param = self._delete_collection_resource_slice_serialize( pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -3330,8 +3325,7 @@ def delete_namespaced_resource_claim( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '202': "ResourceV1ResourceClaim", + '200': "V1Status", '401': None, } return self.api_client._call_with_legacy_options( @@ -3345,16 +3339,23 @@ def delete_namespaced_resource_claim( @validate_call(config={'defer_build': True}) - def delete_namespaced_resource_claim_with_http_info( + def delete_collection_resource_slice_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -3371,27 +3372,41 @@ def delete_namespaced_resource_claim_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[ResourceV1ResourceClaim, int, Any]: - """delete_namespaced_resource_claim + ) -> Tuple[V1Status, int, Any]: + """delete_collection_resource_slice - delete a ResourceClaim + delete collection of ResourceSlice - :param name: name of the ResourceClaim (required) - :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. @@ -3425,15 +3440,22 @@ def delete_namespaced_resource_claim_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_namespaced_resource_claim_serialize( - name=name, - namespace=namespace, + _param = self._delete_collection_resource_slice_serialize( pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -3442,8 +3464,7 @@ def delete_namespaced_resource_claim_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '202': "ResourceV1ResourceClaim", + '200': "V1Status", '401': None, } return self.api_client._call_with_legacy_options( @@ -3456,16 +3477,23 @@ def delete_namespaced_resource_claim_with_http_info( ) - def _delete_namespaced_resource_claim_serialize( + def _delete_collection_resource_slice_serialize( self, - name, - namespace, pretty, + _continue, dry_run, + field_selector, grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, orphan_dependents, propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, body, _request_auth, _content_type, @@ -3488,19 +3516,23 @@ def _delete_namespaced_resource_claim_serialize( _body_params: Optional[bytes] = None # process the path parameters - if name is not None: - _path_params['name'] = name - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) + if _continue is not None: + + _query_params.append(('continue', _continue)) + if dry_run is not None: _query_params.append(('dryRun', dry_run)) + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + if grace_period_seconds is not None: _query_params.append(('gracePeriodSeconds', grace_period_seconds)) @@ -3509,14 +3541,42 @@ def _delete_namespaced_resource_claim_serialize( _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) - if orphan_dependents is not None: + if label_selector is not None: - _query_params.append(('orphanDependents', orphan_dependents)) + _query_params.append(('labelSelector', label_selector)) - if propagation_policy is not None: + if limit is not None: + + _query_params.append(('limit', limit)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: _query_params.append(('propagationPolicy', propagation_policy)) + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + # process the header parameters # process the form parameters # process the body parameter @@ -3543,7 +3603,7 @@ def _delete_namespaced_resource_claim_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', + resource_path='/apis/resource.k8s.io/v1/resourceslices', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3560,10 +3620,9 @@ def _delete_namespaced_resource_claim_serialize( @validate_call(config={'defer_build': True}) - def delete_namespaced_resource_claim_template( + def delete_device_class( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, @@ -3586,15 +3645,13 @@ def delete_namespaced_resource_claim_template( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceClaimTemplate: - """delete_namespaced_resource_claim_template + ) -> V1DeviceClass: + """delete_device_class - delete a ResourceClaimTemplate + delete a DeviceClass - :param name: name of the ResourceClaimTemplate (required) + :param name: name of the DeviceClass (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -3640,9 +3697,8 @@ def delete_namespaced_resource_claim_template( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_namespaced_resource_claim_template_serialize( + _param = self._delete_device_class_serialize( name=name, - namespace=namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, @@ -3657,8 +3713,8 @@ def delete_namespaced_resource_claim_template( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", - '202': "V1ResourceClaimTemplate", + '200': "V1DeviceClass", + '202': "V1DeviceClass", '401': None, } return self.api_client._call_with_legacy_options( @@ -3672,10 +3728,9 @@ def delete_namespaced_resource_claim_template( @validate_call(config={'defer_build': True}) - def delete_namespaced_resource_claim_template_with_http_info( + def delete_device_class_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, @@ -3698,15 +3753,13 @@ def delete_namespaced_resource_claim_template_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1ResourceClaimTemplate, int, Any]: - """delete_namespaced_resource_claim_template + ) -> Tuple[V1DeviceClass, int, Any]: + """delete_device_class - delete a ResourceClaimTemplate + delete a DeviceClass - :param name: name of the ResourceClaimTemplate (required) + :param name: name of the DeviceClass (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -3752,9 +3805,8 @@ def delete_namespaced_resource_claim_template_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_namespaced_resource_claim_template_serialize( + _param = self._delete_device_class_serialize( name=name, - namespace=namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, @@ -3769,8 +3821,8 @@ def delete_namespaced_resource_claim_template_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", - '202': "V1ResourceClaimTemplate", + '200': "V1DeviceClass", + '202': "V1DeviceClass", '401': None, } return self.api_client._call_with_legacy_options( @@ -3783,10 +3835,9 @@ def delete_namespaced_resource_claim_template_with_http_info( ) - def _delete_namespaced_resource_claim_template_serialize( + def _delete_device_class_serialize( self, name, - namespace, pretty, dry_run, grace_period_seconds, @@ -3817,8 +3868,6 @@ def _delete_namespaced_resource_claim_template_serialize( # process the path parameters if name is not None: _path_params['name'] = name - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -3870,7 +3919,7 @@ def _delete_namespaced_resource_claim_template_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', + resource_path='/apis/resource.k8s.io/v1/deviceclasses/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3887,9 +3936,9 @@ def _delete_namespaced_resource_claim_template_serialize( @validate_call(config={'defer_build': True}) - def delete_resource_slice( + def delete_device_taint_rule( self, - name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, @@ -3912,12 +3961,12 @@ def delete_resource_slice( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceSlice: - """delete_resource_slice + ) -> object: + """delete_device_taint_rule - delete a ResourceSlice + delete a DeviceTaintRule - :param name: name of the ResourceSlice (required) + :param name: name of the DeviceTaintRule (required) :type name: str :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). :type pretty: str @@ -3964,7 +4013,7 @@ def delete_resource_slice( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_resource_slice_serialize( + _param = self._delete_device_taint_rule_serialize( name=name, pretty=pretty, dry_run=dry_run, @@ -3980,8 +4029,8 @@ def delete_resource_slice( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", - '202': "V1ResourceSlice", + '200': "object", + '202': "object", '401': None, } return self.api_client._call_with_legacy_options( @@ -3995,9 +4044,9 @@ def delete_resource_slice( @validate_call(config={'defer_build': True}) - def delete_resource_slice_with_http_info( + def delete_device_taint_rule_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, @@ -4020,12 +4069,12 @@ def delete_resource_slice_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1ResourceSlice, int, Any]: - """delete_resource_slice + ) -> Tuple[object, int, Any]: + """delete_device_taint_rule - delete a ResourceSlice + delete a DeviceTaintRule - :param name: name of the ResourceSlice (required) + :param name: name of the DeviceTaintRule (required) :type name: str :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). :type pretty: str @@ -4072,7 +4121,7 @@ def delete_resource_slice_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_resource_slice_serialize( + _param = self._delete_device_taint_rule_serialize( name=name, pretty=pretty, dry_run=dry_run, @@ -4088,8 +4137,8 @@ def delete_resource_slice_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", - '202': "V1ResourceSlice", + '200': "object", + '202': "object", '401': None, } return self.api_client._call_with_legacy_options( @@ -4102,7 +4151,7 @@ def delete_resource_slice_with_http_info( ) - def _delete_resource_slice_serialize( + def _delete_device_taint_rule_serialize( self, name, pretty, @@ -4186,7 +4235,7 @@ def _delete_resource_slice_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/resource.k8s.io/v1/resourceslices/{name}', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4203,8 +4252,17 @@ def _delete_resource_slice_serialize( @validate_call(config={'defer_build': True}) - def get_api_resources( + def delete_namespaced_resource_claim( self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -4220,11 +4278,29 @@ def get_api_resources( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1APIResourceList: - """get_api_resources + ) -> ResourceV1ResourceClaim: + """delete_namespaced_resource_claim - get available resources + delete a ResourceClaim + :param name: name of the ResourceClaim (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -4256,7 +4332,16 @@ def get_api_resources( :return: Returns the result object. """ # noqa: E501 - _param = self._get_api_resources_serialize( + _param = self._delete_namespaced_resource_claim_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4264,7 +4349,8 @@ def get_api_resources( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1APIResourceList", + '200': "ResourceV1ResourceClaim", + '202': "ResourceV1ResourceClaim", '401': None, } return self.api_client._call_with_legacy_options( @@ -4278,8 +4364,17 @@ def get_api_resources( @validate_call(config={'defer_build': True}) - def get_api_resources_with_http_info( + def delete_namespaced_resource_claim_with_http_info( self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -4295,11 +4390,29 @@ def get_api_resources_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1APIResourceList, int, Any]: - """get_api_resources + ) -> Tuple[ResourceV1ResourceClaim, int, Any]: + """delete_namespaced_resource_claim - get available resources + delete a ResourceClaim + :param name: name of the ResourceClaim (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -4331,7 +4444,16 @@ def get_api_resources_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_api_resources_serialize( + _param = self._delete_namespaced_resource_claim_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4339,7 +4461,8 @@ def get_api_resources_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1APIResourceList", + '200': "ResourceV1ResourceClaim", + '202': "ResourceV1ResourceClaim", '401': None, } return self.api_client._call_with_legacy_options( @@ -4352,8 +4475,17 @@ def get_api_resources_with_http_info( ) - def _get_api_resources_serialize( + def _delete_namespaced_resource_claim_serialize( self, + name, + namespace, + pretty, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, _request_auth, _content_type, _headers, @@ -4375,10 +4507,40 @@ def _get_api_resources_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -4399,8 +4561,8 @@ def _get_api_resources_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/apis/resource.k8s.io/v1/', + method='DELETE', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4417,20 +4579,17 @@ def _get_api_resources_serialize( @validate_call(config={'defer_build': True}) - def list_device_class( + def delete_namespaced_resource_claim_template( self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -4446,35 +4605,29 @@ def list_device_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceClassList: - """list_device_class + ) -> V1ResourceClaimTemplate: + """delete_namespaced_resource_claim_template - list or watch objects of kind DeviceClass + delete a ResourceClaimTemplate + :param name: name of the ResourceClaimTemplate (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -4506,19 +4659,16 @@ def list_device_class( :return: Returns the result object. """ # noqa: E501 - _param = self._list_device_class_serialize( + _param = self._delete_namespaced_resource_claim_template_serialize( + name=name, + namespace=namespace, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4526,7 +4676,8 @@ def list_device_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClassList", + '200': "V1ResourceClaimTemplate", + '202': "V1ResourceClaimTemplate", '401': None, } return self.api_client._call_with_legacy_options( @@ -4540,20 +4691,17 @@ def list_device_class( @validate_call(config={'defer_build': True}) - def list_device_class_with_http_info( + def delete_namespaced_resource_claim_template_with_http_info( self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -4569,35 +4717,29 @@ def list_device_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1DeviceClassList, int, Any]: - """list_device_class + ) -> Tuple[V1ResourceClaimTemplate, int, Any]: + """delete_namespaced_resource_claim_template - list or watch objects of kind DeviceClass + delete a ResourceClaimTemplate + :param name: name of the ResourceClaimTemplate (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -4629,19 +4771,16 @@ def list_device_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_device_class_serialize( + _param = self._delete_namespaced_resource_claim_template_serialize( + name=name, + namespace=namespace, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4649,7 +4788,8 @@ def list_device_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClassList", + '200': "V1ResourceClaimTemplate", + '202': "V1ResourceClaimTemplate", '401': None, } return self.api_client._call_with_legacy_options( @@ -4662,20 +4802,17 @@ def list_device_class_with_http_info( ) - def _list_device_class_serialize( + def _delete_namespaced_resource_claim_template_serialize( self, + name, + namespace, pretty, - allow_watch_bookmarks, - _continue, - field_selector, - label_selector, - limit, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - watch, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, _request_auth, _content_type, _headers, @@ -4697,58 +4834,40 @@ def _list_device_class_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if allow_watch_bookmarks is not None: - - _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) - - if _continue is not None: - - _query_params.append(('continue', _continue)) - - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: + if dry_run is not None: - _query_params.append(('resourceVersionMatch', resource_version_match)) + _query_params.append(('dryRun', dry_run)) - if send_initial_events is not None: + if grace_period_seconds is not None: - _query_params.append(('sendInitialEvents', send_initial_events)) + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) - if shard_selector is not None: + if ignore_store_read_error_with_cluster_breaking_potential is not None: - _query_params.append(('shardSelector', shard_selector)) + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) - if timeout_seconds is not None: + if orphan_dependents is not None: - _query_params.append(('timeoutSeconds', timeout_seconds)) + _query_params.append(('orphanDependents', orphan_dependents)) - if watch is not None: + if propagation_policy is not None: - _query_params.append(('watch', watch)) + _query_params.append(('propagationPolicy', propagation_policy)) # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -4758,10 +4877,7 @@ def _list_device_class_serialize( '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' ] ) @@ -4772,8 +4888,8 @@ def _list_device_class_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/apis/resource.k8s.io/v1/deviceclasses', + method='DELETE', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4790,21 +4906,16 @@ def _list_device_class_serialize( @validate_call(config={'defer_build': True}) - def list_namespaced_resource_claim( + def delete_resource_slice( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -4820,37 +4931,27 @@ def list_namespaced_resource_claim( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceClaimList: - """list_namespaced_resource_claim + ) -> V1ResourceSlice: + """delete_resource_slice - list or watch objects of kind ResourceClaim + delete a ResourceSlice - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str + :param name: name of the ResourceSlice (required) + :type name: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -4882,20 +4983,15 @@ def list_namespaced_resource_claim( :return: Returns the result object. """ # noqa: E501 - _param = self._list_namespaced_resource_claim_serialize( - namespace=namespace, + _param = self._delete_resource_slice_serialize( + name=name, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4903,7 +4999,8 @@ def list_namespaced_resource_claim( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimList", + '200': "V1ResourceSlice", + '202': "V1ResourceSlice", '401': None, } return self.api_client._call_with_legacy_options( @@ -4917,21 +5014,16 @@ def list_namespaced_resource_claim( @validate_call(config={'defer_build': True}) - def list_namespaced_resource_claim_with_http_info( + def delete_resource_slice_with_http_info( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -4947,37 +5039,27 @@ def list_namespaced_resource_claim_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1ResourceClaimList, int, Any]: - """list_namespaced_resource_claim + ) -> Tuple[V1ResourceSlice, int, Any]: + """delete_resource_slice - list or watch objects of kind ResourceClaim + delete a ResourceSlice - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str + :param name: name of the ResourceSlice (required) + :type name: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -5009,20 +5091,15 @@ def list_namespaced_resource_claim_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_namespaced_resource_claim_serialize( - namespace=namespace, + _param = self._delete_resource_slice_serialize( + name=name, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5030,7 +5107,8 @@ def list_namespaced_resource_claim_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimList", + '200': "V1ResourceSlice", + '202': "V1ResourceSlice", '401': None, } return self.api_client._call_with_legacy_options( @@ -5043,21 +5121,16 @@ def list_namespaced_resource_claim_with_http_info( ) - def _list_namespaced_resource_claim_serialize( + def _delete_resource_slice_serialize( self, - namespace, + name, pretty, - allow_watch_bookmarks, - _continue, - field_selector, - label_selector, - limit, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - watch, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, _request_auth, _content_type, _headers, @@ -5079,60 +5152,38 @@ def _list_namespaced_resource_claim_serialize( _body_params: Optional[bytes] = None # process the path parameters - if namespace is not None: - _path_params['namespace'] = namespace + if name is not None: + _path_params['name'] = name # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if allow_watch_bookmarks is not None: - - _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) - - if _continue is not None: - - _query_params.append(('continue', _continue)) - - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: + if dry_run is not None: - _query_params.append(('resourceVersionMatch', resource_version_match)) + _query_params.append(('dryRun', dry_run)) - if send_initial_events is not None: + if grace_period_seconds is not None: - _query_params.append(('sendInitialEvents', send_initial_events)) + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) - if shard_selector is not None: + if ignore_store_read_error_with_cluster_breaking_potential is not None: - _query_params.append(('shardSelector', shard_selector)) + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) - if timeout_seconds is not None: + if orphan_dependents is not None: - _query_params.append(('timeoutSeconds', timeout_seconds)) + _query_params.append(('orphanDependents', orphan_dependents)) - if watch is not None: + if propagation_policy is not None: - _query_params.append(('watch', watch)) + _query_params.append(('propagationPolicy', propagation_policy)) # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -5142,10 +5193,7 @@ def _list_namespaced_resource_claim_serialize( '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' ] ) @@ -5156,8 +5204,8 @@ def _list_namespaced_resource_claim_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims', + method='DELETE', + resource_path='/apis/resource.k8s.io/v1/resourceslices/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5174,21 +5222,8 @@ def _list_namespaced_resource_claim_serialize( @validate_call(config={'defer_build': True}) - def list_namespaced_resource_claim_template( + def get_api_resources( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -5204,37 +5239,11 @@ def list_namespaced_resource_claim_template( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceClaimTemplateList: - """list_namespaced_resource_claim_template + ) -> V1APIResourceList: + """get_api_resources - list or watch objects of kind ResourceClaimTemplate + get available resources - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :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). - :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -5266,20 +5275,7 @@ def list_namespaced_resource_claim_template( :return: Returns the result object. """ # noqa: E501 - _param = self._list_namespaced_resource_claim_template_serialize( - namespace=namespace, - pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + _param = self._get_api_resources_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5287,7 +5283,7 @@ def list_namespaced_resource_claim_template( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplateList", + '200': "V1APIResourceList", '401': None, } return self.api_client._call_with_legacy_options( @@ -5301,21 +5297,8 @@ def list_namespaced_resource_claim_template( @validate_call(config={'defer_build': True}) - def list_namespaced_resource_claim_template_with_http_info( + def get_api_resources_with_http_info( self, - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -5331,37 +5314,11 @@ def list_namespaced_resource_claim_template_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1ResourceClaimTemplateList, int, Any]: - """list_namespaced_resource_claim_template + ) -> Tuple[V1APIResourceList, int, Any]: + """get_api_resources - list or watch objects of kind ResourceClaimTemplate + get available resources - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :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). - :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -5393,20 +5350,7 @@ def list_namespaced_resource_claim_template_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_namespaced_resource_claim_template_serialize( - namespace=namespace, - pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + _param = self._get_api_resources_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5414,7 +5358,7 @@ def list_namespaced_resource_claim_template_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplateList", + '200': "V1APIResourceList", '401': None, } return self.api_client._call_with_legacy_options( @@ -5427,21 +5371,8 @@ def list_namespaced_resource_claim_template_with_http_info( ) - def _list_namespaced_resource_claim_template_serialize( + def _get_api_resources_serialize( self, - namespace, - pretty, - allow_watch_bookmarks, - _continue, - field_selector, - label_selector, - limit, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - watch, _request_auth, _content_type, _headers, @@ -5463,57 +5394,7 @@ def _list_namespaced_resource_claim_template_serialize( _body_params: Optional[bytes] = None # process the path parameters - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters - if pretty is not None: - - _query_params.append(('pretty', pretty)) - - if allow_watch_bookmarks is not None: - - _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) - - if _continue is not None: - - _query_params.append(('continue', _continue)) - - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: - - _query_params.append(('shardSelector', shard_selector)) - - if timeout_seconds is not None: - - _query_params.append(('timeoutSeconds', timeout_seconds)) - - if watch is not None: - - _query_params.append(('watch', watch)) - # process the header parameters # process the form parameters # process the body parameter @@ -5526,10 +5407,7 @@ def _list_namespaced_resource_claim_template_serialize( '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' ] ) @@ -5541,7 +5419,7 @@ def _list_namespaced_resource_claim_template_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates', + resource_path='/apis/resource.k8s.io/v1/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5558,14 +5436,14 @@ def _list_namespaced_resource_claim_template_serialize( @validate_call(config={'defer_build': True}) - def list_resource_claim_for_all_namespaces( + def list_device_class( self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, @@ -5587,11 +5465,13 @@ def list_resource_claim_for_all_namespaces( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceClaimList: - """list_resource_claim_for_all_namespaces + ) -> V1DeviceClassList: + """list_device_class - list or watch objects of kind ResourceClaim + list or watch objects of kind DeviceClass + :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). + :type pretty: str :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. :type allow_watch_bookmarks: bool :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. @@ -5602,8 +5482,6 @@ def list_resource_claim_for_all_namespaces( :type label_selector: str :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. :type limit: int - :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). - :type pretty: str :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset :type resource_version: str :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset @@ -5647,13 +5525,13 @@ def list_resource_claim_for_all_namespaces( :return: Returns the result object. """ # noqa: E501 - _param = self._list_resource_claim_for_all_namespaces_serialize( + _param = self._list_device_class_serialize( + pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, - pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, @@ -5667,7 +5545,7 @@ def list_resource_claim_for_all_namespaces( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimList", + '200': "V1DeviceClassList", '401': None, } return self.api_client._call_with_legacy_options( @@ -5681,14 +5559,14 @@ def list_resource_claim_for_all_namespaces( @validate_call(config={'defer_build': True}) - def list_resource_claim_for_all_namespaces_with_http_info( + def list_device_class_with_http_info( self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, @@ -5710,11 +5588,13 @@ def list_resource_claim_for_all_namespaces_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1ResourceClaimList, int, Any]: - """list_resource_claim_for_all_namespaces + ) -> Tuple[V1DeviceClassList, int, Any]: + """list_device_class - list or watch objects of kind ResourceClaim + list or watch objects of kind DeviceClass + :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). + :type pretty: str :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. :type allow_watch_bookmarks: bool :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. @@ -5725,8 +5605,6 @@ def list_resource_claim_for_all_namespaces_with_http_info( :type label_selector: str :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. :type limit: int - :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). - :type pretty: str :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset :type resource_version: str :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset @@ -5770,13 +5648,13 @@ def list_resource_claim_for_all_namespaces_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_resource_claim_for_all_namespaces_serialize( + _param = self._list_device_class_serialize( + pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, - pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, @@ -5790,7 +5668,7 @@ def list_resource_claim_for_all_namespaces_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimList", + '200': "V1DeviceClassList", '401': None, } return self.api_client._call_with_legacy_options( @@ -5803,14 +5681,14 @@ def list_resource_claim_for_all_namespaces_with_http_info( ) - def _list_resource_claim_for_all_namespaces_serialize( + def _list_device_class_serialize( self, + pretty, allow_watch_bookmarks, _continue, field_selector, label_selector, limit, - pretty, resource_version, resource_version_match, send_initial_events, @@ -5839,6 +5717,10 @@ def _list_resource_claim_for_all_namespaces_serialize( # process the path parameters # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + if allow_watch_bookmarks is not None: _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) @@ -5859,10 +5741,6 @@ def _list_resource_claim_for_all_namespaces_serialize( _query_params.append(('limit', limit)) - if pretty is not None: - - _query_params.append(('pretty', pretty)) - if resource_version is not None: _query_params.append(('resourceVersion', resource_version)) @@ -5914,7 +5792,7 @@ def _list_resource_claim_for_all_namespaces_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/resource.k8s.io/v1/resourceclaims', + resource_path='/apis/resource.k8s.io/v1/deviceclasses', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5931,14 +5809,14 @@ def _list_resource_claim_for_all_namespaces_serialize( @validate_call(config={'defer_build': True}) - def list_resource_claim_template_for_all_namespaces( + def list_device_taint_rule( self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, @@ -5960,11 +5838,13 @@ def list_resource_claim_template_for_all_namespaces( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceClaimTemplateList: - """list_resource_claim_template_for_all_namespaces + ) -> V1DeviceTaintRuleList: + """list_device_taint_rule - list or watch objects of kind ResourceClaimTemplate + list or watch objects of kind DeviceTaintRule + :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). + :type pretty: str :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. :type allow_watch_bookmarks: bool :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. @@ -5975,8 +5855,6 @@ def list_resource_claim_template_for_all_namespaces( :type label_selector: str :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. :type limit: int - :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). - :type pretty: str :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset :type resource_version: str :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset @@ -6020,13 +5898,13 @@ def list_resource_claim_template_for_all_namespaces( :return: Returns the result object. """ # noqa: E501 - _param = self._list_resource_claim_template_for_all_namespaces_serialize( + _param = self._list_device_taint_rule_serialize( + pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, - pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, @@ -6040,7 +5918,7 @@ def list_resource_claim_template_for_all_namespaces( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplateList", + '200': "V1DeviceTaintRuleList", '401': None, } return self.api_client._call_with_legacy_options( @@ -6054,14 +5932,14 @@ def list_resource_claim_template_for_all_namespaces( @validate_call(config={'defer_build': True}) - def list_resource_claim_template_for_all_namespaces_with_http_info( + def list_device_taint_rule_with_http_info( self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, @@ -6083,11 +5961,13 @@ def list_resource_claim_template_for_all_namespaces_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1ResourceClaimTemplateList, int, Any]: - """list_resource_claim_template_for_all_namespaces + ) -> Tuple[V1DeviceTaintRuleList, int, Any]: + """list_device_taint_rule - list or watch objects of kind ResourceClaimTemplate + list or watch objects of kind DeviceTaintRule + :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). + :type pretty: str :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. :type allow_watch_bookmarks: bool :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. @@ -6098,8 +5978,6 @@ def list_resource_claim_template_for_all_namespaces_with_http_info( :type label_selector: str :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. :type limit: int - :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). - :type pretty: str :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset :type resource_version: str :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset @@ -6143,13 +6021,13 @@ def list_resource_claim_template_for_all_namespaces_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_resource_claim_template_for_all_namespaces_serialize( + _param = self._list_device_taint_rule_serialize( + pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, - pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, @@ -6163,7 +6041,7 @@ def list_resource_claim_template_for_all_namespaces_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplateList", + '200': "V1DeviceTaintRuleList", '401': None, } return self.api_client._call_with_legacy_options( @@ -6176,14 +6054,14 @@ def list_resource_claim_template_for_all_namespaces_with_http_info( ) - def _list_resource_claim_template_for_all_namespaces_serialize( + def _list_device_taint_rule_serialize( self, + pretty, allow_watch_bookmarks, _continue, field_selector, label_selector, limit, - pretty, resource_version, resource_version_match, send_initial_events, @@ -6212,6 +6090,10 @@ def _list_resource_claim_template_for_all_namespaces_serialize( # process the path parameters # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + if allow_watch_bookmarks is not None: _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) @@ -6232,10 +6114,6 @@ def _list_resource_claim_template_for_all_namespaces_serialize( _query_params.append(('limit', limit)) - if pretty is not None: - - _query_params.append(('pretty', pretty)) - if resource_version is not None: _query_params.append(('resourceVersion', resource_version)) @@ -6287,7 +6165,7 @@ def _list_resource_claim_template_for_all_namespaces_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/resource.k8s.io/v1/resourceclaimtemplates', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6304,8 +6182,9 @@ def _list_resource_claim_template_for_all_namespaces_serialize( @validate_call(config={'defer_build': True}) - def list_resource_slice( + def list_namespaced_resource_claim( self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, @@ -6333,11 +6212,13 @@ def list_resource_slice( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceSliceList: - """list_resource_slice + ) -> V1ResourceClaimList: + """list_namespaced_resource_claim - list or watch objects of kind ResourceSlice + list or watch objects of kind ResourceClaim + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -6393,7 +6274,8 @@ def list_resource_slice( :return: Returns the result object. """ # noqa: E501 - _param = self._list_resource_slice_serialize( + _param = self._list_namespaced_resource_claim_serialize( + namespace=namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, @@ -6413,7 +6295,7 @@ def list_resource_slice( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSliceList", + '200': "V1ResourceClaimList", '401': None, } return self.api_client._call_with_legacy_options( @@ -6427,8 +6309,9 @@ def list_resource_slice( @validate_call(config={'defer_build': True}) - def list_resource_slice_with_http_info( + def list_namespaced_resource_claim_with_http_info( self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, @@ -6456,35 +6339,3512 @@ def list_resource_slice_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1ResourceSliceList, int, Any]: - """list_resource_slice + ) -> Tuple[V1ResourceClaimList, int, Any]: + """list_namespaced_resource_claim + + list or watch objects of kind ResourceClaim + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_namespaced_resource_claim_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _list_namespaced_resource_claim_serialize( + self, + namespace, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def list_namespaced_resource_claim_template( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1ResourceClaimTemplateList: + """list_namespaced_resource_claim_template + + list or watch objects of kind ResourceClaimTemplate + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_namespaced_resource_claim_template_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimTemplateList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def list_namespaced_resource_claim_template_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1ResourceClaimTemplateList, int, Any]: + """list_namespaced_resource_claim_template + + list or watch objects of kind ResourceClaimTemplate + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_namespaced_resource_claim_template_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimTemplateList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _list_namespaced_resource_claim_template_serialize( + self, + namespace, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def list_resource_claim_for_all_namespaces( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1ResourceClaimList: + """list_resource_claim_for_all_namespaces + + list or watch objects of kind ResourceClaim + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_resource_claim_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def list_resource_claim_for_all_namespaces_with_http_info( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1ResourceClaimList, int, Any]: + """list_resource_claim_for_all_namespaces + + list or watch objects of kind ResourceClaim + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_resource_claim_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _list_resource_claim_for_all_namespaces_serialize( + self, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + pretty, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/resource.k8s.io/v1/resourceclaims', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def list_resource_claim_template_for_all_namespaces( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1ResourceClaimTemplateList: + """list_resource_claim_template_for_all_namespaces + + list or watch objects of kind ResourceClaimTemplate + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_resource_claim_template_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimTemplateList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def list_resource_claim_template_for_all_namespaces_with_http_info( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1ResourceClaimTemplateList, int, Any]: + """list_resource_claim_template_for_all_namespaces + + list or watch objects of kind ResourceClaimTemplate + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_resource_claim_template_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimTemplateList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _list_resource_claim_template_for_all_namespaces_serialize( + self, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + pretty, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/resource.k8s.io/v1/resourceclaimtemplates', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def list_resource_slice( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1ResourceSliceList: + """list_resource_slice + + list or watch objects of kind ResourceSlice + + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_resource_slice_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceSliceList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def list_resource_slice_with_http_info( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1ResourceSliceList, int, Any]: + """list_resource_slice + + list or watch objects of kind ResourceSlice + + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_resource_slice_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceSliceList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _list_resource_slice_serialize( + self, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/resource.k8s.io/v1/resourceslices', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_device_class( + self, + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1DeviceClass: + """patch_device_class + + partially update the specified DeviceClass + + :param name: name of the DeviceClass (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_device_class_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceClass", + '201': "V1DeviceClass", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_device_class_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1DeviceClass, int, Any]: + """patch_device_class + + partially update the specified DeviceClass + + :param name: name of the DeviceClass (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_device_class_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceClass", + '201': "V1DeviceClass", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_device_class_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/resource.k8s.io/v1/deviceclasses/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_device_taint_rule( + self, + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1DeviceTaintRule: + """patch_device_taint_rule + + partially update the specified DeviceTaintRule + + :param name: name of the DeviceTaintRule (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_device_taint_rule_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_device_taint_rule_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1DeviceTaintRule, int, Any]: + """patch_device_taint_rule + + partially update the specified DeviceTaintRule + + :param name: name of the DeviceTaintRule (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_device_taint_rule_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_device_taint_rule_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_device_taint_rule_status( + self, + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1DeviceTaintRule: + """patch_device_taint_rule_status + + partially update status of the specified DeviceTaintRule + + :param name: name of the DeviceTaintRule (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_device_taint_rule_status_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_device_taint_rule_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1DeviceTaintRule, int, Any]: + """patch_device_taint_rule_status + + partially update status of the specified DeviceTaintRule + + :param name: name of the DeviceTaintRule (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_device_taint_rule_status_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_device_taint_rule_status_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_resource_claim( + self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ResourceV1ResourceClaim: + """patch_namespaced_resource_claim + + partially update the specified ResourceClaim + + :param name: name of the ResourceClaim (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_resource_claim_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ResourceV1ResourceClaim", + '201': "ResourceV1ResourceClaim", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_resource_claim_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[ResourceV1ResourceClaim, int, Any]: + """patch_namespaced_resource_claim + + partially update the specified ResourceClaim + + :param name: name of the ResourceClaim (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_resource_claim_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ResourceV1ResourceClaim", + '201': "ResourceV1ResourceClaim", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_namespaced_resource_claim_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_resource_claim_status( + self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ResourceV1ResourceClaim: + """patch_namespaced_resource_claim_status + + partially update status of the specified ResourceClaim + + :param name: name of the ResourceClaim (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_resource_claim_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ResourceV1ResourceClaim", + '201': "ResourceV1ResourceClaim", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_resource_claim_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[ResourceV1ResourceClaim, int, Any]: + """patch_namespaced_resource_claim_status + + partially update status of the specified ResourceClaim + + :param name: name of the ResourceClaim (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_resource_claim_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ResourceV1ResourceClaim", + '201': "ResourceV1ResourceClaim", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_namespaced_resource_claim_status_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_resource_claim_template( + self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1ResourceClaimTemplate: + """patch_namespaced_resource_claim_template + + partially update the specified ResourceClaimTemplate + + :param name: name of the ResourceClaimTemplate (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_resource_claim_template_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1ResourceClaimTemplate", + '201': "V1ResourceClaimTemplate", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_resource_claim_template_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1ResourceClaimTemplate, int, Any]: + """patch_namespaced_resource_claim_template - list or watch objects of kind ResourceSlice + partially update the specified ResourceClaimTemplate + :param name: name of the ResourceClaimTemplate (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -6516,19 +9876,15 @@ def list_resource_slice_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_resource_slice_serialize( + _param = self._patch_namespaced_resource_claim_template_serialize( + name=name, + namespace=namespace, + body=body, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6536,7 +9892,8 @@ def list_resource_slice_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSliceList", + '200': "V1ResourceClaimTemplate", + '201': "V1ResourceClaimTemplate", '401': None, } return self.api_client._call_with_legacy_options( @@ -6549,20 +9906,16 @@ def list_resource_slice_with_http_info( ) - def _list_resource_slice_serialize( + def _patch_namespaced_resource_claim_template_serialize( self, + name, + namespace, + body, pretty, - allow_watch_bookmarks, - _continue, - field_selector, - label_selector, - limit, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - watch, + dry_run, + field_manager, + field_validation, + force, _request_auth, _content_type, _headers, @@ -6584,58 +9937,36 @@ def _list_resource_slice_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if allow_watch_bookmarks is not None: - - _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) - - if _continue is not None: - - _query_params.append(('continue', _continue)) - - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: + if dry_run is not None: - _query_params.append(('sendInitialEvents', send_initial_events)) + _query_params.append(('dryRun', dry_run)) - if shard_selector is not None: + if field_manager is not None: - _query_params.append(('shardSelector', shard_selector)) + _query_params.append(('fieldManager', field_manager)) - if timeout_seconds is not None: + if field_validation is not None: - _query_params.append(('timeoutSeconds', timeout_seconds)) + _query_params.append(('fieldValidation', field_validation)) - if watch is not None: + if force is not None: - _query_params.append(('watch', watch)) + _query_params.append(('force', force)) # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -6645,13 +9976,27 @@ def _list_resource_slice_serialize( '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' ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -6659,8 +10004,8 @@ def _list_resource_slice_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/apis/resource.k8s.io/v1/resourceslices', + method='PATCH', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6677,9 +10022,9 @@ def _list_resource_slice_serialize( @validate_call(config={'defer_build': True}) - def patch_device_class( + def patch_resource_slice( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -6701,12 +10046,12 @@ def patch_device_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceClass: - """patch_device_class + ) -> V1ResourceSlice: + """patch_resource_slice - partially update the specified DeviceClass + partially update the specified ResourceSlice - :param name: name of the DeviceClass (required) + :param name: name of the ResourceSlice (required) :type name: str :param body: (required) :type body: object @@ -6751,7 +10096,7 @@ def patch_device_class( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_device_class_serialize( + _param = self._patch_resource_slice_serialize( name=name, body=body, pretty=pretty, @@ -6766,8 +10111,8 @@ def patch_device_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", - '201': "V1DeviceClass", + '200': "V1ResourceSlice", + '201': "V1ResourceSlice", '401': None, } return self.api_client._call_with_legacy_options( @@ -6781,9 +10126,9 @@ def patch_device_class( @validate_call(config={'defer_build': True}) - def patch_device_class_with_http_info( + def patch_resource_slice_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -6805,12 +10150,12 @@ def patch_device_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1DeviceClass, int, Any]: - """patch_device_class + ) -> Tuple[V1ResourceSlice, int, Any]: + """patch_resource_slice - partially update the specified DeviceClass + partially update the specified ResourceSlice - :param name: name of the DeviceClass (required) + :param name: name of the ResourceSlice (required) :type name: str :param body: (required) :type body: object @@ -6855,7 +10200,7 @@ def patch_device_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_device_class_serialize( + _param = self._patch_resource_slice_serialize( name=name, body=body, pretty=pretty, @@ -6870,8 +10215,8 @@ def patch_device_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", - '201': "V1DeviceClass", + '200': "V1ResourceSlice", + '201': "V1ResourceSlice", '401': None, } return self.api_client._call_with_legacy_options( @@ -6884,7 +10229,7 @@ def patch_device_class_with_http_info( ) - def _patch_device_class_serialize( + def _patch_resource_slice_serialize( self, name, body, @@ -6980,7 +10325,7 @@ def _patch_device_class_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/apis/resource.k8s.io/v1/deviceclasses/{name}', + resource_path='/apis/resource.k8s.io/v1/resourceslices/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6997,16 +10342,10 @@ def _patch_device_class_serialize( @validate_call(config={'defer_build': True}) - def patch_namespaced_resource_claim( + def read_device_class( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -7022,27 +10361,15 @@ def patch_namespaced_resource_claim( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ResourceV1ResourceClaim: - """patch_namespaced_resource_claim + ) -> V1DeviceClass: + """read_device_class - partially update the specified ResourceClaim + read the specified DeviceClass - :param name: name of the ResourceClaim (required) + :param name: name of the DeviceClass (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -7074,15 +10401,9 @@ def patch_namespaced_resource_claim( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_namespaced_resource_claim_serialize( + _param = self._read_device_class_serialize( name=name, - namespace=namespace, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7090,8 +10411,7 @@ def patch_namespaced_resource_claim( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '201': "ResourceV1ResourceClaim", + '200': "V1DeviceClass", '401': None, } return self.api_client._call_with_legacy_options( @@ -7105,16 +10425,10 @@ def patch_namespaced_resource_claim( @validate_call(config={'defer_build': True}) - def patch_namespaced_resource_claim_with_http_info( + def read_device_class_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -7130,27 +10444,15 @@ def patch_namespaced_resource_claim_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[ResourceV1ResourceClaim, int, Any]: - """patch_namespaced_resource_claim + ) -> Tuple[V1DeviceClass, int, Any]: + """read_device_class - partially update the specified ResourceClaim + read the specified DeviceClass - :param name: name of the ResourceClaim (required) + :param name: name of the DeviceClass (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -7182,15 +10484,9 @@ def patch_namespaced_resource_claim_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_namespaced_resource_claim_serialize( + _param = self._read_device_class_serialize( name=name, - namespace=namespace, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7198,8 +10494,7 @@ def patch_namespaced_resource_claim_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '201': "ResourceV1ResourceClaim", + '200': "V1DeviceClass", '401': None, } return self.api_client._call_with_legacy_options( @@ -7212,16 +10507,10 @@ def patch_namespaced_resource_claim_with_http_info( ) - def _patch_namespaced_resource_claim_serialize( + def _read_device_class_serialize( self, name, - namespace, - body, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -7245,34 +10534,14 @@ def _patch_namespaced_resource_claim_serialize( # process the path parameters if name is not None: _path_params['name'] = name - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -7286,23 +10555,6 @@ def _patch_namespaced_resource_claim_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -7310,8 +10562,8 @@ def _patch_namespaced_resource_claim_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', + method='GET', + resource_path='/apis/resource.k8s.io/v1/deviceclasses/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7328,16 +10580,10 @@ def _patch_namespaced_resource_claim_serialize( @validate_call(config={'defer_build': True}) - def patch_namespaced_resource_claim_status( + def read_device_taint_rule( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -7353,27 +10599,15 @@ def patch_namespaced_resource_claim_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ResourceV1ResourceClaim: - """patch_namespaced_resource_claim_status + ) -> V1DeviceTaintRule: + """read_device_taint_rule - partially update status of the specified ResourceClaim + read the specified DeviceTaintRule - :param name: name of the ResourceClaim (required) + :param name: name of the DeviceTaintRule (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -7405,15 +10639,9 @@ def patch_namespaced_resource_claim_status( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_namespaced_resource_claim_status_serialize( + _param = self._read_device_taint_rule_serialize( name=name, - namespace=namespace, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7421,8 +10649,7 @@ def patch_namespaced_resource_claim_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '201': "ResourceV1ResourceClaim", + '200': "V1DeviceTaintRule", '401': None, } return self.api_client._call_with_legacy_options( @@ -7436,16 +10663,10 @@ def patch_namespaced_resource_claim_status( @validate_call(config={'defer_build': True}) - def patch_namespaced_resource_claim_status_with_http_info( + def read_device_taint_rule_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -7461,27 +10682,15 @@ def patch_namespaced_resource_claim_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[ResourceV1ResourceClaim, int, Any]: - """patch_namespaced_resource_claim_status + ) -> Tuple[V1DeviceTaintRule, int, Any]: + """read_device_taint_rule - partially update status of the specified ResourceClaim + read the specified DeviceTaintRule - :param name: name of the ResourceClaim (required) + :param name: name of the DeviceTaintRule (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -7513,15 +10722,9 @@ def patch_namespaced_resource_claim_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_namespaced_resource_claim_status_serialize( + _param = self._read_device_taint_rule_serialize( name=name, - namespace=namespace, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7529,8 +10732,7 @@ def patch_namespaced_resource_claim_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", - '201': "ResourceV1ResourceClaim", + '200': "V1DeviceTaintRule", '401': None, } return self.api_client._call_with_legacy_options( @@ -7543,16 +10745,10 @@ def patch_namespaced_resource_claim_status_with_http_info( ) - def _patch_namespaced_resource_claim_status_serialize( + def _read_device_taint_rule_serialize( self, name, - namespace, - body, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -7576,34 +10772,14 @@ def _patch_namespaced_resource_claim_status_serialize( # process the path parameters if name is not None: _path_params['name'] = name - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -7617,23 +10793,6 @@ def _patch_namespaced_resource_claim_status_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -7641,8 +10800,8 @@ def _patch_namespaced_resource_claim_status_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status', + method='GET', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7659,16 +10818,10 @@ def _patch_namespaced_resource_claim_status_serialize( @validate_call(config={'defer_build': True}) - def patch_namespaced_resource_claim_template( + def read_device_taint_rule_status( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -7684,27 +10837,15 @@ def patch_namespaced_resource_claim_template( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceClaimTemplate: - """patch_namespaced_resource_claim_template + ) -> V1DeviceTaintRule: + """read_device_taint_rule_status - partially update the specified ResourceClaimTemplate + read status of the specified DeviceTaintRule - :param name: name of the ResourceClaimTemplate (required) + :param name: name of the DeviceTaintRule (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -7736,15 +10877,9 @@ def patch_namespaced_resource_claim_template( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_namespaced_resource_claim_template_serialize( + _param = self._read_device_taint_rule_status_serialize( name=name, - namespace=namespace, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7752,8 +10887,7 @@ def patch_namespaced_resource_claim_template( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", - '201': "V1ResourceClaimTemplate", + '200': "V1DeviceTaintRule", '401': None, } return self.api_client._call_with_legacy_options( @@ -7767,16 +10901,10 @@ def patch_namespaced_resource_claim_template( @validate_call(config={'defer_build': True}) - def patch_namespaced_resource_claim_template_with_http_info( + def read_device_taint_rule_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -7792,27 +10920,15 @@ def patch_namespaced_resource_claim_template_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1ResourceClaimTemplate, int, Any]: - """patch_namespaced_resource_claim_template - - partially update the specified ResourceClaimTemplate + ) -> Tuple[V1DeviceTaintRule, int, Any]: + """read_device_taint_rule_status - :param name: name of the ResourceClaimTemplate (required) - :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str - :param body: (required) - :type body: object - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool + read status of the specified DeviceTaintRule + + :param name: name of the DeviceTaintRule (required) + :type name: str + :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). + :type pretty: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -7844,15 +10960,9 @@ def patch_namespaced_resource_claim_template_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_namespaced_resource_claim_template_serialize( + _param = self._read_device_taint_rule_status_serialize( name=name, - namespace=namespace, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7860,8 +10970,7 @@ def patch_namespaced_resource_claim_template_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", - '201': "V1ResourceClaimTemplate", + '200': "V1DeviceTaintRule", '401': None, } return self.api_client._call_with_legacy_options( @@ -7874,16 +10983,10 @@ def patch_namespaced_resource_claim_template_with_http_info( ) - def _patch_namespaced_resource_claim_template_serialize( + def _read_device_taint_rule_status_serialize( self, name, - namespace, - body, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -7907,34 +11010,14 @@ def _patch_namespaced_resource_claim_template_serialize( # process the path parameters if name is not None: _path_params['name'] = name - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -7948,23 +11031,6 @@ def _patch_namespaced_resource_claim_template_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -7972,8 +11038,8 @@ def _patch_namespaced_resource_claim_template_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', + method='GET', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7990,15 +11056,11 @@ def _patch_namespaced_resource_claim_template_serialize( @validate_call(config={'defer_build': True}) - def patch_resource_slice( + def read_namespaced_resource_claim( self, - name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -8014,25 +11076,17 @@ def patch_resource_slice( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceSlice: - """patch_resource_slice + ) -> ResourceV1ResourceClaim: + """read_namespaced_resource_claim - partially update the specified ResourceSlice + read the specified ResourceClaim - :param name: name of the ResourceSlice (required) + :param name: name of the ResourceClaim (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -8064,14 +11118,10 @@ def patch_resource_slice( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_resource_slice_serialize( + _param = self._read_namespaced_resource_claim_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8079,8 +11129,7 @@ def patch_resource_slice( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", - '201': "V1ResourceSlice", + '200': "ResourceV1ResourceClaim", '401': None, } return self.api_client._call_with_legacy_options( @@ -8094,15 +11143,11 @@ def patch_resource_slice( @validate_call(config={'defer_build': True}) - def patch_resource_slice_with_http_info( + def read_namespaced_resource_claim_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -8118,25 +11163,17 @@ def patch_resource_slice_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1ResourceSlice, int, Any]: - """patch_resource_slice + ) -> Tuple[ResourceV1ResourceClaim, int, Any]: + """read_namespaced_resource_claim - partially update the specified ResourceSlice + read the specified ResourceClaim - :param name: name of the ResourceSlice (required) + :param name: name of the ResourceClaim (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -8168,14 +11205,10 @@ def patch_resource_slice_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_resource_slice_serialize( + _param = self._read_namespaced_resource_claim_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8183,8 +11216,7 @@ def patch_resource_slice_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", - '201': "V1ResourceSlice", + '200': "ResourceV1ResourceClaim", '401': None, } return self.api_client._call_with_legacy_options( @@ -8197,15 +11229,11 @@ def patch_resource_slice_with_http_info( ) - def _patch_resource_slice_serialize( + def _read_namespaced_resource_claim_serialize( self, name, - body, + namespace, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -8229,32 +11257,16 @@ def _patch_resource_slice_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -8268,23 +11280,6 @@ def _patch_resource_slice_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -8292,8 +11287,8 @@ def _patch_resource_slice_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/resource.k8s.io/v1/resourceslices/{name}', + method='GET', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8310,9 +11305,10 @@ def _patch_resource_slice_serialize( @validate_call(config={'defer_build': True}) - def read_device_class( + def read_namespaced_resource_claim_status( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -8329,13 +11325,15 @@ def read_device_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceClass: - """read_device_class + ) -> ResourceV1ResourceClaim: + """read_namespaced_resource_claim_status - read the specified DeviceClass + read status of the specified ResourceClaim - :param name: name of the DeviceClass (required) + :param name: name of the ResourceClaim (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :param async_req: Whether to execute the request asynchronously. @@ -8369,8 +11367,9 @@ def read_device_class( :return: Returns the result object. """ # noqa: E501 - _param = self._read_device_class_serialize( + _param = self._read_namespaced_resource_claim_status_serialize( name=name, + namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -8379,7 +11378,7 @@ def read_device_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", + '200': "ResourceV1ResourceClaim", '401': None, } return self.api_client._call_with_legacy_options( @@ -8393,9 +11392,10 @@ def read_device_class( @validate_call(config={'defer_build': True}) - def read_device_class_with_http_info( + def read_namespaced_resource_claim_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -8412,13 +11412,15 @@ def read_device_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1DeviceClass, int, Any]: - """read_device_class + ) -> Tuple[ResourceV1ResourceClaim, int, Any]: + """read_namespaced_resource_claim_status - read the specified DeviceClass + read status of the specified ResourceClaim - :param name: name of the DeviceClass (required) + :param name: name of the ResourceClaim (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :param async_req: Whether to execute the request asynchronously. @@ -8452,8 +11454,9 @@ def read_device_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._read_device_class_serialize( + _param = self._read_namespaced_resource_claim_status_serialize( name=name, + namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -8462,7 +11465,7 @@ def read_device_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", + '200': "ResourceV1ResourceClaim", '401': None, } return self.api_client._call_with_legacy_options( @@ -8475,9 +11478,10 @@ def read_device_class_with_http_info( ) - def _read_device_class_serialize( + def _read_namespaced_resource_claim_status_serialize( self, name, + namespace, pretty, _request_auth, _content_type, @@ -8502,6 +11506,8 @@ def _read_device_class_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -8531,7 +11537,7 @@ def _read_device_class_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/resource.k8s.io/v1/deviceclasses/{name}', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8548,9 +11554,9 @@ def _read_device_class_serialize( @validate_call(config={'defer_build': True}) - def read_namespaced_resource_claim( + def read_namespaced_resource_claim_template( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, async_req: Optional[bool] = None, @@ -8568,12 +11574,12 @@ def read_namespaced_resource_claim( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ResourceV1ResourceClaim: - """read_namespaced_resource_claim + ) -> V1ResourceClaimTemplate: + """read_namespaced_resource_claim_template - read the specified ResourceClaim + read the specified ResourceClaimTemplate - :param name: name of the ResourceClaim (required) + :param name: name of the ResourceClaimTemplate (required) :type name: str :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str @@ -8610,7 +11616,7 @@ def read_namespaced_resource_claim( :return: Returns the result object. """ # noqa: E501 - _param = self._read_namespaced_resource_claim_serialize( + _param = self._read_namespaced_resource_claim_template_serialize( name=name, namespace=namespace, pretty=pretty, @@ -8621,7 +11627,7 @@ def read_namespaced_resource_claim( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", + '200': "V1ResourceClaimTemplate", '401': None, } return self.api_client._call_with_legacy_options( @@ -8635,9 +11641,9 @@ def read_namespaced_resource_claim( @validate_call(config={'defer_build': True}) - def read_namespaced_resource_claim_with_http_info( + def read_namespaced_resource_claim_template_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], + name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, async_req: Optional[bool] = None, @@ -8655,12 +11661,12 @@ def read_namespaced_resource_claim_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[ResourceV1ResourceClaim, int, Any]: - """read_namespaced_resource_claim + ) -> Tuple[V1ResourceClaimTemplate, int, Any]: + """read_namespaced_resource_claim_template - read the specified ResourceClaim + read the specified ResourceClaimTemplate - :param name: name of the ResourceClaim (required) + :param name: name of the ResourceClaimTemplate (required) :type name: str :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str @@ -8697,7 +11703,7 @@ def read_namespaced_resource_claim_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._read_namespaced_resource_claim_serialize( + _param = self._read_namespaced_resource_claim_template_serialize( name=name, namespace=namespace, pretty=pretty, @@ -8708,7 +11714,7 @@ def read_namespaced_resource_claim_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", + '200': "V1ResourceClaimTemplate", '401': None, } return self.api_client._call_with_legacy_options( @@ -8721,7 +11727,7 @@ def read_namespaced_resource_claim_with_http_info( ) - def _read_namespaced_resource_claim_serialize( + def _read_namespaced_resource_claim_template_serialize( self, name, namespace, @@ -8780,7 +11786,7 @@ def _read_namespaced_resource_claim_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', + resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8797,10 +11803,9 @@ def _read_namespaced_resource_claim_serialize( @validate_call(config={'defer_build': True}) - def read_namespaced_resource_claim_status( + def read_resource_slice( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -8817,15 +11822,13 @@ def read_namespaced_resource_claim_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ResourceV1ResourceClaim: - """read_namespaced_resource_claim_status + ) -> V1ResourceSlice: + """read_resource_slice - read status of the specified ResourceClaim + read the specified ResourceSlice - :param name: name of the ResourceClaim (required) + :param name: name of the ResourceSlice (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :param async_req: Whether to execute the request asynchronously. @@ -8859,9 +11862,8 @@ def read_namespaced_resource_claim_status( :return: Returns the result object. """ # noqa: E501 - _param = self._read_namespaced_resource_claim_status_serialize( + _param = self._read_resource_slice_serialize( name=name, - namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -8870,7 +11872,7 @@ def read_namespaced_resource_claim_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", + '200': "V1ResourceSlice", '401': None, } return self.api_client._call_with_legacy_options( @@ -8884,10 +11886,9 @@ def read_namespaced_resource_claim_status( @validate_call(config={'defer_build': True}) - def read_namespaced_resource_claim_status_with_http_info( + def read_resource_slice_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaim")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -8904,15 +11905,13 @@ def read_namespaced_resource_claim_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[ResourceV1ResourceClaim, int, Any]: - """read_namespaced_resource_claim_status + ) -> Tuple[V1ResourceSlice, int, Any]: + """read_resource_slice - read status of the specified ResourceClaim + read the specified ResourceSlice - :param name: name of the ResourceClaim (required) + :param name: name of the ResourceSlice (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :param async_req: Whether to execute the request asynchronously. @@ -8946,9 +11945,8 @@ def read_namespaced_resource_claim_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._read_namespaced_resource_claim_status_serialize( + _param = self._read_resource_slice_serialize( name=name, - namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -8957,7 +11955,7 @@ def read_namespaced_resource_claim_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResourceV1ResourceClaim", + '200': "V1ResourceSlice", '401': None, } return self.api_client._call_with_legacy_options( @@ -8970,10 +11968,9 @@ def read_namespaced_resource_claim_status_with_http_info( ) - def _read_namespaced_resource_claim_status_serialize( + def _read_resource_slice_serialize( self, name, - namespace, pretty, _request_auth, _content_type, @@ -8998,8 +11995,6 @@ def _read_namespaced_resource_claim_status_serialize( # process the path parameters if name is not None: _path_params['name'] = name - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -9029,7 +12024,7 @@ def _read_namespaced_resource_claim_status_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status', + resource_path='/apis/resource.k8s.io/v1/resourceslices/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9046,11 +12041,14 @@ def _read_namespaced_resource_claim_status_serialize( @validate_call(config={'defer_build': True}) - def read_namespaced_resource_claim_template( + def replace_device_class( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + body: V1DeviceClass, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -9066,17 +12064,23 @@ def read_namespaced_resource_claim_template( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceClaimTemplate: - """read_namespaced_resource_claim_template + ) -> V1DeviceClass: + """replace_device_class - read the specified ResourceClaimTemplate + replace the specified DeviceClass - :param name: name of the ResourceClaimTemplate (required) + :param name: name of the DeviceClass (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str + :param body: (required) + :type body: V1DeviceClass :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -9108,10 +12112,13 @@ def read_namespaced_resource_claim_template( :return: Returns the result object. """ # noqa: E501 - _param = self._read_namespaced_resource_claim_template_serialize( + _param = self._replace_device_class_serialize( name=name, - namespace=namespace, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9119,7 +12126,8 @@ def read_namespaced_resource_claim_template( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", + '200': "V1DeviceClass", + '201': "V1DeviceClass", '401': None, } return self.api_client._call_with_legacy_options( @@ -9133,11 +12141,14 @@ def read_namespaced_resource_claim_template( @validate_call(config={'defer_build': True}) - def read_namespaced_resource_claim_template_with_http_info( + def replace_device_class_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceClaimTemplate")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the DeviceClass")], + body: V1DeviceClass, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -9153,17 +12164,23 @@ def read_namespaced_resource_claim_template_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1ResourceClaimTemplate, int, Any]: - """read_namespaced_resource_claim_template + ) -> Tuple[V1DeviceClass, int, Any]: + """replace_device_class - read the specified ResourceClaimTemplate + replace the specified DeviceClass - :param name: name of the ResourceClaimTemplate (required) + :param name: name of the DeviceClass (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str + :param body: (required) + :type body: V1DeviceClass :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -9195,10 +12212,13 @@ def read_namespaced_resource_claim_template_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._read_namespaced_resource_claim_template_serialize( + _param = self._replace_device_class_serialize( name=name, - namespace=namespace, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9206,7 +12226,8 @@ def read_namespaced_resource_claim_template_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceClaimTemplate", + '200': "V1DeviceClass", + '201': "V1DeviceClass", '401': None, } return self.api_client._call_with_legacy_options( @@ -9219,11 +12240,14 @@ def read_namespaced_resource_claim_template_with_http_info( ) - def _read_namespaced_resource_claim_template_serialize( + def _replace_device_class_serialize( self, name, - namespace, + body, pretty, + dry_run, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -9247,16 +12271,28 @@ def _read_namespaced_resource_claim_template_serialize( # process the path parameters if name is not None: _path_params['name'] = name - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -9277,8 +12313,8 @@ def _read_namespaced_resource_claim_template_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', + method='PUT', + resource_path='/apis/resource.k8s.io/v1/deviceclasses/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9295,10 +12331,14 @@ def _read_namespaced_resource_claim_template_serialize( @validate_call(config={'defer_build': True}) - def read_resource_slice( + def replace_device_taint_rule( self, - name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: V1DeviceTaintRule, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -9314,15 +12354,23 @@ def read_resource_slice( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ResourceSlice: - """read_resource_slice + ) -> V1DeviceTaintRule: + """replace_device_taint_rule - read the specified ResourceSlice + replace the specified DeviceTaintRule - :param name: name of the ResourceSlice (required) + :param name: name of the DeviceTaintRule (required) :type name: str + :param body: (required) + :type body: V1DeviceTaintRule :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -9354,9 +12402,13 @@ def read_resource_slice( :return: Returns the result object. """ # noqa: E501 - _param = self._read_resource_slice_serialize( + _param = self._replace_device_taint_rule_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9364,7 +12416,8 @@ def read_resource_slice( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", '401': None, } return self.api_client._call_with_legacy_options( @@ -9378,10 +12431,14 @@ def read_resource_slice( @validate_call(config={'defer_build': True}) - def read_resource_slice_with_http_info( + def replace_device_taint_rule_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ResourceSlice")], + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: V1DeviceTaintRule, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -9397,15 +12454,23 @@ def read_resource_slice_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1ResourceSlice, int, Any]: - """read_resource_slice + ) -> Tuple[V1DeviceTaintRule, int, Any]: + """replace_device_taint_rule - read the specified ResourceSlice + replace the specified DeviceTaintRule - :param name: name of the ResourceSlice (required) + :param name: name of the DeviceTaintRule (required) :type name: str + :param body: (required) + :type body: V1DeviceTaintRule :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -9437,9 +12502,13 @@ def read_resource_slice_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._read_resource_slice_serialize( + _param = self._replace_device_taint_rule_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9447,7 +12516,8 @@ def read_resource_slice_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ResourceSlice", + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", '401': None, } return self.api_client._call_with_legacy_options( @@ -9460,10 +12530,14 @@ def read_resource_slice_with_http_info( ) - def _read_resource_slice_serialize( + def _replace_device_taint_rule_serialize( self, name, + body, pretty, + dry_run, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -9492,9 +12566,23 @@ def _read_resource_slice_serialize( _query_params.append(('pretty', pretty)) + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -9515,8 +12603,8 @@ def _read_resource_slice_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/apis/resource.k8s.io/v1/resourceslices/{name}', + method='PUT', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9533,10 +12621,10 @@ def _read_resource_slice_serialize( @validate_call(config={'defer_build': True}) - def replace_device_class( + def replace_device_taint_rule_status( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], - body: V1DeviceClass, + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: V1DeviceTaintRule, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -9556,15 +12644,15 @@ def replace_device_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceClass: - """replace_device_class + ) -> V1DeviceTaintRule: + """replace_device_taint_rule_status - replace the specified DeviceClass + replace status of the specified DeviceTaintRule - :param name: name of the DeviceClass (required) + :param name: name of the DeviceTaintRule (required) :type name: str :param body: (required) - :type body: V1DeviceClass + :type body: V1DeviceTaintRule :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -9604,7 +12692,7 @@ def replace_device_class( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_device_class_serialize( + _param = self._replace_device_taint_rule_status_serialize( name=name, body=body, pretty=pretty, @@ -9618,8 +12706,8 @@ def replace_device_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", - '201': "V1DeviceClass", + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", '401': None, } return self.api_client._call_with_legacy_options( @@ -9633,10 +12721,10 @@ def replace_device_class( @validate_call(config={'defer_build': True}) - def replace_device_class_with_http_info( + def replace_device_taint_rule_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the DeviceClass")], - body: V1DeviceClass, + name: Annotated[StrictStr, Field(description="name of the DeviceTaintRule")], + body: V1DeviceTaintRule, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -9656,15 +12744,15 @@ def replace_device_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1DeviceClass, int, Any]: - """replace_device_class + ) -> Tuple[V1DeviceTaintRule, int, Any]: + """replace_device_taint_rule_status - replace the specified DeviceClass + replace status of the specified DeviceTaintRule - :param name: name of the DeviceClass (required) + :param name: name of the DeviceTaintRule (required) :type name: str :param body: (required) - :type body: V1DeviceClass + :type body: V1DeviceTaintRule :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -9704,7 +12792,7 @@ def replace_device_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_device_class_serialize( + _param = self._replace_device_taint_rule_status_serialize( name=name, body=body, pretty=pretty, @@ -9718,8 +12806,8 @@ def replace_device_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceClass", - '201': "V1DeviceClass", + '200': "V1DeviceTaintRule", + '201': "V1DeviceTaintRule", '401': None, } return self.api_client._call_with_legacy_options( @@ -9732,7 +12820,7 @@ def replace_device_class_with_http_info( ) - def _replace_device_class_serialize( + def _replace_device_taint_rule_status_serialize( self, name, body, @@ -9806,7 +12894,7 @@ def _replace_device_class_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/apis/resource.k8s.io/v1/deviceclasses/{name}', + resource_path='/apis/resource.k8s.io/v1/devicetaintrules/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/kubernetes/client/api/resource_v1alpha3_api.py b/kubernetes/client/api/resource_v1alpha3_api.py index 368fc30fa7..7d2f339b6f 100644 --- a/kubernetes/client/api/resource_v1alpha3_api.py +++ b/kubernetes/client/api/resource_v1alpha3_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/resource_v1beta1_api.py b/kubernetes/client/api/resource_v1beta1_api.py index df90cc83ce..2b34c1c166 100644 --- a/kubernetes/client/api/resource_v1beta1_api.py +++ b/kubernetes/client/api/resource_v1beta1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/resource_v1beta2_api.py b/kubernetes/client/api/resource_v1beta2_api.py index 57e4dc17d3..0bf08d5244 100644 --- a/kubernetes/client/api/resource_v1beta2_api.py +++ b/kubernetes/client/api/resource_v1beta2_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/scheduling_api.py b/kubernetes/client/api/scheduling_api.py index 79ef569ab5..0c3ba5f2ac 100644 --- a/kubernetes/client/api/scheduling_api.py +++ b/kubernetes/client/api/scheduling_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/scheduling_v1_api.py b/kubernetes/client/api/scheduling_v1_api.py index a98af66170..420100cd92 100644 --- a/kubernetes/client/api/scheduling_v1_api.py +++ b/kubernetes/client/api/scheduling_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/networking_v1beta1_api.py b/kubernetes/client/api/scheduling_v1alpha3_api.py similarity index 50% rename from kubernetes/client/api/networking_v1beta1_api.py rename to kubernetes/client/api/scheduling_v1alpha3_api.py index 4103a9dbac..2b725dc79a 100644 --- a/kubernetes/client/api/networking_v1beta1_api.py +++ b/kubernetes/client/api/scheduling_v1alpha3_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,17 +21,19 @@ from kubernetes.client.models.v1_api_resource_list import V1APIResourceList from kubernetes.client.models.v1_delete_options import V1DeleteOptions from kubernetes.client.models.v1_status import V1Status -from kubernetes.client.models.v1beta1_ip_address import V1beta1IPAddress -from kubernetes.client.models.v1beta1_ip_address_list import V1beta1IPAddressList -from kubernetes.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR -from kubernetes.client.models.v1beta1_service_cidr_list import V1beta1ServiceCIDRList +from kubernetes.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup +from kubernetes.client.models.v1alpha3_composite_pod_group_list import V1alpha3CompositePodGroupList +from kubernetes.client.models.v1alpha3_pod_group import V1alpha3PodGroup +from kubernetes.client.models.v1alpha3_pod_group_list import V1alpha3PodGroupList +from kubernetes.client.models.v1alpha3_workload import V1alpha3Workload +from kubernetes.client.models.v1alpha3_workload_list import V1alpha3WorkloadList from kubernetes.client.api_client import ApiClient, RequestSerialized from kubernetes.client.api_response import ApiResponse from kubernetes.client.rest import RESTResponseType -class NetworkingV1beta1Api: +class SchedulingV1alpha3Api: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech @@ -65,9 +67,10 @@ def __exit__(self, exc_type, exc_value, traceback): @validate_call(config={'defer_build': True}) - def create_ip_address( + def create_namespaced_composite_pod_group( self, - body: V1beta1IPAddress, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3CompositePodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -87,13 +90,15 @@ def create_ip_address( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1IPAddress: - """create_ip_address + ) -> V1alpha3CompositePodGroup: + """create_namespaced_composite_pod_group - create an IPAddress + create a CompositePodGroup + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1IPAddress + :type body: V1alpha3CompositePodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -133,7 +138,8 @@ def create_ip_address( :return: Returns the result object. """ # noqa: E501 - _param = self._create_ip_address_serialize( + _param = self._create_namespaced_composite_pod_group_serialize( + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -146,9 +152,9 @@ def create_ip_address( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", - '201': "V1beta1IPAddress", - '202': "V1beta1IPAddress", + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '202': "V1alpha3CompositePodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -162,9 +168,10 @@ def create_ip_address( @validate_call(config={'defer_build': True}) - def create_ip_address_with_http_info( + def create_namespaced_composite_pod_group_with_http_info( self, - body: V1beta1IPAddress, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3CompositePodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -184,13 +191,15 @@ def create_ip_address_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1IPAddress, int, Any]: - """create_ip_address + ) -> Tuple[V1alpha3CompositePodGroup, int, Any]: + """create_namespaced_composite_pod_group - create an IPAddress + create a CompositePodGroup + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1IPAddress + :type body: V1alpha3CompositePodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -230,7 +239,8 @@ def create_ip_address_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_ip_address_serialize( + _param = self._create_namespaced_composite_pod_group_serialize( + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -243,9 +253,9 @@ def create_ip_address_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", - '201': "V1beta1IPAddress", - '202': "V1beta1IPAddress", + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '202': "V1alpha3CompositePodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -258,8 +268,9 @@ def create_ip_address_with_http_info( ) - def _create_ip_address_serialize( + def _create_namespaced_composite_pod_group_serialize( self, + namespace, body, pretty, dry_run, @@ -286,6 +297,8 @@ def _create_ip_address_serialize( _body_params: Optional[bytes] = None # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -329,7 +342,7 @@ def _create_ip_address_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/apis/networking.k8s.io/v1beta1/ipaddresses', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -346,9 +359,10 @@ def _create_ip_address_serialize( @validate_call(config={'defer_build': True}) - def create_service_cidr( + def create_namespaced_pod_group( self, - body: V1beta1ServiceCIDR, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -368,13 +382,15 @@ def create_service_cidr( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1ServiceCIDR: - """create_service_cidr + ) -> V1alpha3PodGroup: + """create_namespaced_pod_group - create a ServiceCIDR + create a PodGroup + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1ServiceCIDR + :type body: V1alpha3PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -414,7 +430,8 @@ def create_service_cidr( :return: Returns the result object. """ # noqa: E501 - _param = self._create_service_cidr_serialize( + _param = self._create_namespaced_pod_group_serialize( + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -427,9 +444,9 @@ def create_service_cidr( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", - '202': "V1beta1ServiceCIDR", + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '202': "V1alpha3PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -443,9 +460,10 @@ def create_service_cidr( @validate_call(config={'defer_build': True}) - def create_service_cidr_with_http_info( + def create_namespaced_pod_group_with_http_info( self, - body: V1beta1ServiceCIDR, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -465,13 +483,15 @@ def create_service_cidr_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1ServiceCIDR, int, Any]: - """create_service_cidr + ) -> Tuple[V1alpha3PodGroup, int, Any]: + """create_namespaced_pod_group - create a ServiceCIDR + create a PodGroup + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1ServiceCIDR + :type body: V1alpha3PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -511,7 +531,8 @@ def create_service_cidr_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_service_cidr_serialize( + _param = self._create_namespaced_pod_group_serialize( + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -524,9 +545,9 @@ def create_service_cidr_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", - '202': "V1beta1ServiceCIDR", + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '202': "V1alpha3PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -539,8 +560,9 @@ def create_service_cidr_with_http_info( ) - def _create_service_cidr_serialize( + def _create_namespaced_pod_group_serialize( self, + namespace, body, pretty, dry_run, @@ -567,6 +589,8 @@ def _create_service_cidr_serialize( _body_params: Optional[bytes] = None # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -610,7 +634,7 @@ def _create_service_cidr_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -627,24 +651,14 @@ def _create_service_cidr_serialize( @validate_call(config={'defer_build': True}) - def delete_collection_ip_address( + def create_namespaced_workload( self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3Workload, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -660,43 +674,23 @@ def delete_collection_ip_address( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1Status: - """delete_collection_ip_address + ) -> V1alpha3Workload: + """create_namespaced_workload - delete collection of IPAddress + create a Workload + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3Workload :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). :type pretty: str - :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. - :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -728,23 +722,13 @@ def delete_collection_ip_address( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_collection_ip_address_serialize( + _param = self._create_namespaced_workload_serialize( + namespace=namespace, + body=body, pretty=pretty, - _continue=_continue, dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -752,7 +736,9 @@ def delete_collection_ip_address( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", + '200': "V1alpha3Workload", + '201': "V1alpha3Workload", + '202': "V1alpha3Workload", '401': None, } return self.api_client._call_with_legacy_options( @@ -766,24 +752,14 @@ def delete_collection_ip_address( @validate_call(config={'defer_build': True}) - def delete_collection_ip_address_with_http_info( + def create_namespaced_workload_with_http_info( self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3Workload, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -799,43 +775,23 @@ def delete_collection_ip_address_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1Status, int, Any]: - """delete_collection_ip_address + ) -> Tuple[V1alpha3Workload, int, Any]: + """create_namespaced_workload - delete collection of IPAddress + create a Workload + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3Workload :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). :type pretty: str - :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. - :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -867,23 +823,13 @@ def delete_collection_ip_address_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_collection_ip_address_serialize( + _param = self._create_namespaced_workload_serialize( + namespace=namespace, + body=body, pretty=pretty, - _continue=_continue, dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -891,7 +837,9 @@ def delete_collection_ip_address_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", + '200': "V1alpha3Workload", + '201': "V1alpha3Workload", + '202': "V1alpha3Workload", '401': None, } return self.api_client._call_with_legacy_options( @@ -904,24 +852,14 @@ def delete_collection_ip_address_with_http_info( ) - def _delete_collection_ip_address_serialize( + def _create_namespaced_workload_serialize( self, + namespace, + body, pretty, - _continue, dry_run, - field_selector, - grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential, - label_selector, - limit, - orphan_dependents, - propagation_policy, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - body, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -943,66 +881,24 @@ def _delete_collection_ip_address_serialize( _body_params: Optional[bytes] = None # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if _continue is not None: - - _query_params.append(('continue', _continue)) - if dry_run is not None: _query_params.append(('dryRun', dry_run)) - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if grace_period_seconds is not None: - - _query_params.append(('gracePeriodSeconds', grace_period_seconds)) - - if ignore_store_read_error_with_cluster_breaking_potential is not None: - - _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if orphan_dependents is not None: - - _query_params.append(('orphanDependents', orphan_dependents)) - - if propagation_policy is not None: - - _query_params.append(('propagationPolicy', propagation_policy)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: + if field_manager is not None: - _query_params.append(('shardSelector', shard_selector)) + _query_params.append(('fieldManager', field_manager)) - if timeout_seconds is not None: + if field_validation is not None: - _query_params.append(('timeoutSeconds', timeout_seconds)) + _query_params.append(('fieldValidation', field_validation)) # process the header parameters # process the form parameters @@ -1029,8 +925,8 @@ def _delete_collection_ip_address_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/apis/networking.k8s.io/v1beta1/ipaddresses', + method='POST', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1047,8 +943,9 @@ def _delete_collection_ip_address_serialize( @validate_call(config={'defer_build': True}) - def delete_collection_service_cidr( + def delete_collection_namespaced_composite_pod_group( self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -1081,10 +978,12 @@ def delete_collection_service_cidr( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1Status: - """delete_collection_service_cidr + """delete_collection_namespaced_composite_pod_group - delete collection of ServiceCIDR + delete collection of CompositePodGroup + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :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. @@ -1148,7 +1047,8 @@ def delete_collection_service_cidr( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_collection_service_cidr_serialize( + _param = self._delete_collection_namespaced_composite_pod_group_serialize( + namespace=namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -1186,8 +1086,9 @@ def delete_collection_service_cidr( @validate_call(config={'defer_build': True}) - def delete_collection_service_cidr_with_http_info( + def delete_collection_namespaced_composite_pod_group_with_http_info( self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -1220,10 +1121,12 @@ def delete_collection_service_cidr_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Tuple[V1Status, int, Any]: - """delete_collection_service_cidr + """delete_collection_namespaced_composite_pod_group - delete collection of ServiceCIDR + delete collection of CompositePodGroup + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :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. @@ -1287,7 +1190,8 @@ def delete_collection_service_cidr_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_collection_service_cidr_serialize( + _param = self._delete_collection_namespaced_composite_pod_group_serialize( + namespace=namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, @@ -1324,8 +1228,9 @@ def delete_collection_service_cidr_with_http_info( ) - def _delete_collection_service_cidr_serialize( + def _delete_collection_namespaced_composite_pod_group_serialize( self, + namespace, pretty, _continue, dry_run, @@ -1363,6 +1268,8 @@ def _delete_collection_service_cidr_serialize( _body_params: Optional[bytes] = None # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -1450,7 +1357,7 @@ def _delete_collection_service_cidr_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1467,15 +1374,24 @@ def _delete_collection_service_cidr_serialize( @validate_call(config={'defer_build': True}) - def delete_ip_address( + def delete_collection_namespaced_pod_group( self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -1492,25 +1408,43 @@ def delete_ip_address( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """delete_ip_address + ) -> V1Status: + """delete_collection_namespaced_pod_group - delete an IPAddress + delete collection of PodGroup - :param name: name of the IPAddress (required) - :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. @@ -1544,14 +1478,23 @@ def delete_ip_address( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_ip_address_serialize( - name=name, + _param = self._delete_collection_namespaced_pod_group_serialize( + namespace=namespace, pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -1560,8 +1503,7 @@ def delete_ip_address( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '202': "object", + '200': "V1Status", '401': None, } return self.api_client._call_with_legacy_options( @@ -1575,17 +1517,26 @@ def delete_ip_address( @validate_call(config={'defer_build': True}) - def delete_ip_address_with_http_info( + def delete_collection_namespaced_pod_group_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - body: Optional[V1DeleteOptions] = None, - async_req: Optional[bool] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, _request_timeout: Union[ @@ -1600,25 +1551,43 @@ def delete_ip_address_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[object, int, Any]: - """delete_ip_address + ) -> Tuple[V1Status, int, Any]: + """delete_collection_namespaced_pod_group - delete an IPAddress + delete collection of PodGroup - :param name: name of the IPAddress (required) - :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. @@ -1652,14 +1621,23 @@ def delete_ip_address_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_ip_address_serialize( - name=name, + _param = self._delete_collection_namespaced_pod_group_serialize( + namespace=namespace, pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -1668,8 +1646,7 @@ def delete_ip_address_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '202': "object", + '200': "V1Status", '401': None, } return self.api_client._call_with_legacy_options( @@ -1682,15 +1659,24 @@ def delete_ip_address_with_http_info( ) - def _delete_ip_address_serialize( + def _delete_collection_namespaced_pod_group_serialize( self, - name, + namespace, pretty, + _continue, dry_run, + field_selector, grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, orphan_dependents, propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, body, _request_auth, _content_type, @@ -1713,17 +1699,25 @@ def _delete_ip_address_serialize( _body_params: Optional[bytes] = None # process the path parameters - if name is not None: - _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) + if _continue is not None: + + _query_params.append(('continue', _continue)) + if dry_run is not None: _query_params.append(('dryRun', dry_run)) + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + if grace_period_seconds is not None: _query_params.append(('gracePeriodSeconds', grace_period_seconds)) @@ -1732,6 +1726,14 @@ def _delete_ip_address_serialize( _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + if orphan_dependents is not None: _query_params.append(('orphanDependents', orphan_dependents)) @@ -1740,6 +1742,26 @@ def _delete_ip_address_serialize( _query_params.append(('propagationPolicy', propagation_policy)) + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + # process the header parameters # process the form parameters # process the body parameter @@ -1766,7 +1788,7 @@ def _delete_ip_address_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/networking.k8s.io/v1beta1/ipaddresses/{name}', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1783,15 +1805,24 @@ def _delete_ip_address_serialize( @validate_call(config={'defer_build': True}) - def delete_service_cidr( + def delete_collection_namespaced_workload( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -1808,25 +1839,43 @@ def delete_service_cidr( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """delete_service_cidr + ) -> V1Status: + """delete_collection_namespaced_workload - delete a ServiceCIDR + delete collection of Workload - :param name: name of the ServiceCIDR (required) - :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. @@ -1860,14 +1909,23 @@ def delete_service_cidr( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_service_cidr_serialize( - name=name, + _param = self._delete_collection_namespaced_workload_serialize( + namespace=namespace, pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -1876,8 +1934,7 @@ def delete_service_cidr( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '202': "object", + '200': "V1Status", '401': None, } return self.api_client._call_with_legacy_options( @@ -1891,15 +1948,24 @@ def delete_service_cidr( @validate_call(config={'defer_build': True}) - def delete_service_cidr_with_http_info( + def delete_collection_namespaced_workload_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -1916,25 +1982,43 @@ def delete_service_cidr_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[object, int, Any]: - """delete_service_cidr + ) -> Tuple[V1Status, int, Any]: + """delete_collection_namespaced_workload - delete a ServiceCIDR + delete collection of Workload - :param name: name of the ServiceCIDR (required) - :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. @@ -1968,14 +2052,23 @@ def delete_service_cidr_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_service_cidr_serialize( - name=name, + _param = self._delete_collection_namespaced_workload_serialize( + namespace=namespace, pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -1984,8 +2077,7 @@ def delete_service_cidr_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '202': "object", + '200': "V1Status", '401': None, } return self.api_client._call_with_legacy_options( @@ -1998,15 +2090,24 @@ def delete_service_cidr_with_http_info( ) - def _delete_service_cidr_serialize( + def _delete_collection_namespaced_workload_serialize( self, - name, + namespace, pretty, + _continue, dry_run, + field_selector, grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, orphan_dependents, propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, body, _request_auth, _content_type, @@ -2029,17 +2130,25 @@ def _delete_service_cidr_serialize( _body_params: Optional[bytes] = None # process the path parameters - if name is not None: - _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) + if _continue is not None: + + _query_params.append(('continue', _continue)) + if dry_run is not None: _query_params.append(('dryRun', dry_run)) + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + if grace_period_seconds is not None: _query_params.append(('gracePeriodSeconds', grace_period_seconds)) @@ -2048,6 +2157,14 @@ def _delete_service_cidr_serialize( _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + if orphan_dependents is not None: _query_params.append(('orphanDependents', orphan_dependents)) @@ -2056,6 +2173,26 @@ def _delete_service_cidr_serialize( _query_params.append(('propagationPolicy', propagation_policy)) + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + # process the header parameters # process the form parameters # process the body parameter @@ -2082,7 +2219,7 @@ def _delete_service_cidr_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs/{name}', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2099,8 +2236,17 @@ def _delete_service_cidr_serialize( @validate_call(config={'defer_build': True}) - def get_api_resources( + def delete_namespaced_composite_pod_group( self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -2116,11 +2262,29 @@ def get_api_resources( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1APIResourceList: - """get_api_resources + ) -> object: + """delete_namespaced_composite_pod_group - get available resources + delete a CompositePodGroup + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -2152,15 +2316,25 @@ def get_api_resources( :return: Returns the result object. """ # noqa: E501 - _param = self._get_api_resources_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) + _param = self._delete_namespaced_composite_pod_group_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1APIResourceList", + '200': "object", + '202': "object", '401': None, } return self.api_client._call_with_legacy_options( @@ -2174,8 +2348,17 @@ def get_api_resources( @validate_call(config={'defer_build': True}) - def get_api_resources_with_http_info( + def delete_namespaced_composite_pod_group_with_http_info( self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -2191,11 +2374,29 @@ def get_api_resources_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1APIResourceList, int, Any]: - """get_api_resources + ) -> Tuple[object, int, Any]: + """delete_namespaced_composite_pod_group - get available resources + delete a CompositePodGroup + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -2227,7 +2428,16 @@ def get_api_resources_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_api_resources_serialize( + _param = self._delete_namespaced_composite_pod_group_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2235,7 +2445,8 @@ def get_api_resources_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1APIResourceList", + '200': "object", + '202': "object", '401': None, } return self.api_client._call_with_legacy_options( @@ -2248,8 +2459,17 @@ def get_api_resources_with_http_info( ) - def _get_api_resources_serialize( + def _delete_namespaced_composite_pod_group_serialize( self, + name, + namespace, + pretty, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, _request_auth, _content_type, _headers, @@ -2271,10 +2491,40 @@ def _get_api_resources_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -2295,8 +2545,8 @@ def _get_api_resources_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/apis/networking.k8s.io/v1beta1/', + method='DELETE', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2313,20 +2563,17 @@ def _get_api_resources_serialize( @validate_call(config={'defer_build': True}) - def list_ip_address( + def delete_namespaced_pod_group( self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -2342,35 +2589,29 @@ def list_ip_address( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1IPAddressList: - """list_ip_address + ) -> object: + """delete_namespaced_pod_group - list or watch objects of kind IPAddress + delete a PodGroup + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -2402,19 +2643,16 @@ def list_ip_address( :return: Returns the result object. """ # noqa: E501 - _param = self._list_ip_address_serialize( + _param = self._delete_namespaced_pod_group_serialize( + name=name, + namespace=namespace, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2422,7 +2660,8 @@ def list_ip_address( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddressList", + '200': "object", + '202': "object", '401': None, } return self.api_client._call_with_legacy_options( @@ -2436,20 +2675,17 @@ def list_ip_address( @validate_call(config={'defer_build': True}) - def list_ip_address_with_http_info( + def delete_namespaced_pod_group_with_http_info( self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -2465,35 +2701,29 @@ def list_ip_address_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1IPAddressList, int, Any]: - """list_ip_address + ) -> Tuple[object, int, Any]: + """delete_namespaced_pod_group - list or watch objects of kind IPAddress + delete a PodGroup + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -2525,19 +2755,16 @@ def list_ip_address_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_ip_address_serialize( + _param = self._delete_namespaced_pod_group_serialize( + name=name, + namespace=namespace, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2545,7 +2772,8 @@ def list_ip_address_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddressList", + '200': "object", + '202': "object", '401': None, } return self.api_client._call_with_legacy_options( @@ -2558,24 +2786,21 @@ def list_ip_address_with_http_info( ) - def _list_ip_address_serialize( + def _delete_namespaced_pod_group_serialize( self, + name, + namespace, pretty, - allow_watch_bookmarks, - _continue, - field_selector, - label_selector, - limit, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - watch, - _request_auth, - _content_type, - _headers, - _host_index, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, + _request_auth, + _content_type, + _headers, + _host_index, ) -> RequestSerialized: _host = None @@ -2593,74 +2818,4520 @@ def _list_ip_address_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if allow_watch_bookmarks is not None: + if dry_run is not None: - _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + _query_params.append(('dryRun', dry_run)) - if _continue is not None: + if grace_period_seconds is not None: - _query_params.append(('continue', _continue)) + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) - if field_selector is not None: + if ignore_store_read_error_with_cluster_breaking_potential is not None: - _query_params.append(('fieldSelector', field_selector)) + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) - if label_selector is not None: + if orphan_dependents is not None: - _query_params.append(('labelSelector', label_selector)) + _query_params.append(('orphanDependents', orphan_dependents)) - if limit is not None: + if propagation_policy is not None: - _query_params.append(('limit', limit)) + _query_params.append(('propagationPolicy', propagation_policy)) - if resource_version is not None: + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body - _query_params.append(('resourceVersion', resource_version)) - if resource_version_match is not None: + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) - _query_params.append(('resourceVersionMatch', resource_version_match)) - if send_initial_events is not None: + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] - _query_params.append(('sendInitialEvents', send_initial_events)) + return self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) - if shard_selector is not None: - _query_params.append(('shardSelector', shard_selector)) - if timeout_seconds is not None: - _query_params.append(('timeoutSeconds', timeout_seconds)) + @validate_call(config={'defer_build': True}) + def delete_namespaced_workload( + self, + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """delete_namespaced_workload - if watch is not None: + delete a Workload - _query_params.append(('watch', watch)) + :param name: name of the Workload (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 - # process the header parameters - # process the form parameters - # process the body parameter + _param = self._delete_namespaced_workload_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor', - 'application/json;stream=watch', - 'application/vnd.kubernetes.protobuf;stream=watch', - 'application/cbor-seq' - ] + + @validate_call(config={'defer_build': True}) + def delete_namespaced_workload_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, + ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, + propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + body: Optional[V1DeleteOptions] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[object, int, Any]: + """delete_namespaced_workload + + delete a Workload + + :param name: name of the Workload (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param grace_period_seconds: 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. + :type grace_period_seconds: int + :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param orphan_dependents: 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 orphan_dependents: bool + :param propagation_policy: 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 propagation_policy: str + :param body: + :type body: V1DeleteOptions + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_namespaced_workload_serialize( + name=name, + namespace=namespace, + pretty=pretty, + dry_run=dry_run, + grace_period_seconds=grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents=orphan_dependents, + propagation_policy=propagation_policy, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '202': "object", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _delete_namespaced_workload_serialize( + self, + name, + namespace, + pretty, + dry_run, + grace_period_seconds, + ignore_store_read_error_with_cluster_breaking_potential, + orphan_dependents, + propagation_policy, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if grace_period_seconds is not None: + + _query_params.append(('gracePeriodSeconds', grace_period_seconds)) + + if ignore_store_read_error_with_cluster_breaking_potential is not None: + + _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + + if orphan_dependents is not None: + + _query_params.append(('orphanDependents', orphan_dependents)) + + if propagation_policy is not None: + + _query_params.append(('propagationPolicy', propagation_policy)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def get_api_resources( + self, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1APIResourceList: + """get_api_resources + + get available resources + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_resources_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1APIResourceList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def get_api_resources_with_http_info( + self, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1APIResourceList, int, Any]: + """get_api_resources + + get available resources + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_resources_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1APIResourceList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _get_api_resources_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def list_composite_pod_group_for_all_namespaces( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3CompositePodGroupList: + """list_composite_pod_group_for_all_namespaces + + list or watch objects of kind CompositePodGroup + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_composite_pod_group_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroupList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def list_composite_pod_group_for_all_namespaces_with_http_info( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1alpha3CompositePodGroupList, int, Any]: + """list_composite_pod_group_for_all_namespaces + + list or watch objects of kind CompositePodGroup + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_composite_pod_group_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroupList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _list_composite_pod_group_for_all_namespaces_serialize( + self, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + pretty, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/compositepodgroups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def list_namespaced_composite_pod_group( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3CompositePodGroupList: + """list_namespaced_composite_pod_group + + list or watch objects of kind CompositePodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_namespaced_composite_pod_group_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroupList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def list_namespaced_composite_pod_group_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1alpha3CompositePodGroupList, int, Any]: + """list_namespaced_composite_pod_group + + list or watch objects of kind CompositePodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_namespaced_composite_pod_group_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroupList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _list_namespaced_composite_pod_group_serialize( + self, + namespace, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def list_namespaced_pod_group( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3PodGroupList: + """list_namespaced_pod_group + + list or watch objects of kind PodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_namespaced_pod_group_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroupList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def list_namespaced_pod_group_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1alpha3PodGroupList, int, Any]: + """list_namespaced_pod_group + + list or watch objects of kind PodGroup + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_namespaced_pod_group_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroupList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _list_namespaced_pod_group_serialize( + self, + namespace, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def list_namespaced_workload( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3WorkloadList: + """list_namespaced_workload + + list or watch objects of kind Workload + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_namespaced_workload_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3WorkloadList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def list_namespaced_workload_with_http_info( + self, + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1alpha3WorkloadList, int, Any]: + """list_namespaced_workload + + list or watch objects of kind Workload + + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_namespaced_workload_serialize( + namespace=namespace, + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3WorkloadList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _list_namespaced_workload_serialize( + self, + namespace, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def list_pod_group_for_all_namespaces( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3PodGroupList: + """list_pod_group_for_all_namespaces + + list or watch objects of kind PodGroup + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_pod_group_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroupList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def list_pod_group_for_all_namespaces_with_http_info( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1alpha3PodGroupList, int, Any]: + """list_pod_group_for_all_namespaces + + list or watch objects of kind PodGroup + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_pod_group_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroupList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _list_pod_group_for_all_namespaces_serialize( + self, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + pretty, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/podgroups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def list_workload_for_all_namespaces( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3WorkloadList: + """list_workload_for_all_namespaces + + list or watch objects of kind Workload + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_workload_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3WorkloadList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def list_workload_for_all_namespaces_with_http_info( + self, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1alpha3WorkloadList, int, Any]: + """list_workload_for_all_namespaces + + list or watch objects of kind Workload + + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :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). + :type pretty: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_workload_for_all_namespaces_serialize( + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + pretty=pretty, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3WorkloadList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _list_workload_for_all_namespaces_serialize( + self, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + pretty, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/workloads', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_composite_pod_group( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3CompositePodGroup: + """patch_namespaced_composite_pod_group + + partially update the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_composite_pod_group_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_composite_pod_group_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1alpha3CompositePodGroup, int, Any]: + """patch_namespaced_composite_pod_group + + partially update the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_composite_pod_group_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_namespaced_composite_pod_group_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_composite_pod_group_status( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3CompositePodGroup: + """patch_namespaced_composite_pod_group_status + + partially update status of the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_composite_pod_group_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_composite_pod_group_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1alpha3CompositePodGroup, int, Any]: + """patch_namespaced_composite_pod_group_status + + partially update status of the specified CompositePodGroup + + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_composite_pod_group_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_namespaced_composite_pod_group_status_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_pod_group( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3PodGroup: + """patch_namespaced_pod_group + + partially update the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_pod_group_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_pod_group_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1alpha3PodGroup, int, Any]: + """patch_namespaced_pod_group + + partially update the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_pod_group_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_namespaced_pod_group_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_pod_group_status( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3PodGroup: + """patch_namespaced_pod_group_status + + partially update status of the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_pod_group_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_pod_group_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1alpha3PodGroup, int, Any]: + """patch_namespaced_pod_group_status + + partially update status of the specified PodGroup + + :param name: name of the PodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_pod_group_status_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_namespaced_pod_group_status_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_workload( + self, + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1alpha3Workload: + """patch_namespaced_workload + + partially update the specified Workload + + :param name: name of the Workload (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_workload_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3Workload", + '201': "V1alpha3Workload", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_namespaced_workload_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1alpha3Workload, int, Any]: + """patch_namespaced_workload + + partially update the specified Workload + + :param name: name of the Workload (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_namespaced_workload_serialize( + name=name, + namespace=namespace, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1alpha3Workload", + '201': "V1alpha3Workload", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_namespaced_workload_serialize( + self, + name, + namespace, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) ) - + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2668,8 +7339,8 @@ def _list_ip_address_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/apis/networking.k8s.io/v1beta1/ipaddresses', + method='PATCH', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2686,20 +7357,11 @@ def _list_ip_address_serialize( @validate_call(config={'defer_build': True}) - def list_service_cidr( + def read_namespaced_composite_pod_group( self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -2715,35 +7377,17 @@ def list_service_cidr( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1ServiceCIDRList: - """list_service_cidr + ) -> V1alpha3CompositePodGroup: + """read_namespaced_composite_pod_group - list or watch objects of kind ServiceCIDR + read the specified CompositePodGroup + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -2775,19 +7419,10 @@ def list_service_cidr( :return: Returns the result object. """ # noqa: E501 - _param = self._list_service_cidr_serialize( + _param = self._read_namespaced_composite_pod_group_serialize( + name=name, + namespace=namespace, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2795,7 +7430,7 @@ def list_service_cidr( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDRList", + '200': "V1alpha3CompositePodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -2809,20 +7444,11 @@ def list_service_cidr( @validate_call(config={'defer_build': True}) - def list_service_cidr_with_http_info( + def read_namespaced_composite_pod_group_with_http_info( self, + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -2838,35 +7464,17 @@ def list_service_cidr_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1ServiceCIDRList, int, Any]: - """list_service_cidr + ) -> Tuple[V1alpha3CompositePodGroup, int, Any]: + """read_namespaced_composite_pod_group - list or watch objects of kind ServiceCIDR + read the specified CompositePodGroup + :param name: name of the CompositePodGroup (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -2898,19 +7506,10 @@ def list_service_cidr_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_service_cidr_serialize( + _param = self._read_namespaced_composite_pod_group_serialize( + name=name, + namespace=namespace, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2918,7 +7517,7 @@ def list_service_cidr_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDRList", + '200': "V1alpha3CompositePodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -2931,20 +7530,11 @@ def list_service_cidr_with_http_info( ) - def _list_service_cidr_serialize( + def _read_namespaced_composite_pod_group_serialize( self, + name, + namespace, pretty, - allow_watch_bookmarks, - _continue, - field_selector, - label_selector, - limit, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - watch, _request_auth, _content_type, _headers, @@ -2966,55 +7556,15 @@ def _list_service_cidr_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if allow_watch_bookmarks is not None: - - _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) - - if _continue is not None: - - _query_params.append(('continue', _continue)) - - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: - - _query_params.append(('shardSelector', shard_selector)) - - if timeout_seconds is not None: - - _query_params.append(('timeoutSeconds', timeout_seconds)) - - if watch is not None: - - _query_params.append(('watch', watch)) - # process the header parameters # process the form parameters # process the body parameter @@ -3027,10 +7577,7 @@ def _list_service_cidr_serialize( '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' ] ) @@ -3042,7 +7589,7 @@ def _list_service_cidr_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3059,15 +7606,11 @@ def _list_service_cidr_serialize( @validate_call(config={'defer_build': True}) - def patch_ip_address( + def read_namespaced_composite_pod_group_status( self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -3083,25 +7626,17 @@ def patch_ip_address( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1IPAddress: - """patch_ip_address + ) -> V1alpha3CompositePodGroup: + """read_namespaced_composite_pod_group_status - partially update the specified IPAddress + read status of the specified CompositePodGroup - :param name: name of the IPAddress (required) + :param name: name of the CompositePodGroup (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -3133,14 +7668,10 @@ def patch_ip_address( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_ip_address_serialize( + _param = self._read_namespaced_composite_pod_group_status_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3148,8 +7679,7 @@ def patch_ip_address( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", - '201': "V1beta1IPAddress", + '200': "V1alpha3CompositePodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -3163,15 +7693,11 @@ def patch_ip_address( @validate_call(config={'defer_build': True}) - def patch_ip_address_with_http_info( + def read_namespaced_composite_pod_group_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -3187,25 +7713,17 @@ def patch_ip_address_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1IPAddress, int, Any]: - """patch_ip_address + ) -> Tuple[V1alpha3CompositePodGroup, int, Any]: + """read_namespaced_composite_pod_group_status - partially update the specified IPAddress + read status of the specified CompositePodGroup - :param name: name of the IPAddress (required) + :param name: name of the CompositePodGroup (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -3237,14 +7755,10 @@ def patch_ip_address_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_ip_address_serialize( + _param = self._read_namespaced_composite_pod_group_status_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3252,8 +7766,7 @@ def patch_ip_address_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", - '201': "V1beta1IPAddress", + '200': "V1alpha3CompositePodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -3266,15 +7779,11 @@ def patch_ip_address_with_http_info( ) - def _patch_ip_address_serialize( + def _read_namespaced_composite_pod_group_status_serialize( self, name, - body, + namespace, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -3298,32 +7807,16 @@ def _patch_ip_address_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -3337,23 +7830,6 @@ def _patch_ip_address_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3361,8 +7837,8 @@ def _patch_ip_address_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/networking.k8s.io/v1beta1/ipaddresses/{name}', + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3379,15 +7855,11 @@ def _patch_ip_address_serialize( @validate_call(config={'defer_build': True}) - def patch_service_cidr( + def read_namespaced_pod_group( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -3403,25 +7875,17 @@ def patch_service_cidr( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1ServiceCIDR: - """patch_service_cidr + ) -> V1alpha3PodGroup: + """read_namespaced_pod_group - partially update the specified ServiceCIDR + read the specified PodGroup - :param name: name of the ServiceCIDR (required) + :param name: name of the PodGroup (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -3453,14 +7917,10 @@ def patch_service_cidr( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_service_cidr_serialize( + _param = self._read_namespaced_pod_group_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3468,8 +7928,7 @@ def patch_service_cidr( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", + '200': "V1alpha3PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -3483,15 +7942,11 @@ def patch_service_cidr( @validate_call(config={'defer_build': True}) - def patch_service_cidr_with_http_info( + def read_namespaced_pod_group_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -3507,25 +7962,17 @@ def patch_service_cidr_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1ServiceCIDR, int, Any]: - """patch_service_cidr + ) -> Tuple[V1alpha3PodGroup, int, Any]: + """read_namespaced_pod_group - partially update the specified ServiceCIDR + read the specified PodGroup - :param name: name of the ServiceCIDR (required) + :param name: name of the PodGroup (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -3557,14 +8004,10 @@ def patch_service_cidr_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_service_cidr_serialize( + _param = self._read_namespaced_pod_group_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3572,8 +8015,7 @@ def patch_service_cidr_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", + '200': "V1alpha3PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -3586,15 +8028,11 @@ def patch_service_cidr_with_http_info( ) - def _patch_service_cidr_serialize( + def _read_namespaced_pod_group_serialize( self, name, - body, + namespace, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -3618,32 +8056,16 @@ def _patch_service_cidr_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -3657,23 +8079,6 @@ def _patch_service_cidr_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3681,8 +8086,8 @@ def _patch_service_cidr_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs/{name}', + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3699,15 +8104,11 @@ def _patch_service_cidr_serialize( @validate_call(config={'defer_build': True}) - def patch_service_cidr_status( + def read_namespaced_pod_group_status( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -3723,25 +8124,17 @@ def patch_service_cidr_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1ServiceCIDR: - """patch_service_cidr_status + ) -> V1alpha3PodGroup: + """read_namespaced_pod_group_status - partially update status of the specified ServiceCIDR + read status of the specified PodGroup - :param name: name of the ServiceCIDR (required) + :param name: name of the PodGroup (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -3773,14 +8166,10 @@ def patch_service_cidr_status( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_service_cidr_status_serialize( + _param = self._read_namespaced_pod_group_status_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3788,8 +8177,7 @@ def patch_service_cidr_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", + '200': "V1alpha3PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -3803,15 +8191,11 @@ def patch_service_cidr_status( @validate_call(config={'defer_build': True}) - def patch_service_cidr_status_with_http_info( + def read_namespaced_pod_group_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -3827,25 +8211,17 @@ def patch_service_cidr_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1ServiceCIDR, int, Any]: - """patch_service_cidr_status + ) -> Tuple[V1alpha3PodGroup, int, Any]: + """read_namespaced_pod_group_status - partially update status of the specified ServiceCIDR + read status of the specified PodGroup - :param name: name of the ServiceCIDR (required) + :param name: name of the PodGroup (required) :type name: str - :param body: (required) - :type body: object + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -3877,14 +8253,10 @@ def patch_service_cidr_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_service_cidr_status_serialize( + _param = self._read_namespaced_pod_group_status_serialize( name=name, - body=body, + namespace=namespace, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3892,8 +8264,7 @@ def patch_service_cidr_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", + '200': "V1alpha3PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -3906,15 +8277,11 @@ def patch_service_cidr_status_with_http_info( ) - def _patch_service_cidr_status_serialize( + def _read_namespaced_pod_group_status_serialize( self, name, - body, + namespace, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -3938,32 +8305,16 @@ def _patch_service_cidr_status_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -3977,23 +8328,6 @@ def _patch_service_cidr_status_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4001,8 +8335,8 @@ def _patch_service_cidr_status_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status', + method='GET', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4019,9 +8353,10 @@ def _patch_service_cidr_status_serialize( @validate_call(config={'defer_build': True}) - def read_ip_address( + def read_namespaced_workload( self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -4038,13 +8373,15 @@ def read_ip_address( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1IPAddress: - """read_ip_address + ) -> V1alpha3Workload: + """read_namespaced_workload - read the specified IPAddress + read the specified Workload - :param name: name of the IPAddress (required) + :param name: name of the Workload (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :param async_req: Whether to execute the request asynchronously. @@ -4078,8 +8415,9 @@ def read_ip_address( :return: Returns the result object. """ # noqa: E501 - _param = self._read_ip_address_serialize( + _param = self._read_namespaced_workload_serialize( name=name, + namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -4088,7 +8426,7 @@ def read_ip_address( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", + '200': "V1alpha3Workload", '401': None, } return self.api_client._call_with_legacy_options( @@ -4102,9 +8440,10 @@ def read_ip_address( @validate_call(config={'defer_build': True}) - def read_ip_address_with_http_info( + def read_namespaced_workload_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -4121,13 +8460,15 @@ def read_ip_address_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1IPAddress, int, Any]: - """read_ip_address + ) -> Tuple[V1alpha3Workload, int, Any]: + """read_namespaced_workload - read the specified IPAddress + read the specified Workload - :param name: name of the IPAddress (required) + :param name: name of the Workload (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :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). :type pretty: str :param async_req: Whether to execute the request asynchronously. @@ -4161,8 +8502,9 @@ def read_ip_address_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._read_ip_address_serialize( + _param = self._read_namespaced_workload_serialize( name=name, + namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -4171,7 +8513,7 @@ def read_ip_address_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", + '200': "V1alpha3Workload", '401': None, } return self.api_client._call_with_legacy_options( @@ -4184,9 +8526,10 @@ def read_ip_address_with_http_info( ) - def _read_ip_address_serialize( + def _read_namespaced_workload_serialize( self, name, + namespace, pretty, _request_auth, _content_type, @@ -4211,6 +8554,8 @@ def _read_ip_address_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -4240,7 +8585,7 @@ def _read_ip_address_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/networking.k8s.io/v1beta1/ipaddresses/{name}', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4257,10 +8602,15 @@ def _read_ip_address_serialize( @validate_call(config={'defer_build': True}) - def read_service_cidr( + def replace_namespaced_composite_pod_group( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3CompositePodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -4276,15 +8626,25 @@ def read_service_cidr( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1ServiceCIDR: - """read_service_cidr + ) -> V1alpha3CompositePodGroup: + """replace_namespaced_composite_pod_group - read the specified ServiceCIDR + replace the specified CompositePodGroup - :param name: name of the ServiceCIDR (required) + :param name: name of the CompositePodGroup (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3CompositePodGroup :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -4316,9 +8676,14 @@ def read_service_cidr( :return: Returns the result object. """ # noqa: E501 - _param = self._read_service_cidr_serialize( + _param = self._replace_namespaced_composite_pod_group_serialize( name=name, + namespace=namespace, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4326,7 +8691,8 @@ def read_service_cidr( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -4340,10 +8706,15 @@ def read_service_cidr( @validate_call(config={'defer_build': True}) - def read_service_cidr_with_http_info( + def replace_namespaced_composite_pod_group_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3CompositePodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -4359,15 +8730,25 @@ def read_service_cidr_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1ServiceCIDR, int, Any]: - """read_service_cidr + ) -> Tuple[V1alpha3CompositePodGroup, int, Any]: + """replace_namespaced_composite_pod_group - read the specified ServiceCIDR + replace the specified CompositePodGroup - :param name: name of the ServiceCIDR (required) + :param name: name of the CompositePodGroup (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3CompositePodGroup :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -4399,9 +8780,14 @@ def read_service_cidr_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._read_service_cidr_serialize( + _param = self._replace_namespaced_composite_pod_group_serialize( name=name, + namespace=namespace, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4409,7 +8795,8 @@ def read_service_cidr_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -4422,10 +8809,15 @@ def read_service_cidr_with_http_info( ) - def _read_service_cidr_serialize( + def _replace_namespaced_composite_pod_group_serialize( self, name, + namespace, + body, pretty, + dry_run, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -4449,14 +8841,30 @@ def _read_service_cidr_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -4477,8 +8885,8 @@ def _read_service_cidr_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs/{name}', + method='PUT', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4495,10 +8903,15 @@ def _read_service_cidr_serialize( @validate_call(config={'defer_build': True}) - def read_service_cidr_status( + def replace_namespaced_composite_pod_group_status( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3CompositePodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -4514,15 +8927,25 @@ def read_service_cidr_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1ServiceCIDR: - """read_service_cidr_status + ) -> V1alpha3CompositePodGroup: + """replace_namespaced_composite_pod_group_status - read status of the specified ServiceCIDR + replace status of the specified CompositePodGroup - :param name: name of the ServiceCIDR (required) + :param name: name of the CompositePodGroup (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3CompositePodGroup :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -4554,9 +8977,14 @@ def read_service_cidr_status( :return: Returns the result object. """ # noqa: E501 - _param = self._read_service_cidr_status_serialize( + _param = self._replace_namespaced_composite_pod_group_status_serialize( name=name, + namespace=namespace, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4564,7 +8992,8 @@ def read_service_cidr_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -4578,10 +9007,15 @@ def read_service_cidr_status( @validate_call(config={'defer_build': True}) - def read_service_cidr_status_with_http_info( + def replace_namespaced_composite_pod_group_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], + name: Annotated[StrictStr, Field(description="name of the CompositePodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3CompositePodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -4597,15 +9031,25 @@ def read_service_cidr_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1ServiceCIDR, int, Any]: - """read_service_cidr_status + ) -> Tuple[V1alpha3CompositePodGroup, int, Any]: + """replace_namespaced_composite_pod_group_status - read status of the specified ServiceCIDR + replace status of the specified CompositePodGroup - :param name: name of the ServiceCIDR (required) + :param name: name of the CompositePodGroup (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :param body: (required) + :type body: V1alpha3CompositePodGroup :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -4637,9 +9081,14 @@ def read_service_cidr_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._read_service_cidr_status_serialize( + _param = self._replace_namespaced_composite_pod_group_status_serialize( name=name, + namespace=namespace, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4647,7 +9096,8 @@ def read_service_cidr_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", + '200': "V1alpha3CompositePodGroup", + '201': "V1alpha3CompositePodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -4660,10 +9110,15 @@ def read_service_cidr_status_with_http_info( ) - def _read_service_cidr_status_serialize( + def _replace_namespaced_composite_pod_group_status_serialize( self, name, + namespace, + body, pretty, + dry_run, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -4687,14 +9142,30 @@ def _read_service_cidr_status_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -4715,8 +9186,8 @@ def _read_service_cidr_status_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status', + method='PUT', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4733,10 +9204,11 @@ def _read_service_cidr_status_serialize( @validate_call(config={'defer_build': True}) - def replace_ip_address( + def replace_namespaced_pod_group( self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], - body: V1beta1IPAddress, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -4756,15 +9228,17 @@ def replace_ip_address( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1IPAddress: - """replace_ip_address + ) -> V1alpha3PodGroup: + """replace_namespaced_pod_group - replace the specified IPAddress + replace the specified PodGroup - :param name: name of the IPAddress (required) + :param name: name of the PodGroup (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1IPAddress + :type body: V1alpha3PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -4804,8 +9278,9 @@ def replace_ip_address( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_ip_address_serialize( + _param = self._replace_namespaced_pod_group_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -4818,8 +9293,8 @@ def replace_ip_address( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", - '201': "V1beta1IPAddress", + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -4833,10 +9308,11 @@ def replace_ip_address( @validate_call(config={'defer_build': True}) - def replace_ip_address_with_http_info( + def replace_namespaced_pod_group_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the IPAddress")], - body: V1beta1IPAddress, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -4856,15 +9332,17 @@ def replace_ip_address_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1IPAddress, int, Any]: - """replace_ip_address + ) -> Tuple[V1alpha3PodGroup, int, Any]: + """replace_namespaced_pod_group - replace the specified IPAddress + replace the specified PodGroup - :param name: name of the IPAddress (required) + :param name: name of the PodGroup (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1IPAddress + :type body: V1alpha3PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -4904,8 +9382,9 @@ def replace_ip_address_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_ip_address_serialize( + _param = self._replace_namespaced_pod_group_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -4918,8 +9397,8 @@ def replace_ip_address_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1IPAddress", - '201': "V1beta1IPAddress", + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -4932,9 +9411,10 @@ def replace_ip_address_with_http_info( ) - def _replace_ip_address_serialize( + def _replace_namespaced_pod_group_serialize( self, name, + namespace, body, pretty, dry_run, @@ -4963,6 +9443,8 @@ def _replace_ip_address_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -5006,7 +9488,7 @@ def _replace_ip_address_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/apis/networking.k8s.io/v1beta1/ipaddresses/{name}', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5023,10 +9505,11 @@ def _replace_ip_address_serialize( @validate_call(config={'defer_build': True}) - def replace_service_cidr( + def replace_namespaced_pod_group_status( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - body: V1beta1ServiceCIDR, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -5046,15 +9529,17 @@ def replace_service_cidr( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1ServiceCIDR: - """replace_service_cidr + ) -> V1alpha3PodGroup: + """replace_namespaced_pod_group_status - replace the specified ServiceCIDR + replace status of the specified PodGroup - :param name: name of the ServiceCIDR (required) + :param name: name of the PodGroup (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1ServiceCIDR + :type body: V1alpha3PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -5094,8 +9579,9 @@ def replace_service_cidr( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_service_cidr_serialize( + _param = self._replace_namespaced_pod_group_status_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -5108,8 +9594,8 @@ def replace_service_cidr( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -5123,10 +9609,11 @@ def replace_service_cidr( @validate_call(config={'defer_build': True}) - def replace_service_cidr_with_http_info( + def replace_namespaced_pod_group_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - body: V1beta1ServiceCIDR, + name: Annotated[StrictStr, Field(description="name of the PodGroup")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -5146,15 +9633,17 @@ def replace_service_cidr_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1ServiceCIDR, int, Any]: - """replace_service_cidr + ) -> Tuple[V1alpha3PodGroup, int, Any]: + """replace_namespaced_pod_group_status - replace the specified ServiceCIDR + replace status of the specified PodGroup - :param name: name of the ServiceCIDR (required) + :param name: name of the PodGroup (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1ServiceCIDR + :type body: V1alpha3PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -5194,8 +9683,9 @@ def replace_service_cidr_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_service_cidr_serialize( + _param = self._replace_namespaced_pod_group_status_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -5208,8 +9698,8 @@ def replace_service_cidr_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", + '200': "V1alpha3PodGroup", + '201': "V1alpha3PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -5222,9 +9712,10 @@ def replace_service_cidr_with_http_info( ) - def _replace_service_cidr_serialize( + def _replace_namespaced_pod_group_status_serialize( self, name, + namespace, body, pretty, dry_run, @@ -5253,6 +9744,8 @@ def _replace_service_cidr_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -5296,7 +9789,7 @@ def _replace_service_cidr_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs/{name}', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5313,10 +9806,11 @@ def _replace_service_cidr_serialize( @validate_call(config={'defer_build': True}) - def replace_service_cidr_status( + def replace_namespaced_workload( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - body: V1beta1ServiceCIDR, + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3Workload, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -5336,15 +9830,17 @@ def replace_service_cidr_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1ServiceCIDR: - """replace_service_cidr_status + ) -> V1alpha3Workload: + """replace_namespaced_workload - replace status of the specified ServiceCIDR + replace the specified Workload - :param name: name of the ServiceCIDR (required) + :param name: name of the Workload (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1ServiceCIDR + :type body: V1alpha3Workload :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -5384,8 +9880,9 @@ def replace_service_cidr_status( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_service_cidr_status_serialize( + _param = self._replace_namespaced_workload_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -5398,8 +9895,8 @@ def replace_service_cidr_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", + '200': "V1alpha3Workload", + '201': "V1alpha3Workload", '401': None, } return self.api_client._call_with_legacy_options( @@ -5413,10 +9910,11 @@ def replace_service_cidr_status( @validate_call(config={'defer_build': True}) - def replace_service_cidr_status_with_http_info( + def replace_namespaced_workload_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ServiceCIDR")], - body: V1beta1ServiceCIDR, + name: Annotated[StrictStr, Field(description="name of the Workload")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + body: V1alpha3Workload, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -5436,15 +9934,17 @@ def replace_service_cidr_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1ServiceCIDR, int, Any]: - """replace_service_cidr_status + ) -> Tuple[V1alpha3Workload, int, Any]: + """replace_namespaced_workload - replace status of the specified ServiceCIDR + replace the specified Workload - :param name: name of the ServiceCIDR (required) + :param name: name of the Workload (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) - :type body: V1beta1ServiceCIDR + :type body: V1alpha3Workload :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -5484,8 +9984,9 @@ def replace_service_cidr_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_service_cidr_status_serialize( + _param = self._replace_namespaced_workload_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -5498,8 +9999,8 @@ def replace_service_cidr_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1ServiceCIDR", - '201': "V1beta1ServiceCIDR", + '200': "V1alpha3Workload", + '201': "V1alpha3Workload", '401': None, } return self.api_client._call_with_legacy_options( @@ -5512,9 +10013,10 @@ def replace_service_cidr_status_with_http_info( ) - def _replace_service_cidr_status_serialize( + def _replace_namespaced_workload_serialize( self, name, + namespace, body, pretty, dry_run, @@ -5543,6 +10045,8 @@ def _replace_service_cidr_status_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -5586,7 +10090,7 @@ def _replace_service_cidr_status_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status', + resource_path='/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/kubernetes/client/api/scheduling_v1alpha2_api.py b/kubernetes/client/api/scheduling_v1beta1_api.py similarity index 98% rename from kubernetes/client/api/scheduling_v1alpha2_api.py rename to kubernetes/client/api/scheduling_v1beta1_api.py index dd63a825ce..87d3ad6134 100644 --- a/kubernetes/client/api/scheduling_v1alpha2_api.py +++ b/kubernetes/client/api/scheduling_v1beta1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,17 +21,17 @@ from kubernetes.client.models.v1_api_resource_list import V1APIResourceList from kubernetes.client.models.v1_delete_options import V1DeleteOptions from kubernetes.client.models.v1_status import V1Status -from kubernetes.client.models.v1alpha2_pod_group import V1alpha2PodGroup -from kubernetes.client.models.v1alpha2_pod_group_list import V1alpha2PodGroupList -from kubernetes.client.models.v1alpha2_workload import V1alpha2Workload -from kubernetes.client.models.v1alpha2_workload_list import V1alpha2WorkloadList +from kubernetes.client.models.v1beta1_pod_group import V1beta1PodGroup +from kubernetes.client.models.v1beta1_pod_group_list import V1beta1PodGroupList +from kubernetes.client.models.v1beta1_workload import V1beta1Workload +from kubernetes.client.models.v1beta1_workload_list import V1beta1WorkloadList from kubernetes.client.api_client import ApiClient, RequestSerialized from kubernetes.client.api_response import ApiResponse from kubernetes.client.rest import RESTResponseType -class SchedulingV1alpha2Api: +class SchedulingV1beta1Api: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech @@ -68,7 +68,7 @@ def __exit__(self, exc_type, exc_value, traceback): def create_namespaced_pod_group( self, namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2PodGroup, + body: V1beta1PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -88,7 +88,7 @@ def create_namespaced_pod_group( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2PodGroup: + ) -> V1beta1PodGroup: """create_namespaced_pod_group create a PodGroup @@ -96,7 +96,7 @@ def create_namespaced_pod_group( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2PodGroup + :type body: V1beta1PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -150,9 +150,9 @@ def create_namespaced_pod_group( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", - '202': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", + '202': "V1beta1PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -169,7 +169,7 @@ def create_namespaced_pod_group( def create_namespaced_pod_group_with_http_info( self, namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2PodGroup, + body: V1beta1PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -189,7 +189,7 @@ def create_namespaced_pod_group_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha2PodGroup, int, Any]: + ) -> Tuple[V1beta1PodGroup, int, Any]: """create_namespaced_pod_group create a PodGroup @@ -197,7 +197,7 @@ def create_namespaced_pod_group_with_http_info( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2PodGroup + :type body: V1beta1PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -251,9 +251,9 @@ def create_namespaced_pod_group_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", - '202': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", + '202': "V1beta1PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -340,7 +340,7 @@ def _create_namespaced_pod_group_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -360,7 +360,7 @@ def _create_namespaced_pod_group_serialize( def create_namespaced_workload( self, namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2Workload, + body: V1beta1Workload, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -380,7 +380,7 @@ def create_namespaced_workload( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2Workload: + ) -> V1beta1Workload: """create_namespaced_workload create a Workload @@ -388,7 +388,7 @@ def create_namespaced_workload( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2Workload + :type body: V1beta1Workload :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -442,9 +442,9 @@ def create_namespaced_workload( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", - '201': "V1alpha2Workload", - '202': "V1alpha2Workload", + '200': "V1beta1Workload", + '201': "V1beta1Workload", + '202': "V1beta1Workload", '401': None, } return self.api_client._call_with_legacy_options( @@ -461,7 +461,7 @@ def create_namespaced_workload( def create_namespaced_workload_with_http_info( self, namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2Workload, + body: V1beta1Workload, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -481,7 +481,7 @@ def create_namespaced_workload_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha2Workload, int, Any]: + ) -> Tuple[V1beta1Workload, int, Any]: """create_namespaced_workload create a Workload @@ -489,7 +489,7 @@ def create_namespaced_workload_with_http_info( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2Workload + :type body: V1beta1Workload :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -543,9 +543,9 @@ def create_namespaced_workload_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", - '201': "V1alpha2Workload", - '202': "V1alpha2Workload", + '200': "V1beta1Workload", + '201': "V1beta1Workload", + '202': "V1beta1Workload", '401': None, } return self.api_client._call_with_legacy_options( @@ -632,7 +632,7 @@ def _create_namespaced_workload_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1063,7 +1063,7 @@ def _delete_collection_namespaced_pod_group_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1494,7 +1494,7 @@ def _delete_collection_namespaced_workload_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1821,7 +1821,7 @@ def _delete_namespaced_pod_group_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2148,7 +2148,7 @@ def _delete_namespaced_workload_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2362,7 +2362,7 @@ def _get_api_resources_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/scheduling.k8s.io/v1alpha2/', + resource_path='/apis/scheduling.k8s.io/v1beta1/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2409,7 +2409,7 @@ def list_namespaced_pod_group( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2PodGroupList: + ) -> V1beta1PodGroupList: """list_namespaced_pod_group list or watch objects of kind PodGroup @@ -2492,7 +2492,7 @@ def list_namespaced_pod_group( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroupList", + '200': "V1beta1PodGroupList", '401': None, } return self.api_client._call_with_legacy_options( @@ -2536,7 +2536,7 @@ def list_namespaced_pod_group_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha2PodGroupList, int, Any]: + ) -> Tuple[V1beta1PodGroupList, int, Any]: """list_namespaced_pod_group list or watch objects of kind PodGroup @@ -2619,7 +2619,7 @@ def list_namespaced_pod_group_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroupList", + '200': "V1beta1PodGroupList", '401': None, } return self.api_client._call_with_legacy_options( @@ -2746,7 +2746,7 @@ def _list_namespaced_pod_group_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2793,7 +2793,7 @@ def list_namespaced_workload( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2WorkloadList: + ) -> V1beta1WorkloadList: """list_namespaced_workload list or watch objects of kind Workload @@ -2876,7 +2876,7 @@ def list_namespaced_workload( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2WorkloadList", + '200': "V1beta1WorkloadList", '401': None, } return self.api_client._call_with_legacy_options( @@ -2920,7 +2920,7 @@ def list_namespaced_workload_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha2WorkloadList, int, Any]: + ) -> Tuple[V1beta1WorkloadList, int, Any]: """list_namespaced_workload list or watch objects of kind Workload @@ -3003,7 +3003,7 @@ def list_namespaced_workload_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2WorkloadList", + '200': "V1beta1WorkloadList", '401': None, } return self.api_client._call_with_legacy_options( @@ -3130,7 +3130,7 @@ def _list_namespaced_workload_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3176,7 +3176,7 @@ def list_pod_group_for_all_namespaces( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2PodGroupList: + ) -> V1beta1PodGroupList: """list_pod_group_for_all_namespaces list or watch objects of kind PodGroup @@ -3256,7 +3256,7 @@ def list_pod_group_for_all_namespaces( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroupList", + '200': "V1beta1PodGroupList", '401': None, } return self.api_client._call_with_legacy_options( @@ -3299,7 +3299,7 @@ def list_pod_group_for_all_namespaces_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha2PodGroupList, int, Any]: + ) -> Tuple[V1beta1PodGroupList, int, Any]: """list_pod_group_for_all_namespaces list or watch objects of kind PodGroup @@ -3379,7 +3379,7 @@ def list_pod_group_for_all_namespaces_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroupList", + '200': "V1beta1PodGroupList", '401': None, } return self.api_client._call_with_legacy_options( @@ -3503,7 +3503,7 @@ def _list_pod_group_for_all_namespaces_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/scheduling.k8s.io/v1alpha2/podgroups', + resource_path='/apis/scheduling.k8s.io/v1beta1/podgroups', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3549,7 +3549,7 @@ def list_workload_for_all_namespaces( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2WorkloadList: + ) -> V1beta1WorkloadList: """list_workload_for_all_namespaces list or watch objects of kind Workload @@ -3629,7 +3629,7 @@ def list_workload_for_all_namespaces( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2WorkloadList", + '200': "V1beta1WorkloadList", '401': None, } return self.api_client._call_with_legacy_options( @@ -3672,7 +3672,7 @@ def list_workload_for_all_namespaces_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha2WorkloadList, int, Any]: + ) -> Tuple[V1beta1WorkloadList, int, Any]: """list_workload_for_all_namespaces list or watch objects of kind Workload @@ -3752,7 +3752,7 @@ def list_workload_for_all_namespaces_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2WorkloadList", + '200': "V1beta1WorkloadList", '401': None, } return self.api_client._call_with_legacy_options( @@ -3876,7 +3876,7 @@ def _list_workload_for_all_namespaces_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/scheduling.k8s.io/v1alpha2/workloads', + resource_path='/apis/scheduling.k8s.io/v1beta1/workloads', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3918,7 +3918,7 @@ def patch_namespaced_pod_group( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2PodGroup: + ) -> V1beta1PodGroup: """patch_namespaced_pod_group partially update the specified PodGroup @@ -3986,8 +3986,8 @@ def patch_namespaced_pod_group( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -4026,7 +4026,7 @@ def patch_namespaced_pod_group_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha2PodGroup, int, Any]: + ) -> Tuple[V1beta1PodGroup, int, Any]: """patch_namespaced_pod_group partially update the specified PodGroup @@ -4094,8 +4094,8 @@ def patch_namespaced_pod_group_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -4207,7 +4207,7 @@ def _patch_namespaced_pod_group_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4249,7 +4249,7 @@ def patch_namespaced_pod_group_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2PodGroup: + ) -> V1beta1PodGroup: """patch_namespaced_pod_group_status partially update status of the specified PodGroup @@ -4317,8 +4317,8 @@ def patch_namespaced_pod_group_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -4357,7 +4357,7 @@ def patch_namespaced_pod_group_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha2PodGroup, int, Any]: + ) -> Tuple[V1beta1PodGroup, int, Any]: """patch_namespaced_pod_group_status partially update status of the specified PodGroup @@ -4425,8 +4425,8 @@ def patch_namespaced_pod_group_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -4538,7 +4538,7 @@ def _patch_namespaced_pod_group_status_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4580,7 +4580,7 @@ def patch_namespaced_workload( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2Workload: + ) -> V1beta1Workload: """patch_namespaced_workload partially update the specified Workload @@ -4648,8 +4648,8 @@ def patch_namespaced_workload( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", - '201': "V1alpha2Workload", + '200': "V1beta1Workload", + '201': "V1beta1Workload", '401': None, } return self.api_client._call_with_legacy_options( @@ -4688,7 +4688,7 @@ def patch_namespaced_workload_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha2Workload, int, Any]: + ) -> Tuple[V1beta1Workload, int, Any]: """patch_namespaced_workload partially update the specified Workload @@ -4756,8 +4756,8 @@ def patch_namespaced_workload_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", - '201': "V1alpha2Workload", + '200': "V1beta1Workload", + '201': "V1beta1Workload", '401': None, } return self.api_client._call_with_legacy_options( @@ -4869,7 +4869,7 @@ def _patch_namespaced_workload_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4906,7 +4906,7 @@ def read_namespaced_pod_group( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2PodGroup: + ) -> V1beta1PodGroup: """read_namespaced_pod_group read the specified PodGroup @@ -4959,7 +4959,7 @@ def read_namespaced_pod_group( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -4993,7 +4993,7 @@ def read_namespaced_pod_group_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha2PodGroup, int, Any]: + ) -> Tuple[V1beta1PodGroup, int, Any]: """read_namespaced_pod_group read the specified PodGroup @@ -5046,7 +5046,7 @@ def read_namespaced_pod_group_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -5118,7 +5118,7 @@ def _read_namespaced_pod_group_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5155,7 +5155,7 @@ def read_namespaced_pod_group_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2PodGroup: + ) -> V1beta1PodGroup: """read_namespaced_pod_group_status read status of the specified PodGroup @@ -5208,7 +5208,7 @@ def read_namespaced_pod_group_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -5242,7 +5242,7 @@ def read_namespaced_pod_group_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha2PodGroup, int, Any]: + ) -> Tuple[V1beta1PodGroup, int, Any]: """read_namespaced_pod_group_status read status of the specified PodGroup @@ -5295,7 +5295,7 @@ def read_namespaced_pod_group_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -5367,7 +5367,7 @@ def _read_namespaced_pod_group_status_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5404,7 +5404,7 @@ def read_namespaced_workload( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2Workload: + ) -> V1beta1Workload: """read_namespaced_workload read the specified Workload @@ -5457,7 +5457,7 @@ def read_namespaced_workload( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", + '200': "V1beta1Workload", '401': None, } return self.api_client._call_with_legacy_options( @@ -5491,7 +5491,7 @@ def read_namespaced_workload_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha2Workload, int, Any]: + ) -> Tuple[V1beta1Workload, int, Any]: """read_namespaced_workload read the specified Workload @@ -5544,7 +5544,7 @@ def read_namespaced_workload_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", + '200': "V1beta1Workload", '401': None, } return self.api_client._call_with_legacy_options( @@ -5616,7 +5616,7 @@ def _read_namespaced_workload_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5637,7 +5637,7 @@ def replace_namespaced_pod_group( self, name: Annotated[StrictStr, Field(description="name of the PodGroup")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2PodGroup, + body: V1beta1PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -5657,7 +5657,7 @@ def replace_namespaced_pod_group( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2PodGroup: + ) -> V1beta1PodGroup: """replace_namespaced_pod_group replace the specified PodGroup @@ -5667,7 +5667,7 @@ def replace_namespaced_pod_group( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2PodGroup + :type body: V1beta1PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -5722,8 +5722,8 @@ def replace_namespaced_pod_group( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -5741,7 +5741,7 @@ def replace_namespaced_pod_group_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the PodGroup")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2PodGroup, + body: V1beta1PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -5761,7 +5761,7 @@ def replace_namespaced_pod_group_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha2PodGroup, int, Any]: + ) -> Tuple[V1beta1PodGroup, int, Any]: """replace_namespaced_pod_group replace the specified PodGroup @@ -5771,7 +5771,7 @@ def replace_namespaced_pod_group_with_http_info( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2PodGroup + :type body: V1beta1PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -5826,8 +5826,8 @@ def replace_namespaced_pod_group_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -5917,7 +5917,7 @@ def _replace_namespaced_pod_group_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5938,7 +5938,7 @@ def replace_namespaced_pod_group_status( self, name: Annotated[StrictStr, Field(description="name of the PodGroup")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2PodGroup, + body: V1beta1PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -5958,7 +5958,7 @@ def replace_namespaced_pod_group_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2PodGroup: + ) -> V1beta1PodGroup: """replace_namespaced_pod_group_status replace status of the specified PodGroup @@ -5968,7 +5968,7 @@ def replace_namespaced_pod_group_status( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2PodGroup + :type body: V1beta1PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -6023,8 +6023,8 @@ def replace_namespaced_pod_group_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -6042,7 +6042,7 @@ def replace_namespaced_pod_group_status_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the PodGroup")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2PodGroup, + body: V1beta1PodGroup, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -6062,7 +6062,7 @@ def replace_namespaced_pod_group_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha2PodGroup, int, Any]: + ) -> Tuple[V1beta1PodGroup, int, Any]: """replace_namespaced_pod_group_status replace status of the specified PodGroup @@ -6072,7 +6072,7 @@ def replace_namespaced_pod_group_status_with_http_info( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2PodGroup + :type body: V1beta1PodGroup :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -6127,8 +6127,8 @@ def replace_namespaced_pod_group_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2PodGroup", - '201': "V1alpha2PodGroup", + '200': "V1beta1PodGroup", + '201': "V1beta1PodGroup", '401': None, } return self.api_client._call_with_legacy_options( @@ -6218,7 +6218,7 @@ def _replace_namespaced_pod_group_status_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6239,7 +6239,7 @@ def replace_namespaced_workload( self, name: Annotated[StrictStr, Field(description="name of the Workload")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2Workload, + body: V1beta1Workload, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -6259,7 +6259,7 @@ def replace_namespaced_workload( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha2Workload: + ) -> V1beta1Workload: """replace_namespaced_workload replace the specified Workload @@ -6269,7 +6269,7 @@ def replace_namespaced_workload( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2Workload + :type body: V1beta1Workload :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -6324,8 +6324,8 @@ def replace_namespaced_workload( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", - '201': "V1alpha2Workload", + '200': "V1beta1Workload", + '201': "V1beta1Workload", '401': None, } return self.api_client._call_with_legacy_options( @@ -6343,7 +6343,7 @@ def replace_namespaced_workload_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the Workload")], namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], - body: V1alpha2Workload, + body: V1beta1Workload, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -6363,7 +6363,7 @@ def replace_namespaced_workload_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha2Workload, int, Any]: + ) -> Tuple[V1beta1Workload, int, Any]: """replace_namespaced_workload replace the specified Workload @@ -6373,7 +6373,7 @@ def replace_namespaced_workload_with_http_info( :param namespace: object name and auth scope, such as for teams and projects (required) :type namespace: str :param body: (required) - :type body: V1alpha2Workload + :type body: V1beta1Workload :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -6428,8 +6428,8 @@ def replace_namespaced_workload_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha2Workload", - '201': "V1alpha2Workload", + '200': "V1beta1Workload", + '201': "V1beta1Workload", '401': None, } return self.api_client._call_with_legacy_options( @@ -6519,7 +6519,7 @@ def _replace_namespaced_workload_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}', + resource_path='/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/kubernetes/client/api/storage_api.py b/kubernetes/client/api/storage_api.py index 83a97444be..68822f846f 100644 --- a/kubernetes/client/api/storage_api.py +++ b/kubernetes/client/api/storage_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/storage_v1_api.py b/kubernetes/client/api/storage_v1_api.py index 96091b3d9c..1a5b473942 100644 --- a/kubernetes/client/api/storage_v1_api.py +++ b/kubernetes/client/api/storage_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -9684,10 +9684,9 @@ def _patch_csi_node_serialize( @validate_call(config={'defer_build': True}) - def patch_namespaced_csi_storage_capacity( + def patch_csi_node_status( self, - name: Annotated[StrictStr, Field(description="name of the CSIStorageCapacity")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the CSINode")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -9709,15 +9708,13 @@ def patch_namespaced_csi_storage_capacity( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CSIStorageCapacity: - """patch_namespaced_csi_storage_capacity + ) -> V1CSINode: + """patch_csi_node_status - partially update the specified CSIStorageCapacity + partially update status of the specified CSINode - :param name: name of the CSIStorageCapacity (required) + :param name: name of the CSINode (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :param body: (required) :type body: object :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). @@ -9761,9 +9758,8 @@ def patch_namespaced_csi_storage_capacity( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_namespaced_csi_storage_capacity_serialize( + _param = self._patch_csi_node_status_serialize( name=name, - namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -9777,8 +9773,8 @@ def patch_namespaced_csi_storage_capacity( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSIStorageCapacity", - '201': "V1CSIStorageCapacity", + '200': "V1CSINode", + '201': "V1CSINode", '401': None, } return self.api_client._call_with_legacy_options( @@ -9792,10 +9788,9 @@ def patch_namespaced_csi_storage_capacity( @validate_call(config={'defer_build': True}) - def patch_namespaced_csi_storage_capacity_with_http_info( + def patch_csi_node_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CSIStorageCapacity")], - namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], + name: Annotated[StrictStr, Field(description="name of the CSINode")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -9817,15 +9812,13 @@ def patch_namespaced_csi_storage_capacity_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1CSIStorageCapacity, int, Any]: - """patch_namespaced_csi_storage_capacity + ) -> Tuple[V1CSINode, int, Any]: + """patch_csi_node_status - partially update the specified CSIStorageCapacity + partially update status of the specified CSINode - :param name: name of the CSIStorageCapacity (required) + :param name: name of the CSINode (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :param body: (required) :type body: object :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). @@ -9869,9 +9862,8 @@ def patch_namespaced_csi_storage_capacity_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_namespaced_csi_storage_capacity_serialize( + _param = self._patch_csi_node_status_serialize( name=name, - namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -9885,8 +9877,8 @@ def patch_namespaced_csi_storage_capacity_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSIStorageCapacity", - '201': "V1CSIStorageCapacity", + '200': "V1CSINode", + '201': "V1CSINode", '401': None, } return self.api_client._call_with_legacy_options( @@ -9899,10 +9891,9 @@ def patch_namespaced_csi_storage_capacity_with_http_info( ) - def _patch_namespaced_csi_storage_capacity_serialize( + def _patch_csi_node_status_serialize( self, name, - namespace, body, pretty, dry_run, @@ -9932,8 +9923,6 @@ def _patch_namespaced_csi_storage_capacity_serialize( # process the path parameters if name is not None: _path_params['name'] = name - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -9998,7 +9987,7 @@ def _patch_namespaced_csi_storage_capacity_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}', + resource_path='/apis/storage.k8s.io/v1/csinodes/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10015,9 +10004,10 @@ def _patch_namespaced_csi_storage_capacity_serialize( @validate_call(config={'defer_build': True}) - def patch_storage_class( + def patch_namespaced_csi_storage_capacity( self, - name: Annotated[StrictStr, Field(description="name of the StorageClass")], + name: Annotated[StrictStr, Field(description="name of the CSIStorageCapacity")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -10039,13 +10029,15 @@ def patch_storage_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1StorageClass: - """patch_storage_class + ) -> V1CSIStorageCapacity: + """patch_namespaced_csi_storage_capacity - partially update the specified StorageClass + partially update the specified CSIStorageCapacity - :param name: name of the StorageClass (required) + :param name: name of the CSIStorageCapacity (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) :type body: object :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). @@ -10089,8 +10081,9 @@ def patch_storage_class( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_storage_class_serialize( + _param = self._patch_namespaced_csi_storage_capacity_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -10104,8 +10097,8 @@ def patch_storage_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1StorageClass", - '201': "V1StorageClass", + '200': "V1CSIStorageCapacity", + '201': "V1CSIStorageCapacity", '401': None, } return self.api_client._call_with_legacy_options( @@ -10119,9 +10112,10 @@ def patch_storage_class( @validate_call(config={'defer_build': True}) - def patch_storage_class_with_http_info( + def patch_namespaced_csi_storage_capacity_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the StorageClass")], + name: Annotated[StrictStr, Field(description="name of the CSIStorageCapacity")], + namespace: Annotated[StrictStr, Field(description="object name and auth scope, such as for teams and projects")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -10143,13 +10137,15 @@ def patch_storage_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1StorageClass, int, Any]: - """patch_storage_class + ) -> Tuple[V1CSIStorageCapacity, int, Any]: + """patch_namespaced_csi_storage_capacity - partially update the specified StorageClass + partially update the specified CSIStorageCapacity - :param name: name of the StorageClass (required) + :param name: name of the CSIStorageCapacity (required) :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str :param body: (required) :type body: object :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). @@ -10193,8 +10189,9 @@ def patch_storage_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_storage_class_serialize( + _param = self._patch_namespaced_csi_storage_capacity_serialize( name=name, + namespace=namespace, body=body, pretty=pretty, dry_run=dry_run, @@ -10208,8 +10205,8 @@ def patch_storage_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1StorageClass", - '201': "V1StorageClass", + '200': "V1CSIStorageCapacity", + '201': "V1CSIStorageCapacity", '401': None, } return self.api_client._call_with_legacy_options( @@ -10222,9 +10219,10 @@ def patch_storage_class_with_http_info( ) - def _patch_storage_class_serialize( + def _patch_namespaced_csi_storage_capacity_serialize( self, name, + namespace, body, pretty, dry_run, @@ -10254,6 +10252,8 @@ def _patch_storage_class_serialize( # process the path parameters if name is not None: _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -10318,7 +10318,7 @@ def _patch_storage_class_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/apis/storage.k8s.io/v1/storageclasses/{name}', + resource_path='/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10335,9 +10335,9 @@ def _patch_storage_class_serialize( @validate_call(config={'defer_build': True}) - def patch_volume_attachment( + def patch_storage_class( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], + name: Annotated[StrictStr, Field(description="name of the StorageClass")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -10359,12 +10359,12 @@ def patch_volume_attachment( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1VolumeAttachment: - """patch_volume_attachment + ) -> V1StorageClass: + """patch_storage_class - partially update the specified VolumeAttachment + partially update the specified StorageClass - :param name: name of the VolumeAttachment (required) + :param name: name of the StorageClass (required) :type name: str :param body: (required) :type body: object @@ -10409,7 +10409,7 @@ def patch_volume_attachment( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_volume_attachment_serialize( + _param = self._patch_storage_class_serialize( name=name, body=body, pretty=pretty, @@ -10424,8 +10424,8 @@ def patch_volume_attachment( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttachment", - '201': "V1VolumeAttachment", + '200': "V1StorageClass", + '201': "V1StorageClass", '401': None, } return self.api_client._call_with_legacy_options( @@ -10439,9 +10439,9 @@ def patch_volume_attachment( @validate_call(config={'defer_build': True}) - def patch_volume_attachment_with_http_info( + def patch_storage_class_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], + name: Annotated[StrictStr, Field(description="name of the StorageClass")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -10463,12 +10463,12 @@ def patch_volume_attachment_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1VolumeAttachment, int, Any]: - """patch_volume_attachment + ) -> Tuple[V1StorageClass, int, Any]: + """patch_storage_class - partially update the specified VolumeAttachment + partially update the specified StorageClass - :param name: name of the VolumeAttachment (required) + :param name: name of the StorageClass (required) :type name: str :param body: (required) :type body: object @@ -10513,7 +10513,7 @@ def patch_volume_attachment_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_volume_attachment_serialize( + _param = self._patch_storage_class_serialize( name=name, body=body, pretty=pretty, @@ -10528,8 +10528,8 @@ def patch_volume_attachment_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttachment", - '201': "V1VolumeAttachment", + '200': "V1StorageClass", + '201': "V1StorageClass", '401': None, } return self.api_client._call_with_legacy_options( @@ -10542,7 +10542,7 @@ def patch_volume_attachment_with_http_info( ) - def _patch_volume_attachment_serialize( + def _patch_storage_class_serialize( self, name, body, @@ -10638,7 +10638,7 @@ def _patch_volume_attachment_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/apis/storage.k8s.io/v1/volumeattachments/{name}', + resource_path='/apis/storage.k8s.io/v1/storageclasses/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10655,7 +10655,7 @@ def _patch_volume_attachment_serialize( @validate_call(config={'defer_build': True}) - def patch_volume_attachment_status( + def patch_volume_attachment( self, name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], @@ -10680,9 +10680,9 @@ def patch_volume_attachment_status( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1VolumeAttachment: - """patch_volume_attachment_status + """patch_volume_attachment - partially update status of the specified VolumeAttachment + partially update the specified VolumeAttachment :param name: name of the VolumeAttachment (required) :type name: str @@ -10729,7 +10729,7 @@ def patch_volume_attachment_status( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_volume_attachment_status_serialize( + _param = self._patch_volume_attachment_serialize( name=name, body=body, pretty=pretty, @@ -10759,7 +10759,7 @@ def patch_volume_attachment_status( @validate_call(config={'defer_build': True}) - def patch_volume_attachment_status_with_http_info( + def patch_volume_attachment_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], @@ -10784,9 +10784,9 @@ def patch_volume_attachment_status_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Tuple[V1VolumeAttachment, int, Any]: - """patch_volume_attachment_status + """patch_volume_attachment - partially update status of the specified VolumeAttachment + partially update the specified VolumeAttachment :param name: name of the VolumeAttachment (required) :type name: str @@ -10833,7 +10833,7 @@ def patch_volume_attachment_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_volume_attachment_status_serialize( + _param = self._patch_volume_attachment_serialize( name=name, body=body, pretty=pretty, @@ -10862,7 +10862,7 @@ def patch_volume_attachment_status_with_http_info( ) - def _patch_volume_attachment_status_serialize( + def _patch_volume_attachment_serialize( self, name, body, @@ -10958,7 +10958,7 @@ def _patch_volume_attachment_status_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/apis/storage.k8s.io/v1/volumeattachments/{name}/status', + resource_path='/apis/storage.k8s.io/v1/volumeattachments/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10975,9 +10975,9 @@ def _patch_volume_attachment_status_serialize( @validate_call(config={'defer_build': True}) - def patch_volume_attributes_class( + def patch_volume_attachment_status( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], + name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -10999,12 +10999,12 @@ def patch_volume_attributes_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1VolumeAttributesClass: - """patch_volume_attributes_class + ) -> V1VolumeAttachment: + """patch_volume_attachment_status - partially update the specified VolumeAttributesClass + partially update status of the specified VolumeAttachment - :param name: name of the VolumeAttributesClass (required) + :param name: name of the VolumeAttachment (required) :type name: str :param body: (required) :type body: object @@ -11049,7 +11049,7 @@ def patch_volume_attributes_class( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_volume_attributes_class_serialize( + _param = self._patch_volume_attachment_status_serialize( name=name, body=body, pretty=pretty, @@ -11064,8 +11064,8 @@ def patch_volume_attributes_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttributesClass", - '201': "V1VolumeAttributesClass", + '200': "V1VolumeAttachment", + '201': "V1VolumeAttachment", '401': None, } return self.api_client._call_with_legacy_options( @@ -11079,9 +11079,9 @@ def patch_volume_attributes_class( @validate_call(config={'defer_build': True}) - def patch_volume_attributes_class_with_http_info( + def patch_volume_attachment_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], + name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, @@ -11103,12 +11103,12 @@ def patch_volume_attributes_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1VolumeAttributesClass, int, Any]: - """patch_volume_attributes_class + ) -> Tuple[V1VolumeAttachment, int, Any]: + """patch_volume_attachment_status - partially update the specified VolumeAttributesClass + partially update status of the specified VolumeAttachment - :param name: name of the VolumeAttributesClass (required) + :param name: name of the VolumeAttachment (required) :type name: str :param body: (required) :type body: object @@ -11153,7 +11153,7 @@ def patch_volume_attributes_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_volume_attributes_class_serialize( + _param = self._patch_volume_attachment_status_serialize( name=name, body=body, pretty=pretty, @@ -11168,8 +11168,8 @@ def patch_volume_attributes_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttributesClass", - '201': "V1VolumeAttributesClass", + '200': "V1VolumeAttachment", + '201': "V1VolumeAttachment", '401': None, } return self.api_client._call_with_legacy_options( @@ -11182,7 +11182,7 @@ def patch_volume_attributes_class_with_http_info( ) - def _patch_volume_attributes_class_serialize( + def _patch_volume_attachment_status_serialize( self, name, body, @@ -11278,7 +11278,7 @@ def _patch_volume_attributes_class_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/apis/storage.k8s.io/v1/volumeattributesclasses/{name}', + resource_path='/apis/storage.k8s.io/v1/volumeattachments/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11295,10 +11295,15 @@ def _patch_volume_attributes_class_serialize( @validate_call(config={'defer_build': True}) - def read_csi_driver( + def patch_volume_attributes_class( self, - name: Annotated[StrictStr, Field(description="name of the CSIDriver")], + name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -11314,15 +11319,25 @@ def read_csi_driver( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CSIDriver: - """read_csi_driver + ) -> V1VolumeAttributesClass: + """patch_volume_attributes_class - read the specified CSIDriver + partially update the specified VolumeAttributesClass - :param name: name of the CSIDriver (required) + :param name: name of the VolumeAttributesClass (required) :type name: str + :param body: (required) + :type body: object :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -11354,9 +11369,14 @@ def read_csi_driver( :return: Returns the result object. """ # noqa: E501 - _param = self._read_csi_driver_serialize( + _param = self._patch_volume_attributes_class_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11364,7 +11384,8 @@ def read_csi_driver( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSIDriver", + '200': "V1VolumeAttributesClass", + '201': "V1VolumeAttributesClass", '401': None, } return self.api_client._call_with_legacy_options( @@ -11378,10 +11399,15 @@ def read_csi_driver( @validate_call(config={'defer_build': True}) - def read_csi_driver_with_http_info( + def patch_volume_attributes_class_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CSIDriver")], + name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -11397,12 +11423,306 @@ def read_csi_driver_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1CSIDriver, int, Any]: - """read_csi_driver + ) -> Tuple[V1VolumeAttributesClass, int, Any]: + """patch_volume_attributes_class - read the specified CSIDriver + partially update the specified VolumeAttributesClass - :param name: name of the CSIDriver (required) + :param name: name of the VolumeAttributesClass (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_volume_attributes_class_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1VolumeAttributesClass", + '201': "V1VolumeAttributesClass", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_volume_attributes_class_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/storage.k8s.io/v1/volumeattributesclasses/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def read_csi_driver( + self, + name: Annotated[StrictStr, Field(description="name of the CSIDriver")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1CSIDriver: + """read_csi_driver + + read the specified CSIDriver + + :param name: name of the CSIDriver (required) + :type name: str + :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). + :type pretty: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._read_csi_driver_serialize( + name=name, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CSIDriver", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def read_csi_driver_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CSIDriver")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1CSIDriver, int, Any]: + """read_csi_driver + + read the specified CSIDriver + + :param name: name of the CSIDriver (required) :type name: str :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). :type pretty: str @@ -11516,7 +11836,245 @@ def _read_csi_driver_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/storage.k8s.io/v1/csidrivers/{name}', + resource_path='/apis/storage.k8s.io/v1/csidrivers/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def read_csi_node( + self, + name: Annotated[StrictStr, Field(description="name of the CSINode")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1CSINode: + """read_csi_node + + read the specified CSINode + + :param name: name of the CSINode (required) + :type name: str + :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). + :type pretty: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._read_csi_node_serialize( + name=name, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CSINode", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def read_csi_node_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the CSINode")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1CSINode, int, Any]: + """read_csi_node + + read the specified CSINode + + :param name: name of the CSINode (required) + :type name: str + :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). + :type pretty: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._read_csi_node_serialize( + name=name, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CSINode", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _read_csi_node_serialize( + self, + name, + pretty, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/storage.k8s.io/v1/csinodes/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11533,7 +12091,7 @@ def _read_csi_driver_serialize( @validate_call(config={'defer_build': True}) - def read_csi_node( + def read_csi_node_status( self, name: Annotated[StrictStr, Field(description="name of the CSINode")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, @@ -11553,9 +12111,9 @@ def read_csi_node( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1CSINode: - """read_csi_node + """read_csi_node_status - read the specified CSINode + read status of the specified CSINode :param name: name of the CSINode (required) :type name: str @@ -11592,7 +12150,7 @@ def read_csi_node( :return: Returns the result object. """ # noqa: E501 - _param = self._read_csi_node_serialize( + _param = self._read_csi_node_status_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -11616,7 +12174,7 @@ def read_csi_node( @validate_call(config={'defer_build': True}) - def read_csi_node_with_http_info( + def read_csi_node_status_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the CSINode")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, @@ -11636,9 +12194,9 @@ def read_csi_node_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Tuple[V1CSINode, int, Any]: - """read_csi_node + """read_csi_node_status - read the specified CSINode + read status of the specified CSINode :param name: name of the CSINode (required) :type name: str @@ -11675,7 +12233,7 @@ def read_csi_node_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._read_csi_node_serialize( + _param = self._read_csi_node_status_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -11698,7 +12256,7 @@ def read_csi_node_with_http_info( ) - def _read_csi_node_serialize( + def _read_csi_node_status_serialize( self, name, pretty, @@ -11754,7 +12312,7 @@ def _read_csi_node_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/storage.k8s.io/v1/csinodes/{name}', + resource_path='/apis/storage.k8s.io/v1/csinodes/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11883,10 +12441,252 @@ def read_namespaced_csi_storage_capacity_with_http_info( read the specified CSIStorageCapacity - :param name: name of the CSIStorageCapacity (required) + :param name: name of the CSIStorageCapacity (required) + :type name: str + :param namespace: object name and auth scope, such as for teams and projects (required) + :type namespace: str + :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). + :type pretty: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._read_namespaced_csi_storage_capacity_serialize( + name=name, + namespace=namespace, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1CSIStorageCapacity", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _read_namespaced_csi_storage_capacity_serialize( + self, + name, + namespace, + pretty, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + if namespace is not None: + _path_params['namespace'] = namespace + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def read_storage_class( + self, + name: Annotated[StrictStr, Field(description="name of the StorageClass")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1StorageClass: + """read_storage_class + + read the specified StorageClass + + :param name: name of the StorageClass (required) + :type name: str + :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). + :type pretty: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._read_storage_class_serialize( + name=name, + pretty=pretty, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1StorageClass", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def read_storage_class_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the StorageClass")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1StorageClass, int, Any]: + """read_storage_class + + read the specified StorageClass + + :param name: name of the StorageClass (required) :type name: str - :param namespace: object name and auth scope, such as for teams and projects (required) - :type namespace: str :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). :type pretty: str :param async_req: Whether to execute the request asynchronously. @@ -11920,9 +12720,8 @@ def read_namespaced_csi_storage_capacity_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._read_namespaced_csi_storage_capacity_serialize( + _param = self._read_storage_class_serialize( name=name, - namespace=namespace, pretty=pretty, _request_auth=_request_auth, _content_type=_content_type, @@ -11931,7 +12730,7 @@ def read_namespaced_csi_storage_capacity_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSIStorageCapacity", + '200': "V1StorageClass", '401': None, } return self.api_client._call_with_legacy_options( @@ -11944,10 +12743,9 @@ def read_namespaced_csi_storage_capacity_with_http_info( ) - def _read_namespaced_csi_storage_capacity_serialize( + def _read_storage_class_serialize( self, name, - namespace, pretty, _request_auth, _content_type, @@ -11972,8 +12770,6 @@ def _read_namespaced_csi_storage_capacity_serialize( # process the path parameters if name is not None: _path_params['name'] = name - if namespace is not None: - _path_params['namespace'] = namespace # process the query parameters if pretty is not None: @@ -12003,7 +12799,7 @@ def _read_namespaced_csi_storage_capacity_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}', + resource_path='/apis/storage.k8s.io/v1/storageclasses/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12020,9 +12816,9 @@ def _read_namespaced_csi_storage_capacity_serialize( @validate_call(config={'defer_build': True}) - def read_storage_class( + def read_volume_attachment( self, - name: Annotated[StrictStr, Field(description="name of the StorageClass")], + name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -12039,12 +12835,12 @@ def read_storage_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1StorageClass: - """read_storage_class + ) -> V1VolumeAttachment: + """read_volume_attachment - read the specified StorageClass + read the specified VolumeAttachment - :param name: name of the StorageClass (required) + :param name: name of the VolumeAttachment (required) :type name: str :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). :type pretty: str @@ -12079,7 +12875,7 @@ def read_storage_class( :return: Returns the result object. """ # noqa: E501 - _param = self._read_storage_class_serialize( + _param = self._read_volume_attachment_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -12089,7 +12885,7 @@ def read_storage_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1StorageClass", + '200': "V1VolumeAttachment", '401': None, } return self.api_client._call_with_legacy_options( @@ -12103,9 +12899,9 @@ def read_storage_class( @validate_call(config={'defer_build': True}) - def read_storage_class_with_http_info( + def read_volume_attachment_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the StorageClass")], + name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -12122,12 +12918,12 @@ def read_storage_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1StorageClass, int, Any]: - """read_storage_class + ) -> Tuple[V1VolumeAttachment, int, Any]: + """read_volume_attachment - read the specified StorageClass + read the specified VolumeAttachment - :param name: name of the StorageClass (required) + :param name: name of the VolumeAttachment (required) :type name: str :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). :type pretty: str @@ -12162,7 +12958,7 @@ def read_storage_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._read_storage_class_serialize( + _param = self._read_volume_attachment_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -12172,7 +12968,7 @@ def read_storage_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1StorageClass", + '200': "V1VolumeAttachment", '401': None, } return self.api_client._call_with_legacy_options( @@ -12185,7 +12981,7 @@ def read_storage_class_with_http_info( ) - def _read_storage_class_serialize( + def _read_volume_attachment_serialize( self, name, pretty, @@ -12241,7 +13037,7 @@ def _read_storage_class_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/storage.k8s.io/v1/storageclasses/{name}', + resource_path='/apis/storage.k8s.io/v1/volumeattachments/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12258,7 +13054,7 @@ def _read_storage_class_serialize( @validate_call(config={'defer_build': True}) - def read_volume_attachment( + def read_volume_attachment_status( self, name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, @@ -12278,9 +13074,9 @@ def read_volume_attachment( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1VolumeAttachment: - """read_volume_attachment + """read_volume_attachment_status - read the specified VolumeAttachment + read status of the specified VolumeAttachment :param name: name of the VolumeAttachment (required) :type name: str @@ -12317,7 +13113,7 @@ def read_volume_attachment( :return: Returns the result object. """ # noqa: E501 - _param = self._read_volume_attachment_serialize( + _param = self._read_volume_attachment_status_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -12341,7 +13137,7 @@ def read_volume_attachment( @validate_call(config={'defer_build': True}) - def read_volume_attachment_with_http_info( + def read_volume_attachment_status_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, @@ -12361,9 +13157,9 @@ def read_volume_attachment_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Tuple[V1VolumeAttachment, int, Any]: - """read_volume_attachment + """read_volume_attachment_status - read the specified VolumeAttachment + read status of the specified VolumeAttachment :param name: name of the VolumeAttachment (required) :type name: str @@ -12400,7 +13196,7 @@ def read_volume_attachment_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._read_volume_attachment_serialize( + _param = self._read_volume_attachment_status_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -12423,7 +13219,7 @@ def read_volume_attachment_with_http_info( ) - def _read_volume_attachment_serialize( + def _read_volume_attachment_status_serialize( self, name, pretty, @@ -12479,7 +13275,7 @@ def _read_volume_attachment_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/storage.k8s.io/v1/volumeattachments/{name}', + resource_path='/apis/storage.k8s.io/v1/volumeattachments/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12496,9 +13292,9 @@ def _read_volume_attachment_serialize( @validate_call(config={'defer_build': True}) - def read_volume_attachment_status( + def read_volume_attributes_class( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], + name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -12515,12 +13311,12 @@ def read_volume_attachment_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1VolumeAttachment: - """read_volume_attachment_status + ) -> V1VolumeAttributesClass: + """read_volume_attributes_class - read status of the specified VolumeAttachment + read the specified VolumeAttributesClass - :param name: name of the VolumeAttachment (required) + :param name: name of the VolumeAttributesClass (required) :type name: str :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). :type pretty: str @@ -12555,7 +13351,7 @@ def read_volume_attachment_status( :return: Returns the result object. """ # noqa: E501 - _param = self._read_volume_attachment_status_serialize( + _param = self._read_volume_attributes_class_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -12565,7 +13361,7 @@ def read_volume_attachment_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttachment", + '200': "V1VolumeAttributesClass", '401': None, } return self.api_client._call_with_legacy_options( @@ -12579,9 +13375,9 @@ def read_volume_attachment_status( @validate_call(config={'defer_build': True}) - def read_volume_attachment_status_with_http_info( + def read_volume_attributes_class_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttachment")], + name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -12598,12 +13394,12 @@ def read_volume_attachment_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1VolumeAttachment, int, Any]: - """read_volume_attachment_status + ) -> Tuple[V1VolumeAttributesClass, int, Any]: + """read_volume_attributes_class - read status of the specified VolumeAttachment + read the specified VolumeAttributesClass - :param name: name of the VolumeAttachment (required) + :param name: name of the VolumeAttributesClass (required) :type name: str :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). :type pretty: str @@ -12638,7 +13434,7 @@ def read_volume_attachment_status_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._read_volume_attachment_status_serialize( + _param = self._read_volume_attributes_class_serialize( name=name, pretty=pretty, _request_auth=_request_auth, @@ -12648,7 +13444,7 @@ def read_volume_attachment_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttachment", + '200': "V1VolumeAttributesClass", '401': None, } return self.api_client._call_with_legacy_options( @@ -12661,7 +13457,7 @@ def read_volume_attachment_status_with_http_info( ) - def _read_volume_attachment_status_serialize( + def _read_volume_attributes_class_serialize( self, name, pretty, @@ -12717,7 +13513,7 @@ def _read_volume_attachment_status_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/storage.k8s.io/v1/volumeattachments/{name}/status', + resource_path='/apis/storage.k8s.io/v1/volumeattributesclasses/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12734,10 +13530,14 @@ def _read_volume_attachment_status_serialize( @validate_call(config={'defer_build': True}) - def read_volume_attributes_class( + def replace_csi_driver( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], + name: Annotated[StrictStr, Field(description="name of the CSIDriver")], + body: V1CSIDriver, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -12753,15 +13553,23 @@ def read_volume_attributes_class( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1VolumeAttributesClass: - """read_volume_attributes_class + ) -> V1CSIDriver: + """replace_csi_driver - read the specified VolumeAttributesClass + replace the specified CSIDriver - :param name: name of the VolumeAttributesClass (required) + :param name: name of the CSIDriver (required) :type name: str + :param body: (required) + :type body: V1CSIDriver :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -12793,9 +13601,13 @@ def read_volume_attributes_class( :return: Returns the result object. """ # noqa: E501 - _param = self._read_volume_attributes_class_serialize( + _param = self._replace_csi_driver_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12803,7 +13615,8 @@ def read_volume_attributes_class( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttributesClass", + '200': "V1CSIDriver", + '201': "V1CSIDriver", '401': None, } return self.api_client._call_with_legacy_options( @@ -12817,10 +13630,14 @@ def read_volume_attributes_class( @validate_call(config={'defer_build': True}) - def read_volume_attributes_class_with_http_info( + def replace_csi_driver_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], + name: Annotated[StrictStr, Field(description="name of the CSIDriver")], + body: V1CSIDriver, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -12836,15 +13653,23 @@ def read_volume_attributes_class_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1VolumeAttributesClass, int, Any]: - """read_volume_attributes_class + ) -> Tuple[V1CSIDriver, int, Any]: + """replace_csi_driver - read the specified VolumeAttributesClass + replace the specified CSIDriver - :param name: name of the VolumeAttributesClass (required) + :param name: name of the CSIDriver (required) :type name: str + :param body: (required) + :type body: V1CSIDriver :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -12876,9 +13701,13 @@ def read_volume_attributes_class_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._read_volume_attributes_class_serialize( + _param = self._replace_csi_driver_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12886,7 +13715,8 @@ def read_volume_attributes_class_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VolumeAttributesClass", + '200': "V1CSIDriver", + '201': "V1CSIDriver", '401': None, } return self.api_client._call_with_legacy_options( @@ -12899,10 +13729,14 @@ def read_volume_attributes_class_with_http_info( ) - def _read_volume_attributes_class_serialize( + def _replace_csi_driver_serialize( self, name, + body, pretty, + dry_run, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -12931,9 +13765,23 @@ def _read_volume_attributes_class_serialize( _query_params.append(('pretty', pretty)) + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -12954,8 +13802,8 @@ def _read_volume_attributes_class_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/apis/storage.k8s.io/v1/volumeattributesclasses/{name}', + method='PUT', + resource_path='/apis/storage.k8s.io/v1/csidrivers/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12972,10 +13820,10 @@ def _read_volume_attributes_class_serialize( @validate_call(config={'defer_build': True}) - def replace_csi_driver( + def replace_csi_node( self, - name: Annotated[StrictStr, Field(description="name of the CSIDriver")], - body: V1CSIDriver, + name: Annotated[StrictStr, Field(description="name of the CSINode")], + body: V1CSINode, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -12995,15 +13843,15 @@ def replace_csi_driver( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1CSIDriver: - """replace_csi_driver + ) -> V1CSINode: + """replace_csi_node - replace the specified CSIDriver + replace the specified CSINode - :param name: name of the CSIDriver (required) + :param name: name of the CSINode (required) :type name: str :param body: (required) - :type body: V1CSIDriver + :type body: V1CSINode :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -13043,7 +13891,7 @@ def replace_csi_driver( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_csi_driver_serialize( + _param = self._replace_csi_node_serialize( name=name, body=body, pretty=pretty, @@ -13057,8 +13905,8 @@ def replace_csi_driver( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSIDriver", - '201': "V1CSIDriver", + '200': "V1CSINode", + '201': "V1CSINode", '401': None, } return self.api_client._call_with_legacy_options( @@ -13072,10 +13920,10 @@ def replace_csi_driver( @validate_call(config={'defer_build': True}) - def replace_csi_driver_with_http_info( + def replace_csi_node_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the CSIDriver")], - body: V1CSIDriver, + name: Annotated[StrictStr, Field(description="name of the CSINode")], + body: V1CSINode, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -13095,15 +13943,15 @@ def replace_csi_driver_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1CSIDriver, int, Any]: - """replace_csi_driver + ) -> Tuple[V1CSINode, int, Any]: + """replace_csi_node - replace the specified CSIDriver + replace the specified CSINode - :param name: name of the CSIDriver (required) + :param name: name of the CSINode (required) :type name: str :param body: (required) - :type body: V1CSIDriver + :type body: V1CSINode :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -13143,7 +13991,7 @@ def replace_csi_driver_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_csi_driver_serialize( + _param = self._replace_csi_node_serialize( name=name, body=body, pretty=pretty, @@ -13157,8 +14005,8 @@ def replace_csi_driver_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1CSIDriver", - '201': "V1CSIDriver", + '200': "V1CSINode", + '201': "V1CSINode", '401': None, } return self.api_client._call_with_legacy_options( @@ -13171,7 +14019,7 @@ def replace_csi_driver_with_http_info( ) - def _replace_csi_driver_serialize( + def _replace_csi_node_serialize( self, name, body, @@ -13245,7 +14093,7 @@ def _replace_csi_driver_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/apis/storage.k8s.io/v1/csidrivers/{name}', + resource_path='/apis/storage.k8s.io/v1/csinodes/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13262,7 +14110,7 @@ def _replace_csi_driver_serialize( @validate_call(config={'defer_build': True}) - def replace_csi_node( + def replace_csi_node_status( self, name: Annotated[StrictStr, Field(description="name of the CSINode")], body: V1CSINode, @@ -13286,9 +14134,9 @@ def replace_csi_node( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> V1CSINode: - """replace_csi_node + """replace_csi_node_status - replace the specified CSINode + replace status of the specified CSINode :param name: name of the CSINode (required) :type name: str @@ -13333,7 +14181,7 @@ def replace_csi_node( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_csi_node_serialize( + _param = self._replace_csi_node_status_serialize( name=name, body=body, pretty=pretty, @@ -13362,7 +14210,7 @@ def replace_csi_node( @validate_call(config={'defer_build': True}) - def replace_csi_node_with_http_info( + def replace_csi_node_status_with_http_info( self, name: Annotated[StrictStr, Field(description="name of the CSINode")], body: V1CSINode, @@ -13386,9 +14234,9 @@ def replace_csi_node_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Tuple[V1CSINode, int, Any]: - """replace_csi_node + """replace_csi_node_status - replace the specified CSINode + replace status of the specified CSINode :param name: name of the CSINode (required) :type name: str @@ -13433,7 +14281,7 @@ def replace_csi_node_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_csi_node_serialize( + _param = self._replace_csi_node_status_serialize( name=name, body=body, pretty=pretty, @@ -13461,7 +14309,7 @@ def replace_csi_node_with_http_info( ) - def _replace_csi_node_serialize( + def _replace_csi_node_status_serialize( self, name, body, @@ -13535,7 +14383,7 @@ def _replace_csi_node_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/apis/storage.k8s.io/v1/csinodes/{name}', + resource_path='/apis/storage.k8s.io/v1/csinodes/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/kubernetes/client/api/storage_v1beta1_api.py b/kubernetes/client/api/storage_v1beta1_api.py deleted file mode 100644 index 7c9e3ab18c..0000000000 --- a/kubernetes/client/api/storage_v1beta1_api.py +++ /dev/null @@ -1,2512 +0,0 @@ -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: release-1.36 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import warnings -from pydantic import BaseModel, validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictBool, StrictInt, StrictStr -from typing import Any, Dict, Optional -from typing_extensions import Annotated -from kubernetes.client.models.v1_api_resource_list import V1APIResourceList -from kubernetes.client.models.v1_delete_options import V1DeleteOptions -from kubernetes.client.models.v1_status import V1Status -from kubernetes.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass -from kubernetes.client.models.v1beta1_volume_attributes_class_list import V1beta1VolumeAttributesClassList - -from kubernetes.client.api_client import ApiClient, RequestSerialized -from kubernetes.client.api_response import ApiResponse -from kubernetes.client.rest import RESTResponseType - - -class StorageV1beta1Api: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - # api_client remains publicly assignable. Retain the client acquired at - # construction so reassignment cannot transfer or discard ownership. - if api_client is None: - api_client, owns_api_client = ApiClient._get_default_or_new() - else: - owns_api_client = False - self.api_client = api_client - self._owned_api_client: Optional[ApiClient] = ( - api_client if owns_api_client else None - ) - - - def close(self) -> None: - owned_api_client = self._owned_api_client - self._owned_api_client = None - if owned_api_client is not None: - owned_api_client.close() - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - self.close() - - - @validate_call(config={'defer_build': True}) - def create_volume_attributes_class( - self, - body: V1beta1VolumeAttributesClass, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - async_req: Optional[bool] = None, - _return_http_data_only: Optional[bool] = None, - _preload_content: bool = True, - _request_timeout: Union[ - None, - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Tuple[ - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1VolumeAttributesClass: - """create_volume_attributes_class - - create a VolumeAttributesClass - - :param body: (required) - :type body: V1beta1VolumeAttributesClass - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: only affects with_http_info; ordinary - methods always return data only. - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_volume_attributes_class_serialize( - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '201': "V1beta1VolumeAttributesClass", - '202': "V1beta1VolumeAttributesClass", - '401': None, - } - return self.api_client._call_with_legacy_options( - _param, - _response_types_map, - async_req, - _preload_content, - _request_timeout, - True, - ) - - - @validate_call(config={'defer_build': True}) - def create_volume_attributes_class_with_http_info( - self, - body: V1beta1VolumeAttributesClass, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - async_req: Optional[bool] = None, - _return_http_data_only: Optional[bool] = None, - _preload_content: bool = True, - _request_timeout: Union[ - None, - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Tuple[ - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1VolumeAttributesClass, int, Any]: - """create_volume_attributes_class - - create a VolumeAttributesClass - - :param body: (required) - :type body: V1beta1VolumeAttributesClass - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: only affects with_http_info; ordinary - methods always return data only. - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_volume_attributes_class_serialize( - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '201': "V1beta1VolumeAttributesClass", - '202': "V1beta1VolumeAttributesClass", - '401': None, - } - return self.api_client._call_with_legacy_options( - _param, - _response_types_map, - async_req, - _preload_content, - _request_timeout, - _return_http_data_only, - ) - - - def _create_volume_attributes_class_serialize( - self, - body, - pretty, - dry_run, - field_manager, - field_validation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if pretty is not None: - - _query_params.append(('pretty', pretty)) - - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - # process the header parameters - # process the form parameters - # process the body parameter - if body is not None: - _body_params = body - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'BearerToken' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/apis/storage.k8s.io/v1beta1/volumeattributesclasses', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call(config={'defer_build': True}) - def delete_collection_volume_attributes_class( - self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, - async_req: Optional[bool] = None, - _return_http_data_only: Optional[bool] = None, - _preload_content: bool = True, - _request_timeout: Union[ - None, - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Tuple[ - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1Status: - """delete_collection_volume_attributes_class - - delete collection of VolumeAttributesClass - - :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). - :type pretty: str - :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. - :type _continue: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: only affects with_http_info; ordinary - methods always return data only. - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_collection_volume_attributes_class_serialize( - pretty=pretty, - _continue=_continue, - dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", - '401': None, - } - return self.api_client._call_with_legacy_options( - _param, - _response_types_map, - async_req, - _preload_content, - _request_timeout, - True, - ) - - - @validate_call(config={'defer_build': True}) - def delete_collection_volume_attributes_class_with_http_info( - self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - body: Optional[V1DeleteOptions] = None, - async_req: Optional[bool] = None, - _return_http_data_only: Optional[bool] = None, - _preload_content: bool = True, - _request_timeout: Union[ - None, - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Tuple[ - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1Status, int, Any]: - """delete_collection_volume_attributes_class - - delete collection of VolumeAttributesClass - - :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). - :type pretty: str - :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. - :type _continue: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param body: - :type body: V1DeleteOptions - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: only affects with_http_info; ordinary - methods always return data only. - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_collection_volume_attributes_class_serialize( - pretty=pretty, - _continue=_continue, - dry_run=dry_run, - field_selector=field_selector, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", - '401': None, - } - return self.api_client._call_with_legacy_options( - _param, - _response_types_map, - async_req, - _preload_content, - _request_timeout, - _return_http_data_only, - ) - - - def _delete_collection_volume_attributes_class_serialize( - self, - pretty, - _continue, - dry_run, - field_selector, - grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential, - label_selector, - limit, - orphan_dependents, - propagation_policy, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - body, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if pretty is not None: - - _query_params.append(('pretty', pretty)) - - if _continue is not None: - - _query_params.append(('continue', _continue)) - - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if grace_period_seconds is not None: - - _query_params.append(('gracePeriodSeconds', grace_period_seconds)) - - if ignore_store_read_error_with_cluster_breaking_potential is not None: - - _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if orphan_dependents is not None: - - _query_params.append(('orphanDependents', orphan_dependents)) - - if propagation_policy is not None: - - _query_params.append(('propagationPolicy', propagation_policy)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: - - _query_params.append(('shardSelector', shard_selector)) - - if timeout_seconds is not None: - - _query_params.append(('timeoutSeconds', timeout_seconds)) - - # process the header parameters - # process the form parameters - # process the body parameter - if body is not None: - _body_params = body - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'BearerToken' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/apis/storage.k8s.io/v1beta1/volumeattributesclasses', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call(config={'defer_build': True}) - def delete_volume_attributes_class( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - body: Optional[V1DeleteOptions] = None, - async_req: Optional[bool] = None, - _return_http_data_only: Optional[bool] = None, - _preload_content: bool = True, - _request_timeout: Union[ - None, - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Tuple[ - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1VolumeAttributesClass: - """delete_volume_attributes_class - - delete a VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param body: - :type body: V1DeleteOptions - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: only affects with_http_info; ordinary - methods always return data only. - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_volume_attributes_class_serialize( - name=name, - pretty=pretty, - dry_run=dry_run, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '202': "V1beta1VolumeAttributesClass", - '401': None, - } - return self.api_client._call_with_legacy_options( - _param, - _response_types_map, - async_req, - _preload_content, - _request_timeout, - True, - ) - - - @validate_call(config={'defer_build': True}) - def delete_volume_attributes_class_with_http_info( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, - ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, - propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - body: Optional[V1DeleteOptions] = None, - async_req: Optional[bool] = None, - _return_http_data_only: Optional[bool] = None, - _preload_content: bool = True, - _request_timeout: Union[ - None, - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Tuple[ - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1VolumeAttributesClass, int, Any]: - """delete_volume_attributes_class - - delete a VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param grace_period_seconds: 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. - :type grace_period_seconds: int - :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param orphan_dependents: 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 orphan_dependents: bool - :param propagation_policy: 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 propagation_policy: str - :param body: - :type body: V1DeleteOptions - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: only affects with_http_info; ordinary - methods always return data only. - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_volume_attributes_class_serialize( - name=name, - pretty=pretty, - dry_run=dry_run, - grace_period_seconds=grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - orphan_dependents=orphan_dependents, - propagation_policy=propagation_policy, - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '202': "V1beta1VolumeAttributesClass", - '401': None, - } - return self.api_client._call_with_legacy_options( - _param, - _response_types_map, - async_req, - _preload_content, - _request_timeout, - _return_http_data_only, - ) - - - def _delete_volume_attributes_class_serialize( - self, - name, - pretty, - dry_run, - grace_period_seconds, - ignore_store_read_error_with_cluster_breaking_potential, - orphan_dependents, - propagation_policy, - body, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if name is not None: - _path_params['name'] = name - # process the query parameters - if pretty is not None: - - _query_params.append(('pretty', pretty)) - - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if grace_period_seconds is not None: - - _query_params.append(('gracePeriodSeconds', grace_period_seconds)) - - if ignore_store_read_error_with_cluster_breaking_potential is not None: - - _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) - - if orphan_dependents is not None: - - _query_params.append(('orphanDependents', orphan_dependents)) - - if propagation_policy is not None: - - _query_params.append(('propagationPolicy', propagation_policy)) - - # process the header parameters - # process the form parameters - # process the body parameter - if body is not None: - _body_params = body - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'BearerToken' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call(config={'defer_build': True}) - def get_api_resources( - self, - async_req: Optional[bool] = None, - _return_http_data_only: Optional[bool] = None, - _preload_content: bool = True, - _request_timeout: Union[ - None, - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Tuple[ - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1APIResourceList: - """get_api_resources - - get available resources - - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: only affects with_http_info; ordinary - methods always return data only. - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_api_resources_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1APIResourceList", - '401': None, - } - return self.api_client._call_with_legacy_options( - _param, - _response_types_map, - async_req, - _preload_content, - _request_timeout, - True, - ) - - - @validate_call(config={'defer_build': True}) - def get_api_resources_with_http_info( - self, - async_req: Optional[bool] = None, - _return_http_data_only: Optional[bool] = None, - _preload_content: bool = True, - _request_timeout: Union[ - None, - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Tuple[ - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1APIResourceList, int, Any]: - """get_api_resources - - get available resources - - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: only affects with_http_info; ordinary - methods always return data only. - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_api_resources_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1APIResourceList", - '401': None, - } - return self.api_client._call_with_legacy_options( - _param, - _response_types_map, - async_req, - _preload_content, - _request_timeout, - _return_http_data_only, - ) - - - def _get_api_resources_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'BearerToken' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/apis/storage.k8s.io/v1beta1/', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call(config={'defer_build': True}) - def list_volume_attributes_class( - self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, - async_req: Optional[bool] = None, - _return_http_data_only: Optional[bool] = None, - _preload_content: bool = True, - _request_timeout: Union[ - None, - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Tuple[ - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1VolumeAttributesClassList: - """list_volume_attributes_class - - list or watch objects of kind VolumeAttributesClass - - :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). - :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: only affects with_http_info; ordinary - methods always return data only. - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_volume_attributes_class_serialize( - pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClassList", - '401': None, - } - return self.api_client._call_with_legacy_options( - _param, - _response_types_map, - async_req, - _preload_content, - _request_timeout, - True, - ) - - - @validate_call(config={'defer_build': True}) - def list_volume_attributes_class_with_http_info( - self, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, - async_req: Optional[bool] = None, - _return_http_data_only: Optional[bool] = None, - _preload_content: bool = True, - _request_timeout: Union[ - None, - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Tuple[ - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1VolumeAttributesClassList, int, Any]: - """list_volume_attributes_class - - list or watch objects of kind VolumeAttributesClass - - :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). - :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: only affects with_http_info; ordinary - methods always return data only. - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_volume_attributes_class_serialize( - pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClassList", - '401': None, - } - return self.api_client._call_with_legacy_options( - _param, - _response_types_map, - async_req, - _preload_content, - _request_timeout, - _return_http_data_only, - ) - - - def _list_volume_attributes_class_serialize( - self, - pretty, - allow_watch_bookmarks, - _continue, - field_selector, - label_selector, - limit, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - watch, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if pretty is not None: - - _query_params.append(('pretty', pretty)) - - if allow_watch_bookmarks is not None: - - _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) - - if _continue is not None: - - _query_params.append(('continue', _continue)) - - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: - - _query_params.append(('shardSelector', shard_selector)) - - if timeout_seconds is not None: - - _query_params.append(('timeoutSeconds', timeout_seconds)) - - if watch is not None: - - _query_params.append(('watch', watch)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor', - 'application/json;stream=watch', - 'application/vnd.kubernetes.protobuf;stream=watch', - 'application/cbor-seq' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'BearerToken' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/apis/storage.k8s.io/v1beta1/volumeattributesclasses', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call(config={'defer_build': True}) - def patch_volume_attributes_class( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, - async_req: Optional[bool] = None, - _return_http_data_only: Optional[bool] = None, - _preload_content: bool = True, - _request_timeout: Union[ - None, - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Tuple[ - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1VolumeAttributesClass: - """patch_volume_attributes_class - - partially update the specified VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :param body: (required) - :type body: object - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: only affects with_http_info; ordinary - methods always return data only. - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_volume_attributes_class_serialize( - name=name, - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '201': "V1beta1VolumeAttributesClass", - '401': None, - } - return self.api_client._call_with_legacy_options( - _param, - _response_types_map, - async_req, - _preload_content, - _request_timeout, - True, - ) - - - @validate_call(config={'defer_build': True}) - def patch_volume_attributes_class_with_http_info( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, - async_req: Optional[bool] = None, - _return_http_data_only: Optional[bool] = None, - _preload_content: bool = True, - _request_timeout: Union[ - None, - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Tuple[ - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1VolumeAttributesClass, int, Any]: - """patch_volume_attributes_class - - partially update the specified VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :param body: (required) - :type body: object - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: only affects with_http_info; ordinary - methods always return data only. - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_volume_attributes_class_serialize( - name=name, - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '201': "V1beta1VolumeAttributesClass", - '401': None, - } - return self.api_client._call_with_legacy_options( - _param, - _response_types_map, - async_req, - _preload_content, - _request_timeout, - _return_http_data_only, - ) - - - def _patch_volume_attributes_class_serialize( - self, - name, - body, - pretty, - dry_run, - field_manager, - field_validation, - force, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if name is not None: - _path_params['name'] = name - # process the query parameters - if pretty is not None: - - _query_params.append(('pretty', pretty)) - - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - - # process the header parameters - # process the form parameters - # process the body parameter - if body is not None: - _body_params = body - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'BearerToken' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call(config={'defer_build': True}) - def read_volume_attributes_class( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - async_req: Optional[bool] = None, - _return_http_data_only: Optional[bool] = None, - _preload_content: bool = True, - _request_timeout: Union[ - None, - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Tuple[ - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1VolumeAttributesClass: - """read_volume_attributes_class - - read the specified VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :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). - :type pretty: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: only affects with_http_info; ordinary - methods always return data only. - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._read_volume_attributes_class_serialize( - name=name, - pretty=pretty, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '401': None, - } - return self.api_client._call_with_legacy_options( - _param, - _response_types_map, - async_req, - _preload_content, - _request_timeout, - True, - ) - - - @validate_call(config={'defer_build': True}) - def read_volume_attributes_class_with_http_info( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - async_req: Optional[bool] = None, - _return_http_data_only: Optional[bool] = None, - _preload_content: bool = True, - _request_timeout: Union[ - None, - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Tuple[ - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1VolumeAttributesClass, int, Any]: - """read_volume_attributes_class - - read the specified VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :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). - :type pretty: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: only affects with_http_info; ordinary - methods always return data only. - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._read_volume_attributes_class_serialize( - name=name, - pretty=pretty, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '401': None, - } - return self.api_client._call_with_legacy_options( - _param, - _response_types_map, - async_req, - _preload_content, - _request_timeout, - _return_http_data_only, - ) - - - def _read_volume_attributes_class_serialize( - self, - name, - pretty, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if name is not None: - _path_params['name'] = name - # process the query parameters - if pretty is not None: - - _query_params.append(('pretty', pretty)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'BearerToken' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call(config={'defer_build': True}) - def replace_volume_attributes_class( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - body: V1beta1VolumeAttributesClass, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - async_req: Optional[bool] = None, - _return_http_data_only: Optional[bool] = None, - _preload_content: bool = True, - _request_timeout: Union[ - None, - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Tuple[ - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1beta1VolumeAttributesClass: - """replace_volume_attributes_class - - replace the specified VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :param body: (required) - :type body: V1beta1VolumeAttributesClass - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: only affects with_http_info; ordinary - methods always return data only. - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._replace_volume_attributes_class_serialize( - name=name, - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '201': "V1beta1VolumeAttributesClass", - '401': None, - } - return self.api_client._call_with_legacy_options( - _param, - _response_types_map, - async_req, - _preload_content, - _request_timeout, - True, - ) - - - @validate_call(config={'defer_build': True}) - def replace_volume_attributes_class_with_http_info( - self, - name: Annotated[StrictStr, Field(description="name of the VolumeAttributesClass")], - body: V1beta1VolumeAttributesClass, - pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - async_req: Optional[bool] = None, - _return_http_data_only: Optional[bool] = None, - _preload_content: bool = True, - _request_timeout: Union[ - None, - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Tuple[ - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], - Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1beta1VolumeAttributesClass, int, Any]: - """replace_volume_attributes_class - - replace the specified VolumeAttributesClass - - :param name: name of the VolumeAttributesClass (required) - :type name: str - :param body: (required) - :type body: V1beta1VolumeAttributesClass - :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). - :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _return_http_data_only: only affects with_http_info; ordinary - methods always return data only. - :type _return_http_data_only: bool, optional - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :type _preload_content: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._replace_volume_attributes_class_serialize( - name=name, - body=body, - pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1beta1VolumeAttributesClass", - '201': "V1beta1VolumeAttributesClass", - '401': None, - } - return self.api_client._call_with_legacy_options( - _param, - _response_types_map, - async_req, - _preload_content, - _request_timeout, - _return_http_data_only, - ) - - - def _replace_volume_attributes_class_serialize( - self, - name, - body, - pretty, - dry_run, - field_manager, - field_validation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if name is not None: - _path_params['name'] = name - # process the query parameters - if pretty is not None: - - _query_params.append(('pretty', pretty)) - - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - # process the header parameters - # process the form parameters - # process the body parameter - if body is not None: - _body_params = body - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json', - 'application/yaml', - 'application/vnd.kubernetes.protobuf', - 'application/cbor' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'BearerToken' - ] - - return self.api_client.param_serialize( - method='PUT', - resource_path='/apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) diff --git a/kubernetes/client/api/storagemigration_api.py b/kubernetes/client/api/storagemigration_api.py index be24da3781..44efabef84 100644 --- a/kubernetes/client/api/storagemigration_api.py +++ b/kubernetes/client/api/storagemigration_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -240,7 +240,8 @@ def _get_api_group_serialize( [ 'application/json', 'application/yaml', - 'application/vnd.kubernetes.protobuf' + 'application/vnd.kubernetes.protobuf', + 'application/cbor' ] ) diff --git a/kubernetes/client/api/certificates_v1alpha1_api.py b/kubernetes/client/api/storagemigration_v1_api.py similarity index 77% rename from kubernetes/client/api/certificates_v1alpha1_api.py rename to kubernetes/client/api/storagemigration_v1_api.py index 285e4eeaa8..03802dfb58 100644 --- a/kubernetes/client/api/certificates_v1alpha1_api.py +++ b/kubernetes/client/api/storagemigration_v1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,15 +21,15 @@ from kubernetes.client.models.v1_api_resource_list import V1APIResourceList from kubernetes.client.models.v1_delete_options import V1DeleteOptions from kubernetes.client.models.v1_status import V1Status -from kubernetes.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle -from kubernetes.client.models.v1alpha1_cluster_trust_bundle_list import V1alpha1ClusterTrustBundleList +from kubernetes.client.models.v1_storage_version_migration import V1StorageVersionMigration +from kubernetes.client.models.v1_storage_version_migration_list import V1StorageVersionMigrationList from kubernetes.client.api_client import ApiClient, RequestSerialized from kubernetes.client.api_response import ApiResponse from kubernetes.client.rest import RESTResponseType -class CertificatesV1alpha1Api: +class StoragemigrationV1Api: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech @@ -63,9 +63,9 @@ def __exit__(self, exc_type, exc_value, traceback): @validate_call(config={'defer_build': True}) - def create_cluster_trust_bundle( + def create_storage_version_migration( self, - body: V1alpha1ClusterTrustBundle, + body: V1StorageVersionMigration, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -85,13 +85,13 @@ def create_cluster_trust_bundle( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha1ClusterTrustBundle: - """create_cluster_trust_bundle + ) -> V1StorageVersionMigration: + """create_storage_version_migration - create a ClusterTrustBundle + create a StorageVersionMigration :param body: (required) - :type body: V1alpha1ClusterTrustBundle + :type body: V1StorageVersionMigration :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -131,7 +131,7 @@ def create_cluster_trust_bundle( :return: Returns the result object. """ # noqa: E501 - _param = self._create_cluster_trust_bundle_serialize( + _param = self._create_storage_version_migration_serialize( body=body, pretty=pretty, dry_run=dry_run, @@ -144,9 +144,9 @@ def create_cluster_trust_bundle( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", - '201': "V1alpha1ClusterTrustBundle", - '202': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", + '202': "V1StorageVersionMigration", '401': None, } return self.api_client._call_with_legacy_options( @@ -160,9 +160,9 @@ def create_cluster_trust_bundle( @validate_call(config={'defer_build': True}) - def create_cluster_trust_bundle_with_http_info( + def create_storage_version_migration_with_http_info( self, - body: V1alpha1ClusterTrustBundle, + body: V1StorageVersionMigration, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -182,13 +182,13 @@ def create_cluster_trust_bundle_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha1ClusterTrustBundle, int, Any]: - """create_cluster_trust_bundle + ) -> Tuple[V1StorageVersionMigration, int, Any]: + """create_storage_version_migration - create a ClusterTrustBundle + create a StorageVersionMigration :param body: (required) - :type body: V1alpha1ClusterTrustBundle + :type body: V1StorageVersionMigration :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -228,7 +228,7 @@ def create_cluster_trust_bundle_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_cluster_trust_bundle_serialize( + _param = self._create_storage_version_migration_serialize( body=body, pretty=pretty, dry_run=dry_run, @@ -241,9 +241,9 @@ def create_cluster_trust_bundle_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", - '201': "V1alpha1ClusterTrustBundle", - '202': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", + '202': "V1StorageVersionMigration", '401': None, } return self.api_client._call_with_legacy_options( @@ -256,7 +256,7 @@ def create_cluster_trust_bundle_with_http_info( ) - def _create_cluster_trust_bundle_serialize( + def _create_storage_version_migration_serialize( self, body, pretty, @@ -327,7 +327,7 @@ def _create_cluster_trust_bundle_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/apis/certificates.k8s.io/v1alpha1/clustertrustbundles', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -344,15 +344,23 @@ def _create_cluster_trust_bundle_serialize( @validate_call(config={'defer_build': True}) - def delete_cluster_trust_bundle( + def delete_collection_storage_version_migration( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -369,25 +377,41 @@ def delete_cluster_trust_bundle( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """delete_cluster_trust_bundle + ) -> V1Status: + """delete_collection_storage_version_migration - delete a ClusterTrustBundle + delete collection of StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) - :type name: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. @@ -421,14 +445,22 @@ def delete_cluster_trust_bundle( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_cluster_trust_bundle_serialize( - name=name, + _param = self._delete_collection_storage_version_migration_serialize( pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -437,8 +469,7 @@ def delete_cluster_trust_bundle( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '202': "object", + '200': "V1Status", '401': None, } return self.api_client._call_with_legacy_options( @@ -452,15 +483,23 @@ def delete_cluster_trust_bundle( @validate_call(config={'defer_build': True}) - def delete_cluster_trust_bundle_with_http_info( + def delete_collection_storage_version_migration_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -477,25 +516,41 @@ def delete_cluster_trust_bundle_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[object, int, Any]: - """delete_cluster_trust_bundle + ) -> Tuple[V1Status, int, Any]: + """delete_collection_storage_version_migration - delete a ClusterTrustBundle + delete collection of StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) - :type name: str :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). :type pretty: str + :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. + :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. @@ -529,14 +584,22 @@ def delete_cluster_trust_bundle_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_cluster_trust_bundle_serialize( - name=name, + _param = self._delete_collection_storage_version_migration_serialize( pretty=pretty, + _continue=_continue, dry_run=dry_run, + field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, + label_selector=label_selector, + limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -545,8 +608,7 @@ def delete_cluster_trust_bundle_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '202': "object", + '200': "V1Status", '401': None, } return self.api_client._call_with_legacy_options( @@ -559,15 +621,23 @@ def delete_cluster_trust_bundle_with_http_info( ) - def _delete_cluster_trust_bundle_serialize( + def _delete_collection_storage_version_migration_serialize( self, - name, pretty, + _continue, dry_run, + field_selector, grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential, + label_selector, + limit, orphan_dependents, propagation_policy, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, body, _request_auth, _content_type, @@ -590,17 +660,23 @@ def _delete_cluster_trust_bundle_serialize( _body_params: Optional[bytes] = None # process the path parameters - if name is not None: - _path_params['name'] = name # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) + if _continue is not None: + + _query_params.append(('continue', _continue)) + if dry_run is not None: _query_params.append(('dryRun', dry_run)) + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + if grace_period_seconds is not None: _query_params.append(('gracePeriodSeconds', grace_period_seconds)) @@ -609,6 +685,14 @@ def _delete_cluster_trust_bundle_serialize( _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + if orphan_dependents is not None: _query_params.append(('orphanDependents', orphan_dependents)) @@ -617,6 +701,26 @@ def _delete_cluster_trust_bundle_serialize( _query_params.append(('propagationPolicy', propagation_policy)) + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + # process the header parameters # process the form parameters # process the body parameter @@ -643,7 +747,7 @@ def _delete_cluster_trust_bundle_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -660,23 +764,15 @@ def _delete_cluster_trust_bundle_serialize( @validate_call(config={'defer_build': True}) - def delete_collection_cluster_trust_bundle( + def delete_storage_version_migration( self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -693,41 +789,25 @@ def delete_collection_cluster_trust_bundle( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1Status: - """delete_collection_cluster_trust_bundle + ) -> object: + """delete_storage_version_migration - delete collection of ClusterTrustBundle + delete a StorageVersionMigration + :param name: name of the StorageVersionMigration (required) + :type name: str :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). :type pretty: str - :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. - :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. @@ -761,22 +841,14 @@ def delete_collection_cluster_trust_bundle( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_collection_cluster_trust_bundle_serialize( + _param = self._delete_storage_version_migration_serialize( + name=name, pretty=pretty, - _continue=_continue, dry_run=dry_run, - field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -785,7 +857,8 @@ def delete_collection_cluster_trust_bundle( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", + '200': "object", + '202': "object", '401': None, } return self.api_client._call_with_legacy_options( @@ -799,23 +872,15 @@ def delete_collection_cluster_trust_bundle( @validate_call(config={'defer_build': True}) - def delete_collection_cluster_trust_bundle_with_http_info( + def delete_storage_version_migration_with_http_info( self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, grace_period_seconds: Annotated[Optional[StrictInt], Field(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.")] = None, ignore_store_read_error_with_cluster_breaking_potential: Annotated[Optional[StrictBool], Field(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")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, orphan_dependents: Annotated[Optional[StrictBool], Field(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.")] = None, propagation_policy: Annotated[Optional[StrictStr], Field(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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, body: Optional[V1DeleteOptions] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, @@ -832,41 +897,25 @@ def delete_collection_cluster_trust_bundle_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1Status, int, Any]: - """delete_collection_cluster_trust_bundle + ) -> Tuple[object, int, Any]: + """delete_storage_version_migration - delete collection of ClusterTrustBundle + delete a StorageVersionMigration + :param name: name of the StorageVersionMigration (required) + :type name: str :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). :type pretty: str - :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. - :type _continue: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str :param grace_period_seconds: 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. :type grace_period_seconds: int :param ignore_store_read_error_with_cluster_breaking_potential: 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 ignore_store_read_error_with_cluster_breaking_potential: bool - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int :param orphan_dependents: 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 orphan_dependents: bool :param propagation_policy: 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 propagation_policy: str - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int :param body: :type body: V1DeleteOptions :param async_req: Whether to execute the request asynchronously. @@ -900,22 +949,14 @@ def delete_collection_cluster_trust_bundle_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_collection_cluster_trust_bundle_serialize( + _param = self._delete_storage_version_migration_serialize( + name=name, pretty=pretty, - _continue=_continue, dry_run=dry_run, - field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, - label_selector=label_selector, - limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, body=body, _request_auth=_request_auth, _content_type=_content_type, @@ -924,7 +965,8 @@ def delete_collection_cluster_trust_bundle_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1Status", + '200': "object", + '202': "object", '401': None, } return self.api_client._call_with_legacy_options( @@ -937,23 +979,15 @@ def delete_collection_cluster_trust_bundle_with_http_info( ) - def _delete_collection_cluster_trust_bundle_serialize( + def _delete_storage_version_migration_serialize( self, + name, pretty, - _continue, dry_run, - field_selector, grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential, - label_selector, - limit, orphan_dependents, propagation_policy, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, body, _request_auth, _content_type, @@ -976,23 +1010,17 @@ def _delete_collection_cluster_trust_bundle_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if _continue is not None: - - _query_params.append(('continue', _continue)) - if dry_run is not None: _query_params.append(('dryRun', dry_run)) - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - if grace_period_seconds is not None: _query_params.append(('gracePeriodSeconds', grace_period_seconds)) @@ -1001,14 +1029,6 @@ def _delete_collection_cluster_trust_bundle_serialize( _query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', ignore_store_read_error_with_cluster_breaking_potential)) - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - if orphan_dependents is not None: _query_params.append(('orphanDependents', orphan_dependents)) @@ -1017,31 +1037,11 @@ def _delete_collection_cluster_trust_bundle_serialize( _query_params.append(('propagationPolicy', propagation_policy)) - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: - - _query_params.append(('shardSelector', shard_selector)) - - if timeout_seconds is not None: - - _query_params.append(('timeoutSeconds', timeout_seconds)) - - # process the header parameters - # process the form parameters - # process the body parameter - if body is not None: - _body_params = body + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -1063,7 +1063,7 @@ def _delete_collection_cluster_trust_bundle_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/apis/certificates.k8s.io/v1alpha1/clustertrustbundles', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1277,7 +1277,7 @@ def _get_api_resources_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/certificates.k8s.io/v1alpha1/', + resource_path='/apis/storagemigration.k8s.io/v1/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1294,7 +1294,130 @@ def _get_api_resources_serialize( @validate_call(config={'defer_build': True}) - def list_cluster_trust_bundle( + def list_storage_version_migration( + self, + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, + _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, + field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, + label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, + resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, + send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, + shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, + timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, + watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1StorageVersionMigrationList: + """list_storage_version_migration + + list or watch objects of kind StorageVersionMigration + + :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). + :type pretty: str + :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + :type allow_watch_bookmarks: bool + :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. + :type _continue: str + :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :type field_selector: str + :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :type label_selector: str + :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. + :type limit: int + :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version: str + :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + :type resource_version_match: str + :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + :type send_initial_events: bool + :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + :type shard_selector: str + :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + :type timeout_seconds: int + :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :type watch: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_storage_version_migration_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1StorageVersionMigrationList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def list_storage_version_migration_with_http_info( self, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, @@ -1323,10 +1446,10 @@ def list_cluster_trust_bundle( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha1ClusterTrustBundleList: - """list_cluster_trust_bundle + ) -> Tuple[V1StorageVersionMigrationList, int, Any]: + """list_storage_version_migration - list or watch objects of kind ClusterTrustBundle + list or watch objects of kind StorageVersionMigration :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). :type pretty: str @@ -1383,19 +1506,869 @@ def list_cluster_trust_bundle( :return: Returns the result object. """ # noqa: E501 - _param = self._list_cluster_trust_bundle_serialize( + _param = self._list_storage_version_migration_serialize( + pretty=pretty, + allow_watch_bookmarks=allow_watch_bookmarks, + _continue=_continue, + field_selector=field_selector, + label_selector=label_selector, + limit=limit, + resource_version=resource_version, + resource_version_match=resource_version_match, + send_initial_events=send_initial_events, + shard_selector=shard_selector, + timeout_seconds=timeout_seconds, + watch=watch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1StorageVersionMigrationList", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _list_storage_version_migration_serialize( + self, + pretty, + allow_watch_bookmarks, + _continue, + field_selector, + label_selector, + limit, + resource_version, + resource_version_match, + send_initial_events, + shard_selector, + timeout_seconds, + watch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if allow_watch_bookmarks is not None: + + _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) + + if _continue is not None: + + _query_params.append(('continue', _continue)) + + if field_selector is not None: + + _query_params.append(('fieldSelector', field_selector)) + + if label_selector is not None: + + _query_params.append(('labelSelector', label_selector)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if resource_version is not None: + + _query_params.append(('resourceVersion', resource_version)) + + if resource_version_match is not None: + + _query_params.append(('resourceVersionMatch', resource_version_match)) + + if send_initial_events is not None: + + _query_params.append(('sendInitialEvents', send_initial_events)) + + if shard_selector is not None: + + _query_params.append(('shardSelector', shard_selector)) + + if timeout_seconds is not None: + + _query_params.append(('timeoutSeconds', timeout_seconds)) + + if watch is not None: + + _query_params.append(('watch', watch)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor', + 'application/json;stream=watch', + 'application/vnd.kubernetes.protobuf;stream=watch', + 'application/cbor-seq' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_storage_version_migration( + self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1StorageVersionMigration: + """patch_storage_version_migration + + partially update the specified StorageVersionMigration + + :param name: name of the StorageVersionMigration (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_storage_version_migration_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_storage_version_migration_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1StorageVersionMigration, int, Any]: + """patch_storage_version_migration + + partially update the specified StorageVersionMigration + + :param name: name of the StorageVersionMigration (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_storage_version_migration_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_storage_version_migration_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def patch_storage_version_migration_status( + self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1StorageVersionMigration: + """patch_storage_version_migration_status + + partially update status of the specified StorageVersionMigration + + :param name: name of the StorageVersionMigration (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_storage_version_migration_status_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + True, + ) + + + @validate_call(config={'defer_build': True}) + def patch_storage_version_migration_status_with_http_info( + self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, + force: Annotated[Optional[StrictBool], Field(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.")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Tuple[V1StorageVersionMigration, int, Any]: + """patch_storage_version_migration_status + + partially update status of the specified StorageVersionMigration + + :param name: name of the StorageVersionMigration (required) + :type name: str + :param body: (required) + :type body: object + :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). + :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). + :type field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str + :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. + :type force: bool + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_storage_version_migration_status_serialize( + name=name, + body=body, + pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, + force=force, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", + '401': None, + } + return self.api_client._call_with_legacy_options( + _param, + _response_types_map, + async_req, + _preload_content, + _request_timeout, + _return_http_data_only, + ) + + + def _patch_storage_version_migration_status_serialize( + self, + name, + body, + pretty, + dry_run, + field_manager, + field_validation, + force, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if pretty is not None: + + _query_params.append(('pretty', pretty)) + + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + + if force is not None: + + _query_params.append(('force', force)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml', + 'application/vnd.kubernetes.protobuf', + 'application/cbor' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json-patch+json', + 'application/merge-patch+json', + 'application/strategic-merge-patch+json', + 'application/apply-patch+yaml', + 'application/apply-patch+cbor' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerToken' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call(config={'defer_build': True}) + def read_storage_version_migration( + self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + async_req: Optional[bool] = None, + _return_http_data_only: Optional[bool] = None, + _preload_content: bool = True, + _request_timeout: Union[ + None, + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Tuple[ + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)], + Annotated[Union[StrictFloat, StrictInt], Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1StorageVersionMigration: + """read_storage_version_migration + + read the specified StorageVersionMigration + + :param name: name of the StorageVersionMigration (required) + :type name: str + :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). + :type pretty: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: only affects with_http_info; ordinary + methods always return data only. + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._read_storage_version_migration_serialize( + name=name, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1403,7 +2376,7 @@ def list_cluster_trust_bundle( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundleList", + '200': "V1StorageVersionMigration", '401': None, } return self.api_client._call_with_legacy_options( @@ -1417,20 +2390,10 @@ def list_cluster_trust_bundle( @validate_call(config={'defer_build': True}) - def list_cluster_trust_bundle_with_http_info( + def read_storage_version_migration_with_http_info( self, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - allow_watch_bookmarks: Annotated[Optional[StrictBool], Field(description="allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.")] = None, - _continue: Annotated[Optional[StrictStr], Field(description="The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.")] = None, - field_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their fields. Defaults to everything.")] = None, - label_selector: Annotated[Optional[StrictStr], Field(description="A selector to restrict the list of returned objects by their labels. Defaults to everything.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.")] = None, - resource_version: Annotated[Optional[StrictStr], Field(description="resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - resource_version_match: Annotated[Optional[StrictStr], Field(description="resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset")] = None, - send_initial_events: Annotated[Optional[StrictBool], Field(description="`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.")] = None, - shard_selector: Annotated[Optional[StrictStr], Field(description="shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.")] = None, - timeout_seconds: Annotated[Optional[StrictInt], Field(description="Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.")] = None, - watch: Annotated[Optional[StrictBool], Field(description="Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -1446,35 +2409,15 @@ def list_cluster_trust_bundle_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha1ClusterTrustBundleList, int, Any]: - """list_cluster_trust_bundle + ) -> Tuple[V1StorageVersionMigration, int, Any]: + """read_storage_version_migration - list or watch objects of kind ClusterTrustBundle + read the specified StorageVersionMigration + :param name: name of the StorageVersionMigration (required) + :type name: str :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). :type pretty: str - :param allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - :type allow_watch_bookmarks: bool - :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. - :type _continue: str - :param field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :type field_selector: str - :param label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :type label_selector: str - :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. - :type limit: int - :param resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version: str - :param resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - :type resource_version_match: str - :param send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - :type send_initial_events: bool - :param shard_selector: shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. - :type shard_selector: str - :param timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :type timeout_seconds: int - :param watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :type watch: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -1506,19 +2449,9 @@ def list_cluster_trust_bundle_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_cluster_trust_bundle_serialize( + _param = self._read_storage_version_migration_serialize( + name=name, pretty=pretty, - allow_watch_bookmarks=allow_watch_bookmarks, - _continue=_continue, - field_selector=field_selector, - label_selector=label_selector, - limit=limit, - resource_version=resource_version, - resource_version_match=resource_version_match, - send_initial_events=send_initial_events, - shard_selector=shard_selector, - timeout_seconds=timeout_seconds, - watch=watch, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1526,7 +2459,7 @@ def list_cluster_trust_bundle_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundleList", + '200': "V1StorageVersionMigration", '401': None, } return self.api_client._call_with_legacy_options( @@ -1539,20 +2472,10 @@ def list_cluster_trust_bundle_with_http_info( ) - def _list_cluster_trust_bundle_serialize( + def _read_storage_version_migration_serialize( self, + name, pretty, - allow_watch_bookmarks, - _continue, - field_selector, - label_selector, - limit, - resource_version, - resource_version_match, - send_initial_events, - shard_selector, - timeout_seconds, - watch, _request_auth, _content_type, _headers, @@ -1574,55 +2497,13 @@ def _list_cluster_trust_bundle_serialize( _body_params: Optional[bytes] = None # process the path parameters + if name is not None: + _path_params['name'] = name # process the query parameters if pretty is not None: _query_params.append(('pretty', pretty)) - if allow_watch_bookmarks is not None: - - _query_params.append(('allowWatchBookmarks', allow_watch_bookmarks)) - - if _continue is not None: - - _query_params.append(('continue', _continue)) - - if field_selector is not None: - - _query_params.append(('fieldSelector', field_selector)) - - if label_selector is not None: - - _query_params.append(('labelSelector', label_selector)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if resource_version is not None: - - _query_params.append(('resourceVersion', resource_version)) - - if resource_version_match is not None: - - _query_params.append(('resourceVersionMatch', resource_version_match)) - - if send_initial_events is not None: - - _query_params.append(('sendInitialEvents', send_initial_events)) - - if shard_selector is not None: - - _query_params.append(('shardSelector', shard_selector)) - - if timeout_seconds is not None: - - _query_params.append(('timeoutSeconds', timeout_seconds)) - - if watch is not None: - - _query_params.append(('watch', watch)) - # process the header parameters # process the form parameters # process the body parameter @@ -1635,10 +2516,7 @@ def _list_cluster_trust_bundle_serialize( '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' ] ) @@ -1650,7 +2528,7 @@ def _list_cluster_trust_bundle_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/apis/certificates.k8s.io/v1alpha1/clustertrustbundles', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1667,15 +2545,10 @@ def _list_cluster_trust_bundle_serialize( @validate_call(config={'defer_build': True}) - def patch_cluster_trust_bundle( + def read_storage_version_migration_status( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -1691,25 +2564,15 @@ def patch_cluster_trust_bundle( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha1ClusterTrustBundle: - """patch_cluster_trust_bundle + ) -> V1StorageVersionMigration: + """read_storage_version_migration_status - partially update the specified ClusterTrustBundle + read status of the specified StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) + :param name: name of the StorageVersionMigration (required) :type name: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -1741,14 +2604,9 @@ def patch_cluster_trust_bundle( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_cluster_trust_bundle_serialize( + _param = self._read_storage_version_migration_status_serialize( name=name, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1756,8 +2614,7 @@ def patch_cluster_trust_bundle( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", - '201': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", '401': None, } return self.api_client._call_with_legacy_options( @@ -1771,15 +2628,10 @@ def patch_cluster_trust_bundle( @validate_call(config={'defer_build': True}) - def patch_cluster_trust_bundle_with_http_info( + def read_storage_version_migration_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], - body: Union[Dict[str, Any], List[Dict[str, Any]], BaseModel], + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, - dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, - field_manager: Annotated[Optional[StrictStr], Field(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).")] = None, - field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, - force: Annotated[Optional[StrictBool], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -1795,25 +2647,15 @@ def patch_cluster_trust_bundle_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha1ClusterTrustBundle, int, Any]: - """patch_cluster_trust_bundle + ) -> Tuple[V1StorageVersionMigration, int, Any]: + """read_storage_version_migration_status - partially update the specified ClusterTrustBundle + read status of the specified StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) + :param name: name of the StorageVersionMigration (required) :type name: str - :param body: (required) - :type body: object :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). :type pretty: str - :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str - :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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). - :type field_manager: str - :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str - :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. - :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -1845,14 +2687,9 @@ def patch_cluster_trust_bundle_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_cluster_trust_bundle_serialize( + _param = self._read_storage_version_migration_status_serialize( name=name, - body=body, pretty=pretty, - dry_run=dry_run, - field_manager=field_manager, - field_validation=field_validation, - force=force, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1860,8 +2697,7 @@ def patch_cluster_trust_bundle_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", - '201': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", '401': None, } return self.api_client._call_with_legacy_options( @@ -1874,15 +2710,10 @@ def patch_cluster_trust_bundle_with_http_info( ) - def _patch_cluster_trust_bundle_serialize( + def _read_storage_version_migration_status_serialize( self, name, - body, pretty, - dry_run, - field_manager, - field_validation, - force, _request_auth, _content_type, _headers, @@ -1911,27 +2742,9 @@ def _patch_cluster_trust_bundle_serialize( _query_params.append(('pretty', pretty)) - if dry_run is not None: - - _query_params.append(('dryRun', dry_run)) - - if field_manager is not None: - - _query_params.append(('fieldManager', field_manager)) - - if field_validation is not None: - - _query_params.append(('fieldValidation', field_validation)) - - if force is not None: - - _query_params.append(('force', force)) - # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body # set the HTTP header `Accept` @@ -1945,23 +2758,6 @@ def _patch_cluster_trust_bundle_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json-patch+json', - 'application/merge-patch+json', - 'application/strategic-merge-patch+json', - 'application/apply-patch+yaml', - 'application/apply-patch+cbor' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -1969,8 +2765,8 @@ def _patch_cluster_trust_bundle_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}', + method='GET', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1987,10 +2783,14 @@ def _patch_cluster_trust_bundle_serialize( @validate_call(config={'defer_build': True}) - def read_cluster_trust_bundle( + def replace_storage_version_migration( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: V1StorageVersionMigration, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -2006,15 +2806,23 @@ def read_cluster_trust_bundle( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha1ClusterTrustBundle: - """read_cluster_trust_bundle + ) -> V1StorageVersionMigration: + """replace_storage_version_migration - read the specified ClusterTrustBundle + replace the specified StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) + :param name: name of the StorageVersionMigration (required) :type name: str + :param body: (required) + :type body: V1StorageVersionMigration :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -2046,9 +2854,13 @@ def read_cluster_trust_bundle( :return: Returns the result object. """ # noqa: E501 - _param = self._read_cluster_trust_bundle_serialize( + _param = self._replace_storage_version_migration_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2056,7 +2868,8 @@ def read_cluster_trust_bundle( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", '401': None, } return self.api_client._call_with_legacy_options( @@ -2070,10 +2883,14 @@ def read_cluster_trust_bundle( @validate_call(config={'defer_build': True}) - def read_cluster_trust_bundle_with_http_info( + def replace_storage_version_migration_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: V1StorageVersionMigration, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, + dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, + field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, + field_validation: Annotated[Optional[StrictStr], Field(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.")] = None, async_req: Optional[bool] = None, _return_http_data_only: Optional[bool] = None, _preload_content: bool = True, @@ -2089,15 +2906,23 @@ def read_cluster_trust_bundle_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha1ClusterTrustBundle, int, Any]: - """read_cluster_trust_bundle + ) -> Tuple[V1StorageVersionMigration, int, Any]: + """replace_storage_version_migration - read the specified ClusterTrustBundle + replace the specified StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) + :param name: name of the StorageVersionMigration (required) :type name: str + :param body: (required) + :type body: V1StorageVersionMigration :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). :type pretty: str + :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 dry_run: str + :param field_manager: fieldManager is a name associated with the actor or entity that is making these changes. 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 field_manager: str + :param field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 field_validation: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: only affects with_http_info; ordinary @@ -2129,9 +2954,13 @@ def read_cluster_trust_bundle_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._read_cluster_trust_bundle_serialize( + _param = self._replace_storage_version_migration_serialize( name=name, + body=body, pretty=pretty, + dry_run=dry_run, + field_manager=field_manager, + field_validation=field_validation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2139,7 +2968,8 @@ def read_cluster_trust_bundle_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", '401': None, } return self.api_client._call_with_legacy_options( @@ -2152,10 +2982,14 @@ def read_cluster_trust_bundle_with_http_info( ) - def _read_cluster_trust_bundle_serialize( + def _replace_storage_version_migration_serialize( self, name, + body, pretty, + dry_run, + field_manager, + field_validation, _request_auth, _content_type, _headers, @@ -2184,9 +3018,23 @@ def _read_cluster_trust_bundle_serialize( _query_params.append(('pretty', pretty)) + if dry_run is not None: + + _query_params.append(('dryRun', dry_run)) + + if field_manager is not None: + + _query_params.append(('fieldManager', field_manager)) + + if field_validation is not None: + + _query_params.append(('fieldValidation', field_validation)) + # process the header parameters # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -2207,8 +3055,8 @@ def _read_cluster_trust_bundle_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}', + method='PUT', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2225,10 +3073,10 @@ def _read_cluster_trust_bundle_serialize( @validate_call(config={'defer_build': True}) - def replace_cluster_trust_bundle( + def replace_storage_version_migration_status( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], - body: V1alpha1ClusterTrustBundle, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: V1StorageVersionMigration, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -2248,15 +3096,15 @@ def replace_cluster_trust_bundle( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1alpha1ClusterTrustBundle: - """replace_cluster_trust_bundle + ) -> V1StorageVersionMigration: + """replace_storage_version_migration_status - replace the specified ClusterTrustBundle + replace status of the specified StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) + :param name: name of the StorageVersionMigration (required) :type name: str :param body: (required) - :type body: V1alpha1ClusterTrustBundle + :type body: V1StorageVersionMigration :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -2296,7 +3144,7 @@ def replace_cluster_trust_bundle( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_cluster_trust_bundle_serialize( + _param = self._replace_storage_version_migration_status_serialize( name=name, body=body, pretty=pretty, @@ -2310,8 +3158,8 @@ def replace_cluster_trust_bundle( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", - '201': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", '401': None, } return self.api_client._call_with_legacy_options( @@ -2325,10 +3173,10 @@ def replace_cluster_trust_bundle( @validate_call(config={'defer_build': True}) - def replace_cluster_trust_bundle_with_http_info( + def replace_storage_version_migration_status_with_http_info( self, - name: Annotated[StrictStr, Field(description="name of the ClusterTrustBundle")], - body: V1alpha1ClusterTrustBundle, + name: Annotated[StrictStr, Field(description="name of the StorageVersionMigration")], + body: V1StorageVersionMigration, pretty: Annotated[Optional[StrictStr], Field(description="If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).")] = None, dry_run: Annotated[Optional[StrictStr], Field(description="When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed")] = None, field_manager: Annotated[Optional[StrictStr], Field(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.")] = None, @@ -2348,15 +3196,15 @@ def replace_cluster_trust_bundle_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Tuple[V1alpha1ClusterTrustBundle, int, Any]: - """replace_cluster_trust_bundle + ) -> Tuple[V1StorageVersionMigration, int, Any]: + """replace_storage_version_migration_status - replace the specified ClusterTrustBundle + replace status of the specified StorageVersionMigration - :param name: name of the ClusterTrustBundle (required) + :param name: name of the StorageVersionMigration (required) :type name: str :param body: (required) - :type body: V1alpha1ClusterTrustBundle + :type body: V1StorageVersionMigration :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). :type pretty: str :param dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -2396,7 +3244,7 @@ def replace_cluster_trust_bundle_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_cluster_trust_bundle_serialize( + _param = self._replace_storage_version_migration_status_serialize( name=name, body=body, pretty=pretty, @@ -2410,8 +3258,8 @@ def replace_cluster_trust_bundle_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1alpha1ClusterTrustBundle", - '201': "V1alpha1ClusterTrustBundle", + '200': "V1StorageVersionMigration", + '201': "V1StorageVersionMigration", '401': None, } return self.api_client._call_with_legacy_options( @@ -2424,7 +3272,7 @@ def replace_cluster_trust_bundle_with_http_info( ) - def _replace_cluster_trust_bundle_serialize( + def _replace_storage_version_migration_status_serialize( self, name, body, @@ -2498,7 +3346,7 @@ def _replace_cluster_trust_bundle_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}', + resource_path='/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/kubernetes/client/api/storagemigration_v1beta1_api.py b/kubernetes/client/api/storagemigration_v1beta1_api.py index f04aa9fc02..0552a0a611 100644 --- a/kubernetes/client/api/storagemigration_v1beta1_api.py +++ b/kubernetes/client/api/storagemigration_v1beta1_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/version_api.py b/kubernetes/client/api/version_api.py index a01afa6aaf..025698d89c 100644 --- a/kubernetes/client/api/version_api.py +++ b/kubernetes/client/api/version_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/api/well_known_api.py b/kubernetes/client/api/well_known_api.py index 236392ef98..434362d6a1 100644 --- a/kubernetes/client/api/well_known_api.py +++ b/kubernetes/client/api/well_known_api.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/__init__.py b/kubernetes/client/models/__init__.py index 3db8a194b4..0719bc2515 100644 --- a/kubernetes/client/models/__init__.py +++ b/kubernetes/client/models/__init__.py @@ -6,7 +6,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -64,6 +64,7 @@ "V1CSINodeDriver", "V1CSINodeList", "V1CSINodeSpec", + "V1CSINodeStatus", "V1CSIPersistentVolumeSource", "V1CSIStorageCapacity", "V1CSIStorageCapacityList", @@ -86,7 +87,10 @@ "V1ClusterRoleBinding", "V1ClusterRoleBindingList", "V1ClusterRoleList", + "V1ClusterTrustBundle", + "V1ClusterTrustBundleList", "V1ClusterTrustBundleProjection", + "V1ClusterTrustBundleSpec", "V1ComponentCondition", "V1ComponentStatus", "V1ComponentStatusList", @@ -159,11 +163,17 @@ "V1DeviceClassSpec", "V1DeviceConstraint", "V1DeviceCounterConsumption", + "V1DeviceDerivedAttribute", "V1DeviceRequest", "V1DeviceRequestAllocationResult", "V1DeviceSelector", "V1DeviceSubRequest", "V1DeviceTaint", + "V1DeviceTaintRule", + "V1DeviceTaintRuleList", + "V1DeviceTaintRuleSpec", + "V1DeviceTaintRuleStatus", + "V1DeviceTaintSelector", "V1DeviceToleration", "V1DownwardAPIProjection", "V1DownwardAPIVolumeFile", @@ -185,6 +195,7 @@ "V1EphemeralVolumeSource", "V1EventSource", "V1Eviction", + "V1EvictionResponder", "V1ExactDeviceRequest", "V1ExecAction", "V1ExemptPriorityLevelConfiguration", @@ -253,6 +264,7 @@ "V1Job", "V1JobCondition", "V1JobList", + "V1JobSchedulingConfiguration", "V1JobSpec", "V1JobStatus", "V1JobTemplateSpec", @@ -310,14 +322,19 @@ "V1Node", "V1NodeAddress", "V1NodeAffinity", + "V1NodeAllocatableMappedResources", + "V1NodeAllocatableMapping", + "V1NodeAllocatableOverhead", + "V1NodeAllocatableOverheadResources", + "V1NodeAllocatableResource", "V1NodeAllocatableResourceClaimStatus", - "V1NodeAllocatableResourceMapping", "V1NodeCondition", "V1NodeConfigSource", "V1NodeConfigStatus", "V1NodeDaemonEndpoints", "V1NodeFeatures", "V1NodeList", + "V1NodePodPreemptionPolicy", "V1NodeRuntimeHandler", "V1NodeRuntimeHandlerFeatures", "V1NodeSelector", @@ -356,6 +373,10 @@ "V1PodAffinityTerm", "V1PodAntiAffinity", "V1PodCertificateProjection", + "V1PodCertificateRequest", + "V1PodCertificateRequestList", + "V1PodCertificateRequestSpec", + "V1PodCertificateRequestStatus", "V1PodCondition", "V1PodDNSConfig", "V1PodDNSConfigOption", @@ -382,6 +403,7 @@ "V1PodTemplate", "V1PodTemplateList", "V1PodTemplateSpec", + "V1PodVolumeHealth", "V1PolicyRule", "V1PolicyRulesWithSubjects", "V1PortStatus", @@ -501,8 +523,14 @@ "V1StatusDetails", "V1StorageClass", "V1StorageClassList", + "V1StorageHealth", + "V1StorageHealthCondition", "V1StorageOSPersistentVolumeSource", "V1StorageOSVolumeSource", + "V1StorageVersionMigration", + "V1StorageVersionMigrationList", + "V1StorageVersionMigrationSpec", + "V1StorageVersionMigrationStatus", "V1SubjectAccessReview", "V1SubjectAccessReviewSpec", "V1SubjectAccessReviewStatus", @@ -550,6 +578,8 @@ "V1VolumeAttributesClassList", "V1VolumeDevice", "V1VolumeError", + "V1VolumeHealthCondition", + "V1VolumeHealthStatus", "V1VolumeMount", "V1VolumeMountStatus", "V1VolumeNodeAffinity", @@ -563,9 +593,18 @@ "V1WeightedPodAffinityTerm", "V1WindowsSecurityContextOptions", "V1alpha1ApplyConfiguration", - "V1alpha1ClusterTrustBundle", - "V1alpha1ClusterTrustBundleList", - "V1alpha1ClusterTrustBundleSpec", + "V1alpha1Eviction", + "V1alpha1EvictionList", + "V1alpha1EvictionPodReference", + "V1alpha1EvictionRequest", + "V1alpha1EvictionRequestList", + "V1alpha1EvictionRequestPodReference", + "V1alpha1EvictionRequestSpec", + "V1alpha1EvictionRequestStatus", + "V1alpha1EvictionRequestTarget", + "V1alpha1EvictionSpec", + "V1alpha1EvictionStatus", + "V1alpha1EvictionTarget", "V1alpha1JSONPatch", "V1alpha1MatchCondition", "V1alpha1MatchResources", @@ -579,43 +618,63 @@ "V1alpha1NamedRuleWithOperations", "V1alpha1ParamKind", "V1alpha1ParamRef", + "V1alpha1Requester", + "V1alpha1ResponderStatus", "V1alpha1ServerStorageVersion", "V1alpha1StorageVersion", "V1alpha1StorageVersionCondition", "V1alpha1StorageVersionList", "V1alpha1StorageVersionStatus", + "V1alpha1TargetResponder", "V1alpha1Variable", - "V1alpha2GangSchedulingPolicy", "V1alpha2LeaseCandidate", "V1alpha2LeaseCandidateList", "V1alpha2LeaseCandidateSpec", - "V1alpha2PodGroup", - "V1alpha2PodGroupList", - "V1alpha2PodGroupResourceClaim", - "V1alpha2PodGroupResourceClaimStatus", - "V1alpha2PodGroupSchedulingConstraints", - "V1alpha2PodGroupSchedulingPolicy", - "V1alpha2PodGroupSpec", - "V1alpha2PodGroupStatus", - "V1alpha2PodGroupTemplate", - "V1alpha2PodGroupTemplateReference", - "V1alpha2TopologyConstraint", - "V1alpha2TypedLocalObjectReference", - "V1alpha2Workload", - "V1alpha2WorkloadList", - "V1alpha2WorkloadPodGroupTemplateReference", - "V1alpha2WorkloadSpec", + "V1alpha3CompositeDisruptionMode", + "V1alpha3CompositeGangSchedulingPolicy", + "V1alpha3CompositePodGroup", + "V1alpha3CompositePodGroupList", + "V1alpha3CompositePodGroupSchedulingConstraints", + "V1alpha3CompositePodGroupSchedulingPolicy", + "V1alpha3CompositePodGroupSpec", + "V1alpha3CompositePodGroupStatus", + "V1alpha3CompositePodGroupTemplate", "V1alpha3DeviceTaint", "V1alpha3DeviceTaintRule", "V1alpha3DeviceTaintRuleList", "V1alpha3DeviceTaintRuleSpec", "V1alpha3DeviceTaintRuleStatus", "V1alpha3DeviceTaintSelector", + "V1alpha3DisruptionMode", + "V1alpha3GangSchedulingPolicy", + "V1alpha3PartitionTypeStatus", + "V1alpha3PodGroup", + "V1alpha3PodGroupList", + "V1alpha3PodGroupResourceClaim", + "V1alpha3PodGroupResourceClaimStatus", + "V1alpha3PodGroupSchedulingConstraints", + "V1alpha3PodGroupSchedulingPolicy", + "V1alpha3PodGroupSpec", + "V1alpha3PodGroupStatus", + "V1alpha3PodGroupTemplate", "V1alpha3PoolStatus", "V1alpha3ResourcePoolStatusRequest", "V1alpha3ResourcePoolStatusRequestList", "V1alpha3ResourcePoolStatusRequestSpec", "V1alpha3ResourcePoolStatusRequestStatus", + "V1alpha3ShareableCapacityStatus", + "V1alpha3ShareableSummaryStatus", + "V1alpha3TopologyConstraint", + "V1alpha3TypedLocalObjectReference", + "V1alpha3Workload", + "V1alpha3WorkloadList", + "V1alpha3WorkloadPodGroupDisruptionMode", + "V1alpha3WorkloadPodGroupGangSchedulingPolicy", + "V1alpha3WorkloadPodGroupResourceClaim", + "V1alpha3WorkloadPodGroupSchedulingConstraints", + "V1alpha3WorkloadPodGroupSchedulingPolicy", + "V1alpha3WorkloadReference", + "V1alpha3WorkloadSpec", "V1beta1AllocatedDeviceStatus", "V1beta1AllocationResult", "V1beta1ApplyConfiguration", @@ -627,6 +686,11 @@ "V1beta1ClusterTrustBundle", "V1beta1ClusterTrustBundleList", "V1beta1ClusterTrustBundleSpec", + "V1beta1CompositeDisruptionMode", + "V1beta1CompositeGangSchedulingPolicy", + "V1beta1CompositePodGroupSchedulingConstraints", + "V1beta1CompositePodGroupSchedulingPolicy", + "V1beta1CompositePodGroupTemplate", "V1beta1Counter", "V1beta1CounterSet", "V1beta1Device", @@ -642,15 +706,15 @@ "V1beta1DeviceClassSpec", "V1beta1DeviceConstraint", "V1beta1DeviceCounterConsumption", + "V1beta1DeviceDerivedAttribute", "V1beta1DeviceRequest", "V1beta1DeviceRequestAllocationResult", "V1beta1DeviceSelector", "V1beta1DeviceSubRequest", "V1beta1DeviceTaint", "V1beta1DeviceToleration", - "V1beta1IPAddress", - "V1beta1IPAddressList", - "V1beta1IPAddressSpec", + "V1beta1DisruptionMode", + "V1beta1GangSchedulingPolicy", "V1beta1JSONPatch", "V1beta1LeaseCandidate", "V1beta1LeaseCandidateList", @@ -666,15 +730,25 @@ "V1beta1Mutation", "V1beta1NamedRuleWithOperations", "V1beta1NetworkDeviceData", - "V1beta1NodeAllocatableResourceMapping", + "V1beta1NodeAllocatableMapping", + "V1beta1NodeAllocatableOverhead", + "V1beta1NodeAllocatableResource", "V1beta1OpaqueDeviceConfiguration", "V1beta1ParamKind", "V1beta1ParamRef", - "V1beta1ParentReference", "V1beta1PodCertificateRequest", "V1beta1PodCertificateRequestList", "V1beta1PodCertificateRequestSpec", "V1beta1PodCertificateRequestStatus", + "V1beta1PodGroup", + "V1beta1PodGroupList", + "V1beta1PodGroupResourceClaim", + "V1beta1PodGroupResourceClaimStatus", + "V1beta1PodGroupSchedulingConstraints", + "V1beta1PodGroupSchedulingPolicy", + "V1beta1PodGroupSpec", + "V1beta1PodGroupStatus", + "V1beta1PodGroupTemplate", "V1beta1ResourceClaim", "V1beta1ResourceClaimConsumerReference", "V1beta1ResourceClaimList", @@ -687,17 +761,17 @@ "V1beta1ResourceSlice", "V1beta1ResourceSliceList", "V1beta1ResourceSliceSpec", - "V1beta1ServiceCIDR", - "V1beta1ServiceCIDRList", - "V1beta1ServiceCIDRSpec", - "V1beta1ServiceCIDRStatus", "V1beta1StorageVersionMigration", "V1beta1StorageVersionMigrationList", "V1beta1StorageVersionMigrationSpec", "V1beta1StorageVersionMigrationStatus", + "V1beta1TopologyConstraint", + "V1beta1TypedLocalObjectReference", "V1beta1Variable", - "V1beta1VolumeAttributesClass", - "V1beta1VolumeAttributesClassList", + "V1beta1Workload", + "V1beta1WorkloadList", + "V1beta1WorkloadReference", + "V1beta1WorkloadSpec", "V1beta2AllocatedDeviceStatus", "V1beta2AllocationResult", "V1beta2CELDeviceSelector", @@ -719,6 +793,7 @@ "V1beta2DeviceClassSpec", "V1beta2DeviceConstraint", "V1beta2DeviceCounterConsumption", + "V1beta2DeviceDerivedAttribute", "V1beta2DeviceRequest", "V1beta2DeviceRequestAllocationResult", "V1beta2DeviceSelector", @@ -732,7 +807,9 @@ "V1beta2DeviceToleration", "V1beta2ExactDeviceRequest", "V1beta2NetworkDeviceData", - "V1beta2NodeAllocatableResourceMapping", + "V1beta2NodeAllocatableMapping", + "V1beta2NodeAllocatableOverhead", + "V1beta2NodeAllocatableResource", "V1beta2OpaqueDeviceConfiguration", "V1beta2ResourceClaim", "V1beta2ResourceClaimConsumerReference", @@ -838,6 +915,7 @@ from kubernetes.client.models.v1_csi_node_driver import V1CSINodeDriver from kubernetes.client.models.v1_csi_node_list import V1CSINodeList from kubernetes.client.models.v1_csi_node_spec import V1CSINodeSpec + from kubernetes.client.models.v1_csi_node_status import V1CSINodeStatus from kubernetes.client.models.v1_csi_persistent_volume_source import V1CSIPersistentVolumeSource from kubernetes.client.models.v1_csi_storage_capacity import V1CSIStorageCapacity from kubernetes.client.models.v1_csi_storage_capacity_list import V1CSIStorageCapacityList @@ -860,7 +938,10 @@ from kubernetes.client.models.v1_cluster_role_binding import V1ClusterRoleBinding from kubernetes.client.models.v1_cluster_role_binding_list import V1ClusterRoleBindingList from kubernetes.client.models.v1_cluster_role_list import V1ClusterRoleList + from kubernetes.client.models.v1_cluster_trust_bundle import V1ClusterTrustBundle + from kubernetes.client.models.v1_cluster_trust_bundle_list import V1ClusterTrustBundleList from kubernetes.client.models.v1_cluster_trust_bundle_projection import V1ClusterTrustBundleProjection + from kubernetes.client.models.v1_cluster_trust_bundle_spec import V1ClusterTrustBundleSpec from kubernetes.client.models.v1_component_condition import V1ComponentCondition from kubernetes.client.models.v1_component_status import V1ComponentStatus from kubernetes.client.models.v1_component_status_list import V1ComponentStatusList @@ -933,11 +1014,17 @@ from kubernetes.client.models.v1_device_class_spec import V1DeviceClassSpec from kubernetes.client.models.v1_device_constraint import V1DeviceConstraint from kubernetes.client.models.v1_device_counter_consumption import V1DeviceCounterConsumption + from kubernetes.client.models.v1_device_derived_attribute import V1DeviceDerivedAttribute from kubernetes.client.models.v1_device_request import V1DeviceRequest from kubernetes.client.models.v1_device_request_allocation_result import V1DeviceRequestAllocationResult from kubernetes.client.models.v1_device_selector import V1DeviceSelector from kubernetes.client.models.v1_device_sub_request import V1DeviceSubRequest from kubernetes.client.models.v1_device_taint import V1DeviceTaint + from kubernetes.client.models.v1_device_taint_rule import V1DeviceTaintRule + from kubernetes.client.models.v1_device_taint_rule_list import V1DeviceTaintRuleList + from kubernetes.client.models.v1_device_taint_rule_spec import V1DeviceTaintRuleSpec + from kubernetes.client.models.v1_device_taint_rule_status import V1DeviceTaintRuleStatus + from kubernetes.client.models.v1_device_taint_selector import V1DeviceTaintSelector from kubernetes.client.models.v1_device_toleration import V1DeviceToleration from kubernetes.client.models.v1_downward_api_projection import V1DownwardAPIProjection from kubernetes.client.models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile @@ -959,6 +1046,7 @@ from kubernetes.client.models.v1_ephemeral_volume_source import V1EphemeralVolumeSource from kubernetes.client.models.v1_event_source import V1EventSource from kubernetes.client.models.v1_eviction import V1Eviction + from kubernetes.client.models.v1_eviction_responder import V1EvictionResponder from kubernetes.client.models.v1_exact_device_request import V1ExactDeviceRequest from kubernetes.client.models.v1_exec_action import V1ExecAction from kubernetes.client.models.v1_exempt_priority_level_configuration import V1ExemptPriorityLevelConfiguration @@ -1027,6 +1115,7 @@ from kubernetes.client.models.v1_job import V1Job from kubernetes.client.models.v1_job_condition import V1JobCondition from kubernetes.client.models.v1_job_list import V1JobList + from kubernetes.client.models.v1_job_scheduling_configuration import V1JobSchedulingConfiguration from kubernetes.client.models.v1_job_spec import V1JobSpec from kubernetes.client.models.v1_job_status import V1JobStatus from kubernetes.client.models.v1_job_template_spec import V1JobTemplateSpec @@ -1084,14 +1173,19 @@ from kubernetes.client.models.v1_node import V1Node from kubernetes.client.models.v1_node_address import V1NodeAddress from kubernetes.client.models.v1_node_affinity import V1NodeAffinity + from kubernetes.client.models.v1_node_allocatable_mapped_resources import V1NodeAllocatableMappedResources + from kubernetes.client.models.v1_node_allocatable_mapping import V1NodeAllocatableMapping + from kubernetes.client.models.v1_node_allocatable_overhead import V1NodeAllocatableOverhead + from kubernetes.client.models.v1_node_allocatable_overhead_resources import V1NodeAllocatableOverheadResources + from kubernetes.client.models.v1_node_allocatable_resource import V1NodeAllocatableResource from kubernetes.client.models.v1_node_allocatable_resource_claim_status import V1NodeAllocatableResourceClaimStatus - from kubernetes.client.models.v1_node_allocatable_resource_mapping import V1NodeAllocatableResourceMapping from kubernetes.client.models.v1_node_condition import V1NodeCondition from kubernetes.client.models.v1_node_config_source import V1NodeConfigSource from kubernetes.client.models.v1_node_config_status import V1NodeConfigStatus from kubernetes.client.models.v1_node_daemon_endpoints import V1NodeDaemonEndpoints from kubernetes.client.models.v1_node_features import V1NodeFeatures from kubernetes.client.models.v1_node_list import V1NodeList + from kubernetes.client.models.v1_node_pod_preemption_policy import V1NodePodPreemptionPolicy from kubernetes.client.models.v1_node_runtime_handler import V1NodeRuntimeHandler from kubernetes.client.models.v1_node_runtime_handler_features import V1NodeRuntimeHandlerFeatures from kubernetes.client.models.v1_node_selector import V1NodeSelector @@ -1130,6 +1224,10 @@ from kubernetes.client.models.v1_pod_affinity_term import V1PodAffinityTerm from kubernetes.client.models.v1_pod_anti_affinity import V1PodAntiAffinity from kubernetes.client.models.v1_pod_certificate_projection import V1PodCertificateProjection + from kubernetes.client.models.v1_pod_certificate_request import V1PodCertificateRequest + from kubernetes.client.models.v1_pod_certificate_request_list import V1PodCertificateRequestList + from kubernetes.client.models.v1_pod_certificate_request_spec import V1PodCertificateRequestSpec + from kubernetes.client.models.v1_pod_certificate_request_status import V1PodCertificateRequestStatus from kubernetes.client.models.v1_pod_condition import V1PodCondition from kubernetes.client.models.v1_pod_dns_config import V1PodDNSConfig from kubernetes.client.models.v1_pod_dns_config_option import V1PodDNSConfigOption @@ -1156,6 +1254,7 @@ from kubernetes.client.models.v1_pod_template import V1PodTemplate from kubernetes.client.models.v1_pod_template_list import V1PodTemplateList from kubernetes.client.models.v1_pod_template_spec import V1PodTemplateSpec + from kubernetes.client.models.v1_pod_volume_health import V1PodVolumeHealth from kubernetes.client.models.v1_policy_rule import V1PolicyRule from kubernetes.client.models.v1_policy_rules_with_subjects import V1PolicyRulesWithSubjects from kubernetes.client.models.v1_port_status import V1PortStatus @@ -1275,8 +1374,14 @@ from kubernetes.client.models.v1_status_details import V1StatusDetails from kubernetes.client.models.v1_storage_class import V1StorageClass from kubernetes.client.models.v1_storage_class_list import V1StorageClassList + from kubernetes.client.models.v1_storage_health import V1StorageHealth + from kubernetes.client.models.v1_storage_health_condition import V1StorageHealthCondition from kubernetes.client.models.v1_storage_os_persistent_volume_source import V1StorageOSPersistentVolumeSource from kubernetes.client.models.v1_storage_os_volume_source import V1StorageOSVolumeSource + from kubernetes.client.models.v1_storage_version_migration import V1StorageVersionMigration + from kubernetes.client.models.v1_storage_version_migration_list import V1StorageVersionMigrationList + from kubernetes.client.models.v1_storage_version_migration_spec import V1StorageVersionMigrationSpec + from kubernetes.client.models.v1_storage_version_migration_status import V1StorageVersionMigrationStatus from kubernetes.client.models.v1_subject_access_review import V1SubjectAccessReview from kubernetes.client.models.v1_subject_access_review_spec import V1SubjectAccessReviewSpec from kubernetes.client.models.v1_subject_access_review_status import V1SubjectAccessReviewStatus @@ -1324,6 +1429,8 @@ from kubernetes.client.models.v1_volume_attributes_class_list import V1VolumeAttributesClassList from kubernetes.client.models.v1_volume_device import V1VolumeDevice from kubernetes.client.models.v1_volume_error import V1VolumeError + from kubernetes.client.models.v1_volume_health_condition import V1VolumeHealthCondition + from kubernetes.client.models.v1_volume_health_status import V1VolumeHealthStatus from kubernetes.client.models.v1_volume_mount import V1VolumeMount from kubernetes.client.models.v1_volume_mount_status import V1VolumeMountStatus from kubernetes.client.models.v1_volume_node_affinity import V1VolumeNodeAffinity @@ -1337,9 +1444,18 @@ from kubernetes.client.models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm from kubernetes.client.models.v1_windows_security_context_options import V1WindowsSecurityContextOptions from kubernetes.client.models.v1alpha1_apply_configuration import V1alpha1ApplyConfiguration - from kubernetes.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle - from kubernetes.client.models.v1alpha1_cluster_trust_bundle_list import V1alpha1ClusterTrustBundleList - from kubernetes.client.models.v1alpha1_cluster_trust_bundle_spec import V1alpha1ClusterTrustBundleSpec + from kubernetes.client.models.v1alpha1_eviction import V1alpha1Eviction + from kubernetes.client.models.v1alpha1_eviction_list import V1alpha1EvictionList + from kubernetes.client.models.v1alpha1_eviction_pod_reference import V1alpha1EvictionPodReference + from kubernetes.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest + from kubernetes.client.models.v1alpha1_eviction_request_list import V1alpha1EvictionRequestList + from kubernetes.client.models.v1alpha1_eviction_request_pod_reference import V1alpha1EvictionRequestPodReference + from kubernetes.client.models.v1alpha1_eviction_request_spec import V1alpha1EvictionRequestSpec + from kubernetes.client.models.v1alpha1_eviction_request_status import V1alpha1EvictionRequestStatus + from kubernetes.client.models.v1alpha1_eviction_request_target import V1alpha1EvictionRequestTarget + from kubernetes.client.models.v1alpha1_eviction_spec import V1alpha1EvictionSpec + from kubernetes.client.models.v1alpha1_eviction_status import V1alpha1EvictionStatus + from kubernetes.client.models.v1alpha1_eviction_target import V1alpha1EvictionTarget from kubernetes.client.models.v1alpha1_json_patch import V1alpha1JSONPatch from kubernetes.client.models.v1alpha1_match_condition import V1alpha1MatchCondition from kubernetes.client.models.v1alpha1_match_resources import V1alpha1MatchResources @@ -1353,43 +1469,63 @@ from kubernetes.client.models.v1alpha1_named_rule_with_operations import V1alpha1NamedRuleWithOperations from kubernetes.client.models.v1alpha1_param_kind import V1alpha1ParamKind from kubernetes.client.models.v1alpha1_param_ref import V1alpha1ParamRef + from kubernetes.client.models.v1alpha1_requester import V1alpha1Requester + from kubernetes.client.models.v1alpha1_responder_status import V1alpha1ResponderStatus from kubernetes.client.models.v1alpha1_server_storage_version import V1alpha1ServerStorageVersion from kubernetes.client.models.v1alpha1_storage_version import V1alpha1StorageVersion from kubernetes.client.models.v1alpha1_storage_version_condition import V1alpha1StorageVersionCondition from kubernetes.client.models.v1alpha1_storage_version_list import V1alpha1StorageVersionList from kubernetes.client.models.v1alpha1_storage_version_status import V1alpha1StorageVersionStatus + from kubernetes.client.models.v1alpha1_target_responder import V1alpha1TargetResponder from kubernetes.client.models.v1alpha1_variable import V1alpha1Variable - from kubernetes.client.models.v1alpha2_gang_scheduling_policy import V1alpha2GangSchedulingPolicy from kubernetes.client.models.v1alpha2_lease_candidate import V1alpha2LeaseCandidate from kubernetes.client.models.v1alpha2_lease_candidate_list import V1alpha2LeaseCandidateList from kubernetes.client.models.v1alpha2_lease_candidate_spec import V1alpha2LeaseCandidateSpec - from kubernetes.client.models.v1alpha2_pod_group import V1alpha2PodGroup - from kubernetes.client.models.v1alpha2_pod_group_list import V1alpha2PodGroupList - from kubernetes.client.models.v1alpha2_pod_group_resource_claim import V1alpha2PodGroupResourceClaim - from kubernetes.client.models.v1alpha2_pod_group_resource_claim_status import V1alpha2PodGroupResourceClaimStatus - from kubernetes.client.models.v1alpha2_pod_group_scheduling_constraints import V1alpha2PodGroupSchedulingConstraints - from kubernetes.client.models.v1alpha2_pod_group_scheduling_policy import V1alpha2PodGroupSchedulingPolicy - from kubernetes.client.models.v1alpha2_pod_group_spec import V1alpha2PodGroupSpec - from kubernetes.client.models.v1alpha2_pod_group_status import V1alpha2PodGroupStatus - from kubernetes.client.models.v1alpha2_pod_group_template import V1alpha2PodGroupTemplate - from kubernetes.client.models.v1alpha2_pod_group_template_reference import V1alpha2PodGroupTemplateReference - from kubernetes.client.models.v1alpha2_topology_constraint import V1alpha2TopologyConstraint - from kubernetes.client.models.v1alpha2_typed_local_object_reference import V1alpha2TypedLocalObjectReference - from kubernetes.client.models.v1alpha2_workload import V1alpha2Workload - from kubernetes.client.models.v1alpha2_workload_list import V1alpha2WorkloadList - from kubernetes.client.models.v1alpha2_workload_pod_group_template_reference import V1alpha2WorkloadPodGroupTemplateReference - from kubernetes.client.models.v1alpha2_workload_spec import V1alpha2WorkloadSpec + from kubernetes.client.models.v1alpha3_composite_disruption_mode import V1alpha3CompositeDisruptionMode + from kubernetes.client.models.v1alpha3_composite_gang_scheduling_policy import V1alpha3CompositeGangSchedulingPolicy + from kubernetes.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup + from kubernetes.client.models.v1alpha3_composite_pod_group_list import V1alpha3CompositePodGroupList + from kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_constraints import V1alpha3CompositePodGroupSchedulingConstraints + from kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_policy import V1alpha3CompositePodGroupSchedulingPolicy + from kubernetes.client.models.v1alpha3_composite_pod_group_spec import V1alpha3CompositePodGroupSpec + from kubernetes.client.models.v1alpha3_composite_pod_group_status import V1alpha3CompositePodGroupStatus + from kubernetes.client.models.v1alpha3_composite_pod_group_template import V1alpha3CompositePodGroupTemplate from kubernetes.client.models.v1alpha3_device_taint import V1alpha3DeviceTaint from kubernetes.client.models.v1alpha3_device_taint_rule import V1alpha3DeviceTaintRule from kubernetes.client.models.v1alpha3_device_taint_rule_list import V1alpha3DeviceTaintRuleList from kubernetes.client.models.v1alpha3_device_taint_rule_spec import V1alpha3DeviceTaintRuleSpec from kubernetes.client.models.v1alpha3_device_taint_rule_status import V1alpha3DeviceTaintRuleStatus from kubernetes.client.models.v1alpha3_device_taint_selector import V1alpha3DeviceTaintSelector + from kubernetes.client.models.v1alpha3_disruption_mode import V1alpha3DisruptionMode + from kubernetes.client.models.v1alpha3_gang_scheduling_policy import V1alpha3GangSchedulingPolicy + from kubernetes.client.models.v1alpha3_partition_type_status import V1alpha3PartitionTypeStatus + from kubernetes.client.models.v1alpha3_pod_group import V1alpha3PodGroup + from kubernetes.client.models.v1alpha3_pod_group_list import V1alpha3PodGroupList + from kubernetes.client.models.v1alpha3_pod_group_resource_claim import V1alpha3PodGroupResourceClaim + from kubernetes.client.models.v1alpha3_pod_group_resource_claim_status import V1alpha3PodGroupResourceClaimStatus + from kubernetes.client.models.v1alpha3_pod_group_scheduling_constraints import V1alpha3PodGroupSchedulingConstraints + from kubernetes.client.models.v1alpha3_pod_group_scheduling_policy import V1alpha3PodGroupSchedulingPolicy + from kubernetes.client.models.v1alpha3_pod_group_spec import V1alpha3PodGroupSpec + from kubernetes.client.models.v1alpha3_pod_group_status import V1alpha3PodGroupStatus + from kubernetes.client.models.v1alpha3_pod_group_template import V1alpha3PodGroupTemplate from kubernetes.client.models.v1alpha3_pool_status import V1alpha3PoolStatus from kubernetes.client.models.v1alpha3_resource_pool_status_request import V1alpha3ResourcePoolStatusRequest from kubernetes.client.models.v1alpha3_resource_pool_status_request_list import V1alpha3ResourcePoolStatusRequestList from kubernetes.client.models.v1alpha3_resource_pool_status_request_spec import V1alpha3ResourcePoolStatusRequestSpec from kubernetes.client.models.v1alpha3_resource_pool_status_request_status import V1alpha3ResourcePoolStatusRequestStatus + from kubernetes.client.models.v1alpha3_shareable_capacity_status import V1alpha3ShareableCapacityStatus + from kubernetes.client.models.v1alpha3_shareable_summary_status import V1alpha3ShareableSummaryStatus + from kubernetes.client.models.v1alpha3_topology_constraint import V1alpha3TopologyConstraint + from kubernetes.client.models.v1alpha3_typed_local_object_reference import V1alpha3TypedLocalObjectReference + from kubernetes.client.models.v1alpha3_workload import V1alpha3Workload + from kubernetes.client.models.v1alpha3_workload_list import V1alpha3WorkloadList + from kubernetes.client.models.v1alpha3_workload_pod_group_disruption_mode import V1alpha3WorkloadPodGroupDisruptionMode + from kubernetes.client.models.v1alpha3_workload_pod_group_gang_scheduling_policy import V1alpha3WorkloadPodGroupGangSchedulingPolicy + from kubernetes.client.models.v1alpha3_workload_pod_group_resource_claim import V1alpha3WorkloadPodGroupResourceClaim + from kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_constraints import V1alpha3WorkloadPodGroupSchedulingConstraints + from kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_policy import V1alpha3WorkloadPodGroupSchedulingPolicy + from kubernetes.client.models.v1alpha3_workload_reference import V1alpha3WorkloadReference + from kubernetes.client.models.v1alpha3_workload_spec import V1alpha3WorkloadSpec from kubernetes.client.models.v1beta1_allocated_device_status import V1beta1AllocatedDeviceStatus from kubernetes.client.models.v1beta1_allocation_result import V1beta1AllocationResult from kubernetes.client.models.v1beta1_apply_configuration import V1beta1ApplyConfiguration @@ -1401,6 +1537,11 @@ from kubernetes.client.models.v1beta1_cluster_trust_bundle import V1beta1ClusterTrustBundle from kubernetes.client.models.v1beta1_cluster_trust_bundle_list import V1beta1ClusterTrustBundleList from kubernetes.client.models.v1beta1_cluster_trust_bundle_spec import V1beta1ClusterTrustBundleSpec + from kubernetes.client.models.v1beta1_composite_disruption_mode import V1beta1CompositeDisruptionMode + from kubernetes.client.models.v1beta1_composite_gang_scheduling_policy import V1beta1CompositeGangSchedulingPolicy + from kubernetes.client.models.v1beta1_composite_pod_group_scheduling_constraints import V1beta1CompositePodGroupSchedulingConstraints + from kubernetes.client.models.v1beta1_composite_pod_group_scheduling_policy import V1beta1CompositePodGroupSchedulingPolicy + from kubernetes.client.models.v1beta1_composite_pod_group_template import V1beta1CompositePodGroupTemplate from kubernetes.client.models.v1beta1_counter import V1beta1Counter from kubernetes.client.models.v1beta1_counter_set import V1beta1CounterSet from kubernetes.client.models.v1beta1_device import V1beta1Device @@ -1416,15 +1557,15 @@ from kubernetes.client.models.v1beta1_device_class_spec import V1beta1DeviceClassSpec from kubernetes.client.models.v1beta1_device_constraint import V1beta1DeviceConstraint from kubernetes.client.models.v1beta1_device_counter_consumption import V1beta1DeviceCounterConsumption + from kubernetes.client.models.v1beta1_device_derived_attribute import V1beta1DeviceDerivedAttribute from kubernetes.client.models.v1beta1_device_request import V1beta1DeviceRequest from kubernetes.client.models.v1beta1_device_request_allocation_result import V1beta1DeviceRequestAllocationResult from kubernetes.client.models.v1beta1_device_selector import V1beta1DeviceSelector from kubernetes.client.models.v1beta1_device_sub_request import V1beta1DeviceSubRequest from kubernetes.client.models.v1beta1_device_taint import V1beta1DeviceTaint from kubernetes.client.models.v1beta1_device_toleration import V1beta1DeviceToleration - from kubernetes.client.models.v1beta1_ip_address import V1beta1IPAddress - from kubernetes.client.models.v1beta1_ip_address_list import V1beta1IPAddressList - from kubernetes.client.models.v1beta1_ip_address_spec import V1beta1IPAddressSpec + from kubernetes.client.models.v1beta1_disruption_mode import V1beta1DisruptionMode + from kubernetes.client.models.v1beta1_gang_scheduling_policy import V1beta1GangSchedulingPolicy from kubernetes.client.models.v1beta1_json_patch import V1beta1JSONPatch from kubernetes.client.models.v1beta1_lease_candidate import V1beta1LeaseCandidate from kubernetes.client.models.v1beta1_lease_candidate_list import V1beta1LeaseCandidateList @@ -1440,15 +1581,25 @@ from kubernetes.client.models.v1beta1_mutation import V1beta1Mutation from kubernetes.client.models.v1beta1_named_rule_with_operations import V1beta1NamedRuleWithOperations from kubernetes.client.models.v1beta1_network_device_data import V1beta1NetworkDeviceData - from kubernetes.client.models.v1beta1_node_allocatable_resource_mapping import V1beta1NodeAllocatableResourceMapping + from kubernetes.client.models.v1beta1_node_allocatable_mapping import V1beta1NodeAllocatableMapping + from kubernetes.client.models.v1beta1_node_allocatable_overhead import V1beta1NodeAllocatableOverhead + from kubernetes.client.models.v1beta1_node_allocatable_resource import V1beta1NodeAllocatableResource from kubernetes.client.models.v1beta1_opaque_device_configuration import V1beta1OpaqueDeviceConfiguration from kubernetes.client.models.v1beta1_param_kind import V1beta1ParamKind from kubernetes.client.models.v1beta1_param_ref import V1beta1ParamRef - from kubernetes.client.models.v1beta1_parent_reference import V1beta1ParentReference from kubernetes.client.models.v1beta1_pod_certificate_request import V1beta1PodCertificateRequest from kubernetes.client.models.v1beta1_pod_certificate_request_list import V1beta1PodCertificateRequestList from kubernetes.client.models.v1beta1_pod_certificate_request_spec import V1beta1PodCertificateRequestSpec from kubernetes.client.models.v1beta1_pod_certificate_request_status import V1beta1PodCertificateRequestStatus + from kubernetes.client.models.v1beta1_pod_group import V1beta1PodGroup + from kubernetes.client.models.v1beta1_pod_group_list import V1beta1PodGroupList + from kubernetes.client.models.v1beta1_pod_group_resource_claim import V1beta1PodGroupResourceClaim + from kubernetes.client.models.v1beta1_pod_group_resource_claim_status import V1beta1PodGroupResourceClaimStatus + from kubernetes.client.models.v1beta1_pod_group_scheduling_constraints import V1beta1PodGroupSchedulingConstraints + from kubernetes.client.models.v1beta1_pod_group_scheduling_policy import V1beta1PodGroupSchedulingPolicy + from kubernetes.client.models.v1beta1_pod_group_spec import V1beta1PodGroupSpec + from kubernetes.client.models.v1beta1_pod_group_status import V1beta1PodGroupStatus + from kubernetes.client.models.v1beta1_pod_group_template import V1beta1PodGroupTemplate from kubernetes.client.models.v1beta1_resource_claim import V1beta1ResourceClaim from kubernetes.client.models.v1beta1_resource_claim_consumer_reference import V1beta1ResourceClaimConsumerReference from kubernetes.client.models.v1beta1_resource_claim_list import V1beta1ResourceClaimList @@ -1461,17 +1612,17 @@ from kubernetes.client.models.v1beta1_resource_slice import V1beta1ResourceSlice from kubernetes.client.models.v1beta1_resource_slice_list import V1beta1ResourceSliceList from kubernetes.client.models.v1beta1_resource_slice_spec import V1beta1ResourceSliceSpec - from kubernetes.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR - from kubernetes.client.models.v1beta1_service_cidr_list import V1beta1ServiceCIDRList - from kubernetes.client.models.v1beta1_service_cidr_spec import V1beta1ServiceCIDRSpec - from kubernetes.client.models.v1beta1_service_cidr_status import V1beta1ServiceCIDRStatus from kubernetes.client.models.v1beta1_storage_version_migration import V1beta1StorageVersionMigration from kubernetes.client.models.v1beta1_storage_version_migration_list import V1beta1StorageVersionMigrationList from kubernetes.client.models.v1beta1_storage_version_migration_spec import V1beta1StorageVersionMigrationSpec from kubernetes.client.models.v1beta1_storage_version_migration_status import V1beta1StorageVersionMigrationStatus + from kubernetes.client.models.v1beta1_topology_constraint import V1beta1TopologyConstraint + from kubernetes.client.models.v1beta1_typed_local_object_reference import V1beta1TypedLocalObjectReference from kubernetes.client.models.v1beta1_variable import V1beta1Variable - from kubernetes.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass - from kubernetes.client.models.v1beta1_volume_attributes_class_list import V1beta1VolumeAttributesClassList + from kubernetes.client.models.v1beta1_workload import V1beta1Workload + from kubernetes.client.models.v1beta1_workload_list import V1beta1WorkloadList + from kubernetes.client.models.v1beta1_workload_reference import V1beta1WorkloadReference + from kubernetes.client.models.v1beta1_workload_spec import V1beta1WorkloadSpec from kubernetes.client.models.v1beta2_allocated_device_status import V1beta2AllocatedDeviceStatus from kubernetes.client.models.v1beta2_allocation_result import V1beta2AllocationResult from kubernetes.client.models.v1beta2_cel_device_selector import V1beta2CELDeviceSelector @@ -1493,6 +1644,7 @@ from kubernetes.client.models.v1beta2_device_class_spec import V1beta2DeviceClassSpec from kubernetes.client.models.v1beta2_device_constraint import V1beta2DeviceConstraint from kubernetes.client.models.v1beta2_device_counter_consumption import V1beta2DeviceCounterConsumption + from kubernetes.client.models.v1beta2_device_derived_attribute import V1beta2DeviceDerivedAttribute from kubernetes.client.models.v1beta2_device_request import V1beta2DeviceRequest from kubernetes.client.models.v1beta2_device_request_allocation_result import V1beta2DeviceRequestAllocationResult from kubernetes.client.models.v1beta2_device_selector import V1beta2DeviceSelector @@ -1506,7 +1658,9 @@ from kubernetes.client.models.v1beta2_device_toleration import V1beta2DeviceToleration from kubernetes.client.models.v1beta2_exact_device_request import V1beta2ExactDeviceRequest from kubernetes.client.models.v1beta2_network_device_data import V1beta2NetworkDeviceData - from kubernetes.client.models.v1beta2_node_allocatable_resource_mapping import V1beta2NodeAllocatableResourceMapping + from kubernetes.client.models.v1beta2_node_allocatable_mapping import V1beta2NodeAllocatableMapping + from kubernetes.client.models.v1beta2_node_allocatable_overhead import V1beta2NodeAllocatableOverhead + from kubernetes.client.models.v1beta2_node_allocatable_resource import V1beta2NodeAllocatableResource from kubernetes.client.models.v1beta2_opaque_device_configuration import V1beta2OpaqueDeviceConfiguration from kubernetes.client.models.v1beta2_resource_claim import V1beta2ResourceClaim from kubernetes.client.models.v1beta2_resource_claim_consumer_reference import V1beta2ResourceClaimConsumerReference @@ -1611,6 +1765,7 @@ "V1CSINodeDriver": ".v1_csi_node_driver", "V1CSINodeList": ".v1_csi_node_list", "V1CSINodeSpec": ".v1_csi_node_spec", + "V1CSINodeStatus": ".v1_csi_node_status", "V1CSIPersistentVolumeSource": ".v1_csi_persistent_volume_source", "V1CSIStorageCapacity": ".v1_csi_storage_capacity", "V1CSIStorageCapacityList": ".v1_csi_storage_capacity_list", @@ -1633,7 +1788,10 @@ "V1ClusterRoleBinding": ".v1_cluster_role_binding", "V1ClusterRoleBindingList": ".v1_cluster_role_binding_list", "V1ClusterRoleList": ".v1_cluster_role_list", + "V1ClusterTrustBundle": ".v1_cluster_trust_bundle", + "V1ClusterTrustBundleList": ".v1_cluster_trust_bundle_list", "V1ClusterTrustBundleProjection": ".v1_cluster_trust_bundle_projection", + "V1ClusterTrustBundleSpec": ".v1_cluster_trust_bundle_spec", "V1ComponentCondition": ".v1_component_condition", "V1ComponentStatus": ".v1_component_status", "V1ComponentStatusList": ".v1_component_status_list", @@ -1706,11 +1864,17 @@ "V1DeviceClassSpec": ".v1_device_class_spec", "V1DeviceConstraint": ".v1_device_constraint", "V1DeviceCounterConsumption": ".v1_device_counter_consumption", + "V1DeviceDerivedAttribute": ".v1_device_derived_attribute", "V1DeviceRequest": ".v1_device_request", "V1DeviceRequestAllocationResult": ".v1_device_request_allocation_result", "V1DeviceSelector": ".v1_device_selector", "V1DeviceSubRequest": ".v1_device_sub_request", "V1DeviceTaint": ".v1_device_taint", + "V1DeviceTaintRule": ".v1_device_taint_rule", + "V1DeviceTaintRuleList": ".v1_device_taint_rule_list", + "V1DeviceTaintRuleSpec": ".v1_device_taint_rule_spec", + "V1DeviceTaintRuleStatus": ".v1_device_taint_rule_status", + "V1DeviceTaintSelector": ".v1_device_taint_selector", "V1DeviceToleration": ".v1_device_toleration", "V1DownwardAPIProjection": ".v1_downward_api_projection", "V1DownwardAPIVolumeFile": ".v1_downward_api_volume_file", @@ -1732,6 +1896,7 @@ "V1EphemeralVolumeSource": ".v1_ephemeral_volume_source", "V1EventSource": ".v1_event_source", "V1Eviction": ".v1_eviction", + "V1EvictionResponder": ".v1_eviction_responder", "V1ExactDeviceRequest": ".v1_exact_device_request", "V1ExecAction": ".v1_exec_action", "V1ExemptPriorityLevelConfiguration": ".v1_exempt_priority_level_configuration", @@ -1800,6 +1965,7 @@ "V1Job": ".v1_job", "V1JobCondition": ".v1_job_condition", "V1JobList": ".v1_job_list", + "V1JobSchedulingConfiguration": ".v1_job_scheduling_configuration", "V1JobSpec": ".v1_job_spec", "V1JobStatus": ".v1_job_status", "V1JobTemplateSpec": ".v1_job_template_spec", @@ -1857,14 +2023,19 @@ "V1Node": ".v1_node", "V1NodeAddress": ".v1_node_address", "V1NodeAffinity": ".v1_node_affinity", + "V1NodeAllocatableMappedResources": ".v1_node_allocatable_mapped_resources", + "V1NodeAllocatableMapping": ".v1_node_allocatable_mapping", + "V1NodeAllocatableOverhead": ".v1_node_allocatable_overhead", + "V1NodeAllocatableOverheadResources": ".v1_node_allocatable_overhead_resources", + "V1NodeAllocatableResource": ".v1_node_allocatable_resource", "V1NodeAllocatableResourceClaimStatus": ".v1_node_allocatable_resource_claim_status", - "V1NodeAllocatableResourceMapping": ".v1_node_allocatable_resource_mapping", "V1NodeCondition": ".v1_node_condition", "V1NodeConfigSource": ".v1_node_config_source", "V1NodeConfigStatus": ".v1_node_config_status", "V1NodeDaemonEndpoints": ".v1_node_daemon_endpoints", "V1NodeFeatures": ".v1_node_features", "V1NodeList": ".v1_node_list", + "V1NodePodPreemptionPolicy": ".v1_node_pod_preemption_policy", "V1NodeRuntimeHandler": ".v1_node_runtime_handler", "V1NodeRuntimeHandlerFeatures": ".v1_node_runtime_handler_features", "V1NodeSelector": ".v1_node_selector", @@ -1903,6 +2074,10 @@ "V1PodAffinityTerm": ".v1_pod_affinity_term", "V1PodAntiAffinity": ".v1_pod_anti_affinity", "V1PodCertificateProjection": ".v1_pod_certificate_projection", + "V1PodCertificateRequest": ".v1_pod_certificate_request", + "V1PodCertificateRequestList": ".v1_pod_certificate_request_list", + "V1PodCertificateRequestSpec": ".v1_pod_certificate_request_spec", + "V1PodCertificateRequestStatus": ".v1_pod_certificate_request_status", "V1PodCondition": ".v1_pod_condition", "V1PodDNSConfig": ".v1_pod_dns_config", "V1PodDNSConfigOption": ".v1_pod_dns_config_option", @@ -1929,6 +2104,7 @@ "V1PodTemplate": ".v1_pod_template", "V1PodTemplateList": ".v1_pod_template_list", "V1PodTemplateSpec": ".v1_pod_template_spec", + "V1PodVolumeHealth": ".v1_pod_volume_health", "V1PolicyRule": ".v1_policy_rule", "V1PolicyRulesWithSubjects": ".v1_policy_rules_with_subjects", "V1PortStatus": ".v1_port_status", @@ -2048,8 +2224,14 @@ "V1StatusDetails": ".v1_status_details", "V1StorageClass": ".v1_storage_class", "V1StorageClassList": ".v1_storage_class_list", + "V1StorageHealth": ".v1_storage_health", + "V1StorageHealthCondition": ".v1_storage_health_condition", "V1StorageOSPersistentVolumeSource": ".v1_storage_os_persistent_volume_source", "V1StorageOSVolumeSource": ".v1_storage_os_volume_source", + "V1StorageVersionMigration": ".v1_storage_version_migration", + "V1StorageVersionMigrationList": ".v1_storage_version_migration_list", + "V1StorageVersionMigrationSpec": ".v1_storage_version_migration_spec", + "V1StorageVersionMigrationStatus": ".v1_storage_version_migration_status", "V1SubjectAccessReview": ".v1_subject_access_review", "V1SubjectAccessReviewSpec": ".v1_subject_access_review_spec", "V1SubjectAccessReviewStatus": ".v1_subject_access_review_status", @@ -2097,6 +2279,8 @@ "V1VolumeAttributesClassList": ".v1_volume_attributes_class_list", "V1VolumeDevice": ".v1_volume_device", "V1VolumeError": ".v1_volume_error", + "V1VolumeHealthCondition": ".v1_volume_health_condition", + "V1VolumeHealthStatus": ".v1_volume_health_status", "V1VolumeMount": ".v1_volume_mount", "V1VolumeMountStatus": ".v1_volume_mount_status", "V1VolumeNodeAffinity": ".v1_volume_node_affinity", @@ -2110,9 +2294,18 @@ "V1WeightedPodAffinityTerm": ".v1_weighted_pod_affinity_term", "V1WindowsSecurityContextOptions": ".v1_windows_security_context_options", "V1alpha1ApplyConfiguration": ".v1alpha1_apply_configuration", - "V1alpha1ClusterTrustBundle": ".v1alpha1_cluster_trust_bundle", - "V1alpha1ClusterTrustBundleList": ".v1alpha1_cluster_trust_bundle_list", - "V1alpha1ClusterTrustBundleSpec": ".v1alpha1_cluster_trust_bundle_spec", + "V1alpha1Eviction": ".v1alpha1_eviction", + "V1alpha1EvictionList": ".v1alpha1_eviction_list", + "V1alpha1EvictionPodReference": ".v1alpha1_eviction_pod_reference", + "V1alpha1EvictionRequest": ".v1alpha1_eviction_request", + "V1alpha1EvictionRequestList": ".v1alpha1_eviction_request_list", + "V1alpha1EvictionRequestPodReference": ".v1alpha1_eviction_request_pod_reference", + "V1alpha1EvictionRequestSpec": ".v1alpha1_eviction_request_spec", + "V1alpha1EvictionRequestStatus": ".v1alpha1_eviction_request_status", + "V1alpha1EvictionRequestTarget": ".v1alpha1_eviction_request_target", + "V1alpha1EvictionSpec": ".v1alpha1_eviction_spec", + "V1alpha1EvictionStatus": ".v1alpha1_eviction_status", + "V1alpha1EvictionTarget": ".v1alpha1_eviction_target", "V1alpha1JSONPatch": ".v1alpha1_json_patch", "V1alpha1MatchCondition": ".v1alpha1_match_condition", "V1alpha1MatchResources": ".v1alpha1_match_resources", @@ -2126,43 +2319,63 @@ "V1alpha1NamedRuleWithOperations": ".v1alpha1_named_rule_with_operations", "V1alpha1ParamKind": ".v1alpha1_param_kind", "V1alpha1ParamRef": ".v1alpha1_param_ref", + "V1alpha1Requester": ".v1alpha1_requester", + "V1alpha1ResponderStatus": ".v1alpha1_responder_status", "V1alpha1ServerStorageVersion": ".v1alpha1_server_storage_version", "V1alpha1StorageVersion": ".v1alpha1_storage_version", "V1alpha1StorageVersionCondition": ".v1alpha1_storage_version_condition", "V1alpha1StorageVersionList": ".v1alpha1_storage_version_list", "V1alpha1StorageVersionStatus": ".v1alpha1_storage_version_status", + "V1alpha1TargetResponder": ".v1alpha1_target_responder", "V1alpha1Variable": ".v1alpha1_variable", - "V1alpha2GangSchedulingPolicy": ".v1alpha2_gang_scheduling_policy", "V1alpha2LeaseCandidate": ".v1alpha2_lease_candidate", "V1alpha2LeaseCandidateList": ".v1alpha2_lease_candidate_list", "V1alpha2LeaseCandidateSpec": ".v1alpha2_lease_candidate_spec", - "V1alpha2PodGroup": ".v1alpha2_pod_group", - "V1alpha2PodGroupList": ".v1alpha2_pod_group_list", - "V1alpha2PodGroupResourceClaim": ".v1alpha2_pod_group_resource_claim", - "V1alpha2PodGroupResourceClaimStatus": ".v1alpha2_pod_group_resource_claim_status", - "V1alpha2PodGroupSchedulingConstraints": ".v1alpha2_pod_group_scheduling_constraints", - "V1alpha2PodGroupSchedulingPolicy": ".v1alpha2_pod_group_scheduling_policy", - "V1alpha2PodGroupSpec": ".v1alpha2_pod_group_spec", - "V1alpha2PodGroupStatus": ".v1alpha2_pod_group_status", - "V1alpha2PodGroupTemplate": ".v1alpha2_pod_group_template", - "V1alpha2PodGroupTemplateReference": ".v1alpha2_pod_group_template_reference", - "V1alpha2TopologyConstraint": ".v1alpha2_topology_constraint", - "V1alpha2TypedLocalObjectReference": ".v1alpha2_typed_local_object_reference", - "V1alpha2Workload": ".v1alpha2_workload", - "V1alpha2WorkloadList": ".v1alpha2_workload_list", - "V1alpha2WorkloadPodGroupTemplateReference": ".v1alpha2_workload_pod_group_template_reference", - "V1alpha2WorkloadSpec": ".v1alpha2_workload_spec", + "V1alpha3CompositeDisruptionMode": ".v1alpha3_composite_disruption_mode", + "V1alpha3CompositeGangSchedulingPolicy": ".v1alpha3_composite_gang_scheduling_policy", + "V1alpha3CompositePodGroup": ".v1alpha3_composite_pod_group", + "V1alpha3CompositePodGroupList": ".v1alpha3_composite_pod_group_list", + "V1alpha3CompositePodGroupSchedulingConstraints": ".v1alpha3_composite_pod_group_scheduling_constraints", + "V1alpha3CompositePodGroupSchedulingPolicy": ".v1alpha3_composite_pod_group_scheduling_policy", + "V1alpha3CompositePodGroupSpec": ".v1alpha3_composite_pod_group_spec", + "V1alpha3CompositePodGroupStatus": ".v1alpha3_composite_pod_group_status", + "V1alpha3CompositePodGroupTemplate": ".v1alpha3_composite_pod_group_template", "V1alpha3DeviceTaint": ".v1alpha3_device_taint", "V1alpha3DeviceTaintRule": ".v1alpha3_device_taint_rule", "V1alpha3DeviceTaintRuleList": ".v1alpha3_device_taint_rule_list", "V1alpha3DeviceTaintRuleSpec": ".v1alpha3_device_taint_rule_spec", "V1alpha3DeviceTaintRuleStatus": ".v1alpha3_device_taint_rule_status", "V1alpha3DeviceTaintSelector": ".v1alpha3_device_taint_selector", + "V1alpha3DisruptionMode": ".v1alpha3_disruption_mode", + "V1alpha3GangSchedulingPolicy": ".v1alpha3_gang_scheduling_policy", + "V1alpha3PartitionTypeStatus": ".v1alpha3_partition_type_status", + "V1alpha3PodGroup": ".v1alpha3_pod_group", + "V1alpha3PodGroupList": ".v1alpha3_pod_group_list", + "V1alpha3PodGroupResourceClaim": ".v1alpha3_pod_group_resource_claim", + "V1alpha3PodGroupResourceClaimStatus": ".v1alpha3_pod_group_resource_claim_status", + "V1alpha3PodGroupSchedulingConstraints": ".v1alpha3_pod_group_scheduling_constraints", + "V1alpha3PodGroupSchedulingPolicy": ".v1alpha3_pod_group_scheduling_policy", + "V1alpha3PodGroupSpec": ".v1alpha3_pod_group_spec", + "V1alpha3PodGroupStatus": ".v1alpha3_pod_group_status", + "V1alpha3PodGroupTemplate": ".v1alpha3_pod_group_template", "V1alpha3PoolStatus": ".v1alpha3_pool_status", "V1alpha3ResourcePoolStatusRequest": ".v1alpha3_resource_pool_status_request", "V1alpha3ResourcePoolStatusRequestList": ".v1alpha3_resource_pool_status_request_list", "V1alpha3ResourcePoolStatusRequestSpec": ".v1alpha3_resource_pool_status_request_spec", "V1alpha3ResourcePoolStatusRequestStatus": ".v1alpha3_resource_pool_status_request_status", + "V1alpha3ShareableCapacityStatus": ".v1alpha3_shareable_capacity_status", + "V1alpha3ShareableSummaryStatus": ".v1alpha3_shareable_summary_status", + "V1alpha3TopologyConstraint": ".v1alpha3_topology_constraint", + "V1alpha3TypedLocalObjectReference": ".v1alpha3_typed_local_object_reference", + "V1alpha3Workload": ".v1alpha3_workload", + "V1alpha3WorkloadList": ".v1alpha3_workload_list", + "V1alpha3WorkloadPodGroupDisruptionMode": ".v1alpha3_workload_pod_group_disruption_mode", + "V1alpha3WorkloadPodGroupGangSchedulingPolicy": ".v1alpha3_workload_pod_group_gang_scheduling_policy", + "V1alpha3WorkloadPodGroupResourceClaim": ".v1alpha3_workload_pod_group_resource_claim", + "V1alpha3WorkloadPodGroupSchedulingConstraints": ".v1alpha3_workload_pod_group_scheduling_constraints", + "V1alpha3WorkloadPodGroupSchedulingPolicy": ".v1alpha3_workload_pod_group_scheduling_policy", + "V1alpha3WorkloadReference": ".v1alpha3_workload_reference", + "V1alpha3WorkloadSpec": ".v1alpha3_workload_spec", "V1beta1AllocatedDeviceStatus": ".v1beta1_allocated_device_status", "V1beta1AllocationResult": ".v1beta1_allocation_result", "V1beta1ApplyConfiguration": ".v1beta1_apply_configuration", @@ -2174,6 +2387,11 @@ "V1beta1ClusterTrustBundle": ".v1beta1_cluster_trust_bundle", "V1beta1ClusterTrustBundleList": ".v1beta1_cluster_trust_bundle_list", "V1beta1ClusterTrustBundleSpec": ".v1beta1_cluster_trust_bundle_spec", + "V1beta1CompositeDisruptionMode": ".v1beta1_composite_disruption_mode", + "V1beta1CompositeGangSchedulingPolicy": ".v1beta1_composite_gang_scheduling_policy", + "V1beta1CompositePodGroupSchedulingConstraints": ".v1beta1_composite_pod_group_scheduling_constraints", + "V1beta1CompositePodGroupSchedulingPolicy": ".v1beta1_composite_pod_group_scheduling_policy", + "V1beta1CompositePodGroupTemplate": ".v1beta1_composite_pod_group_template", "V1beta1Counter": ".v1beta1_counter", "V1beta1CounterSet": ".v1beta1_counter_set", "V1beta1Device": ".v1beta1_device", @@ -2189,15 +2407,15 @@ "V1beta1DeviceClassSpec": ".v1beta1_device_class_spec", "V1beta1DeviceConstraint": ".v1beta1_device_constraint", "V1beta1DeviceCounterConsumption": ".v1beta1_device_counter_consumption", + "V1beta1DeviceDerivedAttribute": ".v1beta1_device_derived_attribute", "V1beta1DeviceRequest": ".v1beta1_device_request", "V1beta1DeviceRequestAllocationResult": ".v1beta1_device_request_allocation_result", "V1beta1DeviceSelector": ".v1beta1_device_selector", "V1beta1DeviceSubRequest": ".v1beta1_device_sub_request", "V1beta1DeviceTaint": ".v1beta1_device_taint", "V1beta1DeviceToleration": ".v1beta1_device_toleration", - "V1beta1IPAddress": ".v1beta1_ip_address", - "V1beta1IPAddressList": ".v1beta1_ip_address_list", - "V1beta1IPAddressSpec": ".v1beta1_ip_address_spec", + "V1beta1DisruptionMode": ".v1beta1_disruption_mode", + "V1beta1GangSchedulingPolicy": ".v1beta1_gang_scheduling_policy", "V1beta1JSONPatch": ".v1beta1_json_patch", "V1beta1LeaseCandidate": ".v1beta1_lease_candidate", "V1beta1LeaseCandidateList": ".v1beta1_lease_candidate_list", @@ -2213,15 +2431,25 @@ "V1beta1Mutation": ".v1beta1_mutation", "V1beta1NamedRuleWithOperations": ".v1beta1_named_rule_with_operations", "V1beta1NetworkDeviceData": ".v1beta1_network_device_data", - "V1beta1NodeAllocatableResourceMapping": ".v1beta1_node_allocatable_resource_mapping", + "V1beta1NodeAllocatableMapping": ".v1beta1_node_allocatable_mapping", + "V1beta1NodeAllocatableOverhead": ".v1beta1_node_allocatable_overhead", + "V1beta1NodeAllocatableResource": ".v1beta1_node_allocatable_resource", "V1beta1OpaqueDeviceConfiguration": ".v1beta1_opaque_device_configuration", "V1beta1ParamKind": ".v1beta1_param_kind", "V1beta1ParamRef": ".v1beta1_param_ref", - "V1beta1ParentReference": ".v1beta1_parent_reference", "V1beta1PodCertificateRequest": ".v1beta1_pod_certificate_request", "V1beta1PodCertificateRequestList": ".v1beta1_pod_certificate_request_list", "V1beta1PodCertificateRequestSpec": ".v1beta1_pod_certificate_request_spec", "V1beta1PodCertificateRequestStatus": ".v1beta1_pod_certificate_request_status", + "V1beta1PodGroup": ".v1beta1_pod_group", + "V1beta1PodGroupList": ".v1beta1_pod_group_list", + "V1beta1PodGroupResourceClaim": ".v1beta1_pod_group_resource_claim", + "V1beta1PodGroupResourceClaimStatus": ".v1beta1_pod_group_resource_claim_status", + "V1beta1PodGroupSchedulingConstraints": ".v1beta1_pod_group_scheduling_constraints", + "V1beta1PodGroupSchedulingPolicy": ".v1beta1_pod_group_scheduling_policy", + "V1beta1PodGroupSpec": ".v1beta1_pod_group_spec", + "V1beta1PodGroupStatus": ".v1beta1_pod_group_status", + "V1beta1PodGroupTemplate": ".v1beta1_pod_group_template", "V1beta1ResourceClaim": ".v1beta1_resource_claim", "V1beta1ResourceClaimConsumerReference": ".v1beta1_resource_claim_consumer_reference", "V1beta1ResourceClaimList": ".v1beta1_resource_claim_list", @@ -2234,17 +2462,17 @@ "V1beta1ResourceSlice": ".v1beta1_resource_slice", "V1beta1ResourceSliceList": ".v1beta1_resource_slice_list", "V1beta1ResourceSliceSpec": ".v1beta1_resource_slice_spec", - "V1beta1ServiceCIDR": ".v1beta1_service_cidr", - "V1beta1ServiceCIDRList": ".v1beta1_service_cidr_list", - "V1beta1ServiceCIDRSpec": ".v1beta1_service_cidr_spec", - "V1beta1ServiceCIDRStatus": ".v1beta1_service_cidr_status", "V1beta1StorageVersionMigration": ".v1beta1_storage_version_migration", "V1beta1StorageVersionMigrationList": ".v1beta1_storage_version_migration_list", "V1beta1StorageVersionMigrationSpec": ".v1beta1_storage_version_migration_spec", "V1beta1StorageVersionMigrationStatus": ".v1beta1_storage_version_migration_status", + "V1beta1TopologyConstraint": ".v1beta1_topology_constraint", + "V1beta1TypedLocalObjectReference": ".v1beta1_typed_local_object_reference", "V1beta1Variable": ".v1beta1_variable", - "V1beta1VolumeAttributesClass": ".v1beta1_volume_attributes_class", - "V1beta1VolumeAttributesClassList": ".v1beta1_volume_attributes_class_list", + "V1beta1Workload": ".v1beta1_workload", + "V1beta1WorkloadList": ".v1beta1_workload_list", + "V1beta1WorkloadReference": ".v1beta1_workload_reference", + "V1beta1WorkloadSpec": ".v1beta1_workload_spec", "V1beta2AllocatedDeviceStatus": ".v1beta2_allocated_device_status", "V1beta2AllocationResult": ".v1beta2_allocation_result", "V1beta2CELDeviceSelector": ".v1beta2_cel_device_selector", @@ -2266,6 +2494,7 @@ "V1beta2DeviceClassSpec": ".v1beta2_device_class_spec", "V1beta2DeviceConstraint": ".v1beta2_device_constraint", "V1beta2DeviceCounterConsumption": ".v1beta2_device_counter_consumption", + "V1beta2DeviceDerivedAttribute": ".v1beta2_device_derived_attribute", "V1beta2DeviceRequest": ".v1beta2_device_request", "V1beta2DeviceRequestAllocationResult": ".v1beta2_device_request_allocation_result", "V1beta2DeviceSelector": ".v1beta2_device_selector", @@ -2279,7 +2508,9 @@ "V1beta2DeviceToleration": ".v1beta2_device_toleration", "V1beta2ExactDeviceRequest": ".v1beta2_exact_device_request", "V1beta2NetworkDeviceData": ".v1beta2_network_device_data", - "V1beta2NodeAllocatableResourceMapping": ".v1beta2_node_allocatable_resource_mapping", + "V1beta2NodeAllocatableMapping": ".v1beta2_node_allocatable_mapping", + "V1beta2NodeAllocatableOverhead": ".v1beta2_node_allocatable_overhead", + "V1beta2NodeAllocatableResource": ".v1beta2_node_allocatable_resource", "V1beta2OpaqueDeviceConfiguration": ".v1beta2_opaque_device_configuration", "V1beta2ResourceClaim": ".v1beta2_resource_claim", "V1beta2ResourceClaimConsumerReference": ".v1beta2_resource_claim_consumer_reference", diff --git a/kubernetes/client/models/admissionregistration_v1_service_reference.py b/kubernetes/client/models/admissionregistration_v1_service_reference.py index d235418dae..4b30f06016 100644 --- a/kubernetes/client/models/admissionregistration_v1_service_reference.py +++ b/kubernetes/client/models/admissionregistration_v1_service_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/admissionregistration_v1_webhook_client_config.py b/kubernetes/client/models/admissionregistration_v1_webhook_client_config.py index 6f95ee371c..a23feffced 100644 --- a/kubernetes/client/models/admissionregistration_v1_webhook_client_config.py +++ b/kubernetes/client/models/admissionregistration_v1_webhook_client_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/apiextensions_v1_service_reference.py b/kubernetes/client/models/apiextensions_v1_service_reference.py index 1cee548581..3cc2a02744 100644 --- a/kubernetes/client/models/apiextensions_v1_service_reference.py +++ b/kubernetes/client/models/apiextensions_v1_service_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/apiextensions_v1_webhook_client_config.py b/kubernetes/client/models/apiextensions_v1_webhook_client_config.py index 19a487957e..420a6b56e0 100644 --- a/kubernetes/client/models/apiextensions_v1_webhook_client_config.py +++ b/kubernetes/client/models/apiextensions_v1_webhook_client_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/apiregistration_v1_service_reference.py b/kubernetes/client/models/apiregistration_v1_service_reference.py index 0f870a1990..79c245b8d2 100644 --- a/kubernetes/client/models/apiregistration_v1_service_reference.py +++ b/kubernetes/client/models/apiregistration_v1_service_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/authentication_v1_token_request.py b/kubernetes/client/models/authentication_v1_token_request.py index 6f32936b81..3b4ad744be 100644 --- a/kubernetes/client/models/authentication_v1_token_request.py +++ b/kubernetes/client/models/authentication_v1_token_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/core_v1_endpoint_port.py b/kubernetes/client/models/core_v1_endpoint_port.py index 3e315fd0a5..ae46003e98 100644 --- a/kubernetes/client/models/core_v1_endpoint_port.py +++ b/kubernetes/client/models/core_v1_endpoint_port.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/core_v1_event.py b/kubernetes/client/models/core_v1_event.py index 9720c2ec96..770f13baf1 100644 --- a/kubernetes/client/models/core_v1_event.py +++ b/kubernetes/client/models/core_v1_event.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/core_v1_event_list.py b/kubernetes/client/models/core_v1_event_list.py index 01f6ce07ec..7379fb72e3 100644 --- a/kubernetes/client/models/core_v1_event_list.py +++ b/kubernetes/client/models/core_v1_event_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/core_v1_event_series.py b/kubernetes/client/models/core_v1_event_series.py index 2fc677c5cb..1ecb329601 100644 --- a/kubernetes/client/models/core_v1_event_series.py +++ b/kubernetes/client/models/core_v1_event_series.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/core_v1_resource_claim.py b/kubernetes/client/models/core_v1_resource_claim.py index ee558b6e7f..a8e4da433a 100644 --- a/kubernetes/client/models/core_v1_resource_claim.py +++ b/kubernetes/client/models/core_v1_resource_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/discovery_v1_endpoint_port.py b/kubernetes/client/models/discovery_v1_endpoint_port.py index 181dac7c2f..3e0d5c1289 100644 --- a/kubernetes/client/models/discovery_v1_endpoint_port.py +++ b/kubernetes/client/models/discovery_v1_endpoint_port.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/events_v1_event.py b/kubernetes/client/models/events_v1_event.py index 92e2decbc0..d0c4242aa9 100644 --- a/kubernetes/client/models/events_v1_event.py +++ b/kubernetes/client/models/events_v1_event.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/events_v1_event_list.py b/kubernetes/client/models/events_v1_event_list.py index ff69c2e5f6..647a229165 100644 --- a/kubernetes/client/models/events_v1_event_list.py +++ b/kubernetes/client/models/events_v1_event_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/events_v1_event_series.py b/kubernetes/client/models/events_v1_event_series.py index fcc0cc64aa..9729193dae 100644 --- a/kubernetes/client/models/events_v1_event_series.py +++ b/kubernetes/client/models/events_v1_event_series.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/flowcontrol_v1_subject.py b/kubernetes/client/models/flowcontrol_v1_subject.py index 5252b64c01..ec4b674b9b 100644 --- a/kubernetes/client/models/flowcontrol_v1_subject.py +++ b/kubernetes/client/models/flowcontrol_v1_subject.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/rbac_v1_subject.py b/kubernetes/client/models/rbac_v1_subject.py index eda84a4366..8d8b926534 100644 --- a/kubernetes/client/models/rbac_v1_subject.py +++ b/kubernetes/client/models/rbac_v1_subject.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -103,10 +103,10 @@ class RbacV1Subject(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - api_group: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiGroup", "api_group"), serialization_alias="apiGroup", description="APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.") - kind: StrictStr = Field(description="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.") - name: StrictStr = Field(description="Name of the object being referenced.") - namespace: Optional[StrictStr] = Field(default=None, description="Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.") + api_group: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiGroup", "api_group"), serialization_alias="apiGroup", description="apiGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.") + kind: StrictStr = Field(description="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.") + name: StrictStr = Field(description="name of the object being referenced.") + namespace: Optional[StrictStr] = Field(default=None, description="namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.") openapi_types: ClassVar[Dict[str, str]] = { "api_group": "str", "kind": "str", diff --git a/kubernetes/client/models/resource_v1_resource_claim.py b/kubernetes/client/models/resource_v1_resource_claim.py index bb937bc8ae..78dec0a4e5 100644 --- a/kubernetes/client/models/resource_v1_resource_claim.py +++ b/kubernetes/client/models/resource_v1_resource_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,7 +109,7 @@ class ResourceV1ResourceClaim(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1ResourceClaimSpec + spec: Optional[V1ResourceClaimSpec] = None status: Optional[V1ResourceClaimStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", diff --git a/kubernetes/client/models/storage_v1_token_request.py b/kubernetes/client/models/storage_v1_token_request.py index 70444cbc68..52ba475d18 100644 --- a/kubernetes/client/models/storage_v1_token_request.py +++ b/kubernetes/client/models/storage_v1_token_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_affinity.py b/kubernetes/client/models/v1_affinity.py index a0669d0586..f688d27850 100644 --- a/kubernetes/client/models/v1_affinity.py +++ b/kubernetes/client/models/v1_affinity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_aggregation_rule.py b/kubernetes/client/models/v1_aggregation_rule.py index 1df0aac023..0a6d80d584 100644 --- a/kubernetes/client/models/v1_aggregation_rule.py +++ b/kubernetes/client/models/v1_aggregation_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -104,7 +104,7 @@ class V1AggregationRule(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - cluster_role_selectors: Optional[List[V1LabelSelector]] = Field(default=None, validation_alias=AliasChoices("clusterRoleSelectors", "cluster_role_selectors"), serialization_alias="clusterRoleSelectors", description="ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added") + cluster_role_selectors: Optional[List[V1LabelSelector]] = Field(default=None, validation_alias=AliasChoices("clusterRoleSelectors", "cluster_role_selectors"), serialization_alias="clusterRoleSelectors", description="clusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added") openapi_types: ClassVar[Dict[str, str]] = { "cluster_role_selectors": "List[V1LabelSelector]" } diff --git a/kubernetes/client/models/v1_allocated_device_status.py b/kubernetes/client/models/v1_allocated_device_status.py index 1e8e81b696..23121ed751 100644 --- a/kubernetes/client/models/v1_allocated_device_status.py +++ b/kubernetes/client/models/v1_allocated_device_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_allocation_result.py b/kubernetes/client/models/v1_allocation_result.py index 8aaf534432..8c8ac3da33 100644 --- a/kubernetes/client/models/v1_allocation_result.py +++ b/kubernetes/client/models/v1_allocation_result.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_api_group.py b/kubernetes/client/models/v1_api_group.py index ba97e62a74..b9480748b4 100644 --- a/kubernetes/client/models/v1_api_group.py +++ b/kubernetes/client/models/v1_api_group.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_api_group_list.py b/kubernetes/client/models/v1_api_group_list.py index 7ea70d4050..98f9d338c7 100644 --- a/kubernetes/client/models/v1_api_group_list.py +++ b/kubernetes/client/models/v1_api_group_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_api_resource.py b/kubernetes/client/models/v1_api_resource.py index ad6ef44357..b6ef4cb5f8 100644 --- a/kubernetes/client/models/v1_api_resource.py +++ b/kubernetes/client/models/v1_api_resource.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_api_resource_list.py b/kubernetes/client/models/v1_api_resource_list.py index 7ab4e48dca..7987b82d81 100644 --- a/kubernetes/client/models/v1_api_resource_list.py +++ b/kubernetes/client/models/v1_api_resource_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_api_service.py b/kubernetes/client/models/v1_api_service.py index a456e2df41..2e0da6d48d 100644 --- a/kubernetes/client/models/v1_api_service.py +++ b/kubernetes/client/models/v1_api_service.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_api_service_condition.py b/kubernetes/client/models/v1_api_service_condition.py index 97b45eef79..9169194fca 100644 --- a/kubernetes/client/models/v1_api_service_condition.py +++ b/kubernetes/client/models/v1_api_service_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_api_service_list.py b/kubernetes/client/models/v1_api_service_list.py index 257f67395c..83c5a61690 100644 --- a/kubernetes/client/models/v1_api_service_list.py +++ b/kubernetes/client/models/v1_api_service_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_api_service_spec.py b/kubernetes/client/models/v1_api_service_spec.py index e4701c2487..573bd62aaf 100644 --- a/kubernetes/client/models/v1_api_service_spec.py +++ b/kubernetes/client/models/v1_api_service_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_api_service_status.py b/kubernetes/client/models/v1_api_service_status.py index 5461c2dd43..6452410f7b 100644 --- a/kubernetes/client/models/v1_api_service_status.py +++ b/kubernetes/client/models/v1_api_service_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_api_versions.py b/kubernetes/client/models/v1_api_versions.py index 8ca2ba2ecd..6d9452cc0d 100644 --- a/kubernetes/client/models/v1_api_versions.py +++ b/kubernetes/client/models/v1_api_versions.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_app_armor_profile.py b/kubernetes/client/models/v1_app_armor_profile.py index 6a1ffd89a7..118f94888d 100644 --- a/kubernetes/client/models/v1_app_armor_profile.py +++ b/kubernetes/client/models/v1_app_armor_profile.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_apply_configuration.py b/kubernetes/client/models/v1_apply_configuration.py index fcd2355670..512523d03b 100644 --- a/kubernetes/client/models/v1_apply_configuration.py +++ b/kubernetes/client/models/v1_apply_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_attached_volume.py b/kubernetes/client/models/v1_attached_volume.py index 1da291396c..9b1fe439c9 100644 --- a/kubernetes/client/models/v1_attached_volume.py +++ b/kubernetes/client/models/v1_attached_volume.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_audit_annotation.py b/kubernetes/client/models/v1_audit_annotation.py index 0eb5af1456..4e13a379d8 100644 --- a/kubernetes/client/models/v1_audit_annotation.py +++ b/kubernetes/client/models/v1_audit_annotation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py b/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py index 2b408c6b3c..79e08298c6 100644 --- a/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py +++ b/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_azure_disk_volume_source.py b/kubernetes/client/models/v1_azure_disk_volume_source.py index 439d1d456a..9f0c225664 100644 --- a/kubernetes/client/models/v1_azure_disk_volume_source.py +++ b/kubernetes/client/models/v1_azure_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_azure_file_persistent_volume_source.py b/kubernetes/client/models/v1_azure_file_persistent_volume_source.py index afc4cefff5..d63bb3533c 100644 --- a/kubernetes/client/models/v1_azure_file_persistent_volume_source.py +++ b/kubernetes/client/models/v1_azure_file_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_azure_file_volume_source.py b/kubernetes/client/models/v1_azure_file_volume_source.py index d8d784864a..1a8751f35a 100644 --- a/kubernetes/client/models/v1_azure_file_volume_source.py +++ b/kubernetes/client/models/v1_azure_file_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_binding.py b/kubernetes/client/models/v1_binding.py index 2737e7f119..f1aa6d2fbf 100644 --- a/kubernetes/client/models/v1_binding.py +++ b/kubernetes/client/models/v1_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_bound_object_reference.py b/kubernetes/client/models/v1_bound_object_reference.py index 8a9ecc9521..19abddcedf 100644 --- a/kubernetes/client/models/v1_bound_object_reference.py +++ b/kubernetes/client/models/v1_bound_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -104,7 +104,7 @@ class V1BoundObjectReference(BaseModel): and the value is json key in definition. """ # noqa: E501 api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="apiVersion", description="apiVersion is API version of the referent.") - kind: Optional[StrictStr] = Field(default=None, description="kind of the referent. Valid kinds are 'Pod' and 'Secret'.") + kind: Optional[StrictStr] = Field(default=None, description="kind of the referent. Valid kinds are 'Pod', 'Secret', 'Node', 'ValidatingWebhookConfiguration', and 'MutatingWebhookConfiguration'.") name: Optional[StrictStr] = Field(default=None, description="name of the referent.") uid: Optional[StrictStr] = Field(default=None, description="uid of the referent.") openapi_types: ClassVar[Dict[str, str]] = { diff --git a/kubernetes/client/models/v1_capabilities.py b/kubernetes/client/models/v1_capabilities.py index a1b1940942..372859a289 100644 --- a/kubernetes/client/models/v1_capabilities.py +++ b/kubernetes/client/models/v1_capabilities.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_capacity_request_policy.py b/kubernetes/client/models/v1_capacity_request_policy.py index 2c6c8a80a1..f832973fe5 100644 --- a/kubernetes/client/models/v1_capacity_request_policy.py +++ b/kubernetes/client/models/v1_capacity_request_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_capacity_request_policy_range.py b/kubernetes/client/models/v1_capacity_request_policy_range.py index 408fffcfb7..ee412d1616 100644 --- a/kubernetes/client/models/v1_capacity_request_policy_range.py +++ b/kubernetes/client/models/v1_capacity_request_policy_range.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -94,7 +94,7 @@ def _to_openapi_value(value: Any) -> Any: class V1CapacityRequestPolicyRange(BaseModel): """ - 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. + CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - 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. Attributes: openapi_types (dict): The key is attribute name diff --git a/kubernetes/client/models/v1_capacity_requirements.py b/kubernetes/client/models/v1_capacity_requirements.py index c5e96d91e6..2938de0926 100644 --- a/kubernetes/client/models/v1_capacity_requirements.py +++ b/kubernetes/client/models/v1_capacity_requirements.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_cel_device_selector.py b/kubernetes/client/models/v1_cel_device_selector.py index 4b281453e3..92b1d68e09 100644 --- a/kubernetes/client/models/v1_cel_device_selector.py +++ b/kubernetes/client/models/v1_cel_device_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -102,7 +102,7 @@ class V1CELDeviceSelector(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - expression: StrictStr = Field(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. 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.") + expression: StrictStr = Field(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. 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.") openapi_types: ClassVar[Dict[str, str]] = { "expression": "str" } diff --git a/kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py b/kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py index 09a033a3ba..742fa5c969 100644 --- a/kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py +++ b/kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ceph_fs_volume_source.py b/kubernetes/client/models/v1_ceph_fs_volume_source.py index 9be74d10f9..0de84a1695 100644 --- a/kubernetes/client/models/v1_ceph_fs_volume_source.py +++ b/kubernetes/client/models/v1_ceph_fs_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_certificate_signing_request.py b/kubernetes/client/models/v1_certificate_signing_request.py index 6180b2e790..850fbf94b6 100644 --- a/kubernetes/client/models/v1_certificate_signing_request.py +++ b/kubernetes/client/models/v1_certificate_signing_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_certificate_signing_request_condition.py b/kubernetes/client/models/v1_certificate_signing_request_condition.py index 6f1de020f0..ae946a1a10 100644 --- a/kubernetes/client/models/v1_certificate_signing_request_condition.py +++ b/kubernetes/client/models/v1_certificate_signing_request_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_certificate_signing_request_list.py b/kubernetes/client/models/v1_certificate_signing_request_list.py index 4371ee3fc1..5231920f87 100644 --- a/kubernetes/client/models/v1_certificate_signing_request_list.py +++ b/kubernetes/client/models/v1_certificate_signing_request_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_certificate_signing_request_spec.py b/kubernetes/client/models/v1_certificate_signing_request_spec.py index 4c245aac3c..586f687bf8 100644 --- a/kubernetes/client/models/v1_certificate_signing_request_spec.py +++ b/kubernetes/client/models/v1_certificate_signing_request_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_certificate_signing_request_status.py b/kubernetes/client/models/v1_certificate_signing_request_status.py index e413e7eca9..773bdf86d0 100644 --- a/kubernetes/client/models/v1_certificate_signing_request_status.py +++ b/kubernetes/client/models/v1_certificate_signing_request_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_cinder_persistent_volume_source.py b/kubernetes/client/models/v1_cinder_persistent_volume_source.py index b62779988f..ebbe24c26d 100644 --- a/kubernetes/client/models/v1_cinder_persistent_volume_source.py +++ b/kubernetes/client/models/v1_cinder_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_cinder_volume_source.py b/kubernetes/client/models/v1_cinder_volume_source.py index 861040ef16..d2fdc758fd 100644 --- a/kubernetes/client/models/v1_cinder_volume_source.py +++ b/kubernetes/client/models/v1_cinder_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_client_ip_config.py b/kubernetes/client/models/v1_client_ip_config.py index 202193fad3..1879bd4851 100644 --- a/kubernetes/client/models/v1_client_ip_config.py +++ b/kubernetes/client/models/v1_client_ip_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_cluster_role.py b/kubernetes/client/models/v1_cluster_role.py index 933305fb91..8cbbad2536 100644 --- a/kubernetes/client/models/v1_cluster_role.py +++ b/kubernetes/client/models/v1_cluster_role.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -110,7 +110,7 @@ class V1ClusterRole(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - rules: Optional[List[V1PolicyRule]] = Field(default=None, description="Rules holds all the PolicyRules for this ClusterRole") + rules: Optional[List[V1PolicyRule]] = Field(default=None, description="rules holds all the PolicyRules for this ClusterRole") openapi_types: ClassVar[Dict[str, str]] = { "aggregation_rule": "V1AggregationRule", "api_version": "str", diff --git a/kubernetes/client/models/v1_cluster_role_binding.py b/kubernetes/client/models/v1_cluster_role_binding.py index d919be70c5..0c0bc4f5cf 100644 --- a/kubernetes/client/models/v1_cluster_role_binding.py +++ b/kubernetes/client/models/v1_cluster_role_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -110,7 +110,7 @@ class V1ClusterRoleBinding(BaseModel): kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None role_ref: V1RoleRef = Field(validation_alias=AliasChoices("roleRef", "role_ref"), serialization_alias="roleRef") - subjects: Optional[List[RbacV1Subject]] = Field(default=None, description="Subjects holds references to the objects the role applies to.") + subjects: Optional[List[RbacV1Subject]] = Field(default=None, description="subjects holds references to the objects the role applies to.") openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", diff --git a/kubernetes/client/models/v1_cluster_role_binding_list.py b/kubernetes/client/models/v1_cluster_role_binding_list.py index dbcf15c245..3d8cf0cf61 100644 --- a/kubernetes/client/models/v1_cluster_role_binding_list.py +++ b/kubernetes/client/models/v1_cluster_role_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_cluster_role_list.py b/kubernetes/client/models/v1_cluster_role_list.py index 21b21f5655..78e5438c78 100644 --- a/kubernetes/client/models/v1_cluster_role_list.py +++ b/kubernetes/client/models/v1_cluster_role_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_cluster_trust_bundle.py b/kubernetes/client/models/v1_cluster_trust_bundle.py similarity index 89% rename from kubernetes/client/models/v1alpha1_cluster_trust_bundle.py rename to kubernetes/client/models/v1_cluster_trust_bundle.py index fde589370f..c7ffbc210f 100644 --- a/kubernetes/client/models/v1alpha1_cluster_trust_bundle.py +++ b/kubernetes/client/models/v1_cluster_trust_bundle.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,8 +20,8 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_cluster_trust_bundle_spec import V1ClusterTrustBundleSpec from kubernetes.client.models.v1_object_meta import V1ObjectMeta -from kubernetes.client.models.v1alpha1_cluster_trust_bundle_spec import V1alpha1ClusterTrustBundleSpec from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,9 +95,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha1ClusterTrustBundle(BaseModel): +class V1ClusterTrustBundle(BaseModel): """ - 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. + 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 signer, 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. Attributes: openapi_types (dict): The key is attribute name @@ -108,12 +108,12 @@ class V1alpha1ClusterTrustBundle(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1alpha1ClusterTrustBundleSpec + spec: V1ClusterTrustBundleSpec openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", "metadata": "V1ObjectMeta", - "spec": "V1alpha1ClusterTrustBundleSpec" + "spec": "V1ClusterTrustBundleSpec" } attribute_map: ClassVar[Dict[str, str]] = { @@ -157,14 +157,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha1ClusterTrustBundle): + if not isinstance(other, V1ClusterTrustBundle): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha1ClusterTrustBundle): + if not isinstance(other, V1ClusterTrustBundle): return True return not (self == other) @@ -179,7 +179,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha1ClusterTrustBundle from a JSON string""" + """Create an instance of V1ClusterTrustBundle from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -231,7 +231,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha1ClusterTrustBundle from a dict""" + """Create an instance of V1ClusterTrustBundle from a dict""" if obj is None: return None @@ -250,6 +250,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "apiVersion": obj.get("apiVersion"), "kind": obj.get("kind"), "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, - "spec": V1alpha1ClusterTrustBundleSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None + "spec": V1ClusterTrustBundleSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1alpha1_cluster_trust_bundle_list.py b/kubernetes/client/models/v1_cluster_trust_bundle_list.py similarity index 91% rename from kubernetes/client/models/v1alpha1_cluster_trust_bundle_list.py rename to kubernetes/client/models/v1_cluster_trust_bundle_list.py index 20bbef422f..96d6e2af47 100644 --- a/kubernetes/client/models/v1alpha1_cluster_trust_bundle_list.py +++ b/kubernetes/client/models/v1_cluster_trust_bundle_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,8 +20,8 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_cluster_trust_bundle import V1ClusterTrustBundle from kubernetes.client.models.v1_list_meta import V1ListMeta -from kubernetes.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,7 +95,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha1ClusterTrustBundleList(BaseModel): +class V1ClusterTrustBundleList(BaseModel): """ ClusterTrustBundleList is a collection of ClusterTrustBundle objects @@ -106,12 +106,12 @@ class V1alpha1ClusterTrustBundleList(BaseModel): and the value is json key in definition. """ # noqa: E501 api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - items: List[V1alpha1ClusterTrustBundle] = Field(description="items is a collection of ClusterTrustBundle objects") + items: List[V1ClusterTrustBundle] = Field(description="items is a collection of ClusterTrustBundle objects") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ListMeta] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", - "items": "List[V1alpha1ClusterTrustBundle]", + "items": "List[V1ClusterTrustBundle]", "kind": "str", "metadata": "V1ListMeta" } @@ -157,14 +157,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha1ClusterTrustBundleList): + if not isinstance(other, V1ClusterTrustBundleList): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha1ClusterTrustBundleList): + if not isinstance(other, V1ClusterTrustBundleList): return True return not (self == other) @@ -179,7 +179,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha1ClusterTrustBundleList from a JSON string""" + """Create an instance of V1ClusterTrustBundleList from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -234,7 +234,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha1ClusterTrustBundleList from a dict""" + """Create an instance of V1ClusterTrustBundleList from a dict""" if obj is None: return None @@ -251,7 +251,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "apiVersion": obj.get("apiVersion"), - "items": [V1alpha1ClusterTrustBundle.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "items": [V1ClusterTrustBundle.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "kind": obj.get("kind"), "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None }) diff --git a/kubernetes/client/models/v1_cluster_trust_bundle_projection.py b/kubernetes/client/models/v1_cluster_trust_bundle_projection.py index 69b4357277..3ac6fb2e08 100644 --- a/kubernetes/client/models/v1_cluster_trust_bundle_projection.py +++ b/kubernetes/client/models/v1_cluster_trust_bundle_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,7 +18,7 @@ import json from collections.abc import Mapping as _Mapping -from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictBool, StrictStr +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1_label_selector import V1LabelSelector from typing import Optional, Set @@ -109,12 +109,14 @@ class V1ClusterTrustBundleProjection(BaseModel): optional: Optional[StrictBool] = Field(default=None, description="If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles.") path: StrictStr = Field(description="Relative path from the volume root to write the bundle.") signer_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("signerName", "signer_name"), serialization_alias="signerName", description="Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.") + user: Optional[StrictInt] = Field(default=None, description="user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") openapi_types: ClassVar[Dict[str, str]] = { "label_selector": "V1LabelSelector", "name": "str", "optional": "bool", "path": "str", - "signer_name": "str" + "signer_name": "str", + "user": "int" } attribute_map: ClassVar[Dict[str, str]] = { @@ -122,9 +124,10 @@ class V1ClusterTrustBundleProjection(BaseModel): "name": "name", "optional": "optional", "path": "path", - "signer_name": "signerName" + "signer_name": "signerName", + "user": "user" } - __properties: ClassVar[List[str]] = ["labelSelector", "name", "optional", "path", "signerName"] + __properties: ClassVar[List[str]] = ["labelSelector", "name", "optional", "path", "signerName", "user"] @classmethod def __preprocess_input_names( @@ -195,6 +198,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("optional" if serialize else "optional"): _to_legacy_value(getattr(self, "optional", None), serialize), ("path" if serialize else "path"): _to_legacy_value(getattr(self, "path", None), serialize), ("signerName" if serialize else "signer_name"): _to_legacy_value(getattr(self, "signer_name", None), serialize), + ("user" if serialize else "user"): _to_legacy_value(getattr(self, "user", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -254,6 +258,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "optional": obj.get("optional"), "path": obj.get("path"), - "signerName": obj.get("signerName") + "signerName": obj.get("signerName"), + "user": obj.get("user") }) return _obj diff --git a/kubernetes/aio/client/models/v1alpha1_cluster_trust_bundle_spec.py b/kubernetes/client/models/v1_cluster_trust_bundle_spec.py similarity index 95% rename from kubernetes/aio/client/models/v1alpha1_cluster_trust_bundle_spec.py rename to kubernetes/client/models/v1_cluster_trust_bundle_spec.py index 8cd3ed5b30..542aca5004 100644 --- a/kubernetes/aio/client/models/v1alpha1_cluster_trust_bundle_spec.py +++ b/kubernetes/client/models/v1_cluster_trust_bundle_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -93,7 +93,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha1ClusterTrustBundleSpec(BaseModel): +class V1ClusterTrustBundleSpec(BaseModel): """ ClusterTrustBundleSpec contains the signer and trust anchors. @@ -152,14 +152,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha1ClusterTrustBundleSpec): + if not isinstance(other, V1ClusterTrustBundleSpec): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha1ClusterTrustBundleSpec): + if not isinstance(other, V1ClusterTrustBundleSpec): return True return not (self == other) @@ -174,7 +174,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha1ClusterTrustBundleSpec from a JSON string""" + """Create an instance of V1ClusterTrustBundleSpec from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -218,7 +218,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha1ClusterTrustBundleSpec from a dict""" + """Create an instance of V1ClusterTrustBundleSpec from a dict""" if obj is None: return None diff --git a/kubernetes/client/models/v1_component_condition.py b/kubernetes/client/models/v1_component_condition.py index 099e0187ad..f5c70b92e3 100644 --- a/kubernetes/client/models/v1_component_condition.py +++ b/kubernetes/client/models/v1_component_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_component_status.py b/kubernetes/client/models/v1_component_status.py index da970a4afe..0f6ad17445 100644 --- a/kubernetes/client/models/v1_component_status.py +++ b/kubernetes/client/models/v1_component_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_component_status_list.py b/kubernetes/client/models/v1_component_status_list.py index 100bbadee2..7b66cb6f6b 100644 --- a/kubernetes/client/models/v1_component_status_list.py +++ b/kubernetes/client/models/v1_component_status_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_condition.py b/kubernetes/client/models/v1_condition.py index bf6c558d13..4960daaf92 100644 --- a/kubernetes/client/models/v1_condition.py +++ b/kubernetes/client/models/v1_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_config_map.py b/kubernetes/client/models/v1_config_map.py index 5e2f9ca924..89d22a91fa 100644 --- a/kubernetes/client/models/v1_config_map.py +++ b/kubernetes/client/models/v1_config_map.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -106,7 +106,7 @@ class V1ConfigMap(BaseModel): and the value is json key in definition. """ # noqa: E501 api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - binary_data: Optional[Dict[str, Union[Annotated[bytes, Field(strict=True)], Annotated[str, Field(strict=True)]]]] = Field(default=None, validation_alias=AliasChoices("binaryData", "binary_data"), serialization_alias="binaryData", description="BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.") + binary_data: Optional[Dict[str, Union[Annotated[bytes, Field(strict=True)], Annotated[str, Field(strict=True)]]]] = Field(default=None, validation_alias=AliasChoices("binaryData", "binary_data"), serialization_alias="binaryData", description="BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in 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.") data: Optional[Dict[str, StrictStr]] = Field(default=None, description="Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.") immutable: Optional[StrictBool] = Field(default=None, description="Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.") kind: Optional[StrictStr] = Field(default=None, 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") diff --git a/kubernetes/client/models/v1_config_map_env_source.py b/kubernetes/client/models/v1_config_map_env_source.py index 2e410bf31b..85f7a607a3 100644 --- a/kubernetes/client/models/v1_config_map_env_source.py +++ b/kubernetes/client/models/v1_config_map_env_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -94,7 +94,7 @@ def _to_openapi_value(value: Any) -> Any: class V1ConfigMapEnvSource(BaseModel): """ - 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. + 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. Keys in the BinaryData field are not currently propagated to container env vars. Attributes: openapi_types (dict): The key is attribute name diff --git a/kubernetes/client/models/v1_config_map_key_selector.py b/kubernetes/client/models/v1_config_map_key_selector.py index 87a9badf48..d2d5d7f347 100644 --- a/kubernetes/client/models/v1_config_map_key_selector.py +++ b/kubernetes/client/models/v1_config_map_key_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -102,7 +102,7 @@ class V1ConfigMapKeySelector(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - key: StrictStr = Field(description="The key to select.") + key: StrictStr = Field(description="The key to select from the ConfigMap's Data field. Keys in the BinaryData field are not currently propagated to container env vars.") name: Optional[StrictStr] = Field(default=None, description="Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") optional: Optional[StrictBool] = Field(default=None, description="Specify whether the ConfigMap or its key must be defined") openapi_types: ClassVar[Dict[str, str]] = { diff --git a/kubernetes/client/models/v1_config_map_list.py b/kubernetes/client/models/v1_config_map_list.py index acd96e627f..ea4f65e2f8 100644 --- a/kubernetes/client/models/v1_config_map_list.py +++ b/kubernetes/client/models/v1_config_map_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_config_map_node_config_source.py b/kubernetes/client/models/v1_config_map_node_config_source.py index f89c7d3ac8..161a326492 100644 --- a/kubernetes/client/models/v1_config_map_node_config_source.py +++ b/kubernetes/client/models/v1_config_map_node_config_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_config_map_projection.py b/kubernetes/client/models/v1_config_map_projection.py index b744d794b6..ad2ca81aef 100644 --- a/kubernetes/client/models/v1_config_map_projection.py +++ b/kubernetes/client/models/v1_config_map_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_config_map_volume_source.py b/kubernetes/client/models/v1_config_map_volume_source.py index a0d5fd0445..3a2cf63e7d 100644 --- a/kubernetes/client/models/v1_config_map_volume_source.py +++ b/kubernetes/client/models/v1_config_map_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,11 +105,13 @@ class V1ConfigMapVolumeSource(BaseModel): and the value is json key in definition. """ # noqa: E501 default_mode: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("defaultMode", "default_mode"), serialization_alias="defaultMode", description="defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") + default_user: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("defaultUser", "default_user"), serialization_alias="defaultUser", description="defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") items: Optional[List[V1KeyToPath]] = Field(default=None, description="items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.") name: Optional[StrictStr] = Field(default=None, description="Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") optional: Optional[StrictBool] = Field(default=None, description="optional specify whether the ConfigMap or its keys must be defined") openapi_types: ClassVar[Dict[str, str]] = { "default_mode": "int", + "default_user": "int", "items": "List[V1KeyToPath]", "name": "str", "optional": "bool" @@ -117,11 +119,12 @@ class V1ConfigMapVolumeSource(BaseModel): attribute_map: ClassVar[Dict[str, str]] = { "default_mode": "defaultMode", + "default_user": "defaultUser", "items": "items", "name": "name", "optional": "optional" } - __properties: ClassVar[List[str]] = ["defaultMode", "items", "name", "optional"] + __properties: ClassVar[List[str]] = ["defaultMode", "defaultUser", "items", "name", "optional"] @classmethod def __preprocess_input_names( @@ -135,6 +138,9 @@ def __preprocess_input_names( if "defaultMode" not in obj and "default_mode" in obj: obj["defaultMode"] = obj["default_mode"] obj.pop("default_mode", None) + if "defaultUser" not in obj and "default_user" in obj: + obj["defaultUser"] = obj["default_user"] + obj.pop("default_user", None) return obj model_config = ConfigDict( @@ -185,6 +191,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { ("defaultMode" if serialize else "default_mode"): _to_legacy_value(getattr(self, "default_mode", None), serialize), + ("defaultUser" if serialize else "default_user"): _to_legacy_value(getattr(self, "default_user", None), serialize), ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), ("optional" if serialize else "optional"): _to_legacy_value(getattr(self, "optional", None), serialize), @@ -247,6 +254,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "defaultMode": obj.get("defaultMode"), + "defaultUser": obj.get("defaultUser"), "items": [V1KeyToPath.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "name": obj.get("name"), "optional": obj.get("optional") diff --git a/kubernetes/client/models/v1_container.py b/kubernetes/client/models/v1_container.py index 7f63f063bf..52e40a8ad0 100644 --- a/kubernetes/client/models/v1_container.py +++ b/kubernetes/client/models/v1_container.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_container_extended_resource_request.py b/kubernetes/client/models/v1_container_extended_resource_request.py index dc95d5088c..e427d9b7c7 100644 --- a/kubernetes/client/models/v1_container_extended_resource_request.py +++ b/kubernetes/client/models/v1_container_extended_resource_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_container_image.py b/kubernetes/client/models/v1_container_image.py index 4ffcf68bbd..bce4c50740 100644 --- a/kubernetes/client/models/v1_container_image.py +++ b/kubernetes/client/models/v1_container_image.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_container_port.py b/kubernetes/client/models/v1_container_port.py index e29737f433..f2585af183 100644 --- a/kubernetes/client/models/v1_container_port.py +++ b/kubernetes/client/models/v1_container_port.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_container_resize_policy.py b/kubernetes/client/models/v1_container_resize_policy.py index 3adbfca4eb..4322243648 100644 --- a/kubernetes/client/models/v1_container_resize_policy.py +++ b/kubernetes/client/models/v1_container_resize_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_container_restart_rule.py b/kubernetes/client/models/v1_container_restart_rule.py index 0d9ada915c..5ce11b48af 100644 --- a/kubernetes/client/models/v1_container_restart_rule.py +++ b/kubernetes/client/models/v1_container_restart_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_container_restart_rule_on_exit_codes.py b/kubernetes/client/models/v1_container_restart_rule_on_exit_codes.py index f07a261e84..f3556501c5 100644 --- a/kubernetes/client/models/v1_container_restart_rule_on_exit_codes.py +++ b/kubernetes/client/models/v1_container_restart_rule_on_exit_codes.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_container_state.py b/kubernetes/client/models/v1_container_state.py index 08a4a5018a..aab299d019 100644 --- a/kubernetes/client/models/v1_container_state.py +++ b/kubernetes/client/models/v1_container_state.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_container_state_running.py b/kubernetes/client/models/v1_container_state_running.py index 878baa2d46..b4632eb940 100644 --- a/kubernetes/client/models/v1_container_state_running.py +++ b/kubernetes/client/models/v1_container_state_running.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_container_state_terminated.py b/kubernetes/client/models/v1_container_state_terminated.py index 26aca6d17a..9f3e0141e6 100644 --- a/kubernetes/client/models/v1_container_state_terminated.py +++ b/kubernetes/client/models/v1_container_state_terminated.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_container_state_waiting.py b/kubernetes/client/models/v1_container_state_waiting.py index a57d9902b5..f6c6428a0a 100644 --- a/kubernetes/client/models/v1_container_state_waiting.py +++ b/kubernetes/client/models/v1_container_state_waiting.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_container_status.py b/kubernetes/client/models/v1_container_status.py index e2d10f260e..b48743001a 100644 --- a/kubernetes/client/models/v1_container_status.py +++ b/kubernetes/client/models/v1_container_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_container_user.py b/kubernetes/client/models/v1_container_user.py index c2b3ae3038..a21888cae2 100644 --- a/kubernetes/client/models/v1_container_user.py +++ b/kubernetes/client/models/v1_container_user.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_controller_revision.py b/kubernetes/client/models/v1_controller_revision.py index be50065183..ca0c507d73 100644 --- a/kubernetes/client/models/v1_controller_revision.py +++ b/kubernetes/client/models/v1_controller_revision.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,10 +105,10 @@ class V1ControllerRevision(BaseModel): and the value is json key in definition. """ # noqa: E501 api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - data: Optional[Dict[str, Any]] = Field(default=None, description="Data is the serialized representation of the state.") + data: Dict[str, Any] = Field(description="Data is the serialized representation of the state.") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - revision: StrictInt = Field(description="Revision indicates the revision of the state represented by Data.") + revision: Optional[StrictInt] = Field(default=None, description="Revision indicates the revision of the state represented by Data.") openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "data": "object", diff --git a/kubernetes/client/models/v1_controller_revision_list.py b/kubernetes/client/models/v1_controller_revision_list.py index 3c8b60bcf3..7d8be62fa5 100644 --- a/kubernetes/client/models/v1_controller_revision_list.py +++ b/kubernetes/client/models/v1_controller_revision_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_counter.py b/kubernetes/client/models/v1_counter.py index 96fbfe117b..e5b245bcb4 100644 --- a/kubernetes/client/models/v1_counter.py +++ b/kubernetes/client/models/v1_counter.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_counter_set.py b/kubernetes/client/models/v1_counter_set.py index 9b0352e8e8..ab7795d7a7 100644 --- a/kubernetes/client/models/v1_counter_set.py +++ b/kubernetes/client/models/v1_counter_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_cron_job.py b/kubernetes/client/models/v1_cron_job.py index 856a046b17..438cbab02c 100644 --- a/kubernetes/client/models/v1_cron_job.py +++ b/kubernetes/client/models/v1_cron_job.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_cron_job_list.py b/kubernetes/client/models/v1_cron_job_list.py index 5373bc3613..7c5f92b9fc 100644 --- a/kubernetes/client/models/v1_cron_job_list.py +++ b/kubernetes/client/models/v1_cron_job_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_cron_job_spec.py b/kubernetes/client/models/v1_cron_job_spec.py index 6afb14f478..481619529f 100644 --- a/kubernetes/client/models/v1_cron_job_spec.py +++ b/kubernetes/client/models/v1_cron_job_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_cron_job_status.py b/kubernetes/client/models/v1_cron_job_status.py index 76e834dbdc..be22e9e008 100644 --- a/kubernetes/client/models/v1_cron_job_status.py +++ b/kubernetes/client/models/v1_cron_job_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_cross_version_object_reference.py b/kubernetes/client/models/v1_cross_version_object_reference.py index 0d41052af8..3977330a74 100644 --- a/kubernetes/client/models/v1_cross_version_object_reference.py +++ b/kubernetes/client/models/v1_cross_version_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_csi_driver.py b/kubernetes/client/models/v1_csi_driver.py index d35ab949c8..eaa1d32525 100644 --- a/kubernetes/client/models/v1_csi_driver.py +++ b/kubernetes/client/models/v1_csi_driver.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_csi_driver_list.py b/kubernetes/client/models/v1_csi_driver_list.py index eca921fcef..fc39b3a030 100644 --- a/kubernetes/client/models/v1_csi_driver_list.py +++ b/kubernetes/client/models/v1_csi_driver_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_csi_driver_spec.py b/kubernetes/client/models/v1_csi_driver_spec.py index 91aa46e35a..9e0145b783 100644 --- a/kubernetes/client/models/v1_csi_driver_spec.py +++ b/kubernetes/client/models/v1_csi_driver_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,7 +108,7 @@ class V1CSIDriverSpec(BaseModel): fs_group_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("fsGroupPolicy", "fs_group_policy"), serialization_alias="fsGroupPolicy", description="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.") node_allocatable_update_period_seconds: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("nodeAllocatableUpdatePeriodSeconds", "node_allocatable_update_period_seconds"), serialization_alias="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. This feature requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable.") pod_info_on_mount: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("podInfoOnMount", "pod_info_on_mount"), serialization_alias="podInfoOnMount", 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. 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.") - prevent_pod_scheduling_if_missing: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("preventPodSchedulingIfMissing", "prevent_pod_scheduling_if_missing"), serialization_alias="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\".") + prevent_pod_scheduling_if_missing: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("preventPodSchedulingIfMissing", "prevent_pod_scheduling_if_missing"), serialization_alias="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 a beta feature and requires the VolumeLimitScaling feature gate to be enabled. Default is \"false\".") requires_republish: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("requiresRepublish", "requires_republish"), serialization_alias="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. 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.") se_linux_mount: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("seLinuxMount", "se_linux_mount"), serialization_alias="seLinuxMount", description="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\".") service_account_token_in_secrets: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("serviceAccountTokenInSecrets", "service_account_token_in_secrets"), serialization_alias="serviceAccountTokenInSecrets", description="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.") diff --git a/kubernetes/client/models/v1_csi_node.py b/kubernetes/client/models/v1_csi_node.py index ca36fa25b9..f172fea64d 100644 --- a/kubernetes/client/models/v1_csi_node.py +++ b/kubernetes/client/models/v1_csi_node.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1_csi_node_spec import V1CSINodeSpec +from kubernetes.client.models.v1_csi_node_status import V1CSINodeStatus from kubernetes.client.models.v1_object_meta import V1ObjectMeta from typing import Optional, Set from typing_extensions import Self @@ -109,20 +110,23 @@ class V1CSINode(BaseModel): kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None spec: V1CSINodeSpec + status: Optional[V1CSINodeStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", "metadata": "V1ObjectMeta", - "spec": "V1CSINodeSpec" + "spec": "V1CSINodeSpec", + "status": "V1CSINodeStatus" } attribute_map: ClassVar[Dict[str, str]] = { "api_version": "apiVersion", "kind": "kind", "metadata": "metadata", - "spec": "spec" + "spec": "spec", + "status": "status" } - __properties: ClassVar[List[str]] = ["apiVersion", "kind", "metadata", "spec"] + __properties: ClassVar[List[str]] = ["apiVersion", "kind", "metadata", "spec", "status"] @classmethod def __preprocess_input_names( @@ -189,6 +193,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), ("spec" if serialize else "spec"): _to_legacy_value(getattr(self, "spec", None), serialize), + ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -215,6 +220,9 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of spec if self.spec: _dict['spec'] = _to_openapi_value(self.spec) + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = _to_openapi_value(self.status) return _dict setattr( @@ -250,6 +258,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "apiVersion": obj.get("apiVersion"), "kind": obj.get("kind"), "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, - "spec": V1CSINodeSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None + "spec": V1CSINodeSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, + "status": V1CSINodeStatus.from_dict(obj["status"]) if obj.get("status") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1_csi_node_driver.py b/kubernetes/client/models/v1_csi_node_driver.py index 0944414802..0cdae4631d 100644 --- a/kubernetes/client/models/v1_csi_node_driver.py +++ b/kubernetes/client/models/v1_csi_node_driver.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_csi_node_list.py b/kubernetes/client/models/v1_csi_node_list.py index 01368a228c..8a1ad68298 100644 --- a/kubernetes/client/models/v1_csi_node_list.py +++ b/kubernetes/client/models/v1_csi_node_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_csi_node_spec.py b/kubernetes/client/models/v1_csi_node_spec.py index 5021210df6..c51bbb6ffb 100644 --- a/kubernetes/client/models/v1_csi_node_spec.py +++ b/kubernetes/client/models/v1_csi_node_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_csi_node_status.py b/kubernetes/client/models/v1_csi_node_status.py new file mode 100644 index 0000000000..43831930a4 --- /dev/null +++ b/kubernetes/client/models/v1_csi_node_status.py @@ -0,0 +1,239 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_storage_health import V1StorageHealth +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1CSINodeStatus(BaseModel): + """ + CSINodeStatus contains health and status information for storage on a node. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + storage_health: Optional[List[V1StorageHealth]] = Field(default=None, validation_alias=AliasChoices("storageHealth", "storage_health"), serialization_alias="storageHealth", description="storageHealth contains backend health reports for CSI drivers registered on the node.") + openapi_types: ClassVar[Dict[str, str]] = { + "storage_health": "List[V1StorageHealth]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "storage_health": "storageHealth" + } + __properties: ClassVar[List[str]] = ["storageHealth"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "storageHealth" not in obj and "storage_health" in obj: + obj["storageHealth"] = obj["storage_health"] + obj.pop("storage_health", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1CSINodeStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1CSINodeStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1CSINodeStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("storageHealth" if serialize else "storage_health"): _to_legacy_value(getattr(self, "storage_health", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in storage_health (list) + _items = [] + if self.storage_health: + for _item_storage_health in self.storage_health: + _items.append(_to_openapi_value(_item_storage_health) if _item_storage_health is not None else None) + _dict['storageHealth'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1CSINodeStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "storageHealth": [V1StorageHealth.from_dict(_item) for _item in obj["storageHealth"]] if obj.get("storageHealth") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1_csi_persistent_volume_source.py b/kubernetes/client/models/v1_csi_persistent_volume_source.py index 8223505222..b7ee916304 100644 --- a/kubernetes/client/models/v1_csi_persistent_volume_source.py +++ b/kubernetes/client/models/v1_csi_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_csi_storage_capacity.py b/kubernetes/client/models/v1_csi_storage_capacity.py index d8bdbf52c6..3760949647 100644 --- a/kubernetes/client/models/v1_csi_storage_capacity.py +++ b/kubernetes/client/models/v1_csi_storage_capacity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_csi_storage_capacity_list.py b/kubernetes/client/models/v1_csi_storage_capacity_list.py index 9368818aee..0b2f705d27 100644 --- a/kubernetes/client/models/v1_csi_storage_capacity_list.py +++ b/kubernetes/client/models/v1_csi_storage_capacity_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_csi_volume_source.py b/kubernetes/client/models/v1_csi_volume_source.py index ecffbf9eaa..c3a9592bf6 100644 --- a/kubernetes/client/models/v1_csi_volume_source.py +++ b/kubernetes/client/models/v1_csi_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_custom_resource_column_definition.py b/kubernetes/client/models/v1_custom_resource_column_definition.py index 028bbc94b4..31a5c8e66d 100644 --- a/kubernetes/client/models/v1_custom_resource_column_definition.py +++ b/kubernetes/client/models/v1_custom_resource_column_definition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_custom_resource_conversion.py b/kubernetes/client/models/v1_custom_resource_conversion.py index fc73224830..96afb96938 100644 --- a/kubernetes/client/models/v1_custom_resource_conversion.py +++ b/kubernetes/client/models/v1_custom_resource_conversion.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_custom_resource_definition.py b/kubernetes/client/models/v1_custom_resource_definition.py index 2cedb89c40..ab39f9d1a6 100644 --- a/kubernetes/client/models/v1_custom_resource_definition.py +++ b/kubernetes/client/models/v1_custom_resource_definition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_custom_resource_definition_condition.py b/kubernetes/client/models/v1_custom_resource_definition_condition.py index b3ff71b97e..0f84718ee5 100644 --- a/kubernetes/client/models/v1_custom_resource_definition_condition.py +++ b/kubernetes/client/models/v1_custom_resource_definition_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_custom_resource_definition_list.py b/kubernetes/client/models/v1_custom_resource_definition_list.py index 059cadcb36..bef02b9904 100644 --- a/kubernetes/client/models/v1_custom_resource_definition_list.py +++ b/kubernetes/client/models/v1_custom_resource_definition_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_custom_resource_definition_names.py b/kubernetes/client/models/v1_custom_resource_definition_names.py index 027b34f9f9..9ec73f6233 100644 --- a/kubernetes/client/models/v1_custom_resource_definition_names.py +++ b/kubernetes/client/models/v1_custom_resource_definition_names.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_custom_resource_definition_spec.py b/kubernetes/client/models/v1_custom_resource_definition_spec.py index a564641d37..5fc722c74a 100644 --- a/kubernetes/client/models/v1_custom_resource_definition_spec.py +++ b/kubernetes/client/models/v1_custom_resource_definition_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_custom_resource_definition_status.py b/kubernetes/client/models/v1_custom_resource_definition_status.py index 7cf7e9bd8e..866805932b 100644 --- a/kubernetes/client/models/v1_custom_resource_definition_status.py +++ b/kubernetes/client/models/v1_custom_resource_definition_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_custom_resource_definition_version.py b/kubernetes/client/models/v1_custom_resource_definition_version.py index c24c97ba78..96c565d494 100644 --- a/kubernetes/client/models/v1_custom_resource_definition_version.py +++ b/kubernetes/client/models/v1_custom_resource_definition_version.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_custom_resource_subresource_scale.py b/kubernetes/client/models/v1_custom_resource_subresource_scale.py index 2fbe7f6e69..a6c0e1fea8 100644 --- a/kubernetes/client/models/v1_custom_resource_subresource_scale.py +++ b/kubernetes/client/models/v1_custom_resource_subresource_scale.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_custom_resource_subresources.py b/kubernetes/client/models/v1_custom_resource_subresources.py index 0ff4a3f774..c9a48c2879 100644 --- a/kubernetes/client/models/v1_custom_resource_subresources.py +++ b/kubernetes/client/models/v1_custom_resource_subresources.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_custom_resource_validation.py b/kubernetes/client/models/v1_custom_resource_validation.py index 800283411e..63ebefbe55 100644 --- a/kubernetes/client/models/v1_custom_resource_validation.py +++ b/kubernetes/client/models/v1_custom_resource_validation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_daemon_endpoint.py b/kubernetes/client/models/v1_daemon_endpoint.py index 17655edf81..e99ce7dd38 100644 --- a/kubernetes/client/models/v1_daemon_endpoint.py +++ b/kubernetes/client/models/v1_daemon_endpoint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_daemon_set.py b/kubernetes/client/models/v1_daemon_set.py index 53cbe3338a..f55b329f97 100644 --- a/kubernetes/client/models/v1_daemon_set.py +++ b/kubernetes/client/models/v1_daemon_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,7 +109,7 @@ class V1DaemonSet(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: Optional[V1DaemonSetSpec] = None + spec: V1DaemonSetSpec status: Optional[V1DaemonSetStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", diff --git a/kubernetes/client/models/v1_daemon_set_condition.py b/kubernetes/client/models/v1_daemon_set_condition.py index cc7ab9087a..3c68a8a691 100644 --- a/kubernetes/client/models/v1_daemon_set_condition.py +++ b/kubernetes/client/models/v1_daemon_set_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -107,8 +107,8 @@ class V1DaemonSetCondition(BaseModel): last_transition_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastTransitionTime", "last_transition_time"), serialization_alias="lastTransitionTime", description="Last time the condition transitioned from one status to another.") message: Optional[StrictStr] = Field(default=None, description="A human readable message indicating details about the transition.") reason: Optional[StrictStr] = Field(default=None, description="The reason for the condition's last transition.") - status: StrictStr = Field(description="Status of the condition, one of True, False, Unknown.") - type: StrictStr = Field(description="Type of DaemonSet condition.") + status: Optional[StrictStr] = Field(default=None, description="Status of the condition, one of True, False, Unknown.") + type: Optional[StrictStr] = Field(default=None, description="Type of DaemonSet condition.") openapi_types: ClassVar[Dict[str, str]] = { "last_transition_time": "datetime", "message": "str", diff --git a/kubernetes/client/models/v1_daemon_set_list.py b/kubernetes/client/models/v1_daemon_set_list.py index b4e3280a98..4101050084 100644 --- a/kubernetes/client/models/v1_daemon_set_list.py +++ b/kubernetes/client/models/v1_daemon_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_daemon_set_spec.py b/kubernetes/client/models/v1_daemon_set_spec.py index a3dc08446e..e4c6b6c464 100644 --- a/kubernetes/client/models/v1_daemon_set_spec.py +++ b/kubernetes/client/models/v1_daemon_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_daemon_set_status.py b/kubernetes/client/models/v1_daemon_set_status.py index 4e47ef64d5..2afb0786cc 100644 --- a/kubernetes/client/models/v1_daemon_set_status.py +++ b/kubernetes/client/models/v1_daemon_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_daemon_set_update_strategy.py b/kubernetes/client/models/v1_daemon_set_update_strategy.py index ce6110f603..fa4fb3c113 100644 --- a/kubernetes/client/models/v1_daemon_set_update_strategy.py +++ b/kubernetes/client/models/v1_daemon_set_update_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_delete_options.py b/kubernetes/client/models/v1_delete_options.py index 4e4266bc7d..ea5949b2a5 100644 --- a/kubernetes/client/models/v1_delete_options.py +++ b/kubernetes/client/models/v1_delete_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_deployment.py b/kubernetes/client/models/v1_deployment.py index 99cdfe0a5c..e0a3cee7d0 100644 --- a/kubernetes/client/models/v1_deployment.py +++ b/kubernetes/client/models/v1_deployment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,7 +109,7 @@ class V1Deployment(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: Optional[V1DeploymentSpec] = None + spec: V1DeploymentSpec status: Optional[V1DeploymentStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", diff --git a/kubernetes/client/models/v1_deployment_condition.py b/kubernetes/client/models/v1_deployment_condition.py index b748b7625a..6e3a80ea3c 100644 --- a/kubernetes/client/models/v1_deployment_condition.py +++ b/kubernetes/client/models/v1_deployment_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,8 +108,8 @@ class V1DeploymentCondition(BaseModel): last_update_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastUpdateTime", "last_update_time"), serialization_alias="lastUpdateTime", description="The last time this condition was updated.") message: Optional[StrictStr] = Field(default=None, description="A human readable message indicating details about the transition.") reason: Optional[StrictStr] = Field(default=None, description="The reason for the condition's last transition.") - status: StrictStr = Field(description="Status of the condition, one of True, False, Unknown.") - type: StrictStr = Field(description="Type of deployment condition.") + status: Optional[StrictStr] = Field(default=None, description="Status of the condition, one of True, False, Unknown.") + type: Optional[StrictStr] = Field(default=None, description="Type of deployment condition.") openapi_types: ClassVar[Dict[str, str]] = { "last_transition_time": "datetime", "last_update_time": "datetime", diff --git a/kubernetes/client/models/v1_deployment_list.py b/kubernetes/client/models/v1_deployment_list.py index 4ca21cd636..e172781fc0 100644 --- a/kubernetes/client/models/v1_deployment_list.py +++ b/kubernetes/client/models/v1_deployment_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_deployment_spec.py b/kubernetes/client/models/v1_deployment_spec.py index 1367d21633..0c1a7e250b 100644 --- a/kubernetes/client/models/v1_deployment_spec.py +++ b/kubernetes/client/models/v1_deployment_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_deployment_status.py b/kubernetes/client/models/v1_deployment_status.py index eee120a7ee..284a2d43ec 100644 --- a/kubernetes/client/models/v1_deployment_status.py +++ b/kubernetes/client/models/v1_deployment_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_deployment_strategy.py b/kubernetes/client/models/v1_deployment_strategy.py index 7410b95dab..0886b6202e 100644 --- a/kubernetes/client/models/v1_deployment_strategy.py +++ b/kubernetes/client/models/v1_deployment_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_device.py b/kubernetes/client/models/v1_device.py index 549c521d51..7da6f503d2 100644 --- a/kubernetes/client/models/v1_device.py +++ b/kubernetes/client/models/v1_device.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -24,7 +24,7 @@ from kubernetes.client.models.v1_device_capacity import V1DeviceCapacity from kubernetes.client.models.v1_device_counter_consumption import V1DeviceCounterConsumption from kubernetes.client.models.v1_device_taint import V1DeviceTaint -from kubernetes.client.models.v1_node_allocatable_resource_mapping import V1NodeAllocatableResourceMapping +from kubernetes.client.models.v1_node_allocatable_resource import V1NodeAllocatableResource from kubernetes.client.models.v1_node_selector import V1NodeSelector from typing import Optional, Set from typing_extensions import Self @@ -118,7 +118,7 @@ class V1Device(BaseModel): capacity: Optional[Dict[str, V1DeviceCapacity]] = Field(default=None, description="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.") consumes_counters: Optional[List[V1DeviceCounterConsumption]] = Field(default=None, validation_alias=AliasChoices("consumesCounters", "consumes_counters"), serialization_alias="consumesCounters", description="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.") name: StrictStr = Field(description="Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.") - node_allocatable_resource_mappings: Optional[Dict[str, V1NodeAllocatableResourceMapping]] = Field(default=None, validation_alias=AliasChoices("nodeAllocatableResourceMappings", "node_allocatable_resource_mappings"), serialization_alias="nodeAllocatableResourceMappings", 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.") + node_allocatable_resources: Optional[Dict[str, V1NodeAllocatableResource]] = Field(default=None, validation_alias=AliasChoices("nodeAllocatableResources", "node_allocatable_resources"), serialization_alias="nodeAllocatableResources", description="NodeAllocatableResources 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.") node_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("nodeName", "node_name"), serialization_alias="nodeName", description="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.") node_selector: Optional[V1NodeSelector] = Field(default=None, validation_alias=AliasChoices("nodeSelector", "node_selector"), serialization_alias="nodeSelector") taints: Optional[List[V1DeviceTaint]] = Field(default=None, description="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.") @@ -132,7 +132,7 @@ class V1Device(BaseModel): "capacity": "Dict[str, V1DeviceCapacity]", "consumes_counters": "List[V1DeviceCounterConsumption]", "name": "str", - "node_allocatable_resource_mappings": "Dict[str, V1NodeAllocatableResourceMapping]", + "node_allocatable_resources": "Dict[str, V1NodeAllocatableResource]", "node_name": "str", "node_selector": "V1NodeSelector", "taints": "List[V1DeviceTaint]" @@ -148,12 +148,12 @@ class V1Device(BaseModel): "capacity": "capacity", "consumes_counters": "consumesCounters", "name": "name", - "node_allocatable_resource_mappings": "nodeAllocatableResourceMappings", + "node_allocatable_resources": "nodeAllocatableResources", "node_name": "nodeName", "node_selector": "nodeSelector", "taints": "taints" } - __properties: ClassVar[List[str]] = ["allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "name", "nodeAllocatableResourceMappings", "nodeName", "nodeSelector", "taints"] + __properties: ClassVar[List[str]] = ["allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "name", "nodeAllocatableResources", "nodeName", "nodeSelector", "taints"] @classmethod def __preprocess_input_names( @@ -182,9 +182,9 @@ def __preprocess_input_names( if "consumesCounters" not in obj and "consumes_counters" in obj: obj["consumesCounters"] = obj["consumes_counters"] obj.pop("consumes_counters", None) - if "nodeAllocatableResourceMappings" not in obj and "node_allocatable_resource_mappings" in obj: - obj["nodeAllocatableResourceMappings"] = obj["node_allocatable_resource_mappings"] - obj.pop("node_allocatable_resource_mappings", None) + if "nodeAllocatableResources" not in obj and "node_allocatable_resources" in obj: + obj["nodeAllocatableResources"] = obj["node_allocatable_resources"] + obj.pop("node_allocatable_resources", None) if "nodeName" not in obj and "node_name" in obj: obj["nodeName"] = obj["node_name"] obj.pop("node_name", None) @@ -249,7 +249,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("consumesCounters" if serialize else "consumes_counters"): _to_legacy_value(getattr(self, "consumes_counters", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), - ("nodeAllocatableResourceMappings" if serialize else "node_allocatable_resource_mappings"): _to_legacy_value(getattr(self, "node_allocatable_resource_mappings", None), serialize), + ("nodeAllocatableResources" if serialize else "node_allocatable_resources"): _to_legacy_value(getattr(self, "node_allocatable_resources", None), serialize), ("nodeName" if serialize else "node_name"): _to_legacy_value(getattr(self, "node_name", None), serialize), ("nodeSelector" if serialize else "node_selector"): _to_legacy_value(getattr(self, "node_selector", None), serialize), ("taints" if serialize else "taints"): _to_legacy_value(getattr(self, "taints", None), serialize), @@ -291,12 +291,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: for _item_consumes_counters in self.consumes_counters: _items.append(_to_openapi_value(_item_consumes_counters) if _item_consumes_counters is not None else None) _dict['consumesCounters'] = _items - # override the default output from pydantic by calling `to_dict()` of each value in node_allocatable_resource_mappings (dict) + # override the default output from pydantic by calling `to_dict()` of each value in node_allocatable_resources (dict) _field_dict = {} - if self.node_allocatable_resource_mappings: - for _key_node_allocatable_resource_mappings in self.node_allocatable_resource_mappings: - _field_dict[_key_node_allocatable_resource_mappings] = _to_openapi_value(self.node_allocatable_resource_mappings[_key_node_allocatable_resource_mappings]) if self.node_allocatable_resource_mappings[_key_node_allocatable_resource_mappings] is not None else None - _dict['nodeAllocatableResourceMappings'] = _field_dict + if self.node_allocatable_resources: + for _key_node_allocatable_resources in self.node_allocatable_resources: + _field_dict[_key_node_allocatable_resources] = _to_openapi_value(self.node_allocatable_resources[_key_node_allocatable_resources]) if self.node_allocatable_resources[_key_node_allocatable_resources] is not None else None + _dict['nodeAllocatableResources'] = _field_dict # override the default output from pydantic by calling `to_dict()` of node_selector if self.node_selector: _dict['nodeSelector'] = _to_openapi_value(self.node_selector) @@ -357,11 +357,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: else None, "consumesCounters": [V1DeviceCounterConsumption.from_dict(_item) for _item in obj["consumesCounters"]] if obj.get("consumesCounters") is not None else None, "name": obj.get("name"), - "nodeAllocatableResourceMappings": dict( - (_k, V1NodeAllocatableResourceMapping.from_dict(_v)) - for _k, _v in obj["nodeAllocatableResourceMappings"].items() + "nodeAllocatableResources": dict( + (_k, V1NodeAllocatableResource.from_dict(_v)) + for _k, _v in obj["nodeAllocatableResources"].items() ) - if obj.get("nodeAllocatableResourceMappings") is not None + if obj.get("nodeAllocatableResources") is not None else None, "nodeName": obj.get("nodeName"), "nodeSelector": V1NodeSelector.from_dict(obj["nodeSelector"]) if obj.get("nodeSelector") is not None else None, diff --git a/kubernetes/client/models/v1_device_allocation_configuration.py b/kubernetes/client/models/v1_device_allocation_configuration.py index 809df7bb96..73ac82e694 100644 --- a/kubernetes/client/models/v1_device_allocation_configuration.py +++ b/kubernetes/client/models/v1_device_allocation_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_device_allocation_result.py b/kubernetes/client/models/v1_device_allocation_result.py index 379254dccb..03e8b1f80e 100644 --- a/kubernetes/client/models/v1_device_allocation_result.py +++ b/kubernetes/client/models/v1_device_allocation_result.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_device_attribute.py b/kubernetes/client/models/v1_device_attribute.py index fc823f93f0..61e5fc669c 100644 --- a/kubernetes/client/models/v1_device_attribute.py +++ b/kubernetes/client/models/v1_device_attribute.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_device_capacity.py b/kubernetes/client/models/v1_device_capacity.py index 9380e1fd97..db7bdd363e 100644 --- a/kubernetes/client/models/v1_device_capacity.py +++ b/kubernetes/client/models/v1_device_capacity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_device_claim.py b/kubernetes/client/models/v1_device_claim.py index 55574f3a1d..6dcb29f15e 100644 --- a/kubernetes/client/models/v1_device_claim.py +++ b/kubernetes/client/models/v1_device_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_device_claim_configuration.py b/kubernetes/client/models/v1_device_claim_configuration.py index 836218176d..52d1894be8 100644 --- a/kubernetes/client/models/v1_device_claim_configuration.py +++ b/kubernetes/client/models/v1_device_claim_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_device_class.py b/kubernetes/client/models/v1_device_class.py index ca02e3b46f..3b00e3fcce 100644 --- a/kubernetes/client/models/v1_device_class.py +++ b/kubernetes/client/models/v1_device_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,7 +108,7 @@ class V1DeviceClass(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1DeviceClassSpec + spec: Optional[V1DeviceClassSpec] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", diff --git a/kubernetes/client/models/v1_device_class_configuration.py b/kubernetes/client/models/v1_device_class_configuration.py index 15a63b98f4..14d3daae3c 100644 --- a/kubernetes/client/models/v1_device_class_configuration.py +++ b/kubernetes/client/models/v1_device_class_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_device_class_list.py b/kubernetes/client/models/v1_device_class_list.py index f3c7a6d762..26e0201a8b 100644 --- a/kubernetes/client/models/v1_device_class_list.py +++ b/kubernetes/client/models/v1_device_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_device_class_spec.py b/kubernetes/client/models/v1_device_class_spec.py index 5208d8a61b..c169a8cc6d 100644 --- a/kubernetes/client/models/v1_device_class_spec.py +++ b/kubernetes/client/models/v1_device_class_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -106,7 +106,7 @@ class V1DeviceClassSpec(BaseModel): and the value is json key in definition. """ # noqa: E501 config: Optional[List[V1DeviceClassConfiguration]] = Field(default=None, description="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.") - extended_resource_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("extendedResourceName", "extended_resource_name"), serialization_alias="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. This is a beta field.") + extended_resource_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("extendedResourceName", "extended_resource_name"), serialization_alias="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.") selectors: Optional[List[V1DeviceSelector]] = Field(default=None, description="Each selector must be satisfied by a device which is claimed via this class.") openapi_types: ClassVar[Dict[str, str]] = { "config": "List[V1DeviceClassConfiguration]", diff --git a/kubernetes/client/models/v1_device_constraint.py b/kubernetes/client/models/v1_device_constraint.py index ea0688f1bf..c21dcf4725 100644 --- a/kubernetes/client/models/v1_device_constraint.py +++ b/kubernetes/client/models/v1_device_constraint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_device_counter_consumption.py b/kubernetes/client/models/v1_device_counter_consumption.py index 8d3c621c92..cbe59d7f57 100644 --- a/kubernetes/client/models/v1_device_counter_consumption.py +++ b/kubernetes/client/models/v1_device_counter_consumption.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, cast as _cast +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1_counter import V1Counter from typing import Optional, Set from typing_extensions import Self @@ -104,18 +104,21 @@ class V1DeviceCounterConsumption(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 + compatibility_groups: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("compatibilityGroups", "compatibility_groups"), serialization_alias="compatibilityGroups", description="CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique.") counter_set: StrictStr = Field(validation_alias=AliasChoices("counterSet", "counter_set"), serialization_alias="counterSet", description="CounterSet is the name of the set from which the counters defined will be consumed.") counters: Dict[str, V1Counter] = Field(description="Counters defines the counters that will be consumed by the device. The maximum number of counters is 32.") openapi_types: ClassVar[Dict[str, str]] = { + "compatibility_groups": "List[str]", "counter_set": "str", "counters": "Dict[str, V1Counter]" } attribute_map: ClassVar[Dict[str, str]] = { + "compatibility_groups": "compatibilityGroups", "counter_set": "counterSet", "counters": "counters" } - __properties: ClassVar[List[str]] = ["counterSet", "counters"] + __properties: ClassVar[List[str]] = ["compatibilityGroups", "counterSet", "counters"] @classmethod def __preprocess_input_names( @@ -126,6 +129,9 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) + if "compatibilityGroups" not in obj and "compatibility_groups" in obj: + obj["compatibilityGroups"] = obj["compatibility_groups"] + obj.pop("compatibility_groups", None) if "counterSet" not in obj and "counter_set" in obj: obj["counterSet"] = obj["counter_set"] obj.pop("counter_set", None) @@ -178,6 +184,7 @@ def from_json(cls, json_str: str) -> Optional[Self]: def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { + ("compatibilityGroups" if serialize else "compatibility_groups"): _to_legacy_value(getattr(self, "compatibility_groups", None), serialize), ("counterSet" if serialize else "counter_set"): _to_legacy_value(getattr(self, "counter_set", None), serialize), ("counters" if serialize else "counters"): _to_legacy_value(getattr(self, "counters", None), serialize), } @@ -238,6 +245,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ + "compatibilityGroups": obj.get("compatibilityGroups"), "counterSet": obj.get("counterSet"), "counters": dict( (_k, V1Counter.from_dict(_v)) diff --git a/kubernetes/client/models/v1_device_derived_attribute.py b/kubernetes/client/models/v1_device_derived_attribute.py new file mode 100644 index 0000000000..46309113d9 --- /dev/null +++ b/kubernetes/client/models/v1_device_derived_attribute.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1DeviceDerivedAttribute(BaseModel): + """ + DeviceDerivedAttribute defines a derived attribute computed via CEL. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + expression: StrictStr = Field(description="Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.") + name: StrictStr = Field(description="Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint.") + openapi_types: ClassVar[Dict[str, str]] = { + "expression": "str", + "name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "expression": "expression", + "name": "name" + } + __properties: ClassVar[List[str]] = ["expression", "name"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1DeviceDerivedAttribute): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1DeviceDerivedAttribute): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1DeviceDerivedAttribute from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("expression" if serialize else "expression"): _to_legacy_value(getattr(self, "expression", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1DeviceDerivedAttribute from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "expression": obj.get("expression"), + "name": obj.get("name") + }) + return _obj diff --git a/kubernetes/client/models/v1_device_request.py b/kubernetes/client/models/v1_device_request.py index 71846a0fd3..b6f4c65635 100644 --- a/kubernetes/client/models/v1_device_request.py +++ b/kubernetes/client/models/v1_device_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_device_request_allocation_result.py b/kubernetes/client/models/v1_device_request_allocation_result.py index 785945c804..4adc50bbb9 100644 --- a/kubernetes/client/models/v1_device_request_allocation_result.py +++ b/kubernetes/client/models/v1_device_request_allocation_result.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -113,6 +113,7 @@ class V1DeviceRequestAllocationResult(BaseModel): pool: StrictStr = Field(description="This name together with the driver name and the device name field identify which device was allocated (`//`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.") request: StrictStr = Field(description="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
/. Multiple devices may have been allocated per request.") share_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("shareID", "share_id"), serialization_alias="shareID", description="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.") + skip_node_operations: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("skipNodeOperations", "skip_node_operations"), serialization_alias="skipNodeOperations", description="SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.") tolerations: Optional[List[V1DeviceToleration]] = Field(default=None, description="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.") openapi_types: ClassVar[Dict[str, str]] = { "admin_access": "bool", @@ -124,6 +125,7 @@ class V1DeviceRequestAllocationResult(BaseModel): "pool": "str", "request": "str", "share_id": "str", + "skip_node_operations": "List[str]", "tolerations": "List[V1DeviceToleration]" } @@ -137,9 +139,10 @@ class V1DeviceRequestAllocationResult(BaseModel): "pool": "pool", "request": "request", "share_id": "shareID", + "skip_node_operations": "skipNodeOperations", "tolerations": "tolerations" } - __properties: ClassVar[List[str]] = ["adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "tolerations"] + __properties: ClassVar[List[str]] = ["adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "skipNodeOperations", "tolerations"] @classmethod def __preprocess_input_names( @@ -165,6 +168,9 @@ def __preprocess_input_names( if "shareID" not in obj and "share_id" in obj: obj["shareID"] = obj["share_id"] obj.pop("share_id", None) + if "skipNodeOperations" not in obj and "skip_node_operations" in obj: + obj["skipNodeOperations"] = obj["skip_node_operations"] + obj.pop("skip_node_operations", None) return obj model_config = ConfigDict( @@ -223,6 +229,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("pool" if serialize else "pool"): _to_legacy_value(getattr(self, "pool", None), serialize), ("request" if serialize else "request"): _to_legacy_value(getattr(self, "request", None), serialize), ("shareID" if serialize else "share_id"): _to_legacy_value(getattr(self, "share_id", None), serialize), + ("skipNodeOperations" if serialize else "skip_node_operations"): _to_legacy_value(getattr(self, "skip_node_operations", None), serialize), ("tolerations" if serialize else "tolerations"): _to_legacy_value(getattr(self, "tolerations", None), serialize), } @@ -291,6 +298,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "pool": obj.get("pool"), "request": obj.get("request"), "shareID": obj.get("shareID"), + "skipNodeOperations": obj.get("skipNodeOperations"), "tolerations": [V1DeviceToleration.from_dict(_item) for _item in obj["tolerations"]] if obj.get("tolerations") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1_device_selector.py b/kubernetes/client/models/v1_device_selector.py index c2ad589a00..90c0c6567b 100644 --- a/kubernetes/client/models/v1_device_selector.py +++ b/kubernetes/client/models/v1_device_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_device_sub_request.py b/kubernetes/client/models/v1_device_sub_request.py index 8608e200c5..1203488b23 100644 --- a/kubernetes/client/models/v1_device_sub_request.py +++ b/kubernetes/client/models/v1_device_sub_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1_capacity_requirements import V1CapacityRequirements +from kubernetes.client.models.v1_device_derived_attribute import V1DeviceDerivedAttribute from kubernetes.client.models.v1_device_selector import V1DeviceSelector from kubernetes.client.models.v1_device_toleration import V1DeviceToleration from typing import Optional, Set @@ -109,6 +110,7 @@ class V1DeviceSubRequest(BaseModel): allocation_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("allocationMode", "allocation_mode"), serialization_alias="allocationMode", description="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.") capacity: Optional[V1CapacityRequirements] = None count: Optional[StrictInt] = Field(default=None, description="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.") + derived_attributes: Optional[List[V1DeviceDerivedAttribute]] = Field(default=None, validation_alias=AliasChoices("derivedAttributes", "derived_attributes"), serialization_alias="derivedAttributes", description="DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate.") device_class_name: StrictStr = Field(validation_alias=AliasChoices("deviceClassName", "device_class_name"), serialization_alias="deviceClassName", description="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: StrictStr = Field(description="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
/. Must be a DNS label.") selectors: Optional[List[V1DeviceSelector]] = Field(default=None, description="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.") @@ -117,6 +119,7 @@ class V1DeviceSubRequest(BaseModel): "allocation_mode": "str", "capacity": "V1CapacityRequirements", "count": "int", + "derived_attributes": "List[V1DeviceDerivedAttribute]", "device_class_name": "str", "name": "str", "selectors": "List[V1DeviceSelector]", @@ -127,12 +130,13 @@ class V1DeviceSubRequest(BaseModel): "allocation_mode": "allocationMode", "capacity": "capacity", "count": "count", + "derived_attributes": "derivedAttributes", "device_class_name": "deviceClassName", "name": "name", "selectors": "selectors", "tolerations": "tolerations" } - __properties: ClassVar[List[str]] = ["allocationMode", "capacity", "count", "deviceClassName", "name", "selectors", "tolerations"] + __properties: ClassVar[List[str]] = ["allocationMode", "capacity", "count", "derivedAttributes", "deviceClassName", "name", "selectors", "tolerations"] @classmethod def __preprocess_input_names( @@ -146,6 +150,9 @@ def __preprocess_input_names( if "allocationMode" not in obj and "allocation_mode" in obj: obj["allocationMode"] = obj["allocation_mode"] obj.pop("allocation_mode", None) + if "derivedAttributes" not in obj and "derived_attributes" in obj: + obj["derivedAttributes"] = obj["derived_attributes"] + obj.pop("derived_attributes", None) if "deviceClassName" not in obj and "device_class_name" in obj: obj["deviceClassName"] = obj["device_class_name"] obj.pop("device_class_name", None) @@ -201,6 +208,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("allocationMode" if serialize else "allocation_mode"): _to_legacy_value(getattr(self, "allocation_mode", None), serialize), ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("count" if serialize else "count"): _to_legacy_value(getattr(self, "count", None), serialize), + ("derivedAttributes" if serialize else "derived_attributes"): _to_legacy_value(getattr(self, "derived_attributes", None), serialize), ("deviceClassName" if serialize else "device_class_name"): _to_legacy_value(getattr(self, "device_class_name", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), ("selectors" if serialize else "selectors"): _to_legacy_value(getattr(self, "selectors", None), serialize), @@ -228,6 +236,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of capacity if self.capacity: _dict['capacity'] = _to_openapi_value(self.capacity) + # override the default output from pydantic by calling `to_dict()` of each item in derived_attributes (list) + _items = [] + if self.derived_attributes: + for _item_derived_attributes in self.derived_attributes: + _items.append(_to_openapi_value(_item_derived_attributes) if _item_derived_attributes is not None else None) + _dict['derivedAttributes'] = _items # override the default output from pydantic by calling `to_dict()` of each item in selectors (list) _items = [] if self.selectors: @@ -275,6 +289,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "allocationMode": obj.get("allocationMode"), "capacity": V1CapacityRequirements.from_dict(obj["capacity"]) if obj.get("capacity") is not None else None, "count": obj.get("count"), + "derivedAttributes": [V1DeviceDerivedAttribute.from_dict(_item) for _item in obj["derivedAttributes"]] if obj.get("derivedAttributes") is not None else None, "deviceClassName": obj.get("deviceClassName"), "name": obj.get("name"), "selectors": [V1DeviceSelector.from_dict(_item) for _item in obj["selectors"]] if obj.get("selectors") is not None else None, diff --git a/kubernetes/client/models/v1_device_taint.py b/kubernetes/client/models/v1_device_taint.py index c6f90273c4..954c9e529e 100644 --- a/kubernetes/client/models/v1_device_taint.py +++ b/kubernetes/client/models/v1_device_taint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_service_cidr.py b/kubernetes/client/models/v1_device_taint_rule.py similarity index 89% rename from kubernetes/client/models/v1beta1_service_cidr.py rename to kubernetes/client/models/v1_device_taint_rule.py index 0230ce290b..3facd5e016 100644 --- a/kubernetes/client/models/v1beta1_service_cidr.py +++ b/kubernetes/client/models/v1_device_taint_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,9 +20,9 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_device_taint_rule_spec import V1DeviceTaintRuleSpec +from kubernetes.client.models.v1_device_taint_rule_status import V1DeviceTaintRuleStatus from kubernetes.client.models.v1_object_meta import V1ObjectMeta -from kubernetes.client.models.v1beta1_service_cidr_spec import V1beta1ServiceCIDRSpec -from kubernetes.client.models.v1beta1_service_cidr_status import V1beta1ServiceCIDRStatus from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -96,9 +96,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1beta1ServiceCIDR(BaseModel): +class V1DeviceTaintRule(BaseModel): """ - 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. + 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. Attributes: openapi_types (dict): The key is attribute name @@ -109,14 +109,14 @@ class V1beta1ServiceCIDR(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: Optional[V1beta1ServiceCIDRSpec] = None - status: Optional[V1beta1ServiceCIDRStatus] = None + spec: V1DeviceTaintRuleSpec + status: Optional[V1DeviceTaintRuleStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", "metadata": "V1ObjectMeta", - "spec": "V1beta1ServiceCIDRSpec", - "status": "V1beta1ServiceCIDRStatus" + "spec": "V1DeviceTaintRuleSpec", + "status": "V1DeviceTaintRuleStatus" } attribute_map: ClassVar[Dict[str, str]] = { @@ -161,14 +161,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1beta1ServiceCIDR): + if not isinstance(other, V1DeviceTaintRule): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1ServiceCIDR): + if not isinstance(other, V1DeviceTaintRule): return True return not (self == other) @@ -183,7 +183,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1ServiceCIDR from a JSON string""" + """Create an instance of V1DeviceTaintRule from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -239,7 +239,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1ServiceCIDR from a dict""" + """Create an instance of V1DeviceTaintRule from a dict""" if obj is None: return None @@ -258,7 +258,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "apiVersion": obj.get("apiVersion"), "kind": obj.get("kind"), "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, - "spec": V1beta1ServiceCIDRSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, - "status": V1beta1ServiceCIDRStatus.from_dict(obj["status"]) if obj.get("status") is not None else None + "spec": V1DeviceTaintRuleSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, + "status": V1DeviceTaintRuleStatus.from_dict(obj["status"]) if obj.get("status") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1beta1_service_cidr_list.py b/kubernetes/client/models/v1_device_taint_rule_list.py similarity index 92% rename from kubernetes/client/models/v1beta1_service_cidr_list.py rename to kubernetes/client/models/v1_device_taint_rule_list.py index d995c0ba25..baec33a64c 100644 --- a/kubernetes/client/models/v1beta1_service_cidr_list.py +++ b/kubernetes/client/models/v1_device_taint_rule_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,8 +20,8 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_device_taint_rule import V1DeviceTaintRule from kubernetes.client.models.v1_list_meta import V1ListMeta -from kubernetes.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,9 +95,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1beta1ServiceCIDRList(BaseModel): +class V1DeviceTaintRuleList(BaseModel): """ - ServiceCIDRList contains a list of ServiceCIDR objects. + DeviceTaintRuleList is a collection of DeviceTaintRules. Attributes: openapi_types (dict): The key is attribute name @@ -106,12 +106,12 @@ class V1beta1ServiceCIDRList(BaseModel): and the value is json key in definition. """ # noqa: E501 api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - items: List[V1beta1ServiceCIDR] = Field(description="items is the list of ServiceCIDRs.") + items: List[V1DeviceTaintRule] = Field(description="Items is the list of DeviceTaintRules.") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ListMeta] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", - "items": "List[V1beta1ServiceCIDR]", + "items": "List[V1DeviceTaintRule]", "kind": "str", "metadata": "V1ListMeta" } @@ -157,14 +157,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1beta1ServiceCIDRList): + if not isinstance(other, V1DeviceTaintRuleList): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1ServiceCIDRList): + if not isinstance(other, V1DeviceTaintRuleList): return True return not (self == other) @@ -179,7 +179,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1ServiceCIDRList from a JSON string""" + """Create an instance of V1DeviceTaintRuleList from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -234,7 +234,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1ServiceCIDRList from a dict""" + """Create an instance of V1DeviceTaintRuleList from a dict""" if obj is None: return None @@ -251,7 +251,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "apiVersion": obj.get("apiVersion"), - "items": [V1beta1ServiceCIDR.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "items": [V1DeviceTaintRule.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "kind": obj.get("kind"), "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None }) diff --git a/kubernetes/client/models/v1_device_taint_rule_spec.py b/kubernetes/client/models/v1_device_taint_rule_spec.py new file mode 100644 index 0000000000..47776d20f0 --- /dev/null +++ b/kubernetes/client/models/v1_device_taint_rule_spec.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_device_taint import V1DeviceTaint +from kubernetes.client.models.v1_device_taint_selector import V1DeviceTaintSelector +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1DeviceTaintRuleSpec(BaseModel): + """ + DeviceTaintRuleSpec specifies the selector and one taint. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + device_selector: Optional[V1DeviceTaintSelector] = Field(default=None, validation_alias=AliasChoices("deviceSelector", "device_selector"), serialization_alias="deviceSelector") + taint: V1DeviceTaint + openapi_types: ClassVar[Dict[str, str]] = { + "device_selector": "V1DeviceTaintSelector", + "taint": "V1DeviceTaint" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "device_selector": "deviceSelector", + "taint": "taint" + } + __properties: ClassVar[List[str]] = ["deviceSelector", "taint"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "deviceSelector" not in obj and "device_selector" in obj: + obj["deviceSelector"] = obj["device_selector"] + obj.pop("device_selector", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1DeviceTaintRuleSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1DeviceTaintRuleSpec): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1DeviceTaintRuleSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("deviceSelector" if serialize else "device_selector"): _to_legacy_value(getattr(self, "device_selector", None), serialize), + ("taint" if serialize else "taint"): _to_legacy_value(getattr(self, "taint", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of device_selector + if self.device_selector: + _dict['deviceSelector'] = _to_openapi_value(self.device_selector) + # override the default output from pydantic by calling `to_dict()` of taint + if self.taint: + _dict['taint'] = _to_openapi_value(self.taint) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1DeviceTaintRuleSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "deviceSelector": V1DeviceTaintSelector.from_dict(obj["deviceSelector"]) if obj.get("deviceSelector") is not None else None, + "taint": V1DeviceTaint.from_dict(obj["taint"]) if obj.get("taint") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_service_cidr_status.py b/kubernetes/client/models/v1_device_taint_rule_status.py similarity index 82% rename from kubernetes/client/models/v1beta1_service_cidr_status.py rename to kubernetes/client/models/v1_device_taint_rule_status.py index 606aa5bd0e..fff24d7c8a 100644 --- a/kubernetes/client/models/v1beta1_service_cidr_status.py +++ b/kubernetes/client/models/v1_device_taint_rule_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -93,9 +93,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1beta1ServiceCIDRStatus(BaseModel): +class V1DeviceTaintRuleStatus(BaseModel): """ - ServiceCIDRStatus describes the current state of the ServiceCIDR. + DeviceTaintRuleStatus provides information about an on-going pod eviction. Attributes: openapi_types (dict): The key is attribute name @@ -103,7 +103,7 @@ class V1beta1ServiceCIDRStatus(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - conditions: Optional[List[V1Condition]] = Field(default=None, description="conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state") + conditions: Optional[List[V1Condition]] = Field(default=None, 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.") openapi_types: ClassVar[Dict[str, str]] = { "conditions": "List[V1Condition]" } @@ -132,14 +132,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1beta1ServiceCIDRStatus): + if not isinstance(other, V1DeviceTaintRuleStatus): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1ServiceCIDRStatus): + if not isinstance(other, V1DeviceTaintRuleStatus): return True return not (self == other) @@ -154,7 +154,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1ServiceCIDRStatus from a JSON string""" + """Create an instance of V1DeviceTaintRuleStatus from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -203,7 +203,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1ServiceCIDRStatus from a dict""" + """Create an instance of V1DeviceTaintRuleStatus from a dict""" if obj is None: return None diff --git a/kubernetes/client/models/v1_device_taint_selector.py b/kubernetes/client/models/v1_device_taint_selector.py new file mode 100644 index 0000000000..76b62e2fa9 --- /dev/null +++ b/kubernetes/client/models/v1_device_taint_selector.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1DeviceTaintSelector(BaseModel): + """ + DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + device: Optional[StrictStr] = Field(default=None, 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.") + driver: Optional[StrictStr] = Field(default=None, description="If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver.") + pool: Optional[StrictStr] = Field(default=None, 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.") + openapi_types: ClassVar[Dict[str, str]] = { + "device": "str", + "driver": "str", + "pool": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "device": "device", + "driver": "driver", + "pool": "pool" + } + __properties: ClassVar[List[str]] = ["device", "driver", "pool"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1DeviceTaintSelector): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1DeviceTaintSelector): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1DeviceTaintSelector from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("device" if serialize else "device"): _to_legacy_value(getattr(self, "device", None), serialize), + ("driver" if serialize else "driver"): _to_legacy_value(getattr(self, "driver", None), serialize), + ("pool" if serialize else "pool"): _to_legacy_value(getattr(self, "pool", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1DeviceTaintSelector from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "device": obj.get("device"), + "driver": obj.get("driver"), + "pool": obj.get("pool") + }) + return _obj diff --git a/kubernetes/client/models/v1_device_toleration.py b/kubernetes/client/models/v1_device_toleration.py index f481371e1e..407c1110f3 100644 --- a/kubernetes/client/models/v1_device_toleration.py +++ b/kubernetes/client/models/v1_device_toleration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_downward_api_projection.py b/kubernetes/client/models/v1_downward_api_projection.py index f84afdd40e..01b68562fe 100644 --- a/kubernetes/client/models/v1_downward_api_projection.py +++ b/kubernetes/client/models/v1_downward_api_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_downward_api_volume_file.py b/kubernetes/client/models/v1_downward_api_volume_file.py index b1d8ab4bf4..8a7334f2ee 100644 --- a/kubernetes/client/models/v1_downward_api_volume_file.py +++ b/kubernetes/client/models/v1_downward_api_volume_file.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,20 +109,23 @@ class V1DownwardAPIVolumeFile(BaseModel): mode: Optional[StrictInt] = Field(default=None, description="Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") path: StrictStr = Field(description="Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'") resource_field_ref: Optional[V1ResourceFieldSelector] = Field(default=None, validation_alias=AliasChoices("resourceFieldRef", "resource_field_ref"), serialization_alias="resourceFieldRef") + user: Optional[StrictInt] = Field(default=None, description="user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") openapi_types: ClassVar[Dict[str, str]] = { "field_ref": "V1ObjectFieldSelector", "mode": "int", "path": "str", - "resource_field_ref": "V1ResourceFieldSelector" + "resource_field_ref": "V1ResourceFieldSelector", + "user": "int" } attribute_map: ClassVar[Dict[str, str]] = { "field_ref": "fieldRef", "mode": "mode", "path": "path", - "resource_field_ref": "resourceFieldRef" + "resource_field_ref": "resourceFieldRef", + "user": "user" } - __properties: ClassVar[List[str]] = ["fieldRef", "mode", "path", "resourceFieldRef"] + __properties: ClassVar[List[str]] = ["fieldRef", "mode", "path", "resourceFieldRef", "user"] @classmethod def __preprocess_input_names( @@ -192,6 +195,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("mode" if serialize else "mode"): _to_legacy_value(getattr(self, "mode", None), serialize), ("path" if serialize else "path"): _to_legacy_value(getattr(self, "path", None), serialize), ("resourceFieldRef" if serialize else "resource_field_ref"): _to_legacy_value(getattr(self, "resource_field_ref", None), serialize), + ("user" if serialize else "user"): _to_legacy_value(getattr(self, "user", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -253,6 +257,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "fieldRef": V1ObjectFieldSelector.from_dict(obj["fieldRef"]) if obj.get("fieldRef") is not None else None, "mode": obj.get("mode"), "path": obj.get("path"), - "resourceFieldRef": V1ResourceFieldSelector.from_dict(obj["resourceFieldRef"]) if obj.get("resourceFieldRef") is not None else None + "resourceFieldRef": V1ResourceFieldSelector.from_dict(obj["resourceFieldRef"]) if obj.get("resourceFieldRef") is not None else None, + "user": obj.get("user") }) return _obj diff --git a/kubernetes/client/models/v1_downward_api_volume_source.py b/kubernetes/client/models/v1_downward_api_volume_source.py index b44f302154..d131433ae4 100644 --- a/kubernetes/client/models/v1_downward_api_volume_source.py +++ b/kubernetes/client/models/v1_downward_api_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,17 +105,20 @@ class V1DownwardAPIVolumeSource(BaseModel): and the value is json key in definition. """ # noqa: E501 default_mode: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("defaultMode", "default_mode"), serialization_alias="defaultMode", description="Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") + default_user: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("defaultUser", "default_user"), serialization_alias="defaultUser", description="defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") items: Optional[List[V1DownwardAPIVolumeFile]] = Field(default=None, description="Items is a list of downward API volume file") openapi_types: ClassVar[Dict[str, str]] = { "default_mode": "int", + "default_user": "int", "items": "List[V1DownwardAPIVolumeFile]" } attribute_map: ClassVar[Dict[str, str]] = { "default_mode": "defaultMode", + "default_user": "defaultUser", "items": "items" } - __properties: ClassVar[List[str]] = ["defaultMode", "items"] + __properties: ClassVar[List[str]] = ["defaultMode", "defaultUser", "items"] @classmethod def __preprocess_input_names( @@ -129,6 +132,9 @@ def __preprocess_input_names( if "defaultMode" not in obj and "default_mode" in obj: obj["defaultMode"] = obj["default_mode"] obj.pop("default_mode", None) + if "defaultUser" not in obj and "default_user" in obj: + obj["defaultUser"] = obj["default_user"] + obj.pop("default_user", None) return obj model_config = ConfigDict( @@ -179,6 +185,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { ("defaultMode" if serialize else "default_mode"): _to_legacy_value(getattr(self, "default_mode", None), serialize), + ("defaultUser" if serialize else "default_user"): _to_legacy_value(getattr(self, "default_user", None), serialize), ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), } @@ -239,6 +246,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "defaultMode": obj.get("defaultMode"), + "defaultUser": obj.get("defaultUser"), "items": [V1DownwardAPIVolumeFile.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1_empty_dir_volume_source.py b/kubernetes/client/models/v1_empty_dir_volume_source.py index 2f907cf7cb..4f6174455f 100644 --- a/kubernetes/client/models/v1_empty_dir_volume_source.py +++ b/kubernetes/client/models/v1_empty_dir_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,7 +18,7 @@ import json from collections.abc import Mapping as _Mapping -from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from typing import Optional, Set from typing_extensions import Self @@ -104,17 +104,20 @@ class V1EmptyDirVolumeSource(BaseModel): and the value is json key in definition. """ # noqa: E501 medium: Optional[StrictStr] = Field(default=None, description="medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir") + mode: Optional[StrictInt] = Field(default=None, description="mode specifies the permission bits for the emptyDir directory, in numeric notation (e.g., 0755, 01777). Must be a value between 0000 and 01777. If not specified, defaults to 0777. This might be in conflict with other options that affect the file mode, like fsGroup. If fsGroup is specified, the fsGroup permissions will override the mode specified here. This field has no effect on Windows. This field is alpha and requires EmptyDirVolumeMode featuregate to be enabled.") size_limit: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("sizeLimit", "size_limit"), serialization_alias="sizeLimit", description="sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir") openapi_types: ClassVar[Dict[str, str]] = { "medium": "str", + "mode": "int", "size_limit": "str" } attribute_map: ClassVar[Dict[str, str]] = { "medium": "medium", + "mode": "mode", "size_limit": "sizeLimit" } - __properties: ClassVar[List[str]] = ["medium", "sizeLimit"] + __properties: ClassVar[List[str]] = ["medium", "mode", "sizeLimit"] @classmethod def __preprocess_input_names( @@ -178,6 +181,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { ("medium" if serialize else "medium"): _to_legacy_value(getattr(self, "medium", None), serialize), + ("mode" if serialize else "mode"): _to_legacy_value(getattr(self, "mode", None), serialize), ("sizeLimit" if serialize else "size_limit"): _to_legacy_value(getattr(self, "size_limit", None), serialize), } @@ -232,6 +236,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "medium": obj.get("medium"), + "mode": obj.get("mode"), "sizeLimit": obj.get("sizeLimit") }) return _obj diff --git a/kubernetes/client/models/v1_endpoint.py b/kubernetes/client/models/v1_endpoint.py index fd4ae96635..09739ba841 100644 --- a/kubernetes/client/models/v1_endpoint.py +++ b/kubernetes/client/models/v1_endpoint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_endpoint_address.py b/kubernetes/client/models/v1_endpoint_address.py index 04f0662355..d502addf64 100644 --- a/kubernetes/client/models/v1_endpoint_address.py +++ b/kubernetes/client/models/v1_endpoint_address.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_endpoint_conditions.py b/kubernetes/client/models/v1_endpoint_conditions.py index f04a07d306..9bc83ef75e 100644 --- a/kubernetes/client/models/v1_endpoint_conditions.py +++ b/kubernetes/client/models/v1_endpoint_conditions.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_endpoint_hints.py b/kubernetes/client/models/v1_endpoint_hints.py index 7fc39bd61d..56a830a11e 100644 --- a/kubernetes/client/models/v1_endpoint_hints.py +++ b/kubernetes/client/models/v1_endpoint_hints.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_endpoint_slice.py b/kubernetes/client/models/v1_endpoint_slice.py index 368452f76d..a6465187c9 100644 --- a/kubernetes/client/models/v1_endpoint_slice.py +++ b/kubernetes/client/models/v1_endpoint_slice.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_endpoint_slice_list.py b/kubernetes/client/models/v1_endpoint_slice_list.py index 4f25ab229e..b0bc2d5406 100644 --- a/kubernetes/client/models/v1_endpoint_slice_list.py +++ b/kubernetes/client/models/v1_endpoint_slice_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_endpoint_subset.py b/kubernetes/client/models/v1_endpoint_subset.py index 306bbb6e18..08b007bfbe 100644 --- a/kubernetes/client/models/v1_endpoint_subset.py +++ b/kubernetes/client/models/v1_endpoint_subset.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_endpoints.py b/kubernetes/client/models/v1_endpoints.py index 204e5f1dde..93b3bafe7e 100644 --- a/kubernetes/client/models/v1_endpoints.py +++ b/kubernetes/client/models/v1_endpoints.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_endpoints_list.py b/kubernetes/client/models/v1_endpoints_list.py index b47c64cd72..9196c36b64 100644 --- a/kubernetes/client/models/v1_endpoints_list.py +++ b/kubernetes/client/models/v1_endpoints_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_env_from_source.py b/kubernetes/client/models/v1_env_from_source.py index e8a691e19d..1898e1f3f7 100644 --- a/kubernetes/client/models/v1_env_from_source.py +++ b/kubernetes/client/models/v1_env_from_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_env_var.py b/kubernetes/client/models/v1_env_var.py index 001d3f7293..f9244b78af 100644 --- a/kubernetes/client/models/v1_env_var.py +++ b/kubernetes/client/models/v1_env_var.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_env_var_source.py b/kubernetes/client/models/v1_env_var_source.py index 9435a51cfa..21f907cb01 100644 --- a/kubernetes/client/models/v1_env_var_source.py +++ b/kubernetes/client/models/v1_env_var_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ephemeral_container.py b/kubernetes/client/models/v1_ephemeral_container.py index 70191c9d1f..69ab1a42df 100644 --- a/kubernetes/client/models/v1_ephemeral_container.py +++ b/kubernetes/client/models/v1_ephemeral_container.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ephemeral_volume_source.py b/kubernetes/client/models/v1_ephemeral_volume_source.py index 127c69a6f3..708262012b 100644 --- a/kubernetes/client/models/v1_ephemeral_volume_source.py +++ b/kubernetes/client/models/v1_ephemeral_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_event_source.py b/kubernetes/client/models/v1_event_source.py index 069ed9b772..3e0dc80211 100644 --- a/kubernetes/client/models/v1_event_source.py +++ b/kubernetes/client/models/v1_event_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_eviction.py b/kubernetes/client/models/v1_eviction.py index 48e5eee4fc..29df5891b0 100644 --- a/kubernetes/client/models/v1_eviction.py +++ b/kubernetes/client/models/v1_eviction.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_eviction_responder.py b/kubernetes/client/models/v1_eviction_responder.py new file mode 100644 index 0000000000..884e0e9fc6 --- /dev/null +++ b/kubernetes/client/models/v1_eviction_responder.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1EvictionResponder(BaseModel): + """ + EvictionResponder allows you to specify the responder reacting to an Eviction. Responders should observe and communicate through the Eviction Resource API to help with the graceful eviction of a target (e.g. termination of a pod). + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + name: StrictStr = Field(description="name allows you to identify the responder responding to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field must be unique for each responder. This field is required.") + priority: StrictInt = Field(description="priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last. The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders. The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required.") + openapi_types: ClassVar[Dict[str, str]] = { + "name": "str", + "priority": "int" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "name": "name", + "priority": "priority" + } + __properties: ClassVar[List[str]] = ["name", "priority"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1EvictionResponder): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1EvictionResponder): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1EvictionResponder from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("priority" if serialize else "priority"): _to_legacy_value(getattr(self, "priority", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1EvictionResponder from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "priority": obj.get("priority") + }) + return _obj diff --git a/kubernetes/client/models/v1_exact_device_request.py b/kubernetes/client/models/v1_exact_device_request.py index 0415f41277..ce12b29f32 100644 --- a/kubernetes/client/models/v1_exact_device_request.py +++ b/kubernetes/client/models/v1_exact_device_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1_capacity_requirements import V1CapacityRequirements +from kubernetes.client.models.v1_device_derived_attribute import V1DeviceDerivedAttribute from kubernetes.client.models.v1_device_selector import V1DeviceSelector from kubernetes.client.models.v1_device_toleration import V1DeviceToleration from typing import Optional, Set @@ -110,6 +111,7 @@ class V1ExactDeviceRequest(BaseModel): allocation_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("allocationMode", "allocation_mode"), serialization_alias="allocationMode", description="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.") capacity: Optional[V1CapacityRequirements] = None count: Optional[StrictInt] = Field(default=None, description="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.") + derived_attributes: Optional[List[V1DeviceDerivedAttribute]] = Field(default=None, validation_alias=AliasChoices("derivedAttributes", "derived_attributes"), serialization_alias="derivedAttributes", description="DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate.") device_class_name: StrictStr = Field(validation_alias=AliasChoices("deviceClassName", "device_class_name"), serialization_alias="deviceClassName", description="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: Optional[List[V1DeviceSelector]] = Field(default=None, description="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.") tolerations: Optional[List[V1DeviceToleration]] = Field(default=None, description="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.") @@ -118,6 +120,7 @@ class V1ExactDeviceRequest(BaseModel): "allocation_mode": "str", "capacity": "V1CapacityRequirements", "count": "int", + "derived_attributes": "List[V1DeviceDerivedAttribute]", "device_class_name": "str", "selectors": "List[V1DeviceSelector]", "tolerations": "List[V1DeviceToleration]" @@ -128,11 +131,12 @@ class V1ExactDeviceRequest(BaseModel): "allocation_mode": "allocationMode", "capacity": "capacity", "count": "count", + "derived_attributes": "derivedAttributes", "device_class_name": "deviceClassName", "selectors": "selectors", "tolerations": "tolerations" } - __properties: ClassVar[List[str]] = ["adminAccess", "allocationMode", "capacity", "count", "deviceClassName", "selectors", "tolerations"] + __properties: ClassVar[List[str]] = ["adminAccess", "allocationMode", "capacity", "count", "derivedAttributes", "deviceClassName", "selectors", "tolerations"] @classmethod def __preprocess_input_names( @@ -149,6 +153,9 @@ def __preprocess_input_names( if "allocationMode" not in obj and "allocation_mode" in obj: obj["allocationMode"] = obj["allocation_mode"] obj.pop("allocation_mode", None) + if "derivedAttributes" not in obj and "derived_attributes" in obj: + obj["derivedAttributes"] = obj["derived_attributes"] + obj.pop("derived_attributes", None) if "deviceClassName" not in obj and "device_class_name" in obj: obj["deviceClassName"] = obj["device_class_name"] obj.pop("device_class_name", None) @@ -205,6 +212,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("allocationMode" if serialize else "allocation_mode"): _to_legacy_value(getattr(self, "allocation_mode", None), serialize), ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("count" if serialize else "count"): _to_legacy_value(getattr(self, "count", None), serialize), + ("derivedAttributes" if serialize else "derived_attributes"): _to_legacy_value(getattr(self, "derived_attributes", None), serialize), ("deviceClassName" if serialize else "device_class_name"): _to_legacy_value(getattr(self, "device_class_name", None), serialize), ("selectors" if serialize else "selectors"): _to_legacy_value(getattr(self, "selectors", None), serialize), ("tolerations" if serialize else "tolerations"): _to_legacy_value(getattr(self, "tolerations", None), serialize), @@ -231,6 +239,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of capacity if self.capacity: _dict['capacity'] = _to_openapi_value(self.capacity) + # override the default output from pydantic by calling `to_dict()` of each item in derived_attributes (list) + _items = [] + if self.derived_attributes: + for _item_derived_attributes in self.derived_attributes: + _items.append(_to_openapi_value(_item_derived_attributes) if _item_derived_attributes is not None else None) + _dict['derivedAttributes'] = _items # override the default output from pydantic by calling `to_dict()` of each item in selectors (list) _items = [] if self.selectors: @@ -279,6 +293,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "allocationMode": obj.get("allocationMode"), "capacity": V1CapacityRequirements.from_dict(obj["capacity"]) if obj.get("capacity") is not None else None, "count": obj.get("count"), + "derivedAttributes": [V1DeviceDerivedAttribute.from_dict(_item) for _item in obj["derivedAttributes"]] if obj.get("derivedAttributes") is not None else None, "deviceClassName": obj.get("deviceClassName"), "selectors": [V1DeviceSelector.from_dict(_item) for _item in obj["selectors"]] if obj.get("selectors") is not None else None, "tolerations": [V1DeviceToleration.from_dict(_item) for _item in obj["tolerations"]] if obj.get("tolerations") is not None else None diff --git a/kubernetes/client/models/v1_exec_action.py b/kubernetes/client/models/v1_exec_action.py index f45e2f4ea8..635de92310 100644 --- a/kubernetes/client/models/v1_exec_action.py +++ b/kubernetes/client/models/v1_exec_action.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_exempt_priority_level_configuration.py b/kubernetes/client/models/v1_exempt_priority_level_configuration.py index a1a4457e84..0b5a0d40a4 100644 --- a/kubernetes/client/models/v1_exempt_priority_level_configuration.py +++ b/kubernetes/client/models/v1_exempt_priority_level_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_expression_warning.py b/kubernetes/client/models/v1_expression_warning.py index d0eab794b1..eae58f9c7f 100644 --- a/kubernetes/client/models/v1_expression_warning.py +++ b/kubernetes/client/models/v1_expression_warning.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_external_documentation.py b/kubernetes/client/models/v1_external_documentation.py index c2e26777a4..696ae28fe2 100644 --- a/kubernetes/client/models/v1_external_documentation.py +++ b/kubernetes/client/models/v1_external_documentation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_fc_volume_source.py b/kubernetes/client/models/v1_fc_volume_source.py index e17792cd55..5ecba4a217 100644 --- a/kubernetes/client/models/v1_fc_volume_source.py +++ b/kubernetes/client/models/v1_fc_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_field_selector_attributes.py b/kubernetes/client/models/v1_field_selector_attributes.py index 646302b1fc..3052f57b88 100644 --- a/kubernetes/client/models/v1_field_selector_attributes.py +++ b/kubernetes/client/models/v1_field_selector_attributes.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_field_selector_requirement.py b/kubernetes/client/models/v1_field_selector_requirement.py index a102121403..ce7d4d6df0 100644 --- a/kubernetes/client/models/v1_field_selector_requirement.py +++ b/kubernetes/client/models/v1_field_selector_requirement.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_file_key_selector.py b/kubernetes/client/models/v1_file_key_selector.py index f0ca1254e9..617b44aa36 100644 --- a/kubernetes/client/models/v1_file_key_selector.py +++ b/kubernetes/client/models/v1_file_key_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_flex_persistent_volume_source.py b/kubernetes/client/models/v1_flex_persistent_volume_source.py index 223493dff9..16d92c760b 100644 --- a/kubernetes/client/models/v1_flex_persistent_volume_source.py +++ b/kubernetes/client/models/v1_flex_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_flex_volume_source.py b/kubernetes/client/models/v1_flex_volume_source.py index ed37aeb4c6..f6478655b9 100644 --- a/kubernetes/client/models/v1_flex_volume_source.py +++ b/kubernetes/client/models/v1_flex_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_flocker_volume_source.py b/kubernetes/client/models/v1_flocker_volume_source.py index 070e714090..582e7debdb 100644 --- a/kubernetes/client/models/v1_flocker_volume_source.py +++ b/kubernetes/client/models/v1_flocker_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_flow_distinguisher_method.py b/kubernetes/client/models/v1_flow_distinguisher_method.py index b937caaaf0..1a7b0efd3f 100644 --- a/kubernetes/client/models/v1_flow_distinguisher_method.py +++ b/kubernetes/client/models/v1_flow_distinguisher_method.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_flow_schema.py b/kubernetes/client/models/v1_flow_schema.py index da9296d2b8..50de47027e 100644 --- a/kubernetes/client/models/v1_flow_schema.py +++ b/kubernetes/client/models/v1_flow_schema.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,7 +109,7 @@ class V1FlowSchema(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: Optional[V1FlowSchemaSpec] = None + spec: V1FlowSchemaSpec status: Optional[V1FlowSchemaStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", diff --git a/kubernetes/client/models/v1_flow_schema_condition.py b/kubernetes/client/models/v1_flow_schema_condition.py index bb85beee96..3792f41e95 100644 --- a/kubernetes/client/models/v1_flow_schema_condition.py +++ b/kubernetes/client/models/v1_flow_schema_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -107,8 +107,8 @@ class V1FlowSchemaCondition(BaseModel): last_transition_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastTransitionTime", "last_transition_time"), serialization_alias="lastTransitionTime", description="`lastTransitionTime` is the last time the condition transitioned from one status to another.") message: Optional[StrictStr] = Field(default=None, description="`message` is a human-readable message indicating details about last transition.") reason: Optional[StrictStr] = Field(default=None, description="`reason` is a unique, one-word, CamelCase reason for the condition's last transition.") - status: Optional[StrictStr] = Field(default=None, description="`status` is the status of the condition. Can be True, False, Unknown. Required.") - type: Optional[StrictStr] = Field(default=None, description="`type` is the type of the condition. Required.") + status: Optional[StrictStr] = Field(default=None, description="`status` is the status of the condition. Should be specified and set to one of True, False, Unknown.") + type: StrictStr = Field(description="`type` is the type of the condition. Required.") openapi_types: ClassVar[Dict[str, str]] = { "last_transition_time": "datetime", "message": "str", diff --git a/kubernetes/client/models/v1_flow_schema_list.py b/kubernetes/client/models/v1_flow_schema_list.py index f84eb25999..af7d5a4429 100644 --- a/kubernetes/client/models/v1_flow_schema_list.py +++ b/kubernetes/client/models/v1_flow_schema_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_flow_schema_spec.py b/kubernetes/client/models/v1_flow_schema_spec.py index 690ae4faed..1cf27ff2b5 100644 --- a/kubernetes/client/models/v1_flow_schema_spec.py +++ b/kubernetes/client/models/v1_flow_schema_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_flow_schema_status.py b/kubernetes/client/models/v1_flow_schema_status.py index 223076ab0b..14519e58b0 100644 --- a/kubernetes/client/models/v1_flow_schema_status.py +++ b/kubernetes/client/models/v1_flow_schema_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_for_node.py b/kubernetes/client/models/v1_for_node.py index ff18262916..90abc18c94 100644 --- a/kubernetes/client/models/v1_for_node.py +++ b/kubernetes/client/models/v1_for_node.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_for_zone.py b/kubernetes/client/models/v1_for_zone.py index 3792c580d2..642f5d708c 100644 --- a/kubernetes/client/models/v1_for_zone.py +++ b/kubernetes/client/models/v1_for_zone.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py b/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py index 5c6114a37f..797cb4518b 100644 --- a/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py +++ b/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_git_repo_volume_source.py b/kubernetes/client/models/v1_git_repo_volume_source.py index 656df78546..119e4a3e87 100644 --- a/kubernetes/client/models/v1_git_repo_volume_source.py +++ b/kubernetes/client/models/v1_git_repo_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_glusterfs_persistent_volume_source.py b/kubernetes/client/models/v1_glusterfs_persistent_volume_source.py index 25cd269688..97b9ab1bc5 100644 --- a/kubernetes/client/models/v1_glusterfs_persistent_volume_source.py +++ b/kubernetes/client/models/v1_glusterfs_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_glusterfs_volume_source.py b/kubernetes/client/models/v1_glusterfs_volume_source.py index 5dd71ef9c4..e312638804 100644 --- a/kubernetes/client/models/v1_glusterfs_volume_source.py +++ b/kubernetes/client/models/v1_glusterfs_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_group_resource.py b/kubernetes/client/models/v1_group_resource.py index 9379dfd13a..05acb363f2 100644 --- a/kubernetes/client/models/v1_group_resource.py +++ b/kubernetes/client/models/v1_group_resource.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_group_subject.py b/kubernetes/client/models/v1_group_subject.py index f150f9626b..c923962366 100644 --- a/kubernetes/client/models/v1_group_subject.py +++ b/kubernetes/client/models/v1_group_subject.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_group_version_for_discovery.py b/kubernetes/client/models/v1_group_version_for_discovery.py index 9e6526307e..e1b1e0a8f9 100644 --- a/kubernetes/client/models/v1_group_version_for_discovery.py +++ b/kubernetes/client/models/v1_group_version_for_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_group_version_kind.py b/kubernetes/client/models/v1_group_version_kind.py index cdddb7070b..e2b2bc337e 100644 --- a/kubernetes/client/models/v1_group_version_kind.py +++ b/kubernetes/client/models/v1_group_version_kind.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_grpc_action.py b/kubernetes/client/models/v1_grpc_action.py index a5607b99ae..2dd0bbb200 100644 --- a/kubernetes/client/models/v1_grpc_action.py +++ b/kubernetes/client/models/v1_grpc_action.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -102,18 +102,21 @@ class V1GRPCAction(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 + mode: Optional[StrictStr] = Field(default=None, description="mode specifies the connection mode for the gRPC health probe. Set to \"TLS\" to use TLS without certificate verification. Set to \"Plaintext\" to use a plaintext (insecure) connection explicitly. If not specified, the probe uses a plaintext (insecure) connection.") port: StrictInt = Field(description="Port number of the gRPC service. Number must be in the range 1 to 65535.") service: Optional[StrictStr] = Field(default=None, description="Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.") openapi_types: ClassVar[Dict[str, str]] = { + "mode": "str", "port": "int", "service": "str" } attribute_map: ClassVar[Dict[str, str]] = { + "mode": "mode", "port": "port", "service": "service" } - __properties: ClassVar[List[str]] = ["port", "service"] + __properties: ClassVar[List[str]] = ["mode", "port", "service"] model_config = ConfigDict( validate_by_name=True, @@ -162,6 +165,7 @@ def from_json(cls, json_str: str) -> Optional[Self]: def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { + ("mode" if serialize else "mode"): _to_legacy_value(getattr(self, "mode", None), serialize), ("port" if serialize else "port"): _to_legacy_value(getattr(self, "port", None), serialize), ("service" if serialize else "service"): _to_legacy_value(getattr(self, "service", None), serialize), } @@ -208,6 +212,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "mode": obj.get("mode"), "port": obj.get("port"), "service": obj.get("service") }) diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler.py index c775bcf66c..3a94d62b58 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py index 13c905a5ad..1f46049741 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py index c2e19d9d62..7b733c93e1 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py index 2c08b9e700..ffd3b66ff7 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_host_alias.py b/kubernetes/client/models/v1_host_alias.py index 0827386566..362ee5bb7b 100644 --- a/kubernetes/client/models/v1_host_alias.py +++ b/kubernetes/client/models/v1_host_alias.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_host_ip.py b/kubernetes/client/models/v1_host_ip.py index c50cf9cd82..0471339e19 100644 --- a/kubernetes/client/models/v1_host_ip.py +++ b/kubernetes/client/models/v1_host_ip.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_host_path_volume_source.py b/kubernetes/client/models/v1_host_path_volume_source.py index 559442809d..6eb3682148 100644 --- a/kubernetes/client/models/v1_host_path_volume_source.py +++ b/kubernetes/client/models/v1_host_path_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_http_get_action.py b/kubernetes/client/models/v1_http_get_action.py index 923a7c1c10..647b22dde8 100644 --- a/kubernetes/client/models/v1_http_get_action.py +++ b/kubernetes/client/models/v1_http_get_action.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,12 +108,14 @@ class V1HTTPGetAction(BaseModel): http_headers: Optional[List[V1HTTPHeader]] = Field(default=None, validation_alias=AliasChoices("httpHeaders", "http_headers"), serialization_alias="httpHeaders", description="Custom headers to set in the request. HTTP allows repeated headers.") path: Optional[StrictStr] = Field(default=None, description="Path to access on the HTTP server.") port: StrictInt | StrictStr = Field(description="Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.") + protocol: Optional[StrictStr] = Field(default=None, description="Protocol selects the wire protocol for the probe connection. Nil defaults to HTTP/1.1.") scheme: Optional[StrictStr] = Field(default=None, description="Scheme to use for connecting to the host. Defaults to HTTP.") openapi_types: ClassVar[Dict[str, str]] = { "host": "str", "http_headers": "List[V1HTTPHeader]", "path": "str", "port": "object", + "protocol": "str", "scheme": "str" } @@ -122,9 +124,10 @@ class V1HTTPGetAction(BaseModel): "http_headers": "httpHeaders", "path": "path", "port": "port", + "protocol": "protocol", "scheme": "scheme" } - __properties: ClassVar[List[str]] = ["host", "httpHeaders", "path", "port", "scheme"] + __properties: ClassVar[List[str]] = ["host", "httpHeaders", "path", "port", "protocol", "scheme"] @classmethod def __preprocess_input_names( @@ -191,6 +194,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("httpHeaders" if serialize else "http_headers"): _to_legacy_value(getattr(self, "http_headers", None), serialize), ("path" if serialize else "path"): _to_legacy_value(getattr(self, "path", None), serialize), ("port" if serialize else "port"): _to_legacy_value(getattr(self, "port", None), serialize), + ("protocol" if serialize else "protocol"): _to_legacy_value(getattr(self, "protocol", None), serialize), ("scheme" if serialize else "scheme"): _to_legacy_value(getattr(self, "scheme", None), serialize), } @@ -254,6 +258,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "httpHeaders": [V1HTTPHeader.from_dict(_item) for _item in obj["httpHeaders"]] if obj.get("httpHeaders") is not None else None, "path": obj.get("path"), "port": obj.get("port"), + "protocol": obj.get("protocol"), "scheme": obj.get("scheme") }) return _obj diff --git a/kubernetes/client/models/v1_http_header.py b/kubernetes/client/models/v1_http_header.py index c7bc8d5f5c..5e0bf37dfa 100644 --- a/kubernetes/client/models/v1_http_header.py +++ b/kubernetes/client/models/v1_http_header.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_http_ingress_path.py b/kubernetes/client/models/v1_http_ingress_path.py index f31ad9fde8..b21ff663fd 100644 --- a/kubernetes/client/models/v1_http_ingress_path.py +++ b/kubernetes/client/models/v1_http_ingress_path.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_http_ingress_rule_value.py b/kubernetes/client/models/v1_http_ingress_rule_value.py index 228fd72d93..586e502e1d 100644 --- a/kubernetes/client/models/v1_http_ingress_rule_value.py +++ b/kubernetes/client/models/v1_http_ingress_rule_value.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_image_volume_source.py b/kubernetes/client/models/v1_image_volume_source.py index 8527e2c322..870653ecd3 100644 --- a/kubernetes/client/models/v1_image_volume_source.py +++ b/kubernetes/client/models/v1_image_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_image_volume_status.py b/kubernetes/client/models/v1_image_volume_status.py index 0403839f02..7dcf748450 100644 --- a/kubernetes/client/models/v1_image_volume_status.py +++ b/kubernetes/client/models/v1_image_volume_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ingress.py b/kubernetes/client/models/v1_ingress.py index b279feaa9f..f708937772 100644 --- a/kubernetes/client/models/v1_ingress.py +++ b/kubernetes/client/models/v1_ingress.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ingress_backend.py b/kubernetes/client/models/v1_ingress_backend.py index 6152f3aac0..8014298481 100644 --- a/kubernetes/client/models/v1_ingress_backend.py +++ b/kubernetes/client/models/v1_ingress_backend.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ingress_class.py b/kubernetes/client/models/v1_ingress_class.py index 0458112503..7ba4049af2 100644 --- a/kubernetes/client/models/v1_ingress_class.py +++ b/kubernetes/client/models/v1_ingress_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ingress_class_list.py b/kubernetes/client/models/v1_ingress_class_list.py index 01f9b756b1..0e92e5869e 100644 --- a/kubernetes/client/models/v1_ingress_class_list.py +++ b/kubernetes/client/models/v1_ingress_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ingress_class_parameters_reference.py b/kubernetes/client/models/v1_ingress_class_parameters_reference.py index 2f0031c3ec..0270a70f7e 100644 --- a/kubernetes/client/models/v1_ingress_class_parameters_reference.py +++ b/kubernetes/client/models/v1_ingress_class_parameters_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ingress_class_spec.py b/kubernetes/client/models/v1_ingress_class_spec.py index efda5ed25a..8d8e647da4 100644 --- a/kubernetes/client/models/v1_ingress_class_spec.py +++ b/kubernetes/client/models/v1_ingress_class_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ingress_list.py b/kubernetes/client/models/v1_ingress_list.py index ecfb26ba6d..c38ac66991 100644 --- a/kubernetes/client/models/v1_ingress_list.py +++ b/kubernetes/client/models/v1_ingress_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ingress_load_balancer_ingress.py b/kubernetes/client/models/v1_ingress_load_balancer_ingress.py index 98465e630d..768b288d95 100644 --- a/kubernetes/client/models/v1_ingress_load_balancer_ingress.py +++ b/kubernetes/client/models/v1_ingress_load_balancer_ingress.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ingress_load_balancer_status.py b/kubernetes/client/models/v1_ingress_load_balancer_status.py index 1962a03db8..99ecd80d79 100644 --- a/kubernetes/client/models/v1_ingress_load_balancer_status.py +++ b/kubernetes/client/models/v1_ingress_load_balancer_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ingress_port_status.py b/kubernetes/client/models/v1_ingress_port_status.py index 152f93a198..141179d147 100644 --- a/kubernetes/client/models/v1_ingress_port_status.py +++ b/kubernetes/client/models/v1_ingress_port_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ingress_rule.py b/kubernetes/client/models/v1_ingress_rule.py index 7bacf4c316..62b1e2abb1 100644 --- a/kubernetes/client/models/v1_ingress_rule.py +++ b/kubernetes/client/models/v1_ingress_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ingress_service_backend.py b/kubernetes/client/models/v1_ingress_service_backend.py index d24cc6e3a4..1552456b2d 100644 --- a/kubernetes/client/models/v1_ingress_service_backend.py +++ b/kubernetes/client/models/v1_ingress_service_backend.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ingress_spec.py b/kubernetes/client/models/v1_ingress_spec.py index bbf4daf189..adc1db2e29 100644 --- a/kubernetes/client/models/v1_ingress_spec.py +++ b/kubernetes/client/models/v1_ingress_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ingress_status.py b/kubernetes/client/models/v1_ingress_status.py index 11a7fcf2d7..7b05afb17a 100644 --- a/kubernetes/client/models/v1_ingress_status.py +++ b/kubernetes/client/models/v1_ingress_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ingress_tls.py b/kubernetes/client/models/v1_ingress_tls.py index afe328b739..7282cdee97 100644 --- a/kubernetes/client/models/v1_ingress_tls.py +++ b/kubernetes/client/models/v1_ingress_tls.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ip_address.py b/kubernetes/client/models/v1_ip_address.py index b5a86d526f..145e4e07db 100644 --- a/kubernetes/client/models/v1_ip_address.py +++ b/kubernetes/client/models/v1_ip_address.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ip_address_list.py b/kubernetes/client/models/v1_ip_address_list.py index c29427fc18..f4bca6a944 100644 --- a/kubernetes/client/models/v1_ip_address_list.py +++ b/kubernetes/client/models/v1_ip_address_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ip_address_spec.py b/kubernetes/client/models/v1_ip_address_spec.py index 09e0a63721..94d5d9f3c2 100644 --- a/kubernetes/client/models/v1_ip_address_spec.py +++ b/kubernetes/client/models/v1_ip_address_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_ip_block.py b/kubernetes/client/models/v1_ip_block.py index 990a6dda55..c203fda4d6 100644 --- a/kubernetes/client/models/v1_ip_block.py +++ b/kubernetes/client/models/v1_ip_block.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_iscsi_persistent_volume_source.py b/kubernetes/client/models/v1_iscsi_persistent_volume_source.py index 55a5a69f1f..0141172d8b 100644 --- a/kubernetes/client/models/v1_iscsi_persistent_volume_source.py +++ b/kubernetes/client/models/v1_iscsi_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_iscsi_volume_source.py b/kubernetes/client/models/v1_iscsi_volume_source.py index 430de7fa4f..102d56a8ae 100644 --- a/kubernetes/client/models/v1_iscsi_volume_source.py +++ b/kubernetes/client/models/v1_iscsi_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_job.py b/kubernetes/client/models/v1_job.py index ad57991aec..327e1d1335 100644 --- a/kubernetes/client/models/v1_job.py +++ b/kubernetes/client/models/v1_job.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_job_condition.py b/kubernetes/client/models/v1_job_condition.py index e1839d5073..ed8300c314 100644 --- a/kubernetes/client/models/v1_job_condition.py +++ b/kubernetes/client/models/v1_job_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_job_list.py b/kubernetes/client/models/v1_job_list.py index b1d2da04fc..0695a2298a 100644 --- a/kubernetes/client/models/v1_job_list.py +++ b/kubernetes/client/models/v1_job_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_job_scheduling_configuration.py b/kubernetes/client/models/v1_job_scheduling_configuration.py new file mode 100644 index 0000000000..ac6d0ac130 --- /dev/null +++ b/kubernetes/client/models/v1_job_scheduling_configuration.py @@ -0,0 +1,275 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1alpha3_workload_pod_group_disruption_mode import V1alpha3WorkloadPodGroupDisruptionMode +from kubernetes.client.models.v1alpha3_workload_pod_group_resource_claim import V1alpha3WorkloadPodGroupResourceClaim +from kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_constraints import V1alpha3WorkloadPodGroupSchedulingConstraints +from kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_policy import V1alpha3WorkloadPodGroupSchedulingPolicy +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1JobSchedulingConfiguration(BaseModel): + """ + JobSchedulingConfiguration composes the reusable workload-aware scheduling building blocks. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + disruption_mode: Optional[V1alpha3WorkloadPodGroupDisruptionMode] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="disruptionMode") + resource_claims: Optional[List[V1alpha3WorkloadPodGroupResourceClaim]] = Field(default=None, validation_alias=AliasChoices("resourceClaims", "resource_claims"), serialization_alias="resourceClaims", description="ResourceClaims defines which ResourceClaims may be shared among Pods in the Job. 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. At most 4 claims may be set, matching the limit on the resulting PodGroup. This list is immutable after creation: entries may neither be added, removed, nor modified.") + scheduling_constraints: Optional[V1alpha3WorkloadPodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") + scheduling_policy: Optional[V1alpha3WorkloadPodGroupSchedulingPolicy] = Field(default=None, validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") + openapi_types: ClassVar[Dict[str, str]] = { + "disruption_mode": "V1alpha3WorkloadPodGroupDisruptionMode", + "resource_claims": "List[V1alpha3WorkloadPodGroupResourceClaim]", + "scheduling_constraints": "V1alpha3WorkloadPodGroupSchedulingConstraints", + "scheduling_policy": "V1alpha3WorkloadPodGroupSchedulingPolicy" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "disruption_mode": "disruptionMode", + "resource_claims": "resourceClaims", + "scheduling_constraints": "schedulingConstraints", + "scheduling_policy": "schedulingPolicy" + } + __properties: ClassVar[List[str]] = ["disruptionMode", "resourceClaims", "schedulingConstraints", "schedulingPolicy"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "disruptionMode" not in obj and "disruption_mode" in obj: + obj["disruptionMode"] = obj["disruption_mode"] + obj.pop("disruption_mode", None) + if "resourceClaims" not in obj and "resource_claims" in obj: + obj["resourceClaims"] = obj["resource_claims"] + obj.pop("resource_claims", None) + if "schedulingConstraints" not in obj and "scheduling_constraints" in obj: + obj["schedulingConstraints"] = obj["scheduling_constraints"] + obj.pop("scheduling_constraints", None) + if "schedulingPolicy" not in obj and "scheduling_policy" in obj: + obj["schedulingPolicy"] = obj["scheduling_policy"] + obj.pop("scheduling_policy", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1JobSchedulingConfiguration): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1JobSchedulingConfiguration): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1JobSchedulingConfiguration from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("disruptionMode" if serialize else "disruption_mode"): _to_legacy_value(getattr(self, "disruption_mode", None), serialize), + ("resourceClaims" if serialize else "resource_claims"): _to_legacy_value(getattr(self, "resource_claims", None), serialize), + ("schedulingConstraints" if serialize else "scheduling_constraints"): _to_legacy_value(getattr(self, "scheduling_constraints", None), serialize), + ("schedulingPolicy" if serialize else "scheduling_policy"): _to_legacy_value(getattr(self, "scheduling_policy", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of disruption_mode + if self.disruption_mode: + _dict['disruptionMode'] = _to_openapi_value(self.disruption_mode) + # override the default output from pydantic by calling `to_dict()` of each item in resource_claims (list) + _items = [] + if self.resource_claims: + for _item_resource_claims in self.resource_claims: + _items.append(_to_openapi_value(_item_resource_claims) if _item_resource_claims is not None else None) + _dict['resourceClaims'] = _items + # override the default output from pydantic by calling `to_dict()` of scheduling_constraints + if self.scheduling_constraints: + _dict['schedulingConstraints'] = _to_openapi_value(self.scheduling_constraints) + # override the default output from pydantic by calling `to_dict()` of scheduling_policy + if self.scheduling_policy: + _dict['schedulingPolicy'] = _to_openapi_value(self.scheduling_policy) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1JobSchedulingConfiguration from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "disruptionMode": V1alpha3WorkloadPodGroupDisruptionMode.from_dict(obj["disruptionMode"]) if obj.get("disruptionMode") is not None else None, + "resourceClaims": [V1alpha3WorkloadPodGroupResourceClaim.from_dict(_item) for _item in obj["resourceClaims"]] if obj.get("resourceClaims") is not None else None, + "schedulingConstraints": V1alpha3WorkloadPodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, + "schedulingPolicy": V1alpha3WorkloadPodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1_job_spec.py b/kubernetes/client/models/v1_job_spec.py index 1e146fa9ef..2278f7b5bc 100644 --- a/kubernetes/client/models/v1_job_spec.py +++ b/kubernetes/client/models/v1_job_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,6 +20,7 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_job_scheduling_configuration import V1JobSchedulingConfiguration from kubernetes.client.models.v1_label_selector import V1LabelSelector from kubernetes.client.models.v1_pod_failure_policy import V1PodFailurePolicy from kubernetes.client.models.v1_pod_template_spec import V1PodTemplateSpec @@ -118,6 +119,7 @@ class V1JobSpec(BaseModel): parallelism: Optional[StrictInt] = Field(default=None, description="Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/") pod_failure_policy: Optional[V1PodFailurePolicy] = Field(default=None, validation_alias=AliasChoices("podFailurePolicy", "pod_failure_policy"), serialization_alias="podFailurePolicy") pod_replacement_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("podReplacementPolicy", "pod_replacement_policy"), serialization_alias="podReplacementPolicy", description="podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed. - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use.") + scheduling: Optional[V1JobSchedulingConfiguration] = None selector: Optional[V1LabelSelector] = None success_policy: Optional[V1SuccessPolicy] = Field(default=None, validation_alias=AliasChoices("successPolicy", "success_policy"), serialization_alias="successPolicy") suspend: Optional[StrictBool] = Field(default=None, description="suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.") @@ -135,6 +137,7 @@ class V1JobSpec(BaseModel): "parallelism": "int", "pod_failure_policy": "V1PodFailurePolicy", "pod_replacement_policy": "str", + "scheduling": "V1JobSchedulingConfiguration", "selector": "V1LabelSelector", "success_policy": "V1SuccessPolicy", "suspend": "bool", @@ -154,13 +157,14 @@ class V1JobSpec(BaseModel): "parallelism": "parallelism", "pod_failure_policy": "podFailurePolicy", "pod_replacement_policy": "podReplacementPolicy", + "scheduling": "scheduling", "selector": "selector", "success_policy": "successPolicy", "suspend": "suspend", "template": "template", "ttl_seconds_after_finished": "ttlSecondsAfterFinished" } - __properties: ClassVar[List[str]] = ["activeDeadlineSeconds", "backoffLimit", "backoffLimitPerIndex", "completionMode", "completions", "managedBy", "manualSelector", "maxFailedIndexes", "parallelism", "podFailurePolicy", "podReplacementPolicy", "selector", "successPolicy", "suspend", "template", "ttlSecondsAfterFinished"] + __properties: ClassVar[List[str]] = ["activeDeadlineSeconds", "backoffLimit", "backoffLimitPerIndex", "completionMode", "completions", "managedBy", "manualSelector", "maxFailedIndexes", "parallelism", "podFailurePolicy", "podReplacementPolicy", "scheduling", "selector", "successPolicy", "suspend", "template", "ttlSecondsAfterFinished"] @classmethod def __preprocess_input_names( @@ -264,6 +268,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("parallelism" if serialize else "parallelism"): _to_legacy_value(getattr(self, "parallelism", None), serialize), ("podFailurePolicy" if serialize else "pod_failure_policy"): _to_legacy_value(getattr(self, "pod_failure_policy", None), serialize), ("podReplacementPolicy" if serialize else "pod_replacement_policy"): _to_legacy_value(getattr(self, "pod_replacement_policy", None), serialize), + ("scheduling" if serialize else "scheduling"): _to_legacy_value(getattr(self, "scheduling", None), serialize), ("selector" if serialize else "selector"): _to_legacy_value(getattr(self, "selector", None), serialize), ("successPolicy" if serialize else "success_policy"): _to_legacy_value(getattr(self, "success_policy", None), serialize), ("suspend" if serialize else "suspend"): _to_legacy_value(getattr(self, "suspend", None), serialize), @@ -292,6 +297,9 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of pod_failure_policy if self.pod_failure_policy: _dict['podFailurePolicy'] = _to_openapi_value(self.pod_failure_policy) + # override the default output from pydantic by calling `to_dict()` of scheduling + if self.scheduling: + _dict['scheduling'] = _to_openapi_value(self.scheduling) # override the default output from pydantic by calling `to_dict()` of selector if self.selector: _dict['selector'] = _to_openapi_value(self.selector) @@ -344,6 +352,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "parallelism": obj.get("parallelism"), "podFailurePolicy": V1PodFailurePolicy.from_dict(obj["podFailurePolicy"]) if obj.get("podFailurePolicy") is not None else None, "podReplacementPolicy": obj.get("podReplacementPolicy"), + "scheduling": V1JobSchedulingConfiguration.from_dict(obj["scheduling"]) if obj.get("scheduling") is not None else None, "selector": V1LabelSelector.from_dict(obj["selector"]) if obj.get("selector") is not None else None, "successPolicy": V1SuccessPolicy.from_dict(obj["successPolicy"]) if obj.get("successPolicy") is not None else None, "suspend": obj.get("suspend"), diff --git a/kubernetes/client/models/v1_job_status.py b/kubernetes/client/models/v1_job_status.py index ef93bb1612..c85737d321 100644 --- a/kubernetes/client/models/v1_job_status.py +++ b/kubernetes/client/models/v1_job_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -115,7 +115,7 @@ class V1JobStatus(BaseModel): ready: Optional[StrictInt] = Field(default=None, description="The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).") start_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("startTime", "start_time"), serialization_alias="startTime", description="Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC. Once set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished.") succeeded: Optional[StrictInt] = Field(default=None, description="The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs.") - terminating: Optional[StrictInt] = Field(default=None, description="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).") + terminating: Optional[StrictInt] = Field(default=None, description="The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).") uncounted_terminated_pods: Optional[V1UncountedTerminatedPods] = Field(default=None, validation_alias=AliasChoices("uncountedTerminatedPods", "uncounted_terminated_pods"), serialization_alias="uncountedTerminatedPods") openapi_types: ClassVar[Dict[str, str]] = { "active": "int", diff --git a/kubernetes/client/models/v1_job_template_spec.py b/kubernetes/client/models/v1_job_template_spec.py index a69874d804..93fdaa465f 100644 --- a/kubernetes/client/models/v1_job_template_spec.py +++ b/kubernetes/client/models/v1_job_template_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_json_patch.py b/kubernetes/client/models/v1_json_patch.py index a28aad5250..4926a82709 100644 --- a/kubernetes/client/models/v1_json_patch.py +++ b/kubernetes/client/models/v1_json_patch.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_json_schema_props.py b/kubernetes/client/models/v1_json_schema_props.py index 1ce3e62b02..ac4b2fb6d3 100644 --- a/kubernetes/client/models/v1_json_schema_props.py +++ b/kubernetes/client/models/v1_json_schema_props.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_key_to_path.py b/kubernetes/client/models/v1_key_to_path.py index 4cf41745c2..7caa268847 100644 --- a/kubernetes/client/models/v1_key_to_path.py +++ b/kubernetes/client/models/v1_key_to_path.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,18 +105,21 @@ class V1KeyToPath(BaseModel): key: StrictStr = Field(description="key is the key to project.") mode: Optional[StrictInt] = Field(default=None, description="mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") path: StrictStr = Field(description="path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.") + user: Optional[StrictInt] = Field(default=None, description="user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") openapi_types: ClassVar[Dict[str, str]] = { "key": "str", "mode": "int", - "path": "str" + "path": "str", + "user": "int" } attribute_map: ClassVar[Dict[str, str]] = { "key": "key", "mode": "mode", - "path": "path" + "path": "path", + "user": "user" } - __properties: ClassVar[List[str]] = ["key", "mode", "path"] + __properties: ClassVar[List[str]] = ["key", "mode", "path", "user"] model_config = ConfigDict( validate_by_name=True, @@ -168,6 +171,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("key" if serialize else "key"): _to_legacy_value(getattr(self, "key", None), serialize), ("mode" if serialize else "mode"): _to_legacy_value(getattr(self, "mode", None), serialize), ("path" if serialize else "path"): _to_legacy_value(getattr(self, "path", None), serialize), + ("user" if serialize else "user"): _to_legacy_value(getattr(self, "user", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -214,6 +218,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "key": obj.get("key"), "mode": obj.get("mode"), - "path": obj.get("path") + "path": obj.get("path"), + "user": obj.get("user") }) return _obj diff --git a/kubernetes/client/models/v1_label_selector.py b/kubernetes/client/models/v1_label_selector.py index 935491bfb6..f28b932446 100644 --- a/kubernetes/client/models/v1_label_selector.py +++ b/kubernetes/client/models/v1_label_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_label_selector_attributes.py b/kubernetes/client/models/v1_label_selector_attributes.py index ccb31eedf9..ee4774ca01 100644 --- a/kubernetes/client/models/v1_label_selector_attributes.py +++ b/kubernetes/client/models/v1_label_selector_attributes.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_label_selector_requirement.py b/kubernetes/client/models/v1_label_selector_requirement.py index 799df125e6..f34bc3b463 100644 --- a/kubernetes/client/models/v1_label_selector_requirement.py +++ b/kubernetes/client/models/v1_label_selector_requirement.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_lease.py b/kubernetes/client/models/v1_lease.py index 036b86221c..402014e088 100644 --- a/kubernetes/client/models/v1_lease.py +++ b/kubernetes/client/models/v1_lease.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_lease_list.py b/kubernetes/client/models/v1_lease_list.py index 6815b7aae5..782de582cc 100644 --- a/kubernetes/client/models/v1_lease_list.py +++ b/kubernetes/client/models/v1_lease_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_lease_spec.py b/kubernetes/client/models/v1_lease_spec.py index 5ef319c0df..4e23aafe4b 100644 --- a/kubernetes/client/models/v1_lease_spec.py +++ b/kubernetes/client/models/v1_lease_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,9 +108,9 @@ class V1LeaseSpec(BaseModel): holder_identity: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("holderIdentity", "holder_identity"), serialization_alias="holderIdentity", description="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.") lease_duration_seconds: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("leaseDurationSeconds", "lease_duration_seconds"), serialization_alias="leaseDurationSeconds", description="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.") lease_transitions: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("leaseTransitions", "lease_transitions"), serialization_alias="leaseTransitions", description="leaseTransitions is the number of transitions of a lease between holders.") - preferred_holder: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preferredHolder", "preferred_holder"), serialization_alias="preferredHolder", description="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.") + preferred_holder: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preferredHolder", "preferred_holder"), serialization_alias="preferredHolder", description="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.") renew_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("renewTime", "renew_time"), serialization_alias="renewTime", description="renewTime is a time when the current holder of a lease has last updated the lease.") - strategy: Optional[StrictStr] = Field(default=None, description="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.") + strategy: Optional[StrictStr] = Field(default=None, description="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.") openapi_types: ClassVar[Dict[str, str]] = { "acquire_time": "datetime", "holder_identity": "str", diff --git a/kubernetes/client/models/v1_lifecycle.py b/kubernetes/client/models/v1_lifecycle.py index 5ac7cef042..0f12f7056a 100644 --- a/kubernetes/client/models/v1_lifecycle.py +++ b/kubernetes/client/models/v1_lifecycle.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_lifecycle_handler.py b/kubernetes/client/models/v1_lifecycle_handler.py index 4c42d670d0..afec7c24f1 100644 --- a/kubernetes/client/models/v1_lifecycle_handler.py +++ b/kubernetes/client/models/v1_lifecycle_handler.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_limit_range.py b/kubernetes/client/models/v1_limit_range.py index 6e20fc2113..44b323fed7 100644 --- a/kubernetes/client/models/v1_limit_range.py +++ b/kubernetes/client/models/v1_limit_range.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_limit_range_item.py b/kubernetes/client/models/v1_limit_range_item.py index dd341fd6d9..05f3fe45bb 100644 --- a/kubernetes/client/models/v1_limit_range_item.py +++ b/kubernetes/client/models/v1_limit_range_item.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_limit_range_list.py b/kubernetes/client/models/v1_limit_range_list.py index f54e28bc37..f6218c424a 100644 --- a/kubernetes/client/models/v1_limit_range_list.py +++ b/kubernetes/client/models/v1_limit_range_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_limit_range_spec.py b/kubernetes/client/models/v1_limit_range_spec.py index 83259c7e5b..c41916c589 100644 --- a/kubernetes/client/models/v1_limit_range_spec.py +++ b/kubernetes/client/models/v1_limit_range_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_limit_response.py b/kubernetes/client/models/v1_limit_response.py index 0cd1e88b13..0468581197 100644 --- a/kubernetes/client/models/v1_limit_response.py +++ b/kubernetes/client/models/v1_limit_response.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_limited_priority_level_configuration.py b/kubernetes/client/models/v1_limited_priority_level_configuration.py index d2271a6f1d..d8bdb1fdfe 100644 --- a/kubernetes/client/models/v1_limited_priority_level_configuration.py +++ b/kubernetes/client/models/v1_limited_priority_level_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -106,7 +106,7 @@ class V1LimitedPriorityLevelConfiguration(BaseModel): """ # noqa: E501 borrowing_limit_percent: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("borrowingLimitPercent", "borrowing_limit_percent"), serialization_alias="borrowingLimitPercent", description="`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.") lendable_percent: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("lendablePercent", "lendable_percent"), serialization_alias="lendablePercent", description="`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 )") - limit_response: Optional[V1LimitResponse] = Field(default=None, validation_alias=AliasChoices("limitResponse", "limit_response"), serialization_alias="limitResponse") + limit_response: V1LimitResponse = Field(validation_alias=AliasChoices("limitResponse", "limit_response"), serialization_alias="limitResponse") nominal_concurrency_shares: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("nominalConcurrencyShares", "nominal_concurrency_shares"), serialization_alias="nominalConcurrencyShares", description="`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)") openapi_types: ClassVar[Dict[str, str]] = { "borrowing_limit_percent": "int", diff --git a/kubernetes/client/models/v1_linux_container_user.py b/kubernetes/client/models/v1_linux_container_user.py index 5ce561ff00..e91e29517a 100644 --- a/kubernetes/client/models/v1_linux_container_user.py +++ b/kubernetes/client/models/v1_linux_container_user.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_list_meta.py b/kubernetes/client/models/v1_list_meta.py index 54b82190a2..80f36c0fe8 100644 --- a/kubernetes/client/models/v1_list_meta.py +++ b/kubernetes/client/models/v1_list_meta.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_load_balancer_ingress.py b/kubernetes/client/models/v1_load_balancer_ingress.py index 1baa2d97db..38d1280eb8 100644 --- a/kubernetes/client/models/v1_load_balancer_ingress.py +++ b/kubernetes/client/models/v1_load_balancer_ingress.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_load_balancer_status.py b/kubernetes/client/models/v1_load_balancer_status.py index 913ef81969..17aeb5770d 100644 --- a/kubernetes/client/models/v1_load_balancer_status.py +++ b/kubernetes/client/models/v1_load_balancer_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_local_object_reference.py b/kubernetes/client/models/v1_local_object_reference.py index 65c23eceb5..3dae59c1c3 100644 --- a/kubernetes/client/models/v1_local_object_reference.py +++ b/kubernetes/client/models/v1_local_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_local_subject_access_review.py b/kubernetes/client/models/v1_local_subject_access_review.py index 3f14ee7a28..330f3cc6cf 100644 --- a/kubernetes/client/models/v1_local_subject_access_review.py +++ b/kubernetes/client/models/v1_local_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_local_volume_source.py b/kubernetes/client/models/v1_local_volume_source.py index 508dbe65ca..a7b6eb7eca 100644 --- a/kubernetes/client/models/v1_local_volume_source.py +++ b/kubernetes/client/models/v1_local_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_managed_fields_entry.py b/kubernetes/client/models/v1_managed_fields_entry.py index 3e26308e94..94ff5a8dfd 100644 --- a/kubernetes/client/models/v1_managed_fields_entry.py +++ b/kubernetes/client/models/v1_managed_fields_entry.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_match_condition.py b/kubernetes/client/models/v1_match_condition.py index f2da4d956f..3b9494cfb0 100644 --- a/kubernetes/client/models/v1_match_condition.py +++ b/kubernetes/client/models/v1_match_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_match_resources.py b/kubernetes/client/models/v1_match_resources.py index cc5e4db5df..0c141da1bd 100644 --- a/kubernetes/client/models/v1_match_resources.py +++ b/kubernetes/client/models/v1_match_resources.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_modify_volume_status.py b/kubernetes/client/models/v1_modify_volume_status.py index ba282cd8b1..c2e6417c3d 100644 --- a/kubernetes/client/models/v1_modify_volume_status.py +++ b/kubernetes/client/models/v1_modify_volume_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_mutating_admission_policy.py b/kubernetes/client/models/v1_mutating_admission_policy.py index 63b43a5eec..5799baa584 100644 --- a/kubernetes/client/models/v1_mutating_admission_policy.py +++ b/kubernetes/client/models/v1_mutating_admission_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_mutating_admission_policy_binding.py b/kubernetes/client/models/v1_mutating_admission_policy_binding.py index 80b40175b0..f49e429d23 100644 --- a/kubernetes/client/models/v1_mutating_admission_policy_binding.py +++ b/kubernetes/client/models/v1_mutating_admission_policy_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_mutating_admission_policy_binding_list.py b/kubernetes/client/models/v1_mutating_admission_policy_binding_list.py index 474da0791a..3f9c088de2 100644 --- a/kubernetes/client/models/v1_mutating_admission_policy_binding_list.py +++ b/kubernetes/client/models/v1_mutating_admission_policy_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_mutating_admission_policy_binding_spec.py b/kubernetes/client/models/v1_mutating_admission_policy_binding_spec.py index fc7d9344c7..b7ca151b5f 100644 --- a/kubernetes/client/models/v1_mutating_admission_policy_binding_spec.py +++ b/kubernetes/client/models/v1_mutating_admission_policy_binding_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_mutating_admission_policy_list.py b/kubernetes/client/models/v1_mutating_admission_policy_list.py index 843e027ed1..52cb1f9942 100644 --- a/kubernetes/client/models/v1_mutating_admission_policy_list.py +++ b/kubernetes/client/models/v1_mutating_admission_policy_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_mutating_admission_policy_spec.py b/kubernetes/client/models/v1_mutating_admission_policy_spec.py index f5761c32a1..396c6c2ee8 100644 --- a/kubernetes/client/models/v1_mutating_admission_policy_spec.py +++ b/kubernetes/client/models/v1_mutating_admission_policy_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_mutating_webhook.py b/kubernetes/client/models/v1_mutating_webhook.py index 40f5d52cc6..6a03629d2d 100644 --- a/kubernetes/client/models/v1_mutating_webhook.py +++ b/kubernetes/client/models/v1_mutating_webhook.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_mutating_webhook_configuration.py b/kubernetes/client/models/v1_mutating_webhook_configuration.py index b2a0414777..127827f049 100644 --- a/kubernetes/client/models/v1_mutating_webhook_configuration.py +++ b/kubernetes/client/models/v1_mutating_webhook_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_mutating_webhook_configuration_list.py b/kubernetes/client/models/v1_mutating_webhook_configuration_list.py index ced371e3cc..8e1daf38f7 100644 --- a/kubernetes/client/models/v1_mutating_webhook_configuration_list.py +++ b/kubernetes/client/models/v1_mutating_webhook_configuration_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_mutation.py b/kubernetes/client/models/v1_mutation.py index 20b42b5171..848e72a663 100644 --- a/kubernetes/client/models/v1_mutation.py +++ b/kubernetes/client/models/v1_mutation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_named_rule_with_operations.py b/kubernetes/client/models/v1_named_rule_with_operations.py index f89cc21c7c..961fbc5561 100644 --- a/kubernetes/client/models/v1_named_rule_with_operations.py +++ b/kubernetes/client/models/v1_named_rule_with_operations.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_namespace.py b/kubernetes/client/models/v1_namespace.py index 9e2bb50c93..7d98f5de6b 100644 --- a/kubernetes/client/models/v1_namespace.py +++ b/kubernetes/client/models/v1_namespace.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_namespace_condition.py b/kubernetes/client/models/v1_namespace_condition.py index e74f3d455d..3e7e3910b6 100644 --- a/kubernetes/client/models/v1_namespace_condition.py +++ b/kubernetes/client/models/v1_namespace_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_namespace_list.py b/kubernetes/client/models/v1_namespace_list.py index 03aff37ebe..0f8e21e6db 100644 --- a/kubernetes/client/models/v1_namespace_list.py +++ b/kubernetes/client/models/v1_namespace_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_namespace_spec.py b/kubernetes/client/models/v1_namespace_spec.py index 2f5fb099f4..40dbf609cd 100644 --- a/kubernetes/client/models/v1_namespace_spec.py +++ b/kubernetes/client/models/v1_namespace_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_namespace_status.py b/kubernetes/client/models/v1_namespace_status.py index 307c2ef5f3..dfbd5c3f0e 100644 --- a/kubernetes/client/models/v1_namespace_status.py +++ b/kubernetes/client/models/v1_namespace_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_network_device_data.py b/kubernetes/client/models/v1_network_device_data.py index 61579eeff7..697b7c2c61 100644 --- a/kubernetes/client/models/v1_network_device_data.py +++ b/kubernetes/client/models/v1_network_device_data.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_network_policy.py b/kubernetes/client/models/v1_network_policy.py index 0e0bbbbb53..f1ef143604 100644 --- a/kubernetes/client/models/v1_network_policy.py +++ b/kubernetes/client/models/v1_network_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_network_policy_egress_rule.py b/kubernetes/client/models/v1_network_policy_egress_rule.py index 5ed3d1cb24..466cf7996c 100644 --- a/kubernetes/client/models/v1_network_policy_egress_rule.py +++ b/kubernetes/client/models/v1_network_policy_egress_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_network_policy_ingress_rule.py b/kubernetes/client/models/v1_network_policy_ingress_rule.py index 27dcaceb42..8aff36f15e 100644 --- a/kubernetes/client/models/v1_network_policy_ingress_rule.py +++ b/kubernetes/client/models/v1_network_policy_ingress_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_network_policy_list.py b/kubernetes/client/models/v1_network_policy_list.py index d0c449d6f1..911e309554 100644 --- a/kubernetes/client/models/v1_network_policy_list.py +++ b/kubernetes/client/models/v1_network_policy_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_network_policy_peer.py b/kubernetes/client/models/v1_network_policy_peer.py index 219682c2b6..20e6e2a426 100644 --- a/kubernetes/client/models/v1_network_policy_peer.py +++ b/kubernetes/client/models/v1_network_policy_peer.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_network_policy_port.py b/kubernetes/client/models/v1_network_policy_port.py index 09b5850b55..3aba96368d 100644 --- a/kubernetes/client/models/v1_network_policy_port.py +++ b/kubernetes/client/models/v1_network_policy_port.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_network_policy_spec.py b/kubernetes/client/models/v1_network_policy_spec.py index df366df6aa..b8f7f4b4aa 100644 --- a/kubernetes/client/models/v1_network_policy_spec.py +++ b/kubernetes/client/models/v1_network_policy_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_nfs_volume_source.py b/kubernetes/client/models/v1_nfs_volume_source.py index c231331df0..d788ac6150 100644 --- a/kubernetes/client/models/v1_nfs_volume_source.py +++ b/kubernetes/client/models/v1_nfs_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_node.py b/kubernetes/client/models/v1_node.py index 4c8d5fc4a9..ba0ac676de 100644 --- a/kubernetes/client/models/v1_node.py +++ b/kubernetes/client/models/v1_node.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_node_address.py b/kubernetes/client/models/v1_node_address.py index e917c96815..80ee22be5b 100644 --- a/kubernetes/client/models/v1_node_address.py +++ b/kubernetes/client/models/v1_node_address.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_node_affinity.py b/kubernetes/client/models/v1_node_affinity.py index 131b273eba..5b9598a79e 100644 --- a/kubernetes/client/models/v1_node_affinity.py +++ b/kubernetes/client/models/v1_node_affinity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_node_allocatable_mapped_resources.py b/kubernetes/client/models/v1_node_allocatable_mapped_resources.py new file mode 100644 index 0000000000..3fd8739210 --- /dev/null +++ b/kubernetes/client/models/v1_node_allocatable_mapped_resources.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1NodeAllocatableMappedResources(BaseModel): + """ + NodeAllocatableMappedResources describes mapped node allocatable resource allocations. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + name: StrictStr = Field(description="Name is the name of the resource (e.g., cpu, memory).") + quantity: StrictStr = Field(description="Quantity is the total node allocatable resource capacity allocated for the claim. This claim's allocated devices is shared by all the containers referencing the claim. Kubelet adds this value to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.") + openapi_types: ClassVar[Dict[str, str]] = { + "name": "str", + "quantity": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "name": "name", + "quantity": "quantity" + } + __properties: ClassVar[List[str]] = ["name", "quantity"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeAllocatableMappedResources): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeAllocatableMappedResources): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1NodeAllocatableMappedResources from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("quantity" if serialize else "quantity"): _to_legacy_value(getattr(self, "quantity", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1NodeAllocatableMappedResources from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "quantity": obj.get("quantity") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1beta2_node_allocatable_resource_mapping.py b/kubernetes/client/models/v1_node_allocatable_mapping.py similarity index 66% rename from kubernetes/aio/client/models/v1beta2_node_allocatable_resource_mapping.py rename to kubernetes/client/models/v1_node_allocatable_mapping.py index 51547eb19d..ccb1f86ad3 100644 --- a/kubernetes/aio/client/models/v1beta2_node_allocatable_resource_mapping.py +++ b/kubernetes/client/models/v1_node_allocatable_mapping.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -93,9 +93,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1beta2NodeAllocatableResourceMapping(BaseModel): +class V1NodeAllocatableMapping(BaseModel): """ - NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. + NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. Attributes: openapi_types (dict): The key is attribute name @@ -103,18 +103,21 @@ class V1beta2NodeAllocatableResourceMapping(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - allocation_multiplier: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("allocationMultiplier", "allocation_multiplier"), serialization_alias="allocationMultiplier", 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. 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.") - capacity_key: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("capacityKey", "capacity_key"), serialization_alias="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\".") + capacity_key: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("capacityKey", "capacity_key"), serialization_alias="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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.") + capacity_multiplier: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("capacityMultiplier", "capacity_multiplier"), serialization_alias="capacityMultiplier", description="CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16.") + device_multiplier: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("deviceMultiplier", "device_multiplier"), serialization_alias="deviceMultiplier", description="DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set.") openapi_types: ClassVar[Dict[str, str]] = { - "allocation_multiplier": "str", - "capacity_key": "str" + "capacity_key": "str", + "capacity_multiplier": "str", + "device_multiplier": "str" } attribute_map: ClassVar[Dict[str, str]] = { - "allocation_multiplier": "allocationMultiplier", - "capacity_key": "capacityKey" + "capacity_key": "capacityKey", + "capacity_multiplier": "capacityMultiplier", + "device_multiplier": "deviceMultiplier" } - __properties: ClassVar[List[str]] = ["allocationMultiplier", "capacityKey"] + __properties: ClassVar[List[str]] = ["capacityKey", "capacityMultiplier", "deviceMultiplier"] @classmethod def __preprocess_input_names( @@ -125,12 +128,15 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) - if "allocationMultiplier" not in obj and "allocation_multiplier" in obj: - obj["allocationMultiplier"] = obj["allocation_multiplier"] - obj.pop("allocation_multiplier", None) if "capacityKey" not in obj and "capacity_key" in obj: obj["capacityKey"] = obj["capacity_key"] obj.pop("capacity_key", None) + if "capacityMultiplier" not in obj and "capacity_multiplier" in obj: + obj["capacityMultiplier"] = obj["capacity_multiplier"] + obj.pop("capacity_multiplier", None) + if "deviceMultiplier" not in obj and "device_multiplier" in obj: + obj["deviceMultiplier"] = obj["device_multiplier"] + obj.pop("device_multiplier", None) return obj model_config = ConfigDict( @@ -152,14 +158,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1beta2NodeAllocatableResourceMapping): + if not isinstance(other, V1NodeAllocatableMapping): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1beta2NodeAllocatableResourceMapping): + if not isinstance(other, V1NodeAllocatableMapping): return True return not (self == other) @@ -174,14 +180,15 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta2NodeAllocatableResourceMapping from a JSON string""" + """Create an instance of V1NodeAllocatableMapping from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { - ("allocationMultiplier" if serialize else "allocation_multiplier"): _to_legacy_value(getattr(self, "allocation_multiplier", None), serialize), ("capacityKey" if serialize else "capacity_key"): _to_legacy_value(getattr(self, "capacity_key", None), serialize), + ("capacityMultiplier" if serialize else "capacity_multiplier"): _to_legacy_value(getattr(self, "capacity_multiplier", None), serialize), + ("deviceMultiplier" if serialize else "device_multiplier"): _to_legacy_value(getattr(self, "device_multiplier", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -218,7 +225,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta2NodeAllocatableResourceMapping from a dict""" + """Create an instance of V1NodeAllocatableMapping from a dict""" if obj is None: return None @@ -234,7 +241,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ - "allocationMultiplier": obj.get("allocationMultiplier"), - "capacityKey": obj.get("capacityKey") + "capacityKey": obj.get("capacityKey"), + "capacityMultiplier": obj.get("capacityMultiplier"), + "deviceMultiplier": obj.get("deviceMultiplier") }) return _obj diff --git a/kubernetes/client/models/v1_node_allocatable_overhead.py b/kubernetes/client/models/v1_node_allocatable_overhead.py new file mode 100644 index 0000000000..cbb994195b --- /dev/null +++ b/kubernetes/client/models/v1_node_allocatable_overhead.py @@ -0,0 +1,240 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1NodeAllocatableOverhead(BaseModel): + """ + NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + per_container: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("perContainer", "per_container"), serialization_alias="perContainer", description="PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once.") + per_pod: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("perPod", "per_pod"), serialization_alias="perPod", description="PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim.") + openapi_types: ClassVar[Dict[str, str]] = { + "per_container": "str", + "per_pod": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "per_container": "perContainer", + "per_pod": "perPod" + } + __properties: ClassVar[List[str]] = ["perContainer", "perPod"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "perContainer" not in obj and "per_container" in obj: + obj["perContainer"] = obj["per_container"] + obj.pop("per_container", None) + if "perPod" not in obj and "per_pod" in obj: + obj["perPod"] = obj["per_pod"] + obj.pop("per_pod", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeAllocatableOverhead): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeAllocatableOverhead): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1NodeAllocatableOverhead from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("perContainer" if serialize else "per_container"): _to_legacy_value(getattr(self, "per_container", None), serialize), + ("perPod" if serialize else "per_pod"): _to_legacy_value(getattr(self, "per_pod", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1NodeAllocatableOverhead from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "perContainer": obj.get("perContainer"), + "perPod": obj.get("perPod") + }) + return _obj diff --git a/kubernetes/client/models/v1_node_allocatable_overhead_resources.py b/kubernetes/client/models/v1_node_allocatable_overhead_resources.py new file mode 100644 index 0000000000..aba85fbdee --- /dev/null +++ b/kubernetes/client/models/v1_node_allocatable_overhead_resources.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1NodeAllocatableOverheadResources(BaseModel): + """ + NodeAllocatableOverheadResources describes auxiliary overhead resource allocations. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + name: StrictStr = Field(description="Name is the name of the resource (e.g., cpu, memory).") + per_container: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("perContainer", "per_container"), serialization_alias="perContainer", description="PerContainer is the variable overhead quantity applied for each container referencing the claim. The container references are recorded in `nodeAllocatableResourceClaimStatuses.containers`. The total overhead quantity allocated for the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once. At least one of PerPod or PerContainer must be specified. Specifying neither is an invalid configuration.") + per_pod: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("perPod", "per_pod"), serialization_alias="perPod", description="PerPod is the flat overhead quantity allocated per pod. Adding to each container limit allows individual containers to utilize the overhead, while the parent pod-level cgroup limit caps the total usage at the pod boundary where the overhead is accounted for exactly once. At least one of PerPod or PerContainer must be specified. Specifying neither is an invalid configuration.") + openapi_types: ClassVar[Dict[str, str]] = { + "name": "str", + "per_container": "str", + "per_pod": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "name": "name", + "per_container": "perContainer", + "per_pod": "perPod" + } + __properties: ClassVar[List[str]] = ["name", "perContainer", "perPod"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "perContainer" not in obj and "per_container" in obj: + obj["perContainer"] = obj["per_container"] + obj.pop("per_container", None) + if "perPod" not in obj and "per_pod" in obj: + obj["perPod"] = obj["per_pod"] + obj.pop("per_pod", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeAllocatableOverheadResources): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeAllocatableOverheadResources): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1NodeAllocatableOverheadResources from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("perContainer" if serialize else "per_container"): _to_legacy_value(getattr(self, "per_container", None), serialize), + ("perPod" if serialize else "per_pod"): _to_legacy_value(getattr(self, "per_pod", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1NodeAllocatableOverheadResources from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "perContainer": obj.get("perContainer"), + "perPod": obj.get("perPod") + }) + return _obj diff --git a/kubernetes/client/models/v1_node_allocatable_resource.py b/kubernetes/client/models/v1_node_allocatable_resource.py new file mode 100644 index 0000000000..dd83f036e0 --- /dev/null +++ b/kubernetes/client/models/v1_node_allocatable_resource.py @@ -0,0 +1,222 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.client.models.v1_node_allocatable_mapping import V1NodeAllocatableMapping +from kubernetes.client.models.v1_node_allocatable_overhead import V1NodeAllocatableOverhead +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1NodeAllocatableResource(BaseModel): + """ + NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + mapping: Optional[V1NodeAllocatableMapping] = None + overhead: Optional[V1NodeAllocatableOverhead] = None + openapi_types: ClassVar[Dict[str, str]] = { + "mapping": "V1NodeAllocatableMapping", + "overhead": "V1NodeAllocatableOverhead" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "mapping": "mapping", + "overhead": "overhead" + } + __properties: ClassVar[List[str]] = ["mapping", "overhead"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeAllocatableResource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeAllocatableResource): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1NodeAllocatableResource from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("mapping" if serialize else "mapping"): _to_legacy_value(getattr(self, "mapping", None), serialize), + ("overhead" if serialize else "overhead"): _to_legacy_value(getattr(self, "overhead", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of mapping + if self.mapping: + _dict['mapping'] = _to_openapi_value(self.mapping) + # override the default output from pydantic by calling `to_dict()` of overhead + if self.overhead: + _dict['overhead'] = _to_openapi_value(self.overhead) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1NodeAllocatableResource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "mapping": V1NodeAllocatableMapping.from_dict(obj["mapping"]) if obj.get("mapping") is not None else None, + "overhead": V1NodeAllocatableOverhead.from_dict(obj["overhead"]) if obj.get("overhead") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1_node_allocatable_resource_claim_status.py b/kubernetes/client/models/v1_node_allocatable_resource_claim_status.py index 343836fbbc..a4391beafa 100644 --- a/kubernetes/client/models/v1_node_allocatable_resource_claim_status.py +++ b/kubernetes/client/models/v1_node_allocatable_resource_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,6 +20,8 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_node_allocatable_mapped_resources import V1NodeAllocatableMappedResources +from kubernetes.client.models.v1_node_allocatable_overhead_resources import V1NodeAllocatableOverheadResources from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -104,20 +106,23 @@ class V1NodeAllocatableResourceClaimStatus(BaseModel): and the value is json key in definition. """ # noqa: E501 containers: Optional[List[StrictStr]] = Field(default=None, description="Containers lists the names of all containers in this pod that reference the claim.") + mapping: Optional[List[V1NodeAllocatableMappedResources]] = Field(default=None, description="Mapping contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].mapping` field. This is used by kubelet for pod level and container-level cgroup enforcement.") + overhead: Optional[List[V1NodeAllocatableOverheadResources]] = Field(default=None, description="Overhead contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].overhead` field. This is used by kubelet for pod level and container-level cgroup enforcement.") resource_claim_name: StrictStr = Field(validation_alias=AliasChoices("resourceClaimName", "resource_claim_name"), serialization_alias="resourceClaimName", description="ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.") - resources: Dict[str, StrictStr] = Field(description="Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.") openapi_types: ClassVar[Dict[str, str]] = { "containers": "List[str]", - "resource_claim_name": "str", - "resources": "Dict[str, str]" + "mapping": "List[V1NodeAllocatableMappedResources]", + "overhead": "List[V1NodeAllocatableOverheadResources]", + "resource_claim_name": "str" } attribute_map: ClassVar[Dict[str, str]] = { "containers": "containers", - "resource_claim_name": "resourceClaimName", - "resources": "resources" + "mapping": "mapping", + "overhead": "overhead", + "resource_claim_name": "resourceClaimName" } - __properties: ClassVar[List[str]] = ["containers", "resourceClaimName", "resources"] + __properties: ClassVar[List[str]] = ["containers", "mapping", "overhead", "resourceClaimName"] @classmethod def __preprocess_input_names( @@ -181,8 +186,9 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { ("containers" if serialize else "containers"): _to_legacy_value(getattr(self, "containers", None), serialize), + ("mapping" if serialize else "mapping"): _to_legacy_value(getattr(self, "mapping", None), serialize), + ("overhead" if serialize else "overhead"): _to_legacy_value(getattr(self, "overhead", None), serialize), ("resourceClaimName" if serialize else "resource_claim_name"): _to_legacy_value(getattr(self, "resource_claim_name", None), serialize), - ("resources" if serialize else "resources"): _to_legacy_value(getattr(self, "resources", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -203,6 +209,18 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in mapping (list) + _items = [] + if self.mapping: + for _item_mapping in self.mapping: + _items.append(_to_openapi_value(_item_mapping) if _item_mapping is not None else None) + _dict['mapping'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in overhead (list) + _items = [] + if self.overhead: + for _item_overhead in self.overhead: + _items.append(_to_openapi_value(_item_overhead) if _item_overhead is not None else None) + _dict['overhead'] = _items return _dict setattr( @@ -236,7 +254,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "containers": obj.get("containers"), - "resourceClaimName": obj.get("resourceClaimName"), - "resources": obj.get("resources") + "mapping": [V1NodeAllocatableMappedResources.from_dict(_item) for _item in obj["mapping"]] if obj.get("mapping") is not None else None, + "overhead": [V1NodeAllocatableOverheadResources.from_dict(_item) for _item in obj["overhead"]] if obj.get("overhead") is not None else None, + "resourceClaimName": obj.get("resourceClaimName") }) return _obj diff --git a/kubernetes/client/models/v1_node_condition.py b/kubernetes/client/models/v1_node_condition.py index ec5a3cbac2..d98f30181b 100644 --- a/kubernetes/client/models/v1_node_condition.py +++ b/kubernetes/client/models/v1_node_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_node_config_source.py b/kubernetes/client/models/v1_node_config_source.py index eba789011b..0f333d655c 100644 --- a/kubernetes/client/models/v1_node_config_source.py +++ b/kubernetes/client/models/v1_node_config_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_node_config_status.py b/kubernetes/client/models/v1_node_config_status.py index 24dc0a45bf..76a3d94432 100644 --- a/kubernetes/client/models/v1_node_config_status.py +++ b/kubernetes/client/models/v1_node_config_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_node_daemon_endpoints.py b/kubernetes/client/models/v1_node_daemon_endpoints.py index 9e77f4bcac..2ef57a5290 100644 --- a/kubernetes/client/models/v1_node_daemon_endpoints.py +++ b/kubernetes/client/models/v1_node_daemon_endpoints.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_node_features.py b/kubernetes/client/models/v1_node_features.py index 3ac5c73c57..7ad62bd8d3 100644 --- a/kubernetes/client/models/v1_node_features.py +++ b/kubernetes/client/models/v1_node_features.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_node_list.py b/kubernetes/client/models/v1_node_list.py index 758e5a0d60..36d6c19f4b 100644 --- a/kubernetes/client/models/v1_node_list.py +++ b/kubernetes/client/models/v1_node_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_node_pod_preemption_policy.py b/kubernetes/client/models/v1_node_pod_preemption_policy.py new file mode 100644 index 0000000000..9dd5a8ae37 --- /dev/null +++ b/kubernetes/client/models/v1_node_pod_preemption_policy.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1NodePodPreemptionPolicy(BaseModel): + """ + NodePodPreemptionPolicy defines the node-level policies governing preemption for pods on this node. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + disable_resize_preemption: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("disableResizePreemption", "disable_resize_preemption"), serialization_alias="disableResizePreemption", description="DisableResizePreemption lists the owners (e.g., autoscalers, operators, administrators) that have requested to disable scheduler and Kubelet preemption for in-place pod resize on this node. If this list is non-empty, resize-induced preemption is disabled on this node. This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption feature gate.") + openapi_types: ClassVar[Dict[str, str]] = { + "disable_resize_preemption": "List[str]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "disable_resize_preemption": "disableResizePreemption" + } + __properties: ClassVar[List[str]] = ["disableResizePreemption"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "disableResizePreemption" not in obj and "disable_resize_preemption" in obj: + obj["disableResizePreemption"] = obj["disable_resize_preemption"] + obj.pop("disable_resize_preemption", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1NodePodPreemptionPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodePodPreemptionPolicy): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1NodePodPreemptionPolicy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("disableResizePreemption" if serialize else "disable_resize_preemption"): _to_legacy_value(getattr(self, "disable_resize_preemption", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1NodePodPreemptionPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "disableResizePreemption": obj.get("disableResizePreemption") + }) + return _obj diff --git a/kubernetes/client/models/v1_node_runtime_handler.py b/kubernetes/client/models/v1_node_runtime_handler.py index b08d69596b..43b39665eb 100644 --- a/kubernetes/client/models/v1_node_runtime_handler.py +++ b/kubernetes/client/models/v1_node_runtime_handler.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_node_runtime_handler_features.py b/kubernetes/client/models/v1_node_runtime_handler_features.py index 641b5f9e62..666d5844a8 100644 --- a/kubernetes/client/models/v1_node_runtime_handler_features.py +++ b/kubernetes/client/models/v1_node_runtime_handler_features.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_node_selector.py b/kubernetes/client/models/v1_node_selector.py index 44961cf929..a9fb8e0f1a 100644 --- a/kubernetes/client/models/v1_node_selector.py +++ b/kubernetes/client/models/v1_node_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_node_selector_requirement.py b/kubernetes/client/models/v1_node_selector_requirement.py index 57605057d3..47844421ef 100644 --- a/kubernetes/client/models/v1_node_selector_requirement.py +++ b/kubernetes/client/models/v1_node_selector_requirement.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_node_selector_term.py b/kubernetes/client/models/v1_node_selector_term.py index b6c368ba1f..784e3f3838 100644 --- a/kubernetes/client/models/v1_node_selector_term.py +++ b/kubernetes/client/models/v1_node_selector_term.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_node_spec.py b/kubernetes/client/models/v1_node_spec.py index 5b319a02d5..2eee7f709f 100644 --- a/kubernetes/client/models/v1_node_spec.py +++ b/kubernetes/client/models/v1_node_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1_node_config_source import V1NodeConfigSource +from kubernetes.client.models.v1_node_pod_preemption_policy import V1NodePodPreemptionPolicy from kubernetes.client.models.v1_taint import V1Taint from typing import Optional, Set from typing_extensions import Self @@ -109,6 +110,7 @@ class V1NodeSpec(BaseModel): external_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("externalID", "external_id"), serialization_alias="externalID", description="Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966") pod_cidr: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("podCIDR", "pod_cidr"), serialization_alias="podCIDR", description="PodCIDR represents the pod IP range assigned to the node.") pod_cidrs: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("podCIDRs", "pod_cidrs"), serialization_alias="podCIDRs", description="podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.") + pod_preemption_policy: Optional[V1NodePodPreemptionPolicy] = Field(default=None, validation_alias=AliasChoices("podPreemptionPolicy", "pod_preemption_policy"), serialization_alias="podPreemptionPolicy") provider_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("providerID", "provider_id"), serialization_alias="providerID", description="ID of the node assigned by the cloud provider in the format: ://") taints: Optional[List[V1Taint]] = Field(default=None, description="If specified, the node's taints.") unschedulable: Optional[StrictBool] = Field(default=None, description="Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration") @@ -117,6 +119,7 @@ class V1NodeSpec(BaseModel): "external_id": "str", "pod_cidr": "str", "pod_cidrs": "List[str]", + "pod_preemption_policy": "V1NodePodPreemptionPolicy", "provider_id": "str", "taints": "List[V1Taint]", "unschedulable": "bool" @@ -127,11 +130,12 @@ class V1NodeSpec(BaseModel): "external_id": "externalID", "pod_cidr": "podCIDR", "pod_cidrs": "podCIDRs", + "pod_preemption_policy": "podPreemptionPolicy", "provider_id": "providerID", "taints": "taints", "unschedulable": "unschedulable" } - __properties: ClassVar[List[str]] = ["configSource", "externalID", "podCIDR", "podCIDRs", "providerID", "taints", "unschedulable"] + __properties: ClassVar[List[str]] = ["configSource", "externalID", "podCIDR", "podCIDRs", "podPreemptionPolicy", "providerID", "taints", "unschedulable"] @classmethod def __preprocess_input_names( @@ -154,6 +158,9 @@ def __preprocess_input_names( if "podCIDRs" not in obj and "pod_cidrs" in obj: obj["podCIDRs"] = obj["pod_cidrs"] obj.pop("pod_cidrs", None) + if "podPreemptionPolicy" not in obj and "pod_preemption_policy" in obj: + obj["podPreemptionPolicy"] = obj["pod_preemption_policy"] + obj.pop("pod_preemption_policy", None) if "providerID" not in obj and "provider_id" in obj: obj["providerID"] = obj["provider_id"] obj.pop("provider_id", None) @@ -210,6 +217,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("externalID" if serialize else "external_id"): _to_legacy_value(getattr(self, "external_id", None), serialize), ("podCIDR" if serialize else "pod_cidr"): _to_legacy_value(getattr(self, "pod_cidr", None), serialize), ("podCIDRs" if serialize else "pod_cidrs"): _to_legacy_value(getattr(self, "pod_cidrs", None), serialize), + ("podPreemptionPolicy" if serialize else "pod_preemption_policy"): _to_legacy_value(getattr(self, "pod_preemption_policy", None), serialize), ("providerID" if serialize else "provider_id"): _to_legacy_value(getattr(self, "provider_id", None), serialize), ("taints" if serialize else "taints"): _to_legacy_value(getattr(self, "taints", None), serialize), ("unschedulable" if serialize else "unschedulable"): _to_legacy_value(getattr(self, "unschedulable", None), serialize), @@ -236,6 +244,9 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of config_source if self.config_source: _dict['configSource'] = _to_openapi_value(self.config_source) + # override the default output from pydantic by calling `to_dict()` of pod_preemption_policy + if self.pod_preemption_policy: + _dict['podPreemptionPolicy'] = _to_openapi_value(self.pod_preemption_policy) # override the default output from pydantic by calling `to_dict()` of each item in taints (list) _items = [] if self.taints: @@ -278,6 +289,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "externalID": obj.get("externalID"), "podCIDR": obj.get("podCIDR"), "podCIDRs": obj.get("podCIDRs"), + "podPreemptionPolicy": V1NodePodPreemptionPolicy.from_dict(obj["podPreemptionPolicy"]) if obj.get("podPreemptionPolicy") is not None else None, "providerID": obj.get("providerID"), "taints": [V1Taint.from_dict(_item) for _item in obj["taints"]] if obj.get("taints") is not None else None, "unschedulable": obj.get("unschedulable") diff --git a/kubernetes/client/models/v1_node_status.py b/kubernetes/client/models/v1_node_status.py index 7b50409651..f83060fb2b 100644 --- a/kubernetes/client/models/v1_node_status.py +++ b/kubernetes/client/models/v1_node_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_node_swap_status.py b/kubernetes/client/models/v1_node_swap_status.py index 92dc52a15e..5301d42d2d 100644 --- a/kubernetes/client/models/v1_node_swap_status.py +++ b/kubernetes/client/models/v1_node_swap_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_node_system_info.py b/kubernetes/client/models/v1_node_system_info.py index a9bcc15575..1cb81b21e3 100644 --- a/kubernetes/client/models/v1_node_system_info.py +++ b/kubernetes/client/models/v1_node_system_info.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,7 +18,7 @@ import json from collections.abc import Mapping as _Mapping -from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1_node_swap_status import V1NodeSwapStatus from typing import Optional, Set @@ -113,6 +113,7 @@ class V1NodeSystemInfo(BaseModel): machine_id: StrictStr = Field(validation_alias=AliasChoices("machineID", "machine_id"), serialization_alias="machineID", description="MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html") operating_system: StrictStr = Field(validation_alias=AliasChoices("operatingSystem", "operating_system"), serialization_alias="operatingSystem", description="The Operating System reported by the node") os_image: StrictStr = Field(validation_alias=AliasChoices("osImage", "os_image"), serialization_alias="osImage", description="OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).") + running_in_user_namespace: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("runningInUserNamespace", "running_in_user_namespace"), serialization_alias="runningInUserNamespace", description="Whether the node is running in a user namespace.") swap: Optional[V1NodeSwapStatus] = None system_uuid: StrictStr = Field(validation_alias=AliasChoices("systemUUID", "system_uuid"), serialization_alias="systemUUID", description="SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid") openapi_types: ClassVar[Dict[str, str]] = { @@ -125,6 +126,7 @@ class V1NodeSystemInfo(BaseModel): "machine_id": "str", "operating_system": "str", "os_image": "str", + "running_in_user_namespace": "bool", "swap": "V1NodeSwapStatus", "system_uuid": "str" } @@ -139,10 +141,11 @@ class V1NodeSystemInfo(BaseModel): "machine_id": "machineID", "operating_system": "operatingSystem", "os_image": "osImage", + "running_in_user_namespace": "runningInUserNamespace", "swap": "swap", "system_uuid": "systemUUID" } - __properties: ClassVar[List[str]] = ["architecture", "bootID", "containerRuntimeVersion", "kernelVersion", "kubeProxyVersion", "kubeletVersion", "machineID", "operatingSystem", "osImage", "swap", "systemUUID"] + __properties: ClassVar[List[str]] = ["architecture", "bootID", "containerRuntimeVersion", "kernelVersion", "kubeProxyVersion", "kubeletVersion", "machineID", "operatingSystem", "osImage", "runningInUserNamespace", "swap", "systemUUID"] @classmethod def __preprocess_input_names( @@ -177,6 +180,9 @@ def __preprocess_input_names( if "osImage" not in obj and "os_image" in obj: obj["osImage"] = obj["os_image"] obj.pop("os_image", None) + if "runningInUserNamespace" not in obj and "running_in_user_namespace" in obj: + obj["runningInUserNamespace"] = obj["running_in_user_namespace"] + obj.pop("running_in_user_namespace", None) if "systemUUID" not in obj and "system_uuid" in obj: obj["systemUUID"] = obj["system_uuid"] obj.pop("system_uuid", None) @@ -238,6 +244,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("machineID" if serialize else "machine_id"): _to_legacy_value(getattr(self, "machine_id", None), serialize), ("operatingSystem" if serialize else "operating_system"): _to_legacy_value(getattr(self, "operating_system", None), serialize), ("osImage" if serialize else "os_image"): _to_legacy_value(getattr(self, "os_image", None), serialize), + ("runningInUserNamespace" if serialize else "running_in_user_namespace"): _to_legacy_value(getattr(self, "running_in_user_namespace", None), serialize), ("swap" if serialize else "swap"): _to_legacy_value(getattr(self, "swap", None), serialize), ("systemUUID" if serialize else "system_uuid"): _to_legacy_value(getattr(self, "system_uuid", None), serialize), } @@ -304,6 +311,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "machineID": obj.get("machineID"), "operatingSystem": obj.get("operatingSystem"), "osImage": obj.get("osImage"), + "runningInUserNamespace": obj.get("runningInUserNamespace"), "swap": V1NodeSwapStatus.from_dict(obj["swap"]) if obj.get("swap") is not None else None, "systemUUID": obj.get("systemUUID") }) diff --git a/kubernetes/client/models/v1_non_resource_attributes.py b/kubernetes/client/models/v1_non_resource_attributes.py index 4eaae0323f..cdf351965f 100644 --- a/kubernetes/client/models/v1_non_resource_attributes.py +++ b/kubernetes/client/models/v1_non_resource_attributes.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_non_resource_policy_rule.py b/kubernetes/client/models/v1_non_resource_policy_rule.py index 8dce7d2378..f243de1e32 100644 --- a/kubernetes/client/models/v1_non_resource_policy_rule.py +++ b/kubernetes/client/models/v1_non_resource_policy_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_non_resource_rule.py b/kubernetes/client/models/v1_non_resource_rule.py index 5f1f0bbb79..c64996c99c 100644 --- a/kubernetes/client/models/v1_non_resource_rule.py +++ b/kubernetes/client/models/v1_non_resource_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_object_field_selector.py b/kubernetes/client/models/v1_object_field_selector.py index cc35ac9640..143b0abb8d 100644 --- a/kubernetes/client/models/v1_object_field_selector.py +++ b/kubernetes/client/models/v1_object_field_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_object_meta.py b/kubernetes/client/models/v1_object_meta.py index 808d30d9af..513ee1cbef 100644 --- a/kubernetes/client/models/v1_object_meta.py +++ b/kubernetes/client/models/v1_object_meta.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_object_reference.py b/kubernetes/client/models/v1_object_reference.py index 3986fe5992..eab24cc2e4 100644 --- a/kubernetes/client/models/v1_object_reference.py +++ b/kubernetes/client/models/v1_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_opaque_device_configuration.py b/kubernetes/client/models/v1_opaque_device_configuration.py index e1f9a9bec4..365a082743 100644 --- a/kubernetes/client/models/v1_opaque_device_configuration.py +++ b/kubernetes/client/models/v1_opaque_device_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_overhead.py b/kubernetes/client/models/v1_overhead.py index 24b01cdac4..9e100d8584 100644 --- a/kubernetes/client/models/v1_overhead.py +++ b/kubernetes/client/models/v1_overhead.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_owner_reference.py b/kubernetes/client/models/v1_owner_reference.py index b2d5dd9e11..2c61aeafb6 100644 --- a/kubernetes/client/models/v1_owner_reference.py +++ b/kubernetes/client/models/v1_owner_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_param_kind.py b/kubernetes/client/models/v1_param_kind.py index 5cf03d3f53..32d555a6fd 100644 --- a/kubernetes/client/models/v1_param_kind.py +++ b/kubernetes/client/models/v1_param_kind.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_param_ref.py b/kubernetes/client/models/v1_param_ref.py index 2ec9e14165..17f0137158 100644 --- a/kubernetes/client/models/v1_param_ref.py +++ b/kubernetes/client/models/v1_param_ref.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_parent_reference.py b/kubernetes/client/models/v1_parent_reference.py index 079d5f51df..f5bc03f8a3 100644 --- a/kubernetes/client/models/v1_parent_reference.py +++ b/kubernetes/client/models/v1_parent_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -102,10 +102,10 @@ class V1ParentReference(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - group: Optional[StrictStr] = Field(default=None, description="Group is the group of the object being referenced.") - name: StrictStr = Field(description="Name is the name of the object being referenced.") - namespace: Optional[StrictStr] = Field(default=None, description="Namespace is the namespace of the object being referenced.") - resource: StrictStr = Field(description="Resource is the resource of the object being referenced.") + group: Optional[StrictStr] = Field(default=None, description="group is the group of the object being referenced.") + name: StrictStr = Field(description="name is the name of the object being referenced.") + namespace: Optional[StrictStr] = Field(default=None, description="namespace is the namespace of the object being referenced.") + resource: StrictStr = Field(description="resource is the resource of the object being referenced.") openapi_types: ClassVar[Dict[str, str]] = { "group": "str", "name": "str", diff --git a/kubernetes/client/models/v1_persistent_volume.py b/kubernetes/client/models/v1_persistent_volume.py index a1a016620a..6998742c3f 100644 --- a/kubernetes/client/models/v1_persistent_volume.py +++ b/kubernetes/client/models/v1_persistent_volume.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_persistent_volume_claim.py b/kubernetes/client/models/v1_persistent_volume_claim.py index c884917023..f1ec7112b9 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim.py +++ b/kubernetes/client/models/v1_persistent_volume_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_persistent_volume_claim_condition.py b/kubernetes/client/models/v1_persistent_volume_claim_condition.py index d4d680722f..ccf7f40688 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_condition.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_persistent_volume_claim_list.py b/kubernetes/client/models/v1_persistent_volume_claim_list.py index e7fb27061f..032dddc47a 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_list.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_persistent_volume_claim_spec.py b/kubernetes/client/models/v1_persistent_volume_claim_spec.py index e8455e2e32..914b312970 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_spec.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_persistent_volume_claim_status.py b/kubernetes/client/models/v1_persistent_volume_claim_status.py index da005ffa12..76b7f808d2 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_status.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1_modify_volume_status import V1ModifyVolumeStatus from kubernetes.client.models.v1_persistent_volume_claim_condition import V1PersistentVolumeClaimCondition +from kubernetes.client.models.v1_volume_health_status import V1VolumeHealthStatus from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -111,6 +112,7 @@ class V1PersistentVolumeClaimStatus(BaseModel): capacity: Optional[Dict[str, StrictStr]] = Field(default=None, description="capacity represents the actual resources of the underlying volume.") conditions: Optional[List[V1PersistentVolumeClaimCondition]] = Field(default=None, description="conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.") current_volume_attributes_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("currentVolumeAttributesClassName", "current_volume_attributes_class_name"), serialization_alias="currentVolumeAttributesClassName", description="currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim") + health_status: Optional[V1VolumeHealthStatus] = Field(default=None, validation_alias=AliasChoices("healthStatus", "health_status"), serialization_alias="healthStatus") modify_volume_status: Optional[V1ModifyVolumeStatus] = Field(default=None, validation_alias=AliasChoices("modifyVolumeStatus", "modify_volume_status"), serialization_alias="modifyVolumeStatus") phase: Optional[StrictStr] = Field(default=None, description="phase represents the current phase of PersistentVolumeClaim.") openapi_types: ClassVar[Dict[str, str]] = { @@ -120,6 +122,7 @@ class V1PersistentVolumeClaimStatus(BaseModel): "capacity": "Dict[str, str]", "conditions": "List[V1PersistentVolumeClaimCondition]", "current_volume_attributes_class_name": "str", + "health_status": "V1VolumeHealthStatus", "modify_volume_status": "V1ModifyVolumeStatus", "phase": "str" } @@ -131,10 +134,11 @@ class V1PersistentVolumeClaimStatus(BaseModel): "capacity": "capacity", "conditions": "conditions", "current_volume_attributes_class_name": "currentVolumeAttributesClassName", + "health_status": "healthStatus", "modify_volume_status": "modifyVolumeStatus", "phase": "phase" } - __properties: ClassVar[List[str]] = ["accessModes", "allocatedResourceStatuses", "allocatedResources", "capacity", "conditions", "currentVolumeAttributesClassName", "modifyVolumeStatus", "phase"] + __properties: ClassVar[List[str]] = ["accessModes", "allocatedResourceStatuses", "allocatedResources", "capacity", "conditions", "currentVolumeAttributesClassName", "healthStatus", "modifyVolumeStatus", "phase"] @classmethod def __preprocess_input_names( @@ -157,6 +161,9 @@ def __preprocess_input_names( if "currentVolumeAttributesClassName" not in obj and "current_volume_attributes_class_name" in obj: obj["currentVolumeAttributesClassName"] = obj["current_volume_attributes_class_name"] obj.pop("current_volume_attributes_class_name", None) + if "healthStatus" not in obj and "health_status" in obj: + obj["healthStatus"] = obj["health_status"] + obj.pop("health_status", None) if "modifyVolumeStatus" not in obj and "modify_volume_status" in obj: obj["modifyVolumeStatus"] = obj["modify_volume_status"] obj.pop("modify_volume_status", None) @@ -215,6 +222,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("conditions" if serialize else "conditions"): _to_legacy_value(getattr(self, "conditions", None), serialize), ("currentVolumeAttributesClassName" if serialize else "current_volume_attributes_class_name"): _to_legacy_value(getattr(self, "current_volume_attributes_class_name", None), serialize), + ("healthStatus" if serialize else "health_status"): _to_legacy_value(getattr(self, "health_status", None), serialize), ("modifyVolumeStatus" if serialize else "modify_volume_status"): _to_legacy_value(getattr(self, "modify_volume_status", None), serialize), ("phase" if serialize else "phase"): _to_legacy_value(getattr(self, "phase", None), serialize), } @@ -243,6 +251,9 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: for _item_conditions in self.conditions: _items.append(_to_openapi_value(_item_conditions) if _item_conditions is not None else None) _dict['conditions'] = _items + # override the default output from pydantic by calling `to_dict()` of health_status + if self.health_status: + _dict['healthStatus'] = _to_openapi_value(self.health_status) # override the default output from pydantic by calling `to_dict()` of modify_volume_status if self.modify_volume_status: _dict['modifyVolumeStatus'] = _to_openapi_value(self.modify_volume_status) @@ -284,6 +295,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "capacity": obj.get("capacity"), "conditions": [V1PersistentVolumeClaimCondition.from_dict(_item) for _item in obj["conditions"]] if obj.get("conditions") is not None else None, "currentVolumeAttributesClassName": obj.get("currentVolumeAttributesClassName"), + "healthStatus": V1VolumeHealthStatus.from_dict(obj["healthStatus"]) if obj.get("healthStatus") is not None else None, "modifyVolumeStatus": V1ModifyVolumeStatus.from_dict(obj["modifyVolumeStatus"]) if obj.get("modifyVolumeStatus") is not None else None, "phase": obj.get("phase") }) diff --git a/kubernetes/client/models/v1_persistent_volume_claim_template.py b/kubernetes/client/models/v1_persistent_volume_claim_template.py index 3d1648b4ca..23a000b03b 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_template.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_template.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py b/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py index 7173dc16fa..ec31b38a19 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_persistent_volume_list.py b/kubernetes/client/models/v1_persistent_volume_list.py index 40d75d2afb..609dbb7279 100644 --- a/kubernetes/client/models/v1_persistent_volume_list.py +++ b/kubernetes/client/models/v1_persistent_volume_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_persistent_volume_spec.py b/kubernetes/client/models/v1_persistent_volume_spec.py index 6e31b4047e..94ffc57496 100644 --- a/kubernetes/client/models/v1_persistent_volume_spec.py +++ b/kubernetes/client/models/v1_persistent_volume_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_persistent_volume_status.py b/kubernetes/client/models/v1_persistent_volume_status.py index 4fec607bfb..f66360d971 100644 --- a/kubernetes/client/models/v1_persistent_volume_status.py +++ b/kubernetes/client/models/v1_persistent_volume_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py b/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py index e41963ebfc..311fe31e4c 100644 --- a/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py +++ b/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod.py b/kubernetes/client/models/v1_pod.py index f80abb8a7b..f7a8ec4d78 100644 --- a/kubernetes/client/models/v1_pod.py +++ b/kubernetes/client/models/v1_pod.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_affinity.py b/kubernetes/client/models/v1_pod_affinity.py index e412acbf56..89ebb446e5 100644 --- a/kubernetes/client/models/v1_pod_affinity.py +++ b/kubernetes/client/models/v1_pod_affinity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_affinity_term.py b/kubernetes/client/models/v1_pod_affinity_term.py index 1236d0773d..99d41f882c 100644 --- a/kubernetes/client/models/v1_pod_affinity_term.py +++ b/kubernetes/client/models/v1_pod_affinity_term.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_anti_affinity.py b/kubernetes/client/models/v1_pod_anti_affinity.py index 8ad81f22eb..b0b68441f7 100644 --- a/kubernetes/client/models/v1_pod_anti_affinity.py +++ b/kubernetes/client/models/v1_pod_anti_affinity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_certificate_projection.py b/kubernetes/client/models/v1_pod_certificate_projection.py index 5c113c5d8e..cef38ce24c 100644 --- a/kubernetes/client/models/v1_pod_certificate_projection.py +++ b/kubernetes/client/models/v1_pod_certificate_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,6 +109,7 @@ class V1PodCertificateProjection(BaseModel): key_type: StrictStr = Field(validation_alias=AliasChoices("keyType", "key_type"), serialization_alias="keyType", description="The type of keypair Kubelet will generate for the pod. Valid values are \"RSA3072\", \"RSA4096\", \"ECDSAP256\", \"ECDSAP384\", \"ECDSAP521\", and \"ED25519\".") max_expiration_seconds: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("maxExpirationSeconds", "max_expiration_seconds"), serialization_alias="maxExpirationSeconds", description="maxExpirationSeconds is the maximum lifetime permitted for the certificate. Kubelet copies this value verbatim into the PodCertificateRequests it generates for this projection. 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.") signer_name: StrictStr = Field(validation_alias=AliasChoices("signerName", "signer_name"), serialization_alias="signerName", description="Kubelet's generated CSRs will be addressed to this signer.") + user: Optional[StrictInt] = Field(default=None, description="user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") user_annotations: Optional[Dict[str, StrictStr]] = Field(default=None, validation_alias=AliasChoices("userAnnotations", "user_annotations"), serialization_alias="userAnnotations", description="userAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way. These values are copied verbatim into the `spec.unverifiedUserAnnotations` field of the PodCertificateRequest objects that Kubelet creates. 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.") openapi_types: ClassVar[Dict[str, str]] = { "certificate_chain_path": "str", @@ -117,6 +118,7 @@ class V1PodCertificateProjection(BaseModel): "key_type": "str", "max_expiration_seconds": "int", "signer_name": "str", + "user": "int", "user_annotations": "Dict[str, str]" } @@ -127,9 +129,10 @@ class V1PodCertificateProjection(BaseModel): "key_type": "keyType", "max_expiration_seconds": "maxExpirationSeconds", "signer_name": "signerName", + "user": "user", "user_annotations": "userAnnotations" } - __properties: ClassVar[List[str]] = ["certificateChainPath", "credentialBundlePath", "keyPath", "keyType", "maxExpirationSeconds", "signerName", "userAnnotations"] + __properties: ClassVar[List[str]] = ["certificateChainPath", "credentialBundlePath", "keyPath", "keyType", "maxExpirationSeconds", "signerName", "user", "userAnnotations"] @classmethod def __preprocess_input_names( @@ -216,6 +219,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("keyType" if serialize else "key_type"): _to_legacy_value(getattr(self, "key_type", None), serialize), ("maxExpirationSeconds" if serialize else "max_expiration_seconds"): _to_legacy_value(getattr(self, "max_expiration_seconds", None), serialize), ("signerName" if serialize else "signer_name"): _to_legacy_value(getattr(self, "signer_name", None), serialize), + ("user" if serialize else "user"): _to_legacy_value(getattr(self, "user", None), serialize), ("userAnnotations" if serialize else "user_annotations"): _to_legacy_value(getattr(self, "user_annotations", None), serialize), } @@ -275,6 +279,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "keyType": obj.get("keyType"), "maxExpirationSeconds": obj.get("maxExpirationSeconds"), "signerName": obj.get("signerName"), + "user": obj.get("user"), "userAnnotations": obj.get("userAnnotations") }) return _obj diff --git a/kubernetes/client/models/v1_pod_certificate_request.py b/kubernetes/client/models/v1_pod_certificate_request.py new file mode 100644 index 0000000000..085284430f --- /dev/null +++ b/kubernetes/client/models/v1_pod_certificate_request.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_object_meta import V1ObjectMeta +from kubernetes.client.models.v1_pod_certificate_request_spec import V1PodCertificateRequestSpec +from kubernetes.client.models.v1_pod_certificate_request_status import V1PodCertificateRequestStatus +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1PodCertificateRequest(BaseModel): + """ + PodCertificateRequest encodes a pod requesting a certificate from a given signer. Kubelets use this API to implement podCertificate projected volumes + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ObjectMeta] = None + spec: V1PodCertificateRequestSpec + status: Optional[V1PodCertificateRequestStatus] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "kind": "str", + "metadata": "V1ObjectMeta", + "spec": "V1PodCertificateRequestSpec", + "status": "V1PodCertificateRequestStatus" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "kind": "kind", + "metadata": "metadata", + "spec": "spec", + "status": "status" + } + __properties: ClassVar[List[str]] = ["apiVersion", "kind", "metadata", "spec", "status"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1PodCertificateRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodCertificateRequest): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1PodCertificateRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + ("spec" if serialize else "spec"): _to_legacy_value(getattr(self, "spec", None), serialize), + ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + # override the default output from pydantic by calling `to_dict()` of spec + if self.spec: + _dict['spec'] = _to_openapi_value(self.spec) + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = _to_openapi_value(self.status) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1PodCertificateRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "kind": obj.get("kind"), + "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, + "spec": V1PodCertificateRequestSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, + "status": V1PodCertificateRequestStatus.from_dict(obj["status"]) if obj.get("status") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1_pod_certificate_request_list.py b/kubernetes/client/models/v1_pod_certificate_request_list.py new file mode 100644 index 0000000000..61be5207ca --- /dev/null +++ b/kubernetes/client/models/v1_pod_certificate_request_list.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_list_meta import V1ListMeta +from kubernetes.client.models.v1_pod_certificate_request import V1PodCertificateRequest +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1PodCertificateRequestList(BaseModel): + """ + PodCertificateRequestList is a collection of PodCertificateRequest objects + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + items: List[V1PodCertificateRequest] = Field(description="items is a collection of PodCertificateRequest objects") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ListMeta] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "items": "List[V1PodCertificateRequest]", + "kind": "str", + "metadata": "V1ListMeta" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "items": "items", + "kind": "kind", + "metadata": "metadata" + } + __properties: ClassVar[List[str]] = ["apiVersion", "items", "kind", "metadata"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1PodCertificateRequestList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodCertificateRequestList): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1PodCertificateRequestList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + _items.append(_to_openapi_value(_item_items) if _item_items is not None else None) + _dict['items'] = _items + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1PodCertificateRequestList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "items": [V1PodCertificateRequest.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "kind": obj.get("kind"), + "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1_pod_certificate_request_spec.py b/kubernetes/client/models/v1_pod_certificate_request_spec.py new file mode 100644 index 0000000000..281302e499 --- /dev/null +++ b/kubernetes/client/models/v1_pod_certificate_request_spec.py @@ -0,0 +1,312 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union, cast as _cast +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1PodCertificateRequestSpec(BaseModel): + """ + PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + max_expiration_seconds: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("maxExpirationSeconds", "max_expiration_seconds"), serialization_alias="maxExpirationSeconds", description="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.") + node_name: StrictStr = Field(validation_alias=AliasChoices("nodeName", "node_name"), serialization_alias="nodeName", description="nodeName is the name of the node the pod is assigned to.") + node_uid: StrictStr = Field(validation_alias=AliasChoices("nodeUID", "node_uid"), serialization_alias="nodeUID", description="nodeUID is the UID of the node the pod is assigned to.") + pod_name: StrictStr = Field(validation_alias=AliasChoices("podName", "pod_name"), serialization_alias="podName", description="podName is the name of the pod into which the certificate will be mounted.") + pod_uid: StrictStr = Field(validation_alias=AliasChoices("podUID", "pod_uid"), serialization_alias="podUID", description="podUID is the UID of the pod into which the certificate will be mounted.") + service_account_name: StrictStr = Field(validation_alias=AliasChoices("serviceAccountName", "service_account_name"), serialization_alias="serviceAccountName", description="serviceAccountName is the name of the service account the pod is running as.") + service_account_uid: StrictStr = Field(validation_alias=AliasChoices("serviceAccountUID", "service_account_uid"), serialization_alias="serviceAccountUID", description="serviceAccountUID is the UID of the service account the pod is running as.") + signer_name: StrictStr = Field(validation_alias=AliasChoices("signerName", "signer_name"), serialization_alias="signerName", description="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.") + stub_pkcs10_request: Union[Annotated[bytes, Field(strict=True)], Annotated[str, Field(strict=True)]] = Field(validation_alias=AliasChoices("stubPKCS10Request", "stub_pkcs10_request"), serialization_alias="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.") + unverified_user_annotations: Optional[Dict[str, StrictStr]] = Field(default=None, validation_alias=AliasChoices("unverifiedUserAnnotations", "unverified_user_annotations"), serialization_alias="unverifiedUserAnnotations", description="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.") + openapi_types: ClassVar[Dict[str, str]] = { + "max_expiration_seconds": "int", + "node_name": "str", + "node_uid": "str", + "pod_name": "str", + "pod_uid": "str", + "service_account_name": "str", + "service_account_uid": "str", + "signer_name": "str", + "stub_pkcs10_request": "bytes", + "unverified_user_annotations": "Dict[str, str]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "max_expiration_seconds": "maxExpirationSeconds", + "node_name": "nodeName", + "node_uid": "nodeUID", + "pod_name": "podName", + "pod_uid": "podUID", + "service_account_name": "serviceAccountName", + "service_account_uid": "serviceAccountUID", + "signer_name": "signerName", + "stub_pkcs10_request": "stubPKCS10Request", + "unverified_user_annotations": "unverifiedUserAnnotations" + } + __properties: ClassVar[List[str]] = ["maxExpirationSeconds", "nodeName", "nodeUID", "podName", "podUID", "serviceAccountName", "serviceAccountUID", "signerName", "stubPKCS10Request", "unverifiedUserAnnotations"] + + @field_validator('stub_pkcs10_request', mode="before") + def stub_pkcs10_request_validate_regular_expression(cls, value): + """Validates the regular expression""" + if isinstance(value, str) and not re.match(r"^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$", value): + raise ValueError(r"must validate the regular expression /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/") + return value + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "maxExpirationSeconds" not in obj and "max_expiration_seconds" in obj: + obj["maxExpirationSeconds"] = obj["max_expiration_seconds"] + obj.pop("max_expiration_seconds", None) + if "nodeName" not in obj and "node_name" in obj: + obj["nodeName"] = obj["node_name"] + obj.pop("node_name", None) + if "nodeUID" not in obj and "node_uid" in obj: + obj["nodeUID"] = obj["node_uid"] + obj.pop("node_uid", None) + if "podName" not in obj and "pod_name" in obj: + obj["podName"] = obj["pod_name"] + obj.pop("pod_name", None) + if "podUID" not in obj and "pod_uid" in obj: + obj["podUID"] = obj["pod_uid"] + obj.pop("pod_uid", None) + if "serviceAccountName" not in obj and "service_account_name" in obj: + obj["serviceAccountName"] = obj["service_account_name"] + obj.pop("service_account_name", None) + if "serviceAccountUID" not in obj and "service_account_uid" in obj: + obj["serviceAccountUID"] = obj["service_account_uid"] + obj.pop("service_account_uid", None) + if "signerName" not in obj and "signer_name" in obj: + obj["signerName"] = obj["signer_name"] + obj.pop("signer_name", None) + if "stubPKCS10Request" not in obj and "stub_pkcs10_request" in obj: + obj["stubPKCS10Request"] = obj["stub_pkcs10_request"] + obj.pop("stub_pkcs10_request", None) + if "unverifiedUserAnnotations" not in obj and "unverified_user_annotations" in obj: + obj["unverifiedUserAnnotations"] = obj["unverified_user_annotations"] + obj.pop("unverified_user_annotations", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1PodCertificateRequestSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodCertificateRequestSpec): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1PodCertificateRequestSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("maxExpirationSeconds" if serialize else "max_expiration_seconds"): _to_legacy_value(getattr(self, "max_expiration_seconds", None), serialize), + ("nodeName" if serialize else "node_name"): _to_legacy_value(getattr(self, "node_name", None), serialize), + ("nodeUID" if serialize else "node_uid"): _to_legacy_value(getattr(self, "node_uid", None), serialize), + ("podName" if serialize else "pod_name"): _to_legacy_value(getattr(self, "pod_name", None), serialize), + ("podUID" if serialize else "pod_uid"): _to_legacy_value(getattr(self, "pod_uid", None), serialize), + ("serviceAccountName" if serialize else "service_account_name"): _to_legacy_value(getattr(self, "service_account_name", None), serialize), + ("serviceAccountUID" if serialize else "service_account_uid"): _to_legacy_value(getattr(self, "service_account_uid", None), serialize), + ("signerName" if serialize else "signer_name"): _to_legacy_value(getattr(self, "signer_name", None), serialize), + ("stubPKCS10Request" if serialize else "stub_pkcs10_request"): _to_legacy_value(getattr(self, "stub_pkcs10_request", None), serialize), + ("unverifiedUserAnnotations" if serialize else "unverified_user_annotations"): _to_legacy_value(getattr(self, "unverified_user_annotations", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1PodCertificateRequestSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "maxExpirationSeconds": obj.get("maxExpirationSeconds"), + "nodeName": obj.get("nodeName"), + "nodeUID": obj.get("nodeUID"), + "podName": obj.get("podName"), + "podUID": obj.get("podUID"), + "serviceAccountName": obj.get("serviceAccountName"), + "serviceAccountUID": obj.get("serviceAccountUID"), + "signerName": obj.get("signerName"), + "stubPKCS10Request": obj.get("stubPKCS10Request"), + "unverifiedUserAnnotations": obj.get("unverifiedUserAnnotations") + }) + return _obj diff --git a/kubernetes/client/models/v1_pod_certificate_request_status.py b/kubernetes/client/models/v1_pod_certificate_request_status.py new file mode 100644 index 0000000000..e5893f8c32 --- /dev/null +++ b/kubernetes/client/models/v1_pod_certificate_request_status.py @@ -0,0 +1,269 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from datetime import datetime +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_condition import V1Condition +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1PodCertificateRequestStatus(BaseModel): + """ + PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + begin_refresh_at: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("beginRefreshAt", "begin_refresh_at"), serialization_alias="beginRefreshAt", description="beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable. This field is only a hint. Kubelet may start refreshing before or after this time if necessary.") + certificate_chain: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("certificateChain", "certificate_chain"), serialization_alias="certificateChain", description="certificateChain is populated with an issued certificate by the signer. This field is set via the /status subresource. Once populated, this field is immutable. If the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty. Validation requirements: 1. certificateChain must consist of one or more PEM-formatted certificates. 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as described in section 4 of RFC5280. If more than one block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers.") + conditions: Optional[List[V1Condition]] = Field(default=None, description="conditions applied to the request. The types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\". If the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field.") + not_after: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("notAfter", "not_after"), serialization_alias="notAfter", description="notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.") + not_before: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("notBefore", "not_before"), serialization_alias="notBefore", description="notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.") + openapi_types: ClassVar[Dict[str, str]] = { + "begin_refresh_at": "datetime", + "certificate_chain": "str", + "conditions": "List[V1Condition]", + "not_after": "datetime", + "not_before": "datetime" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "begin_refresh_at": "beginRefreshAt", + "certificate_chain": "certificateChain", + "conditions": "conditions", + "not_after": "notAfter", + "not_before": "notBefore" + } + __properties: ClassVar[List[str]] = ["beginRefreshAt", "certificateChain", "conditions", "notAfter", "notBefore"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "beginRefreshAt" not in obj and "begin_refresh_at" in obj: + obj["beginRefreshAt"] = obj["begin_refresh_at"] + obj.pop("begin_refresh_at", None) + if "certificateChain" not in obj and "certificate_chain" in obj: + obj["certificateChain"] = obj["certificate_chain"] + obj.pop("certificate_chain", None) + if "notAfter" not in obj and "not_after" in obj: + obj["notAfter"] = obj["not_after"] + obj.pop("not_after", None) + if "notBefore" not in obj and "not_before" in obj: + obj["notBefore"] = obj["not_before"] + obj.pop("not_before", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1PodCertificateRequestStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodCertificateRequestStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1PodCertificateRequestStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("beginRefreshAt" if serialize else "begin_refresh_at"): _to_legacy_value(getattr(self, "begin_refresh_at", None), serialize), + ("certificateChain" if serialize else "certificate_chain"): _to_legacy_value(getattr(self, "certificate_chain", None), serialize), + ("conditions" if serialize else "conditions"): _to_legacy_value(getattr(self, "conditions", None), serialize), + ("notAfter" if serialize else "not_after"): _to_legacy_value(getattr(self, "not_after", None), serialize), + ("notBefore" if serialize else "not_before"): _to_legacy_value(getattr(self, "not_before", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in conditions (list) + _items = [] + if self.conditions: + for _item_conditions in self.conditions: + _items.append(_to_openapi_value(_item_conditions) if _item_conditions is not None else None) + _dict['conditions'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1PodCertificateRequestStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "beginRefreshAt": obj.get("beginRefreshAt"), + "certificateChain": obj.get("certificateChain"), + "conditions": [V1Condition.from_dict(_item) for _item in obj["conditions"]] if obj.get("conditions") is not None else None, + "notAfter": obj.get("notAfter"), + "notBefore": obj.get("notBefore") + }) + return _obj diff --git a/kubernetes/client/models/v1_pod_condition.py b/kubernetes/client/models/v1_pod_condition.py index c8dff44222..e583481c80 100644 --- a/kubernetes/client/models/v1_pod_condition.py +++ b/kubernetes/client/models/v1_pod_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_disruption_budget.py b/kubernetes/client/models/v1_pod_disruption_budget.py index 004b8d6a12..48ff936fe6 100644 --- a/kubernetes/client/models/v1_pod_disruption_budget.py +++ b/kubernetes/client/models/v1_pod_disruption_budget.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_disruption_budget_list.py b/kubernetes/client/models/v1_pod_disruption_budget_list.py index 572b576bd9..bcf8873855 100644 --- a/kubernetes/client/models/v1_pod_disruption_budget_list.py +++ b/kubernetes/client/models/v1_pod_disruption_budget_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_disruption_budget_spec.py b/kubernetes/client/models/v1_pod_disruption_budget_spec.py index 872b324a98..1770198ff0 100644 --- a/kubernetes/client/models/v1_pod_disruption_budget_spec.py +++ b/kubernetes/client/models/v1_pod_disruption_budget_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -104,10 +104,10 @@ class V1PodDisruptionBudgetSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - max_unavailable: Optional[StrictInt | StrictStr] = Field(default=None, validation_alias=AliasChoices("maxUnavailable", "max_unavailable"), serialization_alias="maxUnavailable", description="An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\".") - min_available: Optional[StrictInt | StrictStr] = Field(default=None, validation_alias=AliasChoices("minAvailable", "min_available"), serialization_alias="minAvailable", description="An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\".") + max_unavailable: Optional[StrictInt | StrictStr] = Field(default=None, validation_alias=AliasChoices("maxUnavailable", "max_unavailable"), serialization_alias="maxUnavailable", description="maxUnavailable indicates that an eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\".") + min_available: Optional[StrictInt | StrictStr] = Field(default=None, validation_alias=AliasChoices("minAvailable", "min_available"), serialization_alias="minAvailable", description="minAvailable indicates that an eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\".") selector: Optional[V1LabelSelector] = None - unhealthy_pod_eviction_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("unhealthyPodEvictionPolicy", "unhealthy_pod_eviction_policy"), serialization_alias="unhealthyPodEvictionPolicy", description="UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.") + unhealthy_pod_eviction_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("unhealthyPodEvictionPolicy", "unhealthy_pod_eviction_policy"), serialization_alias="unhealthyPodEvictionPolicy", description="unhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.") openapi_types: ClassVar[Dict[str, str]] = { "max_unavailable": "object", "min_available": "object", diff --git a/kubernetes/client/models/v1_pod_disruption_budget_status.py b/kubernetes/client/models/v1_pod_disruption_budget_status.py index 26e5a3a9f7..0c84e14c0c 100644 --- a/kubernetes/client/models/v1_pod_disruption_budget_status.py +++ b/kubernetes/client/models/v1_pod_disruption_budget_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_dns_config.py b/kubernetes/client/models/v1_pod_dns_config.py index be4cd26685..0294a043d9 100644 --- a/kubernetes/client/models/v1_pod_dns_config.py +++ b/kubernetes/client/models/v1_pod_dns_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_dns_config_option.py b/kubernetes/client/models/v1_pod_dns_config_option.py index 294a92eaad..9423e570fa 100644 --- a/kubernetes/client/models/v1_pod_dns_config_option.py +++ b/kubernetes/client/models/v1_pod_dns_config_option.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_extended_resource_claim_status.py b/kubernetes/client/models/v1_pod_extended_resource_claim_status.py index 0eee886eef..d289756e65 100644 --- a/kubernetes/client/models/v1_pod_extended_resource_claim_status.py +++ b/kubernetes/client/models/v1_pod_extended_resource_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_failure_policy.py b/kubernetes/client/models/v1_pod_failure_policy.py index 4ab0c921a8..04487b8e41 100644 --- a/kubernetes/client/models/v1_pod_failure_policy.py +++ b/kubernetes/client/models/v1_pod_failure_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_failure_policy_on_exit_codes_requirement.py b/kubernetes/client/models/v1_pod_failure_policy_on_exit_codes_requirement.py index 7b4901939b..0210056405 100644 --- a/kubernetes/client/models/v1_pod_failure_policy_on_exit_codes_requirement.py +++ b/kubernetes/client/models/v1_pod_failure_policy_on_exit_codes_requirement.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_failure_policy_on_pod_conditions_pattern.py b/kubernetes/client/models/v1_pod_failure_policy_on_pod_conditions_pattern.py index a50de646a7..459bcd9b5f 100644 --- a/kubernetes/client/models/v1_pod_failure_policy_on_pod_conditions_pattern.py +++ b/kubernetes/client/models/v1_pod_failure_policy_on_pod_conditions_pattern.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_failure_policy_rule.py b/kubernetes/client/models/v1_pod_failure_policy_rule.py index 550abf48cd..f0557807bf 100644 --- a/kubernetes/client/models/v1_pod_failure_policy_rule.py +++ b/kubernetes/client/models/v1_pod_failure_policy_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_ip.py b/kubernetes/client/models/v1_pod_ip.py index 72a47ab20e..5b42a636ec 100644 --- a/kubernetes/client/models/v1_pod_ip.py +++ b/kubernetes/client/models/v1_pod_ip.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_list.py b/kubernetes/client/models/v1_pod_list.py index a43e6ada40..099d63b995 100644 --- a/kubernetes/client/models/v1_pod_list.py +++ b/kubernetes/client/models/v1_pod_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_os.py b/kubernetes/client/models/v1_pod_os.py index c7eb644d5e..61338f7806 100644 --- a/kubernetes/client/models/v1_pod_os.py +++ b/kubernetes/client/models/v1_pod_os.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_readiness_gate.py b/kubernetes/client/models/v1_pod_readiness_gate.py index ba5c85c0e4..f9e84a1dd6 100644 --- a/kubernetes/client/models/v1_pod_readiness_gate.py +++ b/kubernetes/client/models/v1_pod_readiness_gate.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_resource_claim.py b/kubernetes/client/models/v1_pod_resource_claim.py index ab95db32d8..26122ed300 100644 --- a/kubernetes/client/models/v1_pod_resource_claim.py +++ b/kubernetes/client/models/v1_pod_resource_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_resource_claim_status.py b/kubernetes/client/models/v1_pod_resource_claim_status.py index 1a3cc366d6..abac45c06f 100644 --- a/kubernetes/client/models/v1_pod_resource_claim_status.py +++ b/kubernetes/client/models/v1_pod_resource_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_scheduling_gate.py b/kubernetes/client/models/v1_pod_scheduling_gate.py index 787c365799..f33128a719 100644 --- a/kubernetes/client/models/v1_pod_scheduling_gate.py +++ b/kubernetes/client/models/v1_pod_scheduling_gate.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_scheduling_group.py b/kubernetes/client/models/v1_pod_scheduling_group.py index 645401efab..651fe39523 100644 --- a/kubernetes/client/models/v1_pod_scheduling_group.py +++ b/kubernetes/client/models/v1_pod_scheduling_group.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_security_context.py b/kubernetes/client/models/v1_pod_security_context.py index 95c7015e66..1ad3b28f55 100644 --- a/kubernetes/client/models/v1_pod_security_context.py +++ b/kubernetes/client/models/v1_pod_security_context.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -114,7 +114,7 @@ class V1PodSecurityContext(BaseModel): run_as_group: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("runAsGroup", "run_as_group"), serialization_alias="runAsGroup", description="The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.") run_as_non_root: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("runAsNonRoot", "run_as_non_root"), serialization_alias="runAsNonRoot", description="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 SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") run_as_user: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("runAsUser", "run_as_user"), serialization_alias="runAsUser", description="The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.") - se_linux_change_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("seLinuxChangePolicy", "se_linux_change_policy"), serialization_alias="seLinuxChangePolicy", description="seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\". \"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. \"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. 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. 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.") + se_linux_change_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("seLinuxChangePolicy", "se_linux_change_policy"), serialization_alias="seLinuxChangePolicy", description="seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\". \"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. \"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. 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. 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.") se_linux_options: Optional[V1SELinuxOptions] = Field(default=None, validation_alias=AliasChoices("seLinuxOptions", "se_linux_options"), serialization_alias="seLinuxOptions") seccomp_profile: Optional[V1SeccompProfile] = Field(default=None, validation_alias=AliasChoices("seccompProfile", "seccomp_profile"), serialization_alias="seccompProfile") supplemental_groups: Optional[List[StrictInt]] = Field(default=None, validation_alias=AliasChoices("supplementalGroups", "supplemental_groups"), serialization_alias="supplementalGroups", description="A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows.") diff --git a/kubernetes/client/models/v1_pod_spec.py b/kubernetes/client/models/v1_pod_spec.py index 73c047a528..14dd90e6bf 100644 --- a/kubernetes/client/models/v1_pod_spec.py +++ b/kubernetes/client/models/v1_pod_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -23,6 +23,7 @@ from kubernetes.client.models.v1_affinity import V1Affinity from kubernetes.client.models.v1_container import V1Container from kubernetes.client.models.v1_ephemeral_container import V1EphemeralContainer +from kubernetes.client.models.v1_eviction_responder import V1EvictionResponder from kubernetes.client.models.v1_host_alias import V1HostAlias from kubernetes.client.models.v1_local_object_reference import V1LocalObjectReference from kubernetes.client.models.v1_pod_dns_config import V1PodDNSConfig @@ -127,20 +128,21 @@ class V1PodSpec(BaseModel): dns_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("dnsPolicy", "dns_policy"), serialization_alias="dnsPolicy", description="Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.") enable_service_links: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("enableServiceLinks", "enable_service_links"), serialization_alias="enableServiceLinks", description="EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.") ephemeral_containers: Optional[List[V1EphemeralContainer]] = Field(default=None, validation_alias=AliasChoices("ephemeralContainers", "ephemeral_containers"), serialization_alias="ephemeralContainers", description="List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.") + eviction_responders: Optional[List[V1EvictionResponder]] = Field(default=None, validation_alias=AliasChoices("evictionResponders", "eviction_responders"), serialization_alias="evictionResponders", description="evictionResponders reference responders that react to Evictions based on EvictionRequests. Responders should observe and communicate through the Eviction Resource API to help with the graceful termination of a pod. The responders are selected sequentially, according to their specified priority. Responders should periodically report on an eviction progress by updating the .status.responders[].heartbeatTime field of the Eviction object. If this field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there is no other responder, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource). The maximum length of the responders list is 10. Responders are not supported when the pod is part of a PodGroup (.spec.schedulingGroup is set). This field can only be set on creation and is immutable afterwards.") host_aliases: Optional[List[V1HostAlias]] = Field(default=None, validation_alias=AliasChoices("hostAliases", "host_aliases"), serialization_alias="hostAliases", description="HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.") host_ipc: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("hostIPC", "host_ipc"), serialization_alias="hostIPC", description="Use the host's ipc namespace. Optional: Default to false.") host_network: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("hostNetwork", "host_network"), serialization_alias="hostNetwork", description="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.") host_pid: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("hostPID", "host_pid"), serialization_alias="hostPID", description="Use the host's pid namespace. Optional: Default to false.") host_users: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("hostUsers", "host_users"), serialization_alias="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.") hostname: Optional[StrictStr] = Field(default=None, description="Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.") - hostname_override: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("hostnameOverride", "hostname_override"), serialization_alias="hostnameOverride", description="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.") + hostname_override: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("hostnameOverride", "hostname_override"), serialization_alias="hostnameOverride", description="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.") image_pull_secrets: Optional[List[V1LocalObjectReference]] = Field(default=None, validation_alias=AliasChoices("imagePullSecrets", "image_pull_secrets"), serialization_alias="imagePullSecrets", description="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") init_containers: Optional[List[V1Container]] = Field(default=None, validation_alias=AliasChoices("initContainers", "init_containers"), serialization_alias="initContainers", description="List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/") node_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("nodeName", "node_name"), serialization_alias="nodeName", description="NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename") node_selector: Optional[Dict[str, StrictStr]] = Field(default=None, validation_alias=AliasChoices("nodeSelector", "node_selector"), serialization_alias="nodeSelector", description="NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/") os: Optional[V1PodOS] = None overhead: Optional[Dict[str, StrictStr]] = Field(default=None, description="Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md") - preemption_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preemptionPolicy", "preemption_policy"), serialization_alias="preemptionPolicy", description="PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.") + preemption_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preemptionPolicy", "preemption_policy"), serialization_alias="preemptionPolicy", description="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.") priority: Optional[StrictInt] = Field(default=None, description="The priority value. Various system components use this field to find the priority of the pod. 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.") priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="priorityClassName", description="If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.") readiness_gates: Optional[List[V1PodReadinessGate]] = Field(default=None, validation_alias=AliasChoices("readinessGates", "readiness_gates"), serialization_alias="readinessGates", description="If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates") @@ -170,6 +172,7 @@ class V1PodSpec(BaseModel): "dns_policy": "str", "enable_service_links": "bool", "ephemeral_containers": "List[V1EphemeralContainer]", + "eviction_responders": "List[V1EvictionResponder]", "host_aliases": "List[V1HostAlias]", "host_ipc": "bool", "host_network": "bool", @@ -215,6 +218,7 @@ class V1PodSpec(BaseModel): "dns_policy": "dnsPolicy", "enable_service_links": "enableServiceLinks", "ephemeral_containers": "ephemeralContainers", + "eviction_responders": "evictionResponders", "host_aliases": "hostAliases", "host_ipc": "hostIPC", "host_network": "hostNetwork", @@ -250,7 +254,7 @@ class V1PodSpec(BaseModel): "topology_spread_constraints": "topologySpreadConstraints", "volumes": "volumes" } - __properties: ClassVar[List[str]] = ["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"] + __properties: ClassVar[List[str]] = ["activeDeadlineSeconds", "affinity", "automountServiceAccountToken", "containers", "dnsConfig", "dnsPolicy", "enableServiceLinks", "ephemeralContainers", "evictionResponders", "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"] @classmethod def __preprocess_input_names( @@ -279,6 +283,9 @@ def __preprocess_input_names( if "ephemeralContainers" not in obj and "ephemeral_containers" in obj: obj["ephemeralContainers"] = obj["ephemeral_containers"] obj.pop("ephemeral_containers", None) + if "evictionResponders" not in obj and "eviction_responders" in obj: + obj["evictionResponders"] = obj["eviction_responders"] + obj.pop("eviction_responders", None) if "hostAliases" not in obj and "host_aliases" in obj: obj["hostAliases"] = obj["host_aliases"] obj.pop("host_aliases", None) @@ -414,6 +421,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("dnsPolicy" if serialize else "dns_policy"): _to_legacy_value(getattr(self, "dns_policy", None), serialize), ("enableServiceLinks" if serialize else "enable_service_links"): _to_legacy_value(getattr(self, "enable_service_links", None), serialize), ("ephemeralContainers" if serialize else "ephemeral_containers"): _to_legacy_value(getattr(self, "ephemeral_containers", None), serialize), + ("evictionResponders" if serialize else "eviction_responders"): _to_legacy_value(getattr(self, "eviction_responders", None), serialize), ("hostAliases" if serialize else "host_aliases"): _to_legacy_value(getattr(self, "host_aliases", None), serialize), ("hostIPC" if serialize else "host_ipc"): _to_legacy_value(getattr(self, "host_ipc", None), serialize), ("hostNetwork" if serialize else "host_network"): _to_legacy_value(getattr(self, "host_network", None), serialize), @@ -486,6 +494,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: for _item_ephemeral_containers in self.ephemeral_containers: _items.append(_to_openapi_value(_item_ephemeral_containers) if _item_ephemeral_containers is not None else None) _dict['ephemeralContainers'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in eviction_responders (list) + _items = [] + if self.eviction_responders: + for _item_eviction_responders in self.eviction_responders: + _items.append(_to_openapi_value(_item_eviction_responders) if _item_eviction_responders is not None else None) + _dict['evictionResponders'] = _items # override the default output from pydantic by calling `to_dict()` of each item in host_aliases (list) _items = [] if self.host_aliases: @@ -592,6 +606,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "dnsPolicy": obj.get("dnsPolicy"), "enableServiceLinks": obj.get("enableServiceLinks"), "ephemeralContainers": [V1EphemeralContainer.from_dict(_item) for _item in obj["ephemeralContainers"]] if obj.get("ephemeralContainers") is not None else None, + "evictionResponders": [V1EvictionResponder.from_dict(_item) for _item in obj["evictionResponders"]] if obj.get("evictionResponders") is not None else None, "hostAliases": [V1HostAlias.from_dict(_item) for _item in obj["hostAliases"]] if obj.get("hostAliases") is not None else None, "hostIPC": obj.get("hostIPC"), "hostNetwork": obj.get("hostNetwork"), diff --git a/kubernetes/client/models/v1_pod_status.py b/kubernetes/client/models/v1_pod_status.py index 9cc7973dc1..f12f5cbbd8 100644 --- a/kubernetes/client/models/v1_pod_status.py +++ b/kubernetes/client/models/v1_pod_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -28,6 +28,7 @@ from kubernetes.client.models.v1_pod_extended_resource_claim_status import V1PodExtendedResourceClaimStatus from kubernetes.client.models.v1_pod_ip import V1PodIP from kubernetes.client.models.v1_pod_resource_claim_status import V1PodResourceClaimStatus +from kubernetes.client.models.v1_pod_volume_health import V1PodVolumeHealth from kubernetes.client.models.v1_resource_requirements import V1ResourceRequirements from typing import Optional, Set from typing_extensions import Self @@ -133,6 +134,7 @@ class V1PodStatus(BaseModel): resource_claim_statuses: Optional[List[V1PodResourceClaimStatus]] = Field(default=None, validation_alias=AliasChoices("resourceClaimStatuses", "resource_claim_statuses"), serialization_alias="resourceClaimStatuses", description="Status of resource claims.") resources: Optional[V1ResourceRequirements] = None start_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("startTime", "start_time"), serialization_alias="startTime", description="RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.") + volume_health: Optional[List[V1PodVolumeHealth]] = Field(default=None, validation_alias=AliasChoices("volumeHealth", "volume_health"), serialization_alias="volumeHealth", description="volumeHealth contains node-reported health for each volume the pod is using. Populated by the kubelet on the pod's node.") openapi_types: ClassVar[Dict[str, str]] = { "allocated_resources": "Dict[str, str]", "conditions": "List[V1PodCondition]", @@ -154,7 +156,8 @@ class V1PodStatus(BaseModel): "resize": "str", "resource_claim_statuses": "List[V1PodResourceClaimStatus]", "resources": "V1ResourceRequirements", - "start_time": "datetime" + "start_time": "datetime", + "volume_health": "List[V1PodVolumeHealth]" } attribute_map: ClassVar[Dict[str, str]] = { @@ -178,9 +181,10 @@ class V1PodStatus(BaseModel): "resize": "resize", "resource_claim_statuses": "resourceClaimStatuses", "resources": "resources", - "start_time": "startTime" + "start_time": "startTime", + "volume_health": "volumeHealth" } - __properties: ClassVar[List[str]] = ["allocatedResources", "conditions", "containerStatuses", "ephemeralContainerStatuses", "extendedResourceClaimStatus", "hostIP", "hostIPs", "initContainerStatuses", "message", "nodeAllocatableResourceClaimStatuses", "nominatedNodeName", "observedGeneration", "phase", "podIP", "podIPs", "qosClass", "reason", "resize", "resourceClaimStatuses", "resources", "startTime"] + __properties: ClassVar[List[str]] = ["allocatedResources", "conditions", "containerStatuses", "ephemeralContainerStatuses", "extendedResourceClaimStatus", "hostIP", "hostIPs", "initContainerStatuses", "message", "nodeAllocatableResourceClaimStatuses", "nominatedNodeName", "observedGeneration", "phase", "podIP", "podIPs", "qosClass", "reason", "resize", "resourceClaimStatuses", "resources", "startTime", "volumeHealth"] @classmethod def __preprocess_input_names( @@ -236,6 +240,9 @@ def __preprocess_input_names( if "startTime" not in obj and "start_time" in obj: obj["startTime"] = obj["start_time"] obj.pop("start_time", None) + if "volumeHealth" not in obj and "volume_health" in obj: + obj["volumeHealth"] = obj["volume_health"] + obj.pop("volume_health", None) return obj model_config = ConfigDict( @@ -306,6 +313,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("resourceClaimStatuses" if serialize else "resource_claim_statuses"): _to_legacy_value(getattr(self, "resource_claim_statuses", None), serialize), ("resources" if serialize else "resources"): _to_legacy_value(getattr(self, "resources", None), serialize), ("startTime" if serialize else "start_time"): _to_legacy_value(getattr(self, "start_time", None), serialize), + ("volumeHealth" if serialize else "volume_health"): _to_legacy_value(getattr(self, "volume_health", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -380,6 +388,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of resources if self.resources: _dict['resources'] = _to_openapi_value(self.resources) + # override the default output from pydantic by calling `to_dict()` of each item in volume_health (list) + _items = [] + if self.volume_health: + for _item_volume_health in self.volume_health: + _items.append(_to_openapi_value(_item_volume_health) if _item_volume_health is not None else None) + _dict['volumeHealth'] = _items return _dict setattr( @@ -432,6 +446,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "resize": obj.get("resize"), "resourceClaimStatuses": [V1PodResourceClaimStatus.from_dict(_item) for _item in obj["resourceClaimStatuses"]] if obj.get("resourceClaimStatuses") is not None else None, "resources": V1ResourceRequirements.from_dict(obj["resources"]) if obj.get("resources") is not None else None, - "startTime": obj.get("startTime") + "startTime": obj.get("startTime"), + "volumeHealth": [V1PodVolumeHealth.from_dict(_item) for _item in obj["volumeHealth"]] if obj.get("volumeHealth") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1_pod_template.py b/kubernetes/client/models/v1_pod_template.py index adcbc4fa2a..489af7c91b 100644 --- a/kubernetes/client/models/v1_pod_template.py +++ b/kubernetes/client/models/v1_pod_template.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_template_list.py b/kubernetes/client/models/v1_pod_template_list.py index 608d1e57c6..6c42e167b3 100644 --- a/kubernetes/client/models/v1_pod_template_list.py +++ b/kubernetes/client/models/v1_pod_template_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_template_spec.py b/kubernetes/client/models/v1_pod_template_spec.py index b83e9654d6..54a7d48119 100644 --- a/kubernetes/client/models/v1_pod_template_spec.py +++ b/kubernetes/client/models/v1_pod_template_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_pod_volume_health.py b/kubernetes/client/models/v1_pod_volume_health.py new file mode 100644 index 0000000000..3f5c8c58f6 --- /dev/null +++ b/kubernetes/client/models/v1_pod_volume_health.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from datetime import datetime +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_volume_health_condition import V1VolumeHealthCondition +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1PodVolumeHealth(BaseModel): + """ + PodVolumeHealth contains health information for a volume used by a pod, reported by the CSI node plugin via the kubelet. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + health_conditions: Optional[List[V1VolumeHealthCondition]] = Field(default=None, validation_alias=AliasChoices("healthConditions", "health_conditions"), serialization_alias="healthConditions", description="conditions is the set of adverse conditions reported by the CSI node plugin for this volume on this node. At most 16 conditions may be reported.") + last_transition_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastTransitionTime", "last_transition_time"), serialization_alias="lastTransitionTime", description="lastTransitionTime is when the current set of conditions first appeared.") + name: StrictStr = Field(description="name matches an entry in pod.spec.volumes.") + openapi_types: ClassVar[Dict[str, str]] = { + "health_conditions": "List[V1VolumeHealthCondition]", + "last_transition_time": "datetime", + "name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "health_conditions": "healthConditions", + "last_transition_time": "lastTransitionTime", + "name": "name" + } + __properties: ClassVar[List[str]] = ["healthConditions", "lastTransitionTime", "name"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "healthConditions" not in obj and "health_conditions" in obj: + obj["healthConditions"] = obj["health_conditions"] + obj.pop("health_conditions", None) + if "lastTransitionTime" not in obj and "last_transition_time" in obj: + obj["lastTransitionTime"] = obj["last_transition_time"] + obj.pop("last_transition_time", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1PodVolumeHealth): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodVolumeHealth): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1PodVolumeHealth from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("healthConditions" if serialize else "health_conditions"): _to_legacy_value(getattr(self, "health_conditions", None), serialize), + ("lastTransitionTime" if serialize else "last_transition_time"): _to_legacy_value(getattr(self, "last_transition_time", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in health_conditions (list) + _items = [] + if self.health_conditions: + for _item_health_conditions in self.health_conditions: + _items.append(_to_openapi_value(_item_health_conditions) if _item_health_conditions is not None else None) + _dict['healthConditions'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1PodVolumeHealth from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "healthConditions": [V1VolumeHealthCondition.from_dict(_item) for _item in obj["healthConditions"]] if obj.get("healthConditions") is not None else None, + "lastTransitionTime": obj.get("lastTransitionTime"), + "name": obj.get("name") + }) + return _obj diff --git a/kubernetes/client/models/v1_policy_rule.py b/kubernetes/client/models/v1_policy_rule.py index 72215feffe..f56df5a070 100644 --- a/kubernetes/client/models/v1_policy_rule.py +++ b/kubernetes/client/models/v1_policy_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -103,11 +103,11 @@ class V1PolicyRule(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - api_groups: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("apiGroups", "api_groups"), serialization_alias="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. \"\" represents the core API group and \"*\" represents all API groups.") - non_resource_urls: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("nonResourceURLs", "non_resource_urls"), serialization_alias="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 Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.") - resource_names: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("resourceNames", "resource_names"), serialization_alias="resourceNames", description="ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") - resources: Optional[List[StrictStr]] = Field(default=None, description="Resources is a list of resources this rule applies to. '*' represents all resources.") - verbs: List[StrictStr] = Field(description="Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.") + api_groups: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("apiGroups", "api_groups"), serialization_alias="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. \"\" represents the core API group and \"*\" represents all API groups.") + non_resource_urls: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("nonResourceURLs", "non_resource_urls"), serialization_alias="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 Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.") + resource_names: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("resourceNames", "resource_names"), serialization_alias="resourceNames", description="resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") + resources: Optional[List[StrictStr]] = Field(default=None, description="resources is a list of resources this rule applies to. '*' represents all resources.") + verbs: List[StrictStr] = Field(description="verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.") openapi_types: ClassVar[Dict[str, str]] = { "api_groups": "List[str]", "non_resource_urls": "List[str]", diff --git a/kubernetes/client/models/v1_policy_rules_with_subjects.py b/kubernetes/client/models/v1_policy_rules_with_subjects.py index 7bbc1148f9..6862b3d679 100644 --- a/kubernetes/client/models/v1_policy_rules_with_subjects.py +++ b/kubernetes/client/models/v1_policy_rules_with_subjects.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_port_status.py b/kubernetes/client/models/v1_port_status.py index 60da0a145c..ef18c7f023 100644 --- a/kubernetes/client/models/v1_port_status.py +++ b/kubernetes/client/models/v1_port_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_portworx_volume_source.py b/kubernetes/client/models/v1_portworx_volume_source.py index e5554cec76..df1e32333c 100644 --- a/kubernetes/client/models/v1_portworx_volume_source.py +++ b/kubernetes/client/models/v1_portworx_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_preconditions.py b/kubernetes/client/models/v1_preconditions.py index ba3608c07c..464be0f68b 100644 --- a/kubernetes/client/models/v1_preconditions.py +++ b/kubernetes/client/models/v1_preconditions.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_preferred_scheduling_term.py b/kubernetes/client/models/v1_preferred_scheduling_term.py index 4de211c967..b1851b63ff 100644 --- a/kubernetes/client/models/v1_preferred_scheduling_term.py +++ b/kubernetes/client/models/v1_preferred_scheduling_term.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_priority_class.py b/kubernetes/client/models/v1_priority_class.py index 27924c9e14..3c0fb73c79 100644 --- a/kubernetes/client/models/v1_priority_class.py +++ b/kubernetes/client/models/v1_priority_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_priority_class_list.py b/kubernetes/client/models/v1_priority_class_list.py index 87c168fd03..26eb4df927 100644 --- a/kubernetes/client/models/v1_priority_class_list.py +++ b/kubernetes/client/models/v1_priority_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_priority_level_configuration.py b/kubernetes/client/models/v1_priority_level_configuration.py index 71d78420ab..439b9fb0b0 100644 --- a/kubernetes/client/models/v1_priority_level_configuration.py +++ b/kubernetes/client/models/v1_priority_level_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,7 +109,7 @@ class V1PriorityLevelConfiguration(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: Optional[V1PriorityLevelConfigurationSpec] = None + spec: V1PriorityLevelConfigurationSpec status: Optional[V1PriorityLevelConfigurationStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", diff --git a/kubernetes/client/models/v1_priority_level_configuration_condition.py b/kubernetes/client/models/v1_priority_level_configuration_condition.py index 120157849b..c99da95a13 100644 --- a/kubernetes/client/models/v1_priority_level_configuration_condition.py +++ b/kubernetes/client/models/v1_priority_level_configuration_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -107,8 +107,8 @@ class V1PriorityLevelConfigurationCondition(BaseModel): last_transition_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastTransitionTime", "last_transition_time"), serialization_alias="lastTransitionTime", description="`lastTransitionTime` is the last time the condition transitioned from one status to another.") message: Optional[StrictStr] = Field(default=None, description="`message` is a human-readable message indicating details about last transition.") reason: Optional[StrictStr] = Field(default=None, description="`reason` is a unique, one-word, CamelCase reason for the condition's last transition.") - status: Optional[StrictStr] = Field(default=None, description="`status` is the status of the condition. Can be True, False, Unknown. Required.") - type: Optional[StrictStr] = Field(default=None, description="`type` is the type of the condition. Required.") + status: Optional[StrictStr] = Field(default=None, description="`status` is the status of the condition. Should be specified and set to one of True, False, Unknown.") + type: StrictStr = Field(description="`type` is the type of the condition. Required.") openapi_types: ClassVar[Dict[str, str]] = { "last_transition_time": "datetime", "message": "str", diff --git a/kubernetes/client/models/v1_priority_level_configuration_list.py b/kubernetes/client/models/v1_priority_level_configuration_list.py index 481287841f..b67f99a9dc 100644 --- a/kubernetes/client/models/v1_priority_level_configuration_list.py +++ b/kubernetes/client/models/v1_priority_level_configuration_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_priority_level_configuration_reference.py b/kubernetes/client/models/v1_priority_level_configuration_reference.py index 341107ad86..22e52bf36a 100644 --- a/kubernetes/client/models/v1_priority_level_configuration_reference.py +++ b/kubernetes/client/models/v1_priority_level_configuration_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_priority_level_configuration_spec.py b/kubernetes/client/models/v1_priority_level_configuration_spec.py index fc4a4c2f08..8ea2c97fb1 100644 --- a/kubernetes/client/models/v1_priority_level_configuration_spec.py +++ b/kubernetes/client/models/v1_priority_level_configuration_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_priority_level_configuration_status.py b/kubernetes/client/models/v1_priority_level_configuration_status.py index 4905d7759c..1d3ba1faf9 100644 --- a/kubernetes/client/models/v1_priority_level_configuration_status.py +++ b/kubernetes/client/models/v1_priority_level_configuration_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_probe.py b/kubernetes/client/models/v1_probe.py index 3dc9346f2a..8f9f32fbb7 100644 --- a/kubernetes/client/models/v1_probe.py +++ b/kubernetes/client/models/v1_probe.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_projected_volume_source.py b/kubernetes/client/models/v1_projected_volume_source.py index 378d42929b..59fce9d89f 100644 --- a/kubernetes/client/models/v1_projected_volume_source.py +++ b/kubernetes/client/models/v1_projected_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,17 +105,20 @@ class V1ProjectedVolumeSource(BaseModel): and the value is json key in definition. """ # noqa: E501 default_mode: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("defaultMode", "default_mode"), serialization_alias="defaultMode", description="defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") + default_user: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("defaultUser", "default_user"), serialization_alias="defaultUser", description="defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") sources: Optional[List[V1VolumeProjection]] = Field(default=None, description="sources is the list of volume projections. Each entry in this list handles one source.") openapi_types: ClassVar[Dict[str, str]] = { "default_mode": "int", + "default_user": "int", "sources": "List[V1VolumeProjection]" } attribute_map: ClassVar[Dict[str, str]] = { "default_mode": "defaultMode", + "default_user": "defaultUser", "sources": "sources" } - __properties: ClassVar[List[str]] = ["defaultMode", "sources"] + __properties: ClassVar[List[str]] = ["defaultMode", "defaultUser", "sources"] @classmethod def __preprocess_input_names( @@ -129,6 +132,9 @@ def __preprocess_input_names( if "defaultMode" not in obj and "default_mode" in obj: obj["defaultMode"] = obj["default_mode"] obj.pop("default_mode", None) + if "defaultUser" not in obj and "default_user" in obj: + obj["defaultUser"] = obj["default_user"] + obj.pop("default_user", None) return obj model_config = ConfigDict( @@ -179,6 +185,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { ("defaultMode" if serialize else "default_mode"): _to_legacy_value(getattr(self, "default_mode", None), serialize), + ("defaultUser" if serialize else "default_user"): _to_legacy_value(getattr(self, "default_user", None), serialize), ("sources" if serialize else "sources"): _to_legacy_value(getattr(self, "sources", None), serialize), } @@ -239,6 +246,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "defaultMode": obj.get("defaultMode"), + "defaultUser": obj.get("defaultUser"), "sources": [V1VolumeProjection.from_dict(_item) for _item in obj["sources"]] if obj.get("sources") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1_queuing_configuration.py b/kubernetes/client/models/v1_queuing_configuration.py index 8b14d7a0aa..3bf8ee6e2b 100644 --- a/kubernetes/client/models/v1_queuing_configuration.py +++ b/kubernetes/client/models/v1_queuing_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_quobyte_volume_source.py b/kubernetes/client/models/v1_quobyte_volume_source.py index 57b837543d..1631e7452b 100644 --- a/kubernetes/client/models/v1_quobyte_volume_source.py +++ b/kubernetes/client/models/v1_quobyte_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_rbd_persistent_volume_source.py b/kubernetes/client/models/v1_rbd_persistent_volume_source.py index f02159e1d5..c347a52183 100644 --- a/kubernetes/client/models/v1_rbd_persistent_volume_source.py +++ b/kubernetes/client/models/v1_rbd_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_rbd_volume_source.py b/kubernetes/client/models/v1_rbd_volume_source.py index f0dcf46ff1..57a14a7359 100644 --- a/kubernetes/client/models/v1_rbd_volume_source.py +++ b/kubernetes/client/models/v1_rbd_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_replica_set.py b/kubernetes/client/models/v1_replica_set.py index 12e0fe4219..96630cb945 100644 --- a/kubernetes/client/models/v1_replica_set.py +++ b/kubernetes/client/models/v1_replica_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,7 +109,7 @@ class V1ReplicaSet(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: Optional[V1ReplicaSetSpec] = None + spec: V1ReplicaSetSpec status: Optional[V1ReplicaSetStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", diff --git a/kubernetes/client/models/v1_replica_set_condition.py b/kubernetes/client/models/v1_replica_set_condition.py index b312a71e7f..a64a0300a7 100644 --- a/kubernetes/client/models/v1_replica_set_condition.py +++ b/kubernetes/client/models/v1_replica_set_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -107,8 +107,8 @@ class V1ReplicaSetCondition(BaseModel): last_transition_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastTransitionTime", "last_transition_time"), serialization_alias="lastTransitionTime", description="The last time the condition transitioned from one status to another.") message: Optional[StrictStr] = Field(default=None, description="A human readable message indicating details about the transition.") reason: Optional[StrictStr] = Field(default=None, description="The reason for the condition's last transition.") - status: StrictStr = Field(description="Status of the condition, one of True, False, Unknown.") - type: StrictStr = Field(description="Type of replica set condition.") + status: Optional[StrictStr] = Field(default=None, description="Status of the condition, one of True, False, Unknown.") + type: Optional[StrictStr] = Field(default=None, description="Type of replica set condition.") openapi_types: ClassVar[Dict[str, str]] = { "last_transition_time": "datetime", "message": "str", diff --git a/kubernetes/client/models/v1_replica_set_list.py b/kubernetes/client/models/v1_replica_set_list.py index cc18c8efcb..eb61a091f1 100644 --- a/kubernetes/client/models/v1_replica_set_list.py +++ b/kubernetes/client/models/v1_replica_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_replica_set_spec.py b/kubernetes/client/models/v1_replica_set_spec.py index 44a731e544..99d817c061 100644 --- a/kubernetes/client/models/v1_replica_set_spec.py +++ b/kubernetes/client/models/v1_replica_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_replica_set_status.py b/kubernetes/client/models/v1_replica_set_status.py index 865bc3dba9..7d3f2503e3 100644 --- a/kubernetes/client/models/v1_replica_set_status.py +++ b/kubernetes/client/models/v1_replica_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_replication_controller.py b/kubernetes/client/models/v1_replication_controller.py index d9b2d88d07..5e29db7cc4 100644 --- a/kubernetes/client/models/v1_replication_controller.py +++ b/kubernetes/client/models/v1_replication_controller.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_replication_controller_condition.py b/kubernetes/client/models/v1_replication_controller_condition.py index b6648e7eac..640c824fa5 100644 --- a/kubernetes/client/models/v1_replication_controller_condition.py +++ b/kubernetes/client/models/v1_replication_controller_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_replication_controller_list.py b/kubernetes/client/models/v1_replication_controller_list.py index 7e28a4bf23..3a2001fba8 100644 --- a/kubernetes/client/models/v1_replication_controller_list.py +++ b/kubernetes/client/models/v1_replication_controller_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_replication_controller_spec.py b/kubernetes/client/models/v1_replication_controller_spec.py index b51ed5a481..03110c3d84 100644 --- a/kubernetes/client/models/v1_replication_controller_spec.py +++ b/kubernetes/client/models/v1_replication_controller_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_replication_controller_status.py b/kubernetes/client/models/v1_replication_controller_status.py index 2a7268a93e..7a00781b63 100644 --- a/kubernetes/client/models/v1_replication_controller_status.py +++ b/kubernetes/client/models/v1_replication_controller_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_resource_attributes.py b/kubernetes/client/models/v1_resource_attributes.py index 92dffa507a..bb480d6257 100644 --- a/kubernetes/client/models/v1_resource_attributes.py +++ b/kubernetes/client/models/v1_resource_attributes.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_resource_claim_consumer_reference.py b/kubernetes/client/models/v1_resource_claim_consumer_reference.py index c7535d6c14..8909a0a879 100644 --- a/kubernetes/client/models/v1_resource_claim_consumer_reference.py +++ b/kubernetes/client/models/v1_resource_claim_consumer_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_resource_claim_list.py b/kubernetes/client/models/v1_resource_claim_list.py index b2fbd73b54..898142976e 100644 --- a/kubernetes/client/models/v1_resource_claim_list.py +++ b/kubernetes/client/models/v1_resource_claim_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_resource_claim_spec.py b/kubernetes/client/models/v1_resource_claim_spec.py index 26ad6a42a3..b7fa44b8a3 100644 --- a/kubernetes/client/models/v1_resource_claim_spec.py +++ b/kubernetes/client/models/v1_resource_claim_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_resource_claim_status.py b/kubernetes/client/models/v1_resource_claim_status.py index a34247ad9e..d219bc6cd1 100644 --- a/kubernetes/client/models/v1_resource_claim_status.py +++ b/kubernetes/client/models/v1_resource_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_resource_claim_template.py b/kubernetes/client/models/v1_resource_claim_template.py index 9661742e9a..82c13a802e 100644 --- a/kubernetes/client/models/v1_resource_claim_template.py +++ b/kubernetes/client/models/v1_resource_claim_template.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,7 +108,7 @@ class V1ResourceClaimTemplate(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1ResourceClaimTemplateSpec + spec: Optional[V1ResourceClaimTemplateSpec] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", diff --git a/kubernetes/client/models/v1_resource_claim_template_list.py b/kubernetes/client/models/v1_resource_claim_template_list.py index e9022bb895..b39dda655a 100644 --- a/kubernetes/client/models/v1_resource_claim_template_list.py +++ b/kubernetes/client/models/v1_resource_claim_template_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_resource_claim_template_spec.py b/kubernetes/client/models/v1_resource_claim_template_spec.py index 90c95d2881..1f77d73e7a 100644 --- a/kubernetes/client/models/v1_resource_claim_template_spec.py +++ b/kubernetes/client/models/v1_resource_claim_template_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,7 +105,7 @@ class V1ResourceClaimTemplateSpec(BaseModel): and the value is json key in definition. """ # noqa: E501 metadata: Optional[V1ObjectMeta] = None - spec: V1ResourceClaimSpec + spec: Optional[V1ResourceClaimSpec] = None openapi_types: ClassVar[Dict[str, str]] = { "metadata": "V1ObjectMeta", "spec": "V1ResourceClaimSpec" diff --git a/kubernetes/client/models/v1_resource_field_selector.py b/kubernetes/client/models/v1_resource_field_selector.py index b570f1485c..4c8ff82c36 100644 --- a/kubernetes/client/models/v1_resource_field_selector.py +++ b/kubernetes/client/models/v1_resource_field_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_resource_health.py b/kubernetes/client/models/v1_resource_health.py index fcbb1db005..1f5c3ecf0e 100644 --- a/kubernetes/client/models/v1_resource_health.py +++ b/kubernetes/client/models/v1_resource_health.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_resource_policy_rule.py b/kubernetes/client/models/v1_resource_policy_rule.py index 11e29a11c4..a2075c8d8a 100644 --- a/kubernetes/client/models/v1_resource_policy_rule.py +++ b/kubernetes/client/models/v1_resource_policy_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_resource_pool.py b/kubernetes/client/models/v1_resource_pool.py index 6d26ef3953..4f7a43c136 100644 --- a/kubernetes/client/models/v1_resource_pool.py +++ b/kubernetes/client/models/v1_resource_pool.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -104,7 +104,7 @@ class V1ResourcePool(BaseModel): and the value is json key in definition. """ # noqa: E501 generation: StrictInt = Field(description="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.") - name: StrictStr = Field(description="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.") + name: StrictStr = Field(description="Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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.") resource_slice_count: StrictInt = Field(validation_alias=AliasChoices("resourceSliceCount", "resource_slice_count"), serialization_alias="resourceSliceCount", description="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.") openapi_types: ClassVar[Dict[str, str]] = { "generation": "int", diff --git a/kubernetes/client/models/v1_resource_quota.py b/kubernetes/client/models/v1_resource_quota.py index 4807f9149a..176e67b544 100644 --- a/kubernetes/client/models/v1_resource_quota.py +++ b/kubernetes/client/models/v1_resource_quota.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_resource_quota_list.py b/kubernetes/client/models/v1_resource_quota_list.py index d455a6d421..bed2f3c192 100644 --- a/kubernetes/client/models/v1_resource_quota_list.py +++ b/kubernetes/client/models/v1_resource_quota_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_resource_quota_spec.py b/kubernetes/client/models/v1_resource_quota_spec.py index 7eeeef9b5b..1aeb829989 100644 --- a/kubernetes/client/models/v1_resource_quota_spec.py +++ b/kubernetes/client/models/v1_resource_quota_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_resource_quota_status.py b/kubernetes/client/models/v1_resource_quota_status.py index b7ba506344..a170899577 100644 --- a/kubernetes/client/models/v1_resource_quota_status.py +++ b/kubernetes/client/models/v1_resource_quota_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_resource_requirements.py b/kubernetes/client/models/v1_resource_requirements.py index 7c84122c84..486990228b 100644 --- a/kubernetes/client/models/v1_resource_requirements.py +++ b/kubernetes/client/models/v1_resource_requirements.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_resource_rule.py b/kubernetes/client/models/v1_resource_rule.py index 69ace14cbb..c18e371291 100644 --- a/kubernetes/client/models/v1_resource_rule.py +++ b/kubernetes/client/models/v1_resource_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_resource_slice.py b/kubernetes/client/models/v1_resource_slice.py index 9fda0fbedc..8e752e3cdf 100644 --- a/kubernetes/client/models/v1_resource_slice.py +++ b/kubernetes/client/models/v1_resource_slice.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_resource_slice_list.py b/kubernetes/client/models/v1_resource_slice_list.py index 1c9e826478..c115176874 100644 --- a/kubernetes/client/models/v1_resource_slice_list.py +++ b/kubernetes/client/models/v1_resource_slice_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_resource_slice_spec.py b/kubernetes/client/models/v1_resource_slice_spec.py index 2c9825a789..efec5a17af 100644 --- a/kubernetes/client/models/v1_resource_slice_spec.py +++ b/kubernetes/client/models/v1_resource_slice_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -112,18 +112,22 @@ class V1ResourceSliceSpec(BaseModel): driver: StrictStr = Field(description="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.") node_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("nodeName", "node_name"), serialization_alias="nodeName", description="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.") node_selector: Optional[V1NodeSelector] = Field(default=None, validation_alias=AliasChoices("nodeSelector", "node_selector"), serialization_alias="nodeSelector") + partition_type_attribute: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("partitionTypeAttribute", "partition_type_attribute"), serialization_alias="partitionTypeAttribute", description="PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.") per_device_node_selection: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("perDeviceNodeSelection", "per_device_node_selection"), serialization_alias="perDeviceNodeSelection", description="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.") pool: V1ResourcePool shared_counters: Optional[List[V1CounterSet]] = Field(default=None, validation_alias=AliasChoices("sharedCounters", "shared_counters"), serialization_alias="sharedCounters", description="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.") + skip_node_operations: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("skipNodeOperations", "skip_node_operations"), serialization_alias="skipNodeOperations", description="SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values.") openapi_types: ClassVar[Dict[str, str]] = { "all_nodes": "bool", "devices": "List[V1Device]", "driver": "str", "node_name": "str", "node_selector": "V1NodeSelector", + "partition_type_attribute": "str", "per_device_node_selection": "bool", "pool": "V1ResourcePool", - "shared_counters": "List[V1CounterSet]" + "shared_counters": "List[V1CounterSet]", + "skip_node_operations": "List[str]" } attribute_map: ClassVar[Dict[str, str]] = { @@ -132,11 +136,13 @@ class V1ResourceSliceSpec(BaseModel): "driver": "driver", "node_name": "nodeName", "node_selector": "nodeSelector", + "partition_type_attribute": "partitionTypeAttribute", "per_device_node_selection": "perDeviceNodeSelection", "pool": "pool", - "shared_counters": "sharedCounters" + "shared_counters": "sharedCounters", + "skip_node_operations": "skipNodeOperations" } - __properties: ClassVar[List[str]] = ["allNodes", "devices", "driver", "nodeName", "nodeSelector", "perDeviceNodeSelection", "pool", "sharedCounters"] + __properties: ClassVar[List[str]] = ["allNodes", "devices", "driver", "nodeName", "nodeSelector", "partitionTypeAttribute", "perDeviceNodeSelection", "pool", "sharedCounters", "skipNodeOperations"] @classmethod def __preprocess_input_names( @@ -156,12 +162,18 @@ def __preprocess_input_names( if "nodeSelector" not in obj and "node_selector" in obj: obj["nodeSelector"] = obj["node_selector"] obj.pop("node_selector", None) + if "partitionTypeAttribute" not in obj and "partition_type_attribute" in obj: + obj["partitionTypeAttribute"] = obj["partition_type_attribute"] + obj.pop("partition_type_attribute", None) if "perDeviceNodeSelection" not in obj and "per_device_node_selection" in obj: obj["perDeviceNodeSelection"] = obj["per_device_node_selection"] obj.pop("per_device_node_selection", None) if "sharedCounters" not in obj and "shared_counters" in obj: obj["sharedCounters"] = obj["shared_counters"] obj.pop("shared_counters", None) + if "skipNodeOperations" not in obj and "skip_node_operations" in obj: + obj["skipNodeOperations"] = obj["skip_node_operations"] + obj.pop("skip_node_operations", None) return obj model_config = ConfigDict( @@ -216,9 +228,11 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("driver" if serialize else "driver"): _to_legacy_value(getattr(self, "driver", None), serialize), ("nodeName" if serialize else "node_name"): _to_legacy_value(getattr(self, "node_name", None), serialize), ("nodeSelector" if serialize else "node_selector"): _to_legacy_value(getattr(self, "node_selector", None), serialize), + ("partitionTypeAttribute" if serialize else "partition_type_attribute"): _to_legacy_value(getattr(self, "partition_type_attribute", None), serialize), ("perDeviceNodeSelection" if serialize else "per_device_node_selection"): _to_legacy_value(getattr(self, "per_device_node_selection", None), serialize), ("pool" if serialize else "pool"): _to_legacy_value(getattr(self, "pool", None), serialize), ("sharedCounters" if serialize else "shared_counters"): _to_legacy_value(getattr(self, "shared_counters", None), serialize), + ("skipNodeOperations" if serialize else "skip_node_operations"): _to_legacy_value(getattr(self, "skip_node_operations", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -294,8 +308,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "driver": obj.get("driver"), "nodeName": obj.get("nodeName"), "nodeSelector": V1NodeSelector.from_dict(obj["nodeSelector"]) if obj.get("nodeSelector") is not None else None, + "partitionTypeAttribute": obj.get("partitionTypeAttribute"), "perDeviceNodeSelection": obj.get("perDeviceNodeSelection"), "pool": V1ResourcePool.from_dict(obj["pool"]) if obj.get("pool") is not None else None, - "sharedCounters": [V1CounterSet.from_dict(_item) for _item in obj["sharedCounters"]] if obj.get("sharedCounters") is not None else None + "sharedCounters": [V1CounterSet.from_dict(_item) for _item in obj["sharedCounters"]] if obj.get("sharedCounters") is not None else None, + "skipNodeOperations": obj.get("skipNodeOperations") }) return _obj diff --git a/kubernetes/client/models/v1_resource_status.py b/kubernetes/client/models/v1_resource_status.py index 913d05143d..3d0b49cb92 100644 --- a/kubernetes/client/models/v1_resource_status.py +++ b/kubernetes/client/models/v1_resource_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -103,7 +103,7 @@ class V1ResourceStatus(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - name: StrictStr = Field(description="Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:/\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.") + name: StrictStr = Field(description="Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:/\" when container.resources.claims[*].request is set or \"claim:\" when container.resources.claims[*].request is empty. For DRA-backed extended resources, \"claim:/\" is used when the claim name and request name are recorded in pod.status.extendedResourceClaimStatus. When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.") resources: Optional[List[V1ResourceHealth]] = Field(default=None, description="List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases.") openapi_types: ClassVar[Dict[str, str]] = { "name": "str", diff --git a/kubernetes/client/models/v1_role.py b/kubernetes/client/models/v1_role.py index 6857215778..5947917a67 100644 --- a/kubernetes/client/models/v1_role.py +++ b/kubernetes/client/models/v1_role.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,7 +108,7 @@ class V1Role(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - rules: Optional[List[V1PolicyRule]] = Field(default=None, description="Rules holds all the PolicyRules for this Role") + rules: Optional[List[V1PolicyRule]] = Field(default=None, description="rules holds all the PolicyRules for this Role") openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", diff --git a/kubernetes/client/models/v1_role_binding.py b/kubernetes/client/models/v1_role_binding.py index b29542f5c7..b4eda1c961 100644 --- a/kubernetes/client/models/v1_role_binding.py +++ b/kubernetes/client/models/v1_role_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -110,7 +110,7 @@ class V1RoleBinding(BaseModel): kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None role_ref: V1RoleRef = Field(validation_alias=AliasChoices("roleRef", "role_ref"), serialization_alias="roleRef") - subjects: Optional[List[RbacV1Subject]] = Field(default=None, description="Subjects holds references to the objects the role applies to.") + subjects: Optional[List[RbacV1Subject]] = Field(default=None, description="subjects holds references to the objects the role applies to.") openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", diff --git a/kubernetes/client/models/v1_role_binding_list.py b/kubernetes/client/models/v1_role_binding_list.py index d10b0d43e1..18916c5a6b 100644 --- a/kubernetes/client/models/v1_role_binding_list.py +++ b/kubernetes/client/models/v1_role_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_role_list.py b/kubernetes/client/models/v1_role_list.py index a7c1eda6d9..7acf3d0cfa 100644 --- a/kubernetes/client/models/v1_role_list.py +++ b/kubernetes/client/models/v1_role_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_role_ref.py b/kubernetes/client/models/v1_role_ref.py index f55a758f72..f795fe539d 100644 --- a/kubernetes/client/models/v1_role_ref.py +++ b/kubernetes/client/models/v1_role_ref.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -103,9 +103,9 @@ class V1RoleRef(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - api_group: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiGroup", "api_group"), serialization_alias="apiGroup", description="APIGroup is the group for the resource being referenced") - kind: StrictStr = Field(description="Kind is the type of resource being referenced") - name: StrictStr = Field(description="Name is the name of resource being referenced") + api_group: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiGroup", "api_group"), serialization_alias="apiGroup", description="apiGroup is the group for the resource being referenced") + kind: StrictStr = Field(description="kind is the type of resource being referenced") + name: StrictStr = Field(description="name is the name of resource being referenced") openapi_types: ClassVar[Dict[str, str]] = { "api_group": "str", "kind": "str", diff --git a/kubernetes/client/models/v1_rolling_update_daemon_set.py b/kubernetes/client/models/v1_rolling_update_daemon_set.py index 9dec8dbe24..b5c84a2cc4 100644 --- a/kubernetes/client/models/v1_rolling_update_daemon_set.py +++ b/kubernetes/client/models/v1_rolling_update_daemon_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_rolling_update_deployment.py b/kubernetes/client/models/v1_rolling_update_deployment.py index 6bdefb614a..706e494e2b 100644 --- a/kubernetes/client/models/v1_rolling_update_deployment.py +++ b/kubernetes/client/models/v1_rolling_update_deployment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py b/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py index 9f62214e39..ab2c7ce46f 100644 --- a/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py +++ b/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_rule_with_operations.py b/kubernetes/client/models/v1_rule_with_operations.py index ff64ed9d93..a8919e828a 100644 --- a/kubernetes/client/models/v1_rule_with_operations.py +++ b/kubernetes/client/models/v1_rule_with_operations.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_runtime_class.py b/kubernetes/client/models/v1_runtime_class.py index 96fdd66e87..3b2dd78df9 100644 --- a/kubernetes/client/models/v1_runtime_class.py +++ b/kubernetes/client/models/v1_runtime_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_runtime_class_list.py b/kubernetes/client/models/v1_runtime_class_list.py index e08d818b39..4215c0afa6 100644 --- a/kubernetes/client/models/v1_runtime_class_list.py +++ b/kubernetes/client/models/v1_runtime_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_scale.py b/kubernetes/client/models/v1_scale.py index 02bb7a32d4..34c5e5f92d 100644 --- a/kubernetes/client/models/v1_scale.py +++ b/kubernetes/client/models/v1_scale.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_scale_io_persistent_volume_source.py b/kubernetes/client/models/v1_scale_io_persistent_volume_source.py index ab5c906696..15948748d8 100644 --- a/kubernetes/client/models/v1_scale_io_persistent_volume_source.py +++ b/kubernetes/client/models/v1_scale_io_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_scale_io_volume_source.py b/kubernetes/client/models/v1_scale_io_volume_source.py index d08ad1735c..fc33398709 100644 --- a/kubernetes/client/models/v1_scale_io_volume_source.py +++ b/kubernetes/client/models/v1_scale_io_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_scale_spec.py b/kubernetes/client/models/v1_scale_spec.py index 6505e73367..6908e005b3 100644 --- a/kubernetes/client/models/v1_scale_spec.py +++ b/kubernetes/client/models/v1_scale_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_scale_status.py b/kubernetes/client/models/v1_scale_status.py index b4a3e2b85d..043ee818dd 100644 --- a/kubernetes/client/models/v1_scale_status.py +++ b/kubernetes/client/models/v1_scale_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_scheduling.py b/kubernetes/client/models/v1_scheduling.py index 696a2a089c..ef292fd0a7 100644 --- a/kubernetes/client/models/v1_scheduling.py +++ b/kubernetes/client/models/v1_scheduling.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_scope_selector.py b/kubernetes/client/models/v1_scope_selector.py index 623ca4aeda..b7f7149042 100644 --- a/kubernetes/client/models/v1_scope_selector.py +++ b/kubernetes/client/models/v1_scope_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_scoped_resource_selector_requirement.py b/kubernetes/client/models/v1_scoped_resource_selector_requirement.py index 570f87f9ce..e7a67ac25c 100644 --- a/kubernetes/client/models/v1_scoped_resource_selector_requirement.py +++ b/kubernetes/client/models/v1_scoped_resource_selector_requirement.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_se_linux_options.py b/kubernetes/client/models/v1_se_linux_options.py index 652a88954a..3a76a3ec8d 100644 --- a/kubernetes/client/models/v1_se_linux_options.py +++ b/kubernetes/client/models/v1_se_linux_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_seccomp_profile.py b/kubernetes/client/models/v1_seccomp_profile.py index 18e8b1b0dd..b531095416 100644 --- a/kubernetes/client/models/v1_seccomp_profile.py +++ b/kubernetes/client/models/v1_seccomp_profile.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_secret.py b/kubernetes/client/models/v1_secret.py index a8e578a34e..3a68f845c9 100644 --- a/kubernetes/client/models/v1_secret.py +++ b/kubernetes/client/models/v1_secret.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_secret_env_source.py b/kubernetes/client/models/v1_secret_env_source.py index 06870f2d77..7cff1f38b2 100644 --- a/kubernetes/client/models/v1_secret_env_source.py +++ b/kubernetes/client/models/v1_secret_env_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_secret_key_selector.py b/kubernetes/client/models/v1_secret_key_selector.py index 366c0d048c..2c3a8e6c1e 100644 --- a/kubernetes/client/models/v1_secret_key_selector.py +++ b/kubernetes/client/models/v1_secret_key_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_secret_list.py b/kubernetes/client/models/v1_secret_list.py index b76a01b4e1..ce16fb027d 100644 --- a/kubernetes/client/models/v1_secret_list.py +++ b/kubernetes/client/models/v1_secret_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_secret_projection.py b/kubernetes/client/models/v1_secret_projection.py index 477869acd5..dc786a1267 100644 --- a/kubernetes/client/models/v1_secret_projection.py +++ b/kubernetes/client/models/v1_secret_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_secret_reference.py b/kubernetes/client/models/v1_secret_reference.py index a8a37aa1ed..e67fc9ec1c 100644 --- a/kubernetes/client/models/v1_secret_reference.py +++ b/kubernetes/client/models/v1_secret_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_secret_volume_source.py b/kubernetes/client/models/v1_secret_volume_source.py index b0b454f593..f6d20412a5 100644 --- a/kubernetes/client/models/v1_secret_volume_source.py +++ b/kubernetes/client/models/v1_secret_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,11 +105,13 @@ class V1SecretVolumeSource(BaseModel): and the value is json key in definition. """ # noqa: E501 default_mode: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("defaultMode", "default_mode"), serialization_alias="defaultMode", description="defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") + default_user: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("defaultUser", "default_user"), serialization_alias="defaultUser", description="defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") items: Optional[List[V1KeyToPath]] = Field(default=None, description="items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.") optional: Optional[StrictBool] = Field(default=None, description="optional field specify whether the Secret or its keys must be defined") secret_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("secretName", "secret_name"), serialization_alias="secretName", description="secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret") openapi_types: ClassVar[Dict[str, str]] = { "default_mode": "int", + "default_user": "int", "items": "List[V1KeyToPath]", "optional": "bool", "secret_name": "str" @@ -117,11 +119,12 @@ class V1SecretVolumeSource(BaseModel): attribute_map: ClassVar[Dict[str, str]] = { "default_mode": "defaultMode", + "default_user": "defaultUser", "items": "items", "optional": "optional", "secret_name": "secretName" } - __properties: ClassVar[List[str]] = ["defaultMode", "items", "optional", "secretName"] + __properties: ClassVar[List[str]] = ["defaultMode", "defaultUser", "items", "optional", "secretName"] @classmethod def __preprocess_input_names( @@ -135,6 +138,9 @@ def __preprocess_input_names( if "defaultMode" not in obj and "default_mode" in obj: obj["defaultMode"] = obj["default_mode"] obj.pop("default_mode", None) + if "defaultUser" not in obj and "default_user" in obj: + obj["defaultUser"] = obj["default_user"] + obj.pop("default_user", None) if "secretName" not in obj and "secret_name" in obj: obj["secretName"] = obj["secret_name"] obj.pop("secret_name", None) @@ -188,6 +194,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { ("defaultMode" if serialize else "default_mode"): _to_legacy_value(getattr(self, "default_mode", None), serialize), + ("defaultUser" if serialize else "default_user"): _to_legacy_value(getattr(self, "default_user", None), serialize), ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), ("optional" if serialize else "optional"): _to_legacy_value(getattr(self, "optional", None), serialize), ("secretName" if serialize else "secret_name"): _to_legacy_value(getattr(self, "secret_name", None), serialize), @@ -250,6 +257,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "defaultMode": obj.get("defaultMode"), + "defaultUser": obj.get("defaultUser"), "items": [V1KeyToPath.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "optional": obj.get("optional"), "secretName": obj.get("secretName") diff --git a/kubernetes/client/models/v1_security_context.py b/kubernetes/client/models/v1_security_context.py index 444a87d446..ef5ea50c33 100644 --- a/kubernetes/client/models/v1_security_context.py +++ b/kubernetes/client/models/v1_security_context.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_selectable_field.py b/kubernetes/client/models/v1_selectable_field.py index 843462e941..c764f79825 100644 --- a/kubernetes/client/models/v1_selectable_field.py +++ b/kubernetes/client/models/v1_selectable_field.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_self_subject_access_review.py b/kubernetes/client/models/v1_self_subject_access_review.py index 563dc6f259..1e2110f489 100644 --- a/kubernetes/client/models/v1_self_subject_access_review.py +++ b/kubernetes/client/models/v1_self_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_self_subject_access_review_spec.py b/kubernetes/client/models/v1_self_subject_access_review_spec.py index 4919213832..0c7c3512ac 100644 --- a/kubernetes/client/models/v1_self_subject_access_review_spec.py +++ b/kubernetes/client/models/v1_self_subject_access_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_self_subject_review.py b/kubernetes/client/models/v1_self_subject_review.py index 89db46e9d1..de3725afdf 100644 --- a/kubernetes/client/models/v1_self_subject_review.py +++ b/kubernetes/client/models/v1_self_subject_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_self_subject_review_status.py b/kubernetes/client/models/v1_self_subject_review_status.py index 5b2cd3050e..5dc14950d9 100644 --- a/kubernetes/client/models/v1_self_subject_review_status.py +++ b/kubernetes/client/models/v1_self_subject_review_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_self_subject_rules_review.py b/kubernetes/client/models/v1_self_subject_rules_review.py index dd3f2ab083..1a9d065e3c 100644 --- a/kubernetes/client/models/v1_self_subject_rules_review.py +++ b/kubernetes/client/models/v1_self_subject_rules_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_self_subject_rules_review_spec.py b/kubernetes/client/models/v1_self_subject_rules_review_spec.py index 97e8c10fe3..eaa8a036b7 100644 --- a/kubernetes/client/models/v1_self_subject_rules_review_spec.py +++ b/kubernetes/client/models/v1_self_subject_rules_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_server_address_by_client_cidr.py b/kubernetes/client/models/v1_server_address_by_client_cidr.py index 2ede384c0a..e556be1eda 100644 --- a/kubernetes/client/models/v1_server_address_by_client_cidr.py +++ b/kubernetes/client/models/v1_server_address_by_client_cidr.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_service.py b/kubernetes/client/models/v1_service.py index be82b3e820..2f2026d78b 100644 --- a/kubernetes/client/models/v1_service.py +++ b/kubernetes/client/models/v1_service.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_service_account.py b/kubernetes/client/models/v1_service_account.py index 45a967eadc..2832dc9917 100644 --- a/kubernetes/client/models/v1_service_account.py +++ b/kubernetes/client/models/v1_service_account.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_service_account_list.py b/kubernetes/client/models/v1_service_account_list.py index f57854171e..77444a8c2a 100644 --- a/kubernetes/client/models/v1_service_account_list.py +++ b/kubernetes/client/models/v1_service_account_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_service_account_subject.py b/kubernetes/client/models/v1_service_account_subject.py index f12130bd3f..4c2364d615 100644 --- a/kubernetes/client/models/v1_service_account_subject.py +++ b/kubernetes/client/models/v1_service_account_subject.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_service_account_token_projection.py b/kubernetes/client/models/v1_service_account_token_projection.py index 15ef98b80f..ca757d2b21 100644 --- a/kubernetes/client/models/v1_service_account_token_projection.py +++ b/kubernetes/client/models/v1_service_account_token_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -106,18 +106,21 @@ class V1ServiceAccountTokenProjection(BaseModel): audience: Optional[StrictStr] = Field(default=None, description="audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.") expiration_seconds: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("expirationSeconds", "expiration_seconds"), serialization_alias="expirationSeconds", description="expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.") path: StrictStr = Field(description="path is the path relative to the mount point of the file to project the token into.") + user: Optional[StrictInt] = Field(default=None, description="user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.") openapi_types: ClassVar[Dict[str, str]] = { "audience": "str", "expiration_seconds": "int", - "path": "str" + "path": "str", + "user": "int" } attribute_map: ClassVar[Dict[str, str]] = { "audience": "audience", "expiration_seconds": "expirationSeconds", - "path": "path" + "path": "path", + "user": "user" } - __properties: ClassVar[List[str]] = ["audience", "expirationSeconds", "path"] + __properties: ClassVar[List[str]] = ["audience", "expirationSeconds", "path", "user"] @classmethod def __preprocess_input_names( @@ -183,6 +186,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("audience" if serialize else "audience"): _to_legacy_value(getattr(self, "audience", None), serialize), ("expirationSeconds" if serialize else "expiration_seconds"): _to_legacy_value(getattr(self, "expiration_seconds", None), serialize), ("path" if serialize else "path"): _to_legacy_value(getattr(self, "path", None), serialize), + ("user" if serialize else "user"): _to_legacy_value(getattr(self, "user", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -237,6 +241,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "audience": obj.get("audience"), "expirationSeconds": obj.get("expirationSeconds"), - "path": obj.get("path") + "path": obj.get("path"), + "user": obj.get("user") }) return _obj diff --git a/kubernetes/client/models/v1_service_backend_port.py b/kubernetes/client/models/v1_service_backend_port.py index 3fd21c0d37..3777a294bb 100644 --- a/kubernetes/client/models/v1_service_backend_port.py +++ b/kubernetes/client/models/v1_service_backend_port.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_service_cidr.py b/kubernetes/client/models/v1_service_cidr.py index 11f8b859fe..d31f9c7d53 100644 --- a/kubernetes/client/models/v1_service_cidr.py +++ b/kubernetes/client/models/v1_service_cidr.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_service_cidr_list.py b/kubernetes/client/models/v1_service_cidr_list.py index d36c9251a0..3b8efea5e5 100644 --- a/kubernetes/client/models/v1_service_cidr_list.py +++ b/kubernetes/client/models/v1_service_cidr_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_service_cidr_spec.py b/kubernetes/client/models/v1_service_cidr_spec.py index 3d8d32a37f..9ae607d7d5 100644 --- a/kubernetes/client/models/v1_service_cidr_spec.py +++ b/kubernetes/client/models/v1_service_cidr_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -102,7 +102,7 @@ class V1ServiceCIDRSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - cidrs: Optional[List[StrictStr]] = Field(default=None, description="CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.") + cidrs: Optional[List[StrictStr]] = Field(default=None, description="cidrs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.") openapi_types: ClassVar[Dict[str, str]] = { "cidrs": "List[str]" } diff --git a/kubernetes/client/models/v1_service_cidr_status.py b/kubernetes/client/models/v1_service_cidr_status.py index 07181ac871..d749783a1b 100644 --- a/kubernetes/client/models/v1_service_cidr_status.py +++ b/kubernetes/client/models/v1_service_cidr_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_service_list.py b/kubernetes/client/models/v1_service_list.py index 8be79f47a4..149f2ec8a5 100644 --- a/kubernetes/client/models/v1_service_list.py +++ b/kubernetes/client/models/v1_service_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_service_port.py b/kubernetes/client/models/v1_service_port.py index ca27e5ebc9..ba5625f214 100644 --- a/kubernetes/client/models/v1_service_port.py +++ b/kubernetes/client/models/v1_service_port.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_service_spec.py b/kubernetes/client/models/v1_service_spec.py index ac93d2fb05..34458363be 100644 --- a/kubernetes/client/models/v1_service_spec.py +++ b/kubernetes/client/models/v1_service_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_service_status.py b/kubernetes/client/models/v1_service_status.py index 14d818bf74..7360dba0f3 100644 --- a/kubernetes/client/models/v1_service_status.py +++ b/kubernetes/client/models/v1_service_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_session_affinity_config.py b/kubernetes/client/models/v1_session_affinity_config.py index 44607b08b2..1ab3e069b1 100644 --- a/kubernetes/client/models/v1_session_affinity_config.py +++ b/kubernetes/client/models/v1_session_affinity_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_shard_info.py b/kubernetes/client/models/v1_shard_info.py index de1ad3f486..c8e9d75e9f 100644 --- a/kubernetes/client/models/v1_shard_info.py +++ b/kubernetes/client/models/v1_shard_info.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_sleep_action.py b/kubernetes/client/models/v1_sleep_action.py index 05eea6a18e..df6733738e 100644 --- a/kubernetes/client/models/v1_sleep_action.py +++ b/kubernetes/client/models/v1_sleep_action.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_stateful_set.py b/kubernetes/client/models/v1_stateful_set.py index db605146f1..74e65a1dea 100644 --- a/kubernetes/client/models/v1_stateful_set.py +++ b/kubernetes/client/models/v1_stateful_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,7 +109,7 @@ class V1StatefulSet(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: Optional[V1StatefulSetSpec] = None + spec: V1StatefulSetSpec status: Optional[V1StatefulSetStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", diff --git a/kubernetes/client/models/v1_stateful_set_condition.py b/kubernetes/client/models/v1_stateful_set_condition.py index 5a54b5c97f..a223e6d709 100644 --- a/kubernetes/client/models/v1_stateful_set_condition.py +++ b/kubernetes/client/models/v1_stateful_set_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -107,8 +107,8 @@ class V1StatefulSetCondition(BaseModel): last_transition_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastTransitionTime", "last_transition_time"), serialization_alias="lastTransitionTime", description="Last time the condition transitioned from one status to another.") message: Optional[StrictStr] = Field(default=None, description="A human readable message indicating details about the transition.") reason: Optional[StrictStr] = Field(default=None, description="The reason for the condition's last transition.") - status: StrictStr = Field(description="Status of the condition, one of True, False, Unknown.") - type: StrictStr = Field(description="Type of statefulset condition.") + status: Optional[StrictStr] = Field(default=None, description="Status of the condition, one of True, False, Unknown.") + type: Optional[StrictStr] = Field(default=None, description="Type of statefulset condition.") openapi_types: ClassVar[Dict[str, str]] = { "last_transition_time": "datetime", "message": "str", diff --git a/kubernetes/client/models/v1_stateful_set_list.py b/kubernetes/client/models/v1_stateful_set_list.py index 86b7ae4ef6..0b76a360f7 100644 --- a/kubernetes/client/models/v1_stateful_set_list.py +++ b/kubernetes/client/models/v1_stateful_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_stateful_set_ordinals.py b/kubernetes/client/models/v1_stateful_set_ordinals.py index 112209b965..115fdd2332 100644 --- a/kubernetes/client/models/v1_stateful_set_ordinals.py +++ b/kubernetes/client/models/v1_stateful_set_ordinals.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_stateful_set_persistent_volume_claim_retention_policy.py b/kubernetes/client/models/v1_stateful_set_persistent_volume_claim_retention_policy.py index 71dd120d65..e0de442c50 100644 --- a/kubernetes/client/models/v1_stateful_set_persistent_volume_claim_retention_policy.py +++ b/kubernetes/client/models/v1_stateful_set_persistent_volume_claim_retention_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_stateful_set_spec.py b/kubernetes/client/models/v1_stateful_set_spec.py index 56d76f8e7b..db1fe4a8f4 100644 --- a/kubernetes/client/models/v1_stateful_set_spec.py +++ b/kubernetes/client/models/v1_stateful_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_stateful_set_status.py b/kubernetes/client/models/v1_stateful_set_status.py index ee7f20ab4b..fe7eb8428f 100644 --- a/kubernetes/client/models/v1_stateful_set_status.py +++ b/kubernetes/client/models/v1_stateful_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_stateful_set_update_strategy.py b/kubernetes/client/models/v1_stateful_set_update_strategy.py index c049eba0c0..53c7c54f08 100644 --- a/kubernetes/client/models/v1_stateful_set_update_strategy.py +++ b/kubernetes/client/models/v1_stateful_set_update_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_status.py b/kubernetes/client/models/v1_status.py index fd85a6508b..cba64275b4 100644 --- a/kubernetes/client/models/v1_status.py +++ b/kubernetes/client/models/v1_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_status_cause.py b/kubernetes/client/models/v1_status_cause.py index 9c969f64fa..b72089803a 100644 --- a/kubernetes/client/models/v1_status_cause.py +++ b/kubernetes/client/models/v1_status_cause.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_status_details.py b/kubernetes/client/models/v1_status_details.py index 6b82f250fa..7983ba75cc 100644 --- a/kubernetes/client/models/v1_status_details.py +++ b/kubernetes/client/models/v1_status_details.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_storage_class.py b/kubernetes/client/models/v1_storage_class.py index be731a1316..4293fbcce3 100644 --- a/kubernetes/client/models/v1_storage_class.py +++ b/kubernetes/client/models/v1_storage_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_storage_class_list.py b/kubernetes/client/models/v1_storage_class_list.py index e84a4286ca..5982e166c2 100644 --- a/kubernetes/client/models/v1_storage_class_list.py +++ b/kubernetes/client/models/v1_storage_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_storage_health.py b/kubernetes/client/models/v1_storage_health.py new file mode 100644 index 0000000000..90f753e2d9 --- /dev/null +++ b/kubernetes/client/models/v1_storage_health.py @@ -0,0 +1,244 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_storage_health_condition import V1StorageHealthCondition +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1StorageHealth(BaseModel): + """ + StorageHealth contains storage backend health reported by a CSI driver on a node. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + health_conditions: Optional[List[V1StorageHealthCondition]] = Field(default=None, validation_alias=AliasChoices("healthConditions", "health_conditions"), serialization_alias="healthConditions", description="healthConditions are the adverse storage backend conditions reported by the CSI driver. At most 16 conditions may be reported.") + name: StrictStr = Field(description="name is the CSI driver name, matching CSINodeDriver.name.") + openapi_types: ClassVar[Dict[str, str]] = { + "health_conditions": "List[V1StorageHealthCondition]", + "name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "health_conditions": "healthConditions", + "name": "name" + } + __properties: ClassVar[List[str]] = ["healthConditions", "name"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "healthConditions" not in obj and "health_conditions" in obj: + obj["healthConditions"] = obj["health_conditions"] + obj.pop("health_conditions", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1StorageHealth): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1StorageHealth): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1StorageHealth from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("healthConditions" if serialize else "health_conditions"): _to_legacy_value(getattr(self, "health_conditions", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in health_conditions (list) + _items = [] + if self.health_conditions: + for _item_health_conditions in self.health_conditions: + _items.append(_to_openapi_value(_item_health_conditions) if _item_health_conditions is not None else None) + _dict['healthConditions'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1StorageHealth from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "healthConditions": [V1StorageHealthCondition.from_dict(_item) for _item in obj["healthConditions"]] if obj.get("healthConditions") is not None else None, + "name": obj.get("name") + }) + return _obj diff --git a/kubernetes/client/models/v1_storage_health_condition.py b/kubernetes/client/models/v1_storage_health_condition.py new file mode 100644 index 0000000000..bb1e294909 --- /dev/null +++ b/kubernetes/client/models/v1_storage_health_condition.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from datetime import datetime +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1StorageHealthCondition(BaseModel): + """ + StorageHealthCondition represents an adverse health condition reported by a CSI driver for its storage backend on a node. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + access_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("accessMode", "access_mode"), serialization_alias="accessMode", description="accessMode is the access mode affected. Nil means all access modes are affected.") + last_transition_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastTransitionTime", "last_transition_time"), serialization_alias="lastTransitionTime", description="lastTransitionTime is when this condition first appeared at its current state.") + message: Optional[StrictStr] = Field(default=None, description="message is a human-readable description. Maximum permitted length of a message is 1024 characters.") + reason: StrictStr = Field(description="reason is a brief CamelCase machine-parseable reason. Maximum permitted length of a reason is 256 characters.") + status: StrictStr = Field(description="status is the health status category. One of \"StorageUnreachable\", \"StorageDegraded\".") + volume_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("volumeMode", "volume_mode"), serialization_alias="volumeMode", description="volumeMode is the volume mode affected. Nil means both are affected.") + openapi_types: ClassVar[Dict[str, str]] = { + "access_mode": "str", + "last_transition_time": "datetime", + "message": "str", + "reason": "str", + "status": "str", + "volume_mode": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "access_mode": "accessMode", + "last_transition_time": "lastTransitionTime", + "message": "message", + "reason": "reason", + "status": "status", + "volume_mode": "volumeMode" + } + __properties: ClassVar[List[str]] = ["accessMode", "lastTransitionTime", "message", "reason", "status", "volumeMode"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "accessMode" not in obj and "access_mode" in obj: + obj["accessMode"] = obj["access_mode"] + obj.pop("access_mode", None) + if "lastTransitionTime" not in obj and "last_transition_time" in obj: + obj["lastTransitionTime"] = obj["last_transition_time"] + obj.pop("last_transition_time", None) + if "volumeMode" not in obj and "volume_mode" in obj: + obj["volumeMode"] = obj["volume_mode"] + obj.pop("volume_mode", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1StorageHealthCondition): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1StorageHealthCondition): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1StorageHealthCondition from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("accessMode" if serialize else "access_mode"): _to_legacy_value(getattr(self, "access_mode", None), serialize), + ("lastTransitionTime" if serialize else "last_transition_time"): _to_legacy_value(getattr(self, "last_transition_time", None), serialize), + ("message" if serialize else "message"): _to_legacy_value(getattr(self, "message", None), serialize), + ("reason" if serialize else "reason"): _to_legacy_value(getattr(self, "reason", None), serialize), + ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), + ("volumeMode" if serialize else "volume_mode"): _to_legacy_value(getattr(self, "volume_mode", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1StorageHealthCondition from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "accessMode": obj.get("accessMode"), + "lastTransitionTime": obj.get("lastTransitionTime"), + "message": obj.get("message"), + "reason": obj.get("reason"), + "status": obj.get("status"), + "volumeMode": obj.get("volumeMode") + }) + return _obj diff --git a/kubernetes/client/models/v1_storage_os_persistent_volume_source.py b/kubernetes/client/models/v1_storage_os_persistent_volume_source.py index a0d18814d4..054af3457f 100644 --- a/kubernetes/client/models/v1_storage_os_persistent_volume_source.py +++ b/kubernetes/client/models/v1_storage_os_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_storage_os_volume_source.py b/kubernetes/client/models/v1_storage_os_volume_source.py index 44fa3aa1cc..fe73066fd3 100644 --- a/kubernetes/client/models/v1_storage_os_volume_source.py +++ b/kubernetes/client/models/v1_storage_os_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_storage_version_migration.py b/kubernetes/client/models/v1_storage_version_migration.py new file mode 100644 index 0000000000..8153f4fb1f --- /dev/null +++ b/kubernetes/client/models/v1_storage_version_migration.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_object_meta import V1ObjectMeta +from kubernetes.client.models.v1_storage_version_migration_spec import V1StorageVersionMigrationSpec +from kubernetes.client.models.v1_storage_version_migration_status import V1StorageVersionMigrationStatus +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1StorageVersionMigration(BaseModel): + """ + StorageVersionMigration represents a migration of stored data to the latest storage version. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ObjectMeta] = None + spec: Optional[V1StorageVersionMigrationSpec] = None + status: Optional[V1StorageVersionMigrationStatus] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "kind": "str", + "metadata": "V1ObjectMeta", + "spec": "V1StorageVersionMigrationSpec", + "status": "V1StorageVersionMigrationStatus" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "kind": "kind", + "metadata": "metadata", + "spec": "spec", + "status": "status" + } + __properties: ClassVar[List[str]] = ["apiVersion", "kind", "metadata", "spec", "status"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1StorageVersionMigration): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1StorageVersionMigration): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1StorageVersionMigration from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + ("spec" if serialize else "spec"): _to_legacy_value(getattr(self, "spec", None), serialize), + ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + # override the default output from pydantic by calling `to_dict()` of spec + if self.spec: + _dict['spec'] = _to_openapi_value(self.spec) + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = _to_openapi_value(self.status) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1StorageVersionMigration from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "kind": obj.get("kind"), + "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, + "spec": V1StorageVersionMigrationSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, + "status": V1StorageVersionMigrationStatus.from_dict(obj["status"]) if obj.get("status") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1_storage_version_migration_list.py b/kubernetes/client/models/v1_storage_version_migration_list.py new file mode 100644 index 0000000000..685d21ee5b --- /dev/null +++ b/kubernetes/client/models/v1_storage_version_migration_list.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_list_meta import V1ListMeta +from kubernetes.client.models.v1_storage_version_migration import V1StorageVersionMigration +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1StorageVersionMigrationList(BaseModel): + """ + StorageVersionMigrationList is a collection of storage version migrations. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + items: List[V1StorageVersionMigration] = Field(description="Items is the list of StorageVersionMigration") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ListMeta] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "items": "List[V1StorageVersionMigration]", + "kind": "str", + "metadata": "V1ListMeta" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "items": "items", + "kind": "kind", + "metadata": "metadata" + } + __properties: ClassVar[List[str]] = ["apiVersion", "items", "kind", "metadata"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1StorageVersionMigrationList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1StorageVersionMigrationList): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1StorageVersionMigrationList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + _items.append(_to_openapi_value(_item_items) if _item_items is not None else None) + _dict['items'] = _items + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1StorageVersionMigrationList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "items": [V1StorageVersionMigration.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "kind": obj.get("kind"), + "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1_storage_version_migration_spec.py b/kubernetes/client/models/v1_storage_version_migration_spec.py new file mode 100644 index 0000000000..9431f6fd08 --- /dev/null +++ b/kubernetes/client/models/v1_storage_version_migration_spec.py @@ -0,0 +1,213 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from kubernetes.client.models.v1_group_resource import V1GroupResource +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1StorageVersionMigrationSpec(BaseModel): + """ + Spec of the storage version migration. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + resource: V1GroupResource + openapi_types: ClassVar[Dict[str, str]] = { + "resource": "V1GroupResource" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "resource": "resource" + } + __properties: ClassVar[List[str]] = ["resource"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1StorageVersionMigrationSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1StorageVersionMigrationSpec): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1StorageVersionMigrationSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("resource" if serialize else "resource"): _to_legacy_value(getattr(self, "resource", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of resource + if self.resource: + _dict['resource'] = _to_openapi_value(self.resource) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1StorageVersionMigrationSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "resource": V1GroupResource.from_dict(obj["resource"]) if obj.get("resource") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1_storage_version_migration_status.py b/kubernetes/client/models/v1_storage_version_migration_status.py new file mode 100644 index 0000000000..233c8e5f85 --- /dev/null +++ b/kubernetes/client/models/v1_storage_version_migration_status.py @@ -0,0 +1,244 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_condition import V1Condition +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1StorageVersionMigrationStatus(BaseModel): + """ + Status of the storage version migration. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + conditions: Optional[List[V1Condition]] = Field(default=None, description="The latest available observations of the migration's current state.") + resource_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceVersion", "resource_version"), serialization_alias="resourceVersion", description="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.") + openapi_types: ClassVar[Dict[str, str]] = { + "conditions": "List[V1Condition]", + "resource_version": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "conditions": "conditions", + "resource_version": "resourceVersion" + } + __properties: ClassVar[List[str]] = ["conditions", "resourceVersion"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "resourceVersion" not in obj and "resource_version" in obj: + obj["resourceVersion"] = obj["resource_version"] + obj.pop("resource_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1StorageVersionMigrationStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1StorageVersionMigrationStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1StorageVersionMigrationStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("conditions" if serialize else "conditions"): _to_legacy_value(getattr(self, "conditions", None), serialize), + ("resourceVersion" if serialize else "resource_version"): _to_legacy_value(getattr(self, "resource_version", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in conditions (list) + _items = [] + if self.conditions: + for _item_conditions in self.conditions: + _items.append(_to_openapi_value(_item_conditions) if _item_conditions is not None else None) + _dict['conditions'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1StorageVersionMigrationStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "conditions": [V1Condition.from_dict(_item) for _item in obj["conditions"]] if obj.get("conditions") is not None else None, + "resourceVersion": obj.get("resourceVersion") + }) + return _obj diff --git a/kubernetes/client/models/v1_subject_access_review.py b/kubernetes/client/models/v1_subject_access_review.py index 5aea989b66..547dcc3bdb 100644 --- a/kubernetes/client/models/v1_subject_access_review.py +++ b/kubernetes/client/models/v1_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_subject_access_review_spec.py b/kubernetes/client/models/v1_subject_access_review_spec.py index c80aef3c6d..7966993ded 100644 --- a/kubernetes/client/models/v1_subject_access_review_spec.py +++ b/kubernetes/client/models/v1_subject_access_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_subject_access_review_status.py b/kubernetes/client/models/v1_subject_access_review_status.py index db4c414741..659acc35a8 100644 --- a/kubernetes/client/models/v1_subject_access_review_status.py +++ b/kubernetes/client/models/v1_subject_access_review_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_subject_rules_review_status.py b/kubernetes/client/models/v1_subject_rules_review_status.py index a7f8423770..b1444b16f2 100644 --- a/kubernetes/client/models/v1_subject_rules_review_status.py +++ b/kubernetes/client/models/v1_subject_rules_review_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_success_policy.py b/kubernetes/client/models/v1_success_policy.py index 3c6fd8f777..ed2fc8e000 100644 --- a/kubernetes/client/models/v1_success_policy.py +++ b/kubernetes/client/models/v1_success_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_success_policy_rule.py b/kubernetes/client/models/v1_success_policy_rule.py index bc7f7dd438..e6fc5f0879 100644 --- a/kubernetes/client/models/v1_success_policy_rule.py +++ b/kubernetes/client/models/v1_success_policy_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_sysctl.py b/kubernetes/client/models/v1_sysctl.py index 83d1068b9a..dabc77a8a4 100644 --- a/kubernetes/client/models/v1_sysctl.py +++ b/kubernetes/client/models/v1_sysctl.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_taint.py b/kubernetes/client/models/v1_taint.py index 935e611a7e..be641e0a12 100644 --- a/kubernetes/client/models/v1_taint.py +++ b/kubernetes/client/models/v1_taint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_tcp_socket_action.py b/kubernetes/client/models/v1_tcp_socket_action.py index 6e705beed6..27fc2ef574 100644 --- a/kubernetes/client/models/v1_tcp_socket_action.py +++ b/kubernetes/client/models/v1_tcp_socket_action.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_token_request_spec.py b/kubernetes/client/models/v1_token_request_spec.py index 775e1f7032..6f5a9c6633 100644 --- a/kubernetes/client/models/v1_token_request_spec.py +++ b/kubernetes/client/models/v1_token_request_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -104,21 +104,24 @@ class V1TokenRequestSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 + attestations: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="attestations is a map of well-known keys to string-slice values. The values for each key have a specific semantic meaning, which is documented on the key definition. Requesters of tokens may ask the Kubernetes API Server to attest to certain claims. The API Server may perform authorization checks depending on the key of this map.") audiences: Optional[List[StrictStr]] = Field(default=None, 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.") bound_object_ref: Optional[V1BoundObjectReference] = Field(default=None, validation_alias=AliasChoices("boundObjectRef", "bound_object_ref"), serialization_alias="boundObjectRef") expiration_seconds: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("expirationSeconds", "expiration_seconds"), serialization_alias="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.") openapi_types: ClassVar[Dict[str, str]] = { + "attestations": "Dict[str, List[str]]", "audiences": "List[str]", "bound_object_ref": "V1BoundObjectReference", "expiration_seconds": "int" } attribute_map: ClassVar[Dict[str, str]] = { + "attestations": "attestations", "audiences": "audiences", "bound_object_ref": "boundObjectRef", "expiration_seconds": "expirationSeconds" } - __properties: ClassVar[List[str]] = ["audiences", "boundObjectRef", "expirationSeconds"] + __properties: ClassVar[List[str]] = ["attestations", "audiences", "boundObjectRef", "expirationSeconds"] @classmethod def __preprocess_input_names( @@ -184,6 +187,7 @@ def from_json(cls, json_str: str) -> Optional[Self]: def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { + ("attestations" if serialize else "attestations"): _to_legacy_value(getattr(self, "attestations", None), serialize), ("audiences" if serialize else "audiences"): _to_legacy_value(getattr(self, "audiences", None), serialize), ("boundObjectRef" if serialize else "bound_object_ref"): _to_legacy_value(getattr(self, "bound_object_ref", None), serialize), ("expirationSeconds" if serialize else "expiration_seconds"): _to_legacy_value(getattr(self, "expiration_seconds", None), serialize), @@ -242,6 +246,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ + "attestations": obj.get("attestations"), "audiences": obj.get("audiences"), "boundObjectRef": V1BoundObjectReference.from_dict(obj["boundObjectRef"]) if obj.get("boundObjectRef") is not None else None, "expirationSeconds": obj.get("expirationSeconds") diff --git a/kubernetes/client/models/v1_token_request_status.py b/kubernetes/client/models/v1_token_request_status.py index f84910b3b4..5eb121fe1e 100644 --- a/kubernetes/client/models/v1_token_request_status.py +++ b/kubernetes/client/models/v1_token_request_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_token_review.py b/kubernetes/client/models/v1_token_review.py index 1c66d7f968..e7f4b64bfb 100644 --- a/kubernetes/client/models/v1_token_review.py +++ b/kubernetes/client/models/v1_token_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_token_review_spec.py b/kubernetes/client/models/v1_token_review_spec.py index fcbe44fbcb..924084c43c 100644 --- a/kubernetes/client/models/v1_token_review_spec.py +++ b/kubernetes/client/models/v1_token_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_token_review_status.py b/kubernetes/client/models/v1_token_review_status.py index 15a78f13a3..f0bbcb34f9 100644 --- a/kubernetes/client/models/v1_token_review_status.py +++ b/kubernetes/client/models/v1_token_review_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_toleration.py b/kubernetes/client/models/v1_toleration.py index 0d6c17b9f2..54710b50c1 100644 --- a/kubernetes/client/models/v1_toleration.py +++ b/kubernetes/client/models/v1_toleration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_topology_selector_label_requirement.py b/kubernetes/client/models/v1_topology_selector_label_requirement.py index bee61ca390..d542bfcb3d 100644 --- a/kubernetes/client/models/v1_topology_selector_label_requirement.py +++ b/kubernetes/client/models/v1_topology_selector_label_requirement.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_topology_selector_term.py b/kubernetes/client/models/v1_topology_selector_term.py index 4b76af29d3..3e4527136e 100644 --- a/kubernetes/client/models/v1_topology_selector_term.py +++ b/kubernetes/client/models/v1_topology_selector_term.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_topology_spread_constraint.py b/kubernetes/client/models/v1_topology_spread_constraint.py index babaf0b060..49c8651615 100644 --- a/kubernetes/client/models/v1_topology_spread_constraint.py +++ b/kubernetes/client/models/v1_topology_spread_constraint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_type_checking.py b/kubernetes/client/models/v1_type_checking.py index 7d8301b504..be7d146ae5 100644 --- a/kubernetes/client/models/v1_type_checking.py +++ b/kubernetes/client/models/v1_type_checking.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_typed_local_object_reference.py b/kubernetes/client/models/v1_typed_local_object_reference.py index f2583586bf..d921eaf0e0 100644 --- a/kubernetes/client/models/v1_typed_local_object_reference.py +++ b/kubernetes/client/models/v1_typed_local_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_typed_object_reference.py b/kubernetes/client/models/v1_typed_object_reference.py index d51df1b8fb..83023a7754 100644 --- a/kubernetes/client/models/v1_typed_object_reference.py +++ b/kubernetes/client/models/v1_typed_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_uncounted_terminated_pods.py b/kubernetes/client/models/v1_uncounted_terminated_pods.py index 3c4d5bedbe..0cca4b4e58 100644 --- a/kubernetes/client/models/v1_uncounted_terminated_pods.py +++ b/kubernetes/client/models/v1_uncounted_terminated_pods.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_user_info.py b/kubernetes/client/models/v1_user_info.py index d0e6163145..9c5f383db4 100644 --- a/kubernetes/client/models/v1_user_info.py +++ b/kubernetes/client/models/v1_user_info.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_user_subject.py b/kubernetes/client/models/v1_user_subject.py index 4972b2975b..482e2f182c 100644 --- a/kubernetes/client/models/v1_user_subject.py +++ b/kubernetes/client/models/v1_user_subject.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_validating_admission_policy.py b/kubernetes/client/models/v1_validating_admission_policy.py index 57cf4db712..e33c443bcb 100644 --- a/kubernetes/client/models/v1_validating_admission_policy.py +++ b/kubernetes/client/models/v1_validating_admission_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_validating_admission_policy_binding.py b/kubernetes/client/models/v1_validating_admission_policy_binding.py index 1fbc58c2dc..1783e751a4 100644 --- a/kubernetes/client/models/v1_validating_admission_policy_binding.py +++ b/kubernetes/client/models/v1_validating_admission_policy_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_validating_admission_policy_binding_list.py b/kubernetes/client/models/v1_validating_admission_policy_binding_list.py index 7b121c8dac..2500842647 100644 --- a/kubernetes/client/models/v1_validating_admission_policy_binding_list.py +++ b/kubernetes/client/models/v1_validating_admission_policy_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_validating_admission_policy_binding_spec.py b/kubernetes/client/models/v1_validating_admission_policy_binding_spec.py index b603e83b85..538bd72451 100644 --- a/kubernetes/client/models/v1_validating_admission_policy_binding_spec.py +++ b/kubernetes/client/models/v1_validating_admission_policy_binding_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_validating_admission_policy_list.py b/kubernetes/client/models/v1_validating_admission_policy_list.py index 68f3454bb1..46cf935b4c 100644 --- a/kubernetes/client/models/v1_validating_admission_policy_list.py +++ b/kubernetes/client/models/v1_validating_admission_policy_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_validating_admission_policy_spec.py b/kubernetes/client/models/v1_validating_admission_policy_spec.py index 9f0ed2611d..c2c7cf143f 100644 --- a/kubernetes/client/models/v1_validating_admission_policy_spec.py +++ b/kubernetes/client/models/v1_validating_admission_policy_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_validating_admission_policy_status.py b/kubernetes/client/models/v1_validating_admission_policy_status.py index fd07549de0..d5b7570a54 100644 --- a/kubernetes/client/models/v1_validating_admission_policy_status.py +++ b/kubernetes/client/models/v1_validating_admission_policy_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_validating_webhook.py b/kubernetes/client/models/v1_validating_webhook.py index 66e05a7920..7c26f1a735 100644 --- a/kubernetes/client/models/v1_validating_webhook.py +++ b/kubernetes/client/models/v1_validating_webhook.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_validating_webhook_configuration.py b/kubernetes/client/models/v1_validating_webhook_configuration.py index f0d726342b..d665cd405b 100644 --- a/kubernetes/client/models/v1_validating_webhook_configuration.py +++ b/kubernetes/client/models/v1_validating_webhook_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_validating_webhook_configuration_list.py b/kubernetes/client/models/v1_validating_webhook_configuration_list.py index 49d81a0808..fcaf5088cb 100644 --- a/kubernetes/client/models/v1_validating_webhook_configuration_list.py +++ b/kubernetes/client/models/v1_validating_webhook_configuration_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_validation.py b/kubernetes/client/models/v1_validation.py index 17001d736d..fe1261dcde 100644 --- a/kubernetes/client/models/v1_validation.py +++ b/kubernetes/client/models/v1_validation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_validation_rule.py b/kubernetes/client/models/v1_validation_rule.py index 51b6857c66..8b8ada19ce 100644 --- a/kubernetes/client/models/v1_validation_rule.py +++ b/kubernetes/client/models/v1_validation_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_variable.py b/kubernetes/client/models/v1_variable.py index 2f8a9ee171..85afec93de 100644 --- a/kubernetes/client/models/v1_variable.py +++ b/kubernetes/client/models/v1_variable.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_volume.py b/kubernetes/client/models/v1_volume.py index 62eb3e8d98..12fffe894e 100644 --- a/kubernetes/client/models/v1_volume.py +++ b/kubernetes/client/models/v1_volume.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_volume_attachment.py b/kubernetes/client/models/v1_volume_attachment.py index d6b2d1e850..9e9f3854d8 100644 --- a/kubernetes/client/models/v1_volume_attachment.py +++ b/kubernetes/client/models/v1_volume_attachment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_volume_attachment_list.py b/kubernetes/client/models/v1_volume_attachment_list.py index b2e54aa5f3..f0c369ec03 100644 --- a/kubernetes/client/models/v1_volume_attachment_list.py +++ b/kubernetes/client/models/v1_volume_attachment_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_volume_attachment_source.py b/kubernetes/client/models/v1_volume_attachment_source.py index 5d9f05f621..685cd875a0 100644 --- a/kubernetes/client/models/v1_volume_attachment_source.py +++ b/kubernetes/client/models/v1_volume_attachment_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_volume_attachment_spec.py b/kubernetes/client/models/v1_volume_attachment_spec.py index a9828ce0af..90fbc81f1b 100644 --- a/kubernetes/client/models/v1_volume_attachment_spec.py +++ b/kubernetes/client/models/v1_volume_attachment_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_volume_attachment_status.py b/kubernetes/client/models/v1_volume_attachment_status.py index 7d017bdb7e..59f62a2c04 100644 --- a/kubernetes/client/models/v1_volume_attachment_status.py +++ b/kubernetes/client/models/v1_volume_attachment_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_volume_attributes_class.py b/kubernetes/client/models/v1_volume_attributes_class.py index d46c44ecdb..044a4528e0 100644 --- a/kubernetes/client/models/v1_volume_attributes_class.py +++ b/kubernetes/client/models/v1_volume_attributes_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,7 +105,7 @@ class V1VolumeAttributesClass(BaseModel): and the value is json key in definition. """ # noqa: E501 api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - driver_name: StrictStr = Field(validation_alias=AliasChoices("driverName", "driver_name"), serialization_alias="driverName", description="Name of the CSI driver This field is immutable.") + driver_name: StrictStr = Field(validation_alias=AliasChoices("driverName", "driver_name"), serialization_alias="driverName", description="driverName is the name of the CSI driver This field is immutable.") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None parameters: Optional[Dict[str, StrictStr]] = Field(default=None, description="parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.") diff --git a/kubernetes/client/models/v1_volume_attributes_class_list.py b/kubernetes/client/models/v1_volume_attributes_class_list.py index 92d28141be..7e6c3f3282 100644 --- a/kubernetes/client/models/v1_volume_attributes_class_list.py +++ b/kubernetes/client/models/v1_volume_attributes_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_volume_device.py b/kubernetes/client/models/v1_volume_device.py index cf3e7abcff..2b27569ddc 100644 --- a/kubernetes/client/models/v1_volume_device.py +++ b/kubernetes/client/models/v1_volume_device.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_volume_error.py b/kubernetes/client/models/v1_volume_error.py index d7035be529..b56518a667 100644 --- a/kubernetes/client/models/v1_volume_error.py +++ b/kubernetes/client/models/v1_volume_error.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_volume_health_condition.py b/kubernetes/client/models/v1_volume_health_condition.py new file mode 100644 index 0000000000..b92cc17235 --- /dev/null +++ b/kubernetes/client/models/v1_volume_health_condition.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1VolumeHealthCondition(BaseModel): + """ + VolumeHealthCondition represents an adverse health condition reported for a volume. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + message: Optional[StrictStr] = Field(default=None, description="message is a human-readable description. Maximum permitted length of a message is 1024 bytes.") + reason: StrictStr = Field(description="reason is a brief CamelCase machine-parseable reason. Together with status it forms the unique identity of a condition entry. Maximum permitted length of a reason is 256 bytes.") + status: StrictStr = Field(description="status is the machine-parseable health category. Possible values: - \"Inaccessible\": the volume cannot be accessed. - \"DataLoss\": data loss has been detected on the volume. - \"Degraded\": the volume is functioning with reduced capability.") + openapi_types: ClassVar[Dict[str, str]] = { + "message": "str", + "reason": "str", + "status": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "message": "message", + "reason": "reason", + "status": "status" + } + __properties: ClassVar[List[str]] = ["message", "reason", "status"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1VolumeHealthCondition): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1VolumeHealthCondition): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1VolumeHealthCondition from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("message" if serialize else "message"): _to_legacy_value(getattr(self, "message", None), serialize), + ("reason" if serialize else "reason"): _to_legacy_value(getattr(self, "reason", None), serialize), + ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1VolumeHealthCondition from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "reason": obj.get("reason"), + "status": obj.get("status") + }) + return _obj diff --git a/kubernetes/client/models/v1_volume_health_status.py b/kubernetes/client/models/v1_volume_health_status.py new file mode 100644 index 0000000000..1f6292e463 --- /dev/null +++ b/kubernetes/client/models/v1_volume_health_status.py @@ -0,0 +1,248 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from datetime import datetime +from pydantic import AliasChoices, BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_volume_health_condition import V1VolumeHealthCondition +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1VolumeHealthStatus(BaseModel): + """ + VolumeHealthStatus contains health information for a volume reported by the CSI controller plugin. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + health_conditions: Optional[List[V1VolumeHealthCondition]] = Field(default=None, validation_alias=AliasChoices("healthConditions", "health_conditions"), serialization_alias="healthConditions", description="conditions is the set of adverse conditions reported by the CSI controller plugin. An empty list means no adverse condition. At most 16 conditions may be reported.") + last_transition_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastTransitionTime", "last_transition_time"), serialization_alias="lastTransitionTime", description="lastTransitionTime is when the current set of conditions first appeared.") + openapi_types: ClassVar[Dict[str, str]] = { + "health_conditions": "List[V1VolumeHealthCondition]", + "last_transition_time": "datetime" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "health_conditions": "healthConditions", + "last_transition_time": "lastTransitionTime" + } + __properties: ClassVar[List[str]] = ["healthConditions", "lastTransitionTime"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "healthConditions" not in obj and "health_conditions" in obj: + obj["healthConditions"] = obj["health_conditions"] + obj.pop("health_conditions", None) + if "lastTransitionTime" not in obj and "last_transition_time" in obj: + obj["lastTransitionTime"] = obj["last_transition_time"] + obj.pop("last_transition_time", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1VolumeHealthStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1VolumeHealthStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1VolumeHealthStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("healthConditions" if serialize else "health_conditions"): _to_legacy_value(getattr(self, "health_conditions", None), serialize), + ("lastTransitionTime" if serialize else "last_transition_time"): _to_legacy_value(getattr(self, "last_transition_time", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in health_conditions (list) + _items = [] + if self.health_conditions: + for _item_health_conditions in self.health_conditions: + _items.append(_to_openapi_value(_item_health_conditions) if _item_health_conditions is not None else None) + _dict['healthConditions'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1VolumeHealthStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "healthConditions": [V1VolumeHealthCondition.from_dict(_item) for _item in obj["healthConditions"]] if obj.get("healthConditions") is not None else None, + "lastTransitionTime": obj.get("lastTransitionTime") + }) + return _obj diff --git a/kubernetes/client/models/v1_volume_mount.py b/kubernetes/client/models/v1_volume_mount.py index 8a5896657e..630f75986c 100644 --- a/kubernetes/client/models/v1_volume_mount.py +++ b/kubernetes/client/models/v1_volume_mount.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -103,7 +103,8 @@ class V1VolumeMount(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - mount_path: StrictStr = Field(validation_alias=AliasChoices("mountPath", "mount_path"), serialization_alias="mountPath", description="Path within the container at which the volume should be mounted. Must not contain ':'.") + bind_mount_options: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("bindMountOptions", "bind_mount_options"), serialization_alias="bindMountOptions", description="bindMountOptions is the list of additional bind mount options to apply when mounting this volume into the container. Allowed values are noexec, nodev, and nosuid. These are Linux mount options and have no effect on Windows nodes. This field is not supported with image volumes. This is an alpha field and requires enabling the VolumeBindMountOptions feature gate.") + mount_path: StrictStr = Field(validation_alias=AliasChoices("mountPath", "mount_path"), serialization_alias="mountPath", description="Path within the container at which the volume should be mounted.") mount_propagation: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("mountPropagation", "mount_propagation"), serialization_alias="mountPropagation", description="mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None).") name: StrictStr = Field(description="This must match the Name of a Volume.") read_only: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("readOnly", "read_only"), serialization_alias="readOnly", description="Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.") @@ -111,6 +112,7 @@ class V1VolumeMount(BaseModel): sub_path: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("subPath", "sub_path"), serialization_alias="subPath", description="Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).") sub_path_expr: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("subPathExpr", "sub_path_expr"), serialization_alias="subPathExpr", description="Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.") openapi_types: ClassVar[Dict[str, str]] = { + "bind_mount_options": "List[str]", "mount_path": "str", "mount_propagation": "str", "name": "str", @@ -121,6 +123,7 @@ class V1VolumeMount(BaseModel): } attribute_map: ClassVar[Dict[str, str]] = { + "bind_mount_options": "bindMountOptions", "mount_path": "mountPath", "mount_propagation": "mountPropagation", "name": "name", @@ -129,7 +132,7 @@ class V1VolumeMount(BaseModel): "sub_path": "subPath", "sub_path_expr": "subPathExpr" } - __properties: ClassVar[List[str]] = ["mountPath", "mountPropagation", "name", "readOnly", "recursiveReadOnly", "subPath", "subPathExpr"] + __properties: ClassVar[List[str]] = ["bindMountOptions", "mountPath", "mountPropagation", "name", "readOnly", "recursiveReadOnly", "subPath", "subPathExpr"] @classmethod def __preprocess_input_names( @@ -140,6 +143,9 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) + if "bindMountOptions" not in obj and "bind_mount_options" in obj: + obj["bindMountOptions"] = obj["bind_mount_options"] + obj.pop("bind_mount_options", None) if "mountPath" not in obj and "mount_path" in obj: obj["mountPath"] = obj["mount_path"] obj.pop("mount_path", None) @@ -207,6 +213,7 @@ def from_json(cls, json_str: str) -> Optional[Self]: def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { + ("bindMountOptions" if serialize else "bind_mount_options"): _to_legacy_value(getattr(self, "bind_mount_options", None), serialize), ("mountPath" if serialize else "mount_path"): _to_legacy_value(getattr(self, "mount_path", None), serialize), ("mountPropagation" if serialize else "mount_propagation"): _to_legacy_value(getattr(self, "mount_propagation", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), @@ -266,6 +273,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ + "bindMountOptions": obj.get("bindMountOptions"), "mountPath": obj.get("mountPath"), "mountPropagation": obj.get("mountPropagation"), "name": obj.get("name"), diff --git a/kubernetes/client/models/v1_volume_mount_status.py b/kubernetes/client/models/v1_volume_mount_status.py index f41720b43e..c7553cdbcb 100644 --- a/kubernetes/client/models/v1_volume_mount_status.py +++ b/kubernetes/client/models/v1_volume_mount_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_volume_node_affinity.py b/kubernetes/client/models/v1_volume_node_affinity.py index 6871d8fd36..76be2271dd 100644 --- a/kubernetes/client/models/v1_volume_node_affinity.py +++ b/kubernetes/client/models/v1_volume_node_affinity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_volume_node_resources.py b/kubernetes/client/models/v1_volume_node_resources.py index 24cdb18ee1..02188efbe8 100644 --- a/kubernetes/client/models/v1_volume_node_resources.py +++ b/kubernetes/client/models/v1_volume_node_resources.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_volume_projection.py b/kubernetes/client/models/v1_volume_projection.py index e1f76eb1ef..58b34c18fb 100644 --- a/kubernetes/client/models/v1_volume_projection.py +++ b/kubernetes/client/models/v1_volume_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_volume_resource_requirements.py b/kubernetes/client/models/v1_volume_resource_requirements.py index eb49fe6d5a..6c04018d83 100644 --- a/kubernetes/client/models/v1_volume_resource_requirements.py +++ b/kubernetes/client/models/v1_volume_resource_requirements.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_volume_status.py b/kubernetes/client/models/v1_volume_status.py index c6daae6971..eb26a3f488 100644 --- a/kubernetes/client/models/v1_volume_status.py +++ b/kubernetes/client/models/v1_volume_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py b/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py index 481706fd7c..19d2ea360c 100644 --- a/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py +++ b/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_watch_event.py b/kubernetes/client/models/v1_watch_event.py index 9c8122fd78..6b14f770c4 100644 --- a/kubernetes/client/models/v1_watch_event.py +++ b/kubernetes/client/models/v1_watch_event.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_webhook_conversion.py b/kubernetes/client/models/v1_webhook_conversion.py index f7602d525a..b717c21aa2 100644 --- a/kubernetes/client/models/v1_webhook_conversion.py +++ b/kubernetes/client/models/v1_webhook_conversion.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_weighted_pod_affinity_term.py b/kubernetes/client/models/v1_weighted_pod_affinity_term.py index 1763659dab..eb51c89c7e 100644 --- a/kubernetes/client/models/v1_weighted_pod_affinity_term.py +++ b/kubernetes/client/models/v1_weighted_pod_affinity_term.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_windows_security_context_options.py b/kubernetes/client/models/v1_windows_security_context_options.py index 99a8a6e211..1ec877ca90 100644 --- a/kubernetes/client/models/v1_windows_security_context_options.py +++ b/kubernetes/client/models/v1_windows_security_context_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_apply_configuration.py b/kubernetes/client/models/v1alpha1_apply_configuration.py index 754e5a8180..9e1e35dfd3 100644 --- a/kubernetes/client/models/v1alpha1_apply_configuration.py +++ b/kubernetes/client/models/v1alpha1_apply_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_eviction.py b/kubernetes/client/models/v1alpha1_eviction.py new file mode 100644 index 0000000000..b44643ee4c --- /dev/null +++ b/kubernetes/client/models/v1alpha1_eviction.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_object_meta import V1ObjectMeta +from kubernetes.client.models.v1alpha1_eviction_spec import V1alpha1EvictionSpec +from kubernetes.client.models.v1alpha1_eviction_status import V1alpha1EvictionStatus +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1Eviction(BaseModel): + """ + Eviction initiates an eviction process, which should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod). The evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. It manages the Eviction lifecycle. Requesters are preserved in .status.requesters even after they have withdrawn their request. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Once all EvictionRequest corresponding to this Eviction .spec.target have been removed, this Eviction object will eventually be garbage collected. If the target is a pod, the .status.targetResponders is populated from Pod's .spec.evictionResponders. Responders should observe and communicate through the .status to help with the eviction of the target when they see their state == Active in .status.targetResponders. ResponderStatus struct should then be periodically updated to indicate the progress or completion of the eviction process by each responder in .status.responders. If .status.responders[].heartbeatTime is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there are no other responders and the target is a pod, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource). + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ObjectMeta] = None + spec: V1alpha1EvictionSpec + status: Optional[V1alpha1EvictionStatus] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "kind": "str", + "metadata": "V1ObjectMeta", + "spec": "V1alpha1EvictionSpec", + "status": "V1alpha1EvictionStatus" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "kind": "kind", + "metadata": "metadata", + "spec": "spec", + "status": "status" + } + __properties: ClassVar[List[str]] = ["apiVersion", "kind", "metadata", "spec", "status"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1Eviction): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1Eviction): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1Eviction from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + ("spec" if serialize else "spec"): _to_legacy_value(getattr(self, "spec", None), serialize), + ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + # override the default output from pydantic by calling `to_dict()` of spec + if self.spec: + _dict['spec'] = _to_openapi_value(self.spec) + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = _to_openapi_value(self.status) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1Eviction from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "kind": obj.get("kind"), + "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, + "spec": V1alpha1EvictionSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, + "status": V1alpha1EvictionStatus.from_dict(obj["status"]) if obj.get("status") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_ip_address_list.py b/kubernetes/client/models/v1alpha1_eviction_list.py similarity index 93% rename from kubernetes/client/models/v1beta1_ip_address_list.py rename to kubernetes/client/models/v1alpha1_eviction_list.py index 33c90a7b54..0e070e7079 100644 --- a/kubernetes/client/models/v1beta1_ip_address_list.py +++ b/kubernetes/client/models/v1alpha1_eviction_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,7 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1_list_meta import V1ListMeta -from kubernetes.client.models.v1beta1_ip_address import V1beta1IPAddress +from kubernetes.client.models.v1alpha1_eviction import V1alpha1Eviction from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,9 +95,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1beta1IPAddressList(BaseModel): +class V1alpha1EvictionList(BaseModel): """ - IPAddressList contains a list of IPAddress. + EvictionList contains a list of Eviction resources. Attributes: openapi_types (dict): The key is attribute name @@ -106,12 +106,12 @@ class V1beta1IPAddressList(BaseModel): and the value is json key in definition. """ # noqa: E501 api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - items: List[V1beta1IPAddress] = Field(description="items is the list of IPAddresses.") + items: List[V1alpha1Eviction] = Field(description="items is the list of Evictions.") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ListMeta] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", - "items": "List[V1beta1IPAddress]", + "items": "List[V1alpha1Eviction]", "kind": "str", "metadata": "V1ListMeta" } @@ -157,14 +157,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1beta1IPAddressList): + if not isinstance(other, V1alpha1EvictionList): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1IPAddressList): + if not isinstance(other, V1alpha1EvictionList): return True return not (self == other) @@ -179,7 +179,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1IPAddressList from a JSON string""" + """Create an instance of V1alpha1EvictionList from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -234,7 +234,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1IPAddressList from a dict""" + """Create an instance of V1alpha1EvictionList from a dict""" if obj is None: return None @@ -251,7 +251,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "apiVersion": obj.get("apiVersion"), - "items": [V1beta1IPAddress.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "items": [V1alpha1Eviction.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "kind": obj.get("kind"), "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None }) diff --git a/kubernetes/client/models/v1alpha1_eviction_pod_reference.py b/kubernetes/client/models/v1alpha1_eviction_pod_reference.py new file mode 100644 index 0000000000..5968fe2b9d --- /dev/null +++ b/kubernetes/client/models/v1alpha1_eviction_pod_reference.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1EvictionPodReference(BaseModel): + """ + EvictionPodReference contains enough information to locate the referenced pod inside the same namespace. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + name: StrictStr = Field(description="name of the target. This field is required.") + uid: StrictStr = Field(description="uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required.") + openapi_types: ClassVar[Dict[str, str]] = { + "name": "str", + "uid": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "name": "name", + "uid": "uid" + } + __properties: ClassVar[List[str]] = ["name", "uid"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1EvictionPodReference): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1EvictionPodReference): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1EvictionPodReference from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("uid" if serialize else "uid"): _to_legacy_value(getattr(self, "uid", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1EvictionPodReference from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "uid": obj.get("uid") + }) + return _obj diff --git a/kubernetes/client/models/v1alpha1_eviction_request.py b/kubernetes/client/models/v1alpha1_eviction_request.py new file mode 100644 index 0000000000..3ab57a58a6 --- /dev/null +++ b/kubernetes/client/models/v1alpha1_eviction_request.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_object_meta import V1ObjectMeta +from kubernetes.client.models.v1alpha1_eviction_request_spec import V1alpha1EvictionRequestSpec +from kubernetes.client.models.v1alpha1_eviction_request_status import V1alpha1EvictionRequestStatus +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1EvictionRequest(BaseModel): + """ + EvictionRequest defines a request that should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod). The evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. - .spec.requester is set as a label on the Eviction for easier lookup. - Each target can have a set of responders assigned to it. Eviction objects are observed by these responders, who implement the eviction logic and update the Eviction's status with progress. There is many-to-many relationship between EvictionRequests and Evictions in general. And many-to-one if the target is a pod. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Deleting an EvictionRequest also counts as a withdrawal. Once all EvictionRequest of a target are removed, the corresponding Evictions are eventually garbage collected. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ObjectMeta] = None + spec: V1alpha1EvictionRequestSpec + status: Optional[V1alpha1EvictionRequestStatus] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "kind": "str", + "metadata": "V1ObjectMeta", + "spec": "V1alpha1EvictionRequestSpec", + "status": "V1alpha1EvictionRequestStatus" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "kind": "kind", + "metadata": "metadata", + "spec": "spec", + "status": "status" + } + __properties: ClassVar[List[str]] = ["apiVersion", "kind", "metadata", "spec", "status"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1EvictionRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1EvictionRequest): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + ("spec" if serialize else "spec"): _to_legacy_value(getattr(self, "spec", None), serialize), + ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + # override the default output from pydantic by calling `to_dict()` of spec + if self.spec: + _dict['spec'] = _to_openapi_value(self.spec) + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = _to_openapi_value(self.status) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "kind": obj.get("kind"), + "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, + "spec": V1alpha1EvictionRequestSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, + "status": V1alpha1EvictionRequestStatus.from_dict(obj["status"]) if obj.get("status") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1alpha1_eviction_request_list.py b/kubernetes/client/models/v1alpha1_eviction_request_list.py new file mode 100644 index 0000000000..58ffc9a0f3 --- /dev/null +++ b/kubernetes/client/models/v1alpha1_eviction_request_list.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_list_meta import V1ListMeta +from kubernetes.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1EvictionRequestList(BaseModel): + """ + EvictionRequestList contains a list of EvictionRequests resources. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + items: List[V1alpha1EvictionRequest] = Field(description="items is the list of EvictionRequests.") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ListMeta] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "items": "List[V1alpha1EvictionRequest]", + "kind": "str", + "metadata": "V1ListMeta" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "items": "items", + "kind": "kind", + "metadata": "metadata" + } + __properties: ClassVar[List[str]] = ["apiVersion", "items", "kind", "metadata"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1EvictionRequestList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1EvictionRequestList): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequestList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + _items.append(_to_openapi_value(_item_items) if _item_items is not None else None) + _dict['items'] = _items + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequestList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "items": [V1alpha1EvictionRequest.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "kind": obj.get("kind"), + "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1alpha1_eviction_request_pod_reference.py b/kubernetes/client/models/v1alpha1_eviction_request_pod_reference.py new file mode 100644 index 0000000000..572360589c --- /dev/null +++ b/kubernetes/client/models/v1alpha1_eviction_request_pod_reference.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1EvictionRequestPodReference(BaseModel): + """ + EvictionRequestPodReference contains enough information to locate the referenced pod inside the same namespace. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + name: StrictStr = Field(description="name of the target. This field is required.") + uid: StrictStr = Field(description="uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required.") + openapi_types: ClassVar[Dict[str, str]] = { + "name": "str", + "uid": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "name": "name", + "uid": "uid" + } + __properties: ClassVar[List[str]] = ["name", "uid"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1EvictionRequestPodReference): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1EvictionRequestPodReference): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequestPodReference from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("uid" if serialize else "uid"): _to_legacy_value(getattr(self, "uid", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequestPodReference from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "uid": obj.get("uid") + }) + return _obj diff --git a/kubernetes/client/models/v1alpha1_eviction_request_spec.py b/kubernetes/client/models/v1alpha1_eviction_request_spec.py new file mode 100644 index 0000000000..5f9ab0e938 --- /dev/null +++ b/kubernetes/client/models/v1alpha1_eviction_request_spec.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from kubernetes.client.models.v1alpha1_eviction_request_target import V1alpha1EvictionRequestTarget +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1EvictionRequestSpec(BaseModel): + """ + EvictionRequestSpec is a specification of an EvictionRequest. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + intent: StrictStr = Field(description="intent specifies the action that should be taken for the specified target. - Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target. If all requesters' intents are withdrawn for a common target, the eviction will be canceled. Cancellation consequences: - Inactive responders will never run. - Active responders are expected to cancel the eviction. - Completed or Interrupted responders should not take any action.") + requester: StrictStr = Field(description="requester allows you to identify the entity, that requested the eviction of the target. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field is required and immutable.") + target: V1alpha1EvictionRequestTarget + openapi_types: ClassVar[Dict[str, str]] = { + "intent": "str", + "requester": "str", + "target": "V1alpha1EvictionRequestTarget" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "intent": "intent", + "requester": "requester", + "target": "target" + } + __properties: ClassVar[List[str]] = ["intent", "requester", "target"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1EvictionRequestSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1EvictionRequestSpec): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequestSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("intent" if serialize else "intent"): _to_legacy_value(getattr(self, "intent", None), serialize), + ("requester" if serialize else "requester"): _to_legacy_value(getattr(self, "requester", None), serialize), + ("target" if serialize else "target"): _to_legacy_value(getattr(self, "target", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of target + if self.target: + _dict['target'] = _to_openapi_value(self.target) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequestSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "intent": obj.get("intent"), + "requester": obj.get("requester"), + "target": V1alpha1EvictionRequestTarget.from_dict(obj["target"]) if obj.get("target") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1alpha1_eviction_request_status.py b/kubernetes/client/models/v1alpha1_eviction_request_status.py new file mode 100644 index 0000000000..259d70122a --- /dev/null +++ b/kubernetes/client/models/v1alpha1_eviction_request_status.py @@ -0,0 +1,244 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_condition import V1Condition +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1EvictionRequestStatus(BaseModel): + """ + EvictionRequestStatus represents the last observed status of the eviction request. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + conditions: Optional[List[V1Condition]] = Field(default=None, description="conditions contain information about the eviction request. EvictionRequest specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed by any eviction responder. This can happen if the request is canceled or if no responder managed to evict the target (e.g. terminate or delete a pod). - TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted). These conditions can be reset if the eviction was unsuccessful and a new Eviction intent has been submitted. The maximum length of the conditions list is 100.") + observed_generation: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("observedGeneration", "observed_generation"), serialization_alias="observedGeneration", description="observedGeneration is EvictionRequest's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller.") + openapi_types: ClassVar[Dict[str, str]] = { + "conditions": "List[V1Condition]", + "observed_generation": "int" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "conditions": "conditions", + "observed_generation": "observedGeneration" + } + __properties: ClassVar[List[str]] = ["conditions", "observedGeneration"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "observedGeneration" not in obj and "observed_generation" in obj: + obj["observedGeneration"] = obj["observed_generation"] + obj.pop("observed_generation", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1EvictionRequestStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1EvictionRequestStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequestStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("conditions" if serialize else "conditions"): _to_legacy_value(getattr(self, "conditions", None), serialize), + ("observedGeneration" if serialize else "observed_generation"): _to_legacy_value(getattr(self, "observed_generation", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in conditions (list) + _items = [] + if self.conditions: + for _item_conditions in self.conditions: + _items.append(_to_openapi_value(_item_conditions) if _item_conditions is not None else None) + _dict['conditions'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1EvictionRequestStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "conditions": [V1Condition.from_dict(_item) for _item in obj["conditions"]] if obj.get("conditions") is not None else None, + "observedGeneration": obj.get("observedGeneration") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha2_pod_group_template_reference.py b/kubernetes/client/models/v1alpha1_eviction_request_target.py similarity index 82% rename from kubernetes/aio/client/models/v1alpha2_pod_group_template_reference.py rename to kubernetes/client/models/v1alpha1_eviction_request_target.py index fa0b8c02c6..7c35c920d0 100644 --- a/kubernetes/aio/client/models/v1alpha2_pod_group_template_reference.py +++ b/kubernetes/client/models/v1alpha1_eviction_request_target.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from kubernetes.aio.client.models.v1alpha2_workload_pod_group_template_reference import V1alpha2WorkloadPodGroupTemplateReference +from kubernetes.client.models.v1alpha1_eviction_request_pod_reference import V1alpha1EvictionRequestPodReference from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -93,9 +93,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroupTemplateReference(BaseModel): +class V1alpha1EvictionRequestTarget(BaseModel): """ - PodGroupTemplateReference references a PodGroup template defined in some object (e.g. Workload). Exactly one reference must be set. + EvictionRequestTarget contains a reference to an object that should be evicted. Attributes: openapi_types (dict): The key is attribute name @@ -103,15 +103,15 @@ class V1alpha2PodGroupTemplateReference(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - workload: Optional[V1alpha2WorkloadPodGroupTemplateReference] = None + pod: Optional[V1alpha1EvictionRequestPodReference] = None openapi_types: ClassVar[Dict[str, str]] = { - "workload": "V1alpha2WorkloadPodGroupTemplateReference" + "pod": "V1alpha1EvictionRequestPodReference" } attribute_map: ClassVar[Dict[str, str]] = { - "workload": "workload" + "pod": "pod" } - __properties: ClassVar[List[str]] = ["workload"] + __properties: ClassVar[List[str]] = ["pod"] model_config = ConfigDict( validate_by_name=True, @@ -132,14 +132,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroupTemplateReference): + if not isinstance(other, V1alpha1EvictionRequestTarget): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroupTemplateReference): + if not isinstance(other, V1alpha1EvictionRequestTarget): return True return not (self == other) @@ -154,13 +154,13 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupTemplateReference from a JSON string""" + """Create an instance of V1alpha1EvictionRequestTarget from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { - ("workload" if serialize else "workload"): _to_legacy_value(getattr(self, "workload", None), serialize), + ("pod" if serialize else "pod"): _to_legacy_value(getattr(self, "pod", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -181,9 +181,9 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of workload - if self.workload: - _dict['workload'] = _to_openapi_value(self.workload) + # override the default output from pydantic by calling `to_dict()` of pod + if self.pod: + _dict['pod'] = _to_openapi_value(self.pod) return _dict setattr( @@ -200,7 +200,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupTemplateReference from a dict""" + """Create an instance of V1alpha1EvictionRequestTarget from a dict""" if obj is None: return None @@ -208,6 +208,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "workload": V1alpha2WorkloadPodGroupTemplateReference.from_dict(obj["workload"]) if obj.get("workload") is not None else None + "pod": V1alpha1EvictionRequestPodReference.from_dict(obj["pod"]) if obj.get("pod") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1alpha1_eviction_spec.py b/kubernetes/client/models/v1alpha1_eviction_spec.py new file mode 100644 index 0000000000..1cb3eb8a9b --- /dev/null +++ b/kubernetes/client/models/v1alpha1_eviction_spec.py @@ -0,0 +1,213 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from kubernetes.client.models.v1alpha1_eviction_target import V1alpha1EvictionTarget +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1EvictionSpec(BaseModel): + """ + EvictionSpec is a specification of an Eviction. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + target: V1alpha1EvictionTarget + openapi_types: ClassVar[Dict[str, str]] = { + "target": "V1alpha1EvictionTarget" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "target": "target" + } + __properties: ClassVar[List[str]] = ["target"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1EvictionSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1EvictionSpec): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1EvictionSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("target" if serialize else "target"): _to_legacy_value(getattr(self, "target", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of target + if self.target: + _dict['target'] = _to_openapi_value(self.target) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1EvictionSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "target": V1alpha1EvictionTarget.from_dict(obj["target"]) if obj.get("target") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1alpha1_eviction_status.py b/kubernetes/client/models/v1alpha1_eviction_status.py new file mode 100644 index 0000000000..1f85b8944e --- /dev/null +++ b/kubernetes/client/models/v1alpha1_eviction_status.py @@ -0,0 +1,283 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_condition import V1Condition +from kubernetes.client.models.v1alpha1_requester import V1alpha1Requester +from kubernetes.client.models.v1alpha1_responder_status import V1alpha1ResponderStatus +from kubernetes.client.models.v1alpha1_target_responder import V1alpha1TargetResponder +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1EvictionStatus(BaseModel): + """ + EvictionStatus represents the last observed status of the eviction request. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + conditions: Optional[List[V1Condition]] = Field(default=None, description="conditions contain information about the eviction request. Eviction specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed by any eviction responder. This can happen if the request is canceled or if no responder managed to evict the target (e.g. terminate or delete a pod). - TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted). The maximum length of the conditions list is 100.") + observed_generation: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("observedGeneration", "observed_generation"), serialization_alias="observedGeneration", description="observedGeneration is Eviction's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller.") + requesters: Optional[List[V1alpha1Requester]] = Field(default=None, description="requesters allow you to identify the entities, that requested the eviction of the target. If all the requesters withdraw their eviction intent, the eviction will be canceled. The maximum length of the requesters list is 100. If this limit is exceeded, requesters with Withdrawn intent should be dropped first.") + responders: Optional[List[V1alpha1ResponderStatus]] = Field(default=None, description="responders represents the eviction process status of each declared responder. The responder list should be the same length and have the same .name fields as .status.targetResponders. Only responders with .name that have Active state in .targetResponders[].state should be updated and can be mutated. First initialization of the list is allowed. Each ResponderStatus is initialized by evictionrequest-controller and then managed by the designated responder.") + target_responders: Optional[List[V1alpha1TargetResponder]] = Field(default=None, validation_alias=AliasChoices("targetResponders", "target_responders"), serialization_alias="targetResponders", description="targetResponders reference responders that should eventually respond to this eviction to help with the graceful eviction of a target. These responders are selected sequentially, according to their specified priority by setting the Active state to the TargetResponder .state field. The maximum number of active responders allowed is 1. Eventually each responder can end up in an Interrupted, Canceled or, Completed state. Responders should observe these states in order to navigate their lifecycle. If the target is a pod, the field is populated from Pod's .spec.evictionResponders. Default responders may be added to the list according to the target. Default responders: - imperative-eviction.k8s.io/evictor responder with a priority of 100 is added to the list if the target is a pod. It will call the imperative Eviction API (pods//eviction subresource). This call may not succeed due to PodDisruptionBudgets, which may block the pod termination. It will update the responder message and try again with a backoff. The maximum length of the responders list is 11. The length and keys of the list cannot change once set. This field is managed by evictionrequest-controller.") + openapi_types: ClassVar[Dict[str, str]] = { + "conditions": "List[V1Condition]", + "observed_generation": "int", + "requesters": "List[V1alpha1Requester]", + "responders": "List[V1alpha1ResponderStatus]", + "target_responders": "List[V1alpha1TargetResponder]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "conditions": "conditions", + "observed_generation": "observedGeneration", + "requesters": "requesters", + "responders": "responders", + "target_responders": "targetResponders" + } + __properties: ClassVar[List[str]] = ["conditions", "observedGeneration", "requesters", "responders", "targetResponders"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "observedGeneration" not in obj and "observed_generation" in obj: + obj["observedGeneration"] = obj["observed_generation"] + obj.pop("observed_generation", None) + if "targetResponders" not in obj and "target_responders" in obj: + obj["targetResponders"] = obj["target_responders"] + obj.pop("target_responders", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1EvictionStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1EvictionStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1EvictionStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("conditions" if serialize else "conditions"): _to_legacy_value(getattr(self, "conditions", None), serialize), + ("observedGeneration" if serialize else "observed_generation"): _to_legacy_value(getattr(self, "observed_generation", None), serialize), + ("requesters" if serialize else "requesters"): _to_legacy_value(getattr(self, "requesters", None), serialize), + ("responders" if serialize else "responders"): _to_legacy_value(getattr(self, "responders", None), serialize), + ("targetResponders" if serialize else "target_responders"): _to_legacy_value(getattr(self, "target_responders", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in conditions (list) + _items = [] + if self.conditions: + for _item_conditions in self.conditions: + _items.append(_to_openapi_value(_item_conditions) if _item_conditions is not None else None) + _dict['conditions'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in requesters (list) + _items = [] + if self.requesters: + for _item_requesters in self.requesters: + _items.append(_to_openapi_value(_item_requesters) if _item_requesters is not None else None) + _dict['requesters'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in responders (list) + _items = [] + if self.responders: + for _item_responders in self.responders: + _items.append(_to_openapi_value(_item_responders) if _item_responders is not None else None) + _dict['responders'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in target_responders (list) + _items = [] + if self.target_responders: + for _item_target_responders in self.target_responders: + _items.append(_to_openapi_value(_item_target_responders) if _item_target_responders is not None else None) + _dict['targetResponders'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1EvictionStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "conditions": [V1Condition.from_dict(_item) for _item in obj["conditions"]] if obj.get("conditions") is not None else None, + "observedGeneration": obj.get("observedGeneration"), + "requesters": [V1alpha1Requester.from_dict(_item) for _item in obj["requesters"]] if obj.get("requesters") is not None else None, + "responders": [V1alpha1ResponderStatus.from_dict(_item) for _item in obj["responders"]] if obj.get("responders") is not None else None, + "targetResponders": [V1alpha1TargetResponder.from_dict(_item) for _item in obj["targetResponders"]] if obj.get("targetResponders") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1alpha1_eviction_target.py b/kubernetes/client/models/v1alpha1_eviction_target.py new file mode 100644 index 0000000000..103a87a2e9 --- /dev/null +++ b/kubernetes/client/models/v1alpha1_eviction_target.py @@ -0,0 +1,213 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.client.models.v1alpha1_eviction_pod_reference import V1alpha1EvictionPodReference +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1EvictionTarget(BaseModel): + """ + EvictionTarget contains a reference to an object that should be evicted. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + pod: Optional[V1alpha1EvictionPodReference] = None + openapi_types: ClassVar[Dict[str, str]] = { + "pod": "V1alpha1EvictionPodReference" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "pod": "pod" + } + __properties: ClassVar[List[str]] = ["pod"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1EvictionTarget): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1EvictionTarget): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1EvictionTarget from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("pod" if serialize else "pod"): _to_legacy_value(getattr(self, "pod", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of pod + if self.pod: + _dict['pod'] = _to_openapi_value(self.pod) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1EvictionTarget from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pod": V1alpha1EvictionPodReference.from_dict(obj["pod"]) if obj.get("pod") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1alpha1_json_patch.py b/kubernetes/client/models/v1alpha1_json_patch.py index b6ee30e8ff..5a3b3d5a18 100644 --- a/kubernetes/client/models/v1alpha1_json_patch.py +++ b/kubernetes/client/models/v1alpha1_json_patch.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_match_condition.py b/kubernetes/client/models/v1alpha1_match_condition.py index 0eaea8a128..c655fdf308 100644 --- a/kubernetes/client/models/v1alpha1_match_condition.py +++ b/kubernetes/client/models/v1alpha1_match_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_match_resources.py b/kubernetes/client/models/v1alpha1_match_resources.py index c3ef7a1312..9b0c86dd62 100644 --- a/kubernetes/client/models/v1alpha1_match_resources.py +++ b/kubernetes/client/models/v1alpha1_match_resources.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_mutating_admission_policy.py b/kubernetes/client/models/v1alpha1_mutating_admission_policy.py index 1cdc07690b..e28a6d3fa5 100644 --- a/kubernetes/client/models/v1alpha1_mutating_admission_policy.py +++ b/kubernetes/client/models/v1alpha1_mutating_admission_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding.py b/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding.py index 6eed9f350b..e0ce8d92e9 100644 --- a/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding.py +++ b/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding_list.py b/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding_list.py index c94359b298..fd73e25b40 100644 --- a/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding_list.py +++ b/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding_spec.py b/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding_spec.py index 4281420c38..387f84e0f7 100644 --- a/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding_spec.py +++ b/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_mutating_admission_policy_list.py b/kubernetes/client/models/v1alpha1_mutating_admission_policy_list.py index 071c84f6c0..7b88581064 100644 --- a/kubernetes/client/models/v1alpha1_mutating_admission_policy_list.py +++ b/kubernetes/client/models/v1alpha1_mutating_admission_policy_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_mutating_admission_policy_spec.py b/kubernetes/client/models/v1alpha1_mutating_admission_policy_spec.py index 85518e5724..06dd95a81f 100644 --- a/kubernetes/client/models/v1alpha1_mutating_admission_policy_spec.py +++ b/kubernetes/client/models/v1alpha1_mutating_admission_policy_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_mutation.py b/kubernetes/client/models/v1alpha1_mutation.py index ce93fef12a..7b671267b1 100644 --- a/kubernetes/client/models/v1alpha1_mutation.py +++ b/kubernetes/client/models/v1alpha1_mutation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_named_rule_with_operations.py b/kubernetes/client/models/v1alpha1_named_rule_with_operations.py index 38b8d94c7e..fb89670257 100644 --- a/kubernetes/client/models/v1alpha1_named_rule_with_operations.py +++ b/kubernetes/client/models/v1alpha1_named_rule_with_operations.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_param_kind.py b/kubernetes/client/models/v1alpha1_param_kind.py index 740a498688..7f0462813c 100644 --- a/kubernetes/client/models/v1alpha1_param_kind.py +++ b/kubernetes/client/models/v1alpha1_param_kind.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_param_ref.py b/kubernetes/client/models/v1alpha1_param_ref.py index 3a3a27e425..53c7e752e9 100644 --- a/kubernetes/client/models/v1alpha1_param_ref.py +++ b/kubernetes/client/models/v1alpha1_param_ref.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_requester.py b/kubernetes/client/models/v1alpha1_requester.py new file mode 100644 index 0000000000..d0f68ab078 --- /dev/null +++ b/kubernetes/client/models/v1alpha1_requester.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1Requester(BaseModel): + """ + Requester allows you to identify the entity, that requested the eviction of the target. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + intent: StrictStr = Field(description="intent specifies the action that should be taken for the specified target. - Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target. If all requesters' intents are withdrawn, the eviction will be canceled. Cancellation consequences: - Inactive responders will never run. - Active responders are expected to cancel the eviction. - Completed or Interrupted responders should not take any action.") + name: StrictStr = Field(description="name allows you to identify the entity, that requested the eviction of the target. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each requester. This field is required.") + openapi_types: ClassVar[Dict[str, str]] = { + "intent": "str", + "name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "intent": "intent", + "name": "name" + } + __properties: ClassVar[List[str]] = ["intent", "name"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1Requester): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1Requester): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1Requester from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("intent" if serialize else "intent"): _to_legacy_value(getattr(self, "intent", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1Requester from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "intent": obj.get("intent"), + "name": obj.get("name") + }) + return _obj diff --git a/kubernetes/client/models/v1alpha1_responder_status.py b/kubernetes/client/models/v1alpha1_responder_status.py new file mode 100644 index 0000000000..7ba7b7ed55 --- /dev/null +++ b/kubernetes/client/models/v1alpha1_responder_status.py @@ -0,0 +1,267 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from datetime import datetime +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1ResponderStatus(BaseModel): + """ + ResponderStatus represents the last observed status of the eviction process of the responder. It should be only updated by the designated responder whose name is .name field. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + completion_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("completionTime", "completion_time"), serialization_alias="completionTime", description="completionTime tracks the time at which the Responder stopped processing the eviction request. Completion means that the responders has either fully or partially completed the eviction process, which may have resulted in target eviction (e.g. pod termination). It should reflect the present time when set. This field becomes immutable once set.") + expected_completion_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("expectedCompletionTime", "expected_completion_time"), serialization_alias="expectedCompletionTime", description="expectedCompletionTime is the time at which the eviction process step is expected to end for the responder. The time cannot be set to the past. May be omitted if no estimate can be made.") + heartbeat_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("heartbeatTime", "heartbeat_time"), serialization_alias="heartbeatTime", description="heartbeatTime is the last time at which the eviction process was reported to be in progress by the responder. It should reflect the present time when set. Responders should avoid heartbeats more frequent than 20 seconds to avoid overloading the control-plane.") + message: Optional[StrictStr] = Field(default=None, description="message provides human-readable details about the state of the responder and the eviction process. Maximum length is 4000 characters.") + name: StrictStr = Field(description="name allows you to identify the responder reacting to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field is initialized by Kubernetes and must be unique for each responder. This field is required.") + start_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("startTime", "start_time"), serialization_alias="startTime", description="startTime tracks the time at which this responder was designated as active and should start processing the eviction request. It should reflect the present time when set. This field is initialized by Kubernetes when this responder becomes active. This field becomes immutable once set.") + openapi_types: ClassVar[Dict[str, str]] = { + "completion_time": "datetime", + "expected_completion_time": "datetime", + "heartbeat_time": "datetime", + "message": "str", + "name": "str", + "start_time": "datetime" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "completion_time": "completionTime", + "expected_completion_time": "expectedCompletionTime", + "heartbeat_time": "heartbeatTime", + "message": "message", + "name": "name", + "start_time": "startTime" + } + __properties: ClassVar[List[str]] = ["completionTime", "expectedCompletionTime", "heartbeatTime", "message", "name", "startTime"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "completionTime" not in obj and "completion_time" in obj: + obj["completionTime"] = obj["completion_time"] + obj.pop("completion_time", None) + if "expectedCompletionTime" not in obj and "expected_completion_time" in obj: + obj["expectedCompletionTime"] = obj["expected_completion_time"] + obj.pop("expected_completion_time", None) + if "heartbeatTime" not in obj and "heartbeat_time" in obj: + obj["heartbeatTime"] = obj["heartbeat_time"] + obj.pop("heartbeat_time", None) + if "startTime" not in obj and "start_time" in obj: + obj["startTime"] = obj["start_time"] + obj.pop("start_time", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1ResponderStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1ResponderStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1ResponderStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("completionTime" if serialize else "completion_time"): _to_legacy_value(getattr(self, "completion_time", None), serialize), + ("expectedCompletionTime" if serialize else "expected_completion_time"): _to_legacy_value(getattr(self, "expected_completion_time", None), serialize), + ("heartbeatTime" if serialize else "heartbeat_time"): _to_legacy_value(getattr(self, "heartbeat_time", None), serialize), + ("message" if serialize else "message"): _to_legacy_value(getattr(self, "message", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("startTime" if serialize else "start_time"): _to_legacy_value(getattr(self, "start_time", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1ResponderStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "completionTime": obj.get("completionTime"), + "expectedCompletionTime": obj.get("expectedCompletionTime"), + "heartbeatTime": obj.get("heartbeatTime"), + "message": obj.get("message"), + "name": obj.get("name"), + "startTime": obj.get("startTime") + }) + return _obj diff --git a/kubernetes/client/models/v1alpha1_server_storage_version.py b/kubernetes/client/models/v1alpha1_server_storage_version.py index 506d11142b..903fc9ddc6 100644 --- a/kubernetes/client/models/v1alpha1_server_storage_version.py +++ b/kubernetes/client/models/v1alpha1_server_storage_version.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_storage_version.py b/kubernetes/client/models/v1alpha1_storage_version.py index ad079b5a98..2c0cfa71f5 100644 --- a/kubernetes/client/models/v1alpha1_storage_version.py +++ b/kubernetes/client/models/v1alpha1_storage_version.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_storage_version_condition.py b/kubernetes/client/models/v1alpha1_storage_version_condition.py index 6284e472e5..f2d0575fba 100644 --- a/kubernetes/client/models/v1alpha1_storage_version_condition.py +++ b/kubernetes/client/models/v1alpha1_storage_version_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_storage_version_list.py b/kubernetes/client/models/v1alpha1_storage_version_list.py index d309b169d8..434981eb7f 100644 --- a/kubernetes/client/models/v1alpha1_storage_version_list.py +++ b/kubernetes/client/models/v1alpha1_storage_version_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_storage_version_status.py b/kubernetes/client/models/v1alpha1_storage_version_status.py index 85af0641a3..ef2f5c8b45 100644 --- a/kubernetes/client/models/v1alpha1_storage_version_status.py +++ b/kubernetes/client/models/v1alpha1_storage_version_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha1_target_responder.py b/kubernetes/client/models/v1alpha1_target_responder.py new file mode 100644 index 0000000000..60a2562a80 --- /dev/null +++ b/kubernetes/client/models/v1alpha1_target_responder.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha1TargetResponder(BaseModel): + """ + TargetResponder allows you to specify the responder reacting to the Eviction. Responders should observe and communicate through the Eviction API (see .state) to help with the graceful eviction of a target (e.g. termination of a pod). + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + name: StrictStr = Field(description="name allows you to identify the responder reacting to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each responder. This field is required.") + priority: StrictInt = Field(description="priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last. The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders. The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required and immutable.") + state: StrictStr = Field(description="state specifies a state that is assigned by the evictionrequest-controller. Responders should observe this state in order to navigate their lifecycle. - Inactive means that the responder should not yet process this eviction request. - Active means that the responder is either running or expected to start soon. Also, startTime has been set in the ResponderStatus by the evictionrequest-controller. An active responder should currently interact with the eviction process by updating .status.responders, where .name is the active responder name. ResponderStatus fields should be periodically updated to indicate the progress or completion of the eviction process. If .status.responders[].heartbeatTime field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. Only one responder can be active at a time. - Interrupted means that the responder has failed to start or failed to update heartbeatTime in ResponderStatus in a timely manner. - Canceled means that the responder has been canceled. In other words, there is no EvictionRequest with the same target and Eviction intent in .spec.intent. - Completed means that the responder has successfully completed and set completionTime in ResponderStatus. Please refer to the ResponderStatus in .status.responders for more details on each responder.") + openapi_types: ClassVar[Dict[str, str]] = { + "name": "str", + "priority": "int", + "state": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "name": "name", + "priority": "priority", + "state": "state" + } + __properties: ClassVar[List[str]] = ["name", "priority", "state"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha1TargetResponder): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha1TargetResponder): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha1TargetResponder from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("priority" if serialize else "priority"): _to_legacy_value(getattr(self, "priority", None), serialize), + ("state" if serialize else "state"): _to_legacy_value(getattr(self, "state", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha1TargetResponder from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "priority": obj.get("priority"), + "state": obj.get("state") + }) + return _obj diff --git a/kubernetes/client/models/v1alpha1_variable.py b/kubernetes/client/models/v1alpha1_variable.py index d3e1bd85e7..eb7fbcce4b 100644 --- a/kubernetes/client/models/v1alpha1_variable.py +++ b/kubernetes/client/models/v1alpha1_variable.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha2_lease_candidate.py b/kubernetes/client/models/v1alpha2_lease_candidate.py index b9249ee32f..0042d293fb 100644 --- a/kubernetes/client/models/v1alpha2_lease_candidate.py +++ b/kubernetes/client/models/v1alpha2_lease_candidate.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha2_lease_candidate_list.py b/kubernetes/client/models/v1alpha2_lease_candidate_list.py index 8843282cef..13c0658298 100644 --- a/kubernetes/client/models/v1alpha2_lease_candidate_list.py +++ b/kubernetes/client/models/v1alpha2_lease_candidate_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha2_lease_candidate_spec.py b/kubernetes/client/models/v1alpha2_lease_candidate_spec.py index 370fdeb7bd..921b5b6ac7 100644 --- a/kubernetes/client/models/v1alpha2_lease_candidate_spec.py +++ b/kubernetes/client/models/v1alpha2_lease_candidate_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -104,12 +104,12 @@ class V1alpha2LeaseCandidateSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - binary_version: StrictStr = Field(validation_alias=AliasChoices("binaryVersion", "binary_version"), serialization_alias="binaryVersion", description="BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.") - emulation_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("emulationVersion", "emulation_version"), serialization_alias="emulationVersion", description="EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"") - lease_name: StrictStr = Field(validation_alias=AliasChoices("leaseName", "lease_name"), serialization_alias="leaseName", description="LeaseName is the name of the lease for which this candidate is contending. This field is immutable.") - ping_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("pingTime", "ping_time"), serialization_alias="pingTime", description="PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.") - renew_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("renewTime", "renew_time"), serialization_alias="renewTime", description="RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.") - strategy: StrictStr = Field(description="Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.") + binary_version: StrictStr = Field(validation_alias=AliasChoices("binaryVersion", "binary_version"), serialization_alias="binaryVersion", description="binaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.") + emulation_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("emulationVersion", "emulation_version"), serialization_alias="emulationVersion", description="emulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"") + lease_name: StrictStr = Field(validation_alias=AliasChoices("leaseName", "lease_name"), serialization_alias="leaseName", description="leaseName is the name of the lease for which this candidate is contending. This field is immutable.") + ping_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("pingTime", "ping_time"), serialization_alias="pingTime", description="pingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.") + renew_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("renewTime", "renew_time"), serialization_alias="renewTime", description="renewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.") + strategy: StrictStr = Field(description="strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.") openapi_types: ClassVar[Dict[str, str]] = { "binary_version": "str", "emulation_version": "str", diff --git a/kubernetes/client/models/v1alpha3_composite_disruption_mode.py b/kubernetes/client/models/v1alpha3_composite_disruption_mode.py new file mode 100644 index 0000000000..395543ca17 --- /dev/null +++ b/kubernetes/client/models/v1alpha3_composite_disruption_mode.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3CompositeDisruptionMode(BaseModel): + """ + CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + all: Optional[Dict[str, Any]] = Field(default=None, description="all specifies that all children groups can only be disrupted together.") + single: Optional[Dict[str, Any]] = Field(default=None, description="single specifies that children groups can be disrupted independently from each other.") + openapi_types: ClassVar[Dict[str, str]] = { + "all": "object", + "single": "object" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "all": "all", + "single": "single" + } + __properties: ClassVar[List[str]] = ["all", "single"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3CompositeDisruptionMode): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3CompositeDisruptionMode): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3CompositeDisruptionMode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("all" if serialize else "all"): _to_legacy_value(getattr(self, "all", None), serialize), + ("single" if serialize else "single"): _to_legacy_value(getattr(self, "single", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3CompositeDisruptionMode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "all": obj.get("all"), + "single": obj.get("single") + }) + return _obj diff --git a/kubernetes/client/models/v1alpha3_composite_gang_scheduling_policy.py b/kubernetes/client/models/v1alpha3_composite_gang_scheduling_policy.py new file mode 100644 index 0000000000..b19cc716bf --- /dev/null +++ b/kubernetes/client/models/v1alpha3_composite_gang_scheduling_policy.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3CompositeGangSchedulingPolicy(BaseModel): + """ + CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + min_group_count: StrictInt = Field(validation_alias=AliasChoices("minGroupCount", "min_group_count"), serialization_alias="minGroupCount", description="minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.") + openapi_types: ClassVar[Dict[str, str]] = { + "min_group_count": "int" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "min_group_count": "minGroupCount" + } + __properties: ClassVar[List[str]] = ["minGroupCount"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "minGroupCount" not in obj and "min_group_count" in obj: + obj["minGroupCount"] = obj["min_group_count"] + obj.pop("min_group_count", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3CompositeGangSchedulingPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3CompositeGangSchedulingPolicy): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3CompositeGangSchedulingPolicy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("minGroupCount" if serialize else "min_group_count"): _to_legacy_value(getattr(self, "min_group_count", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3CompositeGangSchedulingPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "minGroupCount": obj.get("minGroupCount") + }) + return _obj diff --git a/kubernetes/client/models/v1alpha3_composite_pod_group.py b/kubernetes/client/models/v1alpha3_composite_pod_group.py new file mode 100644 index 0000000000..b464f50bc9 --- /dev/null +++ b/kubernetes/client/models/v1alpha3_composite_pod_group.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_object_meta import V1ObjectMeta +from kubernetes.client.models.v1alpha3_composite_pod_group_spec import V1alpha3CompositePodGroupSpec +from kubernetes.client.models.v1alpha3_composite_pod_group_status import V1alpha3CompositePodGroupStatus +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3CompositePodGroup(BaseModel): + """ + CompositePodGroup represents a runtime instance of pod groups grouped together. CompositePodGroups are created by workload controllers (LWS, JobSet, etc...) from Workload.compositePodGroupTemplates. CompositePodGroup API enablement is toggled by the CompositePodGroup feature gate. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ObjectMeta] = None + spec: V1alpha3CompositePodGroupSpec + status: Optional[V1alpha3CompositePodGroupStatus] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "kind": "str", + "metadata": "V1ObjectMeta", + "spec": "V1alpha3CompositePodGroupSpec", + "status": "V1alpha3CompositePodGroupStatus" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "kind": "kind", + "metadata": "metadata", + "spec": "spec", + "status": "status" + } + __properties: ClassVar[List[str]] = ["apiVersion", "kind", "metadata", "spec", "status"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3CompositePodGroup): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3CompositePodGroup): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroup from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + ("spec" if serialize else "spec"): _to_legacy_value(getattr(self, "spec", None), serialize), + ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + # override the default output from pydantic by calling `to_dict()` of spec + if self.spec: + _dict['spec'] = _to_openapi_value(self.spec) + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = _to_openapi_value(self.status) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroup from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "kind": obj.get("kind"), + "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, + "spec": V1alpha3CompositePodGroupSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, + "status": V1alpha3CompositePodGroupStatus.from_dict(obj["status"]) if obj.get("status") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1alpha3_composite_pod_group_list.py b/kubernetes/client/models/v1alpha3_composite_pod_group_list.py new file mode 100644 index 0000000000..a4918cae50 --- /dev/null +++ b/kubernetes/client/models/v1alpha3_composite_pod_group_list.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_list_meta import V1ListMeta +from kubernetes.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3CompositePodGroupList(BaseModel): + """ + CompositePodGroupList contains a list of CompositePodGroup resources. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + items: List[V1alpha3CompositePodGroup] = Field(description="Items is the list of CompositePodGroups.") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ListMeta] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "items": "List[V1alpha3CompositePodGroup]", + "kind": "str", + "metadata": "V1ListMeta" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "items": "items", + "kind": "kind", + "metadata": "metadata" + } + __properties: ClassVar[List[str]] = ["apiVersion", "items", "kind", "metadata"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3CompositePodGroupList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3CompositePodGroupList): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + _items.append(_to_openapi_value(_item_items) if _item_items is not None else None) + _dict['items'] = _items + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "items": [V1alpha3CompositePodGroup.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "kind": obj.get("kind"), + "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1alpha3_composite_pod_group_scheduling_constraints.py b/kubernetes/client/models/v1alpha3_composite_pod_group_scheduling_constraints.py new file mode 100644 index 0000000000..3415a007b8 --- /dev/null +++ b/kubernetes/client/models/v1alpha3_composite_pod_group_scheduling_constraints.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.client.models.v1alpha3_topology_constraint import V1alpha3TopologyConstraint +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3CompositePodGroupSchedulingConstraints(BaseModel): + """ + CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + topology: Optional[List[V1alpha3TopologyConstraint]] = Field(default=None, description="topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future.") + openapi_types: ClassVar[Dict[str, str]] = { + "topology": "List[V1alpha3TopologyConstraint]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "topology": "topology" + } + __properties: ClassVar[List[str]] = ["topology"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3CompositePodGroupSchedulingConstraints): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3CompositePodGroupSchedulingConstraints): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupSchedulingConstraints from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("topology" if serialize else "topology"): _to_legacy_value(getattr(self, "topology", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in topology (list) + _items = [] + if self.topology: + for _item_topology in self.topology: + _items.append(_to_openapi_value(_item_topology) if _item_topology is not None else None) + _dict['topology'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupSchedulingConstraints from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "topology": [V1alpha3TopologyConstraint.from_dict(_item) for _item in obj["topology"]] if obj.get("topology") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1alpha3_composite_pod_group_scheduling_policy.py b/kubernetes/client/models/v1alpha3_composite_pod_group_scheduling_policy.py new file mode 100644 index 0000000000..a135a76d2f --- /dev/null +++ b/kubernetes/client/models/v1alpha3_composite_pod_group_scheduling_policy.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.client.models.v1alpha3_composite_gang_scheduling_policy import V1alpha3CompositeGangSchedulingPolicy +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3CompositePodGroupSchedulingPolicy(BaseModel): + """ + CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + basic: Optional[Dict[str, Any]] = Field(default=None, description="basic specifies that the groups of this composite group should be scheduled independently. This field is immutable.") + gang: Optional[V1alpha3CompositeGangSchedulingPolicy] = None + openapi_types: ClassVar[Dict[str, str]] = { + "basic": "object", + "gang": "V1alpha3CompositeGangSchedulingPolicy" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "basic": "basic", + "gang": "gang" + } + __properties: ClassVar[List[str]] = ["basic", "gang"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3CompositePodGroupSchedulingPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3CompositePodGroupSchedulingPolicy): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupSchedulingPolicy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("basic" if serialize else "basic"): _to_legacy_value(getattr(self, "basic", None), serialize), + ("gang" if serialize else "gang"): _to_legacy_value(getattr(self, "gang", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of gang + if self.gang: + _dict['gang'] = _to_openapi_value(self.gang) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupSchedulingPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "basic": obj.get("basic"), + "gang": V1alpha3CompositeGangSchedulingPolicy.from_dict(obj["gang"]) if obj.get("gang") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1alpha3_composite_pod_group_spec.py b/kubernetes/client/models/v1alpha3_composite_pod_group_spec.py new file mode 100644 index 0000000000..d833176d3b --- /dev/null +++ b/kubernetes/client/models/v1alpha3_composite_pod_group_spec.py @@ -0,0 +1,301 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1alpha3_composite_disruption_mode import V1alpha3CompositeDisruptionMode +from kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_constraints import V1alpha3CompositePodGroupSchedulingConstraints +from kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_policy import V1alpha3CompositePodGroupSchedulingPolicy +from kubernetes.client.models.v1alpha3_workload_reference import V1alpha3WorkloadReference +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3CompositePodGroupSpec(BaseModel): + """ + CompositePodGroupSpec defines the desired state of CompositePodGroup. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + disruption_mode: Optional[V1alpha3CompositeDisruptionMode] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="disruptionMode") + parent_composite_pod_group_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("parentCompositePodGroupName", "parent_composite_pod_group_name"), serialization_alias="parentCompositePodGroupName", description="parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this composite pod group. It must be a DNS name. If it's nil, then this composite pod group is a root of a workload's hierarchy. This field is immutable.") + preemption_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preemptionPolicy", "preemption_policy"), serialization_alias="preemptionPolicy", description="preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + priority: Optional[StrictInt] = Field(default=None, description="priority is the value of priority of this composite pod group. Various system components use this field to find the priority of the composite 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.") + priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="priorityClassName", description="priorityClassName defines the priority that should be considered when scheduling this CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. If left unspecified, it is validated and resolved similarly to the PriorityClassName field in Pods (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the composite pod group's priority will be zero). This field is immutable.") + scheduling_constraints: Optional[V1alpha3CompositePodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") + scheduling_policy: V1alpha3CompositePodGroupSchedulingPolicy = Field(validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") + workload_ref: V1alpha3WorkloadReference = Field(validation_alias=AliasChoices("workloadRef", "workload_ref"), serialization_alias="workloadRef") + openapi_types: ClassVar[Dict[str, str]] = { + "disruption_mode": "V1alpha3CompositeDisruptionMode", + "parent_composite_pod_group_name": "str", + "preemption_policy": "str", + "priority": "int", + "priority_class_name": "str", + "scheduling_constraints": "V1alpha3CompositePodGroupSchedulingConstraints", + "scheduling_policy": "V1alpha3CompositePodGroupSchedulingPolicy", + "workload_ref": "V1alpha3WorkloadReference" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "disruption_mode": "disruptionMode", + "parent_composite_pod_group_name": "parentCompositePodGroupName", + "preemption_policy": "preemptionPolicy", + "priority": "priority", + "priority_class_name": "priorityClassName", + "scheduling_constraints": "schedulingConstraints", + "scheduling_policy": "schedulingPolicy", + "workload_ref": "workloadRef" + } + __properties: ClassVar[List[str]] = ["disruptionMode", "parentCompositePodGroupName", "preemptionPolicy", "priority", "priorityClassName", "schedulingConstraints", "schedulingPolicy", "workloadRef"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "disruptionMode" not in obj and "disruption_mode" in obj: + obj["disruptionMode"] = obj["disruption_mode"] + obj.pop("disruption_mode", None) + if "parentCompositePodGroupName" not in obj and "parent_composite_pod_group_name" in obj: + obj["parentCompositePodGroupName"] = obj["parent_composite_pod_group_name"] + obj.pop("parent_composite_pod_group_name", None) + if "preemptionPolicy" not in obj and "preemption_policy" in obj: + obj["preemptionPolicy"] = obj["preemption_policy"] + obj.pop("preemption_policy", None) + if "priorityClassName" not in obj and "priority_class_name" in obj: + obj["priorityClassName"] = obj["priority_class_name"] + obj.pop("priority_class_name", None) + if "schedulingConstraints" not in obj and "scheduling_constraints" in obj: + obj["schedulingConstraints"] = obj["scheduling_constraints"] + obj.pop("scheduling_constraints", None) + if "schedulingPolicy" not in obj and "scheduling_policy" in obj: + obj["schedulingPolicy"] = obj["scheduling_policy"] + obj.pop("scheduling_policy", None) + if "workloadRef" not in obj and "workload_ref" in obj: + obj["workloadRef"] = obj["workload_ref"] + obj.pop("workload_ref", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3CompositePodGroupSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3CompositePodGroupSpec): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("disruptionMode" if serialize else "disruption_mode"): _to_legacy_value(getattr(self, "disruption_mode", None), serialize), + ("parentCompositePodGroupName" if serialize else "parent_composite_pod_group_name"): _to_legacy_value(getattr(self, "parent_composite_pod_group_name", None), serialize), + ("preemptionPolicy" if serialize else "preemption_policy"): _to_legacy_value(getattr(self, "preemption_policy", None), serialize), + ("priority" if serialize else "priority"): _to_legacy_value(getattr(self, "priority", None), serialize), + ("priorityClassName" if serialize else "priority_class_name"): _to_legacy_value(getattr(self, "priority_class_name", None), serialize), + ("schedulingConstraints" if serialize else "scheduling_constraints"): _to_legacy_value(getattr(self, "scheduling_constraints", None), serialize), + ("schedulingPolicy" if serialize else "scheduling_policy"): _to_legacy_value(getattr(self, "scheduling_policy", None), serialize), + ("workloadRef" if serialize else "workload_ref"): _to_legacy_value(getattr(self, "workload_ref", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of disruption_mode + if self.disruption_mode: + _dict['disruptionMode'] = _to_openapi_value(self.disruption_mode) + # override the default output from pydantic by calling `to_dict()` of scheduling_constraints + if self.scheduling_constraints: + _dict['schedulingConstraints'] = _to_openapi_value(self.scheduling_constraints) + # override the default output from pydantic by calling `to_dict()` of scheduling_policy + if self.scheduling_policy: + _dict['schedulingPolicy'] = _to_openapi_value(self.scheduling_policy) + # override the default output from pydantic by calling `to_dict()` of workload_ref + if self.workload_ref: + _dict['workloadRef'] = _to_openapi_value(self.workload_ref) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "disruptionMode": V1alpha3CompositeDisruptionMode.from_dict(obj["disruptionMode"]) if obj.get("disruptionMode") is not None else None, + "parentCompositePodGroupName": obj.get("parentCompositePodGroupName"), + "preemptionPolicy": obj.get("preemptionPolicy"), + "priority": obj.get("priority"), + "priorityClassName": obj.get("priorityClassName"), + "schedulingConstraints": V1alpha3CompositePodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, + "schedulingPolicy": V1alpha3CompositePodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None, + "workloadRef": V1alpha3WorkloadReference.from_dict(obj["workloadRef"]) if obj.get("workloadRef") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1alpha3_composite_pod_group_status.py b/kubernetes/client/models/v1alpha3_composite_pod_group_status.py new file mode 100644 index 0000000000..826f1f820d --- /dev/null +++ b/kubernetes/client/models/v1alpha3_composite_pod_group_status.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.client.models.v1_condition import V1Condition +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3CompositePodGroupStatus(BaseModel): + """ + CompositePodGroupStatus represents information about the status of a composite pod group. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + conditions: Optional[List[V1Condition]] = Field(default=None, description="conditions represent the latest observations of the CompositePodGroup's state. Known condition types: - \"CompositePodGroupInitiallyScheduled\": Indicates whether the overall scheduling requirement for the subtree under this CompositePodGroup has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently deleted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the CompositePodGroup is about to be terminated due to disruption such as preemption. Known reasons for the CompositePodGroupInitiallyScheduled condition: - \"Unschedulable\": The CompositePodGroup's subtree could not be placed due to resource constraints, affinity/anti-affinity, or topological constraints. - \"SchedulerError\": The CompositePodGroup cannot be scheduled due to some internal error that occurred during scheduling. - \"Invalid\": Set to True when kube-scheduler detects an invalid group layout during runtime validation. The `message` field details the specific layout violation (such as a detected cycle, exceeding the maximum depth of 4, or referencing multiple distinct Workloads). Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The CompositePodGroup was targeted by the scheduler's preemption loop to free up capacity for higher-priority preemptors.") + openapi_types: ClassVar[Dict[str, str]] = { + "conditions": "List[V1Condition]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "conditions": "conditions" + } + __properties: ClassVar[List[str]] = ["conditions"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3CompositePodGroupStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3CompositePodGroupStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("conditions" if serialize else "conditions"): _to_legacy_value(getattr(self, "conditions", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in conditions (list) + _items = [] + if self.conditions: + for _item_conditions in self.conditions: + _items.append(_to_openapi_value(_item_conditions) if _item_conditions is not None else None) + _dict['conditions'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "conditions": [V1Condition.from_dict(_item) for _item in obj["conditions"]] if obj.get("conditions") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1alpha3_composite_pod_group_template.py b/kubernetes/client/models/v1alpha3_composite_pod_group_template.py new file mode 100644 index 0000000000..fc8bbb6444 --- /dev/null +++ b/kubernetes/client/models/v1alpha3_composite_pod_group_template.py @@ -0,0 +1,318 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1alpha3_composite_disruption_mode import V1alpha3CompositeDisruptionMode +from kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_constraints import V1alpha3CompositePodGroupSchedulingConstraints +from kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_policy import V1alpha3CompositePodGroupSchedulingPolicy +from kubernetes.client.models.v1alpha3_pod_group_template import V1alpha3PodGroupTemplate +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3CompositePodGroupTemplate(BaseModel): + """ + CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + composite_pod_group_templates: Optional[List[V1alpha3CompositePodGroupTemplate]] = Field(default=None, validation_alias=AliasChoices("compositePodGroupTemplates", "composite_pod_group_templates"), serialization_alias="compositePodGroupTemplates", description="compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.") + disruption_mode: Optional[V1alpha3CompositeDisruptionMode] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="disruptionMode") + name: StrictStr = Field(description="name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required.") + pod_group_templates: Optional[List[V1alpha3PodGroupTemplate]] = Field(default=None, validation_alias=AliasChoices("podGroupTemplates", "pod_group_templates"), serialization_alias="podGroupTemplates", description="podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.") + preemption_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preemptionPolicy", "preemption_policy"), serialization_alias="preemptionPolicy", description="preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + priority: Optional[StrictInt] = Field(default=None, description="priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite 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.") + priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="priorityClassName", description="priorityClassName indicates the priority that should be considered when scheduling a composite 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, composite pod groups created from this template will have the priority set to zero. This field is immutable.") + scheduling_constraints: Optional[V1alpha3CompositePodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") + scheduling_policy: V1alpha3CompositePodGroupSchedulingPolicy = Field(validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") + openapi_types: ClassVar[Dict[str, str]] = { + "composite_pod_group_templates": "List[V1alpha3CompositePodGroupTemplate]", + "disruption_mode": "V1alpha3CompositeDisruptionMode", + "name": "str", + "pod_group_templates": "List[V1alpha3PodGroupTemplate]", + "preemption_policy": "str", + "priority": "int", + "priority_class_name": "str", + "scheduling_constraints": "V1alpha3CompositePodGroupSchedulingConstraints", + "scheduling_policy": "V1alpha3CompositePodGroupSchedulingPolicy" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "composite_pod_group_templates": "compositePodGroupTemplates", + "disruption_mode": "disruptionMode", + "name": "name", + "pod_group_templates": "podGroupTemplates", + "preemption_policy": "preemptionPolicy", + "priority": "priority", + "priority_class_name": "priorityClassName", + "scheduling_constraints": "schedulingConstraints", + "scheduling_policy": "schedulingPolicy" + } + __properties: ClassVar[List[str]] = ["compositePodGroupTemplates", "disruptionMode", "name", "podGroupTemplates", "preemptionPolicy", "priority", "priorityClassName", "schedulingConstraints", "schedulingPolicy"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "compositePodGroupTemplates" not in obj and "composite_pod_group_templates" in obj: + obj["compositePodGroupTemplates"] = obj["composite_pod_group_templates"] + obj.pop("composite_pod_group_templates", None) + if "disruptionMode" not in obj and "disruption_mode" in obj: + obj["disruptionMode"] = obj["disruption_mode"] + obj.pop("disruption_mode", None) + if "podGroupTemplates" not in obj and "pod_group_templates" in obj: + obj["podGroupTemplates"] = obj["pod_group_templates"] + obj.pop("pod_group_templates", None) + if "preemptionPolicy" not in obj and "preemption_policy" in obj: + obj["preemptionPolicy"] = obj["preemption_policy"] + obj.pop("preemption_policy", None) + if "priorityClassName" not in obj and "priority_class_name" in obj: + obj["priorityClassName"] = obj["priority_class_name"] + obj.pop("priority_class_name", None) + if "schedulingConstraints" not in obj and "scheduling_constraints" in obj: + obj["schedulingConstraints"] = obj["scheduling_constraints"] + obj.pop("scheduling_constraints", None) + if "schedulingPolicy" not in obj and "scheduling_policy" in obj: + obj["schedulingPolicy"] = obj["scheduling_policy"] + obj.pop("scheduling_policy", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3CompositePodGroupTemplate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3CompositePodGroupTemplate): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupTemplate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("compositePodGroupTemplates" if serialize else "composite_pod_group_templates"): _to_legacy_value(getattr(self, "composite_pod_group_templates", None), serialize), + ("disruptionMode" if serialize else "disruption_mode"): _to_legacy_value(getattr(self, "disruption_mode", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("podGroupTemplates" if serialize else "pod_group_templates"): _to_legacy_value(getattr(self, "pod_group_templates", None), serialize), + ("preemptionPolicy" if serialize else "preemption_policy"): _to_legacy_value(getattr(self, "preemption_policy", None), serialize), + ("priority" if serialize else "priority"): _to_legacy_value(getattr(self, "priority", None), serialize), + ("priorityClassName" if serialize else "priority_class_name"): _to_legacy_value(getattr(self, "priority_class_name", None), serialize), + ("schedulingConstraints" if serialize else "scheduling_constraints"): _to_legacy_value(getattr(self, "scheduling_constraints", None), serialize), + ("schedulingPolicy" if serialize else "scheduling_policy"): _to_legacy_value(getattr(self, "scheduling_policy", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in composite_pod_group_templates (list) + _items = [] + if self.composite_pod_group_templates: + for _item_composite_pod_group_templates in self.composite_pod_group_templates: + _items.append(_to_openapi_value(_item_composite_pod_group_templates) if _item_composite_pod_group_templates is not None else None) + _dict['compositePodGroupTemplates'] = _items + # override the default output from pydantic by calling `to_dict()` of disruption_mode + if self.disruption_mode: + _dict['disruptionMode'] = _to_openapi_value(self.disruption_mode) + # override the default output from pydantic by calling `to_dict()` of each item in pod_group_templates (list) + _items = [] + if self.pod_group_templates: + for _item_pod_group_templates in self.pod_group_templates: + _items.append(_to_openapi_value(_item_pod_group_templates) if _item_pod_group_templates is not None else None) + _dict['podGroupTemplates'] = _items + # override the default output from pydantic by calling `to_dict()` of scheduling_constraints + if self.scheduling_constraints: + _dict['schedulingConstraints'] = _to_openapi_value(self.scheduling_constraints) + # override the default output from pydantic by calling `to_dict()` of scheduling_policy + if self.scheduling_policy: + _dict['schedulingPolicy'] = _to_openapi_value(self.scheduling_policy) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3CompositePodGroupTemplate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "compositePodGroupTemplates": [V1alpha3CompositePodGroupTemplate.from_dict(_item) for _item in obj["compositePodGroupTemplates"]] if obj.get("compositePodGroupTemplates") is not None else None, + "disruptionMode": V1alpha3CompositeDisruptionMode.from_dict(obj["disruptionMode"]) if obj.get("disruptionMode") is not None else None, + "name": obj.get("name"), + "podGroupTemplates": [V1alpha3PodGroupTemplate.from_dict(_item) for _item in obj["podGroupTemplates"]] if obj.get("podGroupTemplates") is not None else None, + "preemptionPolicy": obj.get("preemptionPolicy"), + "priority": obj.get("priority"), + "priorityClassName": obj.get("priorityClassName"), + "schedulingConstraints": V1alpha3CompositePodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, + "schedulingPolicy": V1alpha3CompositePodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None + }) + return _obj + +# TODO: Rewrite to not use raise_errors +V1alpha3CompositePodGroupTemplate.model_rebuild(raise_errors=False) diff --git a/kubernetes/client/models/v1alpha3_device_taint.py b/kubernetes/client/models/v1alpha3_device_taint.py index e591b420ae..89a152458d 100644 --- a/kubernetes/client/models/v1alpha3_device_taint.py +++ b/kubernetes/client/models/v1alpha3_device_taint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha3_device_taint_rule.py b/kubernetes/client/models/v1alpha3_device_taint_rule.py index 1f10189608..0d11994685 100644 --- a/kubernetes/client/models/v1alpha3_device_taint_rule.py +++ b/kubernetes/client/models/v1alpha3_device_taint_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha3_device_taint_rule_list.py b/kubernetes/client/models/v1alpha3_device_taint_rule_list.py index 30eb9f2eb5..a34238df52 100644 --- a/kubernetes/client/models/v1alpha3_device_taint_rule_list.py +++ b/kubernetes/client/models/v1alpha3_device_taint_rule_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha3_device_taint_rule_spec.py b/kubernetes/client/models/v1alpha3_device_taint_rule_spec.py index 59bc49f27a..1ab5166136 100644 --- a/kubernetes/client/models/v1alpha3_device_taint_rule_spec.py +++ b/kubernetes/client/models/v1alpha3_device_taint_rule_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha3_device_taint_rule_status.py b/kubernetes/client/models/v1alpha3_device_taint_rule_status.py index fe21221f19..18c005bdff 100644 --- a/kubernetes/client/models/v1alpha3_device_taint_rule_status.py +++ b/kubernetes/client/models/v1alpha3_device_taint_rule_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha3_device_taint_selector.py b/kubernetes/client/models/v1alpha3_device_taint_selector.py index e4a2719617..78bcc9a8fa 100644 --- a/kubernetes/client/models/v1alpha3_device_taint_selector.py +++ b/kubernetes/client/models/v1alpha3_device_taint_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha3_disruption_mode.py b/kubernetes/client/models/v1alpha3_disruption_mode.py new file mode 100644 index 0000000000..f72f9664af --- /dev/null +++ b/kubernetes/client/models/v1alpha3_disruption_mode.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3DisruptionMode(BaseModel): + """ + DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + all: Optional[Dict[str, Any]] = Field(default=None, description="all specifies that all children can only be disrupted together.") + single: Optional[Dict[str, Any]] = Field(default=None, description="single specifies that children can be disrupted independently from each other.") + openapi_types: ClassVar[Dict[str, str]] = { + "all": "object", + "single": "object" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "all": "all", + "single": "single" + } + __properties: ClassVar[List[str]] = ["all", "single"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3DisruptionMode): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3DisruptionMode): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3DisruptionMode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("all" if serialize else "all"): _to_legacy_value(getattr(self, "all", None), serialize), + ("single" if serialize else "single"): _to_legacy_value(getattr(self, "single", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3DisruptionMode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "all": obj.get("all"), + "single": obj.get("single") + }) + return _obj diff --git a/kubernetes/client/models/v1alpha2_gang_scheduling_policy.py b/kubernetes/client/models/v1alpha3_gang_scheduling_policy.py similarity index 87% rename from kubernetes/client/models/v1alpha2_gang_scheduling_policy.py rename to kubernetes/client/models/v1alpha3_gang_scheduling_policy.py index 52ece611df..120249017d 100644 --- a/kubernetes/client/models/v1alpha2_gang_scheduling_policy.py +++ b/kubernetes/client/models/v1alpha3_gang_scheduling_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -93,7 +93,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2GangSchedulingPolicy(BaseModel): +class V1alpha3GangSchedulingPolicy(BaseModel): """ GangSchedulingPolicy defines the parameters for gang scheduling. @@ -103,7 +103,7 @@ class V1alpha2GangSchedulingPolicy(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - min_count: StrictInt = Field(validation_alias=AliasChoices("minCount", "min_count"), serialization_alias="minCount", description="MinCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.") + min_count: StrictInt = Field(validation_alias=AliasChoices("minCount", "min_count"), serialization_alias="minCount", description="minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling. Note that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles.") openapi_types: ClassVar[Dict[str, str]] = { "min_count": "int" } @@ -146,14 +146,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2GangSchedulingPolicy): + if not isinstance(other, V1alpha3GangSchedulingPolicy): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2GangSchedulingPolicy): + if not isinstance(other, V1alpha3GangSchedulingPolicy): return True return not (self == other) @@ -168,7 +168,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2GangSchedulingPolicy from a JSON string""" + """Create an instance of V1alpha3GangSchedulingPolicy from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -211,7 +211,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2GangSchedulingPolicy from a dict""" + """Create an instance of V1alpha3GangSchedulingPolicy from a dict""" if obj is None: return None diff --git a/kubernetes/client/models/v1alpha3_partition_type_status.py b/kubernetes/client/models/v1alpha3_partition_type_status.py new file mode 100644 index 0000000000..7c9dbd1aa8 --- /dev/null +++ b/kubernetes/client/models/v1alpha3_partition_type_status.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3PartitionTypeStatus(BaseModel): + """ + PartitionTypeStatus reports allocatability for a single partition type, identified by the value of a grouping attribute. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + allocatable: StrictInt = Field(description="Allocatable is the number of additional devices of this partition type that could still be allocated given current shared-counter consumption.") + attribute: StrictStr = Field(description="Attribute is the fully qualified name of the device attribute whose value groups this entry. It is the PartitionTypeAttribute declared by the devices' own slice, or the default named in the request when their slice declares none.") + total: StrictInt = Field(description="Total is the number of devices of this partition type in the pool.") + type: StrictStr = Field(description="Type is the partition type value (e.g. \"Full\" or \"Half\").") + openapi_types: ClassVar[Dict[str, str]] = { + "allocatable": "int", + "attribute": "str", + "total": "int", + "type": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "allocatable": "allocatable", + "attribute": "attribute", + "total": "total", + "type": "type" + } + __properties: ClassVar[List[str]] = ["allocatable", "attribute", "total", "type"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3PartitionTypeStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3PartitionTypeStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3PartitionTypeStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("allocatable" if serialize else "allocatable"): _to_legacy_value(getattr(self, "allocatable", None), serialize), + ("attribute" if serialize else "attribute"): _to_legacy_value(getattr(self, "attribute", None), serialize), + ("total" if serialize else "total"): _to_legacy_value(getattr(self, "total", None), serialize), + ("type" if serialize else "type"): _to_legacy_value(getattr(self, "type", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3PartitionTypeStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allocatable": obj.get("allocatable"), + "attribute": obj.get("attribute"), + "total": obj.get("total"), + "type": obj.get("type") + }) + return _obj diff --git a/kubernetes/client/models/v1alpha2_pod_group.py b/kubernetes/client/models/v1alpha3_pod_group.py similarity index 92% rename from kubernetes/client/models/v1alpha2_pod_group.py rename to kubernetes/client/models/v1alpha3_pod_group.py index ed271ec6df..b0a8df4286 100644 --- a/kubernetes/client/models/v1alpha2_pod_group.py +++ b/kubernetes/client/models/v1alpha3_pod_group.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,8 +21,8 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1_object_meta import V1ObjectMeta -from kubernetes.client.models.v1alpha2_pod_group_spec import V1alpha2PodGroupSpec -from kubernetes.client.models.v1alpha2_pod_group_status import V1alpha2PodGroupStatus +from kubernetes.client.models.v1alpha3_pod_group_spec import V1alpha3PodGroupSpec +from kubernetes.client.models.v1alpha3_pod_group_status import V1alpha3PodGroupStatus from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -96,7 +96,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroup(BaseModel): +class V1alpha3PodGroup(BaseModel): """ 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. @@ -109,14 +109,14 @@ class V1alpha2PodGroup(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1alpha2PodGroupSpec - status: Optional[V1alpha2PodGroupStatus] = None + spec: V1alpha3PodGroupSpec + status: Optional[V1alpha3PodGroupStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", "metadata": "V1ObjectMeta", - "spec": "V1alpha2PodGroupSpec", - "status": "V1alpha2PodGroupStatus" + "spec": "V1alpha3PodGroupSpec", + "status": "V1alpha3PodGroupStatus" } attribute_map: ClassVar[Dict[str, str]] = { @@ -161,14 +161,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroup): + if not isinstance(other, V1alpha3PodGroup): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroup): + if not isinstance(other, V1alpha3PodGroup): return True return not (self == other) @@ -183,7 +183,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroup from a JSON string""" + """Create an instance of V1alpha3PodGroup from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -239,7 +239,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroup from a dict""" + """Create an instance of V1alpha3PodGroup from a dict""" if obj is None: return None @@ -258,7 +258,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "apiVersion": obj.get("apiVersion"), "kind": obj.get("kind"), "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, - "spec": V1alpha2PodGroupSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, - "status": V1alpha2PodGroupStatus.from_dict(obj["status"]) if obj.get("status") is not None else None + "spec": V1alpha3PodGroupSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, + "status": V1alpha3PodGroupStatus.from_dict(obj["status"]) if obj.get("status") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1alpha2_pod_group_list.py b/kubernetes/client/models/v1alpha3_pod_group_list.py similarity index 94% rename from kubernetes/client/models/v1alpha2_pod_group_list.py rename to kubernetes/client/models/v1alpha3_pod_group_list.py index 4f332451c3..b62a7d6602 100644 --- a/kubernetes/client/models/v1alpha2_pod_group_list.py +++ b/kubernetes/client/models/v1alpha3_pod_group_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,7 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1_list_meta import V1ListMeta -from kubernetes.client.models.v1alpha2_pod_group import V1alpha2PodGroup +from kubernetes.client.models.v1alpha3_pod_group import V1alpha3PodGroup from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,7 +95,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroupList(BaseModel): +class V1alpha3PodGroupList(BaseModel): """ PodGroupList contains a list of PodGroup resources. @@ -106,12 +106,12 @@ class V1alpha2PodGroupList(BaseModel): and the value is json key in definition. """ # noqa: E501 api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - items: List[V1alpha2PodGroup] = Field(description="Items is the list of PodGroups.") + items: List[V1alpha3PodGroup] = Field(description="Items is the list of PodGroups.") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ListMeta] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", - "items": "List[V1alpha2PodGroup]", + "items": "List[V1alpha3PodGroup]", "kind": "str", "metadata": "V1ListMeta" } @@ -157,14 +157,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroupList): + if not isinstance(other, V1alpha3PodGroupList): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroupList): + if not isinstance(other, V1alpha3PodGroupList): return True return not (self == other) @@ -179,7 +179,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupList from a JSON string""" + """Create an instance of V1alpha3PodGroupList from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -234,7 +234,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupList from a dict""" + """Create an instance of V1alpha3PodGroupList from a dict""" if obj is None: return None @@ -251,7 +251,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "apiVersion": obj.get("apiVersion"), - "items": [V1alpha2PodGroup.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "items": [V1alpha3PodGroup.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "kind": obj.get("kind"), "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None }) diff --git a/kubernetes/client/models/v1alpha2_pod_group_resource_claim.py b/kubernetes/client/models/v1alpha3_pod_group_resource_claim.py similarity index 94% rename from kubernetes/client/models/v1alpha2_pod_group_resource_claim.py rename to kubernetes/client/models/v1alpha3_pod_group_resource_claim.py index 2413a2e636..cbce33ffab 100644 --- a/kubernetes/client/models/v1alpha2_pod_group_resource_claim.py +++ b/kubernetes/client/models/v1alpha3_pod_group_resource_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -93,7 +93,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroupResourceClaim(BaseModel): +class V1alpha3PodGroupResourceClaim(BaseModel): """ 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. @@ -103,9 +103,9 @@ class V1alpha2PodGroupResourceClaim(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - name: StrictStr = Field(description="Name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.") - resource_claim_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimName", "resource_claim_name"), serialization_alias="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.") - resource_claim_template_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimTemplateName", "resource_claim_template_name"), serialization_alias="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.") + name: StrictStr = Field(description="name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.") + resource_claim_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimName", "resource_claim_name"), serialization_alias="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.") + resource_claim_template_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimTemplateName", "resource_claim_template_name"), serialization_alias="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.") openapi_types: ClassVar[Dict[str, str]] = { "name": "str", "resource_claim_name": "str", @@ -155,14 +155,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroupResourceClaim): + if not isinstance(other, V1alpha3PodGroupResourceClaim): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroupResourceClaim): + if not isinstance(other, V1alpha3PodGroupResourceClaim): return True return not (self == other) @@ -177,7 +177,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupResourceClaim from a JSON string""" + """Create an instance of V1alpha3PodGroupResourceClaim from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -222,7 +222,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupResourceClaim from a dict""" + """Create an instance of V1alpha3PodGroupResourceClaim from a dict""" if obj is None: return None diff --git a/kubernetes/aio/client/models/v1alpha2_pod_group_resource_claim_status.py b/kubernetes/client/models/v1alpha3_pod_group_resource_claim_status.py similarity index 94% rename from kubernetes/aio/client/models/v1alpha2_pod_group_resource_claim_status.py rename to kubernetes/client/models/v1alpha3_pod_group_resource_claim_status.py index ca12cfeb97..0efbbdc597 100644 --- a/kubernetes/aio/client/models/v1alpha2_pod_group_resource_claim_status.py +++ b/kubernetes/client/models/v1alpha3_pod_group_resource_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -93,7 +93,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroupResourceClaimStatus(BaseModel): +class V1alpha3PodGroupResourceClaimStatus(BaseModel): """ PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. @@ -103,8 +103,8 @@ class V1alpha2PodGroupResourceClaimStatus(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - name: StrictStr = Field(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.") - resource_claim_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimName", "resource_claim_name"), serialization_alias="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.") + name: StrictStr = Field(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.") + resource_claim_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimName", "resource_claim_name"), serialization_alias="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.") openapi_types: ClassVar[Dict[str, str]] = { "name": "str", "resource_claim_name": "str" @@ -149,14 +149,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroupResourceClaimStatus): + if not isinstance(other, V1alpha3PodGroupResourceClaimStatus): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroupResourceClaimStatus): + if not isinstance(other, V1alpha3PodGroupResourceClaimStatus): return True return not (self == other) @@ -171,7 +171,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupResourceClaimStatus from a JSON string""" + """Create an instance of V1alpha3PodGroupResourceClaimStatus from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -215,7 +215,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupResourceClaimStatus from a dict""" + """Create an instance of V1alpha3PodGroupResourceClaimStatus from a dict""" if obj is None: return None diff --git a/kubernetes/client/models/v1alpha2_pod_group_scheduling_constraints.py b/kubernetes/client/models/v1alpha3_pod_group_scheduling_constraints.py similarity index 90% rename from kubernetes/client/models/v1alpha2_pod_group_scheduling_constraints.py rename to kubernetes/client/models/v1alpha3_pod_group_scheduling_constraints.py index 10f55a95ff..831e282c66 100644 --- a/kubernetes/client/models/v1alpha2_pod_group_scheduling_constraints.py +++ b/kubernetes/client/models/v1alpha3_pod_group_scheduling_constraints.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from kubernetes.client.models.v1alpha2_topology_constraint import V1alpha2TopologyConstraint +from kubernetes.client.models.v1alpha3_topology_constraint import V1alpha3TopologyConstraint from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -93,7 +93,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroupSchedulingConstraints(BaseModel): +class V1alpha3PodGroupSchedulingConstraints(BaseModel): """ PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup. @@ -103,9 +103,9 @@ class V1alpha2PodGroupSchedulingConstraints(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - topology: Optional[List[V1alpha2TopologyConstraint]] = Field(default=None, 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.") + topology: Optional[List[V1alpha3TopologyConstraint]] = Field(default=None, 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.") openapi_types: ClassVar[Dict[str, str]] = { - "topology": "List[V1alpha2TopologyConstraint]" + "topology": "List[V1alpha3TopologyConstraint]" } attribute_map: ClassVar[Dict[str, str]] = { @@ -132,14 +132,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroupSchedulingConstraints): + if not isinstance(other, V1alpha3PodGroupSchedulingConstraints): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroupSchedulingConstraints): + if not isinstance(other, V1alpha3PodGroupSchedulingConstraints): return True return not (self == other) @@ -154,7 +154,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupSchedulingConstraints from a JSON string""" + """Create an instance of V1alpha3PodGroupSchedulingConstraints from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -203,7 +203,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupSchedulingConstraints from a dict""" + """Create an instance of V1alpha3PodGroupSchedulingConstraints from a dict""" if obj is None: return None @@ -211,6 +211,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "topology": [V1alpha2TopologyConstraint.from_dict(_item) for _item in obj["topology"]] if obj.get("topology") is not None else None + "topology": [V1alpha3TopologyConstraint.from_dict(_item) for _item in obj["topology"]] if obj.get("topology") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1alpha3_pod_group_scheduling_policy.py b/kubernetes/client/models/v1alpha3_pod_group_scheduling_policy.py new file mode 100644 index 0000000000..a901645136 --- /dev/null +++ b/kubernetes/client/models/v1alpha3_pod_group_scheduling_policy.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.client.models.v1alpha3_gang_scheduling_policy import V1alpha3GangSchedulingPolicy +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3PodGroupSchedulingPolicy(BaseModel): + """ + PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + basic: Optional[Dict[str, Any]] = Field(default=None, description="basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward.") + gang: Optional[V1alpha3GangSchedulingPolicy] = None + openapi_types: ClassVar[Dict[str, str]] = { + "basic": "object", + "gang": "V1alpha3GangSchedulingPolicy" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "basic": "basic", + "gang": "gang" + } + __properties: ClassVar[List[str]] = ["basic", "gang"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3PodGroupSchedulingPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3PodGroupSchedulingPolicy): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3PodGroupSchedulingPolicy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("basic" if serialize else "basic"): _to_legacy_value(getattr(self, "basic", None), serialize), + ("gang" if serialize else "gang"): _to_legacy_value(getattr(self, "gang", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of gang + if self.gang: + _dict['gang'] = _to_openapi_value(self.gang) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3PodGroupSchedulingPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "basic": obj.get("basic"), + "gang": V1alpha3GangSchedulingPolicy.from_dict(obj["gang"]) if obj.get("gang") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1alpha2_pod_group_spec.py b/kubernetes/client/models/v1alpha3_pod_group_spec.py similarity index 66% rename from kubernetes/client/models/v1alpha2_pod_group_spec.py rename to kubernetes/client/models/v1alpha3_pod_group_spec.py index 02a172527a..460b83a9fa 100644 --- a/kubernetes/client/models/v1alpha2_pod_group_spec.py +++ b/kubernetes/client/models/v1alpha3_pod_group_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,10 +20,11 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast -from kubernetes.client.models.v1alpha2_pod_group_resource_claim import V1alpha2PodGroupResourceClaim -from kubernetes.client.models.v1alpha2_pod_group_scheduling_constraints import V1alpha2PodGroupSchedulingConstraints -from kubernetes.client.models.v1alpha2_pod_group_scheduling_policy import V1alpha2PodGroupSchedulingPolicy -from kubernetes.client.models.v1alpha2_pod_group_template_reference import V1alpha2PodGroupTemplateReference +from kubernetes.client.models.v1alpha3_disruption_mode import V1alpha3DisruptionMode +from kubernetes.client.models.v1alpha3_pod_group_resource_claim import V1alpha3PodGroupResourceClaim +from kubernetes.client.models.v1alpha3_pod_group_scheduling_constraints import V1alpha3PodGroupSchedulingConstraints +from kubernetes.client.models.v1alpha3_pod_group_scheduling_policy import V1alpha3PodGroupSchedulingPolicy +from kubernetes.client.models.v1alpha3_workload_reference import V1alpha3WorkloadReference from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -97,7 +98,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroupSpec(BaseModel): +class V1alpha3PodGroupSpec(BaseModel): """ PodGroupSpec defines the desired state of a PodGroup. @@ -107,33 +108,39 @@ class V1alpha2PodGroupSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - disruption_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="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.") - pod_group_template_ref: Optional[V1alpha2PodGroupTemplateReference] = Field(default=None, validation_alias=AliasChoices("podGroupTemplateRef", "pod_group_template_ref"), serialization_alias="podGroupTemplateRef") - priority: Optional[StrictInt] = Field(default=None, 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.") - priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="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.") - resource_claims: Optional[List[V1alpha2PodGroupResourceClaim]] = Field(default=None, validation_alias=AliasChoices("resourceClaims", "resource_claims"), serialization_alias="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.") - scheduling_constraints: Optional[V1alpha2PodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") - scheduling_policy: V1alpha2PodGroupSchedulingPolicy = Field(validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") + disruption_mode: Optional[V1alpha3DisruptionMode] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="disruptionMode") + parent_composite_pod_group_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("parentCompositePodGroupName", "parent_composite_pod_group_name"), serialization_alias="parentCompositePodGroupName", description="parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable.") + preemption_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preemptionPolicy", "preemption_policy"), serialization_alias="preemptionPolicy", description="preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + priority: Optional[StrictInt] = Field(default=None, 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.") + priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="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.") + resource_claims: Optional[List[V1alpha3PodGroupResourceClaim]] = Field(default=None, validation_alias=AliasChoices("resourceClaims", "resource_claims"), serialization_alias="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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable.") + scheduling_constraints: Optional[V1alpha3PodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") + scheduling_policy: V1alpha3PodGroupSchedulingPolicy = Field(validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") + workload_ref: Optional[V1alpha3WorkloadReference] = Field(default=None, validation_alias=AliasChoices("workloadRef", "workload_ref"), serialization_alias="workloadRef") openapi_types: ClassVar[Dict[str, str]] = { - "disruption_mode": "str", - "pod_group_template_ref": "V1alpha2PodGroupTemplateReference", + "disruption_mode": "V1alpha3DisruptionMode", + "parent_composite_pod_group_name": "str", + "preemption_policy": "str", "priority": "int", "priority_class_name": "str", - "resource_claims": "List[V1alpha2PodGroupResourceClaim]", - "scheduling_constraints": "V1alpha2PodGroupSchedulingConstraints", - "scheduling_policy": "V1alpha2PodGroupSchedulingPolicy" + "resource_claims": "List[V1alpha3PodGroupResourceClaim]", + "scheduling_constraints": "V1alpha3PodGroupSchedulingConstraints", + "scheduling_policy": "V1alpha3PodGroupSchedulingPolicy", + "workload_ref": "V1alpha3WorkloadReference" } attribute_map: ClassVar[Dict[str, str]] = { "disruption_mode": "disruptionMode", - "pod_group_template_ref": "podGroupTemplateRef", + "parent_composite_pod_group_name": "parentCompositePodGroupName", + "preemption_policy": "preemptionPolicy", "priority": "priority", "priority_class_name": "priorityClassName", "resource_claims": "resourceClaims", "scheduling_constraints": "schedulingConstraints", - "scheduling_policy": "schedulingPolicy" + "scheduling_policy": "schedulingPolicy", + "workload_ref": "workloadRef" } - __properties: ClassVar[List[str]] = ["disruptionMode", "podGroupTemplateRef", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy"] + __properties: ClassVar[List[str]] = ["disruptionMode", "parentCompositePodGroupName", "preemptionPolicy", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy", "workloadRef"] @classmethod def __preprocess_input_names( @@ -147,9 +154,12 @@ def __preprocess_input_names( if "disruptionMode" not in obj and "disruption_mode" in obj: obj["disruptionMode"] = obj["disruption_mode"] obj.pop("disruption_mode", None) - if "podGroupTemplateRef" not in obj and "pod_group_template_ref" in obj: - obj["podGroupTemplateRef"] = obj["pod_group_template_ref"] - obj.pop("pod_group_template_ref", None) + if "parentCompositePodGroupName" not in obj and "parent_composite_pod_group_name" in obj: + obj["parentCompositePodGroupName"] = obj["parent_composite_pod_group_name"] + obj.pop("parent_composite_pod_group_name", None) + if "preemptionPolicy" not in obj and "preemption_policy" in obj: + obj["preemptionPolicy"] = obj["preemption_policy"] + obj.pop("preemption_policy", None) if "priorityClassName" not in obj and "priority_class_name" in obj: obj["priorityClassName"] = obj["priority_class_name"] obj.pop("priority_class_name", None) @@ -162,6 +172,9 @@ def __preprocess_input_names( if "schedulingPolicy" not in obj and "scheduling_policy" in obj: obj["schedulingPolicy"] = obj["scheduling_policy"] obj.pop("scheduling_policy", None) + if "workloadRef" not in obj and "workload_ref" in obj: + obj["workloadRef"] = obj["workload_ref"] + obj.pop("workload_ref", None) return obj model_config = ConfigDict( @@ -183,14 +196,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroupSpec): + if not isinstance(other, V1alpha3PodGroupSpec): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroupSpec): + if not isinstance(other, V1alpha3PodGroupSpec): return True return not (self == other) @@ -205,19 +218,21 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupSpec from a JSON string""" + """Create an instance of V1alpha3PodGroupSpec from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { ("disruptionMode" if serialize else "disruption_mode"): _to_legacy_value(getattr(self, "disruption_mode", None), serialize), - ("podGroupTemplateRef" if serialize else "pod_group_template_ref"): _to_legacy_value(getattr(self, "pod_group_template_ref", None), serialize), + ("parentCompositePodGroupName" if serialize else "parent_composite_pod_group_name"): _to_legacy_value(getattr(self, "parent_composite_pod_group_name", None), serialize), + ("preemptionPolicy" if serialize else "preemption_policy"): _to_legacy_value(getattr(self, "preemption_policy", None), serialize), ("priority" if serialize else "priority"): _to_legacy_value(getattr(self, "priority", None), serialize), ("priorityClassName" if serialize else "priority_class_name"): _to_legacy_value(getattr(self, "priority_class_name", None), serialize), ("resourceClaims" if serialize else "resource_claims"): _to_legacy_value(getattr(self, "resource_claims", None), serialize), ("schedulingConstraints" if serialize else "scheduling_constraints"): _to_legacy_value(getattr(self, "scheduling_constraints", None), serialize), ("schedulingPolicy" if serialize else "scheduling_policy"): _to_legacy_value(getattr(self, "scheduling_policy", None), serialize), + ("workloadRef" if serialize else "workload_ref"): _to_legacy_value(getattr(self, "workload_ref", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -238,9 +253,9 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of pod_group_template_ref - if self.pod_group_template_ref: - _dict['podGroupTemplateRef'] = _to_openapi_value(self.pod_group_template_ref) + # override the default output from pydantic by calling `to_dict()` of disruption_mode + if self.disruption_mode: + _dict['disruptionMode'] = _to_openapi_value(self.disruption_mode) # override the default output from pydantic by calling `to_dict()` of each item in resource_claims (list) _items = [] if self.resource_claims: @@ -253,6 +268,9 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of scheduling_policy if self.scheduling_policy: _dict['schedulingPolicy'] = _to_openapi_value(self.scheduling_policy) + # override the default output from pydantic by calling `to_dict()` of workload_ref + if self.workload_ref: + _dict['workloadRef'] = _to_openapi_value(self.workload_ref) return _dict setattr( @@ -269,7 +287,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupSpec from a dict""" + """Create an instance of V1alpha3PodGroupSpec from a dict""" if obj is None: return None @@ -285,12 +303,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ - "disruptionMode": obj.get("disruptionMode"), - "podGroupTemplateRef": V1alpha2PodGroupTemplateReference.from_dict(obj["podGroupTemplateRef"]) if obj.get("podGroupTemplateRef") is not None else None, + "disruptionMode": V1alpha3DisruptionMode.from_dict(obj["disruptionMode"]) if obj.get("disruptionMode") is not None else None, + "parentCompositePodGroupName": obj.get("parentCompositePodGroupName"), + "preemptionPolicy": obj.get("preemptionPolicy"), "priority": obj.get("priority"), "priorityClassName": obj.get("priorityClassName"), - "resourceClaims": [V1alpha2PodGroupResourceClaim.from_dict(_item) for _item in obj["resourceClaims"]] if obj.get("resourceClaims") is not None else None, - "schedulingConstraints": V1alpha2PodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, - "schedulingPolicy": V1alpha2PodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None + "resourceClaims": [V1alpha3PodGroupResourceClaim.from_dict(_item) for _item in obj["resourceClaims"]] if obj.get("resourceClaims") is not None else None, + "schedulingConstraints": V1alpha3PodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, + "schedulingPolicy": V1alpha3PodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None, + "workloadRef": V1alpha3WorkloadReference.from_dict(obj["workloadRef"]) if obj.get("workloadRef") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1alpha2_pod_group_status.py b/kubernetes/client/models/v1alpha3_pod_group_status.py similarity index 82% rename from kubernetes/client/models/v1alpha2_pod_group_status.py rename to kubernetes/client/models/v1alpha3_pod_group_status.py index d7ec2e4b6d..be778fcfc7 100644 --- a/kubernetes/client/models/v1alpha2_pod_group_status.py +++ b/kubernetes/client/models/v1alpha3_pod_group_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,7 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1_condition import V1Condition -from kubernetes.client.models.v1alpha2_pod_group_resource_claim_status import V1alpha2PodGroupResourceClaimStatus +from kubernetes.client.models.v1alpha3_pod_group_resource_claim_status import V1alpha3PodGroupResourceClaimStatus from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,7 +95,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroupStatus(BaseModel): +class V1alpha3PodGroupStatus(BaseModel): """ PodGroupStatus represents information about the status of a pod group. @@ -105,11 +105,11 @@ class V1alpha2PodGroupStatus(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - conditions: Optional[List[V1Condition]] = Field(default=None, 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.") - resource_claim_statuses: Optional[List[V1alpha2PodGroupResourceClaimStatus]] = Field(default=None, validation_alias=AliasChoices("resourceClaimStatuses", "resource_claim_statuses"), serialization_alias="resourceClaimStatuses", description="Status of resource claims.") + conditions: Optional[List[V1Condition]] = Field(default=None, description="conditions represent the latest observations of the PodGroup's state. Known condition types: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupInitiallyScheduled 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.") + resource_claim_statuses: Optional[List[V1alpha3PodGroupResourceClaimStatus]] = Field(default=None, validation_alias=AliasChoices("resourceClaimStatuses", "resource_claim_statuses"), serialization_alias="resourceClaimStatuses", description="resourceClaimStatuses is status of resource claims.") openapi_types: ClassVar[Dict[str, str]] = { "conditions": "List[V1Condition]", - "resource_claim_statuses": "List[V1alpha2PodGroupResourceClaimStatus]" + "resource_claim_statuses": "List[V1alpha3PodGroupResourceClaimStatus]" } attribute_map: ClassVar[Dict[str, str]] = { @@ -151,14 +151,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroupStatus): + if not isinstance(other, V1alpha3PodGroupStatus): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroupStatus): + if not isinstance(other, V1alpha3PodGroupStatus): return True return not (self == other) @@ -173,7 +173,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupStatus from a JSON string""" + """Create an instance of V1alpha3PodGroupStatus from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -229,7 +229,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupStatus from a dict""" + """Create an instance of V1alpha3PodGroupStatus from a dict""" if obj is None: return None @@ -246,6 +246,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "conditions": [V1Condition.from_dict(_item) for _item in obj["conditions"]] if obj.get("conditions") is not None else None, - "resourceClaimStatuses": [V1alpha2PodGroupResourceClaimStatus.from_dict(_item) for _item in obj["resourceClaimStatuses"]] if obj.get("resourceClaimStatuses") is not None else None + "resourceClaimStatuses": [V1alpha3PodGroupResourceClaimStatus.from_dict(_item) for _item in obj["resourceClaimStatuses"]] if obj.get("resourceClaimStatuses") is not None else None }) return _obj diff --git a/kubernetes/aio/client/models/v1alpha2_pod_group_template.py b/kubernetes/client/models/v1alpha3_pod_group_template.py similarity index 76% rename from kubernetes/aio/client/models/v1alpha2_pod_group_template.py rename to kubernetes/client/models/v1alpha3_pod_group_template.py index ac53912153..5ac24cb0d0 100644 --- a/kubernetes/aio/client/models/v1alpha2_pod_group_template.py +++ b/kubernetes/client/models/v1alpha3_pod_group_template.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,9 +20,10 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast -from kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim import V1alpha2PodGroupResourceClaim -from kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_constraints import V1alpha2PodGroupSchedulingConstraints -from kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_policy import V1alpha2PodGroupSchedulingPolicy +from kubernetes.client.models.v1alpha3_disruption_mode import V1alpha3DisruptionMode +from kubernetes.client.models.v1alpha3_pod_group_resource_claim import V1alpha3PodGroupResourceClaim +from kubernetes.client.models.v1alpha3_pod_group_scheduling_constraints import V1alpha3PodGroupSchedulingConstraints +from kubernetes.client.models.v1alpha3_pod_group_scheduling_policy import V1alpha3PodGroupSchedulingPolicy from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -96,7 +97,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroupTemplate(BaseModel): +class V1alpha3PodGroupTemplate(BaseModel): """ PodGroupTemplate represents a template for a set of pods with a scheduling policy. @@ -106,33 +107,36 @@ class V1alpha2PodGroupTemplate(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - disruption_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="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.") - name: StrictStr = Field(description="Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.") - priority: Optional[StrictInt] = Field(default=None, 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.") - priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="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.") - resource_claims: Optional[List[V1alpha2PodGroupResourceClaim]] = Field(default=None, validation_alias=AliasChoices("resourceClaims", "resource_claims"), serialization_alias="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.") - scheduling_constraints: Optional[V1alpha2PodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") - scheduling_policy: V1alpha2PodGroupSchedulingPolicy = Field(validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") + disruption_mode: Optional[V1alpha3DisruptionMode] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="disruptionMode") + name: StrictStr = Field(description="name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.") + preemption_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preemptionPolicy", "preemption_policy"), serialization_alias="preemptionPolicy", description="preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + priority: Optional[StrictInt] = Field(default=None, 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. The higher the value, the higher the priority. This field is immutable.") + priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="priorityClassName", description="priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable.") + resource_claims: Optional[List[V1alpha3PodGroupResourceClaim]] = Field(default=None, validation_alias=AliasChoices("resourceClaims", "resource_claims"), serialization_alias="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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable.") + scheduling_constraints: Optional[V1alpha3PodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") + scheduling_policy: V1alpha3PodGroupSchedulingPolicy = Field(validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") openapi_types: ClassVar[Dict[str, str]] = { - "disruption_mode": "str", + "disruption_mode": "V1alpha3DisruptionMode", "name": "str", + "preemption_policy": "str", "priority": "int", "priority_class_name": "str", - "resource_claims": "List[V1alpha2PodGroupResourceClaim]", - "scheduling_constraints": "V1alpha2PodGroupSchedulingConstraints", - "scheduling_policy": "V1alpha2PodGroupSchedulingPolicy" + "resource_claims": "List[V1alpha3PodGroupResourceClaim]", + "scheduling_constraints": "V1alpha3PodGroupSchedulingConstraints", + "scheduling_policy": "V1alpha3PodGroupSchedulingPolicy" } attribute_map: ClassVar[Dict[str, str]] = { "disruption_mode": "disruptionMode", "name": "name", + "preemption_policy": "preemptionPolicy", "priority": "priority", "priority_class_name": "priorityClassName", "resource_claims": "resourceClaims", "scheduling_constraints": "schedulingConstraints", "scheduling_policy": "schedulingPolicy" } - __properties: ClassVar[List[str]] = ["disruptionMode", "name", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy"] + __properties: ClassVar[List[str]] = ["disruptionMode", "name", "preemptionPolicy", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy"] @classmethod def __preprocess_input_names( @@ -146,6 +150,9 @@ def __preprocess_input_names( if "disruptionMode" not in obj and "disruption_mode" in obj: obj["disruptionMode"] = obj["disruption_mode"] obj.pop("disruption_mode", None) + if "preemptionPolicy" not in obj and "preemption_policy" in obj: + obj["preemptionPolicy"] = obj["preemption_policy"] + obj.pop("preemption_policy", None) if "priorityClassName" not in obj and "priority_class_name" in obj: obj["priorityClassName"] = obj["priority_class_name"] obj.pop("priority_class_name", None) @@ -179,14 +186,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroupTemplate): + if not isinstance(other, V1alpha3PodGroupTemplate): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroupTemplate): + if not isinstance(other, V1alpha3PodGroupTemplate): return True return not (self == other) @@ -201,7 +208,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupTemplate from a JSON string""" + """Create an instance of V1alpha3PodGroupTemplate from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -209,6 +216,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: return { ("disruptionMode" if serialize else "disruption_mode"): _to_legacy_value(getattr(self, "disruption_mode", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("preemptionPolicy" if serialize else "preemption_policy"): _to_legacy_value(getattr(self, "preemption_policy", None), serialize), ("priority" if serialize else "priority"): _to_legacy_value(getattr(self, "priority", None), serialize), ("priorityClassName" if serialize else "priority_class_name"): _to_legacy_value(getattr(self, "priority_class_name", None), serialize), ("resourceClaims" if serialize else "resource_claims"): _to_legacy_value(getattr(self, "resource_claims", None), serialize), @@ -234,6 +242,9 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of disruption_mode + if self.disruption_mode: + _dict['disruptionMode'] = _to_openapi_value(self.disruption_mode) # override the default output from pydantic by calling `to_dict()` of each item in resource_claims (list) _items = [] if self.resource_claims: @@ -262,7 +273,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupTemplate from a dict""" + """Create an instance of V1alpha3PodGroupTemplate from a dict""" if obj is None: return None @@ -278,12 +289,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ - "disruptionMode": obj.get("disruptionMode"), + "disruptionMode": V1alpha3DisruptionMode.from_dict(obj["disruptionMode"]) if obj.get("disruptionMode") is not None else None, "name": obj.get("name"), + "preemptionPolicy": obj.get("preemptionPolicy"), "priority": obj.get("priority"), "priorityClassName": obj.get("priorityClassName"), - "resourceClaims": [V1alpha2PodGroupResourceClaim.from_dict(_item) for _item in obj["resourceClaims"]] if obj.get("resourceClaims") is not None else None, - "schedulingConstraints": V1alpha2PodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, - "schedulingPolicy": V1alpha2PodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None + "resourceClaims": [V1alpha3PodGroupResourceClaim.from_dict(_item) for _item in obj["resourceClaims"]] if obj.get("resourceClaims") is not None else None, + "schedulingConstraints": V1alpha3PodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, + "schedulingPolicy": V1alpha3PodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1alpha3_pool_status.py b/kubernetes/client/models/v1alpha3_pool_status.py index 5ff876bbc1..36b709e41e 100644 --- a/kubernetes/client/models/v1alpha3_pool_status.py +++ b/kubernetes/client/models/v1alpha3_pool_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,6 +20,8 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1alpha3_partition_type_status import V1alpha3PartitionTypeStatus +from kubernetes.client.models.v1alpha3_shareable_summary_status import V1alpha3ShareableSummaryStatus from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -108,8 +110,10 @@ class V1alpha3PoolStatus(BaseModel): driver: StrictStr = Field(description="Driver is the DRA driver name for this pool. Must be a DNS subdomain (e.g., \"gpu.example.com\").") generation: StrictInt = Field(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.") node_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("nodeName", "node_name"), serialization_alias="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).") + partition_summary: Optional[List[V1alpha3PartitionTypeStatus]] = Field(default=None, validation_alias=AliasChoices("partitionSummary", "partition_summary"), serialization_alias="partitionSummary", description="PartitionSummary reports allocatability per (attribute, partition type) for a partitionable pool that publishes SharedCounters. Each entry names the grouping attribute it was resolved from: the PartitionTypeAttribute declared by a device's own slice, or for devices whose slice declares none, the default named in the request. A pool that mixes partitions declared under different attributes reports each independently. When no slice declares an attribute and the request names no default, the pool reports no partition summary.") pool_name: StrictStr = Field(validation_alias=AliasChoices("poolName", "pool_name"), serialization_alias="poolName", description="PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by \"/\").") resource_slice_count: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("resourceSliceCount", "resource_slice_count"), serialization_alias="resourceSliceCount", description="ResourceSliceCount is the number of ResourceSlices that make up this pool. May be unset when validationError is set.") + shareable_summary: Optional[V1alpha3ShareableSummaryStatus] = Field(default=None, validation_alias=AliasChoices("shareableSummary", "shareable_summary"), serialization_alias="shareableSummary") total_devices: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("totalDevices", "total_devices"), serialization_alias="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.") unavailable_devices: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("unavailableDevices", "unavailable_devices"), serialization_alias="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.") validation_error: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("validationError", "validation_error"), serialization_alias="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.") @@ -119,8 +123,10 @@ class V1alpha3PoolStatus(BaseModel): "driver": "str", "generation": "int", "node_name": "str", + "partition_summary": "List[V1alpha3PartitionTypeStatus]", "pool_name": "str", "resource_slice_count": "int", + "shareable_summary": "V1alpha3ShareableSummaryStatus", "total_devices": "int", "unavailable_devices": "int", "validation_error": "str" @@ -132,13 +138,15 @@ class V1alpha3PoolStatus(BaseModel): "driver": "driver", "generation": "generation", "node_name": "nodeName", + "partition_summary": "partitionSummary", "pool_name": "poolName", "resource_slice_count": "resourceSliceCount", + "shareable_summary": "shareableSummary", "total_devices": "totalDevices", "unavailable_devices": "unavailableDevices", "validation_error": "validationError" } - __properties: ClassVar[List[str]] = ["allocatedDevices", "availableDevices", "driver", "generation", "nodeName", "poolName", "resourceSliceCount", "totalDevices", "unavailableDevices", "validationError"] + __properties: ClassVar[List[str]] = ["allocatedDevices", "availableDevices", "driver", "generation", "nodeName", "partitionSummary", "poolName", "resourceSliceCount", "shareableSummary", "totalDevices", "unavailableDevices", "validationError"] @classmethod def __preprocess_input_names( @@ -158,12 +166,18 @@ def __preprocess_input_names( if "nodeName" not in obj and "node_name" in obj: obj["nodeName"] = obj["node_name"] obj.pop("node_name", None) + if "partitionSummary" not in obj and "partition_summary" in obj: + obj["partitionSummary"] = obj["partition_summary"] + obj.pop("partition_summary", None) if "poolName" not in obj and "pool_name" in obj: obj["poolName"] = obj["pool_name"] obj.pop("pool_name", None) if "resourceSliceCount" not in obj and "resource_slice_count" in obj: obj["resourceSliceCount"] = obj["resource_slice_count"] obj.pop("resource_slice_count", None) + if "shareableSummary" not in obj and "shareable_summary" in obj: + obj["shareableSummary"] = obj["shareable_summary"] + obj.pop("shareable_summary", None) if "totalDevices" not in obj and "total_devices" in obj: obj["totalDevices"] = obj["total_devices"] obj.pop("total_devices", None) @@ -227,8 +241,10 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("driver" if serialize else "driver"): _to_legacy_value(getattr(self, "driver", None), serialize), ("generation" if serialize else "generation"): _to_legacy_value(getattr(self, "generation", None), serialize), ("nodeName" if serialize else "node_name"): _to_legacy_value(getattr(self, "node_name", None), serialize), + ("partitionSummary" if serialize else "partition_summary"): _to_legacy_value(getattr(self, "partition_summary", None), serialize), ("poolName" if serialize else "pool_name"): _to_legacy_value(getattr(self, "pool_name", None), serialize), ("resourceSliceCount" if serialize else "resource_slice_count"): _to_legacy_value(getattr(self, "resource_slice_count", None), serialize), + ("shareableSummary" if serialize else "shareable_summary"): _to_legacy_value(getattr(self, "shareable_summary", None), serialize), ("totalDevices" if serialize else "total_devices"): _to_legacy_value(getattr(self, "total_devices", None), serialize), ("unavailableDevices" if serialize else "unavailable_devices"): _to_legacy_value(getattr(self, "unavailable_devices", None), serialize), ("validationError" if serialize else "validation_error"): _to_legacy_value(getattr(self, "validation_error", None), serialize), @@ -252,6 +268,15 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in partition_summary (list) + _items = [] + if self.partition_summary: + for _item_partition_summary in self.partition_summary: + _items.append(_to_openapi_value(_item_partition_summary) if _item_partition_summary is not None else None) + _dict['partitionSummary'] = _items + # override the default output from pydantic by calling `to_dict()` of shareable_summary + if self.shareable_summary: + _dict['shareableSummary'] = _to_openapi_value(self.shareable_summary) return _dict setattr( @@ -289,8 +314,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "driver": obj.get("driver"), "generation": obj.get("generation"), "nodeName": obj.get("nodeName"), + "partitionSummary": [V1alpha3PartitionTypeStatus.from_dict(_item) for _item in obj["partitionSummary"]] if obj.get("partitionSummary") is not None else None, "poolName": obj.get("poolName"), "resourceSliceCount": obj.get("resourceSliceCount"), + "shareableSummary": V1alpha3ShareableSummaryStatus.from_dict(obj["shareableSummary"]) if obj.get("shareableSummary") is not None else None, "totalDevices": obj.get("totalDevices"), "unavailableDevices": obj.get("unavailableDevices"), "validationError": obj.get("validationError") diff --git a/kubernetes/client/models/v1alpha3_resource_pool_status_request.py b/kubernetes/client/models/v1alpha3_resource_pool_status_request.py index bcac7ae394..9130e504a5 100644 --- a/kubernetes/client/models/v1alpha3_resource_pool_status_request.py +++ b/kubernetes/client/models/v1alpha3_resource_pool_status_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha3_resource_pool_status_request_list.py b/kubernetes/client/models/v1alpha3_resource_pool_status_request_list.py index ccc5e5fa3a..5f8bda6da2 100644 --- a/kubernetes/client/models/v1alpha3_resource_pool_status_request_list.py +++ b/kubernetes/client/models/v1alpha3_resource_pool_status_request_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1alpha3_resource_pool_status_request_spec.py b/kubernetes/client/models/v1alpha3_resource_pool_status_request_spec.py index 36906f0e3e..a8a5e1e6a3 100644 --- a/kubernetes/client/models/v1alpha3_resource_pool_status_request_spec.py +++ b/kubernetes/client/models/v1alpha3_resource_pool_status_request_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -103,21 +103,24 @@ class V1alpha3ResourcePoolStatusRequestSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 + default_partition_type_attribute: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("defaultPartitionTypeAttribute", "default_partition_type_attribute"), serialization_alias="defaultPartitionTypeAttribute", description="DefaultPartitionTypeAttribute optionally names a device attribute (by its fully qualified name, e.g. \"gpu.example.com/profile\") to use as the default grouping attribute for partitionable devices whose slice has not declared one themselves. A slice's own PartitionTypeAttribute always takes precedence. This default applies only to devices whose slice does not declare one, so that a request can still get an accurate partitionSummary from a driver that has not been updated to declare it. When neither the slice nor this default names an attribute, a partitionable pool reports no partitionSummary. Must include the domain qualifier.") driver: StrictStr = Field(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\").") limit: Optional[StrictInt] = Field(default=None, 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") pool_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("poolName", "pool_name"), serialization_alias="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 \"/\").") openapi_types: ClassVar[Dict[str, str]] = { + "default_partition_type_attribute": "str", "driver": "str", "limit": "int", "pool_name": "str" } attribute_map: ClassVar[Dict[str, str]] = { + "default_partition_type_attribute": "defaultPartitionTypeAttribute", "driver": "driver", "limit": "limit", "pool_name": "poolName" } - __properties: ClassVar[List[str]] = ["driver", "limit", "poolName"] + __properties: ClassVar[List[str]] = ["defaultPartitionTypeAttribute", "driver", "limit", "poolName"] @classmethod def __preprocess_input_names( @@ -128,6 +131,9 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) + if "defaultPartitionTypeAttribute" not in obj and "default_partition_type_attribute" in obj: + obj["defaultPartitionTypeAttribute"] = obj["default_partition_type_attribute"] + obj.pop("default_partition_type_attribute", None) if "poolName" not in obj and "pool_name" in obj: obj["poolName"] = obj["pool_name"] obj.pop("pool_name", None) @@ -180,6 +186,7 @@ def from_json(cls, json_str: str) -> Optional[Self]: def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { + ("defaultPartitionTypeAttribute" if serialize else "default_partition_type_attribute"): _to_legacy_value(getattr(self, "default_partition_type_attribute", None), serialize), ("driver" if serialize else "driver"): _to_legacy_value(getattr(self, "driver", None), serialize), ("limit" if serialize else "limit"): _to_legacy_value(getattr(self, "limit", None), serialize), ("poolName" if serialize else "pool_name"): _to_legacy_value(getattr(self, "pool_name", None), serialize), @@ -235,6 +242,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ + "defaultPartitionTypeAttribute": obj.get("defaultPartitionTypeAttribute"), "driver": obj.get("driver"), "limit": obj.get("limit"), "poolName": obj.get("poolName") diff --git a/kubernetes/client/models/v1alpha3_resource_pool_status_request_status.py b/kubernetes/client/models/v1alpha3_resource_pool_status_request_status.py index ffbb5a4c9b..23c1a93be4 100644 --- a/kubernetes/client/models/v1alpha3_resource_pool_status_request_status.py +++ b/kubernetes/client/models/v1alpha3_resource_pool_status_request_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_parent_reference.py b/kubernetes/client/models/v1alpha3_shareable_capacity_status.py similarity index 78% rename from kubernetes/client/models/v1beta1_parent_reference.py rename to kubernetes/client/models/v1alpha3_shareable_capacity_status.py index 4c45f1f90e..eca187aa22 100644 --- a/kubernetes/client/models/v1beta1_parent_reference.py +++ b/kubernetes/client/models/v1alpha3_shareable_capacity_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -92,9 +92,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1beta1ParentReference(BaseModel): +class V1alpha3ShareableCapacityStatus(BaseModel): """ - ParentReference describes a reference to a parent object. + ShareableCapacityStatus reports aggregate amounts for a single shareable capacity key. Attributes: openapi_types (dict): The key is attribute name @@ -102,24 +102,24 @@ class V1beta1ParentReference(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - group: Optional[StrictStr] = Field(default=None, description="Group is the group of the object being referenced.") - name: StrictStr = Field(description="Name is the name of the object being referenced.") - namespace: Optional[StrictStr] = Field(default=None, description="Namespace is the namespace of the object being referenced.") - resource: StrictStr = Field(description="Resource is the resource of the object being referenced.") + available: StrictStr = Field(description="Available is Total minus Consumed, never negative.") + consumed: StrictStr = Field(description="Consumed is the amount drawn by current allocations.") + name: StrictStr = Field(description="Name is the capacity name.") + total: StrictStr = Field(description="Total is the sum of this capacity across shareable devices in the pool.") openapi_types: ClassVar[Dict[str, str]] = { - "group": "str", + "available": "str", + "consumed": "str", "name": "str", - "namespace": "str", - "resource": "str" + "total": "str" } attribute_map: ClassVar[Dict[str, str]] = { - "group": "group", + "available": "available", + "consumed": "consumed", "name": "name", - "namespace": "namespace", - "resource": "resource" + "total": "total" } - __properties: ClassVar[List[str]] = ["group", "name", "namespace", "resource"] + __properties: ClassVar[List[str]] = ["available", "consumed", "name", "total"] model_config = ConfigDict( validate_by_name=True, @@ -140,14 +140,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1beta1ParentReference): + if not isinstance(other, V1alpha3ShareableCapacityStatus): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1ParentReference): + if not isinstance(other, V1alpha3ShareableCapacityStatus): return True return not (self == other) @@ -162,16 +162,16 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1ParentReference from a JSON string""" + """Create an instance of V1alpha3ShareableCapacityStatus from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { - ("group" if serialize else "group"): _to_legacy_value(getattr(self, "group", None), serialize), + ("available" if serialize else "available"): _to_legacy_value(getattr(self, "available", None), serialize), + ("consumed" if serialize else "consumed"): _to_legacy_value(getattr(self, "consumed", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), - ("namespace" if serialize else "namespace"): _to_legacy_value(getattr(self, "namespace", None), serialize), - ("resource" if serialize else "resource"): _to_legacy_value(getattr(self, "resource", None), serialize), + ("total" if serialize else "total"): _to_legacy_value(getattr(self, "total", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -208,7 +208,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1ParentReference from a dict""" + """Create an instance of V1alpha3ShareableCapacityStatus from a dict""" if obj is None: return None @@ -216,9 +216,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "group": obj.get("group"), + "available": obj.get("available"), + "consumed": obj.get("consumed"), "name": obj.get("name"), - "namespace": obj.get("namespace"), - "resource": obj.get("resource") + "total": obj.get("total") }) return _obj diff --git a/kubernetes/client/models/v1alpha3_shareable_summary_status.py b/kubernetes/client/models/v1alpha3_shareable_summary_status.py new file mode 100644 index 0000000000..95f8ae6a9e --- /dev/null +++ b/kubernetes/client/models/v1alpha3_shareable_summary_status.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1alpha3_shareable_capacity_status import V1alpha3ShareableCapacityStatus +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3ShareableSummaryStatus(BaseModel): + """ + ShareableSummaryStatus reports aggregate capacity for a pool that contains devices with AllowMultipleAllocations. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + capacity: Optional[List[V1alpha3ShareableCapacityStatus]] = Field(default=None, description="Capacity reports aggregate total, consumed, and available amounts per shareable capacity key across the pool.") + fully_available_devices: StrictInt = Field(validation_alias=AliasChoices("fullyAvailableDevices", "fully_available_devices"), serialization_alias="fullyAvailableDevices", description="FullyAvailableDevices is the number of shareable devices with no capacity consumed.") + partially_available_devices: StrictInt = Field(validation_alias=AliasChoices("partiallyAvailableDevices", "partially_available_devices"), serialization_alias="partiallyAvailableDevices", description="PartiallyAvailableDevices is the number of shareable devices with some but not all capacity consumed.") + openapi_types: ClassVar[Dict[str, str]] = { + "capacity": "List[V1alpha3ShareableCapacityStatus]", + "fully_available_devices": "int", + "partially_available_devices": "int" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "capacity": "capacity", + "fully_available_devices": "fullyAvailableDevices", + "partially_available_devices": "partiallyAvailableDevices" + } + __properties: ClassVar[List[str]] = ["capacity", "fullyAvailableDevices", "partiallyAvailableDevices"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "fullyAvailableDevices" not in obj and "fully_available_devices" in obj: + obj["fullyAvailableDevices"] = obj["fully_available_devices"] + obj.pop("fully_available_devices", None) + if "partiallyAvailableDevices" not in obj and "partially_available_devices" in obj: + obj["partiallyAvailableDevices"] = obj["partially_available_devices"] + obj.pop("partially_available_devices", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3ShareableSummaryStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3ShareableSummaryStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3ShareableSummaryStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), + ("fullyAvailableDevices" if serialize else "fully_available_devices"): _to_legacy_value(getattr(self, "fully_available_devices", None), serialize), + ("partiallyAvailableDevices" if serialize else "partially_available_devices"): _to_legacy_value(getattr(self, "partially_available_devices", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in capacity (list) + _items = [] + if self.capacity: + for _item_capacity in self.capacity: + _items.append(_to_openapi_value(_item_capacity) if _item_capacity is not None else None) + _dict['capacity'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3ShareableSummaryStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "capacity": [V1alpha3ShareableCapacityStatus.from_dict(_item) for _item in obj["capacity"]] if obj.get("capacity") is not None else None, + "fullyAvailableDevices": obj.get("fullyAvailableDevices"), + "partiallyAvailableDevices": obj.get("partiallyAvailableDevices") + }) + return _obj diff --git a/kubernetes/client/models/v1alpha2_topology_constraint.py b/kubernetes/client/models/v1alpha3_topology_constraint.py similarity index 93% rename from kubernetes/client/models/v1alpha2_topology_constraint.py rename to kubernetes/client/models/v1alpha3_topology_constraint.py index 89f83fe547..a4aa134adb 100644 --- a/kubernetes/client/models/v1alpha2_topology_constraint.py +++ b/kubernetes/client/models/v1alpha3_topology_constraint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -92,7 +92,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2TopologyConstraint(BaseModel): +class V1alpha3TopologyConstraint(BaseModel): """ TopologyConstraint defines a topology constraint for a PodGroup. @@ -102,7 +102,7 @@ class V1alpha2TopologyConstraint(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - key: StrictStr = Field(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\"") + key: StrictStr = Field(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\"") openapi_types: ClassVar[Dict[str, str]] = { "key": "str" } @@ -131,14 +131,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2TopologyConstraint): + if not isinstance(other, V1alpha3TopologyConstraint): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2TopologyConstraint): + if not isinstance(other, V1alpha3TopologyConstraint): return True return not (self == other) @@ -153,7 +153,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2TopologyConstraint from a JSON string""" + """Create an instance of V1alpha3TopologyConstraint from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -196,7 +196,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2TopologyConstraint from a dict""" + """Create an instance of V1alpha3TopologyConstraint from a dict""" if obj is None: return None diff --git a/kubernetes/aio/client/models/v1alpha2_typed_local_object_reference.py b/kubernetes/client/models/v1alpha3_typed_local_object_reference.py similarity index 93% rename from kubernetes/aio/client/models/v1alpha2_typed_local_object_reference.py rename to kubernetes/client/models/v1alpha3_typed_local_object_reference.py index cab1aa2863..35138b5a4b 100644 --- a/kubernetes/aio/client/models/v1alpha2_typed_local_object_reference.py +++ b/kubernetes/client/models/v1alpha3_typed_local_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -93,7 +93,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2TypedLocalObjectReference(BaseModel): +class V1alpha3TypedLocalObjectReference(BaseModel): """ TypedLocalObjectReference allows to reference typed object inside the same namespace. @@ -103,9 +103,9 @@ class V1alpha2TypedLocalObjectReference(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - api_group: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiGroup", "api_group"), serialization_alias="apiGroup", description="APIGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain.") - kind: StrictStr = Field(description="Kind is the type of resource being referenced. It must be a path segment name.") - name: StrictStr = Field(description="Name is the name of resource being referenced. It must be a path segment name.") + api_group: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiGroup", "api_group"), serialization_alias="apiGroup", description="apiGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain.") + kind: StrictStr = Field(description="kind is the type of resource being referenced. It must be a path segment name.") + name: StrictStr = Field(description="name is the name of resource being referenced. It must be a path segment name.") openapi_types: ClassVar[Dict[str, str]] = { "api_group": "str", "kind": "str", @@ -152,14 +152,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2TypedLocalObjectReference): + if not isinstance(other, V1alpha3TypedLocalObjectReference): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2TypedLocalObjectReference): + if not isinstance(other, V1alpha3TypedLocalObjectReference): return True return not (self == other) @@ -174,7 +174,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2TypedLocalObjectReference from a JSON string""" + """Create an instance of V1alpha3TypedLocalObjectReference from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -219,7 +219,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2TypedLocalObjectReference from a dict""" + """Create an instance of V1alpha3TypedLocalObjectReference from a dict""" if obj is None: return None diff --git a/kubernetes/client/models/v1alpha2_workload.py b/kubernetes/client/models/v1alpha3_workload.py similarity index 94% rename from kubernetes/client/models/v1alpha2_workload.py rename to kubernetes/client/models/v1alpha3_workload.py index cb526bb21a..9b1d73e5b8 100644 --- a/kubernetes/client/models/v1alpha2_workload.py +++ b/kubernetes/client/models/v1alpha3_workload.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,7 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1_object_meta import V1ObjectMeta -from kubernetes.client.models.v1alpha2_workload_spec import V1alpha2WorkloadSpec +from kubernetes.client.models.v1alpha3_workload_spec import V1alpha3WorkloadSpec from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,7 +95,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2Workload(BaseModel): +class V1alpha3Workload(BaseModel): """ 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. @@ -108,12 +108,12 @@ class V1alpha2Workload(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1alpha2WorkloadSpec + spec: V1alpha3WorkloadSpec openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", "metadata": "V1ObjectMeta", - "spec": "V1alpha2WorkloadSpec" + "spec": "V1alpha3WorkloadSpec" } attribute_map: ClassVar[Dict[str, str]] = { @@ -157,14 +157,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2Workload): + if not isinstance(other, V1alpha3Workload): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2Workload): + if not isinstance(other, V1alpha3Workload): return True return not (self == other) @@ -179,7 +179,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2Workload from a JSON string""" + """Create an instance of V1alpha3Workload from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -231,7 +231,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2Workload from a dict""" + """Create an instance of V1alpha3Workload from a dict""" if obj is None: return None @@ -250,6 +250,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "apiVersion": obj.get("apiVersion"), "kind": obj.get("kind"), "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, - "spec": V1alpha2WorkloadSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None + "spec": V1alpha3WorkloadSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1alpha2_workload_list.py b/kubernetes/client/models/v1alpha3_workload_list.py similarity index 94% rename from kubernetes/client/models/v1alpha2_workload_list.py rename to kubernetes/client/models/v1alpha3_workload_list.py index fdf47f084f..b28223c4c0 100644 --- a/kubernetes/client/models/v1alpha2_workload_list.py +++ b/kubernetes/client/models/v1alpha3_workload_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,7 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1_list_meta import V1ListMeta -from kubernetes.client.models.v1alpha2_workload import V1alpha2Workload +from kubernetes.client.models.v1alpha3_workload import V1alpha3Workload from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,7 +95,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2WorkloadList(BaseModel): +class V1alpha3WorkloadList(BaseModel): """ WorkloadList contains a list of Workload resources. @@ -106,12 +106,12 @@ class V1alpha2WorkloadList(BaseModel): and the value is json key in definition. """ # noqa: E501 api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - items: List[V1alpha2Workload] = Field(description="Items is the list of Workloads.") + items: List[V1alpha3Workload] = Field(description="Items is the list of Workloads.") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ListMeta] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", - "items": "List[V1alpha2Workload]", + "items": "List[V1alpha3Workload]", "kind": "str", "metadata": "V1ListMeta" } @@ -157,14 +157,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2WorkloadList): + if not isinstance(other, V1alpha3WorkloadList): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2WorkloadList): + if not isinstance(other, V1alpha3WorkloadList): return True return not (self == other) @@ -179,7 +179,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2WorkloadList from a JSON string""" + """Create an instance of V1alpha3WorkloadList from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -234,7 +234,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2WorkloadList from a dict""" + """Create an instance of V1alpha3WorkloadList from a dict""" if obj is None: return None @@ -251,7 +251,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "apiVersion": obj.get("apiVersion"), - "items": [V1alpha2Workload.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "items": [V1alpha3Workload.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "kind": obj.get("kind"), "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None }) diff --git a/kubernetes/client/models/v1alpha3_workload_pod_group_disruption_mode.py b/kubernetes/client/models/v1alpha3_workload_pod_group_disruption_mode.py new file mode 100644 index 0000000000..557d4b84f9 --- /dev/null +++ b/kubernetes/client/models/v1alpha3_workload_pod_group_disruption_mode.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3WorkloadPodGroupDisruptionMode(BaseModel): + """ + WorkloadPodGroupDisruptionMode defines how individual pods within a group can be disrupted. Exactly one mode must be set. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + all: Optional[Dict[str, Any]] = Field(default=None, description="all specifies that all pods in the group must be disrupted together.") + single: Optional[Dict[str, Any]] = Field(default=None, description="single specifies that pods can be disrupted independently from each other.") + openapi_types: ClassVar[Dict[str, str]] = { + "all": "object", + "single": "object" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "all": "all", + "single": "single" + } + __properties: ClassVar[List[str]] = ["all", "single"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupDisruptionMode): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupDisruptionMode): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupDisruptionMode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("all" if serialize else "all"): _to_legacy_value(getattr(self, "all", None), serialize), + ("single" if serialize else "single"): _to_legacy_value(getattr(self, "single", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupDisruptionMode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "all": obj.get("all"), + "single": obj.get("single") + }) + return _obj diff --git a/kubernetes/client/models/v1alpha3_workload_pod_group_gang_scheduling_policy.py b/kubernetes/client/models/v1alpha3_workload_pod_group_gang_scheduling_policy.py new file mode 100644 index 0000000000..9c29d59e3c --- /dev/null +++ b/kubernetes/client/models/v1alpha3_workload_pod_group_gang_scheduling_policy.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3WorkloadPodGroupGangSchedulingPolicy(BaseModel): + """ + WorkloadPodGroupGangSchedulingPolicy defines the parameters for gang (all-or-nothing) scheduling. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + min_count: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("minCount", "min_count"), serialization_alias="minCount", description="minCount is the minimum number of pods that must be scheduled at the same time for the scheduler to admit the entire group. This field is optional. If it is not specified, the controller should inject a context-specific sane default (e.g., parallelism for a Job). If set, it must be a positive integer.") + openapi_types: ClassVar[Dict[str, str]] = { + "min_count": "int" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "min_count": "minCount" + } + __properties: ClassVar[List[str]] = ["minCount"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "minCount" not in obj and "min_count" in obj: + obj["minCount"] = obj["min_count"] + obj.pop("min_count", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupGangSchedulingPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupGangSchedulingPolicy): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupGangSchedulingPolicy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("minCount" if serialize else "min_count"): _to_legacy_value(getattr(self, "min_count", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupGangSchedulingPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "minCount": obj.get("minCount") + }) + return _obj diff --git a/kubernetes/client/models/v1alpha3_workload_pod_group_resource_claim.py b/kubernetes/client/models/v1alpha3_workload_pod_group_resource_claim.py new file mode 100644 index 0000000000..b983a4c561 --- /dev/null +++ b/kubernetes/client/models/v1alpha3_workload_pod_group_resource_claim.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3WorkloadPodGroupResourceClaim(BaseModel): + """ + WorkloadPodGroupResourceClaim references a dynamic resource claim that is shared across pods in the group. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + name: StrictStr = Field(description="name uniquely identifies this resource claim inside the group. This field is required. It must be a DNS_LABEL.") + resource_claim_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimName", "resource_claim_name"), serialization_alias="resourceClaimName", description="resourceClaimName is the name of a ResourceClaim object in the same namespace. This field is optional. If it is not specified, no resource claim is used. If set, it must be a DNS subdomain.") + resource_claim_template_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimTemplateName", "resource_claim_template_name"), serialization_alias="resourceClaimTemplateName", description="resourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace. This field is optional. If it is not specified, no resource claim template is used. If set, it must be a DNS subdomain.") + openapi_types: ClassVar[Dict[str, str]] = { + "name": "str", + "resource_claim_name": "str", + "resource_claim_template_name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "name": "name", + "resource_claim_name": "resourceClaimName", + "resource_claim_template_name": "resourceClaimTemplateName" + } + __properties: ClassVar[List[str]] = ["name", "resourceClaimName", "resourceClaimTemplateName"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "resourceClaimName" not in obj and "resource_claim_name" in obj: + obj["resourceClaimName"] = obj["resource_claim_name"] + obj.pop("resource_claim_name", None) + if "resourceClaimTemplateName" not in obj and "resource_claim_template_name" in obj: + obj["resourceClaimTemplateName"] = obj["resource_claim_template_name"] + obj.pop("resource_claim_template_name", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupResourceClaim): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupResourceClaim): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupResourceClaim from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("resourceClaimName" if serialize else "resource_claim_name"): _to_legacy_value(getattr(self, "resource_claim_name", None), serialize), + ("resourceClaimTemplateName" if serialize else "resource_claim_template_name"): _to_legacy_value(getattr(self, "resource_claim_template_name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupResourceClaim from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "resourceClaimName": obj.get("resourceClaimName"), + "resourceClaimTemplateName": obj.get("resourceClaimTemplateName") + }) + return _obj diff --git a/kubernetes/client/models/v1alpha3_workload_pod_group_scheduling_constraints.py b/kubernetes/client/models/v1alpha3_workload_pod_group_scheduling_constraints.py new file mode 100644 index 0000000000..633e5a28f8 --- /dev/null +++ b/kubernetes/client/models/v1alpha3_workload_pod_group_scheduling_constraints.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.client.models.v1alpha3_topology_constraint import V1alpha3TopologyConstraint +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3WorkloadPodGroupSchedulingConstraints(BaseModel): + """ + WorkloadPodGroupSchedulingConstraints defines leaf-level scheduling constraints, such as topology. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + topology: Optional[List[V1alpha3TopologyConstraint]] = Field(default=None, description="topology specifies desired topological placements for all pods within the pod group. If unset, no topology placement is requested.") + openapi_types: ClassVar[Dict[str, str]] = { + "topology": "List[V1alpha3TopologyConstraint]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "topology": "topology" + } + __properties: ClassVar[List[str]] = ["topology"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupSchedulingConstraints): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupSchedulingConstraints): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupSchedulingConstraints from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("topology" if serialize else "topology"): _to_legacy_value(getattr(self, "topology", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in topology (list) + _items = [] + if self.topology: + for _item_topology in self.topology: + _items.append(_to_openapi_value(_item_topology) if _item_topology is not None else None) + _dict['topology'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupSchedulingConstraints from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "topology": [V1alpha3TopologyConstraint.from_dict(_item) for _item in obj["topology"]] if obj.get("topology") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1alpha3_workload_pod_group_scheduling_policy.py b/kubernetes/client/models/v1alpha3_workload_pod_group_scheduling_policy.py new file mode 100644 index 0000000000..7f5839c374 --- /dev/null +++ b/kubernetes/client/models/v1alpha3_workload_pod_group_scheduling_policy.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.client.models.v1alpha3_workload_pod_group_gang_scheduling_policy import V1alpha3WorkloadPodGroupGangSchedulingPolicy +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3WorkloadPodGroupSchedulingPolicy(BaseModel): + """ + WorkloadPodGroupSchedulingPolicy defines the scheduling policy for a group of pods managed by a workload controller. Exactly one policy must be set. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + basic: Optional[Dict[str, Any]] = Field(default=None, description="basic specifies that standard, pod-by-pod Kubernetes scheduling behavior should be used.") + gang: Optional[V1alpha3WorkloadPodGroupGangSchedulingPolicy] = None + openapi_types: ClassVar[Dict[str, str]] = { + "basic": "object", + "gang": "V1alpha3WorkloadPodGroupGangSchedulingPolicy" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "basic": "basic", + "gang": "gang" + } + __properties: ClassVar[List[str]] = ["basic", "gang"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupSchedulingPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3WorkloadPodGroupSchedulingPolicy): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupSchedulingPolicy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("basic" if serialize else "basic"): _to_legacy_value(getattr(self, "basic", None), serialize), + ("gang" if serialize else "gang"): _to_legacy_value(getattr(self, "gang", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of gang + if self.gang: + _dict['gang'] = _to_openapi_value(self.gang) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadPodGroupSchedulingPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "basic": obj.get("basic"), + "gang": V1alpha3WorkloadPodGroupGangSchedulingPolicy.from_dict(obj["gang"]) if obj.get("gang") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1alpha3_workload_reference.py b/kubernetes/client/models/v1alpha3_workload_reference.py new file mode 100644 index 0000000000..eb786d9462 --- /dev/null +++ b/kubernetes/client/models/v1alpha3_workload_reference.py @@ -0,0 +1,240 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1alpha3WorkloadReference(BaseModel): + """ + WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + template_name: StrictStr = Field(validation_alias=AliasChoices("templateName", "template_name"), serialization_alias="templateName", description="templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required.") + workload_name: StrictStr = Field(validation_alias=AliasChoices("workloadName", "workload_name"), serialization_alias="workloadName", description="workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required.") + openapi_types: ClassVar[Dict[str, str]] = { + "template_name": "str", + "workload_name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "template_name": "templateName", + "workload_name": "workloadName" + } + __properties: ClassVar[List[str]] = ["templateName", "workloadName"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "templateName" not in obj and "template_name" in obj: + obj["templateName"] = obj["template_name"] + obj.pop("template_name", None) + if "workloadName" not in obj and "workload_name" in obj: + obj["workloadName"] = obj["workload_name"] + obj.pop("workload_name", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1alpha3WorkloadReference): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1alpha3WorkloadReference): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadReference from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("templateName" if serialize else "template_name"): _to_legacy_value(getattr(self, "template_name", None), serialize), + ("workloadName" if serialize else "workload_name"): _to_legacy_value(getattr(self, "workload_name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1alpha3WorkloadReference from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "templateName": obj.get("templateName"), + "workloadName": obj.get("workloadName") + }) + return _obj diff --git a/kubernetes/aio/client/models/v1alpha2_workload_spec.py b/kubernetes/client/models/v1alpha3_workload_spec.py similarity index 70% rename from kubernetes/aio/client/models/v1alpha2_workload_spec.py rename to kubernetes/client/models/v1alpha3_workload_spec.py index e1c18cfb6a..7ee8eb7c79 100644 --- a/kubernetes/aio/client/models/v1alpha2_workload_spec.py +++ b/kubernetes/client/models/v1alpha3_workload_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,8 +20,9 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional, cast as _cast -from kubernetes.aio.client.models.v1alpha2_pod_group_template import V1alpha2PodGroupTemplate -from kubernetes.aio.client.models.v1alpha2_typed_local_object_reference import V1alpha2TypedLocalObjectReference +from kubernetes.client.models.v1alpha3_composite_pod_group_template import V1alpha3CompositePodGroupTemplate +from kubernetes.client.models.v1alpha3_pod_group_template import V1alpha3PodGroupTemplate +from kubernetes.client.models.v1alpha3_typed_local_object_reference import V1alpha3TypedLocalObjectReference from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,7 +96,7 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2WorkloadSpec(BaseModel): +class V1alpha3WorkloadSpec(BaseModel): """ WorkloadSpec defines the desired state of a Workload. @@ -105,18 +106,21 @@ class V1alpha2WorkloadSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - controller_ref: Optional[V1alpha2TypedLocalObjectReference] = Field(default=None, validation_alias=AliasChoices("controllerRef", "controller_ref"), serialization_alias="controllerRef") - pod_group_templates: List[V1alpha2PodGroupTemplate] = Field(validation_alias=AliasChoices("podGroupTemplates", "pod_group_templates"), serialization_alias="podGroupTemplates", description="PodGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. This field is immutable.") + composite_pod_group_templates: Optional[List[V1alpha3CompositePodGroupTemplate]] = Field(default=None, validation_alias=AliasChoices("compositePodGroupTemplates", "composite_pod_group_templates"), serialization_alias="compositePodGroupTemplates", description="compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. This field is used only when the CompositePodGroup feature gate is enabled.") + controller_ref: Optional[V1alpha3TypedLocalObjectReference] = Field(default=None, validation_alias=AliasChoices("controllerRef", "controller_ref"), serialization_alias="controllerRef") + pod_group_templates: Optional[List[V1alpha3PodGroupTemplate]] = Field(default=None, validation_alias=AliasChoices("podGroupTemplates", "pod_group_templates"), serialization_alias="podGroupTemplates", description="podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.") openapi_types: ClassVar[Dict[str, str]] = { - "controller_ref": "V1alpha2TypedLocalObjectReference", - "pod_group_templates": "List[V1alpha2PodGroupTemplate]" + "composite_pod_group_templates": "List[V1alpha3CompositePodGroupTemplate]", + "controller_ref": "V1alpha3TypedLocalObjectReference", + "pod_group_templates": "List[V1alpha3PodGroupTemplate]" } attribute_map: ClassVar[Dict[str, str]] = { + "composite_pod_group_templates": "compositePodGroupTemplates", "controller_ref": "controllerRef", "pod_group_templates": "podGroupTemplates" } - __properties: ClassVar[List[str]] = ["controllerRef", "podGroupTemplates"] + __properties: ClassVar[List[str]] = ["compositePodGroupTemplates", "controllerRef", "podGroupTemplates"] @classmethod def __preprocess_input_names( @@ -127,6 +131,9 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) + if "compositePodGroupTemplates" not in obj and "composite_pod_group_templates" in obj: + obj["compositePodGroupTemplates"] = obj["composite_pod_group_templates"] + obj.pop("composite_pod_group_templates", None) if "controllerRef" not in obj and "controller_ref" in obj: obj["controllerRef"] = obj["controller_ref"] obj.pop("controller_ref", None) @@ -154,14 +161,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2WorkloadSpec): + if not isinstance(other, V1alpha3WorkloadSpec): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2WorkloadSpec): + if not isinstance(other, V1alpha3WorkloadSpec): return True return not (self == other) @@ -176,12 +183,13 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2WorkloadSpec from a JSON string""" + """Create an instance of V1alpha3WorkloadSpec from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { + ("compositePodGroupTemplates" if serialize else "composite_pod_group_templates"): _to_legacy_value(getattr(self, "composite_pod_group_templates", None), serialize), ("controllerRef" if serialize else "controller_ref"): _to_legacy_value(getattr(self, "controller_ref", None), serialize), ("podGroupTemplates" if serialize else "pod_group_templates"): _to_legacy_value(getattr(self, "pod_group_templates", None), serialize), } @@ -204,6 +212,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in composite_pod_group_templates (list) + _items = [] + if self.composite_pod_group_templates: + for _item_composite_pod_group_templates in self.composite_pod_group_templates: + _items.append(_to_openapi_value(_item_composite_pod_group_templates) if _item_composite_pod_group_templates is not None else None) + _dict['compositePodGroupTemplates'] = _items # override the default output from pydantic by calling `to_dict()` of controller_ref if self.controller_ref: _dict['controllerRef'] = _to_openapi_value(self.controller_ref) @@ -229,7 +243,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2WorkloadSpec from a dict""" + """Create an instance of V1alpha3WorkloadSpec from a dict""" if obj is None: return None @@ -245,7 +259,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ - "controllerRef": V1alpha2TypedLocalObjectReference.from_dict(obj["controllerRef"]) if obj.get("controllerRef") is not None else None, - "podGroupTemplates": [V1alpha2PodGroupTemplate.from_dict(_item) for _item in obj["podGroupTemplates"]] if obj.get("podGroupTemplates") is not None else None + "compositePodGroupTemplates": [V1alpha3CompositePodGroupTemplate.from_dict(_item) for _item in obj["compositePodGroupTemplates"]] if obj.get("compositePodGroupTemplates") is not None else None, + "controllerRef": V1alpha3TypedLocalObjectReference.from_dict(obj["controllerRef"]) if obj.get("controllerRef") is not None else None, + "podGroupTemplates": [V1alpha3PodGroupTemplate.from_dict(_item) for _item in obj["podGroupTemplates"]] if obj.get("podGroupTemplates") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1beta1_allocated_device_status.py b/kubernetes/client/models/v1beta1_allocated_device_status.py index c48c9d6de7..f9bf88b271 100644 --- a/kubernetes/client/models/v1beta1_allocated_device_status.py +++ b/kubernetes/client/models/v1beta1_allocated_device_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_allocation_result.py b/kubernetes/client/models/v1beta1_allocation_result.py index 029d6d89c8..0ebec89802 100644 --- a/kubernetes/client/models/v1beta1_allocation_result.py +++ b/kubernetes/client/models/v1beta1_allocation_result.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_apply_configuration.py b/kubernetes/client/models/v1beta1_apply_configuration.py index 908a242d0e..21dd6e1cc9 100644 --- a/kubernetes/client/models/v1beta1_apply_configuration.py +++ b/kubernetes/client/models/v1beta1_apply_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_basic_device.py b/kubernetes/client/models/v1beta1_basic_device.py index 826d279c1d..f04d1ed4a8 100644 --- a/kubernetes/client/models/v1beta1_basic_device.py +++ b/kubernetes/client/models/v1beta1_basic_device.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -25,7 +25,7 @@ from kubernetes.client.models.v1beta1_device_capacity import V1beta1DeviceCapacity from kubernetes.client.models.v1beta1_device_counter_consumption import V1beta1DeviceCounterConsumption from kubernetes.client.models.v1beta1_device_taint import V1beta1DeviceTaint -from kubernetes.client.models.v1beta1_node_allocatable_resource_mapping import V1beta1NodeAllocatableResourceMapping +from kubernetes.client.models.v1beta1_node_allocatable_resource import V1beta1NodeAllocatableResource from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -117,7 +117,7 @@ class V1beta1BasicDevice(BaseModel): binds_to_node: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("bindsToNode", "binds_to_node"), serialization_alias="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. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") capacity: Optional[Dict[str, V1beta1DeviceCapacity]] = Field(default=None, description="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.") consumes_counters: Optional[List[V1beta1DeviceCounterConsumption]] = Field(default=None, validation_alias=AliasChoices("consumesCounters", "consumes_counters"), serialization_alias="consumesCounters", description="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.") - node_allocatable_resource_mappings: Optional[Dict[str, V1beta1NodeAllocatableResourceMapping]] = Field(default=None, validation_alias=AliasChoices("nodeAllocatableResourceMappings", "node_allocatable_resource_mappings"), serialization_alias="nodeAllocatableResourceMappings", 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.") + node_allocatable_resources: Optional[Dict[str, V1beta1NodeAllocatableResource]] = Field(default=None, validation_alias=AliasChoices("nodeAllocatableResources", "node_allocatable_resources"), serialization_alias="nodeAllocatableResources", description="NodeAllocatableResources 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.") node_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("nodeName", "node_name"), serialization_alias="nodeName", description="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.") node_selector: Optional[V1NodeSelector] = Field(default=None, validation_alias=AliasChoices("nodeSelector", "node_selector"), serialization_alias="nodeSelector") taints: Optional[List[V1beta1DeviceTaint]] = Field(default=None, description="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.") @@ -130,7 +130,7 @@ class V1beta1BasicDevice(BaseModel): "binds_to_node": "bool", "capacity": "Dict[str, V1beta1DeviceCapacity]", "consumes_counters": "List[V1beta1DeviceCounterConsumption]", - "node_allocatable_resource_mappings": "Dict[str, V1beta1NodeAllocatableResourceMapping]", + "node_allocatable_resources": "Dict[str, V1beta1NodeAllocatableResource]", "node_name": "str", "node_selector": "V1NodeSelector", "taints": "List[V1beta1DeviceTaint]" @@ -145,12 +145,12 @@ class V1beta1BasicDevice(BaseModel): "binds_to_node": "bindsToNode", "capacity": "capacity", "consumes_counters": "consumesCounters", - "node_allocatable_resource_mappings": "nodeAllocatableResourceMappings", + "node_allocatable_resources": "nodeAllocatableResources", "node_name": "nodeName", "node_selector": "nodeSelector", "taints": "taints" } - __properties: ClassVar[List[str]] = ["allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "nodeAllocatableResourceMappings", "nodeName", "nodeSelector", "taints"] + __properties: ClassVar[List[str]] = ["allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "nodeAllocatableResources", "nodeName", "nodeSelector", "taints"] @classmethod def __preprocess_input_names( @@ -179,9 +179,9 @@ def __preprocess_input_names( if "consumesCounters" not in obj and "consumes_counters" in obj: obj["consumesCounters"] = obj["consumes_counters"] obj.pop("consumes_counters", None) - if "nodeAllocatableResourceMappings" not in obj and "node_allocatable_resource_mappings" in obj: - obj["nodeAllocatableResourceMappings"] = obj["node_allocatable_resource_mappings"] - obj.pop("node_allocatable_resource_mappings", None) + if "nodeAllocatableResources" not in obj and "node_allocatable_resources" in obj: + obj["nodeAllocatableResources"] = obj["node_allocatable_resources"] + obj.pop("node_allocatable_resources", None) if "nodeName" not in obj and "node_name" in obj: obj["nodeName"] = obj["node_name"] obj.pop("node_name", None) @@ -245,7 +245,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("bindsToNode" if serialize else "binds_to_node"): _to_legacy_value(getattr(self, "binds_to_node", None), serialize), ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("consumesCounters" if serialize else "consumes_counters"): _to_legacy_value(getattr(self, "consumes_counters", None), serialize), - ("nodeAllocatableResourceMappings" if serialize else "node_allocatable_resource_mappings"): _to_legacy_value(getattr(self, "node_allocatable_resource_mappings", None), serialize), + ("nodeAllocatableResources" if serialize else "node_allocatable_resources"): _to_legacy_value(getattr(self, "node_allocatable_resources", None), serialize), ("nodeName" if serialize else "node_name"): _to_legacy_value(getattr(self, "node_name", None), serialize), ("nodeSelector" if serialize else "node_selector"): _to_legacy_value(getattr(self, "node_selector", None), serialize), ("taints" if serialize else "taints"): _to_legacy_value(getattr(self, "taints", None), serialize), @@ -287,12 +287,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: for _item_consumes_counters in self.consumes_counters: _items.append(_to_openapi_value(_item_consumes_counters) if _item_consumes_counters is not None else None) _dict['consumesCounters'] = _items - # override the default output from pydantic by calling `to_dict()` of each value in node_allocatable_resource_mappings (dict) + # override the default output from pydantic by calling `to_dict()` of each value in node_allocatable_resources (dict) _field_dict = {} - if self.node_allocatable_resource_mappings: - for _key_node_allocatable_resource_mappings in self.node_allocatable_resource_mappings: - _field_dict[_key_node_allocatable_resource_mappings] = _to_openapi_value(self.node_allocatable_resource_mappings[_key_node_allocatable_resource_mappings]) if self.node_allocatable_resource_mappings[_key_node_allocatable_resource_mappings] is not None else None - _dict['nodeAllocatableResourceMappings'] = _field_dict + if self.node_allocatable_resources: + for _key_node_allocatable_resources in self.node_allocatable_resources: + _field_dict[_key_node_allocatable_resources] = _to_openapi_value(self.node_allocatable_resources[_key_node_allocatable_resources]) if self.node_allocatable_resources[_key_node_allocatable_resources] is not None else None + _dict['nodeAllocatableResources'] = _field_dict # override the default output from pydantic by calling `to_dict()` of node_selector if self.node_selector: _dict['nodeSelector'] = _to_openapi_value(self.node_selector) @@ -352,11 +352,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("capacity") is not None else None, "consumesCounters": [V1beta1DeviceCounterConsumption.from_dict(_item) for _item in obj["consumesCounters"]] if obj.get("consumesCounters") is not None else None, - "nodeAllocatableResourceMappings": dict( - (_k, V1beta1NodeAllocatableResourceMapping.from_dict(_v)) - for _k, _v in obj["nodeAllocatableResourceMappings"].items() + "nodeAllocatableResources": dict( + (_k, V1beta1NodeAllocatableResource.from_dict(_v)) + for _k, _v in obj["nodeAllocatableResources"].items() ) - if obj.get("nodeAllocatableResourceMappings") is not None + if obj.get("nodeAllocatableResources") is not None else None, "nodeName": obj.get("nodeName"), "nodeSelector": V1NodeSelector.from_dict(obj["nodeSelector"]) if obj.get("nodeSelector") is not None else None, diff --git a/kubernetes/client/models/v1beta1_capacity_request_policy.py b/kubernetes/client/models/v1beta1_capacity_request_policy.py index aca705fed8..251394bc81 100644 --- a/kubernetes/client/models/v1beta1_capacity_request_policy.py +++ b/kubernetes/client/models/v1beta1_capacity_request_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_capacity_request_policy_range.py b/kubernetes/client/models/v1beta1_capacity_request_policy_range.py index 24ddab13f6..e85a6838e2 100644 --- a/kubernetes/client/models/v1beta1_capacity_request_policy_range.py +++ b/kubernetes/client/models/v1beta1_capacity_request_policy_range.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -94,7 +94,7 @@ def _to_openapi_value(value: Any) -> Any: class V1beta1CapacityRequestPolicyRange(BaseModel): """ - 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. + CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - 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. Attributes: openapi_types (dict): The key is attribute name diff --git a/kubernetes/client/models/v1beta1_capacity_requirements.py b/kubernetes/client/models/v1beta1_capacity_requirements.py index 3845dba76b..20f33aad50 100644 --- a/kubernetes/client/models/v1beta1_capacity_requirements.py +++ b/kubernetes/client/models/v1beta1_capacity_requirements.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_cel_device_selector.py b/kubernetes/client/models/v1beta1_cel_device_selector.py index 232a80eba2..7ef8bb1815 100644 --- a/kubernetes/client/models/v1beta1_cel_device_selector.py +++ b/kubernetes/client/models/v1beta1_cel_device_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -102,7 +102,7 @@ class V1beta1CELDeviceSelector(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - expression: StrictStr = Field(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. 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.") + expression: StrictStr = Field(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. 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.") openapi_types: ClassVar[Dict[str, str]] = { "expression": "str" } diff --git a/kubernetes/client/models/v1beta1_cluster_trust_bundle.py b/kubernetes/client/models/v1beta1_cluster_trust_bundle.py index ba0c44ee7f..5113af8afa 100644 --- a/kubernetes/client/models/v1beta1_cluster_trust_bundle.py +++ b/kubernetes/client/models/v1beta1_cluster_trust_bundle.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -97,7 +97,7 @@ def _to_openapi_value(value: Any) -> Any: class V1beta1ClusterTrustBundle(BaseModel): """ - 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. + 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 signer, 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. Attributes: openapi_types (dict): The key is attribute name diff --git a/kubernetes/client/models/v1beta1_cluster_trust_bundle_list.py b/kubernetes/client/models/v1beta1_cluster_trust_bundle_list.py index ae4e17dd35..d7d857bac3 100644 --- a/kubernetes/client/models/v1beta1_cluster_trust_bundle_list.py +++ b/kubernetes/client/models/v1beta1_cluster_trust_bundle_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_cluster_trust_bundle_spec.py b/kubernetes/client/models/v1beta1_cluster_trust_bundle_spec.py index adcc3cc855..c35343969f 100644 --- a/kubernetes/client/models/v1beta1_cluster_trust_bundle_spec.py +++ b/kubernetes/client/models/v1beta1_cluster_trust_bundle_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_composite_disruption_mode.py b/kubernetes/client/models/v1beta1_composite_disruption_mode.py new file mode 100644 index 0000000000..8b60442961 --- /dev/null +++ b/kubernetes/client/models/v1beta1_composite_disruption_mode.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1CompositeDisruptionMode(BaseModel): + """ + CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + all: Optional[Dict[str, Any]] = Field(default=None, description="all specifies that all children groups can only be disrupted together.") + single: Optional[Dict[str, Any]] = Field(default=None, description="single specifies that children groups can be disrupted independently from each other.") + openapi_types: ClassVar[Dict[str, str]] = { + "all": "object", + "single": "object" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "all": "all", + "single": "single" + } + __properties: ClassVar[List[str]] = ["all", "single"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1CompositeDisruptionMode): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1CompositeDisruptionMode): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1CompositeDisruptionMode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("all" if serialize else "all"): _to_legacy_value(getattr(self, "all", None), serialize), + ("single" if serialize else "single"): _to_legacy_value(getattr(self, "single", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1CompositeDisruptionMode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "all": obj.get("all"), + "single": obj.get("single") + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_ip_address_spec.py b/kubernetes/client/models/v1beta1_composite_gang_scheduling_policy.py similarity index 81% rename from kubernetes/client/models/v1beta1_ip_address_spec.py rename to kubernetes/client/models/v1beta1_composite_gang_scheduling_policy.py index aa43d49ff6..e283a3554d 100644 --- a/kubernetes/client/models/v1beta1_ip_address_spec.py +++ b/kubernetes/client/models/v1beta1_composite_gang_scheduling_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,9 +18,8 @@ import json from collections.abc import Mapping as _Mapping -from pydantic import AliasChoices, BaseModel, ConfigDict, Field +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, cast as _cast -from kubernetes.client.models.v1beta1_parent_reference import V1beta1ParentReference from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -94,9 +93,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1beta1IPAddressSpec(BaseModel): +class V1beta1CompositeGangSchedulingPolicy(BaseModel): """ - IPAddressSpec describe the attributes in an IP Address. + CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics. Attributes: openapi_types (dict): The key is attribute name @@ -104,15 +103,15 @@ class V1beta1IPAddressSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - parent_ref: V1beta1ParentReference = Field(validation_alias=AliasChoices("parentRef", "parent_ref"), serialization_alias="parentRef") + min_group_count: StrictInt = Field(validation_alias=AliasChoices("minGroupCount", "min_group_count"), serialization_alias="minGroupCount", description="minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.") openapi_types: ClassVar[Dict[str, str]] = { - "parent_ref": "V1beta1ParentReference" + "min_group_count": "int" } attribute_map: ClassVar[Dict[str, str]] = { - "parent_ref": "parentRef" + "min_group_count": "minGroupCount" } - __properties: ClassVar[List[str]] = ["parentRef"] + __properties: ClassVar[List[str]] = ["minGroupCount"] @classmethod def __preprocess_input_names( @@ -123,9 +122,9 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) - if "parentRef" not in obj and "parent_ref" in obj: - obj["parentRef"] = obj["parent_ref"] - obj.pop("parent_ref", None) + if "minGroupCount" not in obj and "min_group_count" in obj: + obj["minGroupCount"] = obj["min_group_count"] + obj.pop("min_group_count", None) return obj model_config = ConfigDict( @@ -147,14 +146,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1beta1IPAddressSpec): + if not isinstance(other, V1beta1CompositeGangSchedulingPolicy): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1IPAddressSpec): + if not isinstance(other, V1beta1CompositeGangSchedulingPolicy): return True return not (self == other) @@ -169,13 +168,13 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1IPAddressSpec from a JSON string""" + """Create an instance of V1beta1CompositeGangSchedulingPolicy from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { - ("parentRef" if serialize else "parent_ref"): _to_legacy_value(getattr(self, "parent_ref", None), serialize), + ("minGroupCount" if serialize else "min_group_count"): _to_legacy_value(getattr(self, "min_group_count", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -196,9 +195,6 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of parent_ref - if self.parent_ref: - _dict['parentRef'] = _to_openapi_value(self.parent_ref) return _dict setattr( @@ -215,7 +211,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1IPAddressSpec from a dict""" + """Create an instance of V1beta1CompositeGangSchedulingPolicy from a dict""" if obj is None: return None @@ -231,6 +227,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ - "parentRef": V1beta1ParentReference.from_dict(obj["parentRef"]) if obj.get("parentRef") is not None else None + "minGroupCount": obj.get("minGroupCount") }) return _obj diff --git a/kubernetes/client/models/v1beta1_composite_pod_group_scheduling_constraints.py b/kubernetes/client/models/v1beta1_composite_pod_group_scheduling_constraints.py new file mode 100644 index 0000000000..6f9179a4aa --- /dev/null +++ b/kubernetes/client/models/v1beta1_composite_pod_group_scheduling_constraints.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.client.models.v1beta1_topology_constraint import V1beta1TopologyConstraint +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1CompositePodGroupSchedulingConstraints(BaseModel): + """ + CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + topology: Optional[List[V1beta1TopologyConstraint]] = Field(default=None, description="topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future.") + openapi_types: ClassVar[Dict[str, str]] = { + "topology": "List[V1beta1TopologyConstraint]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "topology": "topology" + } + __properties: ClassVar[List[str]] = ["topology"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1CompositePodGroupSchedulingConstraints): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1CompositePodGroupSchedulingConstraints): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1CompositePodGroupSchedulingConstraints from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("topology" if serialize else "topology"): _to_legacy_value(getattr(self, "topology", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in topology (list) + _items = [] + if self.topology: + for _item_topology in self.topology: + _items.append(_to_openapi_value(_item_topology) if _item_topology is not None else None) + _dict['topology'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1CompositePodGroupSchedulingConstraints from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "topology": [V1beta1TopologyConstraint.from_dict(_item) for _item in obj["topology"]] if obj.get("topology") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1alpha2_pod_group_scheduling_policy.py b/kubernetes/client/models/v1beta1_composite_pod_group_scheduling_policy.py similarity index 85% rename from kubernetes/client/models/v1alpha2_pod_group_scheduling_policy.py rename to kubernetes/client/models/v1beta1_composite_pod_group_scheduling_policy.py index e8255b434f..d811d806ad 100644 --- a/kubernetes/client/models/v1alpha2_pod_group_scheduling_policy.py +++ b/kubernetes/client/models/v1beta1_composite_pod_group_scheduling_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from kubernetes.client.models.v1alpha2_gang_scheduling_policy import V1alpha2GangSchedulingPolicy +from kubernetes.client.models.v1beta1_composite_gang_scheduling_policy import V1beta1CompositeGangSchedulingPolicy from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -93,9 +93,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1alpha2PodGroupSchedulingPolicy(BaseModel): +class V1beta1CompositePodGroupSchedulingPolicy(BaseModel): """ - PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. + CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set. Attributes: openapi_types (dict): The key is attribute name @@ -103,11 +103,11 @@ class V1alpha2PodGroupSchedulingPolicy(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - basic: Optional[Dict[str, Any]] = Field(default=None, description="Basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior.") - gang: Optional[V1alpha2GangSchedulingPolicy] = None + basic: Optional[Dict[str, Any]] = Field(default=None, description="basic specifies that the groups of this composite group should be scheduled independently. This field is immutable.") + gang: Optional[V1beta1CompositeGangSchedulingPolicy] = None openapi_types: ClassVar[Dict[str, str]] = { "basic": "object", - "gang": "V1alpha2GangSchedulingPolicy" + "gang": "V1beta1CompositeGangSchedulingPolicy" } attribute_map: ClassVar[Dict[str, str]] = { @@ -135,14 +135,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1alpha2PodGroupSchedulingPolicy): + if not isinstance(other, V1beta1CompositePodGroupSchedulingPolicy): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1alpha2PodGroupSchedulingPolicy): + if not isinstance(other, V1beta1CompositePodGroupSchedulingPolicy): return True return not (self == other) @@ -157,7 +157,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupSchedulingPolicy from a JSON string""" + """Create an instance of V1beta1CompositePodGroupSchedulingPolicy from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -204,7 +204,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1alpha2PodGroupSchedulingPolicy from a dict""" + """Create an instance of V1beta1CompositePodGroupSchedulingPolicy from a dict""" if obj is None: return None @@ -213,6 +213,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "basic": obj.get("basic"), - "gang": V1alpha2GangSchedulingPolicy.from_dict(obj["gang"]) if obj.get("gang") is not None else None + "gang": V1beta1CompositeGangSchedulingPolicy.from_dict(obj["gang"]) if obj.get("gang") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1beta1_composite_pod_group_template.py b/kubernetes/client/models/v1beta1_composite_pod_group_template.py new file mode 100644 index 0000000000..61e06ec8e3 --- /dev/null +++ b/kubernetes/client/models/v1beta1_composite_pod_group_template.py @@ -0,0 +1,318 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1beta1_composite_disruption_mode import V1beta1CompositeDisruptionMode +from kubernetes.client.models.v1beta1_composite_pod_group_scheduling_constraints import V1beta1CompositePodGroupSchedulingConstraints +from kubernetes.client.models.v1beta1_composite_pod_group_scheduling_policy import V1beta1CompositePodGroupSchedulingPolicy +from kubernetes.client.models.v1beta1_pod_group_template import V1beta1PodGroupTemplate +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1CompositePodGroupTemplate(BaseModel): + """ + CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + composite_pod_group_templates: Optional[List[V1beta1CompositePodGroupTemplate]] = Field(default=None, validation_alias=AliasChoices("compositePodGroupTemplates", "composite_pod_group_templates"), serialization_alias="compositePodGroupTemplates", description="compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.") + disruption_mode: Optional[V1beta1CompositeDisruptionMode] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="disruptionMode") + name: StrictStr = Field(description="name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required.") + pod_group_templates: Optional[List[V1beta1PodGroupTemplate]] = Field(default=None, validation_alias=AliasChoices("podGroupTemplates", "pod_group_templates"), serialization_alias="podGroupTemplates", description="podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.") + preemption_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preemptionPolicy", "preemption_policy"), serialization_alias="preemptionPolicy", description="preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + priority: Optional[StrictInt] = Field(default=None, description="priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite 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.") + priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="priorityClassName", description="priorityClassName indicates the priority that should be considered when scheduling a composite 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, composite pod groups created from this template will have the priority set to zero. This field is immutable.") + scheduling_constraints: Optional[V1beta1CompositePodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") + scheduling_policy: V1beta1CompositePodGroupSchedulingPolicy = Field(validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") + openapi_types: ClassVar[Dict[str, str]] = { + "composite_pod_group_templates": "List[V1beta1CompositePodGroupTemplate]", + "disruption_mode": "V1beta1CompositeDisruptionMode", + "name": "str", + "pod_group_templates": "List[V1beta1PodGroupTemplate]", + "preemption_policy": "str", + "priority": "int", + "priority_class_name": "str", + "scheduling_constraints": "V1beta1CompositePodGroupSchedulingConstraints", + "scheduling_policy": "V1beta1CompositePodGroupSchedulingPolicy" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "composite_pod_group_templates": "compositePodGroupTemplates", + "disruption_mode": "disruptionMode", + "name": "name", + "pod_group_templates": "podGroupTemplates", + "preemption_policy": "preemptionPolicy", + "priority": "priority", + "priority_class_name": "priorityClassName", + "scheduling_constraints": "schedulingConstraints", + "scheduling_policy": "schedulingPolicy" + } + __properties: ClassVar[List[str]] = ["compositePodGroupTemplates", "disruptionMode", "name", "podGroupTemplates", "preemptionPolicy", "priority", "priorityClassName", "schedulingConstraints", "schedulingPolicy"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "compositePodGroupTemplates" not in obj and "composite_pod_group_templates" in obj: + obj["compositePodGroupTemplates"] = obj["composite_pod_group_templates"] + obj.pop("composite_pod_group_templates", None) + if "disruptionMode" not in obj and "disruption_mode" in obj: + obj["disruptionMode"] = obj["disruption_mode"] + obj.pop("disruption_mode", None) + if "podGroupTemplates" not in obj and "pod_group_templates" in obj: + obj["podGroupTemplates"] = obj["pod_group_templates"] + obj.pop("pod_group_templates", None) + if "preemptionPolicy" not in obj and "preemption_policy" in obj: + obj["preemptionPolicy"] = obj["preemption_policy"] + obj.pop("preemption_policy", None) + if "priorityClassName" not in obj and "priority_class_name" in obj: + obj["priorityClassName"] = obj["priority_class_name"] + obj.pop("priority_class_name", None) + if "schedulingConstraints" not in obj and "scheduling_constraints" in obj: + obj["schedulingConstraints"] = obj["scheduling_constraints"] + obj.pop("scheduling_constraints", None) + if "schedulingPolicy" not in obj and "scheduling_policy" in obj: + obj["schedulingPolicy"] = obj["scheduling_policy"] + obj.pop("scheduling_policy", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1CompositePodGroupTemplate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1CompositePodGroupTemplate): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1CompositePodGroupTemplate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("compositePodGroupTemplates" if serialize else "composite_pod_group_templates"): _to_legacy_value(getattr(self, "composite_pod_group_templates", None), serialize), + ("disruptionMode" if serialize else "disruption_mode"): _to_legacy_value(getattr(self, "disruption_mode", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("podGroupTemplates" if serialize else "pod_group_templates"): _to_legacy_value(getattr(self, "pod_group_templates", None), serialize), + ("preemptionPolicy" if serialize else "preemption_policy"): _to_legacy_value(getattr(self, "preemption_policy", None), serialize), + ("priority" if serialize else "priority"): _to_legacy_value(getattr(self, "priority", None), serialize), + ("priorityClassName" if serialize else "priority_class_name"): _to_legacy_value(getattr(self, "priority_class_name", None), serialize), + ("schedulingConstraints" if serialize else "scheduling_constraints"): _to_legacy_value(getattr(self, "scheduling_constraints", None), serialize), + ("schedulingPolicy" if serialize else "scheduling_policy"): _to_legacy_value(getattr(self, "scheduling_policy", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in composite_pod_group_templates (list) + _items = [] + if self.composite_pod_group_templates: + for _item_composite_pod_group_templates in self.composite_pod_group_templates: + _items.append(_to_openapi_value(_item_composite_pod_group_templates) if _item_composite_pod_group_templates is not None else None) + _dict['compositePodGroupTemplates'] = _items + # override the default output from pydantic by calling `to_dict()` of disruption_mode + if self.disruption_mode: + _dict['disruptionMode'] = _to_openapi_value(self.disruption_mode) + # override the default output from pydantic by calling `to_dict()` of each item in pod_group_templates (list) + _items = [] + if self.pod_group_templates: + for _item_pod_group_templates in self.pod_group_templates: + _items.append(_to_openapi_value(_item_pod_group_templates) if _item_pod_group_templates is not None else None) + _dict['podGroupTemplates'] = _items + # override the default output from pydantic by calling `to_dict()` of scheduling_constraints + if self.scheduling_constraints: + _dict['schedulingConstraints'] = _to_openapi_value(self.scheduling_constraints) + # override the default output from pydantic by calling `to_dict()` of scheduling_policy + if self.scheduling_policy: + _dict['schedulingPolicy'] = _to_openapi_value(self.scheduling_policy) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1CompositePodGroupTemplate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "compositePodGroupTemplates": [V1beta1CompositePodGroupTemplate.from_dict(_item) for _item in obj["compositePodGroupTemplates"]] if obj.get("compositePodGroupTemplates") is not None else None, + "disruptionMode": V1beta1CompositeDisruptionMode.from_dict(obj["disruptionMode"]) if obj.get("disruptionMode") is not None else None, + "name": obj.get("name"), + "podGroupTemplates": [V1beta1PodGroupTemplate.from_dict(_item) for _item in obj["podGroupTemplates"]] if obj.get("podGroupTemplates") is not None else None, + "preemptionPolicy": obj.get("preemptionPolicy"), + "priority": obj.get("priority"), + "priorityClassName": obj.get("priorityClassName"), + "schedulingConstraints": V1beta1CompositePodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, + "schedulingPolicy": V1beta1CompositePodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None + }) + return _obj + +# TODO: Rewrite to not use raise_errors +V1beta1CompositePodGroupTemplate.model_rebuild(raise_errors=False) diff --git a/kubernetes/client/models/v1beta1_counter.py b/kubernetes/client/models/v1beta1_counter.py index 336bf7e538..8c84101fbb 100644 --- a/kubernetes/client/models/v1beta1_counter.py +++ b/kubernetes/client/models/v1beta1_counter.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_counter_set.py b/kubernetes/client/models/v1beta1_counter_set.py index be223a9ed2..fd7747192b 100644 --- a/kubernetes/client/models/v1beta1_counter_set.py +++ b/kubernetes/client/models/v1beta1_counter_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_device.py b/kubernetes/client/models/v1beta1_device.py index 511c6cc340..44c8fbc88c 100644 --- a/kubernetes/client/models/v1beta1_device.py +++ b/kubernetes/client/models/v1beta1_device.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_device_allocation_configuration.py b/kubernetes/client/models/v1beta1_device_allocation_configuration.py index 36b5f3a4e8..6277425321 100644 --- a/kubernetes/client/models/v1beta1_device_allocation_configuration.py +++ b/kubernetes/client/models/v1beta1_device_allocation_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_device_allocation_result.py b/kubernetes/client/models/v1beta1_device_allocation_result.py index f12e7eb2c6..e03b28f044 100644 --- a/kubernetes/client/models/v1beta1_device_allocation_result.py +++ b/kubernetes/client/models/v1beta1_device_allocation_result.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_device_attribute.py b/kubernetes/client/models/v1beta1_device_attribute.py index 02e6fd9e42..1bdd422644 100644 --- a/kubernetes/client/models/v1beta1_device_attribute.py +++ b/kubernetes/client/models/v1beta1_device_attribute.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_device_capacity.py b/kubernetes/client/models/v1beta1_device_capacity.py index 93f723aa71..aec4fdadf5 100644 --- a/kubernetes/client/models/v1beta1_device_capacity.py +++ b/kubernetes/client/models/v1beta1_device_capacity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_device_claim.py b/kubernetes/client/models/v1beta1_device_claim.py index 6a1a8f50d8..c15fa7875b 100644 --- a/kubernetes/client/models/v1beta1_device_claim.py +++ b/kubernetes/client/models/v1beta1_device_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_device_claim_configuration.py b/kubernetes/client/models/v1beta1_device_claim_configuration.py index 9a3f8c6114..11ba44e2e1 100644 --- a/kubernetes/client/models/v1beta1_device_claim_configuration.py +++ b/kubernetes/client/models/v1beta1_device_claim_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_device_class.py b/kubernetes/client/models/v1beta1_device_class.py index 5f09e0d8f8..18bf680964 100644 --- a/kubernetes/client/models/v1beta1_device_class.py +++ b/kubernetes/client/models/v1beta1_device_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,7 +108,7 @@ class V1beta1DeviceClass(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1beta1DeviceClassSpec + spec: Optional[V1beta1DeviceClassSpec] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", diff --git a/kubernetes/client/models/v1beta1_device_class_configuration.py b/kubernetes/client/models/v1beta1_device_class_configuration.py index c315be56fe..5fe1578b9f 100644 --- a/kubernetes/client/models/v1beta1_device_class_configuration.py +++ b/kubernetes/client/models/v1beta1_device_class_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_device_class_list.py b/kubernetes/client/models/v1beta1_device_class_list.py index a42f37e8bf..5e6471c55f 100644 --- a/kubernetes/client/models/v1beta1_device_class_list.py +++ b/kubernetes/client/models/v1beta1_device_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_device_class_spec.py b/kubernetes/client/models/v1beta1_device_class_spec.py index f6e6c5770d..7e1fc138b3 100644 --- a/kubernetes/client/models/v1beta1_device_class_spec.py +++ b/kubernetes/client/models/v1beta1_device_class_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -106,7 +106,7 @@ class V1beta1DeviceClassSpec(BaseModel): and the value is json key in definition. """ # noqa: E501 config: Optional[List[V1beta1DeviceClassConfiguration]] = Field(default=None, description="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.") - extended_resource_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("extendedResourceName", "extended_resource_name"), serialization_alias="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. This is a beta field.") + extended_resource_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("extendedResourceName", "extended_resource_name"), serialization_alias="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.") selectors: Optional[List[V1beta1DeviceSelector]] = Field(default=None, description="Each selector must be satisfied by a device which is claimed via this class.") openapi_types: ClassVar[Dict[str, str]] = { "config": "List[V1beta1DeviceClassConfiguration]", diff --git a/kubernetes/client/models/v1beta1_device_constraint.py b/kubernetes/client/models/v1beta1_device_constraint.py index 9f4adee8f1..c5a0ca77e5 100644 --- a/kubernetes/client/models/v1beta1_device_constraint.py +++ b/kubernetes/client/models/v1beta1_device_constraint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_device_counter_consumption.py b/kubernetes/client/models/v1beta1_device_counter_consumption.py index f62e32a48d..50a22247ba 100644 --- a/kubernetes/client/models/v1beta1_device_counter_consumption.py +++ b/kubernetes/client/models/v1beta1_device_counter_consumption.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, cast as _cast +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1beta1_counter import V1beta1Counter from typing import Optional, Set from typing_extensions import Self @@ -104,18 +104,21 @@ class V1beta1DeviceCounterConsumption(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 + compatibility_groups: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("compatibilityGroups", "compatibility_groups"), serialization_alias="compatibilityGroups", description="CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique.") counter_set: StrictStr = Field(validation_alias=AliasChoices("counterSet", "counter_set"), serialization_alias="counterSet", description="CounterSet is the name of the set from which the counters defined will be consumed.") counters: Dict[str, V1beta1Counter] = Field(description="Counters defines the counters that will be consumed by the device. The maximum number of counters is 32.") openapi_types: ClassVar[Dict[str, str]] = { + "compatibility_groups": "List[str]", "counter_set": "str", "counters": "Dict[str, V1beta1Counter]" } attribute_map: ClassVar[Dict[str, str]] = { + "compatibility_groups": "compatibilityGroups", "counter_set": "counterSet", "counters": "counters" } - __properties: ClassVar[List[str]] = ["counterSet", "counters"] + __properties: ClassVar[List[str]] = ["compatibilityGroups", "counterSet", "counters"] @classmethod def __preprocess_input_names( @@ -126,6 +129,9 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) + if "compatibilityGroups" not in obj and "compatibility_groups" in obj: + obj["compatibilityGroups"] = obj["compatibility_groups"] + obj.pop("compatibility_groups", None) if "counterSet" not in obj and "counter_set" in obj: obj["counterSet"] = obj["counter_set"] obj.pop("counter_set", None) @@ -178,6 +184,7 @@ def from_json(cls, json_str: str) -> Optional[Self]: def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { + ("compatibilityGroups" if serialize else "compatibility_groups"): _to_legacy_value(getattr(self, "compatibility_groups", None), serialize), ("counterSet" if serialize else "counter_set"): _to_legacy_value(getattr(self, "counter_set", None), serialize), ("counters" if serialize else "counters"): _to_legacy_value(getattr(self, "counters", None), serialize), } @@ -238,6 +245,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ + "compatibilityGroups": obj.get("compatibilityGroups"), "counterSet": obj.get("counterSet"), "counters": dict( (_k, V1beta1Counter.from_dict(_v)) diff --git a/kubernetes/client/models/v1beta1_device_derived_attribute.py b/kubernetes/client/models/v1beta1_device_derived_attribute.py new file mode 100644 index 0000000000..dc624e45ce --- /dev/null +++ b/kubernetes/client/models/v1beta1_device_derived_attribute.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1DeviceDerivedAttribute(BaseModel): + """ + DeviceDerivedAttribute defines a derived attribute computed via CEL. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + expression: StrictStr = Field(description="Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.") + name: StrictStr = Field(description="Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint.") + openapi_types: ClassVar[Dict[str, str]] = { + "expression": "str", + "name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "expression": "expression", + "name": "name" + } + __properties: ClassVar[List[str]] = ["expression", "name"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1DeviceDerivedAttribute): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1DeviceDerivedAttribute): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1DeviceDerivedAttribute from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("expression" if serialize else "expression"): _to_legacy_value(getattr(self, "expression", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1DeviceDerivedAttribute from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "expression": obj.get("expression"), + "name": obj.get("name") + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_device_request.py b/kubernetes/client/models/v1beta1_device_request.py index d3ec4a8933..f28ecb7a52 100644 --- a/kubernetes/client/models/v1beta1_device_request.py +++ b/kubernetes/client/models/v1beta1_device_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1beta1_capacity_requirements import V1beta1CapacityRequirements +from kubernetes.client.models.v1beta1_device_derived_attribute import V1beta1DeviceDerivedAttribute from kubernetes.client.models.v1beta1_device_selector import V1beta1DeviceSelector from kubernetes.client.models.v1beta1_device_sub_request import V1beta1DeviceSubRequest from kubernetes.client.models.v1beta1_device_toleration import V1beta1DeviceToleration @@ -111,6 +112,7 @@ class V1beta1DeviceRequest(BaseModel): allocation_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("allocationMode", "allocation_mode"), serialization_alias="allocationMode", description="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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. More modes may get added in the future. Clients must refuse to handle requests with unknown modes.") capacity: Optional[V1beta1CapacityRequirements] = None count: Optional[StrictInt] = Field(default=None, description="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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.") + derived_attributes: Optional[List[V1beta1DeviceDerivedAttribute]] = Field(default=None, validation_alias=AliasChoices("derivedAttributes", "derived_attributes"), serialization_alias="derivedAttributes", description="DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate.") device_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("deviceClassName", "device_class_name"), serialization_alias="deviceClassName", description="DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. 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.") first_available: Optional[List[V1beta1DeviceSubRequest]] = Field(default=None, validation_alias=AliasChoices("firstAvailable", "first_available"), serialization_alias="firstAvailable", description="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.") name: StrictStr = Field(description="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.") @@ -121,6 +123,7 @@ class V1beta1DeviceRequest(BaseModel): "allocation_mode": "str", "capacity": "V1beta1CapacityRequirements", "count": "int", + "derived_attributes": "List[V1beta1DeviceDerivedAttribute]", "device_class_name": "str", "first_available": "List[V1beta1DeviceSubRequest]", "name": "str", @@ -133,13 +136,14 @@ class V1beta1DeviceRequest(BaseModel): "allocation_mode": "allocationMode", "capacity": "capacity", "count": "count", + "derived_attributes": "derivedAttributes", "device_class_name": "deviceClassName", "first_available": "firstAvailable", "name": "name", "selectors": "selectors", "tolerations": "tolerations" } - __properties: ClassVar[List[str]] = ["adminAccess", "allocationMode", "capacity", "count", "deviceClassName", "firstAvailable", "name", "selectors", "tolerations"] + __properties: ClassVar[List[str]] = ["adminAccess", "allocationMode", "capacity", "count", "derivedAttributes", "deviceClassName", "firstAvailable", "name", "selectors", "tolerations"] @classmethod def __preprocess_input_names( @@ -156,6 +160,9 @@ def __preprocess_input_names( if "allocationMode" not in obj and "allocation_mode" in obj: obj["allocationMode"] = obj["allocation_mode"] obj.pop("allocation_mode", None) + if "derivedAttributes" not in obj and "derived_attributes" in obj: + obj["derivedAttributes"] = obj["derived_attributes"] + obj.pop("derived_attributes", None) if "deviceClassName" not in obj and "device_class_name" in obj: obj["deviceClassName"] = obj["device_class_name"] obj.pop("device_class_name", None) @@ -215,6 +222,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("allocationMode" if serialize else "allocation_mode"): _to_legacy_value(getattr(self, "allocation_mode", None), serialize), ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("count" if serialize else "count"): _to_legacy_value(getattr(self, "count", None), serialize), + ("derivedAttributes" if serialize else "derived_attributes"): _to_legacy_value(getattr(self, "derived_attributes", None), serialize), ("deviceClassName" if serialize else "device_class_name"): _to_legacy_value(getattr(self, "device_class_name", None), serialize), ("firstAvailable" if serialize else "first_available"): _to_legacy_value(getattr(self, "first_available", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), @@ -243,6 +251,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of capacity if self.capacity: _dict['capacity'] = _to_openapi_value(self.capacity) + # override the default output from pydantic by calling `to_dict()` of each item in derived_attributes (list) + _items = [] + if self.derived_attributes: + for _item_derived_attributes in self.derived_attributes: + _items.append(_to_openapi_value(_item_derived_attributes) if _item_derived_attributes is not None else None) + _dict['derivedAttributes'] = _items # override the default output from pydantic by calling `to_dict()` of each item in first_available (list) _items = [] if self.first_available: @@ -297,6 +311,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "allocationMode": obj.get("allocationMode"), "capacity": V1beta1CapacityRequirements.from_dict(obj["capacity"]) if obj.get("capacity") is not None else None, "count": obj.get("count"), + "derivedAttributes": [V1beta1DeviceDerivedAttribute.from_dict(_item) for _item in obj["derivedAttributes"]] if obj.get("derivedAttributes") is not None else None, "deviceClassName": obj.get("deviceClassName"), "firstAvailable": [V1beta1DeviceSubRequest.from_dict(_item) for _item in obj["firstAvailable"]] if obj.get("firstAvailable") is not None else None, "name": obj.get("name"), diff --git a/kubernetes/client/models/v1beta1_device_request_allocation_result.py b/kubernetes/client/models/v1beta1_device_request_allocation_result.py index 9d7efcef2a..80542bd28d 100644 --- a/kubernetes/client/models/v1beta1_device_request_allocation_result.py +++ b/kubernetes/client/models/v1beta1_device_request_allocation_result.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -113,6 +113,7 @@ class V1beta1DeviceRequestAllocationResult(BaseModel): pool: StrictStr = Field(description="This name together with the driver name and the device name field identify which device was allocated (`//`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.") request: StrictStr = Field(description="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
/. Multiple devices may have been allocated per request.") share_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("shareID", "share_id"), serialization_alias="shareID", description="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.") + skip_node_operations: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("skipNodeOperations", "skip_node_operations"), serialization_alias="skipNodeOperations", description="SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.") tolerations: Optional[List[V1beta1DeviceToleration]] = Field(default=None, description="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.") openapi_types: ClassVar[Dict[str, str]] = { "admin_access": "bool", @@ -124,6 +125,7 @@ class V1beta1DeviceRequestAllocationResult(BaseModel): "pool": "str", "request": "str", "share_id": "str", + "skip_node_operations": "List[str]", "tolerations": "List[V1beta1DeviceToleration]" } @@ -137,9 +139,10 @@ class V1beta1DeviceRequestAllocationResult(BaseModel): "pool": "pool", "request": "request", "share_id": "shareID", + "skip_node_operations": "skipNodeOperations", "tolerations": "tolerations" } - __properties: ClassVar[List[str]] = ["adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "tolerations"] + __properties: ClassVar[List[str]] = ["adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "skipNodeOperations", "tolerations"] @classmethod def __preprocess_input_names( @@ -165,6 +168,9 @@ def __preprocess_input_names( if "shareID" not in obj and "share_id" in obj: obj["shareID"] = obj["share_id"] obj.pop("share_id", None) + if "skipNodeOperations" not in obj and "skip_node_operations" in obj: + obj["skipNodeOperations"] = obj["skip_node_operations"] + obj.pop("skip_node_operations", None) return obj model_config = ConfigDict( @@ -223,6 +229,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("pool" if serialize else "pool"): _to_legacy_value(getattr(self, "pool", None), serialize), ("request" if serialize else "request"): _to_legacy_value(getattr(self, "request", None), serialize), ("shareID" if serialize else "share_id"): _to_legacy_value(getattr(self, "share_id", None), serialize), + ("skipNodeOperations" if serialize else "skip_node_operations"): _to_legacy_value(getattr(self, "skip_node_operations", None), serialize), ("tolerations" if serialize else "tolerations"): _to_legacy_value(getattr(self, "tolerations", None), serialize), } @@ -291,6 +298,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "pool": obj.get("pool"), "request": obj.get("request"), "shareID": obj.get("shareID"), + "skipNodeOperations": obj.get("skipNodeOperations"), "tolerations": [V1beta1DeviceToleration.from_dict(_item) for _item in obj["tolerations"]] if obj.get("tolerations") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1beta1_device_selector.py b/kubernetes/client/models/v1beta1_device_selector.py index e2ca557426..fb6693f314 100644 --- a/kubernetes/client/models/v1beta1_device_selector.py +++ b/kubernetes/client/models/v1beta1_device_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_device_sub_request.py b/kubernetes/client/models/v1beta1_device_sub_request.py index 3f40459dbe..79347c3954 100644 --- a/kubernetes/client/models/v1beta1_device_sub_request.py +++ b/kubernetes/client/models/v1beta1_device_sub_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1beta1_capacity_requirements import V1beta1CapacityRequirements +from kubernetes.client.models.v1beta1_device_derived_attribute import V1beta1DeviceDerivedAttribute from kubernetes.client.models.v1beta1_device_selector import V1beta1DeviceSelector from kubernetes.client.models.v1beta1_device_toleration import V1beta1DeviceToleration from typing import Optional, Set @@ -109,6 +110,7 @@ class V1beta1DeviceSubRequest(BaseModel): allocation_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("allocationMode", "allocation_mode"), serialization_alias="allocationMode", description="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.") capacity: Optional[V1beta1CapacityRequirements] = None count: Optional[StrictInt] = Field(default=None, description="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.") + derived_attributes: Optional[List[V1beta1DeviceDerivedAttribute]] = Field(default=None, validation_alias=AliasChoices("derivedAttributes", "derived_attributes"), serialization_alias="derivedAttributes", description="DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate.") device_class_name: StrictStr = Field(validation_alias=AliasChoices("deviceClassName", "device_class_name"), serialization_alias="deviceClassName", description="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: StrictStr = Field(description="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
/. Must be a DNS label.") selectors: Optional[List[V1beta1DeviceSelector]] = Field(default=None, description="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.") @@ -117,6 +119,7 @@ class V1beta1DeviceSubRequest(BaseModel): "allocation_mode": "str", "capacity": "V1beta1CapacityRequirements", "count": "int", + "derived_attributes": "List[V1beta1DeviceDerivedAttribute]", "device_class_name": "str", "name": "str", "selectors": "List[V1beta1DeviceSelector]", @@ -127,12 +130,13 @@ class V1beta1DeviceSubRequest(BaseModel): "allocation_mode": "allocationMode", "capacity": "capacity", "count": "count", + "derived_attributes": "derivedAttributes", "device_class_name": "deviceClassName", "name": "name", "selectors": "selectors", "tolerations": "tolerations" } - __properties: ClassVar[List[str]] = ["allocationMode", "capacity", "count", "deviceClassName", "name", "selectors", "tolerations"] + __properties: ClassVar[List[str]] = ["allocationMode", "capacity", "count", "derivedAttributes", "deviceClassName", "name", "selectors", "tolerations"] @classmethod def __preprocess_input_names( @@ -146,6 +150,9 @@ def __preprocess_input_names( if "allocationMode" not in obj and "allocation_mode" in obj: obj["allocationMode"] = obj["allocation_mode"] obj.pop("allocation_mode", None) + if "derivedAttributes" not in obj and "derived_attributes" in obj: + obj["derivedAttributes"] = obj["derived_attributes"] + obj.pop("derived_attributes", None) if "deviceClassName" not in obj and "device_class_name" in obj: obj["deviceClassName"] = obj["device_class_name"] obj.pop("device_class_name", None) @@ -201,6 +208,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("allocationMode" if serialize else "allocation_mode"): _to_legacy_value(getattr(self, "allocation_mode", None), serialize), ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("count" if serialize else "count"): _to_legacy_value(getattr(self, "count", None), serialize), + ("derivedAttributes" if serialize else "derived_attributes"): _to_legacy_value(getattr(self, "derived_attributes", None), serialize), ("deviceClassName" if serialize else "device_class_name"): _to_legacy_value(getattr(self, "device_class_name", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), ("selectors" if serialize else "selectors"): _to_legacy_value(getattr(self, "selectors", None), serialize), @@ -228,6 +236,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of capacity if self.capacity: _dict['capacity'] = _to_openapi_value(self.capacity) + # override the default output from pydantic by calling `to_dict()` of each item in derived_attributes (list) + _items = [] + if self.derived_attributes: + for _item_derived_attributes in self.derived_attributes: + _items.append(_to_openapi_value(_item_derived_attributes) if _item_derived_attributes is not None else None) + _dict['derivedAttributes'] = _items # override the default output from pydantic by calling `to_dict()` of each item in selectors (list) _items = [] if self.selectors: @@ -275,6 +289,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "allocationMode": obj.get("allocationMode"), "capacity": V1beta1CapacityRequirements.from_dict(obj["capacity"]) if obj.get("capacity") is not None else None, "count": obj.get("count"), + "derivedAttributes": [V1beta1DeviceDerivedAttribute.from_dict(_item) for _item in obj["derivedAttributes"]] if obj.get("derivedAttributes") is not None else None, "deviceClassName": obj.get("deviceClassName"), "name": obj.get("name"), "selectors": [V1beta1DeviceSelector.from_dict(_item) for _item in obj["selectors"]] if obj.get("selectors") is not None else None, diff --git a/kubernetes/client/models/v1beta1_device_taint.py b/kubernetes/client/models/v1beta1_device_taint.py index d2ea8cf079..6fdc0e16ec 100644 --- a/kubernetes/client/models/v1beta1_device_taint.py +++ b/kubernetes/client/models/v1beta1_device_taint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_device_toleration.py b/kubernetes/client/models/v1beta1_device_toleration.py index 92e8e3fb54..1e7c1a5003 100644 --- a/kubernetes/client/models/v1beta1_device_toleration.py +++ b/kubernetes/client/models/v1beta1_device_toleration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_disruption_mode.py b/kubernetes/client/models/v1beta1_disruption_mode.py new file mode 100644 index 0000000000..a396c7971a --- /dev/null +++ b/kubernetes/client/models/v1beta1_disruption_mode.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1DisruptionMode(BaseModel): + """ + DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + all: Optional[Dict[str, Any]] = Field(default=None, description="all specifies that all children can only be disrupted together.") + single: Optional[Dict[str, Any]] = Field(default=None, description="single specifies that children can be disrupted independently from each other.") + openapi_types: ClassVar[Dict[str, str]] = { + "all": "object", + "single": "object" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "all": "all", + "single": "single" + } + __properties: ClassVar[List[str]] = ["all", "single"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1DisruptionMode): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1DisruptionMode): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1DisruptionMode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("all" if serialize else "all"): _to_legacy_value(getattr(self, "all", None), serialize), + ("single" if serialize else "single"): _to_legacy_value(getattr(self, "single", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1DisruptionMode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "all": obj.get("all"), + "single": obj.get("single") + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_gang_scheduling_policy.py b/kubernetes/client/models/v1beta1_gang_scheduling_policy.py new file mode 100644 index 0000000000..bdb153abe0 --- /dev/null +++ b/kubernetes/client/models/v1beta1_gang_scheduling_policy.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1GangSchedulingPolicy(BaseModel): + """ + GangSchedulingPolicy defines the parameters for gang scheduling. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + min_count: StrictInt = Field(validation_alias=AliasChoices("minCount", "min_count"), serialization_alias="minCount", description="minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling. Note that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles.") + openapi_types: ClassVar[Dict[str, str]] = { + "min_count": "int" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "min_count": "minCount" + } + __properties: ClassVar[List[str]] = ["minCount"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "minCount" not in obj and "min_count" in obj: + obj["minCount"] = obj["min_count"] + obj.pop("min_count", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1GangSchedulingPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1GangSchedulingPolicy): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1GangSchedulingPolicy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("minCount" if serialize else "min_count"): _to_legacy_value(getattr(self, "min_count", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1GangSchedulingPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "minCount": obj.get("minCount") + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_json_patch.py b/kubernetes/client/models/v1beta1_json_patch.py index e71a9d78b0..bf23cd7e21 100644 --- a/kubernetes/client/models/v1beta1_json_patch.py +++ b/kubernetes/client/models/v1beta1_json_patch.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_lease_candidate.py b/kubernetes/client/models/v1beta1_lease_candidate.py index 807a4cbba1..d0cd4a38ad 100644 --- a/kubernetes/client/models/v1beta1_lease_candidate.py +++ b/kubernetes/client/models/v1beta1_lease_candidate.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_lease_candidate_list.py b/kubernetes/client/models/v1beta1_lease_candidate_list.py index a3c79803bc..ea7d6060e4 100644 --- a/kubernetes/client/models/v1beta1_lease_candidate_list.py +++ b/kubernetes/client/models/v1beta1_lease_candidate_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_lease_candidate_spec.py b/kubernetes/client/models/v1beta1_lease_candidate_spec.py index 1aced3570c..deff7e1e97 100644 --- a/kubernetes/client/models/v1beta1_lease_candidate_spec.py +++ b/kubernetes/client/models/v1beta1_lease_candidate_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -104,12 +104,12 @@ class V1beta1LeaseCandidateSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - binary_version: StrictStr = Field(validation_alias=AliasChoices("binaryVersion", "binary_version"), serialization_alias="binaryVersion", description="BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.") - emulation_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("emulationVersion", "emulation_version"), serialization_alias="emulationVersion", description="EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"") - lease_name: StrictStr = Field(validation_alias=AliasChoices("leaseName", "lease_name"), serialization_alias="leaseName", description="LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.") - ping_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("pingTime", "ping_time"), serialization_alias="pingTime", description="PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.") - renew_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("renewTime", "renew_time"), serialization_alias="renewTime", description="RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.") - strategy: StrictStr = Field(description="Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.") + binary_version: StrictStr = Field(validation_alias=AliasChoices("binaryVersion", "binary_version"), serialization_alias="binaryVersion", description="binaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.") + emulation_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("emulationVersion", "emulation_version"), serialization_alias="emulationVersion", description="emulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"") + lease_name: StrictStr = Field(validation_alias=AliasChoices("leaseName", "lease_name"), serialization_alias="leaseName", description="leaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.") + ping_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("pingTime", "ping_time"), serialization_alias="pingTime", description="pingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.") + renew_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("renewTime", "renew_time"), serialization_alias="renewTime", description="renewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.") + strategy: StrictStr = Field(description="strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.") openapi_types: ClassVar[Dict[str, str]] = { "binary_version": "str", "emulation_version": "str", diff --git a/kubernetes/client/models/v1beta1_match_condition.py b/kubernetes/client/models/v1beta1_match_condition.py index e0df6a1c6a..41a83a76e0 100644 --- a/kubernetes/client/models/v1beta1_match_condition.py +++ b/kubernetes/client/models/v1beta1_match_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_match_resources.py b/kubernetes/client/models/v1beta1_match_resources.py index 85e2307a79..5c4dcf7abc 100644 --- a/kubernetes/client/models/v1beta1_match_resources.py +++ b/kubernetes/client/models/v1beta1_match_resources.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_mutating_admission_policy.py b/kubernetes/client/models/v1beta1_mutating_admission_policy.py index 9571a86e12..a80983db48 100644 --- a/kubernetes/client/models/v1beta1_mutating_admission_policy.py +++ b/kubernetes/client/models/v1beta1_mutating_admission_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_mutating_admission_policy_binding.py b/kubernetes/client/models/v1beta1_mutating_admission_policy_binding.py index ecc755c0cb..9330bcd3b4 100644 --- a/kubernetes/client/models/v1beta1_mutating_admission_policy_binding.py +++ b/kubernetes/client/models/v1beta1_mutating_admission_policy_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_mutating_admission_policy_binding_list.py b/kubernetes/client/models/v1beta1_mutating_admission_policy_binding_list.py index bb2052475b..7cff8ed2f9 100644 --- a/kubernetes/client/models/v1beta1_mutating_admission_policy_binding_list.py +++ b/kubernetes/client/models/v1beta1_mutating_admission_policy_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_mutating_admission_policy_binding_spec.py b/kubernetes/client/models/v1beta1_mutating_admission_policy_binding_spec.py index f61d7e8bc4..ef6eb20f69 100644 --- a/kubernetes/client/models/v1beta1_mutating_admission_policy_binding_spec.py +++ b/kubernetes/client/models/v1beta1_mutating_admission_policy_binding_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_mutating_admission_policy_list.py b/kubernetes/client/models/v1beta1_mutating_admission_policy_list.py index 3021492c2e..19d0fd7d5b 100644 --- a/kubernetes/client/models/v1beta1_mutating_admission_policy_list.py +++ b/kubernetes/client/models/v1beta1_mutating_admission_policy_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_mutating_admission_policy_spec.py b/kubernetes/client/models/v1beta1_mutating_admission_policy_spec.py index 80a3ae9d8c..35d90b08cf 100644 --- a/kubernetes/client/models/v1beta1_mutating_admission_policy_spec.py +++ b/kubernetes/client/models/v1beta1_mutating_admission_policy_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_mutation.py b/kubernetes/client/models/v1beta1_mutation.py index bf64914c7a..d4677722bf 100644 --- a/kubernetes/client/models/v1beta1_mutation.py +++ b/kubernetes/client/models/v1beta1_mutation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_named_rule_with_operations.py b/kubernetes/client/models/v1beta1_named_rule_with_operations.py index f1132ef631..57ba13d150 100644 --- a/kubernetes/client/models/v1beta1_named_rule_with_operations.py +++ b/kubernetes/client/models/v1beta1_named_rule_with_operations.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_network_device_data.py b/kubernetes/client/models/v1beta1_network_device_data.py index 611033feb8..7e345bb780 100644 --- a/kubernetes/client/models/v1beta1_network_device_data.py +++ b/kubernetes/client/models/v1beta1_network_device_data.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1_node_allocatable_resource_mapping.py b/kubernetes/client/models/v1beta1_node_allocatable_mapping.py similarity index 66% rename from kubernetes/client/models/v1_node_allocatable_resource_mapping.py rename to kubernetes/client/models/v1beta1_node_allocatable_mapping.py index 5530ccd55d..a74fe9a6c4 100644 --- a/kubernetes/client/models/v1_node_allocatable_resource_mapping.py +++ b/kubernetes/client/models/v1beta1_node_allocatable_mapping.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -93,9 +93,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1NodeAllocatableResourceMapping(BaseModel): +class V1beta1NodeAllocatableMapping(BaseModel): """ - NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. + NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices or the specific capacity consumed. These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. Attributes: openapi_types (dict): The key is attribute name @@ -103,18 +103,21 @@ class V1NodeAllocatableResourceMapping(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - allocation_multiplier: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("allocationMultiplier", "allocation_multiplier"), serialization_alias="allocationMultiplier", 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. 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.") - capacity_key: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("capacityKey", "capacity_key"), serialization_alias="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\".") + capacity_key: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("capacityKey", "capacity_key"), serialization_alias="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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.") + capacity_multiplier: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("capacityMultiplier", "capacity_multiplier"), serialization_alias="capacityMultiplier", description="CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16.") + device_multiplier: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("deviceMultiplier", "device_multiplier"), serialization_alias="deviceMultiplier", description="DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set.") openapi_types: ClassVar[Dict[str, str]] = { - "allocation_multiplier": "str", - "capacity_key": "str" + "capacity_key": "str", + "capacity_multiplier": "str", + "device_multiplier": "str" } attribute_map: ClassVar[Dict[str, str]] = { - "allocation_multiplier": "allocationMultiplier", - "capacity_key": "capacityKey" + "capacity_key": "capacityKey", + "capacity_multiplier": "capacityMultiplier", + "device_multiplier": "deviceMultiplier" } - __properties: ClassVar[List[str]] = ["allocationMultiplier", "capacityKey"] + __properties: ClassVar[List[str]] = ["capacityKey", "capacityMultiplier", "deviceMultiplier"] @classmethod def __preprocess_input_names( @@ -125,12 +128,15 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) - if "allocationMultiplier" not in obj and "allocation_multiplier" in obj: - obj["allocationMultiplier"] = obj["allocation_multiplier"] - obj.pop("allocation_multiplier", None) if "capacityKey" not in obj and "capacity_key" in obj: obj["capacityKey"] = obj["capacity_key"] obj.pop("capacity_key", None) + if "capacityMultiplier" not in obj and "capacity_multiplier" in obj: + obj["capacityMultiplier"] = obj["capacity_multiplier"] + obj.pop("capacity_multiplier", None) + if "deviceMultiplier" not in obj and "device_multiplier" in obj: + obj["deviceMultiplier"] = obj["device_multiplier"] + obj.pop("device_multiplier", None) return obj model_config = ConfigDict( @@ -152,14 +158,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1NodeAllocatableResourceMapping): + if not isinstance(other, V1beta1NodeAllocatableMapping): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1NodeAllocatableResourceMapping): + if not isinstance(other, V1beta1NodeAllocatableMapping): return True return not (self == other) @@ -174,14 +180,15 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1NodeAllocatableResourceMapping from a JSON string""" + """Create an instance of V1beta1NodeAllocatableMapping from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { - ("allocationMultiplier" if serialize else "allocation_multiplier"): _to_legacy_value(getattr(self, "allocation_multiplier", None), serialize), ("capacityKey" if serialize else "capacity_key"): _to_legacy_value(getattr(self, "capacity_key", None), serialize), + ("capacityMultiplier" if serialize else "capacity_multiplier"): _to_legacy_value(getattr(self, "capacity_multiplier", None), serialize), + ("deviceMultiplier" if serialize else "device_multiplier"): _to_legacy_value(getattr(self, "device_multiplier", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -218,7 +225,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1NodeAllocatableResourceMapping from a dict""" + """Create an instance of V1beta1NodeAllocatableMapping from a dict""" if obj is None: return None @@ -234,7 +241,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ - "allocationMultiplier": obj.get("allocationMultiplier"), - "capacityKey": obj.get("capacityKey") + "capacityKey": obj.get("capacityKey"), + "capacityMultiplier": obj.get("capacityMultiplier"), + "deviceMultiplier": obj.get("deviceMultiplier") }) return _obj diff --git a/kubernetes/client/models/v1beta1_node_allocatable_overhead.py b/kubernetes/client/models/v1beta1_node_allocatable_overhead.py new file mode 100644 index 0000000000..80fe64b5f1 --- /dev/null +++ b/kubernetes/client/models/v1beta1_node_allocatable_overhead.py @@ -0,0 +1,240 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1NodeAllocatableOverhead(BaseModel): + """ + NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + per_container: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("perContainer", "per_container"), serialization_alias="perContainer", description="PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once.") + per_pod: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("perPod", "per_pod"), serialization_alias="perPod", description="PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim.") + openapi_types: ClassVar[Dict[str, str]] = { + "per_container": "str", + "per_pod": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "per_container": "perContainer", + "per_pod": "perPod" + } + __properties: ClassVar[List[str]] = ["perContainer", "perPod"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "perContainer" not in obj and "per_container" in obj: + obj["perContainer"] = obj["per_container"] + obj.pop("per_container", None) + if "perPod" not in obj and "per_pod" in obj: + obj["perPod"] = obj["per_pod"] + obj.pop("per_pod", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1NodeAllocatableOverhead): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1NodeAllocatableOverhead): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1NodeAllocatableOverhead from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("perContainer" if serialize else "per_container"): _to_legacy_value(getattr(self, "per_container", None), serialize), + ("perPod" if serialize else "per_pod"): _to_legacy_value(getattr(self, "per_pod", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1NodeAllocatableOverhead from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "perContainer": obj.get("perContainer"), + "perPod": obj.get("perPod") + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_node_allocatable_resource.py b/kubernetes/client/models/v1beta1_node_allocatable_resource.py new file mode 100644 index 0000000000..43a7c48d26 --- /dev/null +++ b/kubernetes/client/models/v1beta1_node_allocatable_resource.py @@ -0,0 +1,222 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.client.models.v1beta1_node_allocatable_mapping import V1beta1NodeAllocatableMapping +from kubernetes.client.models.v1beta1_node_allocatable_overhead import V1beta1NodeAllocatableOverhead +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1NodeAllocatableResource(BaseModel): + """ + NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + mapping: Optional[V1beta1NodeAllocatableMapping] = None + overhead: Optional[V1beta1NodeAllocatableOverhead] = None + openapi_types: ClassVar[Dict[str, str]] = { + "mapping": "V1beta1NodeAllocatableMapping", + "overhead": "V1beta1NodeAllocatableOverhead" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "mapping": "mapping", + "overhead": "overhead" + } + __properties: ClassVar[List[str]] = ["mapping", "overhead"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1NodeAllocatableResource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1NodeAllocatableResource): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1NodeAllocatableResource from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("mapping" if serialize else "mapping"): _to_legacy_value(getattr(self, "mapping", None), serialize), + ("overhead" if serialize else "overhead"): _to_legacy_value(getattr(self, "overhead", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of mapping + if self.mapping: + _dict['mapping'] = _to_openapi_value(self.mapping) + # override the default output from pydantic by calling `to_dict()` of overhead + if self.overhead: + _dict['overhead'] = _to_openapi_value(self.overhead) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1NodeAllocatableResource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "mapping": V1beta1NodeAllocatableMapping.from_dict(obj["mapping"]) if obj.get("mapping") is not None else None, + "overhead": V1beta1NodeAllocatableOverhead.from_dict(obj["overhead"]) if obj.get("overhead") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_node_allocatable_resource_mapping.py b/kubernetes/client/models/v1beta1_node_allocatable_resource_mapping.py deleted file mode 100644 index e1563bcc07..0000000000 --- a/kubernetes/client/models/v1beta1_node_allocatable_resource_mapping.py +++ /dev/null @@ -1,240 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: release-1.36 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from collections.abc import Mapping as _Mapping -from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, cast as _cast -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - - -_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" - - -def _get_openapi_to_dict(value: Any) -> Any: - # Reciprocal function references preserve inherited generated methods - # without reserving model member names. Checking both directions also - # rejects overrides whose decorators copy function attributes. - to_dict = getattr(value, "to_dict", None) - type_to_dict = getattr(type(value), "to_dict", None) - if ( - not callable(to_dict) - or getattr(to_dict, "__func__", None) is not type_to_dict - ): - return None - - openapi_to_dict = getattr( - type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None - ) - if ( - not callable(openapi_to_dict) - or getattr( - openapi_to_dict, - _OPENAPI_GENERATOR_TO_DICT, - None, - ) is not type_to_dict - ): - return None - return openapi_to_dict - - -def _to_legacy_item(value: Any, serialize: bool) -> Any: - to_dict = getattr(value, "to_dict", None) - if _get_openapi_to_dict(value) is not None and callable(to_dict): - return to_dict(serialize=serialize) - if callable(to_dict): - return to_dict() - return value - - -def _to_legacy_value(value: Any, serialize: bool) -> Any: - # python-legacy converted only immediate list elements or dictionary values: - # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 - if isinstance(value, list): - return [_to_legacy_item(item, serialize) for item in value] - if isinstance(value, dict): - return { - key: _to_legacy_item(item, serialize) - for key, item in value.items() - } - return _to_legacy_item(value, serialize) - - -def _to_openapi_value(value: Any) -> Any: - if isinstance(value, list): - return [_to_openapi_value(item) for item in value] - if isinstance(value, dict): - return {key: _to_openapi_value(item) for key, item in value.items()} - - to_openapi_dict = _get_openapi_to_dict(value) - if to_openapi_dict is not None: - return to_openapi_dict(value) - - to_dict = getattr(value, "to_dict", None) - if callable(to_dict): - return to_dict() - return value - - -class V1beta1NodeAllocatableResourceMapping(BaseModel): - """ - NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. - - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ # noqa: E501 - allocation_multiplier: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("allocationMultiplier", "allocation_multiplier"), serialization_alias="allocationMultiplier", 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. 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.") - capacity_key: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("capacityKey", "capacity_key"), serialization_alias="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\".") - openapi_types: ClassVar[Dict[str, str]] = { - "allocation_multiplier": "str", - "capacity_key": "str" - } - - attribute_map: ClassVar[Dict[str, str]] = { - "allocation_multiplier": "allocationMultiplier", - "capacity_key": "capacityKey" - } - __properties: ClassVar[List[str]] = ["allocationMultiplier", "capacityKey"] - - @classmethod - def __preprocess_input_names( - cls, - obj: Any, - remove_hidden_storage_names: bool = True, - ) -> Any: - if not isinstance(obj, _Mapping): - return obj - obj = dict(obj) - if "allocationMultiplier" not in obj and "allocation_multiplier" in obj: - obj["allocationMultiplier"] = obj["allocation_multiplier"] - obj.pop("allocation_multiplier", None) - if "capacityKey" not in obj and "capacity_key" in obj: - obj["capacityKey"] = obj["capacity_key"] - obj.pop("capacity_key", None) - return obj - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - extra="forbid", - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self) -> str: - """For print and pprint""" - return self.to_str() - - def __eq__(self, other: object) -> bool: - """Returns true if both objects are equal""" - if not isinstance(other, V1beta1NodeAllocatableResourceMapping): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other: object) -> bool: - """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1NodeAllocatableResourceMapping): - return True - - return not (self == other) - - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - to_openapi_dict = _get_openapi_to_dict(self) - if to_openapi_dict is not None: - return json.dumps(to_jsonable_python(to_openapi_dict(self))) - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1NodeAllocatableResourceMapping from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self, serialize: bool = False) -> Dict[str, Any]: - """Return all declared model fields using public or wire names.""" - return { - ("allocationMultiplier" if serialize else "allocation_multiplier"): _to_legacy_value(getattr(self, "allocation_multiplier", None), serialize), - ("capacityKey" if serialize else "capacity_key"): _to_legacy_value(getattr(self, "capacity_key", None), serialize), - } - - def __openapi_generator_modern_projection(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - setattr( - to_dict, - _OPENAPI_GENERATOR_TO_DICT, - __openapi_generator_modern_projection, - ) - setattr( - __openapi_generator_modern_projection, - _OPENAPI_GENERATOR_TO_DICT, - to_dict, - ) - del __openapi_generator_modern_projection - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1NodeAllocatableResourceMapping from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - obj = _cast( - Dict[str, Any], - cls.__preprocess_input_names( - obj, - remove_hidden_storage_names=True, - ), - ) - - _obj = cls.model_validate({ - "allocationMultiplier": obj.get("allocationMultiplier"), - "capacityKey": obj.get("capacityKey") - }) - return _obj diff --git a/kubernetes/client/models/v1beta1_opaque_device_configuration.py b/kubernetes/client/models/v1beta1_opaque_device_configuration.py index b4ba7a5a3f..b2aaf6d194 100644 --- a/kubernetes/client/models/v1beta1_opaque_device_configuration.py +++ b/kubernetes/client/models/v1beta1_opaque_device_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_param_kind.py b/kubernetes/client/models/v1beta1_param_kind.py index cb788d100e..f69cf31720 100644 --- a/kubernetes/client/models/v1beta1_param_kind.py +++ b/kubernetes/client/models/v1beta1_param_kind.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_param_ref.py b/kubernetes/client/models/v1beta1_param_ref.py index 98636be61a..1de44cb250 100644 --- a/kubernetes/client/models/v1beta1_param_ref.py +++ b/kubernetes/client/models/v1beta1_param_ref.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_pod_certificate_request.py b/kubernetes/client/models/v1beta1_pod_certificate_request.py index 9d4f58d0cf..649a59cebb 100644 --- a/kubernetes/client/models/v1beta1_pod_certificate_request.py +++ b/kubernetes/client/models/v1beta1_pod_certificate_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_pod_certificate_request_list.py b/kubernetes/client/models/v1beta1_pod_certificate_request_list.py index e9ab453e00..b171843c74 100644 --- a/kubernetes/client/models/v1beta1_pod_certificate_request_list.py +++ b/kubernetes/client/models/v1beta1_pod_certificate_request_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_pod_certificate_request_spec.py b/kubernetes/client/models/v1beta1_pod_certificate_request_spec.py index 5033ca40a5..369ba16099 100644 --- a/kubernetes/client/models/v1beta1_pod_certificate_request_spec.py +++ b/kubernetes/client/models/v1beta1_pod_certificate_request_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_pod_certificate_request_status.py b/kubernetes/client/models/v1beta1_pod_certificate_request_status.py index 10a134ae30..8223782478 100644 --- a/kubernetes/client/models/v1beta1_pod_certificate_request_status.py +++ b/kubernetes/client/models/v1beta1_pod_certificate_request_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_pod_group.py b/kubernetes/client/models/v1beta1_pod_group.py new file mode 100644 index 0000000000..bc6bea4e5b --- /dev/null +++ b/kubernetes/client/models/v1beta1_pod_group.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_object_meta import V1ObjectMeta +from kubernetes.client.models.v1beta1_pod_group_spec import V1beta1PodGroupSpec +from kubernetes.client.models.v1beta1_pod_group_status import V1beta1PodGroupStatus +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1PodGroup(BaseModel): + """ + 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. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ObjectMeta] = None + spec: V1beta1PodGroupSpec + status: Optional[V1beta1PodGroupStatus] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "kind": "str", + "metadata": "V1ObjectMeta", + "spec": "V1beta1PodGroupSpec", + "status": "V1beta1PodGroupStatus" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "kind": "kind", + "metadata": "metadata", + "spec": "spec", + "status": "status" + } + __properties: ClassVar[List[str]] = ["apiVersion", "kind", "metadata", "spec", "status"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PodGroup): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PodGroup): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1PodGroup from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + ("spec" if serialize else "spec"): _to_legacy_value(getattr(self, "spec", None), serialize), + ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + # override the default output from pydantic by calling `to_dict()` of spec + if self.spec: + _dict['spec'] = _to_openapi_value(self.spec) + # override the default output from pydantic by calling `to_dict()` of status + if self.status: + _dict['status'] = _to_openapi_value(self.status) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1PodGroup from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "kind": obj.get("kind"), + "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, + "spec": V1beta1PodGroupSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None, + "status": V1beta1PodGroupStatus.from_dict(obj["status"]) if obj.get("status") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_pod_group_list.py b/kubernetes/client/models/v1beta1_pod_group_list.py new file mode 100644 index 0000000000..acd8b989d8 --- /dev/null +++ b/kubernetes/client/models/v1beta1_pod_group_list.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_list_meta import V1ListMeta +from kubernetes.client.models.v1beta1_pod_group import V1beta1PodGroup +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1PodGroupList(BaseModel): + """ + PodGroupList contains a list of PodGroup resources. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + items: List[V1beta1PodGroup] = Field(description="Items is the list of PodGroups.") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ListMeta] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "items": "List[V1beta1PodGroup]", + "kind": "str", + "metadata": "V1ListMeta" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "items": "items", + "kind": "kind", + "metadata": "metadata" + } + __properties: ClassVar[List[str]] = ["apiVersion", "items", "kind", "metadata"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PodGroupList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PodGroupList): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1PodGroupList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + _items.append(_to_openapi_value(_item_items) if _item_items is not None else None) + _dict['items'] = _items + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1PodGroupList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "items": [V1beta1PodGroup.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "kind": obj.get("kind"), + "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_pod_group_resource_claim.py b/kubernetes/client/models/v1beta1_pod_group_resource_claim.py new file mode 100644 index 0000000000..81ad4597e5 --- /dev/null +++ b/kubernetes/client/models/v1beta1_pod_group_resource_claim.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1PodGroupResourceClaim(BaseModel): + """ + 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. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + name: StrictStr = Field(description="name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.") + resource_claim_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimName", "resource_claim_name"), serialization_alias="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.") + resource_claim_template_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimTemplateName", "resource_claim_template_name"), serialization_alias="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.") + openapi_types: ClassVar[Dict[str, str]] = { + "name": "str", + "resource_claim_name": "str", + "resource_claim_template_name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "name": "name", + "resource_claim_name": "resourceClaimName", + "resource_claim_template_name": "resourceClaimTemplateName" + } + __properties: ClassVar[List[str]] = ["name", "resourceClaimName", "resourceClaimTemplateName"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "resourceClaimName" not in obj and "resource_claim_name" in obj: + obj["resourceClaimName"] = obj["resource_claim_name"] + obj.pop("resource_claim_name", None) + if "resourceClaimTemplateName" not in obj and "resource_claim_template_name" in obj: + obj["resourceClaimTemplateName"] = obj["resource_claim_template_name"] + obj.pop("resource_claim_template_name", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PodGroupResourceClaim): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PodGroupResourceClaim): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1PodGroupResourceClaim from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("resourceClaimName" if serialize else "resource_claim_name"): _to_legacy_value(getattr(self, "resource_claim_name", None), serialize), + ("resourceClaimTemplateName" if serialize else "resource_claim_template_name"): _to_legacy_value(getattr(self, "resource_claim_template_name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1PodGroupResourceClaim from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "resourceClaimName": obj.get("resourceClaimName"), + "resourceClaimTemplateName": obj.get("resourceClaimTemplateName") + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_pod_group_resource_claim_status.py b/kubernetes/client/models/v1beta1_pod_group_resource_claim_status.py new file mode 100644 index 0000000000..42ef3bc9be --- /dev/null +++ b/kubernetes/client/models/v1beta1_pod_group_resource_claim_status.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1PodGroupResourceClaimStatus(BaseModel): + """ + PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + name: StrictStr = Field(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.") + resource_claim_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("resourceClaimName", "resource_claim_name"), serialization_alias="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.") + openapi_types: ClassVar[Dict[str, str]] = { + "name": "str", + "resource_claim_name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "name": "name", + "resource_claim_name": "resourceClaimName" + } + __properties: ClassVar[List[str]] = ["name", "resourceClaimName"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "resourceClaimName" not in obj and "resource_claim_name" in obj: + obj["resourceClaimName"] = obj["resource_claim_name"] + obj.pop("resource_claim_name", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PodGroupResourceClaimStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PodGroupResourceClaimStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1PodGroupResourceClaimStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("resourceClaimName" if serialize else "resource_claim_name"): _to_legacy_value(getattr(self, "resource_claim_name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1PodGroupResourceClaimStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "resourceClaimName": obj.get("resourceClaimName") + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_pod_group_scheduling_constraints.py b/kubernetes/client/models/v1beta1_pod_group_scheduling_constraints.py new file mode 100644 index 0000000000..0f27febd9e --- /dev/null +++ b/kubernetes/client/models/v1beta1_pod_group_scheduling_constraints.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.client.models.v1beta1_topology_constraint import V1beta1TopologyConstraint +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1PodGroupSchedulingConstraints(BaseModel): + """ + PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + topology: Optional[List[V1beta1TopologyConstraint]] = Field(default=None, 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.") + openapi_types: ClassVar[Dict[str, str]] = { + "topology": "List[V1beta1TopologyConstraint]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "topology": "topology" + } + __properties: ClassVar[List[str]] = ["topology"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PodGroupSchedulingConstraints): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PodGroupSchedulingConstraints): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1PodGroupSchedulingConstraints from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("topology" if serialize else "topology"): _to_legacy_value(getattr(self, "topology", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in topology (list) + _items = [] + if self.topology: + for _item_topology in self.topology: + _items.append(_to_openapi_value(_item_topology) if _item_topology is not None else None) + _dict['topology'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1PodGroupSchedulingConstraints from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "topology": [V1beta1TopologyConstraint.from_dict(_item) for _item in obj["topology"]] if obj.get("topology") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_pod_group_scheduling_policy.py b/kubernetes/client/models/v1beta1_pod_group_scheduling_policy.py new file mode 100644 index 0000000000..38ef307fb4 --- /dev/null +++ b/kubernetes/client/models/v1beta1_pod_group_scheduling_policy.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.client.models.v1beta1_gang_scheduling_policy import V1beta1GangSchedulingPolicy +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1PodGroupSchedulingPolicy(BaseModel): + """ + PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + basic: Optional[Dict[str, Any]] = Field(default=None, description="basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward.") + gang: Optional[V1beta1GangSchedulingPolicy] = None + openapi_types: ClassVar[Dict[str, str]] = { + "basic": "object", + "gang": "V1beta1GangSchedulingPolicy" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "basic": "basic", + "gang": "gang" + } + __properties: ClassVar[List[str]] = ["basic", "gang"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PodGroupSchedulingPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PodGroupSchedulingPolicy): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1PodGroupSchedulingPolicy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("basic" if serialize else "basic"): _to_legacy_value(getattr(self, "basic", None), serialize), + ("gang" if serialize else "gang"): _to_legacy_value(getattr(self, "gang", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of gang + if self.gang: + _dict['gang'] = _to_openapi_value(self.gang) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1PodGroupSchedulingPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "basic": obj.get("basic"), + "gang": V1beta1GangSchedulingPolicy.from_dict(obj["gang"]) if obj.get("gang") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_pod_group_spec.py b/kubernetes/client/models/v1beta1_pod_group_spec.py new file mode 100644 index 0000000000..b5ad83c253 --- /dev/null +++ b/kubernetes/client/models/v1beta1_pod_group_spec.py @@ -0,0 +1,316 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1beta1_disruption_mode import V1beta1DisruptionMode +from kubernetes.client.models.v1beta1_pod_group_resource_claim import V1beta1PodGroupResourceClaim +from kubernetes.client.models.v1beta1_pod_group_scheduling_constraints import V1beta1PodGroupSchedulingConstraints +from kubernetes.client.models.v1beta1_pod_group_scheduling_policy import V1beta1PodGroupSchedulingPolicy +from kubernetes.client.models.v1beta1_workload_reference import V1beta1WorkloadReference +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1PodGroupSpec(BaseModel): + """ + PodGroupSpec defines the desired state of a PodGroup. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + disruption_mode: Optional[V1beta1DisruptionMode] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="disruptionMode") + parent_composite_pod_group_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("parentCompositePodGroupName", "parent_composite_pod_group_name"), serialization_alias="parentCompositePodGroupName", description="parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable.") + preemption_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preemptionPolicy", "preemption_policy"), serialization_alias="preemptionPolicy", description="preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + priority: Optional[StrictInt] = Field(default=None, 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.") + priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="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.") + resource_claims: Optional[List[V1beta1PodGroupResourceClaim]] = Field(default=None, validation_alias=AliasChoices("resourceClaims", "resource_claims"), serialization_alias="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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable.") + scheduling_constraints: Optional[V1beta1PodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") + scheduling_policy: V1beta1PodGroupSchedulingPolicy = Field(validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") + workload_ref: Optional[V1beta1WorkloadReference] = Field(default=None, validation_alias=AliasChoices("workloadRef", "workload_ref"), serialization_alias="workloadRef") + openapi_types: ClassVar[Dict[str, str]] = { + "disruption_mode": "V1beta1DisruptionMode", + "parent_composite_pod_group_name": "str", + "preemption_policy": "str", + "priority": "int", + "priority_class_name": "str", + "resource_claims": "List[V1beta1PodGroupResourceClaim]", + "scheduling_constraints": "V1beta1PodGroupSchedulingConstraints", + "scheduling_policy": "V1beta1PodGroupSchedulingPolicy", + "workload_ref": "V1beta1WorkloadReference" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "disruption_mode": "disruptionMode", + "parent_composite_pod_group_name": "parentCompositePodGroupName", + "preemption_policy": "preemptionPolicy", + "priority": "priority", + "priority_class_name": "priorityClassName", + "resource_claims": "resourceClaims", + "scheduling_constraints": "schedulingConstraints", + "scheduling_policy": "schedulingPolicy", + "workload_ref": "workloadRef" + } + __properties: ClassVar[List[str]] = ["disruptionMode", "parentCompositePodGroupName", "preemptionPolicy", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy", "workloadRef"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "disruptionMode" not in obj and "disruption_mode" in obj: + obj["disruptionMode"] = obj["disruption_mode"] + obj.pop("disruption_mode", None) + if "parentCompositePodGroupName" not in obj and "parent_composite_pod_group_name" in obj: + obj["parentCompositePodGroupName"] = obj["parent_composite_pod_group_name"] + obj.pop("parent_composite_pod_group_name", None) + if "preemptionPolicy" not in obj and "preemption_policy" in obj: + obj["preemptionPolicy"] = obj["preemption_policy"] + obj.pop("preemption_policy", None) + if "priorityClassName" not in obj and "priority_class_name" in obj: + obj["priorityClassName"] = obj["priority_class_name"] + obj.pop("priority_class_name", None) + if "resourceClaims" not in obj and "resource_claims" in obj: + obj["resourceClaims"] = obj["resource_claims"] + obj.pop("resource_claims", None) + if "schedulingConstraints" not in obj and "scheduling_constraints" in obj: + obj["schedulingConstraints"] = obj["scheduling_constraints"] + obj.pop("scheduling_constraints", None) + if "schedulingPolicy" not in obj and "scheduling_policy" in obj: + obj["schedulingPolicy"] = obj["scheduling_policy"] + obj.pop("scheduling_policy", None) + if "workloadRef" not in obj and "workload_ref" in obj: + obj["workloadRef"] = obj["workload_ref"] + obj.pop("workload_ref", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PodGroupSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PodGroupSpec): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1PodGroupSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("disruptionMode" if serialize else "disruption_mode"): _to_legacy_value(getattr(self, "disruption_mode", None), serialize), + ("parentCompositePodGroupName" if serialize else "parent_composite_pod_group_name"): _to_legacy_value(getattr(self, "parent_composite_pod_group_name", None), serialize), + ("preemptionPolicy" if serialize else "preemption_policy"): _to_legacy_value(getattr(self, "preemption_policy", None), serialize), + ("priority" if serialize else "priority"): _to_legacy_value(getattr(self, "priority", None), serialize), + ("priorityClassName" if serialize else "priority_class_name"): _to_legacy_value(getattr(self, "priority_class_name", None), serialize), + ("resourceClaims" if serialize else "resource_claims"): _to_legacy_value(getattr(self, "resource_claims", None), serialize), + ("schedulingConstraints" if serialize else "scheduling_constraints"): _to_legacy_value(getattr(self, "scheduling_constraints", None), serialize), + ("schedulingPolicy" if serialize else "scheduling_policy"): _to_legacy_value(getattr(self, "scheduling_policy", None), serialize), + ("workloadRef" if serialize else "workload_ref"): _to_legacy_value(getattr(self, "workload_ref", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of disruption_mode + if self.disruption_mode: + _dict['disruptionMode'] = _to_openapi_value(self.disruption_mode) + # override the default output from pydantic by calling `to_dict()` of each item in resource_claims (list) + _items = [] + if self.resource_claims: + for _item_resource_claims in self.resource_claims: + _items.append(_to_openapi_value(_item_resource_claims) if _item_resource_claims is not None else None) + _dict['resourceClaims'] = _items + # override the default output from pydantic by calling `to_dict()` of scheduling_constraints + if self.scheduling_constraints: + _dict['schedulingConstraints'] = _to_openapi_value(self.scheduling_constraints) + # override the default output from pydantic by calling `to_dict()` of scheduling_policy + if self.scheduling_policy: + _dict['schedulingPolicy'] = _to_openapi_value(self.scheduling_policy) + # override the default output from pydantic by calling `to_dict()` of workload_ref + if self.workload_ref: + _dict['workloadRef'] = _to_openapi_value(self.workload_ref) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1PodGroupSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "disruptionMode": V1beta1DisruptionMode.from_dict(obj["disruptionMode"]) if obj.get("disruptionMode") is not None else None, + "parentCompositePodGroupName": obj.get("parentCompositePodGroupName"), + "preemptionPolicy": obj.get("preemptionPolicy"), + "priority": obj.get("priority"), + "priorityClassName": obj.get("priorityClassName"), + "resourceClaims": [V1beta1PodGroupResourceClaim.from_dict(_item) for _item in obj["resourceClaims"]] if obj.get("resourceClaims") is not None else None, + "schedulingConstraints": V1beta1PodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, + "schedulingPolicy": V1beta1PodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None, + "workloadRef": V1beta1WorkloadReference.from_dict(obj["workloadRef"]) if obj.get("workloadRef") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_pod_group_status.py b/kubernetes/client/models/v1beta1_pod_group_status.py new file mode 100644 index 0000000000..92eee34ffe --- /dev/null +++ b/kubernetes/client/models/v1beta1_pod_group_status.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_condition import V1Condition +from kubernetes.client.models.v1beta1_pod_group_resource_claim_status import V1beta1PodGroupResourceClaimStatus +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1PodGroupStatus(BaseModel): + """ + PodGroupStatus represents information about the status of a pod group. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + conditions: Optional[List[V1Condition]] = Field(default=None, description="conditions represent the latest observations of the PodGroup's state. Known condition types: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupInitiallyScheduled 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.") + resource_claim_statuses: Optional[List[V1beta1PodGroupResourceClaimStatus]] = Field(default=None, validation_alias=AliasChoices("resourceClaimStatuses", "resource_claim_statuses"), serialization_alias="resourceClaimStatuses", description="resourceClaimStatuses is status of resource claims.") + openapi_types: ClassVar[Dict[str, str]] = { + "conditions": "List[V1Condition]", + "resource_claim_statuses": "List[V1beta1PodGroupResourceClaimStatus]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "conditions": "conditions", + "resource_claim_statuses": "resourceClaimStatuses" + } + __properties: ClassVar[List[str]] = ["conditions", "resourceClaimStatuses"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "resourceClaimStatuses" not in obj and "resource_claim_statuses" in obj: + obj["resourceClaimStatuses"] = obj["resource_claim_statuses"] + obj.pop("resource_claim_statuses", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PodGroupStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PodGroupStatus): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1PodGroupStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("conditions" if serialize else "conditions"): _to_legacy_value(getattr(self, "conditions", None), serialize), + ("resourceClaimStatuses" if serialize else "resource_claim_statuses"): _to_legacy_value(getattr(self, "resource_claim_statuses", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in conditions (list) + _items = [] + if self.conditions: + for _item_conditions in self.conditions: + _items.append(_to_openapi_value(_item_conditions) if _item_conditions is not None else None) + _dict['conditions'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in resource_claim_statuses (list) + _items = [] + if self.resource_claim_statuses: + for _item_resource_claim_statuses in self.resource_claim_statuses: + _items.append(_to_openapi_value(_item_resource_claim_statuses) if _item_resource_claim_statuses is not None else None) + _dict['resourceClaimStatuses'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1PodGroupStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "conditions": [V1Condition.from_dict(_item) for _item in obj["conditions"]] if obj.get("conditions") is not None else None, + "resourceClaimStatuses": [V1beta1PodGroupResourceClaimStatus.from_dict(_item) for _item in obj["resourceClaimStatuses"]] if obj.get("resourceClaimStatuses") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_pod_group_template.py b/kubernetes/client/models/v1beta1_pod_group_template.py new file mode 100644 index 0000000000..9cc742ebd7 --- /dev/null +++ b/kubernetes/client/models/v1beta1_pod_group_template.py @@ -0,0 +1,301 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1beta1_disruption_mode import V1beta1DisruptionMode +from kubernetes.client.models.v1beta1_pod_group_resource_claim import V1beta1PodGroupResourceClaim +from kubernetes.client.models.v1beta1_pod_group_scheduling_constraints import V1beta1PodGroupSchedulingConstraints +from kubernetes.client.models.v1beta1_pod_group_scheduling_policy import V1beta1PodGroupSchedulingPolicy +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1PodGroupTemplate(BaseModel): + """ + PodGroupTemplate represents a template for a set of pods with a scheduling policy. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + disruption_mode: Optional[V1beta1DisruptionMode] = Field(default=None, validation_alias=AliasChoices("disruptionMode", "disruption_mode"), serialization_alias="disruptionMode") + name: StrictStr = Field(description="name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.") + preemption_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("preemptionPolicy", "preemption_policy"), serialization_alias="preemptionPolicy", description="preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.") + priority: Optional[StrictInt] = Field(default=None, 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. The higher the value, the higher the priority. This field is immutable.") + priority_class_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("priorityClassName", "priority_class_name"), serialization_alias="priorityClassName", description="priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable.") + resource_claims: Optional[List[V1beta1PodGroupResourceClaim]] = Field(default=None, validation_alias=AliasChoices("resourceClaims", "resource_claims"), serialization_alias="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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable.") + scheduling_constraints: Optional[V1beta1PodGroupSchedulingConstraints] = Field(default=None, validation_alias=AliasChoices("schedulingConstraints", "scheduling_constraints"), serialization_alias="schedulingConstraints") + scheduling_policy: V1beta1PodGroupSchedulingPolicy = Field(validation_alias=AliasChoices("schedulingPolicy", "scheduling_policy"), serialization_alias="schedulingPolicy") + openapi_types: ClassVar[Dict[str, str]] = { + "disruption_mode": "V1beta1DisruptionMode", + "name": "str", + "preemption_policy": "str", + "priority": "int", + "priority_class_name": "str", + "resource_claims": "List[V1beta1PodGroupResourceClaim]", + "scheduling_constraints": "V1beta1PodGroupSchedulingConstraints", + "scheduling_policy": "V1beta1PodGroupSchedulingPolicy" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "disruption_mode": "disruptionMode", + "name": "name", + "preemption_policy": "preemptionPolicy", + "priority": "priority", + "priority_class_name": "priorityClassName", + "resource_claims": "resourceClaims", + "scheduling_constraints": "schedulingConstraints", + "scheduling_policy": "schedulingPolicy" + } + __properties: ClassVar[List[str]] = ["disruptionMode", "name", "preemptionPolicy", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "disruptionMode" not in obj and "disruption_mode" in obj: + obj["disruptionMode"] = obj["disruption_mode"] + obj.pop("disruption_mode", None) + if "preemptionPolicy" not in obj and "preemption_policy" in obj: + obj["preemptionPolicy"] = obj["preemption_policy"] + obj.pop("preemption_policy", None) + if "priorityClassName" not in obj and "priority_class_name" in obj: + obj["priorityClassName"] = obj["priority_class_name"] + obj.pop("priority_class_name", None) + if "resourceClaims" not in obj and "resource_claims" in obj: + obj["resourceClaims"] = obj["resource_claims"] + obj.pop("resource_claims", None) + if "schedulingConstraints" not in obj and "scheduling_constraints" in obj: + obj["schedulingConstraints"] = obj["scheduling_constraints"] + obj.pop("scheduling_constraints", None) + if "schedulingPolicy" not in obj and "scheduling_policy" in obj: + obj["schedulingPolicy"] = obj["scheduling_policy"] + obj.pop("scheduling_policy", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1PodGroupTemplate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1PodGroupTemplate): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1PodGroupTemplate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("disruptionMode" if serialize else "disruption_mode"): _to_legacy_value(getattr(self, "disruption_mode", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + ("preemptionPolicy" if serialize else "preemption_policy"): _to_legacy_value(getattr(self, "preemption_policy", None), serialize), + ("priority" if serialize else "priority"): _to_legacy_value(getattr(self, "priority", None), serialize), + ("priorityClassName" if serialize else "priority_class_name"): _to_legacy_value(getattr(self, "priority_class_name", None), serialize), + ("resourceClaims" if serialize else "resource_claims"): _to_legacy_value(getattr(self, "resource_claims", None), serialize), + ("schedulingConstraints" if serialize else "scheduling_constraints"): _to_legacy_value(getattr(self, "scheduling_constraints", None), serialize), + ("schedulingPolicy" if serialize else "scheduling_policy"): _to_legacy_value(getattr(self, "scheduling_policy", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of disruption_mode + if self.disruption_mode: + _dict['disruptionMode'] = _to_openapi_value(self.disruption_mode) + # override the default output from pydantic by calling `to_dict()` of each item in resource_claims (list) + _items = [] + if self.resource_claims: + for _item_resource_claims in self.resource_claims: + _items.append(_to_openapi_value(_item_resource_claims) if _item_resource_claims is not None else None) + _dict['resourceClaims'] = _items + # override the default output from pydantic by calling `to_dict()` of scheduling_constraints + if self.scheduling_constraints: + _dict['schedulingConstraints'] = _to_openapi_value(self.scheduling_constraints) + # override the default output from pydantic by calling `to_dict()` of scheduling_policy + if self.scheduling_policy: + _dict['schedulingPolicy'] = _to_openapi_value(self.scheduling_policy) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1PodGroupTemplate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "disruptionMode": V1beta1DisruptionMode.from_dict(obj["disruptionMode"]) if obj.get("disruptionMode") is not None else None, + "name": obj.get("name"), + "preemptionPolicy": obj.get("preemptionPolicy"), + "priority": obj.get("priority"), + "priorityClassName": obj.get("priorityClassName"), + "resourceClaims": [V1beta1PodGroupResourceClaim.from_dict(_item) for _item in obj["resourceClaims"]] if obj.get("resourceClaims") is not None else None, + "schedulingConstraints": V1beta1PodGroupSchedulingConstraints.from_dict(obj["schedulingConstraints"]) if obj.get("schedulingConstraints") is not None else None, + "schedulingPolicy": V1beta1PodGroupSchedulingPolicy.from_dict(obj["schedulingPolicy"]) if obj.get("schedulingPolicy") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_resource_claim.py b/kubernetes/client/models/v1beta1_resource_claim.py index 9de073b4b9..ea3c0887f9 100644 --- a/kubernetes/client/models/v1beta1_resource_claim.py +++ b/kubernetes/client/models/v1beta1_resource_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,7 +109,7 @@ class V1beta1ResourceClaim(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1beta1ResourceClaimSpec + spec: Optional[V1beta1ResourceClaimSpec] = None status: Optional[V1beta1ResourceClaimStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", diff --git a/kubernetes/client/models/v1beta1_resource_claim_consumer_reference.py b/kubernetes/client/models/v1beta1_resource_claim_consumer_reference.py index 937e97de06..032257051d 100644 --- a/kubernetes/client/models/v1beta1_resource_claim_consumer_reference.py +++ b/kubernetes/client/models/v1beta1_resource_claim_consumer_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_resource_claim_list.py b/kubernetes/client/models/v1beta1_resource_claim_list.py index 2328c7a628..84d72ece3c 100644 --- a/kubernetes/client/models/v1beta1_resource_claim_list.py +++ b/kubernetes/client/models/v1beta1_resource_claim_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_resource_claim_spec.py b/kubernetes/client/models/v1beta1_resource_claim_spec.py index cddeb77a32..e37819c026 100644 --- a/kubernetes/client/models/v1beta1_resource_claim_spec.py +++ b/kubernetes/client/models/v1beta1_resource_claim_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_resource_claim_status.py b/kubernetes/client/models/v1beta1_resource_claim_status.py index 8c3ef18f19..370bc177e3 100644 --- a/kubernetes/client/models/v1beta1_resource_claim_status.py +++ b/kubernetes/client/models/v1beta1_resource_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_resource_claim_template.py b/kubernetes/client/models/v1beta1_resource_claim_template.py index 824e48b0f3..e61ac5029a 100644 --- a/kubernetes/client/models/v1beta1_resource_claim_template.py +++ b/kubernetes/client/models/v1beta1_resource_claim_template.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,7 +108,7 @@ class V1beta1ResourceClaimTemplate(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1beta1ResourceClaimTemplateSpec + spec: Optional[V1beta1ResourceClaimTemplateSpec] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", diff --git a/kubernetes/client/models/v1beta1_resource_claim_template_list.py b/kubernetes/client/models/v1beta1_resource_claim_template_list.py index 878337a2a7..3a86a1ac11 100644 --- a/kubernetes/client/models/v1beta1_resource_claim_template_list.py +++ b/kubernetes/client/models/v1beta1_resource_claim_template_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_resource_claim_template_spec.py b/kubernetes/client/models/v1beta1_resource_claim_template_spec.py index 581c1ecea4..b666308030 100644 --- a/kubernetes/client/models/v1beta1_resource_claim_template_spec.py +++ b/kubernetes/client/models/v1beta1_resource_claim_template_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,7 +105,7 @@ class V1beta1ResourceClaimTemplateSpec(BaseModel): and the value is json key in definition. """ # noqa: E501 metadata: Optional[V1ObjectMeta] = None - spec: V1beta1ResourceClaimSpec + spec: Optional[V1beta1ResourceClaimSpec] = None openapi_types: ClassVar[Dict[str, str]] = { "metadata": "V1ObjectMeta", "spec": "V1beta1ResourceClaimSpec" diff --git a/kubernetes/client/models/v1beta1_resource_pool.py b/kubernetes/client/models/v1beta1_resource_pool.py index dc01e6df26..b0bb16ef38 100644 --- a/kubernetes/client/models/v1beta1_resource_pool.py +++ b/kubernetes/client/models/v1beta1_resource_pool.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -104,7 +104,7 @@ class V1beta1ResourcePool(BaseModel): and the value is json key in definition. """ # noqa: E501 generation: StrictInt = Field(description="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.") - name: StrictStr = Field(description="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.") + name: StrictStr = Field(description="Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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.") resource_slice_count: StrictInt = Field(validation_alias=AliasChoices("resourceSliceCount", "resource_slice_count"), serialization_alias="resourceSliceCount", description="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.") openapi_types: ClassVar[Dict[str, str]] = { "generation": "int", diff --git a/kubernetes/client/models/v1beta1_resource_slice.py b/kubernetes/client/models/v1beta1_resource_slice.py index b8a87011e3..72bedf0385 100644 --- a/kubernetes/client/models/v1beta1_resource_slice.py +++ b/kubernetes/client/models/v1beta1_resource_slice.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_resource_slice_list.py b/kubernetes/client/models/v1beta1_resource_slice_list.py index c5cb18706d..809ac9475f 100644 --- a/kubernetes/client/models/v1beta1_resource_slice_list.py +++ b/kubernetes/client/models/v1beta1_resource_slice_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_resource_slice_spec.py b/kubernetes/client/models/v1beta1_resource_slice_spec.py index d29b87c299..e4b4335a28 100644 --- a/kubernetes/client/models/v1beta1_resource_slice_spec.py +++ b/kubernetes/client/models/v1beta1_resource_slice_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -112,18 +112,22 @@ class V1beta1ResourceSliceSpec(BaseModel): driver: StrictStr = Field(description="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.") node_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("nodeName", "node_name"), serialization_alias="nodeName", description="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.") node_selector: Optional[V1NodeSelector] = Field(default=None, validation_alias=AliasChoices("nodeSelector", "node_selector"), serialization_alias="nodeSelector") + partition_type_attribute: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("partitionTypeAttribute", "partition_type_attribute"), serialization_alias="partitionTypeAttribute", description="PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.") per_device_node_selection: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("perDeviceNodeSelection", "per_device_node_selection"), serialization_alias="perDeviceNodeSelection", description="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.") pool: V1beta1ResourcePool shared_counters: Optional[List[V1beta1CounterSet]] = Field(default=None, validation_alias=AliasChoices("sharedCounters", "shared_counters"), serialization_alias="sharedCounters", description="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.") + skip_node_operations: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("skipNodeOperations", "skip_node_operations"), serialization_alias="skipNodeOperations", description="SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values.") openapi_types: ClassVar[Dict[str, str]] = { "all_nodes": "bool", "devices": "List[V1beta1Device]", "driver": "str", "node_name": "str", "node_selector": "V1NodeSelector", + "partition_type_attribute": "str", "per_device_node_selection": "bool", "pool": "V1beta1ResourcePool", - "shared_counters": "List[V1beta1CounterSet]" + "shared_counters": "List[V1beta1CounterSet]", + "skip_node_operations": "List[str]" } attribute_map: ClassVar[Dict[str, str]] = { @@ -132,11 +136,13 @@ class V1beta1ResourceSliceSpec(BaseModel): "driver": "driver", "node_name": "nodeName", "node_selector": "nodeSelector", + "partition_type_attribute": "partitionTypeAttribute", "per_device_node_selection": "perDeviceNodeSelection", "pool": "pool", - "shared_counters": "sharedCounters" + "shared_counters": "sharedCounters", + "skip_node_operations": "skipNodeOperations" } - __properties: ClassVar[List[str]] = ["allNodes", "devices", "driver", "nodeName", "nodeSelector", "perDeviceNodeSelection", "pool", "sharedCounters"] + __properties: ClassVar[List[str]] = ["allNodes", "devices", "driver", "nodeName", "nodeSelector", "partitionTypeAttribute", "perDeviceNodeSelection", "pool", "sharedCounters", "skipNodeOperations"] @classmethod def __preprocess_input_names( @@ -156,12 +162,18 @@ def __preprocess_input_names( if "nodeSelector" not in obj and "node_selector" in obj: obj["nodeSelector"] = obj["node_selector"] obj.pop("node_selector", None) + if "partitionTypeAttribute" not in obj and "partition_type_attribute" in obj: + obj["partitionTypeAttribute"] = obj["partition_type_attribute"] + obj.pop("partition_type_attribute", None) if "perDeviceNodeSelection" not in obj and "per_device_node_selection" in obj: obj["perDeviceNodeSelection"] = obj["per_device_node_selection"] obj.pop("per_device_node_selection", None) if "sharedCounters" not in obj and "shared_counters" in obj: obj["sharedCounters"] = obj["shared_counters"] obj.pop("shared_counters", None) + if "skipNodeOperations" not in obj and "skip_node_operations" in obj: + obj["skipNodeOperations"] = obj["skip_node_operations"] + obj.pop("skip_node_operations", None) return obj model_config = ConfigDict( @@ -216,9 +228,11 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("driver" if serialize else "driver"): _to_legacy_value(getattr(self, "driver", None), serialize), ("nodeName" if serialize else "node_name"): _to_legacy_value(getattr(self, "node_name", None), serialize), ("nodeSelector" if serialize else "node_selector"): _to_legacy_value(getattr(self, "node_selector", None), serialize), + ("partitionTypeAttribute" if serialize else "partition_type_attribute"): _to_legacy_value(getattr(self, "partition_type_attribute", None), serialize), ("perDeviceNodeSelection" if serialize else "per_device_node_selection"): _to_legacy_value(getattr(self, "per_device_node_selection", None), serialize), ("pool" if serialize else "pool"): _to_legacy_value(getattr(self, "pool", None), serialize), ("sharedCounters" if serialize else "shared_counters"): _to_legacy_value(getattr(self, "shared_counters", None), serialize), + ("skipNodeOperations" if serialize else "skip_node_operations"): _to_legacy_value(getattr(self, "skip_node_operations", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -294,8 +308,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "driver": obj.get("driver"), "nodeName": obj.get("nodeName"), "nodeSelector": V1NodeSelector.from_dict(obj["nodeSelector"]) if obj.get("nodeSelector") is not None else None, + "partitionTypeAttribute": obj.get("partitionTypeAttribute"), "perDeviceNodeSelection": obj.get("perDeviceNodeSelection"), "pool": V1beta1ResourcePool.from_dict(obj["pool"]) if obj.get("pool") is not None else None, - "sharedCounters": [V1beta1CounterSet.from_dict(_item) for _item in obj["sharedCounters"]] if obj.get("sharedCounters") is not None else None + "sharedCounters": [V1beta1CounterSet.from_dict(_item) for _item in obj["sharedCounters"]] if obj.get("sharedCounters") is not None else None, + "skipNodeOperations": obj.get("skipNodeOperations") }) return _obj diff --git a/kubernetes/client/models/v1beta1_storage_version_migration.py b/kubernetes/client/models/v1beta1_storage_version_migration.py index 1daf42fee1..31c9fd2acb 100644 --- a/kubernetes/client/models/v1beta1_storage_version_migration.py +++ b/kubernetes/client/models/v1beta1_storage_version_migration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_storage_version_migration_list.py b/kubernetes/client/models/v1beta1_storage_version_migration_list.py index 84d1412860..a89e1cd26a 100644 --- a/kubernetes/client/models/v1beta1_storage_version_migration_list.py +++ b/kubernetes/client/models/v1beta1_storage_version_migration_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_storage_version_migration_spec.py b/kubernetes/client/models/v1beta1_storage_version_migration_spec.py index 3f5c6a4dcd..959ad08eef 100644 --- a/kubernetes/client/models/v1beta1_storage_version_migration_spec.py +++ b/kubernetes/client/models/v1beta1_storage_version_migration_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_storage_version_migration_status.py b/kubernetes/client/models/v1beta1_storage_version_migration_status.py index 3e4d3145a9..335e7fad4b 100644 --- a/kubernetes/client/models/v1beta1_storage_version_migration_status.py +++ b/kubernetes/client/models/v1beta1_storage_version_migration_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_service_cidr_spec.py b/kubernetes/client/models/v1beta1_topology_constraint.py similarity index 84% rename from kubernetes/client/models/v1beta1_service_cidr_spec.py rename to kubernetes/client/models/v1beta1_topology_constraint.py index 689fb2ca6b..485d583df7 100644 --- a/kubernetes/client/models/v1beta1_service_cidr_spec.py +++ b/kubernetes/client/models/v1beta1_topology_constraint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -92,9 +92,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1beta1ServiceCIDRSpec(BaseModel): +class V1beta1TopologyConstraint(BaseModel): """ - ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. + TopologyConstraint defines a topology constraint for a PodGroup. Attributes: openapi_types (dict): The key is attribute name @@ -102,15 +102,15 @@ class V1beta1ServiceCIDRSpec(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - cidrs: Optional[List[StrictStr]] = Field(default=None, description="CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.") + key: StrictStr = Field(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\"") openapi_types: ClassVar[Dict[str, str]] = { - "cidrs": "List[str]" + "key": "str" } attribute_map: ClassVar[Dict[str, str]] = { - "cidrs": "cidrs" + "key": "key" } - __properties: ClassVar[List[str]] = ["cidrs"] + __properties: ClassVar[List[str]] = ["key"] model_config = ConfigDict( validate_by_name=True, @@ -131,14 +131,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1beta1ServiceCIDRSpec): + if not isinstance(other, V1beta1TopologyConstraint): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1ServiceCIDRSpec): + if not isinstance(other, V1beta1TopologyConstraint): return True return not (self == other) @@ -153,13 +153,13 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1ServiceCIDRSpec from a JSON string""" + """Create an instance of V1beta1TopologyConstraint from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { - ("cidrs" if serialize else "cidrs"): _to_legacy_value(getattr(self, "cidrs", None), serialize), + ("key" if serialize else "key"): _to_legacy_value(getattr(self, "key", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -196,7 +196,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1ServiceCIDRSpec from a dict""" + """Create an instance of V1beta1TopologyConstraint from a dict""" if obj is None: return None @@ -204,6 +204,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "cidrs": obj.get("cidrs") + "key": obj.get("key") }) return _obj diff --git a/kubernetes/client/models/v1beta1_typed_local_object_reference.py b/kubernetes/client/models/v1beta1_typed_local_object_reference.py new file mode 100644 index 0000000000..3dbc8a3c30 --- /dev/null +++ b/kubernetes/client/models/v1beta1_typed_local_object_reference.py @@ -0,0 +1,242 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1TypedLocalObjectReference(BaseModel): + """ + TypedLocalObjectReference allows to reference typed object inside the same namespace. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_group: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiGroup", "api_group"), serialization_alias="apiGroup", description="apiGroup is the group for the resource being referenced. If apiGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting apiGroup is required. It must be a DNS subdomain.") + kind: StrictStr = Field(description="kind is the type of resource being referenced. It must be a path segment name.") + name: StrictStr = Field(description="name is the name of resource being referenced. It must be a path segment name.") + openapi_types: ClassVar[Dict[str, str]] = { + "api_group": "str", + "kind": "str", + "name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_group": "apiGroup", + "kind": "kind", + "name": "name" + } + __properties: ClassVar[List[str]] = ["apiGroup", "kind", "name"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiGroup" not in obj and "api_group" in obj: + obj["apiGroup"] = obj["api_group"] + obj.pop("api_group", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1TypedLocalObjectReference): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1TypedLocalObjectReference): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1TypedLocalObjectReference from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiGroup" if serialize else "api_group"): _to_legacy_value(getattr(self, "api_group", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1TypedLocalObjectReference from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiGroup": obj.get("apiGroup"), + "kind": obj.get("kind"), + "name": obj.get("name") + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_variable.py b/kubernetes/client/models/v1beta1_variable.py index ee877c2a65..8032748b70 100644 --- a/kubernetes/client/models/v1beta1_variable.py +++ b/kubernetes/client/models/v1beta1_variable.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta1_volume_attributes_class.py b/kubernetes/client/models/v1beta1_volume_attributes_class.py deleted file mode 100644 index a13538f5ee..0000000000 --- a/kubernetes/client/models/v1beta1_volume_attributes_class.py +++ /dev/null @@ -1,259 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: release-1.36 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from collections.abc import Mapping as _Mapping -from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, cast as _cast -from kubernetes.client.models.v1_object_meta import V1ObjectMeta -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - - -_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" - - -def _get_openapi_to_dict(value: Any) -> Any: - # Reciprocal function references preserve inherited generated methods - # without reserving model member names. Checking both directions also - # rejects overrides whose decorators copy function attributes. - to_dict = getattr(value, "to_dict", None) - type_to_dict = getattr(type(value), "to_dict", None) - if ( - not callable(to_dict) - or getattr(to_dict, "__func__", None) is not type_to_dict - ): - return None - - openapi_to_dict = getattr( - type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None - ) - if ( - not callable(openapi_to_dict) - or getattr( - openapi_to_dict, - _OPENAPI_GENERATOR_TO_DICT, - None, - ) is not type_to_dict - ): - return None - return openapi_to_dict - - -def _to_legacy_item(value: Any, serialize: bool) -> Any: - to_dict = getattr(value, "to_dict", None) - if _get_openapi_to_dict(value) is not None and callable(to_dict): - return to_dict(serialize=serialize) - if callable(to_dict): - return to_dict() - return value - - -def _to_legacy_value(value: Any, serialize: bool) -> Any: - # python-legacy converted only immediate list elements or dictionary values: - # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 - if isinstance(value, list): - return [_to_legacy_item(item, serialize) for item in value] - if isinstance(value, dict): - return { - key: _to_legacy_item(item, serialize) - for key, item in value.items() - } - return _to_legacy_item(value, serialize) - - -def _to_openapi_value(value: Any) -> Any: - if isinstance(value, list): - return [_to_openapi_value(item) for item in value] - if isinstance(value, dict): - return {key: _to_openapi_value(item) for key, item in value.items()} - - to_openapi_dict = _get_openapi_to_dict(value) - if to_openapi_dict is not None: - return to_openapi_dict(value) - - to_dict = getattr(value, "to_dict", None) - if callable(to_dict): - return to_dict() - return value - - -class V1beta1VolumeAttributesClass(BaseModel): - """ - 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. - - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ # noqa: E501 - api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - driver_name: StrictStr = Field(validation_alias=AliasChoices("driverName", "driver_name"), serialization_alias="driverName", description="Name of the CSI driver This field is immutable.") - kind: Optional[StrictStr] = Field(default=None, 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") - metadata: Optional[V1ObjectMeta] = None - parameters: Optional[Dict[str, StrictStr]] = Field(default=None, description="parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.") - openapi_types: ClassVar[Dict[str, str]] = { - "api_version": "str", - "driver_name": "str", - "kind": "str", - "metadata": "V1ObjectMeta", - "parameters": "Dict[str, str]" - } - - attribute_map: ClassVar[Dict[str, str]] = { - "api_version": "apiVersion", - "driver_name": "driverName", - "kind": "kind", - "metadata": "metadata", - "parameters": "parameters" - } - __properties: ClassVar[List[str]] = ["apiVersion", "driverName", "kind", "metadata", "parameters"] - - @classmethod - def __preprocess_input_names( - cls, - obj: Any, - remove_hidden_storage_names: bool = True, - ) -> Any: - if not isinstance(obj, _Mapping): - return obj - obj = dict(obj) - if "apiVersion" not in obj and "api_version" in obj: - obj["apiVersion"] = obj["api_version"] - obj.pop("api_version", None) - if "driverName" not in obj and "driver_name" in obj: - obj["driverName"] = obj["driver_name"] - obj.pop("driver_name", None) - return obj - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - extra="forbid", - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self) -> str: - """For print and pprint""" - return self.to_str() - - def __eq__(self, other: object) -> bool: - """Returns true if both objects are equal""" - if not isinstance(other, V1beta1VolumeAttributesClass): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other: object) -> bool: - """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1VolumeAttributesClass): - return True - - return not (self == other) - - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - to_openapi_dict = _get_openapi_to_dict(self) - if to_openapi_dict is not None: - return json.dumps(to_jsonable_python(to_openapi_dict(self))) - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1VolumeAttributesClass from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self, serialize: bool = False) -> Dict[str, Any]: - """Return all declared model fields using public or wire names.""" - return { - ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), - ("driverName" if serialize else "driver_name"): _to_legacy_value(getattr(self, "driver_name", None), serialize), - ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), - ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), - ("parameters" if serialize else "parameters"): _to_legacy_value(getattr(self, "parameters", None), serialize), - } - - def __openapi_generator_modern_projection(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of metadata - if self.metadata: - _dict['metadata'] = _to_openapi_value(self.metadata) - return _dict - - setattr( - to_dict, - _OPENAPI_GENERATOR_TO_DICT, - __openapi_generator_modern_projection, - ) - setattr( - __openapi_generator_modern_projection, - _OPENAPI_GENERATOR_TO_DICT, - to_dict, - ) - del __openapi_generator_modern_projection - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1VolumeAttributesClass from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - obj = _cast( - Dict[str, Any], - cls.__preprocess_input_names( - obj, - remove_hidden_storage_names=True, - ), - ) - - _obj = cls.model_validate({ - "apiVersion": obj.get("apiVersion"), - "driverName": obj.get("driverName"), - "kind": obj.get("kind"), - "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, - "parameters": obj.get("parameters") - }) - return _obj diff --git a/kubernetes/client/models/v1beta1_volume_attributes_class_list.py b/kubernetes/client/models/v1beta1_volume_attributes_class_list.py deleted file mode 100644 index 062de1af8e..0000000000 --- a/kubernetes/client/models/v1beta1_volume_attributes_class_list.py +++ /dev/null @@ -1,258 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: release-1.36 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from collections.abc import Mapping as _Mapping -from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, cast as _cast -from kubernetes.client.models.v1_list_meta import V1ListMeta -from kubernetes.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - - -_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" - - -def _get_openapi_to_dict(value: Any) -> Any: - # Reciprocal function references preserve inherited generated methods - # without reserving model member names. Checking both directions also - # rejects overrides whose decorators copy function attributes. - to_dict = getattr(value, "to_dict", None) - type_to_dict = getattr(type(value), "to_dict", None) - if ( - not callable(to_dict) - or getattr(to_dict, "__func__", None) is not type_to_dict - ): - return None - - openapi_to_dict = getattr( - type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None - ) - if ( - not callable(openapi_to_dict) - or getattr( - openapi_to_dict, - _OPENAPI_GENERATOR_TO_DICT, - None, - ) is not type_to_dict - ): - return None - return openapi_to_dict - - -def _to_legacy_item(value: Any, serialize: bool) -> Any: - to_dict = getattr(value, "to_dict", None) - if _get_openapi_to_dict(value) is not None and callable(to_dict): - return to_dict(serialize=serialize) - if callable(to_dict): - return to_dict() - return value - - -def _to_legacy_value(value: Any, serialize: bool) -> Any: - # python-legacy converted only immediate list elements or dictionary values: - # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 - if isinstance(value, list): - return [_to_legacy_item(item, serialize) for item in value] - if isinstance(value, dict): - return { - key: _to_legacy_item(item, serialize) - for key, item in value.items() - } - return _to_legacy_item(value, serialize) - - -def _to_openapi_value(value: Any) -> Any: - if isinstance(value, list): - return [_to_openapi_value(item) for item in value] - if isinstance(value, dict): - return {key: _to_openapi_value(item) for key, item in value.items()} - - to_openapi_dict = _get_openapi_to_dict(value) - if to_openapi_dict is not None: - return to_openapi_dict(value) - - to_dict = getattr(value, "to_dict", None) - if callable(to_dict): - return to_dict() - return value - - -class V1beta1VolumeAttributesClassList(BaseModel): - """ - VolumeAttributesClassList is a collection of VolumeAttributesClass objects. - - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ # noqa: E501 - api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") - items: List[V1beta1VolumeAttributesClass] = Field(description="items is the list of VolumeAttributesClass objects.") - kind: Optional[StrictStr] = Field(default=None, 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") - metadata: Optional[V1ListMeta] = None - openapi_types: ClassVar[Dict[str, str]] = { - "api_version": "str", - "items": "List[V1beta1VolumeAttributesClass]", - "kind": "str", - "metadata": "V1ListMeta" - } - - attribute_map: ClassVar[Dict[str, str]] = { - "api_version": "apiVersion", - "items": "items", - "kind": "kind", - "metadata": "metadata" - } - __properties: ClassVar[List[str]] = ["apiVersion", "items", "kind", "metadata"] - - @classmethod - def __preprocess_input_names( - cls, - obj: Any, - remove_hidden_storage_names: bool = True, - ) -> Any: - if not isinstance(obj, _Mapping): - return obj - obj = dict(obj) - if "apiVersion" not in obj and "api_version" in obj: - obj["apiVersion"] = obj["api_version"] - obj.pop("api_version", None) - return obj - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - extra="forbid", - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self) -> str: - """For print and pprint""" - return self.to_str() - - def __eq__(self, other: object) -> bool: - """Returns true if both objects are equal""" - if not isinstance(other, V1beta1VolumeAttributesClassList): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other: object) -> bool: - """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1VolumeAttributesClassList): - return True - - return not (self == other) - - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - to_openapi_dict = _get_openapi_to_dict(self) - if to_openapi_dict is not None: - return json.dumps(to_jsonable_python(to_openapi_dict(self))) - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1VolumeAttributesClassList from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self, serialize: bool = False) -> Dict[str, Any]: - """Return all declared model fields using public or wire names.""" - return { - ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), - ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), - ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), - ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), - } - - def __openapi_generator_modern_projection(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in items (list) - _items = [] - if self.items: - for _item_items in self.items: - _items.append(_to_openapi_value(_item_items) if _item_items is not None else None) - _dict['items'] = _items - # override the default output from pydantic by calling `to_dict()` of metadata - if self.metadata: - _dict['metadata'] = _to_openapi_value(self.metadata) - return _dict - - setattr( - to_dict, - _OPENAPI_GENERATOR_TO_DICT, - __openapi_generator_modern_projection, - ) - setattr( - __openapi_generator_modern_projection, - _OPENAPI_GENERATOR_TO_DICT, - to_dict, - ) - del __openapi_generator_modern_projection - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1VolumeAttributesClassList from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - obj = _cast( - Dict[str, Any], - cls.__preprocess_input_names( - obj, - remove_hidden_storage_names=True, - ), - ) - - _obj = cls.model_validate({ - "apiVersion": obj.get("apiVersion"), - "items": [V1beta1VolumeAttributesClass.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, - "kind": obj.get("kind"), - "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None - }) - return _obj diff --git a/kubernetes/client/models/v1beta1_ip_address.py b/kubernetes/client/models/v1beta1_workload.py similarity index 88% rename from kubernetes/client/models/v1beta1_ip_address.py rename to kubernetes/client/models/v1beta1_workload.py index c111c2f784..c656dccbe3 100644 --- a/kubernetes/client/models/v1beta1_ip_address.py +++ b/kubernetes/client/models/v1beta1_workload.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,7 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1_object_meta import V1ObjectMeta -from kubernetes.client.models.v1beta1_ip_address_spec import V1beta1IPAddressSpec +from kubernetes.client.models.v1beta1_workload_spec import V1beta1WorkloadSpec from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -95,9 +95,9 @@ def _to_openapi_value(value: Any) -> Any: return value -class V1beta1IPAddress(BaseModel): +class V1beta1Workload(BaseModel): """ - 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 + 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. Attributes: openapi_types (dict): The key is attribute name @@ -108,12 +108,12 @@ class V1beta1IPAddress(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1beta1IPAddressSpec + spec: V1beta1WorkloadSpec openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", "metadata": "V1ObjectMeta", - "spec": "V1beta1IPAddressSpec" + "spec": "V1beta1WorkloadSpec" } attribute_map: ClassVar[Dict[str, str]] = { @@ -157,14 +157,14 @@ def __repr__(self) -> str: def __eq__(self, other: object) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, V1beta1IPAddress): + if not isinstance(other, V1beta1Workload): return False return self.to_dict() == other.to_dict() def __ne__(self, other: object) -> bool: """Returns true if both objects are not equal""" - if not isinstance(other, V1beta1IPAddress): + if not isinstance(other, V1beta1Workload): return True return not (self == other) @@ -179,7 +179,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta1IPAddress from a JSON string""" + """Create an instance of V1beta1Workload from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self, serialize: bool = False) -> Dict[str, Any]: @@ -231,7 +231,7 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta1IPAddress from a dict""" + """Create an instance of V1beta1Workload from a dict""" if obj is None: return None @@ -250,6 +250,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "apiVersion": obj.get("apiVersion"), "kind": obj.get("kind"), "metadata": V1ObjectMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, - "spec": V1beta1IPAddressSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None + "spec": V1beta1WorkloadSpec.from_dict(obj["spec"]) if obj.get("spec") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1beta1_workload_list.py b/kubernetes/client/models/v1beta1_workload_list.py new file mode 100644 index 0000000000..4492a1b57a --- /dev/null +++ b/kubernetes/client/models/v1beta1_workload_list.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1_list_meta import V1ListMeta +from kubernetes.client.models.v1beta1_workload import V1beta1Workload +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1WorkloadList(BaseModel): + """ + WorkloadList contains a list of Workload resources. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") + items: List[V1beta1Workload] = Field(description="items is the list of Workloads.") + kind: Optional[StrictStr] = Field(default=None, 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") + metadata: Optional[V1ListMeta] = None + openapi_types: ClassVar[Dict[str, str]] = { + "api_version": "str", + "items": "List[V1beta1Workload]", + "kind": "str", + "metadata": "V1ListMeta" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "api_version": "apiVersion", + "items": "items", + "kind": "kind", + "metadata": "metadata" + } + __properties: ClassVar[List[str]] = ["apiVersion", "items", "kind", "metadata"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "apiVersion" not in obj and "api_version" in obj: + obj["apiVersion"] = obj["api_version"] + obj.pop("api_version", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1WorkloadList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1WorkloadList): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1WorkloadList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("apiVersion" if serialize else "api_version"): _to_legacy_value(getattr(self, "api_version", None), serialize), + ("items" if serialize else "items"): _to_legacy_value(getattr(self, "items", None), serialize), + ("kind" if serialize else "kind"): _to_legacy_value(getattr(self, "kind", None), serialize), + ("metadata" if serialize else "metadata"): _to_legacy_value(getattr(self, "metadata", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + _items.append(_to_openapi_value(_item_items) if _item_items is not None else None) + _dict['items'] = _items + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['metadata'] = _to_openapi_value(self.metadata) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1WorkloadList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "apiVersion": obj.get("apiVersion"), + "items": [V1beta1Workload.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "kind": obj.get("kind"), + "metadata": V1ListMeta.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_workload_reference.py b/kubernetes/client/models/v1beta1_workload_reference.py new file mode 100644 index 0000000000..0533003e8b --- /dev/null +++ b/kubernetes/client/models/v1beta1_workload_reference.py @@ -0,0 +1,240 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1WorkloadReference(BaseModel): + """ + WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + template_name: StrictStr = Field(validation_alias=AliasChoices("templateName", "template_name"), serialization_alias="templateName", description="templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required.") + workload_name: StrictStr = Field(validation_alias=AliasChoices("workloadName", "workload_name"), serialization_alias="workloadName", description="workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required.") + openapi_types: ClassVar[Dict[str, str]] = { + "template_name": "str", + "workload_name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "template_name": "templateName", + "workload_name": "workloadName" + } + __properties: ClassVar[List[str]] = ["templateName", "workloadName"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "templateName" not in obj and "template_name" in obj: + obj["templateName"] = obj["template_name"] + obj.pop("template_name", None) + if "workloadName" not in obj and "workload_name" in obj: + obj["workloadName"] = obj["workload_name"] + obj.pop("workload_name", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1WorkloadReference): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1WorkloadReference): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1WorkloadReference from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("templateName" if serialize else "template_name"): _to_legacy_value(getattr(self, "template_name", None), serialize), + ("workloadName" if serialize else "workload_name"): _to_legacy_value(getattr(self, "workload_name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1WorkloadReference from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "templateName": obj.get("templateName"), + "workloadName": obj.get("workloadName") + }) + return _obj diff --git a/kubernetes/client/models/v1beta1_workload_spec.py b/kubernetes/client/models/v1beta1_workload_spec.py new file mode 100644 index 0000000000..98ec8eb1ca --- /dev/null +++ b/kubernetes/client/models/v1beta1_workload_spec.py @@ -0,0 +1,266 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from kubernetes.client.models.v1beta1_composite_pod_group_template import V1beta1CompositePodGroupTemplate +from kubernetes.client.models.v1beta1_pod_group_template import V1beta1PodGroupTemplate +from kubernetes.client.models.v1beta1_typed_local_object_reference import V1beta1TypedLocalObjectReference +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta1WorkloadSpec(BaseModel): + """ + WorkloadSpec defines the desired state of a Workload. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + composite_pod_group_templates: Optional[List[V1beta1CompositePodGroupTemplate]] = Field(default=None, validation_alias=AliasChoices("compositePodGroupTemplates", "composite_pod_group_templates"), serialization_alias="compositePodGroupTemplates", description="compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. This field is used only when the CompositePodGroup feature gate is enabled.") + controller_ref: Optional[V1beta1TypedLocalObjectReference] = Field(default=None, validation_alias=AliasChoices("controllerRef", "controller_ref"), serialization_alias="controllerRef") + pod_group_templates: Optional[List[V1beta1PodGroupTemplate]] = Field(default=None, validation_alias=AliasChoices("podGroupTemplates", "pod_group_templates"), serialization_alias="podGroupTemplates", description="podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.") + openapi_types: ClassVar[Dict[str, str]] = { + "composite_pod_group_templates": "List[V1beta1CompositePodGroupTemplate]", + "controller_ref": "V1beta1TypedLocalObjectReference", + "pod_group_templates": "List[V1beta1PodGroupTemplate]" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "composite_pod_group_templates": "compositePodGroupTemplates", + "controller_ref": "controllerRef", + "pod_group_templates": "podGroupTemplates" + } + __properties: ClassVar[List[str]] = ["compositePodGroupTemplates", "controllerRef", "podGroupTemplates"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "compositePodGroupTemplates" not in obj and "composite_pod_group_templates" in obj: + obj["compositePodGroupTemplates"] = obj["composite_pod_group_templates"] + obj.pop("composite_pod_group_templates", None) + if "controllerRef" not in obj and "controller_ref" in obj: + obj["controllerRef"] = obj["controller_ref"] + obj.pop("controller_ref", None) + if "podGroupTemplates" not in obj and "pod_group_templates" in obj: + obj["podGroupTemplates"] = obj["pod_group_templates"] + obj.pop("pod_group_templates", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1WorkloadSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta1WorkloadSpec): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta1WorkloadSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("compositePodGroupTemplates" if serialize else "composite_pod_group_templates"): _to_legacy_value(getattr(self, "composite_pod_group_templates", None), serialize), + ("controllerRef" if serialize else "controller_ref"): _to_legacy_value(getattr(self, "controller_ref", None), serialize), + ("podGroupTemplates" if serialize else "pod_group_templates"): _to_legacy_value(getattr(self, "pod_group_templates", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in composite_pod_group_templates (list) + _items = [] + if self.composite_pod_group_templates: + for _item_composite_pod_group_templates in self.composite_pod_group_templates: + _items.append(_to_openapi_value(_item_composite_pod_group_templates) if _item_composite_pod_group_templates is not None else None) + _dict['compositePodGroupTemplates'] = _items + # override the default output from pydantic by calling `to_dict()` of controller_ref + if self.controller_ref: + _dict['controllerRef'] = _to_openapi_value(self.controller_ref) + # override the default output from pydantic by calling `to_dict()` of each item in pod_group_templates (list) + _items = [] + if self.pod_group_templates: + for _item_pod_group_templates in self.pod_group_templates: + _items.append(_to_openapi_value(_item_pod_group_templates) if _item_pod_group_templates is not None else None) + _dict['podGroupTemplates'] = _items + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta1WorkloadSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "compositePodGroupTemplates": [V1beta1CompositePodGroupTemplate.from_dict(_item) for _item in obj["compositePodGroupTemplates"]] if obj.get("compositePodGroupTemplates") is not None else None, + "controllerRef": V1beta1TypedLocalObjectReference.from_dict(obj["controllerRef"]) if obj.get("controllerRef") is not None else None, + "podGroupTemplates": [V1beta1PodGroupTemplate.from_dict(_item) for _item in obj["podGroupTemplates"]] if obj.get("podGroupTemplates") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1beta2_allocated_device_status.py b/kubernetes/client/models/v1beta2_allocated_device_status.py index ecb9190f4a..4f429335de 100644 --- a/kubernetes/client/models/v1beta2_allocated_device_status.py +++ b/kubernetes/client/models/v1beta2_allocated_device_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_allocation_result.py b/kubernetes/client/models/v1beta2_allocation_result.py index 6075fae135..ce4ecd517d 100644 --- a/kubernetes/client/models/v1beta2_allocation_result.py +++ b/kubernetes/client/models/v1beta2_allocation_result.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_capacity_request_policy.py b/kubernetes/client/models/v1beta2_capacity_request_policy.py index d11d6ee42e..fdc3bfb480 100644 --- a/kubernetes/client/models/v1beta2_capacity_request_policy.py +++ b/kubernetes/client/models/v1beta2_capacity_request_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_capacity_request_policy_range.py b/kubernetes/client/models/v1beta2_capacity_request_policy_range.py index b2dc00a1a3..cd0991acb2 100644 --- a/kubernetes/client/models/v1beta2_capacity_request_policy_range.py +++ b/kubernetes/client/models/v1beta2_capacity_request_policy_range.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -94,7 +94,7 @@ def _to_openapi_value(value: Any) -> Any: class V1beta2CapacityRequestPolicyRange(BaseModel): """ - 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. + CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - 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. Attributes: openapi_types (dict): The key is attribute name diff --git a/kubernetes/client/models/v1beta2_capacity_requirements.py b/kubernetes/client/models/v1beta2_capacity_requirements.py index 2e9de63da8..f022787f19 100644 --- a/kubernetes/client/models/v1beta2_capacity_requirements.py +++ b/kubernetes/client/models/v1beta2_capacity_requirements.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_cel_device_selector.py b/kubernetes/client/models/v1beta2_cel_device_selector.py index 106a796e86..68c3e4b754 100644 --- a/kubernetes/client/models/v1beta2_cel_device_selector.py +++ b/kubernetes/client/models/v1beta2_cel_device_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -102,7 +102,7 @@ class V1beta2CELDeviceSelector(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - expression: StrictStr = Field(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. 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.") + expression: StrictStr = Field(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. 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.") openapi_types: ClassVar[Dict[str, str]] = { "expression": "str" } diff --git a/kubernetes/client/models/v1beta2_counter.py b/kubernetes/client/models/v1beta2_counter.py index 01010b94ab..acb85de86f 100644 --- a/kubernetes/client/models/v1beta2_counter.py +++ b/kubernetes/client/models/v1beta2_counter.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_counter_set.py b/kubernetes/client/models/v1beta2_counter_set.py index aeee919dd9..1a792001e2 100644 --- a/kubernetes/client/models/v1beta2_counter_set.py +++ b/kubernetes/client/models/v1beta2_counter_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_device.py b/kubernetes/client/models/v1beta2_device.py index 17df906b35..44a7ee83e1 100644 --- a/kubernetes/client/models/v1beta2_device.py +++ b/kubernetes/client/models/v1beta2_device.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -25,7 +25,7 @@ from kubernetes.client.models.v1beta2_device_capacity import V1beta2DeviceCapacity from kubernetes.client.models.v1beta2_device_counter_consumption import V1beta2DeviceCounterConsumption from kubernetes.client.models.v1beta2_device_taint import V1beta2DeviceTaint -from kubernetes.client.models.v1beta2_node_allocatable_resource_mapping import V1beta2NodeAllocatableResourceMapping +from kubernetes.client.models.v1beta2_node_allocatable_resource import V1beta2NodeAllocatableResource from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -118,7 +118,7 @@ class V1beta2Device(BaseModel): capacity: Optional[Dict[str, V1beta2DeviceCapacity]] = Field(default=None, description="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.") consumes_counters: Optional[List[V1beta2DeviceCounterConsumption]] = Field(default=None, validation_alias=AliasChoices("consumesCounters", "consumes_counters"), serialization_alias="consumesCounters", description="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.") name: StrictStr = Field(description="Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.") - node_allocatable_resource_mappings: Optional[Dict[str, V1beta2NodeAllocatableResourceMapping]] = Field(default=None, validation_alias=AliasChoices("nodeAllocatableResourceMappings", "node_allocatable_resource_mappings"), serialization_alias="nodeAllocatableResourceMappings", 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.") + node_allocatable_resources: Optional[Dict[str, V1beta2NodeAllocatableResource]] = Field(default=None, validation_alias=AliasChoices("nodeAllocatableResources", "node_allocatable_resources"), serialization_alias="nodeAllocatableResources", description="NodeAllocatableResources 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.") node_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("nodeName", "node_name"), serialization_alias="nodeName", description="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.") node_selector: Optional[V1NodeSelector] = Field(default=None, validation_alias=AliasChoices("nodeSelector", "node_selector"), serialization_alias="nodeSelector") taints: Optional[List[V1beta2DeviceTaint]] = Field(default=None, description="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.") @@ -132,7 +132,7 @@ class V1beta2Device(BaseModel): "capacity": "Dict[str, V1beta2DeviceCapacity]", "consumes_counters": "List[V1beta2DeviceCounterConsumption]", "name": "str", - "node_allocatable_resource_mappings": "Dict[str, V1beta2NodeAllocatableResourceMapping]", + "node_allocatable_resources": "Dict[str, V1beta2NodeAllocatableResource]", "node_name": "str", "node_selector": "V1NodeSelector", "taints": "List[V1beta2DeviceTaint]" @@ -148,12 +148,12 @@ class V1beta2Device(BaseModel): "capacity": "capacity", "consumes_counters": "consumesCounters", "name": "name", - "node_allocatable_resource_mappings": "nodeAllocatableResourceMappings", + "node_allocatable_resources": "nodeAllocatableResources", "node_name": "nodeName", "node_selector": "nodeSelector", "taints": "taints" } - __properties: ClassVar[List[str]] = ["allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "name", "nodeAllocatableResourceMappings", "nodeName", "nodeSelector", "taints"] + __properties: ClassVar[List[str]] = ["allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "name", "nodeAllocatableResources", "nodeName", "nodeSelector", "taints"] @classmethod def __preprocess_input_names( @@ -182,9 +182,9 @@ def __preprocess_input_names( if "consumesCounters" not in obj and "consumes_counters" in obj: obj["consumesCounters"] = obj["consumes_counters"] obj.pop("consumes_counters", None) - if "nodeAllocatableResourceMappings" not in obj and "node_allocatable_resource_mappings" in obj: - obj["nodeAllocatableResourceMappings"] = obj["node_allocatable_resource_mappings"] - obj.pop("node_allocatable_resource_mappings", None) + if "nodeAllocatableResources" not in obj and "node_allocatable_resources" in obj: + obj["nodeAllocatableResources"] = obj["node_allocatable_resources"] + obj.pop("node_allocatable_resources", None) if "nodeName" not in obj and "node_name" in obj: obj["nodeName"] = obj["node_name"] obj.pop("node_name", None) @@ -249,7 +249,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("consumesCounters" if serialize else "consumes_counters"): _to_legacy_value(getattr(self, "consumes_counters", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), - ("nodeAllocatableResourceMappings" if serialize else "node_allocatable_resource_mappings"): _to_legacy_value(getattr(self, "node_allocatable_resource_mappings", None), serialize), + ("nodeAllocatableResources" if serialize else "node_allocatable_resources"): _to_legacy_value(getattr(self, "node_allocatable_resources", None), serialize), ("nodeName" if serialize else "node_name"): _to_legacy_value(getattr(self, "node_name", None), serialize), ("nodeSelector" if serialize else "node_selector"): _to_legacy_value(getattr(self, "node_selector", None), serialize), ("taints" if serialize else "taints"): _to_legacy_value(getattr(self, "taints", None), serialize), @@ -291,12 +291,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: for _item_consumes_counters in self.consumes_counters: _items.append(_to_openapi_value(_item_consumes_counters) if _item_consumes_counters is not None else None) _dict['consumesCounters'] = _items - # override the default output from pydantic by calling `to_dict()` of each value in node_allocatable_resource_mappings (dict) + # override the default output from pydantic by calling `to_dict()` of each value in node_allocatable_resources (dict) _field_dict = {} - if self.node_allocatable_resource_mappings: - for _key_node_allocatable_resource_mappings in self.node_allocatable_resource_mappings: - _field_dict[_key_node_allocatable_resource_mappings] = _to_openapi_value(self.node_allocatable_resource_mappings[_key_node_allocatable_resource_mappings]) if self.node_allocatable_resource_mappings[_key_node_allocatable_resource_mappings] is not None else None - _dict['nodeAllocatableResourceMappings'] = _field_dict + if self.node_allocatable_resources: + for _key_node_allocatable_resources in self.node_allocatable_resources: + _field_dict[_key_node_allocatable_resources] = _to_openapi_value(self.node_allocatable_resources[_key_node_allocatable_resources]) if self.node_allocatable_resources[_key_node_allocatable_resources] is not None else None + _dict['nodeAllocatableResources'] = _field_dict # override the default output from pydantic by calling `to_dict()` of node_selector if self.node_selector: _dict['nodeSelector'] = _to_openapi_value(self.node_selector) @@ -357,11 +357,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: else None, "consumesCounters": [V1beta2DeviceCounterConsumption.from_dict(_item) for _item in obj["consumesCounters"]] if obj.get("consumesCounters") is not None else None, "name": obj.get("name"), - "nodeAllocatableResourceMappings": dict( - (_k, V1beta2NodeAllocatableResourceMapping.from_dict(_v)) - for _k, _v in obj["nodeAllocatableResourceMappings"].items() + "nodeAllocatableResources": dict( + (_k, V1beta2NodeAllocatableResource.from_dict(_v)) + for _k, _v in obj["nodeAllocatableResources"].items() ) - if obj.get("nodeAllocatableResourceMappings") is not None + if obj.get("nodeAllocatableResources") is not None else None, "nodeName": obj.get("nodeName"), "nodeSelector": V1NodeSelector.from_dict(obj["nodeSelector"]) if obj.get("nodeSelector") is not None else None, diff --git a/kubernetes/client/models/v1beta2_device_allocation_configuration.py b/kubernetes/client/models/v1beta2_device_allocation_configuration.py index 09c7441af8..f928736ed1 100644 --- a/kubernetes/client/models/v1beta2_device_allocation_configuration.py +++ b/kubernetes/client/models/v1beta2_device_allocation_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_device_allocation_result.py b/kubernetes/client/models/v1beta2_device_allocation_result.py index eadeb681ac..2c0b1ecd14 100644 --- a/kubernetes/client/models/v1beta2_device_allocation_result.py +++ b/kubernetes/client/models/v1beta2_device_allocation_result.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_device_attribute.py b/kubernetes/client/models/v1beta2_device_attribute.py index c8c4d4a9d0..63731b1e16 100644 --- a/kubernetes/client/models/v1beta2_device_attribute.py +++ b/kubernetes/client/models/v1beta2_device_attribute.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_device_capacity.py b/kubernetes/client/models/v1beta2_device_capacity.py index 456ee74a34..33a6be96b2 100644 --- a/kubernetes/client/models/v1beta2_device_capacity.py +++ b/kubernetes/client/models/v1beta2_device_capacity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_device_claim.py b/kubernetes/client/models/v1beta2_device_claim.py index a932d1a2c2..4e403452d9 100644 --- a/kubernetes/client/models/v1beta2_device_claim.py +++ b/kubernetes/client/models/v1beta2_device_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_device_claim_configuration.py b/kubernetes/client/models/v1beta2_device_claim_configuration.py index 5c4055731f..6d8baf6f90 100644 --- a/kubernetes/client/models/v1beta2_device_claim_configuration.py +++ b/kubernetes/client/models/v1beta2_device_claim_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_device_class.py b/kubernetes/client/models/v1beta2_device_class.py index 4091e3ddee..89625c4507 100644 --- a/kubernetes/client/models/v1beta2_device_class.py +++ b/kubernetes/client/models/v1beta2_device_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,7 +108,7 @@ class V1beta2DeviceClass(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1beta2DeviceClassSpec + spec: Optional[V1beta2DeviceClassSpec] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", diff --git a/kubernetes/client/models/v1beta2_device_class_configuration.py b/kubernetes/client/models/v1beta2_device_class_configuration.py index 125475f8dc..dbfed64bee 100644 --- a/kubernetes/client/models/v1beta2_device_class_configuration.py +++ b/kubernetes/client/models/v1beta2_device_class_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_device_class_list.py b/kubernetes/client/models/v1beta2_device_class_list.py index fb2ac421fa..25a49ba51a 100644 --- a/kubernetes/client/models/v1beta2_device_class_list.py +++ b/kubernetes/client/models/v1beta2_device_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_device_class_spec.py b/kubernetes/client/models/v1beta2_device_class_spec.py index 4512786d7b..a7ac6ca2a6 100644 --- a/kubernetes/client/models/v1beta2_device_class_spec.py +++ b/kubernetes/client/models/v1beta2_device_class_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -106,7 +106,7 @@ class V1beta2DeviceClassSpec(BaseModel): and the value is json key in definition. """ # noqa: E501 config: Optional[List[V1beta2DeviceClassConfiguration]] = Field(default=None, description="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.") - extended_resource_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("extendedResourceName", "extended_resource_name"), serialization_alias="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. This is a beta field.") + extended_resource_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("extendedResourceName", "extended_resource_name"), serialization_alias="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.") selectors: Optional[List[V1beta2DeviceSelector]] = Field(default=None, description="Each selector must be satisfied by a device which is claimed via this class.") openapi_types: ClassVar[Dict[str, str]] = { "config": "List[V1beta2DeviceClassConfiguration]", diff --git a/kubernetes/client/models/v1beta2_device_constraint.py b/kubernetes/client/models/v1beta2_device_constraint.py index f062b316c1..65d1b3dd67 100644 --- a/kubernetes/client/models/v1beta2_device_constraint.py +++ b/kubernetes/client/models/v1beta2_device_constraint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_device_counter_consumption.py b/kubernetes/client/models/v1beta2_device_counter_consumption.py index cfab43787f..19d7f240af 100644 --- a/kubernetes/client/models/v1beta2_device_counter_consumption.py +++ b/kubernetes/client/models/v1beta2_device_counter_consumption.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from collections.abc import Mapping as _Mapping from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, cast as _cast +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1beta2_counter import V1beta2Counter from typing import Optional, Set from typing_extensions import Self @@ -104,18 +104,21 @@ class V1beta2DeviceCounterConsumption(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 + compatibility_groups: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("compatibilityGroups", "compatibility_groups"), serialization_alias="compatibilityGroups", description="CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique.") counter_set: StrictStr = Field(validation_alias=AliasChoices("counterSet", "counter_set"), serialization_alias="counterSet", description="CounterSet is the name of the set from which the counters defined will be consumed.") counters: Dict[str, V1beta2Counter] = Field(description="Counters defines the counters that will be consumed by the device. The maximum number of counters is 32.") openapi_types: ClassVar[Dict[str, str]] = { + "compatibility_groups": "List[str]", "counter_set": "str", "counters": "Dict[str, V1beta2Counter]" } attribute_map: ClassVar[Dict[str, str]] = { + "compatibility_groups": "compatibilityGroups", "counter_set": "counterSet", "counters": "counters" } - __properties: ClassVar[List[str]] = ["counterSet", "counters"] + __properties: ClassVar[List[str]] = ["compatibilityGroups", "counterSet", "counters"] @classmethod def __preprocess_input_names( @@ -126,6 +129,9 @@ def __preprocess_input_names( if not isinstance(obj, _Mapping): return obj obj = dict(obj) + if "compatibilityGroups" not in obj and "compatibility_groups" in obj: + obj["compatibilityGroups"] = obj["compatibility_groups"] + obj.pop("compatibility_groups", None) if "counterSet" not in obj and "counter_set" in obj: obj["counterSet"] = obj["counter_set"] obj.pop("counter_set", None) @@ -178,6 +184,7 @@ def from_json(cls, json_str: str) -> Optional[Self]: def to_dict(self, serialize: bool = False) -> Dict[str, Any]: """Return all declared model fields using public or wire names.""" return { + ("compatibilityGroups" if serialize else "compatibility_groups"): _to_legacy_value(getattr(self, "compatibility_groups", None), serialize), ("counterSet" if serialize else "counter_set"): _to_legacy_value(getattr(self, "counter_set", None), serialize), ("counters" if serialize else "counters"): _to_legacy_value(getattr(self, "counters", None), serialize), } @@ -238,6 +245,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) _obj = cls.model_validate({ + "compatibilityGroups": obj.get("compatibilityGroups"), "counterSet": obj.get("counterSet"), "counters": dict( (_k, V1beta2Counter.from_dict(_v)) diff --git a/kubernetes/client/models/v1beta2_device_derived_attribute.py b/kubernetes/client/models/v1beta2_device_derived_attribute.py new file mode 100644 index 0000000000..84ffb3c5fd --- /dev/null +++ b/kubernetes/client/models/v1beta2_device_derived_attribute.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta2DeviceDerivedAttribute(BaseModel): + """ + DeviceDerivedAttribute defines a derived attribute computed via CEL. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + expression: StrictStr = Field(description="Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.") + name: StrictStr = Field(description="Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint.") + openapi_types: ClassVar[Dict[str, str]] = { + "expression": "str", + "name": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "expression": "expression", + "name": "name" + } + __properties: ClassVar[List[str]] = ["expression", "name"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta2DeviceDerivedAttribute): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta2DeviceDerivedAttribute): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta2DeviceDerivedAttribute from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("expression" if serialize else "expression"): _to_legacy_value(getattr(self, "expression", None), serialize), + ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta2DeviceDerivedAttribute from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "expression": obj.get("expression"), + "name": obj.get("name") + }) + return _obj diff --git a/kubernetes/client/models/v1beta2_device_request.py b/kubernetes/client/models/v1beta2_device_request.py index f4be069289..4d867113e8 100644 --- a/kubernetes/client/models/v1beta2_device_request.py +++ b/kubernetes/client/models/v1beta2_device_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_device_request_allocation_result.py b/kubernetes/client/models/v1beta2_device_request_allocation_result.py index 48bdc03de0..b56fd0e8d0 100644 --- a/kubernetes/client/models/v1beta2_device_request_allocation_result.py +++ b/kubernetes/client/models/v1beta2_device_request_allocation_result.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -113,6 +113,7 @@ class V1beta2DeviceRequestAllocationResult(BaseModel): pool: StrictStr = Field(description="This name together with the driver name and the device name field identify which device was allocated (`//`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.") request: StrictStr = Field(description="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
/. Multiple devices may have been allocated per request.") share_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("shareID", "share_id"), serialization_alias="shareID", description="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.") + skip_node_operations: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("skipNodeOperations", "skip_node_operations"), serialization_alias="skipNodeOperations", description="SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.") tolerations: Optional[List[V1beta2DeviceToleration]] = Field(default=None, description="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.") openapi_types: ClassVar[Dict[str, str]] = { "admin_access": "bool", @@ -124,6 +125,7 @@ class V1beta2DeviceRequestAllocationResult(BaseModel): "pool": "str", "request": "str", "share_id": "str", + "skip_node_operations": "List[str]", "tolerations": "List[V1beta2DeviceToleration]" } @@ -137,9 +139,10 @@ class V1beta2DeviceRequestAllocationResult(BaseModel): "pool": "pool", "request": "request", "share_id": "shareID", + "skip_node_operations": "skipNodeOperations", "tolerations": "tolerations" } - __properties: ClassVar[List[str]] = ["adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "tolerations"] + __properties: ClassVar[List[str]] = ["adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "skipNodeOperations", "tolerations"] @classmethod def __preprocess_input_names( @@ -165,6 +168,9 @@ def __preprocess_input_names( if "shareID" not in obj and "share_id" in obj: obj["shareID"] = obj["share_id"] obj.pop("share_id", None) + if "skipNodeOperations" not in obj and "skip_node_operations" in obj: + obj["skipNodeOperations"] = obj["skip_node_operations"] + obj.pop("skip_node_operations", None) return obj model_config = ConfigDict( @@ -223,6 +229,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("pool" if serialize else "pool"): _to_legacy_value(getattr(self, "pool", None), serialize), ("request" if serialize else "request"): _to_legacy_value(getattr(self, "request", None), serialize), ("shareID" if serialize else "share_id"): _to_legacy_value(getattr(self, "share_id", None), serialize), + ("skipNodeOperations" if serialize else "skip_node_operations"): _to_legacy_value(getattr(self, "skip_node_operations", None), serialize), ("tolerations" if serialize else "tolerations"): _to_legacy_value(getattr(self, "tolerations", None), serialize), } @@ -291,6 +298,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "pool": obj.get("pool"), "request": obj.get("request"), "shareID": obj.get("shareID"), + "skipNodeOperations": obj.get("skipNodeOperations"), "tolerations": [V1beta2DeviceToleration.from_dict(_item) for _item in obj["tolerations"]] if obj.get("tolerations") is not None else None }) return _obj diff --git a/kubernetes/client/models/v1beta2_device_selector.py b/kubernetes/client/models/v1beta2_device_selector.py index 142cf44609..9b3eea2b01 100644 --- a/kubernetes/client/models/v1beta2_device_selector.py +++ b/kubernetes/client/models/v1beta2_device_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_device_sub_request.py b/kubernetes/client/models/v1beta2_device_sub_request.py index 3849176471..8733dc15c0 100644 --- a/kubernetes/client/models/v1beta2_device_sub_request.py +++ b/kubernetes/client/models/v1beta2_device_sub_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1beta2_capacity_requirements import V1beta2CapacityRequirements +from kubernetes.client.models.v1beta2_device_derived_attribute import V1beta2DeviceDerivedAttribute from kubernetes.client.models.v1beta2_device_selector import V1beta2DeviceSelector from kubernetes.client.models.v1beta2_device_toleration import V1beta2DeviceToleration from typing import Optional, Set @@ -109,6 +110,7 @@ class V1beta2DeviceSubRequest(BaseModel): allocation_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("allocationMode", "allocation_mode"), serialization_alias="allocationMode", description="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.") capacity: Optional[V1beta2CapacityRequirements] = None count: Optional[StrictInt] = Field(default=None, description="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.") + derived_attributes: Optional[List[V1beta2DeviceDerivedAttribute]] = Field(default=None, validation_alias=AliasChoices("derivedAttributes", "derived_attributes"), serialization_alias="derivedAttributes", description="DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate.") device_class_name: StrictStr = Field(validation_alias=AliasChoices("deviceClassName", "device_class_name"), serialization_alias="deviceClassName", description="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: StrictStr = Field(description="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
/. Must be a DNS label.") selectors: Optional[List[V1beta2DeviceSelector]] = Field(default=None, description="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.") @@ -117,6 +119,7 @@ class V1beta2DeviceSubRequest(BaseModel): "allocation_mode": "str", "capacity": "V1beta2CapacityRequirements", "count": "int", + "derived_attributes": "List[V1beta2DeviceDerivedAttribute]", "device_class_name": "str", "name": "str", "selectors": "List[V1beta2DeviceSelector]", @@ -127,12 +130,13 @@ class V1beta2DeviceSubRequest(BaseModel): "allocation_mode": "allocationMode", "capacity": "capacity", "count": "count", + "derived_attributes": "derivedAttributes", "device_class_name": "deviceClassName", "name": "name", "selectors": "selectors", "tolerations": "tolerations" } - __properties: ClassVar[List[str]] = ["allocationMode", "capacity", "count", "deviceClassName", "name", "selectors", "tolerations"] + __properties: ClassVar[List[str]] = ["allocationMode", "capacity", "count", "derivedAttributes", "deviceClassName", "name", "selectors", "tolerations"] @classmethod def __preprocess_input_names( @@ -146,6 +150,9 @@ def __preprocess_input_names( if "allocationMode" not in obj and "allocation_mode" in obj: obj["allocationMode"] = obj["allocation_mode"] obj.pop("allocation_mode", None) + if "derivedAttributes" not in obj and "derived_attributes" in obj: + obj["derivedAttributes"] = obj["derived_attributes"] + obj.pop("derived_attributes", None) if "deviceClassName" not in obj and "device_class_name" in obj: obj["deviceClassName"] = obj["device_class_name"] obj.pop("device_class_name", None) @@ -201,6 +208,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("allocationMode" if serialize else "allocation_mode"): _to_legacy_value(getattr(self, "allocation_mode", None), serialize), ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("count" if serialize else "count"): _to_legacy_value(getattr(self, "count", None), serialize), + ("derivedAttributes" if serialize else "derived_attributes"): _to_legacy_value(getattr(self, "derived_attributes", None), serialize), ("deviceClassName" if serialize else "device_class_name"): _to_legacy_value(getattr(self, "device_class_name", None), serialize), ("name" if serialize else "name"): _to_legacy_value(getattr(self, "name", None), serialize), ("selectors" if serialize else "selectors"): _to_legacy_value(getattr(self, "selectors", None), serialize), @@ -228,6 +236,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of capacity if self.capacity: _dict['capacity'] = _to_openapi_value(self.capacity) + # override the default output from pydantic by calling `to_dict()` of each item in derived_attributes (list) + _items = [] + if self.derived_attributes: + for _item_derived_attributes in self.derived_attributes: + _items.append(_to_openapi_value(_item_derived_attributes) if _item_derived_attributes is not None else None) + _dict['derivedAttributes'] = _items # override the default output from pydantic by calling `to_dict()` of each item in selectors (list) _items = [] if self.selectors: @@ -275,6 +289,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "allocationMode": obj.get("allocationMode"), "capacity": V1beta2CapacityRequirements.from_dict(obj["capacity"]) if obj.get("capacity") is not None else None, "count": obj.get("count"), + "derivedAttributes": [V1beta2DeviceDerivedAttribute.from_dict(_item) for _item in obj["derivedAttributes"]] if obj.get("derivedAttributes") is not None else None, "deviceClassName": obj.get("deviceClassName"), "name": obj.get("name"), "selectors": [V1beta2DeviceSelector.from_dict(_item) for _item in obj["selectors"]] if obj.get("selectors") is not None else None, diff --git a/kubernetes/client/models/v1beta2_device_taint.py b/kubernetes/client/models/v1beta2_device_taint.py index 7979a44806..dd5e80ec63 100644 --- a/kubernetes/client/models/v1beta2_device_taint.py +++ b/kubernetes/client/models/v1beta2_device_taint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_device_taint_rule.py b/kubernetes/client/models/v1beta2_device_taint_rule.py index fe7a487299..d90cc25600 100644 --- a/kubernetes/client/models/v1beta2_device_taint_rule.py +++ b/kubernetes/client/models/v1beta2_device_taint_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_device_taint_rule_list.py b/kubernetes/client/models/v1beta2_device_taint_rule_list.py index 1006c912b1..74b543fc64 100644 --- a/kubernetes/client/models/v1beta2_device_taint_rule_list.py +++ b/kubernetes/client/models/v1beta2_device_taint_rule_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_device_taint_rule_spec.py b/kubernetes/client/models/v1beta2_device_taint_rule_spec.py index 4deaa8938f..c06ba16cfd 100644 --- a/kubernetes/client/models/v1beta2_device_taint_rule_spec.py +++ b/kubernetes/client/models/v1beta2_device_taint_rule_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_device_taint_rule_status.py b/kubernetes/client/models/v1beta2_device_taint_rule_status.py index a4d43e1bdd..6668002a44 100644 --- a/kubernetes/client/models/v1beta2_device_taint_rule_status.py +++ b/kubernetes/client/models/v1beta2_device_taint_rule_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_device_taint_selector.py b/kubernetes/client/models/v1beta2_device_taint_selector.py index 7801d66030..15b5dbb0b7 100644 --- a/kubernetes/client/models/v1beta2_device_taint_selector.py +++ b/kubernetes/client/models/v1beta2_device_taint_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_device_toleration.py b/kubernetes/client/models/v1beta2_device_toleration.py index 0322a564e0..65310dac84 100644 --- a/kubernetes/client/models/v1beta2_device_toleration.py +++ b/kubernetes/client/models/v1beta2_device_toleration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_exact_device_request.py b/kubernetes/client/models/v1beta2_exact_device_request.py index f20aa6f42e..2da1c84878 100644 --- a/kubernetes/client/models/v1beta2_exact_device_request.py +++ b/kubernetes/client/models/v1beta2_exact_device_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,7 @@ from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from kubernetes.client.models.v1beta2_capacity_requirements import V1beta2CapacityRequirements +from kubernetes.client.models.v1beta2_device_derived_attribute import V1beta2DeviceDerivedAttribute from kubernetes.client.models.v1beta2_device_selector import V1beta2DeviceSelector from kubernetes.client.models.v1beta2_device_toleration import V1beta2DeviceToleration from typing import Optional, Set @@ -110,6 +111,7 @@ class V1beta2ExactDeviceRequest(BaseModel): allocation_mode: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("allocationMode", "allocation_mode"), serialization_alias="allocationMode", description="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.") capacity: Optional[V1beta2CapacityRequirements] = None count: Optional[StrictInt] = Field(default=None, description="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.") + derived_attributes: Optional[List[V1beta2DeviceDerivedAttribute]] = Field(default=None, validation_alias=AliasChoices("derivedAttributes", "derived_attributes"), serialization_alias="derivedAttributes", description="DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate.") device_class_name: StrictStr = Field(validation_alias=AliasChoices("deviceClassName", "device_class_name"), serialization_alias="deviceClassName", description="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: Optional[List[V1beta2DeviceSelector]] = Field(default=None, description="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.") tolerations: Optional[List[V1beta2DeviceToleration]] = Field(default=None, description="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.") @@ -118,6 +120,7 @@ class V1beta2ExactDeviceRequest(BaseModel): "allocation_mode": "str", "capacity": "V1beta2CapacityRequirements", "count": "int", + "derived_attributes": "List[V1beta2DeviceDerivedAttribute]", "device_class_name": "str", "selectors": "List[V1beta2DeviceSelector]", "tolerations": "List[V1beta2DeviceToleration]" @@ -128,11 +131,12 @@ class V1beta2ExactDeviceRequest(BaseModel): "allocation_mode": "allocationMode", "capacity": "capacity", "count": "count", + "derived_attributes": "derivedAttributes", "device_class_name": "deviceClassName", "selectors": "selectors", "tolerations": "tolerations" } - __properties: ClassVar[List[str]] = ["adminAccess", "allocationMode", "capacity", "count", "deviceClassName", "selectors", "tolerations"] + __properties: ClassVar[List[str]] = ["adminAccess", "allocationMode", "capacity", "count", "derivedAttributes", "deviceClassName", "selectors", "tolerations"] @classmethod def __preprocess_input_names( @@ -149,6 +153,9 @@ def __preprocess_input_names( if "allocationMode" not in obj and "allocation_mode" in obj: obj["allocationMode"] = obj["allocation_mode"] obj.pop("allocation_mode", None) + if "derivedAttributes" not in obj and "derived_attributes" in obj: + obj["derivedAttributes"] = obj["derived_attributes"] + obj.pop("derived_attributes", None) if "deviceClassName" not in obj and "device_class_name" in obj: obj["deviceClassName"] = obj["device_class_name"] obj.pop("device_class_name", None) @@ -205,6 +212,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("allocationMode" if serialize else "allocation_mode"): _to_legacy_value(getattr(self, "allocation_mode", None), serialize), ("capacity" if serialize else "capacity"): _to_legacy_value(getattr(self, "capacity", None), serialize), ("count" if serialize else "count"): _to_legacy_value(getattr(self, "count", None), serialize), + ("derivedAttributes" if serialize else "derived_attributes"): _to_legacy_value(getattr(self, "derived_attributes", None), serialize), ("deviceClassName" if serialize else "device_class_name"): _to_legacy_value(getattr(self, "device_class_name", None), serialize), ("selectors" if serialize else "selectors"): _to_legacy_value(getattr(self, "selectors", None), serialize), ("tolerations" if serialize else "tolerations"): _to_legacy_value(getattr(self, "tolerations", None), serialize), @@ -231,6 +239,12 @@ def __openapi_generator_modern_projection(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of capacity if self.capacity: _dict['capacity'] = _to_openapi_value(self.capacity) + # override the default output from pydantic by calling `to_dict()` of each item in derived_attributes (list) + _items = [] + if self.derived_attributes: + for _item_derived_attributes in self.derived_attributes: + _items.append(_to_openapi_value(_item_derived_attributes) if _item_derived_attributes is not None else None) + _dict['derivedAttributes'] = _items # override the default output from pydantic by calling `to_dict()` of each item in selectors (list) _items = [] if self.selectors: @@ -279,6 +293,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "allocationMode": obj.get("allocationMode"), "capacity": V1beta2CapacityRequirements.from_dict(obj["capacity"]) if obj.get("capacity") is not None else None, "count": obj.get("count"), + "derivedAttributes": [V1beta2DeviceDerivedAttribute.from_dict(_item) for _item in obj["derivedAttributes"]] if obj.get("derivedAttributes") is not None else None, "deviceClassName": obj.get("deviceClassName"), "selectors": [V1beta2DeviceSelector.from_dict(_item) for _item in obj["selectors"]] if obj.get("selectors") is not None else None, "tolerations": [V1beta2DeviceToleration.from_dict(_item) for _item in obj["tolerations"]] if obj.get("tolerations") is not None else None diff --git a/kubernetes/client/models/v1beta2_network_device_data.py b/kubernetes/client/models/v1beta2_network_device_data.py index c738dc6532..d537e52a2a 100644 --- a/kubernetes/client/models/v1beta2_network_device_data.py +++ b/kubernetes/client/models/v1beta2_network_device_data.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_node_allocatable_mapping.py b/kubernetes/client/models/v1beta2_node_allocatable_mapping.py new file mode 100644 index 0000000000..bfccf5c3ba --- /dev/null +++ b/kubernetes/client/models/v1beta2_node_allocatable_mapping.py @@ -0,0 +1,248 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta2NodeAllocatableMapping(BaseModel): + """ + NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + capacity_key: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("capacityKey", "capacity_key"), serialization_alias="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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.") + capacity_multiplier: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("capacityMultiplier", "capacity_multiplier"), serialization_alias="capacityMultiplier", description="CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16.") + device_multiplier: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("deviceMultiplier", "device_multiplier"), serialization_alias="deviceMultiplier", description="DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set.") + openapi_types: ClassVar[Dict[str, str]] = { + "capacity_key": "str", + "capacity_multiplier": "str", + "device_multiplier": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "capacity_key": "capacityKey", + "capacity_multiplier": "capacityMultiplier", + "device_multiplier": "deviceMultiplier" + } + __properties: ClassVar[List[str]] = ["capacityKey", "capacityMultiplier", "deviceMultiplier"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "capacityKey" not in obj and "capacity_key" in obj: + obj["capacityKey"] = obj["capacity_key"] + obj.pop("capacity_key", None) + if "capacityMultiplier" not in obj and "capacity_multiplier" in obj: + obj["capacityMultiplier"] = obj["capacity_multiplier"] + obj.pop("capacity_multiplier", None) + if "deviceMultiplier" not in obj and "device_multiplier" in obj: + obj["deviceMultiplier"] = obj["device_multiplier"] + obj.pop("device_multiplier", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta2NodeAllocatableMapping): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta2NodeAllocatableMapping): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta2NodeAllocatableMapping from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("capacityKey" if serialize else "capacity_key"): _to_legacy_value(getattr(self, "capacity_key", None), serialize), + ("capacityMultiplier" if serialize else "capacity_multiplier"): _to_legacy_value(getattr(self, "capacity_multiplier", None), serialize), + ("deviceMultiplier" if serialize else "device_multiplier"): _to_legacy_value(getattr(self, "device_multiplier", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta2NodeAllocatableMapping from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "capacityKey": obj.get("capacityKey"), + "capacityMultiplier": obj.get("capacityMultiplier"), + "deviceMultiplier": obj.get("deviceMultiplier") + }) + return _obj diff --git a/kubernetes/client/models/v1beta2_node_allocatable_overhead.py b/kubernetes/client/models/v1beta2_node_allocatable_overhead.py new file mode 100644 index 0000000000..7d24dc807b --- /dev/null +++ b/kubernetes/client/models/v1beta2_node_allocatable_overhead.py @@ -0,0 +1,240 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from collections.abc import Mapping as _Mapping +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, cast as _cast +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta2NodeAllocatableOverhead(BaseModel): + """ + NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + per_container: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("perContainer", "per_container"), serialization_alias="perContainer", description="PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once.") + per_pod: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("perPod", "per_pod"), serialization_alias="perPod", description="PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim.") + openapi_types: ClassVar[Dict[str, str]] = { + "per_container": "str", + "per_pod": "str" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "per_container": "perContainer", + "per_pod": "perPod" + } + __properties: ClassVar[List[str]] = ["perContainer", "perPod"] + + @classmethod + def __preprocess_input_names( + cls, + obj: Any, + remove_hidden_storage_names: bool = True, + ) -> Any: + if not isinstance(obj, _Mapping): + return obj + obj = dict(obj) + if "perContainer" not in obj and "per_container" in obj: + obj["perContainer"] = obj["per_container"] + obj.pop("per_container", None) + if "perPod" not in obj and "per_pod" in obj: + obj["perPod"] = obj["per_pod"] + obj.pop("per_pod", None) + return obj + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta2NodeAllocatableOverhead): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta2NodeAllocatableOverhead): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta2NodeAllocatableOverhead from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("perContainer" if serialize else "per_container"): _to_legacy_value(getattr(self, "per_container", None), serialize), + ("perPod" if serialize else "per_pod"): _to_legacy_value(getattr(self, "per_pod", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta2NodeAllocatableOverhead from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + obj = _cast( + Dict[str, Any], + cls.__preprocess_input_names( + obj, + remove_hidden_storage_names=True, + ), + ) + + _obj = cls.model_validate({ + "perContainer": obj.get("perContainer"), + "perPod": obj.get("perPod") + }) + return _obj diff --git a/kubernetes/client/models/v1beta2_node_allocatable_resource.py b/kubernetes/client/models/v1beta2_node_allocatable_resource.py new file mode 100644 index 0000000000..d7a6c158ae --- /dev/null +++ b/kubernetes/client/models/v1beta2_node_allocatable_resource.py @@ -0,0 +1,222 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: release-1.37 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from kubernetes.client.models.v1beta2_node_allocatable_mapping import V1beta2NodeAllocatableMapping +from kubernetes.client.models.v1beta2_node_allocatable_overhead import V1beta2NodeAllocatableOverhead +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + + +_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" + + +def _get_openapi_to_dict(value: Any) -> Any: + # Reciprocal function references preserve inherited generated methods + # without reserving model member names. Checking both directions also + # rejects overrides whose decorators copy function attributes. + to_dict = getattr(value, "to_dict", None) + type_to_dict = getattr(type(value), "to_dict", None) + if ( + not callable(to_dict) + or getattr(to_dict, "__func__", None) is not type_to_dict + ): + return None + + openapi_to_dict = getattr( + type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None + ) + if ( + not callable(openapi_to_dict) + or getattr( + openapi_to_dict, + _OPENAPI_GENERATOR_TO_DICT, + None, + ) is not type_to_dict + ): + return None + return openapi_to_dict + + +def _to_legacy_item(value: Any, serialize: bool) -> Any: + to_dict = getattr(value, "to_dict", None) + if _get_openapi_to_dict(value) is not None and callable(to_dict): + return to_dict(serialize=serialize) + if callable(to_dict): + return to_dict() + return value + + +def _to_legacy_value(value: Any, serialize: bool) -> Any: + # python-legacy converted only immediate list elements or dictionary values: + # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 + if isinstance(value, list): + return [_to_legacy_item(item, serialize) for item in value] + if isinstance(value, dict): + return { + key: _to_legacy_item(item, serialize) + for key, item in value.items() + } + return _to_legacy_item(value, serialize) + + +def _to_openapi_value(value: Any) -> Any: + if isinstance(value, list): + return [_to_openapi_value(item) for item in value] + if isinstance(value, dict): + return {key: _to_openapi_value(item) for key, item in value.items()} + + to_openapi_dict = _get_openapi_to_dict(value) + if to_openapi_dict is not None: + return to_openapi_dict(value) + + to_dict = getattr(value, "to_dict", None) + if callable(to_dict): + return to_dict() + return value + + +class V1beta2NodeAllocatableResource(BaseModel): + """ + NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration. + + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ # noqa: E501 + mapping: Optional[V1beta2NodeAllocatableMapping] = None + overhead: Optional[V1beta2NodeAllocatableOverhead] = None + openapi_types: ClassVar[Dict[str, str]] = { + "mapping": "V1beta2NodeAllocatableMapping", + "overhead": "V1beta2NodeAllocatableOverhead" + } + + attribute_map: ClassVar[Dict[str, str]] = { + "mapping": "mapping", + "overhead": "overhead" + } + __properties: ClassVar[List[str]] = ["mapping", "overhead"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + extra="forbid", + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For print and pprint""" + return self.to_str() + + def __eq__(self, other: object) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, V1beta2NodeAllocatableResource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other: object) -> bool: + """Returns true if both objects are not equal""" + if not isinstance(other, V1beta2NodeAllocatableResource): + return True + + return not (self == other) + + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + to_openapi_dict = _get_openapi_to_dict(self) + if to_openapi_dict is not None: + return json.dumps(to_jsonable_python(to_openapi_dict(self))) + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1beta2NodeAllocatableResource from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self, serialize: bool = False) -> Dict[str, Any]: + """Return all declared model fields using public or wire names.""" + return { + ("mapping" if serialize else "mapping"): _to_legacy_value(getattr(self, "mapping", None), serialize), + ("overhead" if serialize else "overhead"): _to_legacy_value(getattr(self, "overhead", None), serialize), + } + + def __openapi_generator_modern_projection(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of mapping + if self.mapping: + _dict['mapping'] = _to_openapi_value(self.mapping) + # override the default output from pydantic by calling `to_dict()` of overhead + if self.overhead: + _dict['overhead'] = _to_openapi_value(self.overhead) + return _dict + + setattr( + to_dict, + _OPENAPI_GENERATOR_TO_DICT, + __openapi_generator_modern_projection, + ) + setattr( + __openapi_generator_modern_projection, + _OPENAPI_GENERATOR_TO_DICT, + to_dict, + ) + del __openapi_generator_modern_projection + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1beta2NodeAllocatableResource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "mapping": V1beta2NodeAllocatableMapping.from_dict(obj["mapping"]) if obj.get("mapping") is not None else None, + "overhead": V1beta2NodeAllocatableOverhead.from_dict(obj["overhead"]) if obj.get("overhead") is not None else None + }) + return _obj diff --git a/kubernetes/client/models/v1beta2_node_allocatable_resource_mapping.py b/kubernetes/client/models/v1beta2_node_allocatable_resource_mapping.py deleted file mode 100644 index 51547eb19d..0000000000 --- a/kubernetes/client/models/v1beta2_node_allocatable_resource_mapping.py +++ /dev/null @@ -1,240 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: release-1.36 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from collections.abc import Mapping as _Mapping -from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, cast as _cast -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - - -_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict" - - -def _get_openapi_to_dict(value: Any) -> Any: - # Reciprocal function references preserve inherited generated methods - # without reserving model member names. Checking both directions also - # rejects overrides whose decorators copy function attributes. - to_dict = getattr(value, "to_dict", None) - type_to_dict = getattr(type(value), "to_dict", None) - if ( - not callable(to_dict) - or getattr(to_dict, "__func__", None) is not type_to_dict - ): - return None - - openapi_to_dict = getattr( - type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None - ) - if ( - not callable(openapi_to_dict) - or getattr( - openapi_to_dict, - _OPENAPI_GENERATOR_TO_DICT, - None, - ) is not type_to_dict - ): - return None - return openapi_to_dict - - -def _to_legacy_item(value: Any, serialize: bool) -> Any: - to_dict = getattr(value, "to_dict", None) - if _get_openapi_to_dict(value) is not None and callable(to_dict): - return to_dict(serialize=serialize) - if callable(to_dict): - return to_dict() - return value - - -def _to_legacy_value(value: Any, serialize: bool) -> Any: - # python-legacy converted only immediate list elements or dictionary values: - # https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231 - if isinstance(value, list): - return [_to_legacy_item(item, serialize) for item in value] - if isinstance(value, dict): - return { - key: _to_legacy_item(item, serialize) - for key, item in value.items() - } - return _to_legacy_item(value, serialize) - - -def _to_openapi_value(value: Any) -> Any: - if isinstance(value, list): - return [_to_openapi_value(item) for item in value] - if isinstance(value, dict): - return {key: _to_openapi_value(item) for key, item in value.items()} - - to_openapi_dict = _get_openapi_to_dict(value) - if to_openapi_dict is not None: - return to_openapi_dict(value) - - to_dict = getattr(value, "to_dict", None) - if callable(to_dict): - return to_dict() - return value - - -class V1beta2NodeAllocatableResourceMapping(BaseModel): - """ - NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. - - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ # noqa: E501 - allocation_multiplier: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("allocationMultiplier", "allocation_multiplier"), serialization_alias="allocationMultiplier", 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. 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.") - capacity_key: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("capacityKey", "capacity_key"), serialization_alias="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\".") - openapi_types: ClassVar[Dict[str, str]] = { - "allocation_multiplier": "str", - "capacity_key": "str" - } - - attribute_map: ClassVar[Dict[str, str]] = { - "allocation_multiplier": "allocationMultiplier", - "capacity_key": "capacityKey" - } - __properties: ClassVar[List[str]] = ["allocationMultiplier", "capacityKey"] - - @classmethod - def __preprocess_input_names( - cls, - obj: Any, - remove_hidden_storage_names: bool = True, - ) -> Any: - if not isinstance(obj, _Mapping): - return obj - obj = dict(obj) - if "allocationMultiplier" not in obj and "allocation_multiplier" in obj: - obj["allocationMultiplier"] = obj["allocation_multiplier"] - obj.pop("allocation_multiplier", None) - if "capacityKey" not in obj and "capacity_key" in obj: - obj["capacityKey"] = obj["capacity_key"] - obj.pop("capacity_key", None) - return obj - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - extra="forbid", - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self) -> str: - """For print and pprint""" - return self.to_str() - - def __eq__(self, other: object) -> bool: - """Returns true if both objects are equal""" - if not isinstance(other, V1beta2NodeAllocatableResourceMapping): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other: object) -> bool: - """Returns true if both objects are not equal""" - if not isinstance(other, V1beta2NodeAllocatableResourceMapping): - return True - - return not (self == other) - - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - to_openapi_dict = _get_openapi_to_dict(self) - if to_openapi_dict is not None: - return json.dumps(to_jsonable_python(to_openapi_dict(self))) - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of V1beta2NodeAllocatableResourceMapping from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self, serialize: bool = False) -> Dict[str, Any]: - """Return all declared model fields using public or wire names.""" - return { - ("allocationMultiplier" if serialize else "allocation_multiplier"): _to_legacy_value(getattr(self, "allocation_multiplier", None), serialize), - ("capacityKey" if serialize else "capacity_key"): _to_legacy_value(getattr(self, "capacity_key", None), serialize), - } - - def __openapi_generator_modern_projection(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - setattr( - to_dict, - _OPENAPI_GENERATOR_TO_DICT, - __openapi_generator_modern_projection, - ) - setattr( - __openapi_generator_modern_projection, - _OPENAPI_GENERATOR_TO_DICT, - to_dict, - ) - del __openapi_generator_modern_projection - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of V1beta2NodeAllocatableResourceMapping from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - obj = _cast( - Dict[str, Any], - cls.__preprocess_input_names( - obj, - remove_hidden_storage_names=True, - ), - ) - - _obj = cls.model_validate({ - "allocationMultiplier": obj.get("allocationMultiplier"), - "capacityKey": obj.get("capacityKey") - }) - return _obj diff --git a/kubernetes/client/models/v1beta2_opaque_device_configuration.py b/kubernetes/client/models/v1beta2_opaque_device_configuration.py index 427e543248..a13fa32102 100644 --- a/kubernetes/client/models/v1beta2_opaque_device_configuration.py +++ b/kubernetes/client/models/v1beta2_opaque_device_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_resource_claim.py b/kubernetes/client/models/v1beta2_resource_claim.py index aaafb9d0c1..cdf09446ef 100644 --- a/kubernetes/client/models/v1beta2_resource_claim.py +++ b/kubernetes/client/models/v1beta2_resource_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -109,7 +109,7 @@ class V1beta2ResourceClaim(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1beta2ResourceClaimSpec + spec: Optional[V1beta2ResourceClaimSpec] = None status: Optional[V1beta2ResourceClaimStatus] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", diff --git a/kubernetes/client/models/v1beta2_resource_claim_consumer_reference.py b/kubernetes/client/models/v1beta2_resource_claim_consumer_reference.py index 5baf2e3e37..848f7e1b4c 100644 --- a/kubernetes/client/models/v1beta2_resource_claim_consumer_reference.py +++ b/kubernetes/client/models/v1beta2_resource_claim_consumer_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_resource_claim_list.py b/kubernetes/client/models/v1beta2_resource_claim_list.py index 969d609a2b..81312e7bc8 100644 --- a/kubernetes/client/models/v1beta2_resource_claim_list.py +++ b/kubernetes/client/models/v1beta2_resource_claim_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_resource_claim_spec.py b/kubernetes/client/models/v1beta2_resource_claim_spec.py index 3639ad65b7..8ba361528e 100644 --- a/kubernetes/client/models/v1beta2_resource_claim_spec.py +++ b/kubernetes/client/models/v1beta2_resource_claim_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_resource_claim_status.py b/kubernetes/client/models/v1beta2_resource_claim_status.py index 56e4dc185e..dc496d2024 100644 --- a/kubernetes/client/models/v1beta2_resource_claim_status.py +++ b/kubernetes/client/models/v1beta2_resource_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_resource_claim_template.py b/kubernetes/client/models/v1beta2_resource_claim_template.py index 9ac69ff0f2..1c30d8efd2 100644 --- a/kubernetes/client/models/v1beta2_resource_claim_template.py +++ b/kubernetes/client/models/v1beta2_resource_claim_template.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -108,7 +108,7 @@ class V1beta2ResourceClaimTemplate(BaseModel): api_version: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("apiVersion", "api_version"), serialization_alias="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") kind: Optional[StrictStr] = Field(default=None, 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") metadata: Optional[V1ObjectMeta] = None - spec: V1beta2ResourceClaimTemplateSpec + spec: Optional[V1beta2ResourceClaimTemplateSpec] = None openapi_types: ClassVar[Dict[str, str]] = { "api_version": "str", "kind": "str", diff --git a/kubernetes/client/models/v1beta2_resource_claim_template_list.py b/kubernetes/client/models/v1beta2_resource_claim_template_list.py index 2ad869f740..c98eba3825 100644 --- a/kubernetes/client/models/v1beta2_resource_claim_template_list.py +++ b/kubernetes/client/models/v1beta2_resource_claim_template_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_resource_claim_template_spec.py b/kubernetes/client/models/v1beta2_resource_claim_template_spec.py index d15ee2d762..c95a8604c9 100644 --- a/kubernetes/client/models/v1beta2_resource_claim_template_spec.py +++ b/kubernetes/client/models/v1beta2_resource_claim_template_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -105,7 +105,7 @@ class V1beta2ResourceClaimTemplateSpec(BaseModel): and the value is json key in definition. """ # noqa: E501 metadata: Optional[V1ObjectMeta] = None - spec: V1beta2ResourceClaimSpec + spec: Optional[V1beta2ResourceClaimSpec] = None openapi_types: ClassVar[Dict[str, str]] = { "metadata": "V1ObjectMeta", "spec": "V1beta2ResourceClaimSpec" diff --git a/kubernetes/client/models/v1beta2_resource_pool.py b/kubernetes/client/models/v1beta2_resource_pool.py index 697ff1beeb..a26e4a6ec4 100644 --- a/kubernetes/client/models/v1beta2_resource_pool.py +++ b/kubernetes/client/models/v1beta2_resource_pool.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -104,7 +104,7 @@ class V1beta2ResourcePool(BaseModel): and the value is json key in definition. """ # noqa: E501 generation: StrictInt = Field(description="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.") - name: StrictStr = Field(description="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.") + name: StrictStr = Field(description="Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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.") resource_slice_count: StrictInt = Field(validation_alias=AliasChoices("resourceSliceCount", "resource_slice_count"), serialization_alias="resourceSliceCount", description="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.") openapi_types: ClassVar[Dict[str, str]] = { "generation": "int", diff --git a/kubernetes/client/models/v1beta2_resource_slice.py b/kubernetes/client/models/v1beta2_resource_slice.py index 4d2522cece..91d8d807ad 100644 --- a/kubernetes/client/models/v1beta2_resource_slice.py +++ b/kubernetes/client/models/v1beta2_resource_slice.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_resource_slice_list.py b/kubernetes/client/models/v1beta2_resource_slice_list.py index d8577d2ffd..f4edd45a32 100644 --- a/kubernetes/client/models/v1beta2_resource_slice_list.py +++ b/kubernetes/client/models/v1beta2_resource_slice_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v1beta2_resource_slice_spec.py b/kubernetes/client/models/v1beta2_resource_slice_spec.py index 619cab092a..b829462993 100644 --- a/kubernetes/client/models/v1beta2_resource_slice_spec.py +++ b/kubernetes/client/models/v1beta2_resource_slice_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -112,18 +112,22 @@ class V1beta2ResourceSliceSpec(BaseModel): driver: StrictStr = Field(description="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.") node_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("nodeName", "node_name"), serialization_alias="nodeName", description="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.") node_selector: Optional[V1NodeSelector] = Field(default=None, validation_alias=AliasChoices("nodeSelector", "node_selector"), serialization_alias="nodeSelector") + partition_type_attribute: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("partitionTypeAttribute", "partition_type_attribute"), serialization_alias="partitionTypeAttribute", description="PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.") per_device_node_selection: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("perDeviceNodeSelection", "per_device_node_selection"), serialization_alias="perDeviceNodeSelection", description="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.") pool: V1beta2ResourcePool shared_counters: Optional[List[V1beta2CounterSet]] = Field(default=None, validation_alias=AliasChoices("sharedCounters", "shared_counters"), serialization_alias="sharedCounters", description="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.") + skip_node_operations: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("skipNodeOperations", "skip_node_operations"), serialization_alias="skipNodeOperations", description="SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values.") openapi_types: ClassVar[Dict[str, str]] = { "all_nodes": "bool", "devices": "List[V1beta2Device]", "driver": "str", "node_name": "str", "node_selector": "V1NodeSelector", + "partition_type_attribute": "str", "per_device_node_selection": "bool", "pool": "V1beta2ResourcePool", - "shared_counters": "List[V1beta2CounterSet]" + "shared_counters": "List[V1beta2CounterSet]", + "skip_node_operations": "List[str]" } attribute_map: ClassVar[Dict[str, str]] = { @@ -132,11 +136,13 @@ class V1beta2ResourceSliceSpec(BaseModel): "driver": "driver", "node_name": "nodeName", "node_selector": "nodeSelector", + "partition_type_attribute": "partitionTypeAttribute", "per_device_node_selection": "perDeviceNodeSelection", "pool": "pool", - "shared_counters": "sharedCounters" + "shared_counters": "sharedCounters", + "skip_node_operations": "skipNodeOperations" } - __properties: ClassVar[List[str]] = ["allNodes", "devices", "driver", "nodeName", "nodeSelector", "perDeviceNodeSelection", "pool", "sharedCounters"] + __properties: ClassVar[List[str]] = ["allNodes", "devices", "driver", "nodeName", "nodeSelector", "partitionTypeAttribute", "perDeviceNodeSelection", "pool", "sharedCounters", "skipNodeOperations"] @classmethod def __preprocess_input_names( @@ -156,12 +162,18 @@ def __preprocess_input_names( if "nodeSelector" not in obj and "node_selector" in obj: obj["nodeSelector"] = obj["node_selector"] obj.pop("node_selector", None) + if "partitionTypeAttribute" not in obj and "partition_type_attribute" in obj: + obj["partitionTypeAttribute"] = obj["partition_type_attribute"] + obj.pop("partition_type_attribute", None) if "perDeviceNodeSelection" not in obj and "per_device_node_selection" in obj: obj["perDeviceNodeSelection"] = obj["per_device_node_selection"] obj.pop("per_device_node_selection", None) if "sharedCounters" not in obj and "shared_counters" in obj: obj["sharedCounters"] = obj["shared_counters"] obj.pop("shared_counters", None) + if "skipNodeOperations" not in obj and "skip_node_operations" in obj: + obj["skipNodeOperations"] = obj["skip_node_operations"] + obj.pop("skip_node_operations", None) return obj model_config = ConfigDict( @@ -216,9 +228,11 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: ("driver" if serialize else "driver"): _to_legacy_value(getattr(self, "driver", None), serialize), ("nodeName" if serialize else "node_name"): _to_legacy_value(getattr(self, "node_name", None), serialize), ("nodeSelector" if serialize else "node_selector"): _to_legacy_value(getattr(self, "node_selector", None), serialize), + ("partitionTypeAttribute" if serialize else "partition_type_attribute"): _to_legacy_value(getattr(self, "partition_type_attribute", None), serialize), ("perDeviceNodeSelection" if serialize else "per_device_node_selection"): _to_legacy_value(getattr(self, "per_device_node_selection", None), serialize), ("pool" if serialize else "pool"): _to_legacy_value(getattr(self, "pool", None), serialize), ("sharedCounters" if serialize else "shared_counters"): _to_legacy_value(getattr(self, "shared_counters", None), serialize), + ("skipNodeOperations" if serialize else "skip_node_operations"): _to_legacy_value(getattr(self, "skip_node_operations", None), serialize), } def __openapi_generator_modern_projection(self) -> Dict[str, Any]: @@ -294,8 +308,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "driver": obj.get("driver"), "nodeName": obj.get("nodeName"), "nodeSelector": V1NodeSelector.from_dict(obj["nodeSelector"]) if obj.get("nodeSelector") is not None else None, + "partitionTypeAttribute": obj.get("partitionTypeAttribute"), "perDeviceNodeSelection": obj.get("perDeviceNodeSelection"), "pool": V1beta2ResourcePool.from_dict(obj["pool"]) if obj.get("pool") is not None else None, - "sharedCounters": [V1beta2CounterSet.from_dict(_item) for _item in obj["sharedCounters"]] if obj.get("sharedCounters") is not None else None + "sharedCounters": [V1beta2CounterSet.from_dict(_item) for _item in obj["sharedCounters"]] if obj.get("sharedCounters") is not None else None, + "skipNodeOperations": obj.get("skipNodeOperations") }) return _obj diff --git a/kubernetes/client/models/v2_api_group_discovery.py b/kubernetes/client/models/v2_api_group_discovery.py index 9cd42ff199..8f6378e422 100644 --- a/kubernetes/client/models/v2_api_group_discovery.py +++ b/kubernetes/client/models/v2_api_group_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_api_group_discovery_list.py b/kubernetes/client/models/v2_api_group_discovery_list.py index 6afa30d4a6..1421bc29df 100644 --- a/kubernetes/client/models/v2_api_group_discovery_list.py +++ b/kubernetes/client/models/v2_api_group_discovery_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_api_resource_discovery.py b/kubernetes/client/models/v2_api_resource_discovery.py index 39e15527a7..993b81979d 100644 --- a/kubernetes/client/models/v2_api_resource_discovery.py +++ b/kubernetes/client/models/v2_api_resource_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_api_subresource_discovery.py b/kubernetes/client/models/v2_api_subresource_discovery.py index 8638ea792f..ed5c3513cd 100644 --- a/kubernetes/client/models/v2_api_subresource_discovery.py +++ b/kubernetes/client/models/v2_api_subresource_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_api_version_discovery.py b/kubernetes/client/models/v2_api_version_discovery.py index 04fceb88b3..6d6d280a8c 100644 --- a/kubernetes/client/models/v2_api_version_discovery.py +++ b/kubernetes/client/models/v2_api_version_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_container_resource_metric_source.py b/kubernetes/client/models/v2_container_resource_metric_source.py index b2b619d911..8b260ad2ee 100644 --- a/kubernetes/client/models/v2_container_resource_metric_source.py +++ b/kubernetes/client/models/v2_container_resource_metric_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_container_resource_metric_status.py b/kubernetes/client/models/v2_container_resource_metric_status.py index c570ded525..72a924b79c 100644 --- a/kubernetes/client/models/v2_container_resource_metric_status.py +++ b/kubernetes/client/models/v2_container_resource_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_cross_version_object_reference.py b/kubernetes/client/models/v2_cross_version_object_reference.py index 19647ef085..ba81fd1d72 100644 --- a/kubernetes/client/models/v2_cross_version_object_reference.py +++ b/kubernetes/client/models/v2_cross_version_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_external_metric_source.py b/kubernetes/client/models/v2_external_metric_source.py index 91def363d3..bc9e25f354 100644 --- a/kubernetes/client/models/v2_external_metric_source.py +++ b/kubernetes/client/models/v2_external_metric_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_external_metric_status.py b/kubernetes/client/models/v2_external_metric_status.py index 4df71a2e8c..e14af3a5e0 100644 --- a/kubernetes/client/models/v2_external_metric_status.py +++ b/kubernetes/client/models/v2_external_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_horizontal_pod_autoscaler.py b/kubernetes/client/models/v2_horizontal_pod_autoscaler.py index f27e1fe61d..2ce1fdf5fd 100644 --- a/kubernetes/client/models/v2_horizontal_pod_autoscaler.py +++ b/kubernetes/client/models/v2_horizontal_pod_autoscaler.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_horizontal_pod_autoscaler_behavior.py b/kubernetes/client/models/v2_horizontal_pod_autoscaler_behavior.py index 8f410fdaca..0d61fc4492 100644 --- a/kubernetes/client/models/v2_horizontal_pod_autoscaler_behavior.py +++ b/kubernetes/client/models/v2_horizontal_pod_autoscaler_behavior.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_horizontal_pod_autoscaler_condition.py b/kubernetes/client/models/v2_horizontal_pod_autoscaler_condition.py index f693dcb681..939ebf388f 100644 --- a/kubernetes/client/models/v2_horizontal_pod_autoscaler_condition.py +++ b/kubernetes/client/models/v2_horizontal_pod_autoscaler_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from collections.abc import Mapping as _Mapping from datetime import datetime -from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictStr +from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, cast as _cast from typing import Optional, Set from typing_extensions import Self @@ -106,12 +106,14 @@ class V2HorizontalPodAutoscalerCondition(BaseModel): """ # noqa: E501 last_transition_time: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastTransitionTime", "last_transition_time"), serialization_alias="lastTransitionTime", description="lastTransitionTime is the last time the condition transitioned from one status to another") message: Optional[StrictStr] = Field(default=None, description="message is a human-readable explanation containing details about the transition") + observed_generation: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("observedGeneration", "observed_generation"), serialization_alias="observedGeneration", description="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.") reason: Optional[StrictStr] = Field(default=None, description="reason is the reason for the condition's last transition.") status: StrictStr = Field(description="status is the status of the condition (True, False, Unknown)") type: StrictStr = Field(description="type describes the current condition") openapi_types: ClassVar[Dict[str, str]] = { "last_transition_time": "datetime", "message": "str", + "observed_generation": "int", "reason": "str", "status": "str", "type": "str" @@ -120,11 +122,12 @@ class V2HorizontalPodAutoscalerCondition(BaseModel): attribute_map: ClassVar[Dict[str, str]] = { "last_transition_time": "lastTransitionTime", "message": "message", + "observed_generation": "observedGeneration", "reason": "reason", "status": "status", "type": "type" } - __properties: ClassVar[List[str]] = ["lastTransitionTime", "message", "reason", "status", "type"] + __properties: ClassVar[List[str]] = ["lastTransitionTime", "message", "observedGeneration", "reason", "status", "type"] @classmethod def __preprocess_input_names( @@ -138,6 +141,9 @@ def __preprocess_input_names( if "lastTransitionTime" not in obj and "last_transition_time" in obj: obj["lastTransitionTime"] = obj["last_transition_time"] obj.pop("last_transition_time", None) + if "observedGeneration" not in obj and "observed_generation" in obj: + obj["observedGeneration"] = obj["observed_generation"] + obj.pop("observed_generation", None) return obj model_config = ConfigDict( @@ -189,6 +195,7 @@ def to_dict(self, serialize: bool = False) -> Dict[str, Any]: return { ("lastTransitionTime" if serialize else "last_transition_time"): _to_legacy_value(getattr(self, "last_transition_time", None), serialize), ("message" if serialize else "message"): _to_legacy_value(getattr(self, "message", None), serialize), + ("observedGeneration" if serialize else "observed_generation"): _to_legacy_value(getattr(self, "observed_generation", None), serialize), ("reason" if serialize else "reason"): _to_legacy_value(getattr(self, "reason", None), serialize), ("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize), ("type" if serialize else "type"): _to_legacy_value(getattr(self, "type", None), serialize), @@ -246,6 +253,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "lastTransitionTime": obj.get("lastTransitionTime"), "message": obj.get("message"), + "observedGeneration": obj.get("observedGeneration"), "reason": obj.get("reason"), "status": obj.get("status"), "type": obj.get("type") diff --git a/kubernetes/client/models/v2_horizontal_pod_autoscaler_list.py b/kubernetes/client/models/v2_horizontal_pod_autoscaler_list.py index 66aeec7175..30d908f692 100644 --- a/kubernetes/client/models/v2_horizontal_pod_autoscaler_list.py +++ b/kubernetes/client/models/v2_horizontal_pod_autoscaler_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_horizontal_pod_autoscaler_spec.py b/kubernetes/client/models/v2_horizontal_pod_autoscaler_spec.py index 775bd7cb1c..1e778a8872 100644 --- a/kubernetes/client/models/v2_horizontal_pod_autoscaler_spec.py +++ b/kubernetes/client/models/v2_horizontal_pod_autoscaler_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_horizontal_pod_autoscaler_status.py b/kubernetes/client/models/v2_horizontal_pod_autoscaler_status.py index 3a485bb06a..480471dc7b 100644 --- a/kubernetes/client/models/v2_horizontal_pod_autoscaler_status.py +++ b/kubernetes/client/models/v2_horizontal_pod_autoscaler_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_hpa_scaling_policy.py b/kubernetes/client/models/v2_hpa_scaling_policy.py index f99b481279..8e63e1a4a5 100644 --- a/kubernetes/client/models/v2_hpa_scaling_policy.py +++ b/kubernetes/client/models/v2_hpa_scaling_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_hpa_scaling_rules.py b/kubernetes/client/models/v2_hpa_scaling_rules.py index 23362b1700..994284a333 100644 --- a/kubernetes/client/models/v2_hpa_scaling_rules.py +++ b/kubernetes/client/models/v2_hpa_scaling_rules.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -96,7 +96,7 @@ def _to_openapi_value(value: Any) -> Any: class V2HPAScalingRules(BaseModel): """ - 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.) + 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. Attributes: openapi_types (dict): The key is attribute name @@ -107,7 +107,7 @@ class V2HPAScalingRules(BaseModel): policies: Optional[List[V2HPAScalingPolicy]] = Field(default=None, description="policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window.") select_policy: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("selectPolicy", "select_policy"), serialization_alias="selectPolicy", description="selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.") stabilization_window_seconds: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("stabilizationWindowSeconds", "stabilization_window_seconds"), serialization_alias="stabilizationWindowSeconds", description="stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).") - tolerance: Optional[StrictStr] = Field(default=None, description="tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%). For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi. This is an beta field and requires the HPAConfigurableTolerance feature gate to be enabled.") + tolerance: Optional[StrictStr] = Field(default=None, description="tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%). For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.") openapi_types: ClassVar[Dict[str, str]] = { "policies": "List[V2HPAScalingPolicy]", "select_policy": "str", diff --git a/kubernetes/client/models/v2_metric_identifier.py b/kubernetes/client/models/v2_metric_identifier.py index 4ef27ef006..b1864e6a12 100644 --- a/kubernetes/client/models/v2_metric_identifier.py +++ b/kubernetes/client/models/v2_metric_identifier.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_metric_spec.py b/kubernetes/client/models/v2_metric_spec.py index 643ac5a997..b8b6abaa0d 100644 --- a/kubernetes/client/models/v2_metric_spec.py +++ b/kubernetes/client/models/v2_metric_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_metric_status.py b/kubernetes/client/models/v2_metric_status.py index 43638074c3..fe6c274ee4 100644 --- a/kubernetes/client/models/v2_metric_status.py +++ b/kubernetes/client/models/v2_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_metric_target.py b/kubernetes/client/models/v2_metric_target.py index 1a13e63dbf..cd5c47b8d0 100644 --- a/kubernetes/client/models/v2_metric_target.py +++ b/kubernetes/client/models/v2_metric_target.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_metric_value_status.py b/kubernetes/client/models/v2_metric_value_status.py index 87dc095579..b3fe5b4ca7 100644 --- a/kubernetes/client/models/v2_metric_value_status.py +++ b/kubernetes/client/models/v2_metric_value_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -103,7 +103,7 @@ class V2MetricValueStatus(BaseModel): attribute_map (dict): The key is attribute name and the value is json key in definition. """ # noqa: E501 - average_utilization: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("averageUtilization", "average_utilization"), serialization_alias="averageUtilization", description="currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.") + average_utilization: Optional[StrictInt] = Field(default=None, validation_alias=AliasChoices("averageUtilization", "average_utilization"), serialization_alias="averageUtilization", description="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.") average_value: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("averageValue", "average_value"), serialization_alias="averageValue", description="averageValue is the current value of the average of the metric across all relevant pods (as a quantity)") value: Optional[StrictStr] = Field(default=None, description="value is the current value of the metric (as a quantity).") openapi_types: ClassVar[Dict[str, str]] = { diff --git a/kubernetes/client/models/v2_object_metric_source.py b/kubernetes/client/models/v2_object_metric_source.py index e78e9aa238..918c9b2573 100644 --- a/kubernetes/client/models/v2_object_metric_source.py +++ b/kubernetes/client/models/v2_object_metric_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_object_metric_status.py b/kubernetes/client/models/v2_object_metric_status.py index 3a6662751f..8c97625fa9 100644 --- a/kubernetes/client/models/v2_object_metric_status.py +++ b/kubernetes/client/models/v2_object_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_pods_metric_source.py b/kubernetes/client/models/v2_pods_metric_source.py index 3c936fa88b..0d2f87f9cf 100644 --- a/kubernetes/client/models/v2_pods_metric_source.py +++ b/kubernetes/client/models/v2_pods_metric_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_pods_metric_status.py b/kubernetes/client/models/v2_pods_metric_status.py index 802143c8c2..d450575ae2 100644 --- a/kubernetes/client/models/v2_pods_metric_status.py +++ b/kubernetes/client/models/v2_pods_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_resource_metric_source.py b/kubernetes/client/models/v2_resource_metric_source.py index 4ad3a1d94f..99a2453c43 100644 --- a/kubernetes/client/models/v2_resource_metric_source.py +++ b/kubernetes/client/models/v2_resource_metric_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2_resource_metric_status.py b/kubernetes/client/models/v2_resource_metric_status.py index 49ccfccb26..90a965790f 100644 --- a/kubernetes/client/models/v2_resource_metric_status.py +++ b/kubernetes/client/models/v2_resource_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2beta1_api_group_discovery.py b/kubernetes/client/models/v2beta1_api_group_discovery.py index 99daa4e4ac..0d7f867768 100644 --- a/kubernetes/client/models/v2beta1_api_group_discovery.py +++ b/kubernetes/client/models/v2beta1_api_group_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2beta1_api_group_discovery_list.py b/kubernetes/client/models/v2beta1_api_group_discovery_list.py index 87db0f81e5..9d2acc6edf 100644 --- a/kubernetes/client/models/v2beta1_api_group_discovery_list.py +++ b/kubernetes/client/models/v2beta1_api_group_discovery_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2beta1_api_resource_discovery.py b/kubernetes/client/models/v2beta1_api_resource_discovery.py index 59fbddbad0..5b67763d9f 100644 --- a/kubernetes/client/models/v2beta1_api_resource_discovery.py +++ b/kubernetes/client/models/v2beta1_api_resource_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2beta1_api_subresource_discovery.py b/kubernetes/client/models/v2beta1_api_subresource_discovery.py index f345d01026..255efdc164 100644 --- a/kubernetes/client/models/v2beta1_api_subresource_discovery.py +++ b/kubernetes/client/models/v2beta1_api_subresource_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/v2beta1_api_version_discovery.py b/kubernetes/client/models/v2beta1_api_version_discovery.py index 25700de928..91f4c86e21 100644 --- a/kubernetes/client/models/v2beta1_api_version_discovery.py +++ b/kubernetes/client/models/v2beta1_api_version_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/models/version_info.py b/kubernetes/client/models/version_info.py index 735b378532..d31a9841ba 100644 --- a/kubernetes/client/models/version_info.py +++ b/kubernetes/client/models/version_info.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/docs/AdmissionregistrationApi.md b/kubernetes/docs/AdmissionregistrationApi.md index 0b7992f83c..6c8b57323b 100644 --- a/kubernetes/docs/AdmissionregistrationApi.md +++ b/kubernetes/docs/AdmissionregistrationApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/ApiextensionsApi.md b/kubernetes/docs/ApiextensionsApi.md index 4683b2b6dd..5153dac82d 100644 --- a/kubernetes/docs/ApiextensionsApi.md +++ b/kubernetes/docs/ApiextensionsApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/ApiregistrationApi.md b/kubernetes/docs/ApiregistrationApi.md index d8316f0cb5..1b5a81c2bd 100644 --- a/kubernetes/docs/ApiregistrationApi.md +++ b/kubernetes/docs/ApiregistrationApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/ApisApi.md b/kubernetes/docs/ApisApi.md index f36dfe5fe5..9cba58bdf4 100644 --- a/kubernetes/docs/ApisApi.md +++ b/kubernetes/docs/ApisApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/AppsApi.md b/kubernetes/docs/AppsApi.md index db59c83c40..30e479bb3b 100644 --- a/kubernetes/docs/AppsApi.md +++ b/kubernetes/docs/AppsApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/AuthenticationApi.md b/kubernetes/docs/AuthenticationApi.md index 7020359848..e37c4e8a7c 100644 --- a/kubernetes/docs/AuthenticationApi.md +++ b/kubernetes/docs/AuthenticationApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/AuthorizationApi.md b/kubernetes/docs/AuthorizationApi.md index b79292d9f5..764e4f2577 100644 --- a/kubernetes/docs/AuthorizationApi.md +++ b/kubernetes/docs/AuthorizationApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/AutoscalingApi.md b/kubernetes/docs/AutoscalingApi.md index 17cd297833..6e4253636b 100644 --- a/kubernetes/docs/AutoscalingApi.md +++ b/kubernetes/docs/AutoscalingApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/BatchApi.md b/kubernetes/docs/BatchApi.md index 978a86869b..3dcbc2e724 100644 --- a/kubernetes/docs/BatchApi.md +++ b/kubernetes/docs/BatchApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/CertificatesApi.md b/kubernetes/docs/CertificatesApi.md index 450859dc69..9eb11a579b 100644 --- a/kubernetes/docs/CertificatesApi.md +++ b/kubernetes/docs/CertificatesApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/CertificatesV1Api.md b/kubernetes/docs/CertificatesV1Api.md index 955af2b2ca..80b4d3b587 100644 --- a/kubernetes/docs/CertificatesV1Api.md +++ b/kubernetes/docs/CertificatesV1Api.md @@ -5,19 +5,37 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_certificate_signing_request**](CertificatesV1Api.md#create_certificate_signing_request) | **POST** /apis/certificates.k8s.io/v1/certificatesigningrequests | +[**create_cluster_trust_bundle**](CertificatesV1Api.md#create_cluster_trust_bundle) | **POST** /apis/certificates.k8s.io/v1/clustertrustbundles | +[**create_namespaced_pod_certificate_request**](CertificatesV1Api.md#create_namespaced_pod_certificate_request) | **POST** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests | [**delete_certificate_signing_request**](CertificatesV1Api.md#delete_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | +[**delete_cluster_trust_bundle**](CertificatesV1Api.md#delete_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1/clustertrustbundles/{name} | [**delete_collection_certificate_signing_request**](CertificatesV1Api.md#delete_collection_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1/certificatesigningrequests | +[**delete_collection_cluster_trust_bundle**](CertificatesV1Api.md#delete_collection_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1/clustertrustbundles | +[**delete_collection_namespaced_pod_certificate_request**](CertificatesV1Api.md#delete_collection_namespaced_pod_certificate_request) | **DELETE** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests | +[**delete_namespaced_pod_certificate_request**](CertificatesV1Api.md#delete_namespaced_pod_certificate_request) | **DELETE** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name} | [**get_api_resources**](CertificatesV1Api.md#get_api_resources) | **GET** /apis/certificates.k8s.io/v1/ | [**list_certificate_signing_request**](CertificatesV1Api.md#list_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests | +[**list_cluster_trust_bundle**](CertificatesV1Api.md#list_cluster_trust_bundle) | **GET** /apis/certificates.k8s.io/v1/clustertrustbundles | +[**list_namespaced_pod_certificate_request**](CertificatesV1Api.md#list_namespaced_pod_certificate_request) | **GET** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests | +[**list_pod_certificate_request_for_all_namespaces**](CertificatesV1Api.md#list_pod_certificate_request_for_all_namespaces) | **GET** /apis/certificates.k8s.io/v1/podcertificaterequests | [**patch_certificate_signing_request**](CertificatesV1Api.md#patch_certificate_signing_request) | **PATCH** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | [**patch_certificate_signing_request_approval**](CertificatesV1Api.md#patch_certificate_signing_request_approval) | **PATCH** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval | [**patch_certificate_signing_request_status**](CertificatesV1Api.md#patch_certificate_signing_request_status) | **PATCH** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status | +[**patch_cluster_trust_bundle**](CertificatesV1Api.md#patch_cluster_trust_bundle) | **PATCH** /apis/certificates.k8s.io/v1/clustertrustbundles/{name} | +[**patch_namespaced_pod_certificate_request**](CertificatesV1Api.md#patch_namespaced_pod_certificate_request) | **PATCH** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name} | +[**patch_namespaced_pod_certificate_request_status**](CertificatesV1Api.md#patch_namespaced_pod_certificate_request_status) | **PATCH** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status | [**read_certificate_signing_request**](CertificatesV1Api.md#read_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | [**read_certificate_signing_request_approval**](CertificatesV1Api.md#read_certificate_signing_request_approval) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval | [**read_certificate_signing_request_status**](CertificatesV1Api.md#read_certificate_signing_request_status) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status | +[**read_cluster_trust_bundle**](CertificatesV1Api.md#read_cluster_trust_bundle) | **GET** /apis/certificates.k8s.io/v1/clustertrustbundles/{name} | +[**read_namespaced_pod_certificate_request**](CertificatesV1Api.md#read_namespaced_pod_certificate_request) | **GET** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name} | +[**read_namespaced_pod_certificate_request_status**](CertificatesV1Api.md#read_namespaced_pod_certificate_request_status) | **GET** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status | [**replace_certificate_signing_request**](CertificatesV1Api.md#replace_certificate_signing_request) | **PUT** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | [**replace_certificate_signing_request_approval**](CertificatesV1Api.md#replace_certificate_signing_request_approval) | **PUT** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval | [**replace_certificate_signing_request_status**](CertificatesV1Api.md#replace_certificate_signing_request_status) | **PUT** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status | +[**replace_cluster_trust_bundle**](CertificatesV1Api.md#replace_cluster_trust_bundle) | **PUT** /apis/certificates.k8s.io/v1/clustertrustbundles/{name} | +[**replace_namespaced_pod_certificate_request**](CertificatesV1Api.md#replace_namespaced_pod_certificate_request) | **PUT** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name} | +[**replace_namespaced_pod_certificate_request_status**](CertificatesV1Api.md#replace_namespaced_pod_certificate_request_status) | **PUT** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status | # **create_certificate_signing_request** @@ -107,6 +125,182 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_cluster_trust_bundle** +> V1ClusterTrustBundle create_cluster_trust_bundle(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +create a ClusterTrustBundle + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_cluster_trust_bundle import V1ClusterTrustBundle +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1Api(api_client) + body = kubernetes.client.V1ClusterTrustBundle() # V1ClusterTrustBundle | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = api_instance.create_cluster_trust_bundle(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of CertificatesV1Api->create_cluster_trust_bundle:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->create_cluster_trust_bundle: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ClusterTrustBundle**](V1ClusterTrustBundle.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1ClusterTrustBundle**](V1ClusterTrustBundle.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 | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_pod_certificate_request** +> V1PodCertificateRequest create_namespaced_pod_certificate_request(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +create a PodCertificateRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_pod_certificate_request import V1PodCertificateRequest +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.client.V1PodCertificateRequest() # V1PodCertificateRequest | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = api_instance.create_namespaced_pod_certificate_request(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of CertificatesV1Api->create_namespaced_pod_certificate_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->create_namespaced_pod_certificate_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1PodCertificateRequest**](V1PodCertificateRequest.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1PodCertificateRequest**](V1PodCertificateRequest.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 | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_certificate_signing_request** > object delete_certificate_signing_request(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) @@ -199,6 +393,98 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_cluster_trust_bundle** +> object delete_cluster_trust_bundle(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + +delete a ClusterTrustBundle + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the ClusterTrustBundle + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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 = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = api_instance.delete_cluster_trust_bundle(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of CertificatesV1Api->delete_cluster_trust_bundle:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->delete_cluster_trust_bundle: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterTrustBundle | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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 + +**object** + +### 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 | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_collection_certificate_signing_request** > V1Status delete_collection_certificate_signing_request(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) @@ -258,7 +544,1427 @@ with kubernetes.client.ApiClient(configuration) as api_client: print("The response of CertificatesV1Api->delete_collection_certificate_signing_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->delete_collection_certificate_signing_request: %s\n" % e) + print("Exception when calling CertificatesV1Api->delete_collection_certificate_signing_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| 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**: 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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_cluster_trust_bundle** +> V1Status delete_collection_cluster_trust_bundle(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + +delete collection of ClusterTrustBundle + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.client.models.v1_status import V1Status +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = api_instance.delete_collection_cluster_trust_bundle(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of CertificatesV1Api->delete_collection_cluster_trust_bundle:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->delete_collection_cluster_trust_bundle: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| 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**: 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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_pod_certificate_request** +> V1Status delete_collection_namespaced_pod_certificate_request(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + +delete collection of PodCertificateRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.client.models.v1_status import V1Status +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = api_instance.delete_collection_namespaced_pod_certificate_request(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of CertificatesV1Api->delete_collection_namespaced_pod_certificate_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->delete_collection_namespaced_pod_certificate_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| 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**: 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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_pod_certificate_request** +> object delete_namespaced_pod_certificate_request(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + +delete a PodCertificateRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the PodCertificateRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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 = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = api_instance.delete_namespaced_pod_certificate_request(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of CertificatesV1Api->delete_namespaced_pod_certificate_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->delete_namespaced_pod_certificate_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodCertificateRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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 + +**object** + +### 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 | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_api_resources** +> V1APIResourceList get_api_resources() + +get available resources + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_api_resource_list import V1APIResourceList +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + print("The response of CertificatesV1Api->get_api_resources:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->get_api_resources: %s\n" % e) +``` + + + +### 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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_certificate_signing_request** +> V1CertificateSigningRequestList list_certificate_signing_request(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind CertificateSigningRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_certificate_signing_request_list import V1CertificateSigningRequestList +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', 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) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = api_instance.list_certificate_signing_request(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of CertificatesV1Api->list_certificate_signing_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->list_certificate_signing_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', 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] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1CertificateSigningRequestList**](V1CertificateSigningRequestList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_cluster_trust_bundle** +> V1ClusterTrustBundleList list_cluster_trust_bundle(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind ClusterTrustBundle + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_cluster_trust_bundle_list import V1ClusterTrustBundleList +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', 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) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = api_instance.list_cluster_trust_bundle(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of CertificatesV1Api->list_cluster_trust_bundle:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->list_cluster_trust_bundle: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', 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] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ClusterTrustBundleList**](V1ClusterTrustBundleList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_pod_certificate_request** +> V1PodCertificateRequestList list_namespaced_pod_certificate_request(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind PodCertificateRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_pod_certificate_request_list import V1PodCertificateRequestList +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = api_instance.list_namespaced_pod_certificate_request(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of CertificatesV1Api->list_namespaced_pod_certificate_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->list_namespaced_pod_certificate_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1PodCertificateRequestList**](V1PodCertificateRequestList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_pod_certificate_request_for_all_namespaces** +> V1PodCertificateRequestList list_pod_certificate_request_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind PodCertificateRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_pod_certificate_request_list import V1PodCertificateRequestList +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1Api(api_client) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = api_instance.list_pod_certificate_request_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of CertificatesV1Api->list_pod_certificate_request_for_all_namespaces:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->list_pod_certificate_request_for_all_namespaces: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1PodCertificateRequestList**](V1PodCertificateRequestList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_certificate_signing_request** +> V1CertificateSigningRequest patch_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified CertificateSigningRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of CertificatesV1Api->patch_certificate_signing_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->patch_certificate_signing_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_certificate_signing_request_approval** +> V1CertificateSigningRequest patch_certificate_signing_request_approval(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update approval of the specified CertificateSigningRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_certificate_signing_request_approval(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of CertificatesV1Api->patch_certificate_signing_request_approval:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->patch_certificate_signing_request_approval: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_certificate_signing_request_status** +> V1CertificateSigningRequest patch_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update status of the specified CertificateSigningRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of CertificatesV1Api->patch_certificate_signing_request_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->patch_certificate_signing_request_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_cluster_trust_bundle** +> V1ClusterTrustBundle patch_cluster_trust_bundle(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified ClusterTrustBundle + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_cluster_trust_bundle import V1ClusterTrustBundle +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the ClusterTrustBundle + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_cluster_trust_bundle(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of CertificatesV1Api->patch_cluster_trust_bundle:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->patch_cluster_trust_bundle: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterTrustBundle | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1ClusterTrustBundle**](V1ClusterTrustBundle.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_pod_certificate_request** +> V1PodCertificateRequest patch_namespaced_pod_certificate_request(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified PodCertificateRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_pod_certificate_request import V1PodCertificateRequest +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the PodCertificateRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_namespaced_pod_certificate_request(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of CertificatesV1Api->patch_namespaced_pod_certificate_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->patch_namespaced_pod_certificate_request: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodCertificateRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1PodCertificateRequest**](V1PodCertificateRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_pod_certificate_request_status** +> V1PodCertificateRequest patch_namespaced_pod_certificate_request_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update status of the specified PodCertificateRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_pod_certificate_request import V1PodCertificateRequest +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the PodCertificateRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_namespaced_pod_certificate_request_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of CertificatesV1Api->patch_namespaced_pod_certificate_request_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->patch_namespaced_pod_certificate_request_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodCertificateRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1PodCertificateRequest**](V1PodCertificateRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_certificate_signing_request** +> V1CertificateSigningRequest read_certificate_signing_request(name, pretty=pretty) + +read the specified CertificateSigningRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest + pretty = 'pretty_example' # str | If 'true', 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) + + try: + api_response = api_instance.read_certificate_signing_request(name, pretty=pretty) + print("The response of CertificatesV1Api->read_certificate_signing_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CertificatesV1Api->read_certificate_signing_request: %s\n" % e) ``` @@ -268,26 +1974,12 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **grace_period_seconds** | **int**| 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] - **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] - **orphan_dependents** | **bool**| 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] - **propagation_policy** | **str**| 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] - **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] - **timeout_seconds** | **int**| 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) +[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) ### Authorization @@ -307,10 +1999,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_resources** -> V1APIResourceList get_api_resources() +# **read_certificate_signing_request_approval** +> V1CertificateSigningRequest read_certificate_signing_request_approval(name, pretty=pretty) -get available resources +read approval of the specified CertificateSigningRequest ### Example @@ -318,7 +2010,7 @@ get available resources ```python import kubernetes.client -from kubernetes.client.models.v1_api_resource_list import V1APIResourceList +from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest from kubernetes.client.rest import ApiException from pprint import pprint @@ -343,24 +2035,30 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest + pretty = 'pretty_example' # str | If 'true', 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) try: - api_response = api_instance.get_api_resources() - print("The response of CertificatesV1Api->get_api_resources:\n") + api_response = api_instance.read_certificate_signing_request_approval(name, pretty=pretty) + print("The response of CertificatesV1Api->read_certificate_signing_request_approval:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->get_api_resources: %s\n" % e) + print("Exception when calling CertificatesV1Api->read_certificate_signing_request_approval: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | + **pretty** | **str**| If 'true', 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) +[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) ### Authorization @@ -380,10 +2078,10 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_certificate_signing_request** -> V1CertificateSigningRequestList list_certificate_signing_request(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **read_certificate_signing_request_status** +> V1CertificateSigningRequest read_certificate_signing_request_status(name, pretty=pretty) -list or watch objects of kind CertificateSigningRequest +read status of the specified CertificateSigningRequest ### Example @@ -391,7 +2089,7 @@ list or watch objects of kind CertificateSigningRequest ```python import kubernetes.client -from kubernetes.client.models.v1_certificate_signing_request_list import V1CertificateSigningRequestList +from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest from kubernetes.client.rest import ApiException from pprint import pprint @@ -416,25 +2114,15 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CertificatesV1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest pretty = 'pretty_example' # str | If 'true', 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) - allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) - field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) - resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_certificate_signing_request(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of CertificatesV1Api->list_certificate_signing_request:\n") + api_response = api_instance.read_certificate_signing_request_status(name, pretty=pretty) + print("The response of CertificatesV1Api->read_certificate_signing_request_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->list_certificate_signing_request: %s\n" % e) + print("Exception when calling CertificatesV1Api->read_certificate_signing_request_status: %s\n" % e) ``` @@ -444,22 +2132,12 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CertificateSigningRequest | **pretty** | **str**| If 'true', 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] - **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] - **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1CertificateSigningRequestList**](V1CertificateSigningRequestList.md) +[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) ### Authorization @@ -468,7 +2146,7 @@ Name | Type | Description | Notes ### 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 @@ -479,10 +2157,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_certificate_signing_request** -> V1CertificateSigningRequest patch_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **read_cluster_trust_bundle** +> V1ClusterTrustBundle read_cluster_trust_bundle(name, pretty=pretty) -partially update the specified CertificateSigningRequest +read the specified ClusterTrustBundle ### Example @@ -490,7 +2168,7 @@ partially update the specified CertificateSigningRequest ```python import kubernetes.client -from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.client.models.v1_cluster_trust_bundle import V1ClusterTrustBundle from kubernetes.client.rest import ApiException from pprint import pprint @@ -515,20 +2193,15 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CertificatesV1Api(api_client) - name = 'name_example' # str | name of the CertificateSigningRequest - body = None # object | + name = 'name_example' # str | name of the ClusterTrustBundle pretty = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) - field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) try: - api_response = api_instance.patch_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of CertificatesV1Api->patch_certificate_signing_request:\n") + api_response = api_instance.read_cluster_trust_bundle(name, pretty=pretty) + print("The response of CertificatesV1Api->read_cluster_trust_bundle:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->patch_certificate_signing_request: %s\n" % e) + print("Exception when calling CertificatesV1Api->read_cluster_trust_bundle: %s\n" % e) ``` @@ -538,17 +2211,12 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **body** | **object**| | + **name** | **str**| name of the ClusterTrustBundle | **pretty** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] - **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 -[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) +[**V1ClusterTrustBundle**](V1ClusterTrustBundle.md) ### Authorization @@ -556,7 +2224,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details @@ -564,15 +2232,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_certificate_signing_request_approval** -> V1CertificateSigningRequest patch_certificate_signing_request_approval(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **read_namespaced_pod_certificate_request** +> V1PodCertificateRequest read_namespaced_pod_certificate_request(name, namespace, pretty=pretty) -partially update approval of the specified CertificateSigningRequest +read the specified PodCertificateRequest ### Example @@ -580,7 +2247,7 @@ partially update approval of the specified CertificateSigningRequest ```python import kubernetes.client -from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.client.models.v1_pod_certificate_request import V1PodCertificateRequest from kubernetes.client.rest import ApiException from pprint import pprint @@ -605,20 +2272,16 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CertificatesV1Api(api_client) - name = 'name_example' # str | name of the CertificateSigningRequest - body = None # object | + name = 'name_example' # str | name of the PodCertificateRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) - field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) try: - api_response = api_instance.patch_certificate_signing_request_approval(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of CertificatesV1Api->patch_certificate_signing_request_approval:\n") + api_response = api_instance.read_namespaced_pod_certificate_request(name, namespace, pretty=pretty) + print("The response of CertificatesV1Api->read_namespaced_pod_certificate_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->patch_certificate_signing_request_approval: %s\n" % e) + print("Exception when calling CertificatesV1Api->read_namespaced_pod_certificate_request: %s\n" % e) ``` @@ -628,17 +2291,13 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **body** | **object**| | + **name** | **str**| name of the PodCertificateRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] - **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 -[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) +[**V1PodCertificateRequest**](V1PodCertificateRequest.md) ### Authorization @@ -646,7 +2305,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details @@ -654,15 +2313,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_certificate_signing_request_status** -> V1CertificateSigningRequest patch_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **read_namespaced_pod_certificate_request_status** +> V1PodCertificateRequest read_namespaced_pod_certificate_request_status(name, namespace, pretty=pretty) -partially update status of the specified CertificateSigningRequest +read status of the specified PodCertificateRequest ### Example @@ -670,7 +2328,7 @@ partially update status of the specified CertificateSigningRequest ```python import kubernetes.client -from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.client.models.v1_pod_certificate_request import V1PodCertificateRequest from kubernetes.client.rest import ApiException from pprint import pprint @@ -695,20 +2353,16 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CertificatesV1Api(api_client) - name = 'name_example' # str | name of the CertificateSigningRequest - body = None # object | + name = 'name_example' # str | name of the PodCertificateRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) - field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) try: - api_response = api_instance.patch_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of CertificatesV1Api->patch_certificate_signing_request_status:\n") + api_response = api_instance.read_namespaced_pod_certificate_request_status(name, namespace, pretty=pretty) + print("The response of CertificatesV1Api->read_namespaced_pod_certificate_request_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->patch_certificate_signing_request_status: %s\n" % e) + print("Exception when calling CertificatesV1Api->read_namespaced_pod_certificate_request_status: %s\n" % e) ``` @@ -718,17 +2372,13 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **body** | **object**| | + **name** | **str**| name of the PodCertificateRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] - **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 -[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) +[**V1PodCertificateRequest**](V1PodCertificateRequest.md) ### Authorization @@ -736,7 +2386,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details @@ -744,15 +2394,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_certificate_signing_request** -> V1CertificateSigningRequest read_certificate_signing_request(name, pretty=pretty) +# **replace_certificate_signing_request** +> V1CertificateSigningRequest replace_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -read the specified CertificateSigningRequest +replace the specified CertificateSigningRequest ### Example @@ -786,14 +2435,18 @@ with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CertificatesV1Api(api_client) name = 'name_example' # str | name of the CertificateSigningRequest + body = kubernetes.client.V1CertificateSigningRequest() # V1CertificateSigningRequest | pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = api_instance.read_certificate_signing_request(name, pretty=pretty) - print("The response of CertificatesV1Api->read_certificate_signing_request:\n") + api_response = api_instance.replace_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of CertificatesV1Api->replace_certificate_signing_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->read_certificate_signing_request: %s\n" % e) + print("Exception when calling CertificatesV1Api->replace_certificate_signing_request: %s\n" % e) ``` @@ -804,7 +2457,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CertificateSigningRequest | + **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 @@ -824,14 +2481,15 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_certificate_signing_request_approval** -> V1CertificateSigningRequest read_certificate_signing_request_approval(name, pretty=pretty) +# **replace_certificate_signing_request_approval** +> V1CertificateSigningRequest replace_certificate_signing_request_approval(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -read approval of the specified CertificateSigningRequest +replace approval of the specified CertificateSigningRequest ### Example @@ -865,14 +2523,18 @@ with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CertificatesV1Api(api_client) name = 'name_example' # str | name of the CertificateSigningRequest + body = kubernetes.client.V1CertificateSigningRequest() # V1CertificateSigningRequest | pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = api_instance.read_certificate_signing_request_approval(name, pretty=pretty) - print("The response of CertificatesV1Api->read_certificate_signing_request_approval:\n") + api_response = api_instance.replace_certificate_signing_request_approval(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of CertificatesV1Api->replace_certificate_signing_request_approval:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->read_certificate_signing_request_approval: %s\n" % e) + print("Exception when calling CertificatesV1Api->replace_certificate_signing_request_approval: %s\n" % e) ``` @@ -883,7 +2545,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CertificateSigningRequest | + **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 @@ -903,14 +2569,15 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_certificate_signing_request_status** -> V1CertificateSigningRequest read_certificate_signing_request_status(name, pretty=pretty) +# **replace_certificate_signing_request_status** +> V1CertificateSigningRequest replace_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -read status of the specified CertificateSigningRequest +replace status of the specified CertificateSigningRequest ### Example @@ -944,14 +2611,18 @@ with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CertificatesV1Api(api_client) name = 'name_example' # str | name of the CertificateSigningRequest + body = kubernetes.client.V1CertificateSigningRequest() # V1CertificateSigningRequest | pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = api_instance.read_certificate_signing_request_status(name, pretty=pretty) - print("The response of CertificatesV1Api->read_certificate_signing_request_status:\n") + api_response = api_instance.replace_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of CertificatesV1Api->replace_certificate_signing_request_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->read_certificate_signing_request_status: %s\n" % e) + print("Exception when calling CertificatesV1Api->replace_certificate_signing_request_status: %s\n" % e) ``` @@ -962,7 +2633,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CertificateSigningRequest | + **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 @@ -982,14 +2657,15 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_certificate_signing_request** -> V1CertificateSigningRequest replace_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +# **replace_cluster_trust_bundle** +> V1ClusterTrustBundle replace_cluster_trust_bundle(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -replace the specified CertificateSigningRequest +replace the specified ClusterTrustBundle ### Example @@ -997,7 +2673,7 @@ replace the specified CertificateSigningRequest ```python import kubernetes.client -from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.client.models.v1_cluster_trust_bundle import V1ClusterTrustBundle from kubernetes.client.rest import ApiException from pprint import pprint @@ -1022,19 +2698,19 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CertificatesV1Api(api_client) - name = 'name_example' # str | name of the CertificateSigningRequest - body = kubernetes.client.V1CertificateSigningRequest() # V1CertificateSigningRequest | + name = 'name_example' # str | name of the ClusterTrustBundle + body = kubernetes.client.V1ClusterTrustBundle() # V1ClusterTrustBundle | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = api_instance.replace_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of CertificatesV1Api->replace_certificate_signing_request:\n") + api_response = api_instance.replace_cluster_trust_bundle(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of CertificatesV1Api->replace_cluster_trust_bundle:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->replace_certificate_signing_request: %s\n" % e) + print("Exception when calling CertificatesV1Api->replace_cluster_trust_bundle: %s\n" % e) ``` @@ -1044,8 +2720,8 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | + **name** | **str**| name of the ClusterTrustBundle | + **body** | [**V1ClusterTrustBundle**](V1ClusterTrustBundle.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -1053,7 +2729,7 @@ Name | Type | Description | Notes ### Return type -[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) +[**V1ClusterTrustBundle**](V1ClusterTrustBundle.md) ### Authorization @@ -1074,10 +2750,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_certificate_signing_request_approval** -> V1CertificateSigningRequest replace_certificate_signing_request_approval(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +# **replace_namespaced_pod_certificate_request** +> V1PodCertificateRequest replace_namespaced_pod_certificate_request(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -replace approval of the specified CertificateSigningRequest +replace the specified PodCertificateRequest ### Example @@ -1085,7 +2761,7 @@ replace approval of the specified CertificateSigningRequest ```python import kubernetes.client -from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.client.models.v1_pod_certificate_request import V1PodCertificateRequest from kubernetes.client.rest import ApiException from pprint import pprint @@ -1110,19 +2786,20 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CertificatesV1Api(api_client) - name = 'name_example' # str | name of the CertificateSigningRequest - body = kubernetes.client.V1CertificateSigningRequest() # V1CertificateSigningRequest | + name = 'name_example' # str | name of the PodCertificateRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.client.V1PodCertificateRequest() # V1PodCertificateRequest | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = api_instance.replace_certificate_signing_request_approval(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of CertificatesV1Api->replace_certificate_signing_request_approval:\n") + api_response = api_instance.replace_namespaced_pod_certificate_request(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of CertificatesV1Api->replace_namespaced_pod_certificate_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->replace_certificate_signing_request_approval: %s\n" % e) + print("Exception when calling CertificatesV1Api->replace_namespaced_pod_certificate_request: %s\n" % e) ``` @@ -1132,8 +2809,9 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | + **name** | **str**| name of the PodCertificateRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1PodCertificateRequest**](V1PodCertificateRequest.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -1141,7 +2819,7 @@ Name | Type | Description | Notes ### Return type -[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) +[**V1PodCertificateRequest**](V1PodCertificateRequest.md) ### Authorization @@ -1162,10 +2840,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_certificate_signing_request_status** -> V1CertificateSigningRequest replace_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +# **replace_namespaced_pod_certificate_request_status** +> V1PodCertificateRequest replace_namespaced_pod_certificate_request_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -replace status of the specified CertificateSigningRequest +replace status of the specified PodCertificateRequest ### Example @@ -1173,7 +2851,7 @@ replace status of the specified CertificateSigningRequest ```python import kubernetes.client -from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest +from kubernetes.client.models.v1_pod_certificate_request import V1PodCertificateRequest from kubernetes.client.rest import ApiException from pprint import pprint @@ -1198,19 +2876,20 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CertificatesV1Api(api_client) - name = 'name_example' # str | name of the CertificateSigningRequest - body = kubernetes.client.V1CertificateSigningRequest() # V1CertificateSigningRequest | + name = 'name_example' # str | name of the PodCertificateRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.client.V1PodCertificateRequest() # V1PodCertificateRequest | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = api_instance.replace_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of CertificatesV1Api->replace_certificate_signing_request_status:\n") + api_response = api_instance.replace_namespaced_pod_certificate_request_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of CertificatesV1Api->replace_namespaced_pod_certificate_request_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling CertificatesV1Api->replace_certificate_signing_request_status: %s\n" % e) + print("Exception when calling CertificatesV1Api->replace_namespaced_pod_certificate_request_status: %s\n" % e) ``` @@ -1220,8 +2899,9 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **body** | [**V1CertificateSigningRequest**](V1CertificateSigningRequest.md)| | + **name** | **str**| name of the PodCertificateRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1PodCertificateRequest**](V1PodCertificateRequest.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -1229,7 +2909,7 @@ Name | Type | Description | Notes ### Return type -[**V1CertificateSigningRequest**](V1CertificateSigningRequest.md) +[**V1PodCertificateRequest**](V1PodCertificateRequest.md) ### Authorization diff --git a/kubernetes/docs/CertificatesV1alpha1Api.md b/kubernetes/docs/CertificatesV1alpha1Api.md deleted file mode 100644 index f38b10fad3..0000000000 --- a/kubernetes/docs/CertificatesV1alpha1Api.md +++ /dev/null @@ -1,731 +0,0 @@ -# kubernetes.client.CertificatesV1alpha1Api - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_cluster_trust_bundle**](CertificatesV1alpha1Api.md#create_cluster_trust_bundle) | **POST** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | -[**delete_cluster_trust_bundle**](CertificatesV1alpha1Api.md#delete_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | -[**delete_collection_cluster_trust_bundle**](CertificatesV1alpha1Api.md#delete_collection_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | -[**get_api_resources**](CertificatesV1alpha1Api.md#get_api_resources) | **GET** /apis/certificates.k8s.io/v1alpha1/ | -[**list_cluster_trust_bundle**](CertificatesV1alpha1Api.md#list_cluster_trust_bundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | -[**patch_cluster_trust_bundle**](CertificatesV1alpha1Api.md#patch_cluster_trust_bundle) | **PATCH** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | -[**read_cluster_trust_bundle**](CertificatesV1alpha1Api.md#read_cluster_trust_bundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | -[**replace_cluster_trust_bundle**](CertificatesV1alpha1Api.md#replace_cluster_trust_bundle) | **PUT** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | - - -# **create_cluster_trust_bundle** -> V1alpha1ClusterTrustBundle create_cluster_trust_bundle(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - -create a ClusterTrustBundle - -### Example - -* Api Key Authentication (BearerToken): - -```python -import kubernetes.client -from kubernetes.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = kubernetes.client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: BearerToken -configuration.api_key['BearerToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['BearerToken'] = 'Bearer' - -# Enter a context with an instance of the API client -with kubernetes.client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = kubernetes.client.CertificatesV1alpha1Api(api_client) - body = kubernetes.client.V1alpha1ClusterTrustBundle() # V1alpha1ClusterTrustBundle | - pretty = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) - field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) - - try: - api_response = api_instance.create_cluster_trust_bundle(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of CertificatesV1alpha1Api->create_cluster_trust_bundle:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CertificatesV1alpha1Api->create_cluster_trust_bundle: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md)| | - **pretty** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] - **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 - -[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.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 | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_cluster_trust_bundle** -> object delete_cluster_trust_bundle(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - -delete a ClusterTrustBundle - -### Example - -* Api Key Authentication (BearerToken): - -```python -import kubernetes.client -from kubernetes.client.models.v1_delete_options import V1DeleteOptions -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = kubernetes.client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: BearerToken -configuration.api_key['BearerToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['BearerToken'] = 'Bearer' - -# Enter a context with an instance of the API client -with kubernetes.client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = kubernetes.client.CertificatesV1alpha1Api(api_client) - name = 'name_example' # str | name of the ClusterTrustBundle - pretty = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - grace_period_seconds = 56 # int | 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) - ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) - orphan_dependents = True # bool | 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) - propagation_policy = 'propagation_policy_example' # str | 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 = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) - - try: - api_response = api_instance.delete_cluster_trust_bundle(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of CertificatesV1alpha1Api->delete_cluster_trust_bundle:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CertificatesV1alpha1Api->delete_cluster_trust_bundle: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterTrustBundle | - **pretty** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **grace_period_seconds** | **int**| 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] - **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] - **orphan_dependents** | **bool**| 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] - **propagation_policy** | **str**| 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 - -**object** - -### 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 | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_collection_cluster_trust_bundle** -> V1Status delete_collection_cluster_trust_bundle(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - -delete collection of ClusterTrustBundle - -### Example - -* Api Key Authentication (BearerToken): - -```python -import kubernetes.client -from kubernetes.client.models.v1_delete_options import V1DeleteOptions -from kubernetes.client.models.v1_status import V1Status -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = kubernetes.client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: BearerToken -configuration.api_key['BearerToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['BearerToken'] = 'Bearer' - -# Enter a context with an instance of the API client -with kubernetes.client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = kubernetes.client.CertificatesV1alpha1Api(api_client) - pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - grace_period_seconds = 56 # int | 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) - ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) - label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) - orphan_dependents = True # bool | 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) - propagation_policy = 'propagation_policy_example' # str | 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) - resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) - - try: - api_response = api_instance.delete_collection_cluster_trust_bundle(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - print("The response of CertificatesV1alpha1Api->delete_collection_cluster_trust_bundle:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CertificatesV1alpha1Api->delete_collection_cluster_trust_bundle: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **grace_period_seconds** | **int**| 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] - **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] - **orphan_dependents** | **bool**| 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] - **propagation_policy** | **str**| 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] - **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] - **timeout_seconds** | **int**| 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**: 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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_api_resources** -> V1APIResourceList get_api_resources() - -get available resources - -### Example - -* Api Key Authentication (BearerToken): - -```python -import kubernetes.client -from kubernetes.client.models.v1_api_resource_list import V1APIResourceList -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = kubernetes.client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: BearerToken -configuration.api_key['BearerToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['BearerToken'] = 'Bearer' - -# Enter a context with an instance of the API client -with kubernetes.client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = kubernetes.client.CertificatesV1alpha1Api(api_client) - - try: - api_response = api_instance.get_api_resources() - print("The response of CertificatesV1alpha1Api->get_api_resources:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CertificatesV1alpha1Api->get_api_resources: %s\n" % e) -``` - - - -### 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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_cluster_trust_bundle** -> V1alpha1ClusterTrustBundleList list_cluster_trust_bundle(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - -list or watch objects of kind ClusterTrustBundle - -### Example - -* Api Key Authentication (BearerToken): - -```python -import kubernetes.client -from kubernetes.client.models.v1alpha1_cluster_trust_bundle_list import V1alpha1ClusterTrustBundleList -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = kubernetes.client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: BearerToken -configuration.api_key['BearerToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['BearerToken'] = 'Bearer' - -# Enter a context with an instance of the API client -with kubernetes.client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = kubernetes.client.CertificatesV1alpha1Api(api_client) - pretty = 'pretty_example' # str | If 'true', 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) - allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) - field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) - resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - - try: - api_response = api_instance.list_cluster_trust_bundle(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of CertificatesV1alpha1Api->list_cluster_trust_bundle:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CertificatesV1alpha1Api->list_cluster_trust_bundle: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **str**| If 'true', 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] - **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] - **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1ClusterTrustBundleList**](V1alpha1ClusterTrustBundleList.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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_cluster_trust_bundle** -> V1alpha1ClusterTrustBundle patch_cluster_trust_bundle(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - -partially update the specified ClusterTrustBundle - -### Example - -* Api Key Authentication (BearerToken): - -```python -import kubernetes.client -from kubernetes.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = kubernetes.client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: BearerToken -configuration.api_key['BearerToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['BearerToken'] = 'Bearer' - -# Enter a context with an instance of the API client -with kubernetes.client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = kubernetes.client.CertificatesV1alpha1Api(api_client) - name = 'name_example' # str | name of the ClusterTrustBundle - body = None # object | - pretty = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) - field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) - - try: - api_response = api_instance.patch_cluster_trust_bundle(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of CertificatesV1alpha1Api->patch_cluster_trust_bundle:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CertificatesV1alpha1Api->patch_cluster_trust_bundle: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterTrustBundle | - **body** | **object**| | - **pretty** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] - **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 - -[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **read_cluster_trust_bundle** -> V1alpha1ClusterTrustBundle read_cluster_trust_bundle(name, pretty=pretty) - -read the specified ClusterTrustBundle - -### Example - -* Api Key Authentication (BearerToken): - -```python -import kubernetes.client -from kubernetes.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = kubernetes.client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: BearerToken -configuration.api_key['BearerToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['BearerToken'] = 'Bearer' - -# Enter a context with an instance of the API client -with kubernetes.client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = kubernetes.client.CertificatesV1alpha1Api(api_client) - name = 'name_example' # str | name of the ClusterTrustBundle - pretty = 'pretty_example' # str | If 'true', 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) - - try: - api_response = api_instance.read_cluster_trust_bundle(name, pretty=pretty) - print("The response of CertificatesV1alpha1Api->read_cluster_trust_bundle:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CertificatesV1alpha1Api->read_cluster_trust_bundle: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterTrustBundle | - **pretty** | **str**| If 'true', 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 - -[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.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 | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **replace_cluster_trust_bundle** -> V1alpha1ClusterTrustBundle replace_cluster_trust_bundle(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - -replace the specified ClusterTrustBundle - -### Example - -* Api Key Authentication (BearerToken): - -```python -import kubernetes.client -from kubernetes.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = kubernetes.client.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: BearerToken -configuration.api_key['BearerToken'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['BearerToken'] = 'Bearer' - -# Enter a context with an instance of the API client -with kubernetes.client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = kubernetes.client.CertificatesV1alpha1Api(api_client) - name = 'name_example' # str | name of the ClusterTrustBundle - body = kubernetes.client.V1alpha1ClusterTrustBundle() # V1alpha1ClusterTrustBundle | - pretty = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) - field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) - - try: - api_response = api_instance.replace_cluster_trust_bundle(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of CertificatesV1alpha1Api->replace_cluster_trust_bundle:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CertificatesV1alpha1Api->replace_cluster_trust_bundle: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterTrustBundle | - **body** | [**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md)| | - **pretty** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] - **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 - -[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.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 | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/CoordinationApi.md b/kubernetes/docs/CoordinationApi.md index f0de054dee..8180ba249a 100644 --- a/kubernetes/docs/CoordinationApi.md +++ b/kubernetes/docs/CoordinationApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/CoreApi.md b/kubernetes/docs/CoreApi.md index 99492ae1c7..3643a257d6 100644 --- a/kubernetes/docs/CoreApi.md +++ b/kubernetes/docs/CoreApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/DiscoveryApi.md b/kubernetes/docs/DiscoveryApi.md index def7872c69..7e4eed9845 100644 --- a/kubernetes/docs/DiscoveryApi.md +++ b/kubernetes/docs/DiscoveryApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/EventsApi.md b/kubernetes/docs/EventsApi.md index ce7f6609ae..a1f405b3e3 100644 --- a/kubernetes/docs/EventsApi.md +++ b/kubernetes/docs/EventsApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/FlowcontrolApiserverApi.md b/kubernetes/docs/FlowcontrolApiserverApi.md index b676ff76c1..9c619c7f66 100644 --- a/kubernetes/docs/FlowcontrolApiserverApi.md +++ b/kubernetes/docs/FlowcontrolApiserverApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/InternalApiserverApi.md b/kubernetes/docs/InternalApiserverApi.md index 05a255e8c1..358bf360a2 100644 --- a/kubernetes/docs/InternalApiserverApi.md +++ b/kubernetes/docs/InternalApiserverApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/LifecycleApi.md b/kubernetes/docs/LifecycleApi.md new file mode 100644 index 0000000000..26c3aac363 --- /dev/null +++ b/kubernetes/docs/LifecycleApi.md @@ -0,0 +1,81 @@ +# kubernetes.client.LifecycleApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_api_group**](LifecycleApi.md#get_api_group) | **GET** /apis/lifecycle.k8s.io/ | + + +# **get_api_group** +> V1APIGroup get_api_group() + +get information of a group + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_api_group import V1APIGroup +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.LifecycleApi(api_client) + + try: + api_response = api_instance.get_api_group() + print("The response of LifecycleApi->get_api_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling LifecycleApi->get_api_group: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V1APIGroup**](V1APIGroup.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/NetworkingV1beta1Api.md b/kubernetes/docs/LifecycleV1alpha1Api.md similarity index 64% rename from kubernetes/docs/NetworkingV1beta1Api.md rename to kubernetes/docs/LifecycleV1alpha1Api.md index 943e76959f..5d041fdf36 100644 --- a/kubernetes/docs/NetworkingV1beta1Api.md +++ b/kubernetes/docs/LifecycleV1alpha1Api.md @@ -1,33 +1,38 @@ -# kubernetes.client.NetworkingV1beta1Api +# kubernetes.client.LifecycleV1alpha1Api All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**create_ip_address**](NetworkingV1beta1Api.md#create_ip_address) | **POST** /apis/networking.k8s.io/v1beta1/ipaddresses | -[**create_service_cidr**](NetworkingV1beta1Api.md#create_service_cidr) | **POST** /apis/networking.k8s.io/v1beta1/servicecidrs | -[**delete_collection_ip_address**](NetworkingV1beta1Api.md#delete_collection_ip_address) | **DELETE** /apis/networking.k8s.io/v1beta1/ipaddresses | -[**delete_collection_service_cidr**](NetworkingV1beta1Api.md#delete_collection_service_cidr) | **DELETE** /apis/networking.k8s.io/v1beta1/servicecidrs | -[**delete_ip_address**](NetworkingV1beta1Api.md#delete_ip_address) | **DELETE** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | -[**delete_service_cidr**](NetworkingV1beta1Api.md#delete_service_cidr) | **DELETE** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | -[**get_api_resources**](NetworkingV1beta1Api.md#get_api_resources) | **GET** /apis/networking.k8s.io/v1beta1/ | -[**list_ip_address**](NetworkingV1beta1Api.md#list_ip_address) | **GET** /apis/networking.k8s.io/v1beta1/ipaddresses | -[**list_service_cidr**](NetworkingV1beta1Api.md#list_service_cidr) | **GET** /apis/networking.k8s.io/v1beta1/servicecidrs | -[**patch_ip_address**](NetworkingV1beta1Api.md#patch_ip_address) | **PATCH** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | -[**patch_service_cidr**](NetworkingV1beta1Api.md#patch_service_cidr) | **PATCH** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | -[**patch_service_cidr_status**](NetworkingV1beta1Api.md#patch_service_cidr_status) | **PATCH** /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status | -[**read_ip_address**](NetworkingV1beta1Api.md#read_ip_address) | **GET** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | -[**read_service_cidr**](NetworkingV1beta1Api.md#read_service_cidr) | **GET** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | -[**read_service_cidr_status**](NetworkingV1beta1Api.md#read_service_cidr_status) | **GET** /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status | -[**replace_ip_address**](NetworkingV1beta1Api.md#replace_ip_address) | **PUT** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | -[**replace_service_cidr**](NetworkingV1beta1Api.md#replace_service_cidr) | **PUT** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | -[**replace_service_cidr_status**](NetworkingV1beta1Api.md#replace_service_cidr_status) | **PUT** /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status | - - -# **create_ip_address** -> V1beta1IPAddress create_ip_address(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - -create an IPAddress +[**create_namespaced_eviction**](LifecycleV1alpha1Api.md#create_namespaced_eviction) | **POST** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions | +[**create_namespaced_eviction_request**](LifecycleV1alpha1Api.md#create_namespaced_eviction_request) | **POST** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests | +[**delete_collection_namespaced_eviction**](LifecycleV1alpha1Api.md#delete_collection_namespaced_eviction) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions | +[**delete_collection_namespaced_eviction_request**](LifecycleV1alpha1Api.md#delete_collection_namespaced_eviction_request) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests | +[**delete_namespaced_eviction**](LifecycleV1alpha1Api.md#delete_namespaced_eviction) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | +[**delete_namespaced_eviction_request**](LifecycleV1alpha1Api.md#delete_namespaced_eviction_request) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | +[**get_api_resources**](LifecycleV1alpha1Api.md#get_api_resources) | **GET** /apis/lifecycle.k8s.io/v1alpha1/ | +[**list_eviction_for_all_namespaces**](LifecycleV1alpha1Api.md#list_eviction_for_all_namespaces) | **GET** /apis/lifecycle.k8s.io/v1alpha1/evictions | +[**list_eviction_request_for_all_namespaces**](LifecycleV1alpha1Api.md#list_eviction_request_for_all_namespaces) | **GET** /apis/lifecycle.k8s.io/v1alpha1/evictionrequests | +[**list_namespaced_eviction**](LifecycleV1alpha1Api.md#list_namespaced_eviction) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions | +[**list_namespaced_eviction_request**](LifecycleV1alpha1Api.md#list_namespaced_eviction_request) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests | +[**patch_namespaced_eviction**](LifecycleV1alpha1Api.md#patch_namespaced_eviction) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | +[**patch_namespaced_eviction_request**](LifecycleV1alpha1Api.md#patch_namespaced_eviction_request) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | +[**patch_namespaced_eviction_request_status**](LifecycleV1alpha1Api.md#patch_namespaced_eviction_request_status) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status | +[**patch_namespaced_eviction_status**](LifecycleV1alpha1Api.md#patch_namespaced_eviction_status) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status | +[**read_namespaced_eviction**](LifecycleV1alpha1Api.md#read_namespaced_eviction) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | +[**read_namespaced_eviction_request**](LifecycleV1alpha1Api.md#read_namespaced_eviction_request) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | +[**read_namespaced_eviction_request_status**](LifecycleV1alpha1Api.md#read_namespaced_eviction_request_status) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status | +[**read_namespaced_eviction_status**](LifecycleV1alpha1Api.md#read_namespaced_eviction_status) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status | +[**replace_namespaced_eviction**](LifecycleV1alpha1Api.md#replace_namespaced_eviction) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | +[**replace_namespaced_eviction_request**](LifecycleV1alpha1Api.md#replace_namespaced_eviction_request) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | +[**replace_namespaced_eviction_request_status**](LifecycleV1alpha1Api.md#replace_namespaced_eviction_request_status) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status | +[**replace_namespaced_eviction_status**](LifecycleV1alpha1Api.md#replace_namespaced_eviction_status) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status | + + +# **create_namespaced_eviction** +> V1alpha1Eviction create_namespaced_eviction(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +create an Eviction ### Example @@ -35,7 +40,7 @@ create an IPAddress ```python import kubernetes.client -from kubernetes.client.models.v1beta1_ip_address import V1beta1IPAddress +from kubernetes.client.models.v1alpha1_eviction import V1alpha1Eviction from kubernetes.client.rest import ApiException from pprint import pprint @@ -59,19 +64,20 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) - body = kubernetes.client.V1beta1IPAddress() # V1beta1IPAddress | + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.client.V1alpha1Eviction() # V1alpha1Eviction | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = api_instance.create_ip_address(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of NetworkingV1beta1Api->create_ip_address:\n") + api_response = api_instance.create_namespaced_eviction(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of LifecycleV1alpha1Api->create_namespaced_eviction:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->create_ip_address: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->create_namespaced_eviction: %s\n" % e) ``` @@ -81,7 +87,8 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1IPAddress**](V1beta1IPAddress.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1Eviction**](V1alpha1Eviction.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -89,7 +96,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1IPAddress**](V1beta1IPAddress.md) +[**V1alpha1Eviction**](V1alpha1Eviction.md) ### Authorization @@ -111,10 +118,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **create_service_cidr** -> V1beta1ServiceCIDR create_service_cidr(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +# **create_namespaced_eviction_request** +> V1alpha1EvictionRequest create_namespaced_eviction_request(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -create a ServiceCIDR +create an EvictionRequest ### Example @@ -122,7 +129,7 @@ create a ServiceCIDR ```python import kubernetes.client -from kubernetes.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR +from kubernetes.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest from kubernetes.client.rest import ApiException from pprint import pprint @@ -146,19 +153,20 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) - body = kubernetes.client.V1beta1ServiceCIDR() # V1beta1ServiceCIDR | + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.client.V1alpha1EvictionRequest() # V1alpha1EvictionRequest | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = api_instance.create_service_cidr(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of NetworkingV1beta1Api->create_service_cidr:\n") + api_response = api_instance.create_namespaced_eviction_request(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of LifecycleV1alpha1Api->create_namespaced_eviction_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->create_service_cidr: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->create_namespaced_eviction_request: %s\n" % e) ``` @@ -168,7 +176,8 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md)| | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -176,7 +185,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -198,10 +207,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_ip_address** -> V1Status delete_collection_ip_address(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) +# **delete_collection_namespaced_eviction** +> V1Status delete_collection_namespaced_eviction(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) -delete collection of IPAddress +delete collection of Eviction ### Example @@ -234,7 +243,8 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -253,11 +263,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = api_instance.delete_collection_ip_address(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - print("The response of NetworkingV1beta1Api->delete_collection_ip_address:\n") + api_response = api_instance.delete_collection_namespaced_eviction(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of LifecycleV1alpha1Api->delete_collection_namespaced_eviction:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->delete_collection_ip_address: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->delete_collection_namespaced_eviction: %s\n" % e) ``` @@ -267,6 +277,7 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] @@ -306,10 +317,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_service_cidr** -> V1Status delete_collection_service_cidr(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) +# **delete_collection_namespaced_eviction_request** +> V1Status delete_collection_namespaced_eviction_request(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) -delete collection of ServiceCIDR +delete collection of EvictionRequest ### Example @@ -342,7 +353,8 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -361,11 +373,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = api_instance.delete_collection_service_cidr(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - print("The response of NetworkingV1beta1Api->delete_collection_service_cidr:\n") + api_response = api_instance.delete_collection_namespaced_eviction_request(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of LifecycleV1alpha1Api->delete_collection_namespaced_eviction_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->delete_collection_service_cidr: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->delete_collection_namespaced_eviction_request: %s\n" % e) ``` @@ -375,6 +387,7 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] @@ -414,10 +427,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_ip_address** -> object delete_ip_address(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) +# **delete_namespaced_eviction** +> object delete_namespaced_eviction(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) -delete an IPAddress +delete an Eviction ### Example @@ -449,8 +462,9 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the IPAddress + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the Eviction + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) grace_period_seconds = 56 # int | 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) @@ -460,11 +474,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = api_instance.delete_ip_address(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of NetworkingV1beta1Api->delete_ip_address:\n") + api_response = api_instance.delete_namespaced_eviction(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of LifecycleV1alpha1Api->delete_namespaced_eviction:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->delete_ip_address: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->delete_namespaced_eviction: %s\n" % e) ``` @@ -474,7 +488,8 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the IPAddress | + **name** | **str**| name of the Eviction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **grace_period_seconds** | **int**| 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] @@ -506,10 +521,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_service_cidr** -> object delete_service_cidr(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) +# **delete_namespaced_eviction_request** +> object delete_namespaced_eviction_request(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) -delete a ServiceCIDR +delete an EvictionRequest ### Example @@ -541,8 +556,9 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the ServiceCIDR + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the EvictionRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) grace_period_seconds = 56 # int | 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) @@ -552,11 +568,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = api_instance.delete_service_cidr(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of NetworkingV1beta1Api->delete_service_cidr:\n") + api_response = api_instance.delete_namespaced_eviction_request(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of LifecycleV1alpha1Api->delete_namespaced_eviction_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->delete_service_cidr: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->delete_namespaced_eviction_request: %s\n" % e) ``` @@ -566,7 +582,8 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ServiceCIDR | + **name** | **str**| name of the EvictionRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **grace_period_seconds** | **int**| 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] @@ -633,14 +650,14 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) try: api_response = api_instance.get_api_resources() - print("The response of NetworkingV1beta1Api->get_api_resources:\n") + print("The response of LifecycleV1alpha1Api->get_api_resources:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->get_api_resources: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->get_api_resources: %s\n" % e) ``` @@ -671,10 +688,10 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_ip_address** -> V1beta1IPAddressList list_ip_address(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **list_eviction_for_all_namespaces** +> V1alpha1EvictionList list_eviction_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind IPAddress +list or watch objects of kind Eviction ### Example @@ -682,7 +699,7 @@ list or watch objects of kind IPAddress ```python import kubernetes.client -from kubernetes.client.models.v1beta1_ip_address_list import V1beta1IPAddressList +from kubernetes.client.models.v1alpha1_eviction_list import V1alpha1EvictionList from kubernetes.client.rest import ApiException from pprint import pprint @@ -706,13 +723,112 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = api_instance.list_eviction_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of LifecycleV1alpha1Api->list_eviction_for_all_namespaces:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling LifecycleV1alpha1Api->list_eviction_for_all_namespaces: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1EvictionList**](V1alpha1EvictionList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_eviction_request_for_all_namespaces** +> V1alpha1EvictionRequestList list_eviction_request_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind EvictionRequest + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha1_eviction_request_list import V1alpha1EvictionRequestList +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -721,11 +837,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_ip_address(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of NetworkingV1beta1Api->list_ip_address:\n") + api_response = api_instance.list_eviction_request_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of LifecycleV1alpha1Api->list_eviction_request_for_all_namespaces:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->list_ip_address: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->list_eviction_request_for_all_namespaces: %s\n" % e) ``` @@ -735,6 +851,107 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1EvictionRequestList**](V1alpha1EvictionRequestList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_eviction** +> V1alpha1EvictionList list_namespaced_eviction(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind Eviction + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha1_eviction_list import V1alpha1EvictionList +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = api_instance.list_namespaced_eviction(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of LifecycleV1alpha1Api->list_namespaced_eviction:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling LifecycleV1alpha1Api->list_namespaced_eviction: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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] **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] @@ -750,7 +967,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1IPAddressList**](V1beta1IPAddressList.md) +[**V1alpha1EvictionList**](V1alpha1EvictionList.md) ### Authorization @@ -770,10 +987,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_service_cidr** -> V1beta1ServiceCIDRList list_service_cidr(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_eviction_request** +> V1alpha1EvictionRequestList list_namespaced_eviction_request(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind ServiceCIDR +list or watch objects of kind EvictionRequest ### Example @@ -781,7 +998,7 @@ list or watch objects of kind ServiceCIDR ```python import kubernetes.client -from kubernetes.client.models.v1beta1_service_cidr_list import V1beta1ServiceCIDRList +from kubernetes.client.models.v1alpha1_eviction_request_list import V1alpha1EvictionRequestList from kubernetes.client.rest import ApiException from pprint import pprint @@ -805,7 +1022,8 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) @@ -820,11 +1038,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_service_cidr(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of NetworkingV1beta1Api->list_service_cidr:\n") + api_response = api_instance.list_namespaced_eviction_request(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of LifecycleV1alpha1Api->list_namespaced_eviction_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->list_service_cidr: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->list_namespaced_eviction_request: %s\n" % e) ``` @@ -834,6 +1052,7 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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] **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] @@ -849,7 +1068,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ServiceCIDRList**](V1beta1ServiceCIDRList.md) +[**V1alpha1EvictionRequestList**](V1alpha1EvictionRequestList.md) ### Authorization @@ -869,10 +1088,102 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_ip_address** -> V1beta1IPAddress patch_ip_address(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **patch_namespaced_eviction** +> V1alpha1Eviction patch_namespaced_eviction(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified Eviction + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha1_eviction import V1alpha1Eviction +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the Eviction + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_namespaced_eviction(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of LifecycleV1alpha1Api->patch_namespaced_eviction:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling LifecycleV1alpha1Api->patch_namespaced_eviction: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Eviction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1alpha1Eviction**](V1alpha1Eviction.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_eviction_request** +> V1alpha1EvictionRequest patch_namespaced_eviction_request(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) -partially update the specified IPAddress +partially update the specified EvictionRequest ### Example @@ -880,7 +1191,7 @@ partially update the specified IPAddress ```python import kubernetes.client -from kubernetes.client.models.v1beta1_ip_address import V1beta1IPAddress +from kubernetes.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest from kubernetes.client.rest import ApiException from pprint import pprint @@ -904,8 +1215,9 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the IPAddress + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the EvictionRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -914,11 +1226,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: force = True # bool | 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) try: - api_response = api_instance.patch_ip_address(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of NetworkingV1beta1Api->patch_ip_address:\n") + api_response = api_instance.patch_namespaced_eviction_request(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of LifecycleV1alpha1Api->patch_namespaced_eviction_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->patch_ip_address: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->patch_namespaced_eviction_request: %s\n" % e) ``` @@ -928,7 +1240,8 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the IPAddress | + **name** | **str**| name of the EvictionRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] @@ -938,7 +1251,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1IPAddress**](V1beta1IPAddress.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -959,10 +1272,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_service_cidr** -> V1beta1ServiceCIDR patch_service_cidr(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **patch_namespaced_eviction_request_status** +> V1alpha1EvictionRequest patch_namespaced_eviction_request_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) -partially update the specified ServiceCIDR +partially update status of the specified EvictionRequest ### Example @@ -970,7 +1283,7 @@ partially update the specified ServiceCIDR ```python import kubernetes.client -from kubernetes.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR +from kubernetes.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest from kubernetes.client.rest import ApiException from pprint import pprint @@ -994,8 +1307,9 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the ServiceCIDR + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the EvictionRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -1004,11 +1318,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: force = True # bool | 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) try: - api_response = api_instance.patch_service_cidr(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of NetworkingV1beta1Api->patch_service_cidr:\n") + api_response = api_instance.patch_namespaced_eviction_request_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of LifecycleV1alpha1Api->patch_namespaced_eviction_request_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->patch_service_cidr: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->patch_namespaced_eviction_request_status: %s\n" % e) ``` @@ -1018,7 +1332,8 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ServiceCIDR | + **name** | **str**| name of the EvictionRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] @@ -1028,7 +1343,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -1049,10 +1364,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_service_cidr_status** -> V1beta1ServiceCIDR patch_service_cidr_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **patch_namespaced_eviction_status** +> V1alpha1Eviction patch_namespaced_eviction_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) -partially update status of the specified ServiceCIDR +partially update status of the specified Eviction ### Example @@ -1060,7 +1375,7 @@ partially update status of the specified ServiceCIDR ```python import kubernetes.client -from kubernetes.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR +from kubernetes.client.models.v1alpha1_eviction import V1alpha1Eviction from kubernetes.client.rest import ApiException from pprint import pprint @@ -1084,8 +1399,9 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the ServiceCIDR + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the Eviction + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -1094,11 +1410,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: force = True # bool | 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) try: - api_response = api_instance.patch_service_cidr_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of NetworkingV1beta1Api->patch_service_cidr_status:\n") + api_response = api_instance.patch_namespaced_eviction_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of LifecycleV1alpha1Api->patch_namespaced_eviction_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->patch_service_cidr_status: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->patch_namespaced_eviction_status: %s\n" % e) ``` @@ -1108,7 +1424,8 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ServiceCIDR | + **name** | **str**| name of the Eviction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] @@ -1118,7 +1435,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1Eviction**](V1alpha1Eviction.md) ### Authorization @@ -1139,10 +1456,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_ip_address** -> V1beta1IPAddress read_ip_address(name, pretty=pretty) +# **read_namespaced_eviction** +> V1alpha1Eviction read_namespaced_eviction(name, namespace, pretty=pretty) -read the specified IPAddress +read the specified Eviction ### Example @@ -1150,7 +1467,7 @@ read the specified IPAddress ```python import kubernetes.client -from kubernetes.client.models.v1beta1_ip_address import V1beta1IPAddress +from kubernetes.client.models.v1alpha1_eviction import V1alpha1Eviction from kubernetes.client.rest import ApiException from pprint import pprint @@ -1174,16 +1491,17 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the IPAddress + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the Eviction + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) try: - api_response = api_instance.read_ip_address(name, pretty=pretty) - print("The response of NetworkingV1beta1Api->read_ip_address:\n") + api_response = api_instance.read_namespaced_eviction(name, namespace, pretty=pretty) + print("The response of LifecycleV1alpha1Api->read_namespaced_eviction:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->read_ip_address: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->read_namespaced_eviction: %s\n" % e) ``` @@ -1193,12 +1511,13 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the IPAddress | + **name** | **str**| name of the Eviction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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 -[**V1beta1IPAddress**](V1beta1IPAddress.md) +[**V1alpha1Eviction**](V1alpha1Eviction.md) ### Authorization @@ -1218,10 +1537,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_service_cidr** -> V1beta1ServiceCIDR read_service_cidr(name, pretty=pretty) +# **read_namespaced_eviction_request** +> V1alpha1EvictionRequest read_namespaced_eviction_request(name, namespace, pretty=pretty) -read the specified ServiceCIDR +read the specified EvictionRequest ### Example @@ -1229,7 +1548,7 @@ read the specified ServiceCIDR ```python import kubernetes.client -from kubernetes.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR +from kubernetes.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest from kubernetes.client.rest import ApiException from pprint import pprint @@ -1253,16 +1572,17 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the ServiceCIDR + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the EvictionRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) try: - api_response = api_instance.read_service_cidr(name, pretty=pretty) - print("The response of NetworkingV1beta1Api->read_service_cidr:\n") + api_response = api_instance.read_namespaced_eviction_request(name, namespace, pretty=pretty) + print("The response of LifecycleV1alpha1Api->read_namespaced_eviction_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->read_service_cidr: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->read_namespaced_eviction_request: %s\n" % e) ``` @@ -1272,12 +1592,13 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ServiceCIDR | + **name** | **str**| name of the EvictionRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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 -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -1297,10 +1618,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_service_cidr_status** -> V1beta1ServiceCIDR read_service_cidr_status(name, pretty=pretty) +# **read_namespaced_eviction_request_status** +> V1alpha1EvictionRequest read_namespaced_eviction_request_status(name, namespace, pretty=pretty) -read status of the specified ServiceCIDR +read status of the specified EvictionRequest ### Example @@ -1308,7 +1629,7 @@ read status of the specified ServiceCIDR ```python import kubernetes.client -from kubernetes.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR +from kubernetes.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest from kubernetes.client.rest import ApiException from pprint import pprint @@ -1332,16 +1653,17 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the ServiceCIDR + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the EvictionRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) try: - api_response = api_instance.read_service_cidr_status(name, pretty=pretty) - print("The response of NetworkingV1beta1Api->read_service_cidr_status:\n") + api_response = api_instance.read_namespaced_eviction_request_status(name, namespace, pretty=pretty) + print("The response of LifecycleV1alpha1Api->read_namespaced_eviction_request_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->read_service_cidr_status: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->read_namespaced_eviction_request_status: %s\n" % e) ``` @@ -1351,12 +1673,13 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ServiceCIDR | + **name** | **str**| name of the EvictionRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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 -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -1376,10 +1699,181 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_ip_address** -> V1beta1IPAddress replace_ip_address(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +# **read_namespaced_eviction_status** +> V1alpha1Eviction read_namespaced_eviction_status(name, namespace, pretty=pretty) + +read status of the specified Eviction + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha1_eviction import V1alpha1Eviction +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the Eviction + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + + try: + api_response = api_instance.read_namespaced_eviction_status(name, namespace, pretty=pretty) + print("The response of LifecycleV1alpha1Api->read_namespaced_eviction_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling LifecycleV1alpha1Api->read_namespaced_eviction_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Eviction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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 + +[**V1alpha1Eviction**](V1alpha1Eviction.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_eviction** +> V1alpha1Eviction replace_namespaced_eviction(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace the specified Eviction + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha1_eviction import V1alpha1Eviction +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the Eviction + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.client.V1alpha1Eviction() # V1alpha1Eviction | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = api_instance.replace_namespaced_eviction(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of LifecycleV1alpha1Api->replace_namespaced_eviction:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling LifecycleV1alpha1Api->replace_namespaced_eviction: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Eviction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1Eviction**](V1alpha1Eviction.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1alpha1Eviction**](V1alpha1Eviction.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_eviction_request** +> V1alpha1EvictionRequest replace_namespaced_eviction_request(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -replace the specified IPAddress +replace the specified EvictionRequest ### Example @@ -1387,7 +1881,7 @@ replace the specified IPAddress ```python import kubernetes.client -from kubernetes.client.models.v1beta1_ip_address import V1beta1IPAddress +from kubernetes.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest from kubernetes.client.rest import ApiException from pprint import pprint @@ -1411,20 +1905,21 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the IPAddress - body = kubernetes.client.V1beta1IPAddress() # V1beta1IPAddress | + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the EvictionRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.client.V1alpha1EvictionRequest() # V1alpha1EvictionRequest | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = api_instance.replace_ip_address(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of NetworkingV1beta1Api->replace_ip_address:\n") + api_response = api_instance.replace_namespaced_eviction_request(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of LifecycleV1alpha1Api->replace_namespaced_eviction_request:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->replace_ip_address: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->replace_namespaced_eviction_request: %s\n" % e) ``` @@ -1434,8 +1929,9 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the IPAddress | - **body** | [**V1beta1IPAddress**](V1beta1IPAddress.md)| | + **name** | **str**| name of the EvictionRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -1443,7 +1939,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1IPAddress**](V1beta1IPAddress.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -1464,10 +1960,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_service_cidr** -> V1beta1ServiceCIDR replace_service_cidr(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +# **replace_namespaced_eviction_request_status** +> V1alpha1EvictionRequest replace_namespaced_eviction_request_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -replace the specified ServiceCIDR +replace status of the specified EvictionRequest ### Example @@ -1475,7 +1971,7 @@ replace the specified ServiceCIDR ```python import kubernetes.client -from kubernetes.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR +from kubernetes.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest from kubernetes.client.rest import ApiException from pprint import pprint @@ -1499,20 +1995,21 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the ServiceCIDR - body = kubernetes.client.V1beta1ServiceCIDR() # V1beta1ServiceCIDR | + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the EvictionRequest + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.client.V1alpha1EvictionRequest() # V1alpha1EvictionRequest | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = api_instance.replace_service_cidr(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of NetworkingV1beta1Api->replace_service_cidr:\n") + api_response = api_instance.replace_namespaced_eviction_request_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of LifecycleV1alpha1Api->replace_namespaced_eviction_request_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->replace_service_cidr: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->replace_namespaced_eviction_request_status: %s\n" % e) ``` @@ -1522,8 +2019,9 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ServiceCIDR | - **body** | [**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md)| | + **name** | **str**| name of the EvictionRequest | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -1531,7 +2029,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1EvictionRequest**](V1alpha1EvictionRequest.md) ### Authorization @@ -1552,10 +2050,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_service_cidr_status** -> V1beta1ServiceCIDR replace_service_cidr_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +# **replace_namespaced_eviction_status** +> V1alpha1Eviction replace_namespaced_eviction_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -replace status of the specified ServiceCIDR +replace status of the specified Eviction ### Example @@ -1563,7 +2061,7 @@ replace status of the specified ServiceCIDR ```python import kubernetes.client -from kubernetes.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR +from kubernetes.client.models.v1alpha1_eviction import V1alpha1Eviction from kubernetes.client.rest import ApiException from pprint import pprint @@ -1587,20 +2085,21 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) - name = 'name_example' # str | name of the ServiceCIDR - body = kubernetes.client.V1beta1ServiceCIDR() # V1beta1ServiceCIDR | + api_instance = kubernetes.client.LifecycleV1alpha1Api(api_client) + name = 'name_example' # str | name of the Eviction + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.client.V1alpha1Eviction() # V1alpha1Eviction | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = api_instance.replace_service_cidr_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of NetworkingV1beta1Api->replace_service_cidr_status:\n") + api_response = api_instance.replace_namespaced_eviction_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of LifecycleV1alpha1Api->replace_namespaced_eviction_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling NetworkingV1beta1Api->replace_service_cidr_status: %s\n" % e) + print("Exception when calling LifecycleV1alpha1Api->replace_namespaced_eviction_status: %s\n" % e) ``` @@ -1610,8 +2109,9 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ServiceCIDR | - **body** | [**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md)| | + **name** | **str**| name of the Eviction | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1Eviction**](V1alpha1Eviction.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -1619,7 +2119,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ServiceCIDR**](V1beta1ServiceCIDR.md) +[**V1alpha1Eviction**](V1alpha1Eviction.md) ### Authorization diff --git a/kubernetes/docs/NetworkingApi.md b/kubernetes/docs/NetworkingApi.md index d83c65346c..2614c9c89d 100644 --- a/kubernetes/docs/NetworkingApi.md +++ b/kubernetes/docs/NetworkingApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/NodeApi.md b/kubernetes/docs/NodeApi.md index 5b949d3034..6e38bbe390 100644 --- a/kubernetes/docs/NodeApi.md +++ b/kubernetes/docs/NodeApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/PolicyApi.md b/kubernetes/docs/PolicyApi.md index 3887dc877b..e6c9b48493 100644 --- a/kubernetes/docs/PolicyApi.md +++ b/kubernetes/docs/PolicyApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/RbacAuthorizationApi.md b/kubernetes/docs/RbacAuthorizationApi.md index 3b70e5d231..6e66fff34c 100644 --- a/kubernetes/docs/RbacAuthorizationApi.md +++ b/kubernetes/docs/RbacAuthorizationApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/RbacV1Subject.md b/kubernetes/docs/RbacV1Subject.md index 1168182cda..bfea2345e2 100644 --- a/kubernetes/docs/RbacV1Subject.md +++ b/kubernetes/docs/RbacV1Subject.md @@ -6,10 +6,10 @@ Subject contains a reference to the object or user identities a role binding app Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_group** | **str** | APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. | [optional] -**kind** | **str** | 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. | -**name** | **str** | Name of the object being referenced. | -**namespace** | **str** | Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. | [optional] +**api_group** | **str** | apiGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. | [optional] +**kind** | **str** | 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. | +**name** | **str** | name of the object being referenced. | +**namespace** | **str** | namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. | [optional] ## Example diff --git a/kubernetes/docs/ResourceApi.md b/kubernetes/docs/ResourceApi.md index e862294561..f1a72aa9b0 100644 --- a/kubernetes/docs/ResourceApi.md +++ b/kubernetes/docs/ResourceApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/ResourceV1Api.md b/kubernetes/docs/ResourceV1Api.md index 418eeab37e..40329799c5 100644 --- a/kubernetes/docs/ResourceV1Api.md +++ b/kubernetes/docs/ResourceV1Api.md @@ -5,35 +5,45 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_device_class**](ResourceV1Api.md#create_device_class) | **POST** /apis/resource.k8s.io/v1/deviceclasses | +[**create_device_taint_rule**](ResourceV1Api.md#create_device_taint_rule) | **POST** /apis/resource.k8s.io/v1/devicetaintrules | [**create_namespaced_resource_claim**](ResourceV1Api.md#create_namespaced_resource_claim) | **POST** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | [**create_namespaced_resource_claim_template**](ResourceV1Api.md#create_namespaced_resource_claim_template) | **POST** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | [**create_resource_slice**](ResourceV1Api.md#create_resource_slice) | **POST** /apis/resource.k8s.io/v1/resourceslices | [**delete_collection_device_class**](ResourceV1Api.md#delete_collection_device_class) | **DELETE** /apis/resource.k8s.io/v1/deviceclasses | +[**delete_collection_device_taint_rule**](ResourceV1Api.md#delete_collection_device_taint_rule) | **DELETE** /apis/resource.k8s.io/v1/devicetaintrules | [**delete_collection_namespaced_resource_claim**](ResourceV1Api.md#delete_collection_namespaced_resource_claim) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | [**delete_collection_namespaced_resource_claim_template**](ResourceV1Api.md#delete_collection_namespaced_resource_claim_template) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | [**delete_collection_resource_slice**](ResourceV1Api.md#delete_collection_resource_slice) | **DELETE** /apis/resource.k8s.io/v1/resourceslices | [**delete_device_class**](ResourceV1Api.md#delete_device_class) | **DELETE** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**delete_device_taint_rule**](ResourceV1Api.md#delete_device_taint_rule) | **DELETE** /apis/resource.k8s.io/v1/devicetaintrules/{name} | [**delete_namespaced_resource_claim**](ResourceV1Api.md#delete_namespaced_resource_claim) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | [**delete_namespaced_resource_claim_template**](ResourceV1Api.md#delete_namespaced_resource_claim_template) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | [**delete_resource_slice**](ResourceV1Api.md#delete_resource_slice) | **DELETE** /apis/resource.k8s.io/v1/resourceslices/{name} | [**get_api_resources**](ResourceV1Api.md#get_api_resources) | **GET** /apis/resource.k8s.io/v1/ | [**list_device_class**](ResourceV1Api.md#list_device_class) | **GET** /apis/resource.k8s.io/v1/deviceclasses | +[**list_device_taint_rule**](ResourceV1Api.md#list_device_taint_rule) | **GET** /apis/resource.k8s.io/v1/devicetaintrules | [**list_namespaced_resource_claim**](ResourceV1Api.md#list_namespaced_resource_claim) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | [**list_namespaced_resource_claim_template**](ResourceV1Api.md#list_namespaced_resource_claim_template) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | [**list_resource_claim_for_all_namespaces**](ResourceV1Api.md#list_resource_claim_for_all_namespaces) | **GET** /apis/resource.k8s.io/v1/resourceclaims | [**list_resource_claim_template_for_all_namespaces**](ResourceV1Api.md#list_resource_claim_template_for_all_namespaces) | **GET** /apis/resource.k8s.io/v1/resourceclaimtemplates | [**list_resource_slice**](ResourceV1Api.md#list_resource_slice) | **GET** /apis/resource.k8s.io/v1/resourceslices | [**patch_device_class**](ResourceV1Api.md#patch_device_class) | **PATCH** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**patch_device_taint_rule**](ResourceV1Api.md#patch_device_taint_rule) | **PATCH** /apis/resource.k8s.io/v1/devicetaintrules/{name} | +[**patch_device_taint_rule_status**](ResourceV1Api.md#patch_device_taint_rule_status) | **PATCH** /apis/resource.k8s.io/v1/devicetaintrules/{name}/status | [**patch_namespaced_resource_claim**](ResourceV1Api.md#patch_namespaced_resource_claim) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | [**patch_namespaced_resource_claim_status**](ResourceV1Api.md#patch_namespaced_resource_claim_status) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | [**patch_namespaced_resource_claim_template**](ResourceV1Api.md#patch_namespaced_resource_claim_template) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | [**patch_resource_slice**](ResourceV1Api.md#patch_resource_slice) | **PATCH** /apis/resource.k8s.io/v1/resourceslices/{name} | [**read_device_class**](ResourceV1Api.md#read_device_class) | **GET** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**read_device_taint_rule**](ResourceV1Api.md#read_device_taint_rule) | **GET** /apis/resource.k8s.io/v1/devicetaintrules/{name} | +[**read_device_taint_rule_status**](ResourceV1Api.md#read_device_taint_rule_status) | **GET** /apis/resource.k8s.io/v1/devicetaintrules/{name}/status | [**read_namespaced_resource_claim**](ResourceV1Api.md#read_namespaced_resource_claim) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | [**read_namespaced_resource_claim_status**](ResourceV1Api.md#read_namespaced_resource_claim_status) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | [**read_namespaced_resource_claim_template**](ResourceV1Api.md#read_namespaced_resource_claim_template) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | [**read_resource_slice**](ResourceV1Api.md#read_resource_slice) | **GET** /apis/resource.k8s.io/v1/resourceslices/{name} | [**replace_device_class**](ResourceV1Api.md#replace_device_class) | **PUT** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**replace_device_taint_rule**](ResourceV1Api.md#replace_device_taint_rule) | **PUT** /apis/resource.k8s.io/v1/devicetaintrules/{name} | +[**replace_device_taint_rule_status**](ResourceV1Api.md#replace_device_taint_rule_status) | **PUT** /apis/resource.k8s.io/v1/devicetaintrules/{name}/status | [**replace_namespaced_resource_claim**](ResourceV1Api.md#replace_namespaced_resource_claim) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | [**replace_namespaced_resource_claim_status**](ResourceV1Api.md#replace_namespaced_resource_claim_status) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | [**replace_namespaced_resource_claim_template**](ResourceV1Api.md#replace_namespaced_resource_claim_template) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | @@ -127,6 +137,93 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_device_taint_rule** +> V1DeviceTaintRule create_device_taint_rule(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +create a DeviceTaintRule + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_device_taint_rule import V1DeviceTaintRule +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ResourceV1Api(api_client) + body = kubernetes.client.V1DeviceTaintRule() # V1DeviceTaintRule | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = api_instance.create_device_taint_rule(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of ResourceV1Api->create_device_taint_rule:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->create_device_taint_rule: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1DeviceTaintRule**](V1DeviceTaintRule.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1DeviceTaintRule**](V1DeviceTaintRule.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 | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_namespaced_resource_claim** > ResourceV1ResourceClaim create_namespaced_resource_claim(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) @@ -500,10 +597,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_resource_claim** -> V1Status delete_collection_namespaced_resource_claim(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) +# **delete_collection_device_taint_rule** +> V1Status delete_collection_device_taint_rule(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) -delete collection of ResourceClaim +delete collection of DeviceTaintRule ### Example @@ -537,7 +634,6 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) - namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -556,11 +652,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = api_instance.delete_collection_namespaced_resource_claim(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - print("The response of ResourceV1Api->delete_collection_namespaced_resource_claim:\n") + api_response = api_instance.delete_collection_device_taint_rule(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of ResourceV1Api->delete_collection_device_taint_rule:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->delete_collection_namespaced_resource_claim: %s\n" % e) + print("Exception when calling ResourceV1Api->delete_collection_device_taint_rule: %s\n" % e) ``` @@ -570,7 +666,6 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] @@ -610,10 +705,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_namespaced_resource_claim_template** -> V1Status delete_collection_namespaced_resource_claim_template(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) +# **delete_collection_namespaced_resource_claim** +> V1Status delete_collection_namespaced_resource_claim(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) -delete collection of ResourceClaimTemplate +delete collection of ResourceClaim ### Example @@ -666,11 +761,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = api_instance.delete_collection_namespaced_resource_claim_template(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - print("The response of ResourceV1Api->delete_collection_namespaced_resource_claim_template:\n") + api_response = api_instance.delete_collection_namespaced_resource_claim(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of ResourceV1Api->delete_collection_namespaced_resource_claim:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->delete_collection_namespaced_resource_claim_template: %s\n" % e) + print("Exception when calling ResourceV1Api->delete_collection_namespaced_resource_claim: %s\n" % e) ``` @@ -720,10 +815,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_resource_slice** -> V1Status delete_collection_resource_slice(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) +# **delete_collection_namespaced_resource_claim_template** +> V1Status delete_collection_namespaced_resource_claim_template(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) -delete collection of ResourceSlice +delete collection of ResourceClaimTemplate ### Example @@ -757,6 +852,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -775,11 +871,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = api_instance.delete_collection_resource_slice(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - print("The response of ResourceV1Api->delete_collection_resource_slice:\n") + api_response = api_instance.delete_collection_namespaced_resource_claim_template(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of ResourceV1Api->delete_collection_namespaced_resource_claim_template:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->delete_collection_resource_slice: %s\n" % e) + print("Exception when calling ResourceV1Api->delete_collection_namespaced_resource_claim_template: %s\n" % e) ``` @@ -789,6 +885,7 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] @@ -828,10 +925,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_device_class** -> V1DeviceClass delete_device_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) +# **delete_collection_resource_slice** +> V1Status delete_collection_resource_slice(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) -delete a DeviceClass +delete collection of ResourceSlice ### Example @@ -840,7 +937,7 @@ delete a DeviceClass ```python import kubernetes.client from kubernetes.client.models.v1_delete_options import V1DeleteOptions -from kubernetes.client.models.v1_device_class import V1DeviceClass +from kubernetes.client.models.v1_status import V1Status from kubernetes.client.rest import ApiException from pprint import pprint @@ -865,21 +962,29 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the DeviceClass pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) grace_period_seconds = 56 # int | 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) ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) orphan_dependents = True # bool | 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) propagation_policy = 'propagation_policy_example' # str | 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = api_instance.delete_device_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of ResourceV1Api->delete_device_class:\n") + api_response = api_instance.delete_collection_resource_slice(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of ResourceV1Api->delete_collection_resource_slice:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->delete_device_class: %s\n" % e) + print("Exception when calling ResourceV1Api->delete_collection_resource_slice: %s\n" % e) ``` @@ -889,18 +994,26 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the DeviceClass | **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **grace_period_seconds** | **int**| 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] **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] **orphan_dependents** | **bool**| 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] **propagation_policy** | **str**| 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| 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 -[**V1DeviceClass**](V1DeviceClass.md) +[**V1Status**](V1Status.md) ### Authorization @@ -916,15 +1029,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_resource_claim** -> ResourceV1ResourceClaim delete_namespaced_resource_claim(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) +# **delete_device_class** +> V1DeviceClass delete_device_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) -delete a ResourceClaim +delete a DeviceClass ### Example @@ -932,8 +1044,8 @@ delete a ResourceClaim ```python import kubernetes.client -from kubernetes.client.models.resource_v1_resource_claim import ResourceV1ResourceClaim from kubernetes.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.client.models.v1_device_class import V1DeviceClass from kubernetes.client.rest import ApiException from pprint import pprint @@ -958,8 +1070,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the ResourceClaim - namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + name = 'name_example' # str | name of the DeviceClass pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) grace_period_seconds = 56 # int | 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) @@ -969,11 +1080,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = api_instance.delete_namespaced_resource_claim(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of ResourceV1Api->delete_namespaced_resource_claim:\n") + api_response = api_instance.delete_device_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of ResourceV1Api->delete_device_class:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->delete_namespaced_resource_claim: %s\n" % e) + print("Exception when calling ResourceV1Api->delete_device_class: %s\n" % e) ``` @@ -983,8 +1094,7 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ResourceClaim | - **namespace** | **str**| object name and auth scope, such as for teams and projects | + **name** | **str**| name of the DeviceClass | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **grace_period_seconds** | **int**| 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] @@ -995,7 +1105,7 @@ Name | Type | Description | Notes ### Return type -[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) +[**V1DeviceClass**](V1DeviceClass.md) ### Authorization @@ -1016,10 +1126,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_resource_claim_template** -> V1ResourceClaimTemplate delete_namespaced_resource_claim_template(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) +# **delete_device_taint_rule** +> object delete_device_taint_rule(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) -delete a ResourceClaimTemplate +delete a DeviceTaintRule ### Example @@ -1028,7 +1138,6 @@ delete a ResourceClaimTemplate ```python import kubernetes.client from kubernetes.client.models.v1_delete_options import V1DeleteOptions -from kubernetes.client.models.v1_resource_claim_template import V1ResourceClaimTemplate from kubernetes.client.rest import ApiException from pprint import pprint @@ -1053,8 +1162,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the ResourceClaimTemplate - namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + name = 'name_example' # str | name of the DeviceTaintRule pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) grace_period_seconds = 56 # int | 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) @@ -1064,11 +1172,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = api_instance.delete_namespaced_resource_claim_template(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of ResourceV1Api->delete_namespaced_resource_claim_template:\n") + api_response = api_instance.delete_device_taint_rule(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of ResourceV1Api->delete_device_taint_rule:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->delete_namespaced_resource_claim_template: %s\n" % e) + print("Exception when calling ResourceV1Api->delete_device_taint_rule: %s\n" % e) ``` @@ -1078,8 +1186,7 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ResourceClaimTemplate | - **namespace** | **str**| object name and auth scope, such as for teams and projects | + **name** | **str**| name of the DeviceTaintRule | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **grace_period_seconds** | **int**| 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] @@ -1090,7 +1197,7 @@ Name | Type | Description | Notes ### Return type -[**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.md) +**object** ### Authorization @@ -1111,10 +1218,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_resource_slice** -> V1ResourceSlice delete_resource_slice(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) +# **delete_namespaced_resource_claim** +> ResourceV1ResourceClaim delete_namespaced_resource_claim(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) -delete a ResourceSlice +delete a ResourceClaim ### Example @@ -1122,8 +1229,8 @@ delete a ResourceSlice ```python import kubernetes.client +from kubernetes.client.models.resource_v1_resource_claim import ResourceV1ResourceClaim from kubernetes.client.models.v1_delete_options import V1DeleteOptions -from kubernetes.client.models.v1_resource_slice import V1ResourceSlice from kubernetes.client.rest import ApiException from pprint import pprint @@ -1148,7 +1255,8 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the ResourceSlice + name = 'name_example' # str | name of the ResourceClaim + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) grace_period_seconds = 56 # int | 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) @@ -1158,11 +1266,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = api_instance.delete_resource_slice(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of ResourceV1Api->delete_resource_slice:\n") + api_response = api_instance.delete_namespaced_resource_claim(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of ResourceV1Api->delete_namespaced_resource_claim:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->delete_resource_slice: %s\n" % e) + print("Exception when calling ResourceV1Api->delete_namespaced_resource_claim: %s\n" % e) ``` @@ -1172,7 +1280,8 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ResourceSlice | + **name** | **str**| name of the ResourceClaim | + **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **grace_period_seconds** | **int**| 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] @@ -1183,7 +1292,7 @@ Name | Type | Description | Notes ### Return type -[**V1ResourceSlice**](V1ResourceSlice.md) +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) ### Authorization @@ -1204,10 +1313,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_resources** -> V1APIResourceList get_api_resources() +# **delete_namespaced_resource_claim_template** +> V1ResourceClaimTemplate delete_namespaced_resource_claim_template(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) -get available resources +delete a ResourceClaimTemplate ### Example @@ -1215,7 +1324,8 @@ get available resources ```python import kubernetes.client -from kubernetes.client.models.v1_api_resource_list import V1APIResourceList +from kubernetes.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.client.models.v1_resource_claim_template import V1ResourceClaimTemplate from kubernetes.client.rest import ApiException from pprint import pprint @@ -1240,24 +1350,44 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) + name = 'name_example' # str | name of the ResourceClaimTemplate + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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 = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = api_instance.get_api_resources() - print("The response of ResourceV1Api->get_api_resources:\n") + api_response = api_instance.delete_namespaced_resource_claim_template(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of ResourceV1Api->delete_namespaced_resource_claim_template:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->get_api_resources: %s\n" % e) + print("Exception when calling ResourceV1Api->delete_namespaced_resource_claim_template: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ResourceClaimTemplate | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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) +[**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.md) ### Authorization @@ -1273,14 +1403,15 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_device_class** -> V1DeviceClassList list_device_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **delete_resource_slice** +> V1ResourceSlice delete_resource_slice(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) -list or watch objects of kind DeviceClass +delete a ResourceSlice ### Example @@ -1288,7 +1419,8 @@ list or watch objects of kind DeviceClass ```python import kubernetes.client -from kubernetes.client.models.v1_device_class_list import V1DeviceClassList +from kubernetes.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.client.models.v1_resource_slice import V1ResourceSlice from kubernetes.client.rest import ApiException from pprint import pprint @@ -1313,25 +1445,21 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) + name = 'name_example' # str | name of the ResourceSlice pretty = 'pretty_example' # str | If 'true', 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) - allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) - field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) - resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) - timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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 = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = api_instance.list_device_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of ResourceV1Api->list_device_class:\n") + api_response = api_instance.delete_resource_slice(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of ResourceV1Api->delete_resource_slice:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->list_device_class: %s\n" % e) + print("Exception when calling ResourceV1Api->delete_resource_slice: %s\n" % e) ``` @@ -1341,22 +1469,18 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ResourceSlice | **pretty** | **str**| If 'true', 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] - **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] - **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] - **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] - **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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 -[**V1DeviceClassList**](V1DeviceClassList.md) +[**V1ResourceSlice**](V1ResourceSlice.md) ### Authorization @@ -1365,21 +1489,22 @@ Name | Type | Description | Notes ### 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 | |-------------|-------------|------------------| **200** | OK | - | +**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_resource_claim** -> V1ResourceClaimList list_namespaced_resource_claim(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **get_api_resources** +> V1APIResourceList get_api_resources() -list or watch objects of kind ResourceClaim +get available resources ### Example @@ -1387,7 +1512,80 @@ list or watch objects of kind ResourceClaim ```python import kubernetes.client -from kubernetes.client.models.v1_resource_claim_list import V1ResourceClaimList +from kubernetes.client.models.v1_api_resource_list import V1APIResourceList +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ResourceV1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + print("The response of ResourceV1Api->get_api_resources:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->get_api_resources: %s\n" % e) +``` + + + +### 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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_device_class** +> V1DeviceClassList list_device_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind DeviceClass + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_device_class_list import V1DeviceClassList from kubernetes.client.rest import ApiException from pprint import pprint @@ -1412,7 +1610,6 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) - namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) @@ -1427,11 +1624,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_resource_claim(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of ResourceV1Api->list_namespaced_resource_claim:\n") + api_response = api_instance.list_device_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of ResourceV1Api->list_device_class:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->list_namespaced_resource_claim: %s\n" % e) + print("Exception when calling ResourceV1Api->list_device_class: %s\n" % e) ``` @@ -1441,7 +1638,6 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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] **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] @@ -1457,7 +1653,7 @@ Name | Type | Description | Notes ### Return type -[**V1ResourceClaimList**](V1ResourceClaimList.md) +[**V1DeviceClassList**](V1DeviceClassList.md) ### Authorization @@ -1477,10 +1673,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_resource_claim_template** -> V1ResourceClaimTemplateList list_namespaced_resource_claim_template(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **list_device_taint_rule** +> V1DeviceTaintRuleList list_device_taint_rule(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind ResourceClaimTemplate +list or watch objects of kind DeviceTaintRule ### Example @@ -1488,7 +1684,7 @@ list or watch objects of kind ResourceClaimTemplate ```python import kubernetes.client -from kubernetes.client.models.v1_resource_claim_template_list import V1ResourceClaimTemplateList +from kubernetes.client.models.v1_device_taint_rule_list import V1DeviceTaintRuleList from kubernetes.client.rest import ApiException from pprint import pprint @@ -1513,7 +1709,6 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) - namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) @@ -1528,11 +1723,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_resource_claim_template(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of ResourceV1Api->list_namespaced_resource_claim_template:\n") + api_response = api_instance.list_device_taint_rule(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of ResourceV1Api->list_device_taint_rule:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->list_namespaced_resource_claim_template: %s\n" % e) + print("Exception when calling ResourceV1Api->list_device_taint_rule: %s\n" % e) ``` @@ -1542,7 +1737,6 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', 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] **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] @@ -1558,7 +1752,7 @@ Name | Type | Description | Notes ### Return type -[**V1ResourceClaimTemplateList**](V1ResourceClaimTemplateList.md) +[**V1DeviceTaintRuleList**](V1DeviceTaintRuleList.md) ### Authorization @@ -1578,8 +1772,8 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_resource_claim_for_all_namespaces** -> V1ResourceClaimList list_resource_claim_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_resource_claim** +> V1ResourceClaimList list_namespaced_resource_claim(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ResourceClaim @@ -1614,12 +1808,13 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -1628,11 +1823,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_resource_claim_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of ResourceV1Api->list_resource_claim_for_all_namespaces:\n") + api_response = api_instance.list_namespaced_resource_claim(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of ResourceV1Api->list_namespaced_resource_claim:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->list_resource_claim_for_all_namespaces: %s\n" % e) + print("Exception when calling ResourceV1Api->list_namespaced_resource_claim: %s\n" % e) ``` @@ -1642,12 +1837,13 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -1677,8 +1873,8 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_resource_claim_template_for_all_namespaces** -> V1ResourceClaimTemplateList list_resource_claim_template_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_resource_claim_template** +> V1ResourceClaimTemplateList list_namespaced_resource_claim_template(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ResourceClaimTemplate @@ -1713,12 +1909,13 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -1727,11 +1924,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_resource_claim_template_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of ResourceV1Api->list_resource_claim_template_for_all_namespaces:\n") + api_response = api_instance.list_namespaced_resource_claim_template(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of ResourceV1Api->list_namespaced_resource_claim_template:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->list_resource_claim_template_for_all_namespaces: %s\n" % e) + print("Exception when calling ResourceV1Api->list_namespaced_resource_claim_template: %s\n" % e) ``` @@ -1741,12 +1938,13 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -1776,10 +1974,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_resource_slice** -> V1ResourceSliceList list_resource_slice(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **list_resource_claim_for_all_namespaces** +> V1ResourceClaimList list_resource_claim_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind ResourceSlice +list or watch objects of kind ResourceClaim ### Example @@ -1787,7 +1985,7 @@ list or watch objects of kind ResourceSlice ```python import kubernetes.client -from kubernetes.client.models.v1_resource_slice_list import V1ResourceSliceList +from kubernetes.client.models.v1_resource_claim_list import V1ResourceClaimList from kubernetes.client.rest import ApiException from pprint import pprint @@ -1812,12 +2010,12 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) - pretty = 'pretty_example' # str | If 'true', 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) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) @@ -1826,11 +2024,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_resource_slice(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of ResourceV1Api->list_resource_slice:\n") + api_response = api_instance.list_resource_claim_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of ResourceV1Api->list_resource_claim_for_all_namespaces:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->list_resource_slice: %s\n" % e) + print("Exception when calling ResourceV1Api->list_resource_claim_for_all_namespaces: %s\n" % e) ``` @@ -1840,12 +2038,12 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pretty** | **str**| If 'true', 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] **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] @@ -1855,7 +2053,7 @@ Name | Type | Description | Notes ### Return type -[**V1ResourceSliceList**](V1ResourceSliceList.md) +[**V1ResourceClaimList**](V1ResourceClaimList.md) ### Authorization @@ -1875,10 +2073,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_device_class** -> V1DeviceClass patch_device_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **list_resource_claim_template_for_all_namespaces** +> V1ResourceClaimTemplateList list_resource_claim_template_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) -partially update the specified DeviceClass +list or watch objects of kind ResourceClaimTemplate ### Example @@ -1886,7 +2084,7 @@ partially update the specified DeviceClass ```python import kubernetes.client -from kubernetes.client.models.v1_device_class import V1DeviceClass +from kubernetes.client.models.v1_resource_claim_template_list import V1ResourceClaimTemplateList from kubernetes.client.rest import ApiException from pprint import pprint @@ -1911,20 +2109,25 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the DeviceClass - body = None # object | + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) - field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.patch_device_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of ResourceV1Api->patch_device_class:\n") + api_response = api_instance.list_resource_claim_template_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of ResourceV1Api->list_resource_claim_template_for_all_namespaces:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->patch_device_class: %s\n" % e) + print("Exception when calling ResourceV1Api->list_resource_claim_template_for_all_namespaces: %s\n" % e) ``` @@ -1934,17 +2137,22 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the DeviceClass | - **body** | **object**| | + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] - **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] ### Return type -[**V1DeviceClass**](V1DeviceClass.md) +[**V1ResourceClaimTemplateList**](V1ResourceClaimTemplateList.md) ### Authorization @@ -1952,21 +2160,389 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **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 | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_resource_claim** -> ResourceV1ResourceClaim patch_namespaced_resource_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **list_resource_slice** +> V1ResourceSliceList list_resource_slice(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind ResourceSlice + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_resource_slice_list import V1ResourceSliceList +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ResourceV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', 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) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = api_instance.list_resource_slice(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of ResourceV1Api->list_resource_slice:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->list_resource_slice: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **str**| If 'true', 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] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1ResourceSliceList**](V1ResourceSliceList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_device_class** +> V1DeviceClass patch_device_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified DeviceClass + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_device_class import V1DeviceClass +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ResourceV1Api(api_client) + name = 'name_example' # str | name of the DeviceClass + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_device_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of ResourceV1Api->patch_device_class:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->patch_device_class: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DeviceClass | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1DeviceClass**](V1DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_device_taint_rule** +> V1DeviceTaintRule patch_device_taint_rule(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified DeviceTaintRule + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_device_taint_rule import V1DeviceTaintRule +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ResourceV1Api(api_client) + name = 'name_example' # str | name of the DeviceTaintRule + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_device_taint_rule(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of ResourceV1Api->patch_device_taint_rule:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->patch_device_taint_rule: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DeviceTaintRule | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1DeviceTaintRule**](V1DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_device_taint_rule_status** +> V1DeviceTaintRule patch_device_taint_rule_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update status of the specified DeviceTaintRule + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_device_taint_rule import V1DeviceTaintRule +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ResourceV1Api(api_client) + name = 'name_example' # str | name of the DeviceTaintRule + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_device_taint_rule_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of ResourceV1Api->patch_device_taint_rule_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->patch_device_taint_rule_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DeviceTaintRule | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1DeviceTaintRule**](V1DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_resource_claim** +> ResourceV1ResourceClaim patch_namespaced_resource_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) partially update the specified ResourceClaim @@ -1976,7 +2552,191 @@ partially update the specified ResourceClaim ```python import kubernetes.client -from kubernetes.client.models.resource_v1_resource_claim import ResourceV1ResourceClaim +from kubernetes.client.models.resource_v1_resource_claim import ResourceV1ResourceClaim +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ResourceV1Api(api_client) + name = 'name_example' # str | name of the ResourceClaim + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_namespaced_resource_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of ResourceV1Api->patch_namespaced_resource_claim:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->patch_namespaced_resource_claim: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ResourceClaim | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_resource_claim_status** +> ResourceV1ResourceClaim patch_namespaced_resource_claim_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update status of the specified ResourceClaim + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.resource_v1_resource_claim import ResourceV1ResourceClaim +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ResourceV1Api(api_client) + name = 'name_example' # str | name of the ResourceClaim + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_namespaced_resource_claim_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of ResourceV1Api->patch_namespaced_resource_claim_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->patch_namespaced_resource_claim_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ResourceClaim | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_resource_claim_template** +> V1ResourceClaimTemplate patch_namespaced_resource_claim_template(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified ResourceClaimTemplate + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_resource_claim_template import V1ResourceClaimTemplate from kubernetes.client.rest import ApiException from pprint import pprint @@ -2001,7 +2761,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the ResourceClaim + name = 'name_example' # str | name of the ResourceClaimTemplate namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', 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) @@ -2011,11 +2771,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: force = True # bool | 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) try: - api_response = api_instance.patch_namespaced_resource_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of ResourceV1Api->patch_namespaced_resource_claim:\n") + api_response = api_instance.patch_namespaced_resource_claim_template(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of ResourceV1Api->patch_namespaced_resource_claim_template:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->patch_namespaced_resource_claim: %s\n" % e) + print("Exception when calling ResourceV1Api->patch_namespaced_resource_claim_template: %s\n" % e) ``` @@ -2025,7 +2785,7 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ResourceClaim | + **name** | **str**| name of the ResourceClaimTemplate | **namespace** | **str**| object name and auth scope, such as for teams and projects | **body** | **object**| | **pretty** | **str**| If 'true', 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] @@ -2036,7 +2796,7 @@ Name | Type | Description | Notes ### Return type -[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) +[**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.md) ### Authorization @@ -2057,10 +2817,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_resource_claim_status** -> ResourceV1ResourceClaim patch_namespaced_resource_claim_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **patch_resource_slice** +> V1ResourceSlice patch_resource_slice(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) -partially update status of the specified ResourceClaim +partially update the specified ResourceSlice ### Example @@ -2068,7 +2828,7 @@ partially update status of the specified ResourceClaim ```python import kubernetes.client -from kubernetes.client.models.resource_v1_resource_claim import ResourceV1ResourceClaim +from kubernetes.client.models.v1_resource_slice import V1ResourceSlice from kubernetes.client.rest import ApiException from pprint import pprint @@ -2093,8 +2853,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the ResourceClaim - namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + name = 'name_example' # str | name of the ResourceSlice body = None # object | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -2103,11 +2862,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: force = True # bool | 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) try: - api_response = api_instance.patch_namespaced_resource_claim_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of ResourceV1Api->patch_namespaced_resource_claim_status:\n") + api_response = api_instance.patch_resource_slice(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of ResourceV1Api->patch_resource_slice:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->patch_namespaced_resource_claim_status: %s\n" % e) + print("Exception when calling ResourceV1Api->patch_resource_slice: %s\n" % e) ``` @@ -2117,8 +2876,7 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ResourceClaim | - **namespace** | **str**| object name and auth scope, such as for teams and projects | + **name** | **str**| name of the ResourceSlice | **body** | **object**| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] @@ -2128,7 +2886,7 @@ Name | Type | Description | Notes ### Return type -[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) +[**V1ResourceSlice**](V1ResourceSlice.md) ### Authorization @@ -2149,10 +2907,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_namespaced_resource_claim_template** -> V1ResourceClaimTemplate patch_namespaced_resource_claim_template(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **read_device_class** +> V1DeviceClass read_device_class(name, pretty=pretty) -partially update the specified ResourceClaimTemplate +read the specified DeviceClass ### Example @@ -2160,7 +2918,7 @@ partially update the specified ResourceClaimTemplate ```python import kubernetes.client -from kubernetes.client.models.v1_resource_claim_template import V1ResourceClaimTemplate +from kubernetes.client.models.v1_device_class import V1DeviceClass from kubernetes.client.rest import ApiException from pprint import pprint @@ -2185,21 +2943,15 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the ResourceClaimTemplate - namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects - body = None # object | + name = 'name_example' # str | name of the DeviceClass pretty = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) - field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) try: - api_response = api_instance.patch_namespaced_resource_claim_template(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of ResourceV1Api->patch_namespaced_resource_claim_template:\n") + api_response = api_instance.read_device_class(name, pretty=pretty) + print("The response of ResourceV1Api->read_device_class:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->patch_namespaced_resource_claim_template: %s\n" % e) + print("Exception when calling ResourceV1Api->read_device_class: %s\n" % e) ``` @@ -2209,18 +2961,12 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ResourceClaimTemplate | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **name** | **str**| name of the DeviceClass | **pretty** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] - **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 -[**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.md) +[**V1DeviceClass**](V1DeviceClass.md) ### Authorization @@ -2228,7 +2974,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details @@ -2236,15 +2982,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_resource_slice** -> V1ResourceSlice patch_resource_slice(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **read_device_taint_rule** +> V1DeviceTaintRule read_device_taint_rule(name, pretty=pretty) -partially update the specified ResourceSlice +read the specified DeviceTaintRule ### Example @@ -2252,7 +2997,7 @@ partially update the specified ResourceSlice ```python import kubernetes.client -from kubernetes.client.models.v1_resource_slice import V1ResourceSlice +from kubernetes.client.models.v1_device_taint_rule import V1DeviceTaintRule from kubernetes.client.rest import ApiException from pprint import pprint @@ -2277,20 +3022,15 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the ResourceSlice - body = None # object | + name = 'name_example' # str | name of the DeviceTaintRule pretty = 'pretty_example' # str | If 'true', 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) - dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) - field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) - field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) try: - api_response = api_instance.patch_resource_slice(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of ResourceV1Api->patch_resource_slice:\n") + api_response = api_instance.read_device_taint_rule(name, pretty=pretty) + print("The response of ResourceV1Api->read_device_taint_rule:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->patch_resource_slice: %s\n" % e) + print("Exception when calling ResourceV1Api->read_device_taint_rule: %s\n" % e) ``` @@ -2300,17 +3040,12 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ResourceSlice | - **body** | **object**| | + **name** | **str**| name of the DeviceTaintRule | **pretty** | **str**| If 'true', 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] - **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] - **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] - **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 -[**V1ResourceSlice**](V1ResourceSlice.md) +[**V1DeviceTaintRule**](V1DeviceTaintRule.md) ### Authorization @@ -2318,7 +3053,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details @@ -2326,15 +3061,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_device_class** -> V1DeviceClass read_device_class(name, pretty=pretty) +# **read_device_taint_rule_status** +> V1DeviceTaintRule read_device_taint_rule_status(name, pretty=pretty) -read the specified DeviceClass +read status of the specified DeviceTaintRule ### Example @@ -2342,7 +3076,7 @@ read the specified DeviceClass ```python import kubernetes.client -from kubernetes.client.models.v1_device_class import V1DeviceClass +from kubernetes.client.models.v1_device_taint_rule import V1DeviceTaintRule from kubernetes.client.rest import ApiException from pprint import pprint @@ -2367,15 +3101,15 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.ResourceV1Api(api_client) - name = 'name_example' # str | name of the DeviceClass + name = 'name_example' # str | name of the DeviceTaintRule pretty = 'pretty_example' # str | If 'true', 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) try: - api_response = api_instance.read_device_class(name, pretty=pretty) - print("The response of ResourceV1Api->read_device_class:\n") + api_response = api_instance.read_device_taint_rule_status(name, pretty=pretty) + print("The response of ResourceV1Api->read_device_taint_rule_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling ResourceV1Api->read_device_class: %s\n" % e) + print("Exception when calling ResourceV1Api->read_device_taint_rule_status: %s\n" % e) ``` @@ -2385,12 +3119,12 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the DeviceClass | + **name** | **str**| name of the DeviceTaintRule | **pretty** | **str**| If 'true', 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 -[**V1DeviceClass**](V1DeviceClass.md) +[**V1DeviceTaintRule**](V1DeviceTaintRule.md) ### Authorization @@ -2820,6 +3554,182 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **replace_device_taint_rule** +> V1DeviceTaintRule replace_device_taint_rule(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace the specified DeviceTaintRule + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_device_taint_rule import V1DeviceTaintRule +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ResourceV1Api(api_client) + name = 'name_example' # str | name of the DeviceTaintRule + body = kubernetes.client.V1DeviceTaintRule() # V1DeviceTaintRule | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = api_instance.replace_device_taint_rule(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of ResourceV1Api->replace_device_taint_rule:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->replace_device_taint_rule: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DeviceTaintRule | + **body** | [**V1DeviceTaintRule**](V1DeviceTaintRule.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1DeviceTaintRule**](V1DeviceTaintRule.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_device_taint_rule_status** +> V1DeviceTaintRule replace_device_taint_rule_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace status of the specified DeviceTaintRule + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_device_taint_rule import V1DeviceTaintRule +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ResourceV1Api(api_client) + name = 'name_example' # str | name of the DeviceTaintRule + body = kubernetes.client.V1DeviceTaintRule() # V1DeviceTaintRule | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = api_instance.replace_device_taint_rule_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of ResourceV1Api->replace_device_taint_rule_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceV1Api->replace_device_taint_rule_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DeviceTaintRule | + **body** | [**V1DeviceTaintRule**](V1DeviceTaintRule.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1DeviceTaintRule**](V1DeviceTaintRule.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **replace_namespaced_resource_claim** > ResourceV1ResourceClaim replace_namespaced_resource_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) diff --git a/kubernetes/docs/ResourceV1ResourceClaim.md b/kubernetes/docs/ResourceV1ResourceClaim.md index 45ad5635cd..c9a17f99c6 100644 --- a/kubernetes/docs/ResourceV1ResourceClaim.md +++ b/kubernetes/docs/ResourceV1ResourceClaim.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1ResourceClaimSpec**](V1ResourceClaimSpec.md) | | +**spec** | [**V1ResourceClaimSpec**](V1ResourceClaimSpec.md) | | [optional] **status** | [**V1ResourceClaimStatus**](V1ResourceClaimStatus.md) | | [optional] ## Example diff --git a/kubernetes/docs/SchedulingApi.md b/kubernetes/docs/SchedulingApi.md index 2130f7c97f..4b9a420b49 100644 --- a/kubernetes/docs/SchedulingApi.md +++ b/kubernetes/docs/SchedulingApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/SchedulingV1alpha3Api.md b/kubernetes/docs/SchedulingV1alpha3Api.md new file mode 100644 index 0000000000..bf51520fdd --- /dev/null +++ b/kubernetes/docs/SchedulingV1alpha3Api.md @@ -0,0 +1,2905 @@ +# kubernetes.client.SchedulingV1alpha3Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_namespaced_composite_pod_group**](SchedulingV1alpha3Api.md#create_namespaced_composite_pod_group) | **POST** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups | +[**create_namespaced_pod_group**](SchedulingV1alpha3Api.md#create_namespaced_pod_group) | **POST** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups | +[**create_namespaced_workload**](SchedulingV1alpha3Api.md#create_namespaced_workload) | **POST** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads | +[**delete_collection_namespaced_composite_pod_group**](SchedulingV1alpha3Api.md#delete_collection_namespaced_composite_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups | +[**delete_collection_namespaced_pod_group**](SchedulingV1alpha3Api.md#delete_collection_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups | +[**delete_collection_namespaced_workload**](SchedulingV1alpha3Api.md#delete_collection_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads | +[**delete_namespaced_composite_pod_group**](SchedulingV1alpha3Api.md#delete_namespaced_composite_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | +[**delete_namespaced_pod_group**](SchedulingV1alpha3Api.md#delete_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | +[**delete_namespaced_workload**](SchedulingV1alpha3Api.md#delete_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | +[**get_api_resources**](SchedulingV1alpha3Api.md#get_api_resources) | **GET** /apis/scheduling.k8s.io/v1alpha3/ | +[**list_composite_pod_group_for_all_namespaces**](SchedulingV1alpha3Api.md#list_composite_pod_group_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha3/compositepodgroups | +[**list_namespaced_composite_pod_group**](SchedulingV1alpha3Api.md#list_namespaced_composite_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups | +[**list_namespaced_pod_group**](SchedulingV1alpha3Api.md#list_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups | +[**list_namespaced_workload**](SchedulingV1alpha3Api.md#list_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads | +[**list_pod_group_for_all_namespaces**](SchedulingV1alpha3Api.md#list_pod_group_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha3/podgroups | +[**list_workload_for_all_namespaces**](SchedulingV1alpha3Api.md#list_workload_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha3/workloads | +[**patch_namespaced_composite_pod_group**](SchedulingV1alpha3Api.md#patch_namespaced_composite_pod_group) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | +[**patch_namespaced_composite_pod_group_status**](SchedulingV1alpha3Api.md#patch_namespaced_composite_pod_group_status) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status | +[**patch_namespaced_pod_group**](SchedulingV1alpha3Api.md#patch_namespaced_pod_group) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | +[**patch_namespaced_pod_group_status**](SchedulingV1alpha3Api.md#patch_namespaced_pod_group_status) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status | +[**patch_namespaced_workload**](SchedulingV1alpha3Api.md#patch_namespaced_workload) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | +[**read_namespaced_composite_pod_group**](SchedulingV1alpha3Api.md#read_namespaced_composite_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | +[**read_namespaced_composite_pod_group_status**](SchedulingV1alpha3Api.md#read_namespaced_composite_pod_group_status) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status | +[**read_namespaced_pod_group**](SchedulingV1alpha3Api.md#read_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | +[**read_namespaced_pod_group_status**](SchedulingV1alpha3Api.md#read_namespaced_pod_group_status) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status | +[**read_namespaced_workload**](SchedulingV1alpha3Api.md#read_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | +[**replace_namespaced_composite_pod_group**](SchedulingV1alpha3Api.md#replace_namespaced_composite_pod_group) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | +[**replace_namespaced_composite_pod_group_status**](SchedulingV1alpha3Api.md#replace_namespaced_composite_pod_group_status) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status | +[**replace_namespaced_pod_group**](SchedulingV1alpha3Api.md#replace_namespaced_pod_group) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | +[**replace_namespaced_pod_group_status**](SchedulingV1alpha3Api.md#replace_namespaced_pod_group_status) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status | +[**replace_namespaced_workload**](SchedulingV1alpha3Api.md#replace_namespaced_workload) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | + + +# **create_namespaced_composite_pod_group** +> V1alpha3CompositePodGroup create_namespaced_composite_pod_group(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +create a CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.client.V1alpha3CompositePodGroup() # V1alpha3CompositePodGroup | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = api_instance.create_namespaced_composite_pod_group(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of SchedulingV1alpha3Api->create_namespaced_composite_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->create_namespaced_composite_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_pod_group** +> V1alpha3PodGroup create_namespaced_pod_group(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +create a PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_pod_group import V1alpha3PodGroup +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.client.V1alpha3PodGroup() # V1alpha3PodGroup | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = api_instance.create_namespaced_pod_group(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of SchedulingV1alpha3Api->create_namespaced_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->create_namespaced_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3PodGroup**](V1alpha3PodGroup.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.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 | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_namespaced_workload** +> V1alpha3Workload create_namespaced_workload(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +create a Workload + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_workload import V1alpha3Workload +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.client.V1alpha3Workload() # V1alpha3Workload | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = api_instance.create_namespaced_workload(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of SchedulingV1alpha3Api->create_namespaced_workload:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->create_namespaced_workload: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3Workload**](V1alpha3Workload.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1alpha3Workload**](V1alpha3Workload.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 | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_composite_pod_group** +> V1Status delete_collection_namespaced_composite_pod_group(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + +delete collection of CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.client.models.v1_status import V1Status +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = api_instance.delete_collection_namespaced_composite_pod_group(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of SchedulingV1alpha3Api->delete_collection_namespaced_composite_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->delete_collection_namespaced_composite_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| 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**: 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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_pod_group** +> V1Status delete_collection_namespaced_pod_group(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + +delete collection of PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.client.models.v1_status import V1Status +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = api_instance.delete_collection_namespaced_pod_group(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of SchedulingV1alpha3Api->delete_collection_namespaced_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->delete_collection_namespaced_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| 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**: 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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_collection_namespaced_workload** +> V1Status delete_collection_namespaced_workload(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + +delete collection of Workload + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.client.models.v1_status import V1Status +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = api_instance.delete_collection_namespaced_workload(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of SchedulingV1alpha3Api->delete_collection_namespaced_workload:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->delete_collection_namespaced_workload: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| 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**: 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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_composite_pod_group** +> object delete_namespaced_composite_pod_group(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + +delete a CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the CompositePodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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 = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = api_instance.delete_namespaced_composite_pod_group(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of SchedulingV1alpha3Api->delete_namespaced_composite_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->delete_namespaced_composite_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CompositePodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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 + +**object** + +### 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 | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_pod_group** +> object delete_namespaced_pod_group(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + +delete a PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the PodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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 = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = api_instance.delete_namespaced_pod_group(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of SchedulingV1alpha3Api->delete_namespaced_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->delete_namespaced_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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 + +**object** + +### 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 | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_namespaced_workload** +> object delete_namespaced_workload(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + +delete a Workload + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the Workload + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + grace_period_seconds = 56 # int | 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) + ignore_store_read_error_with_cluster_breaking_potential = True # bool | 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) + orphan_dependents = True # bool | 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) + propagation_policy = 'propagation_policy_example' # str | 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 = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) + + try: + api_response = api_instance.delete_namespaced_workload(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of SchedulingV1alpha3Api->delete_namespaced_workload:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->delete_namespaced_workload: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Workload | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **grace_period_seconds** | **int**| 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] + **ignore_store_read_error_with_cluster_breaking_potential** | **bool**| 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] + **orphan_dependents** | **bool**| 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] + **propagation_policy** | **str**| 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 + +**object** + +### 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 | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_api_resources** +> V1APIResourceList get_api_resources() + +get available resources + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_api_resource_list import V1APIResourceList +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + + try: + api_response = api_instance.get_api_resources() + print("The response of SchedulingV1alpha3Api->get_api_resources:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->get_api_resources: %s\n" % e) +``` + + + +### 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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_composite_pod_group_for_all_namespaces** +> V1alpha3CompositePodGroupList list_composite_pod_group_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_composite_pod_group_list import V1alpha3CompositePodGroupList +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = api_instance.list_composite_pod_group_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of SchedulingV1alpha3Api->list_composite_pod_group_for_all_namespaces:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->list_composite_pod_group_for_all_namespaces: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3CompositePodGroupList**](V1alpha3CompositePodGroupList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_composite_pod_group** +> V1alpha3CompositePodGroupList list_namespaced_composite_pod_group(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_composite_pod_group_list import V1alpha3CompositePodGroupList +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = api_instance.list_namespaced_composite_pod_group(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of SchedulingV1alpha3Api->list_namespaced_composite_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->list_namespaced_composite_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3CompositePodGroupList**](V1alpha3CompositePodGroupList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_pod_group** +> V1alpha3PodGroupList list_namespaced_pod_group(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_pod_group_list import V1alpha3PodGroupList +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = api_instance.list_namespaced_pod_group(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of SchedulingV1alpha3Api->list_namespaced_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->list_namespaced_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3PodGroupList**](V1alpha3PodGroupList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_namespaced_workload** +> V1alpha3WorkloadList list_namespaced_workload(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind Workload + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_workload_list import V1alpha3WorkloadList +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = api_instance.list_namespaced_workload(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of SchedulingV1alpha3Api->list_namespaced_workload:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->list_namespaced_workload: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3WorkloadList**](V1alpha3WorkloadList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_pod_group_for_all_namespaces** +> V1alpha3PodGroupList list_pod_group_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_pod_group_list import V1alpha3PodGroupList +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = api_instance.list_pod_group_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of SchedulingV1alpha3Api->list_pod_group_for_all_namespaces:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->list_pod_group_for_all_namespaces: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3PodGroupList**](V1alpha3PodGroupList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_workload_for_all_namespaces** +> V1alpha3WorkloadList list_workload_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + +list or watch objects of kind Workload + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_workload_list import V1alpha3WorkloadList +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) + field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 = 'pretty_example' # str | If 'true', 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) + resource_version = 'resource_version_example' # str | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resource_version_match = 'resource_version_match_example' # str | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + send_initial_events = True # bool | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + shard_selector = 'shard_selector_example' # str | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + try: + api_response = api_instance.list_workload_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of SchedulingV1alpha3Api->list_workload_for_all_namespaces:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->list_workload_for_all_namespaces: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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** | **str**| If 'true', 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] + **resource_version** | **str**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **resource_version_match** | **str**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] + **send_initial_events** | **bool**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] + **shard_selector** | **str**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] + **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha3WorkloadList**](V1alpha3WorkloadList.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_composite_pod_group** +> V1alpha3CompositePodGroup patch_namespaced_composite_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the CompositePodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_namespaced_composite_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of SchedulingV1alpha3Api->patch_namespaced_composite_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->patch_namespaced_composite_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CompositePodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_composite_pod_group_status** +> V1alpha3CompositePodGroup patch_namespaced_composite_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update status of the specified CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the CompositePodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_namespaced_composite_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of SchedulingV1alpha3Api->patch_namespaced_composite_pod_group_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->patch_namespaced_composite_pod_group_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CompositePodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_pod_group** +> V1alpha3PodGroup patch_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_pod_group import V1alpha3PodGroup +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the PodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of SchedulingV1alpha3Api->patch_namespaced_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->patch_namespaced_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_pod_group_status** +> V1alpha3PodGroup patch_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update status of the specified PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_pod_group import V1alpha3PodGroup +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the PodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of SchedulingV1alpha3Api->patch_namespaced_pod_group_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->patch_namespaced_pod_group_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_namespaced_workload** +> V1alpha3Workload patch_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update the specified Workload + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_workload import V1alpha3Workload +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the Workload + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of SchedulingV1alpha3Api->patch_namespaced_workload:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->patch_namespaced_workload: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Workload | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1alpha3Workload**](V1alpha3Workload.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_composite_pod_group** +> V1alpha3CompositePodGroup read_namespaced_composite_pod_group(name, namespace, pretty=pretty) + +read the specified CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the CompositePodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + + try: + api_response = api_instance.read_namespaced_composite_pod_group(name, namespace, pretty=pretty) + print("The response of SchedulingV1alpha3Api->read_namespaced_composite_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->read_namespaced_composite_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CompositePodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_composite_pod_group_status** +> V1alpha3CompositePodGroup read_namespaced_composite_pod_group_status(name, namespace, pretty=pretty) + +read status of the specified CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the CompositePodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + + try: + api_response = api_instance.read_namespaced_composite_pod_group_status(name, namespace, pretty=pretty) + print("The response of SchedulingV1alpha3Api->read_namespaced_composite_pod_group_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->read_namespaced_composite_pod_group_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CompositePodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_pod_group** +> V1alpha3PodGroup read_namespaced_pod_group(name, namespace, pretty=pretty) + +read the specified PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_pod_group import V1alpha3PodGroup +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the PodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + + try: + api_response = api_instance.read_namespaced_pod_group(name, namespace, pretty=pretty) + print("The response of SchedulingV1alpha3Api->read_namespaced_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->read_namespaced_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_pod_group_status** +> V1alpha3PodGroup read_namespaced_pod_group_status(name, namespace, pretty=pretty) + +read status of the specified PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_pod_group import V1alpha3PodGroup +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the PodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + + try: + api_response = api_instance.read_namespaced_pod_group_status(name, namespace, pretty=pretty) + print("The response of SchedulingV1alpha3Api->read_namespaced_pod_group_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->read_namespaced_pod_group_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_namespaced_workload** +> V1alpha3Workload read_namespaced_workload(name, namespace, pretty=pretty) + +read the specified Workload + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_workload import V1alpha3Workload +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the Workload + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + pretty = 'pretty_example' # str | If 'true', 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) + + try: + api_response = api_instance.read_namespaced_workload(name, namespace, pretty=pretty) + print("The response of SchedulingV1alpha3Api->read_namespaced_workload:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->read_namespaced_workload: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Workload | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **pretty** | **str**| If 'true', 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 + +[**V1alpha3Workload**](V1alpha3Workload.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_composite_pod_group** +> V1alpha3CompositePodGroup replace_namespaced_composite_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace the specified CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the CompositePodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.client.V1alpha3CompositePodGroup() # V1alpha3CompositePodGroup | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = api_instance.replace_namespaced_composite_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of SchedulingV1alpha3Api->replace_namespaced_composite_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->replace_namespaced_composite_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CompositePodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_composite_pod_group_status** +> V1alpha3CompositePodGroup replace_namespaced_composite_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace status of the specified CompositePodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the CompositePodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.client.V1alpha3CompositePodGroup() # V1alpha3CompositePodGroup | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = api_instance.replace_namespaced_composite_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of SchedulingV1alpha3Api->replace_namespaced_composite_pod_group_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->replace_namespaced_composite_pod_group_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CompositePodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1alpha3CompositePodGroup**](V1alpha3CompositePodGroup.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_pod_group** +> V1alpha3PodGroup replace_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace the specified PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_pod_group import V1alpha3PodGroup +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the PodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.client.V1alpha3PodGroup() # V1alpha3PodGroup | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = api_instance.replace_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of SchedulingV1alpha3Api->replace_namespaced_pod_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->replace_namespaced_pod_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3PodGroup**](V1alpha3PodGroup.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_pod_group_status** +> V1alpha3PodGroup replace_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace status of the specified PodGroup + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_pod_group import V1alpha3PodGroup +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the PodGroup + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.client.V1alpha3PodGroup() # V1alpha3PodGroup | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = api_instance.replace_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of SchedulingV1alpha3Api->replace_namespaced_pod_group_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->replace_namespaced_pod_group_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodGroup | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3PodGroup**](V1alpha3PodGroup.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1alpha3PodGroup**](V1alpha3PodGroup.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_namespaced_workload** +> V1alpha3Workload replace_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace the specified Workload + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1alpha3_workload import V1alpha3Workload +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha3Api(api_client) + name = 'name_example' # str | name of the Workload + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects + body = kubernetes.client.V1alpha3Workload() # V1alpha3Workload | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = api_instance.replace_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of SchedulingV1alpha3Api->replace_namespaced_workload:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SchedulingV1alpha3Api->replace_namespaced_workload: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the Workload | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha3Workload**](V1alpha3Workload.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1alpha3Workload**](V1alpha3Workload.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/SchedulingV1alpha2Api.md b/kubernetes/docs/SchedulingV1beta1Api.md similarity index 93% rename from kubernetes/docs/SchedulingV1alpha2Api.md rename to kubernetes/docs/SchedulingV1beta1Api.md index 1818005222..1483e14aa4 100644 --- a/kubernetes/docs/SchedulingV1alpha2Api.md +++ b/kubernetes/docs/SchedulingV1beta1Api.md @@ -1,33 +1,33 @@ -# kubernetes.client.SchedulingV1alpha2Api +# kubernetes.client.SchedulingV1beta1Api All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**create_namespaced_pod_group**](SchedulingV1alpha2Api.md#create_namespaced_pod_group) | **POST** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups | -[**create_namespaced_workload**](SchedulingV1alpha2Api.md#create_namespaced_workload) | **POST** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads | -[**delete_collection_namespaced_pod_group**](SchedulingV1alpha2Api.md#delete_collection_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups | -[**delete_collection_namespaced_workload**](SchedulingV1alpha2Api.md#delete_collection_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads | -[**delete_namespaced_pod_group**](SchedulingV1alpha2Api.md#delete_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | -[**delete_namespaced_workload**](SchedulingV1alpha2Api.md#delete_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | -[**get_api_resources**](SchedulingV1alpha2Api.md#get_api_resources) | **GET** /apis/scheduling.k8s.io/v1alpha2/ | -[**list_namespaced_pod_group**](SchedulingV1alpha2Api.md#list_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups | -[**list_namespaced_workload**](SchedulingV1alpha2Api.md#list_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads | -[**list_pod_group_for_all_namespaces**](SchedulingV1alpha2Api.md#list_pod_group_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha2/podgroups | -[**list_workload_for_all_namespaces**](SchedulingV1alpha2Api.md#list_workload_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha2/workloads | -[**patch_namespaced_pod_group**](SchedulingV1alpha2Api.md#patch_namespaced_pod_group) | **PATCH** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | -[**patch_namespaced_pod_group_status**](SchedulingV1alpha2Api.md#patch_namespaced_pod_group_status) | **PATCH** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status | -[**patch_namespaced_workload**](SchedulingV1alpha2Api.md#patch_namespaced_workload) | **PATCH** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | -[**read_namespaced_pod_group**](SchedulingV1alpha2Api.md#read_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | -[**read_namespaced_pod_group_status**](SchedulingV1alpha2Api.md#read_namespaced_pod_group_status) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status | -[**read_namespaced_workload**](SchedulingV1alpha2Api.md#read_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | -[**replace_namespaced_pod_group**](SchedulingV1alpha2Api.md#replace_namespaced_pod_group) | **PUT** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | -[**replace_namespaced_pod_group_status**](SchedulingV1alpha2Api.md#replace_namespaced_pod_group_status) | **PUT** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status | -[**replace_namespaced_workload**](SchedulingV1alpha2Api.md#replace_namespaced_workload) | **PUT** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | +[**create_namespaced_pod_group**](SchedulingV1beta1Api.md#create_namespaced_pod_group) | **POST** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups | +[**create_namespaced_workload**](SchedulingV1beta1Api.md#create_namespaced_workload) | **POST** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads | +[**delete_collection_namespaced_pod_group**](SchedulingV1beta1Api.md#delete_collection_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups | +[**delete_collection_namespaced_workload**](SchedulingV1beta1Api.md#delete_collection_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads | +[**delete_namespaced_pod_group**](SchedulingV1beta1Api.md#delete_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | +[**delete_namespaced_workload**](SchedulingV1beta1Api.md#delete_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | +[**get_api_resources**](SchedulingV1beta1Api.md#get_api_resources) | **GET** /apis/scheduling.k8s.io/v1beta1/ | +[**list_namespaced_pod_group**](SchedulingV1beta1Api.md#list_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups | +[**list_namespaced_workload**](SchedulingV1beta1Api.md#list_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads | +[**list_pod_group_for_all_namespaces**](SchedulingV1beta1Api.md#list_pod_group_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1beta1/podgroups | +[**list_workload_for_all_namespaces**](SchedulingV1beta1Api.md#list_workload_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1beta1/workloads | +[**patch_namespaced_pod_group**](SchedulingV1beta1Api.md#patch_namespaced_pod_group) | **PATCH** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | +[**patch_namespaced_pod_group_status**](SchedulingV1beta1Api.md#patch_namespaced_pod_group_status) | **PATCH** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status | +[**patch_namespaced_workload**](SchedulingV1beta1Api.md#patch_namespaced_workload) | **PATCH** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | +[**read_namespaced_pod_group**](SchedulingV1beta1Api.md#read_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | +[**read_namespaced_pod_group_status**](SchedulingV1beta1Api.md#read_namespaced_pod_group_status) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status | +[**read_namespaced_workload**](SchedulingV1beta1Api.md#read_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | +[**replace_namespaced_pod_group**](SchedulingV1beta1Api.md#replace_namespaced_pod_group) | **PUT** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | +[**replace_namespaced_pod_group_status**](SchedulingV1beta1Api.md#replace_namespaced_pod_group_status) | **PUT** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status | +[**replace_namespaced_workload**](SchedulingV1beta1Api.md#replace_namespaced_workload) | **PUT** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | # **create_namespaced_pod_group** -> V1alpha2PodGroup create_namespaced_pod_group(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +> V1beta1PodGroup create_namespaced_pod_group(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) create a PodGroup @@ -37,7 +37,7 @@ create a PodGroup ```python import kubernetes.client -from kubernetes.client.models.v1alpha2_pod_group import V1alpha2PodGroup +from kubernetes.client.models.v1beta1_pod_group import V1beta1PodGroup from kubernetes.client.rest import ApiException from pprint import pprint @@ -61,9 +61,9 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects - body = kubernetes.client.V1alpha2PodGroup() # V1alpha2PodGroup | + body = kubernetes.client.V1beta1PodGroup() # V1beta1PodGroup | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) @@ -71,10 +71,10 @@ with kubernetes.client.ApiClient(configuration) as api_client: try: api_response = api_instance.create_namespaced_pod_group(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of SchedulingV1alpha2Api->create_namespaced_pod_group:\n") + print("The response of SchedulingV1beta1Api->create_namespaced_pod_group:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->create_namespaced_pod_group: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->create_namespaced_pod_group: %s\n" % e) ``` @@ -85,7 +85,7 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2PodGroup**](V1alpha2PodGroup.md)| | + **body** | [**V1beta1PodGroup**](V1beta1PodGroup.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -93,7 +93,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -116,7 +116,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_workload** -> V1alpha2Workload create_namespaced_workload(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +> V1beta1Workload create_namespaced_workload(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) create a Workload @@ -126,7 +126,7 @@ create a Workload ```python import kubernetes.client -from kubernetes.client.models.v1alpha2_workload import V1alpha2Workload +from kubernetes.client.models.v1beta1_workload import V1beta1Workload from kubernetes.client.rest import ApiException from pprint import pprint @@ -150,9 +150,9 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects - body = kubernetes.client.V1alpha2Workload() # V1alpha2Workload | + body = kubernetes.client.V1beta1Workload() # V1beta1Workload | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) @@ -160,10 +160,10 @@ with kubernetes.client.ApiClient(configuration) as api_client: try: api_response = api_instance.create_namespaced_workload(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of SchedulingV1alpha2Api->create_namespaced_workload:\n") + print("The response of SchedulingV1beta1Api->create_namespaced_workload:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->create_namespaced_workload: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->create_namespaced_workload: %s\n" % e) ``` @@ -174,7 +174,7 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2Workload**](V1alpha2Workload.md)| | + **body** | [**V1beta1Workload**](V1beta1Workload.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -182,7 +182,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2Workload**](V1alpha2Workload.md) +[**V1beta1Workload**](V1beta1Workload.md) ### Authorization @@ -240,7 +240,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) @@ -261,10 +261,10 @@ with kubernetes.client.ApiClient(configuration) as api_client: try: api_response = api_instance.delete_collection_namespaced_pod_group(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - print("The response of SchedulingV1alpha2Api->delete_collection_namespaced_pod_group:\n") + print("The response of SchedulingV1beta1Api->delete_collection_namespaced_pod_group:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->delete_collection_namespaced_pod_group: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->delete_collection_namespaced_pod_group: %s\n" % e) ``` @@ -350,7 +350,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) @@ -371,10 +371,10 @@ with kubernetes.client.ApiClient(configuration) as api_client: try: api_response = api_instance.delete_collection_namespaced_workload(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - print("The response of SchedulingV1alpha2Api->delete_collection_namespaced_workload:\n") + print("The response of SchedulingV1beta1Api->delete_collection_namespaced_workload:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->delete_collection_namespaced_workload: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->delete_collection_namespaced_workload: %s\n" % e) ``` @@ -459,7 +459,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the PodGroup namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) @@ -472,10 +472,10 @@ with kubernetes.client.ApiClient(configuration) as api_client: try: api_response = api_instance.delete_namespaced_pod_group(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of SchedulingV1alpha2Api->delete_namespaced_pod_group:\n") + print("The response of SchedulingV1beta1Api->delete_namespaced_pod_group:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->delete_namespaced_pod_group: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->delete_namespaced_pod_group: %s\n" % e) ``` @@ -553,7 +553,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the Workload namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) @@ -566,10 +566,10 @@ with kubernetes.client.ApiClient(configuration) as api_client: try: api_response = api_instance.delete_namespaced_workload(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of SchedulingV1alpha2Api->delete_namespaced_workload:\n") + print("The response of SchedulingV1beta1Api->delete_namespaced_workload:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->delete_namespaced_workload: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->delete_namespaced_workload: %s\n" % e) ``` @@ -647,14 +647,14 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) try: api_response = api_instance.get_api_resources() - print("The response of SchedulingV1alpha2Api->get_api_resources:\n") + print("The response of SchedulingV1beta1Api->get_api_resources:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->get_api_resources: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->get_api_resources: %s\n" % e) ``` @@ -686,7 +686,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_pod_group** -> V1alpha2PodGroupList list_namespaced_pod_group(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1PodGroupList list_namespaced_pod_group(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind PodGroup @@ -696,7 +696,7 @@ list or watch objects of kind PodGroup ```python import kubernetes.client -from kubernetes.client.models.v1alpha2_pod_group_list import V1alpha2PodGroupList +from kubernetes.client.models.v1beta1_pod_group_list import V1beta1PodGroupList from kubernetes.client.rest import ApiException from pprint import pprint @@ -720,7 +720,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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) @@ -737,10 +737,10 @@ with kubernetes.client.ApiClient(configuration) as api_client: try: api_response = api_instance.list_namespaced_pod_group(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of SchedulingV1alpha2Api->list_namespaced_pod_group:\n") + print("The response of SchedulingV1beta1Api->list_namespaced_pod_group:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->list_namespaced_pod_group: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->list_namespaced_pod_group: %s\n" % e) ``` @@ -766,7 +766,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2PodGroupList**](V1alpha2PodGroupList.md) +[**V1beta1PodGroupList**](V1beta1PodGroupList.md) ### Authorization @@ -787,7 +787,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_workload** -> V1alpha2WorkloadList list_namespaced_workload(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1WorkloadList list_namespaced_workload(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Workload @@ -797,7 +797,7 @@ list or watch objects of kind Workload ```python import kubernetes.client -from kubernetes.client.models.v1alpha2_workload_list import V1alpha2WorkloadList +from kubernetes.client.models.v1beta1_workload_list import V1beta1WorkloadList from kubernetes.client.rest import ApiException from pprint import pprint @@ -821,7 +821,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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) @@ -838,10 +838,10 @@ with kubernetes.client.ApiClient(configuration) as api_client: try: api_response = api_instance.list_namespaced_workload(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of SchedulingV1alpha2Api->list_namespaced_workload:\n") + print("The response of SchedulingV1beta1Api->list_namespaced_workload:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->list_namespaced_workload: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->list_namespaced_workload: %s\n" % e) ``` @@ -867,7 +867,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2WorkloadList**](V1alpha2WorkloadList.md) +[**V1beta1WorkloadList**](V1beta1WorkloadList.md) ### Authorization @@ -888,7 +888,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_pod_group_for_all_namespaces** -> V1alpha2PodGroupList list_pod_group_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1PodGroupList list_pod_group_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind PodGroup @@ -898,7 +898,7 @@ list or watch objects of kind PodGroup ```python import kubernetes.client -from kubernetes.client.models.v1alpha2_pod_group_list import V1alpha2PodGroupList +from kubernetes.client.models.v1beta1_pod_group_list import V1beta1PodGroupList from kubernetes.client.rest import ApiException from pprint import pprint @@ -922,7 +922,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -938,10 +938,10 @@ with kubernetes.client.ApiClient(configuration) as api_client: try: api_response = api_instance.list_pod_group_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of SchedulingV1alpha2Api->list_pod_group_for_all_namespaces:\n") + print("The response of SchedulingV1beta1Api->list_pod_group_for_all_namespaces:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->list_pod_group_for_all_namespaces: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->list_pod_group_for_all_namespaces: %s\n" % e) ``` @@ -966,7 +966,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2PodGroupList**](V1alpha2PodGroupList.md) +[**V1beta1PodGroupList**](V1beta1PodGroupList.md) ### Authorization @@ -987,7 +987,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_workload_for_all_namespaces** -> V1alpha2WorkloadList list_workload_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1WorkloadList list_workload_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Workload @@ -997,7 +997,7 @@ list or watch objects of kind Workload ```python import kubernetes.client -from kubernetes.client.models.v1alpha2_workload_list import V1alpha2WorkloadList +from kubernetes.client.models.v1beta1_workload_list import V1beta1WorkloadList from kubernetes.client.rest import ApiException from pprint import pprint @@ -1021,7 +1021,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1037,10 +1037,10 @@ with kubernetes.client.ApiClient(configuration) as api_client: try: api_response = api_instance.list_workload_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of SchedulingV1alpha2Api->list_workload_for_all_namespaces:\n") + print("The response of SchedulingV1beta1Api->list_workload_for_all_namespaces:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->list_workload_for_all_namespaces: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->list_workload_for_all_namespaces: %s\n" % e) ``` @@ -1065,7 +1065,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2WorkloadList**](V1alpha2WorkloadList.md) +[**V1beta1WorkloadList**](V1beta1WorkloadList.md) ### Authorization @@ -1086,7 +1086,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_pod_group** -> V1alpha2PodGroup patch_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +> V1beta1PodGroup patch_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) partially update the specified PodGroup @@ -1096,7 +1096,7 @@ partially update the specified PodGroup ```python import kubernetes.client -from kubernetes.client.models.v1alpha2_pod_group import V1alpha2PodGroup +from kubernetes.client.models.v1beta1_pod_group import V1beta1PodGroup from kubernetes.client.rest import ApiException from pprint import pprint @@ -1120,7 +1120,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the PodGroup namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | @@ -1132,10 +1132,10 @@ with kubernetes.client.ApiClient(configuration) as api_client: try: api_response = api_instance.patch_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of SchedulingV1alpha2Api->patch_namespaced_pod_group:\n") + print("The response of SchedulingV1beta1Api->patch_namespaced_pod_group:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->patch_namespaced_pod_group: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->patch_namespaced_pod_group: %s\n" % e) ``` @@ -1156,7 +1156,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -1178,7 +1178,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_pod_group_status** -> V1alpha2PodGroup patch_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +> V1beta1PodGroup patch_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) partially update status of the specified PodGroup @@ -1188,7 +1188,7 @@ partially update status of the specified PodGroup ```python import kubernetes.client -from kubernetes.client.models.v1alpha2_pod_group import V1alpha2PodGroup +from kubernetes.client.models.v1beta1_pod_group import V1beta1PodGroup from kubernetes.client.rest import ApiException from pprint import pprint @@ -1212,7 +1212,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the PodGroup namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | @@ -1224,10 +1224,10 @@ with kubernetes.client.ApiClient(configuration) as api_client: try: api_response = api_instance.patch_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of SchedulingV1alpha2Api->patch_namespaced_pod_group_status:\n") + print("The response of SchedulingV1beta1Api->patch_namespaced_pod_group_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->patch_namespaced_pod_group_status: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->patch_namespaced_pod_group_status: %s\n" % e) ``` @@ -1248,7 +1248,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -1270,7 +1270,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_workload** -> V1alpha2Workload patch_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +> V1beta1Workload patch_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) partially update the specified Workload @@ -1280,7 +1280,7 @@ partially update the specified Workload ```python import kubernetes.client -from kubernetes.client.models.v1alpha2_workload import V1alpha2Workload +from kubernetes.client.models.v1beta1_workload import V1beta1Workload from kubernetes.client.rest import ApiException from pprint import pprint @@ -1304,7 +1304,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the Workload namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | @@ -1316,10 +1316,10 @@ with kubernetes.client.ApiClient(configuration) as api_client: try: api_response = api_instance.patch_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of SchedulingV1alpha2Api->patch_namespaced_workload:\n") + print("The response of SchedulingV1beta1Api->patch_namespaced_workload:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->patch_namespaced_workload: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->patch_namespaced_workload: %s\n" % e) ``` @@ -1340,7 +1340,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2Workload**](V1alpha2Workload.md) +[**V1beta1Workload**](V1beta1Workload.md) ### Authorization @@ -1362,7 +1362,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_pod_group** -> V1alpha2PodGroup read_namespaced_pod_group(name, namespace, pretty=pretty) +> V1beta1PodGroup read_namespaced_pod_group(name, namespace, pretty=pretty) read the specified PodGroup @@ -1372,7 +1372,7 @@ read the specified PodGroup ```python import kubernetes.client -from kubernetes.client.models.v1alpha2_pod_group import V1alpha2PodGroup +from kubernetes.client.models.v1beta1_pod_group import V1beta1PodGroup from kubernetes.client.rest import ApiException from pprint import pprint @@ -1396,17 +1396,17 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the PodGroup namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) try: api_response = api_instance.read_namespaced_pod_group(name, namespace, pretty=pretty) - print("The response of SchedulingV1alpha2Api->read_namespaced_pod_group:\n") + print("The response of SchedulingV1beta1Api->read_namespaced_pod_group:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->read_namespaced_pod_group: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->read_namespaced_pod_group: %s\n" % e) ``` @@ -1422,7 +1422,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -1443,7 +1443,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_pod_group_status** -> V1alpha2PodGroup read_namespaced_pod_group_status(name, namespace, pretty=pretty) +> V1beta1PodGroup read_namespaced_pod_group_status(name, namespace, pretty=pretty) read status of the specified PodGroup @@ -1453,7 +1453,7 @@ read status of the specified PodGroup ```python import kubernetes.client -from kubernetes.client.models.v1alpha2_pod_group import V1alpha2PodGroup +from kubernetes.client.models.v1beta1_pod_group import V1beta1PodGroup from kubernetes.client.rest import ApiException from pprint import pprint @@ -1477,17 +1477,17 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the PodGroup namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) try: api_response = api_instance.read_namespaced_pod_group_status(name, namespace, pretty=pretty) - print("The response of SchedulingV1alpha2Api->read_namespaced_pod_group_status:\n") + print("The response of SchedulingV1beta1Api->read_namespaced_pod_group_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->read_namespaced_pod_group_status: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->read_namespaced_pod_group_status: %s\n" % e) ``` @@ -1503,7 +1503,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -1524,7 +1524,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_workload** -> V1alpha2Workload read_namespaced_workload(name, namespace, pretty=pretty) +> V1beta1Workload read_namespaced_workload(name, namespace, pretty=pretty) read the specified Workload @@ -1534,7 +1534,7 @@ read the specified Workload ```python import kubernetes.client -from kubernetes.client.models.v1alpha2_workload import V1alpha2Workload +from kubernetes.client.models.v1beta1_workload import V1beta1Workload from kubernetes.client.rest import ApiException from pprint import pprint @@ -1558,17 +1558,17 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the Workload namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', 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) try: api_response = api_instance.read_namespaced_workload(name, namespace, pretty=pretty) - print("The response of SchedulingV1alpha2Api->read_namespaced_workload:\n") + print("The response of SchedulingV1beta1Api->read_namespaced_workload:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->read_namespaced_workload: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->read_namespaced_workload: %s\n" % e) ``` @@ -1584,7 +1584,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2Workload**](V1alpha2Workload.md) +[**V1beta1Workload**](V1beta1Workload.md) ### Authorization @@ -1605,7 +1605,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_pod_group** -> V1alpha2PodGroup replace_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +> V1beta1PodGroup replace_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) replace the specified PodGroup @@ -1615,7 +1615,7 @@ replace the specified PodGroup ```python import kubernetes.client -from kubernetes.client.models.v1alpha2_pod_group import V1alpha2PodGroup +from kubernetes.client.models.v1beta1_pod_group import V1beta1PodGroup from kubernetes.client.rest import ApiException from pprint import pprint @@ -1639,10 +1639,10 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the PodGroup namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects - body = kubernetes.client.V1alpha2PodGroup() # V1alpha2PodGroup | + body = kubernetes.client.V1beta1PodGroup() # V1beta1PodGroup | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) @@ -1650,10 +1650,10 @@ with kubernetes.client.ApiClient(configuration) as api_client: try: api_response = api_instance.replace_namespaced_pod_group(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of SchedulingV1alpha2Api->replace_namespaced_pod_group:\n") + print("The response of SchedulingV1beta1Api->replace_namespaced_pod_group:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->replace_namespaced_pod_group: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->replace_namespaced_pod_group: %s\n" % e) ``` @@ -1665,7 +1665,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodGroup | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2PodGroup**](V1alpha2PodGroup.md)| | + **body** | [**V1beta1PodGroup**](V1beta1PodGroup.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -1673,7 +1673,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -1695,7 +1695,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_pod_group_status** -> V1alpha2PodGroup replace_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +> V1beta1PodGroup replace_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) replace status of the specified PodGroup @@ -1705,7 +1705,7 @@ replace status of the specified PodGroup ```python import kubernetes.client -from kubernetes.client.models.v1alpha2_pod_group import V1alpha2PodGroup +from kubernetes.client.models.v1beta1_pod_group import V1beta1PodGroup from kubernetes.client.rest import ApiException from pprint import pprint @@ -1729,10 +1729,10 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the PodGroup namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects - body = kubernetes.client.V1alpha2PodGroup() # V1alpha2PodGroup | + body = kubernetes.client.V1beta1PodGroup() # V1beta1PodGroup | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) @@ -1740,10 +1740,10 @@ with kubernetes.client.ApiClient(configuration) as api_client: try: api_response = api_instance.replace_namespaced_pod_group_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of SchedulingV1alpha2Api->replace_namespaced_pod_group_status:\n") + print("The response of SchedulingV1beta1Api->replace_namespaced_pod_group_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->replace_namespaced_pod_group_status: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->replace_namespaced_pod_group_status: %s\n" % e) ``` @@ -1755,7 +1755,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodGroup | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2PodGroup**](V1alpha2PodGroup.md)| | + **body** | [**V1beta1PodGroup**](V1beta1PodGroup.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -1763,7 +1763,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2PodGroup**](V1alpha2PodGroup.md) +[**V1beta1PodGroup**](V1beta1PodGroup.md) ### Authorization @@ -1785,7 +1785,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_workload** -> V1alpha2Workload replace_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +> V1beta1Workload replace_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) replace the specified Workload @@ -1795,7 +1795,7 @@ replace the specified Workload ```python import kubernetes.client -from kubernetes.client.models.v1alpha2_workload import V1alpha2Workload +from kubernetes.client.models.v1beta1_workload import V1beta1Workload from kubernetes.client.rest import ApiException from pprint import pprint @@ -1819,10 +1819,10 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.SchedulingV1alpha2Api(api_client) + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) name = 'name_example' # str | name of the Workload namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects - body = kubernetes.client.V1alpha2Workload() # V1alpha2Workload | + body = kubernetes.client.V1beta1Workload() # V1beta1Workload | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) @@ -1830,10 +1830,10 @@ with kubernetes.client.ApiClient(configuration) as api_client: try: api_response = api_instance.replace_namespaced_workload(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of SchedulingV1alpha2Api->replace_namespaced_workload:\n") + print("The response of SchedulingV1beta1Api->replace_namespaced_workload:\n") pprint(api_response) except Exception as e: - print("Exception when calling SchedulingV1alpha2Api->replace_namespaced_workload: %s\n" % e) + print("Exception when calling SchedulingV1beta1Api->replace_namespaced_workload: %s\n" % e) ``` @@ -1845,7 +1845,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Workload | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha2Workload**](V1alpha2Workload.md)| | + **body** | [**V1beta1Workload**](V1beta1Workload.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -1853,7 +1853,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha2Workload**](V1alpha2Workload.md) +[**V1beta1Workload**](V1beta1Workload.md) ### Authorization diff --git a/kubernetes/docs/StorageApi.md b/kubernetes/docs/StorageApi.md index 39709af41d..af266a02f6 100644 --- a/kubernetes/docs/StorageApi.md +++ b/kubernetes/docs/StorageApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/StorageV1Api.md b/kubernetes/docs/StorageV1Api.md index 3e2b0fbcc6..7d11c62059 100644 --- a/kubernetes/docs/StorageV1Api.md +++ b/kubernetes/docs/StorageV1Api.md @@ -32,6 +32,7 @@ Method | HTTP request | Description [**list_volume_attributes_class**](StorageV1Api.md#list_volume_attributes_class) | **GET** /apis/storage.k8s.io/v1/volumeattributesclasses | [**patch_csi_driver**](StorageV1Api.md#patch_csi_driver) | **PATCH** /apis/storage.k8s.io/v1/csidrivers/{name} | [**patch_csi_node**](StorageV1Api.md#patch_csi_node) | **PATCH** /apis/storage.k8s.io/v1/csinodes/{name} | +[**patch_csi_node_status**](StorageV1Api.md#patch_csi_node_status) | **PATCH** /apis/storage.k8s.io/v1/csinodes/{name}/status | [**patch_namespaced_csi_storage_capacity**](StorageV1Api.md#patch_namespaced_csi_storage_capacity) | **PATCH** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | [**patch_storage_class**](StorageV1Api.md#patch_storage_class) | **PATCH** /apis/storage.k8s.io/v1/storageclasses/{name} | [**patch_volume_attachment**](StorageV1Api.md#patch_volume_attachment) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name} | @@ -39,6 +40,7 @@ Method | HTTP request | Description [**patch_volume_attributes_class**](StorageV1Api.md#patch_volume_attributes_class) | **PATCH** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | [**read_csi_driver**](StorageV1Api.md#read_csi_driver) | **GET** /apis/storage.k8s.io/v1/csidrivers/{name} | [**read_csi_node**](StorageV1Api.md#read_csi_node) | **GET** /apis/storage.k8s.io/v1/csinodes/{name} | +[**read_csi_node_status**](StorageV1Api.md#read_csi_node_status) | **GET** /apis/storage.k8s.io/v1/csinodes/{name}/status | [**read_namespaced_csi_storage_capacity**](StorageV1Api.md#read_namespaced_csi_storage_capacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | [**read_storage_class**](StorageV1Api.md#read_storage_class) | **GET** /apis/storage.k8s.io/v1/storageclasses/{name} | [**read_volume_attachment**](StorageV1Api.md#read_volume_attachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name} | @@ -46,6 +48,7 @@ Method | HTTP request | Description [**read_volume_attributes_class**](StorageV1Api.md#read_volume_attributes_class) | **GET** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | [**replace_csi_driver**](StorageV1Api.md#replace_csi_driver) | **PUT** /apis/storage.k8s.io/v1/csidrivers/{name} | [**replace_csi_node**](StorageV1Api.md#replace_csi_node) | **PUT** /apis/storage.k8s.io/v1/csinodes/{name} | +[**replace_csi_node_status**](StorageV1Api.md#replace_csi_node_status) | **PUT** /apis/storage.k8s.io/v1/csinodes/{name}/status | [**replace_namespaced_csi_storage_capacity**](StorageV1Api.md#replace_namespaced_csi_storage_capacity) | **PUT** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | [**replace_storage_class**](StorageV1Api.md#replace_storage_class) | **PUT** /apis/storage.k8s.io/v1/storageclasses/{name} | [**replace_volume_attachment**](StorageV1Api.md#replace_volume_attachment) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name} | @@ -2698,6 +2701,96 @@ with kubernetes.client.ApiClient(configuration) as api_client: +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CSINode | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1CSINode**](V1CSINode.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_csi_node_status** +> V1CSINode patch_csi_node_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + +partially update status of the specified CSINode + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_csi_node import V1CSINode +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + name = 'name_example' # str | name of the CSINode + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_csi_node_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of StorageV1Api->patch_csi_node_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StorageV1Api->patch_csi_node_status: %s\n" % e) +``` + + + ### Parameters @@ -3314,6 +3407,85 @@ with kubernetes.client.ApiClient(configuration) as api_client: +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CSINode | + **pretty** | **str**| If 'true', 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 + +[**V1CSINode**](V1CSINode.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_csi_node_status** +> V1CSINode read_csi_node_status(name, pretty=pretty) + +read status of the specified CSINode + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_csi_node import V1CSINode +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + name = 'name_example' # str | name of the CSINode + pretty = 'pretty_example' # str | If 'true', 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) + + try: + api_response = api_instance.read_csi_node_status(name, pretty=pretty) + print("The response of StorageV1Api->read_csi_node_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StorageV1Api->read_csi_node_status: %s\n" % e) +``` + + + ### Parameters @@ -3882,6 +4054,94 @@ with kubernetes.client.ApiClient(configuration) as api_client: +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the CSINode | + **body** | [**V1CSINode**](V1CSINode.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1CSINode**](V1CSINode.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_csi_node_status** +> V1CSINode replace_csi_node_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace status of the specified CSINode + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_csi_node import V1CSINode +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + name = 'name_example' # str | name of the CSINode + body = kubernetes.client.V1CSINode() # V1CSINode | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = api_instance.replace_csi_node_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of StorageV1Api->replace_csi_node_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StorageV1Api->replace_csi_node_status: %s\n" % e) +``` + + + ### Parameters diff --git a/kubernetes/docs/StoragemigrationApi.md b/kubernetes/docs/StoragemigrationApi.md index 8b168abbbd..6af99efa59 100644 --- a/kubernetes/docs/StoragemigrationApi.md +++ b/kubernetes/docs/StoragemigrationApi.md @@ -69,7 +69,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details diff --git a/kubernetes/docs/StorageV1beta1Api.md b/kubernetes/docs/StoragemigrationV1Api.md similarity index 71% rename from kubernetes/docs/StorageV1beta1Api.md rename to kubernetes/docs/StoragemigrationV1Api.md index 61a1581b19..350a40b9e3 100644 --- a/kubernetes/docs/StorageV1beta1Api.md +++ b/kubernetes/docs/StoragemigrationV1Api.md @@ -1,23 +1,26 @@ -# kubernetes.client.StorageV1beta1Api +# kubernetes.client.StoragemigrationV1Api All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**create_volume_attributes_class**](StorageV1beta1Api.md#create_volume_attributes_class) | **POST** /apis/storage.k8s.io/v1beta1/volumeattributesclasses | -[**delete_collection_volume_attributes_class**](StorageV1beta1Api.md#delete_collection_volume_attributes_class) | **DELETE** /apis/storage.k8s.io/v1beta1/volumeattributesclasses | -[**delete_volume_attributes_class**](StorageV1beta1Api.md#delete_volume_attributes_class) | **DELETE** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | -[**get_api_resources**](StorageV1beta1Api.md#get_api_resources) | **GET** /apis/storage.k8s.io/v1beta1/ | -[**list_volume_attributes_class**](StorageV1beta1Api.md#list_volume_attributes_class) | **GET** /apis/storage.k8s.io/v1beta1/volumeattributesclasses | -[**patch_volume_attributes_class**](StorageV1beta1Api.md#patch_volume_attributes_class) | **PATCH** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | -[**read_volume_attributes_class**](StorageV1beta1Api.md#read_volume_attributes_class) | **GET** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | -[**replace_volume_attributes_class**](StorageV1beta1Api.md#replace_volume_attributes_class) | **PUT** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | +[**create_storage_version_migration**](StoragemigrationV1Api.md#create_storage_version_migration) | **POST** /apis/storagemigration.k8s.io/v1/storageversionmigrations | +[**delete_collection_storage_version_migration**](StoragemigrationV1Api.md#delete_collection_storage_version_migration) | **DELETE** /apis/storagemigration.k8s.io/v1/storageversionmigrations | +[**delete_storage_version_migration**](StoragemigrationV1Api.md#delete_storage_version_migration) | **DELETE** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | +[**get_api_resources**](StoragemigrationV1Api.md#get_api_resources) | **GET** /apis/storagemigration.k8s.io/v1/ | +[**list_storage_version_migration**](StoragemigrationV1Api.md#list_storage_version_migration) | **GET** /apis/storagemigration.k8s.io/v1/storageversionmigrations | +[**patch_storage_version_migration**](StoragemigrationV1Api.md#patch_storage_version_migration) | **PATCH** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | +[**patch_storage_version_migration_status**](StoragemigrationV1Api.md#patch_storage_version_migration_status) | **PATCH** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status | +[**read_storage_version_migration**](StoragemigrationV1Api.md#read_storage_version_migration) | **GET** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | +[**read_storage_version_migration_status**](StoragemigrationV1Api.md#read_storage_version_migration_status) | **GET** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status | +[**replace_storage_version_migration**](StoragemigrationV1Api.md#replace_storage_version_migration) | **PUT** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | +[**replace_storage_version_migration_status**](StoragemigrationV1Api.md#replace_storage_version_migration_status) | **PUT** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status | -# **create_volume_attributes_class** -> V1beta1VolumeAttributesClass create_volume_attributes_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +# **create_storage_version_migration** +> V1StorageVersionMigration create_storage_version_migration(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -create a VolumeAttributesClass +create a StorageVersionMigration ### Example @@ -25,7 +28,7 @@ create a VolumeAttributesClass ```python import kubernetes.client -from kubernetes.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass +from kubernetes.client.models.v1_storage_version_migration import V1StorageVersionMigration from kubernetes.client.rest import ApiException from pprint import pprint @@ -49,19 +52,19 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.StorageV1beta1Api(api_client) - body = kubernetes.client.V1beta1VolumeAttributesClass() # V1beta1VolumeAttributesClass | + api_instance = kubernetes.client.StoragemigrationV1Api(api_client) + body = kubernetes.client.V1StorageVersionMigration() # V1StorageVersionMigration | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = api_instance.create_volume_attributes_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of StorageV1beta1Api->create_volume_attributes_class:\n") + api_response = api_instance.create_storage_version_migration(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of StoragemigrationV1Api->create_storage_version_migration:\n") pprint(api_response) except Exception as e: - print("Exception when calling StorageV1beta1Api->create_volume_attributes_class: %s\n" % e) + print("Exception when calling StoragemigrationV1Api->create_storage_version_migration: %s\n" % e) ``` @@ -71,7 +74,7 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.md)| | + **body** | [**V1StorageVersionMigration**](V1StorageVersionMigration.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -79,7 +82,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.md) +[**V1StorageVersionMigration**](V1StorageVersionMigration.md) ### Authorization @@ -101,10 +104,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_collection_volume_attributes_class** -> V1Status delete_collection_volume_attributes_class(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) +# **delete_collection_storage_version_migration** +> V1Status delete_collection_storage_version_migration(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) -delete collection of VolumeAttributesClass +delete collection of StorageVersionMigration ### Example @@ -137,7 +140,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.StorageV1beta1Api(api_client) + api_instance = kubernetes.client.StoragemigrationV1Api(api_client) pretty = 'pretty_example' # str | If 'true', 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -156,11 +159,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = api_instance.delete_collection_volume_attributes_class(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) - print("The response of StorageV1beta1Api->delete_collection_volume_attributes_class:\n") + api_response = api_instance.delete_collection_storage_version_migration(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, body=body) + print("The response of StoragemigrationV1Api->delete_collection_storage_version_migration:\n") pprint(api_response) except Exception as e: - print("Exception when calling StorageV1beta1Api->delete_collection_volume_attributes_class: %s\n" % e) + print("Exception when calling StoragemigrationV1Api->delete_collection_storage_version_migration: %s\n" % e) ``` @@ -209,10 +212,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_volume_attributes_class** -> V1beta1VolumeAttributesClass delete_volume_attributes_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) +# **delete_storage_version_migration** +> object delete_storage_version_migration(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) -delete a VolumeAttributesClass +delete a StorageVersionMigration ### Example @@ -221,7 +224,6 @@ delete a VolumeAttributesClass ```python import kubernetes.client from kubernetes.client.models.v1_delete_options import V1DeleteOptions -from kubernetes.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass from kubernetes.client.rest import ApiException from pprint import pprint @@ -245,8 +247,8 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.StorageV1beta1Api(api_client) - name = 'name_example' # str | name of the VolumeAttributesClass + api_instance = kubernetes.client.StoragemigrationV1Api(api_client) + name = 'name_example' # str | name of the StorageVersionMigration pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) grace_period_seconds = 56 # int | 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) @@ -256,11 +258,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: - api_response = api_instance.delete_volume_attributes_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - print("The response of StorageV1beta1Api->delete_volume_attributes_class:\n") + api_response = api_instance.delete_storage_version_migration(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential=ignore_store_read_error_with_cluster_breaking_potential, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + print("The response of StoragemigrationV1Api->delete_storage_version_migration:\n") pprint(api_response) except Exception as e: - print("Exception when calling StorageV1beta1Api->delete_volume_attributes_class: %s\n" % e) + print("Exception when calling StoragemigrationV1Api->delete_storage_version_migration: %s\n" % e) ``` @@ -270,7 +272,7 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the VolumeAttributesClass | + **name** | **str**| name of the StorageVersionMigration | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **grace_period_seconds** | **int**| 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] @@ -281,7 +283,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.md) +**object** ### Authorization @@ -337,14 +339,14 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.StorageV1beta1Api(api_client) + api_instance = kubernetes.client.StoragemigrationV1Api(api_client) try: api_response = api_instance.get_api_resources() - print("The response of StorageV1beta1Api->get_api_resources:\n") + print("The response of StoragemigrationV1Api->get_api_resources:\n") pprint(api_response) except Exception as e: - print("Exception when calling StorageV1beta1Api->get_api_resources: %s\n" % e) + print("Exception when calling StoragemigrationV1Api->get_api_resources: %s\n" % e) ``` @@ -375,10 +377,10 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_volume_attributes_class** -> V1beta1VolumeAttributesClassList list_volume_attributes_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) +# **list_storage_version_migration** +> V1StorageVersionMigrationList list_storage_version_migration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) -list or watch objects of kind VolumeAttributesClass +list or watch objects of kind StorageVersionMigration ### Example @@ -386,7 +388,7 @@ list or watch objects of kind VolumeAttributesClass ```python import kubernetes.client -from kubernetes.client.models.v1beta1_volume_attributes_class_list import V1beta1VolumeAttributesClassList +from kubernetes.client.models.v1_storage_version_migration_list import V1StorageVersionMigrationList from kubernetes.client.rest import ApiException from pprint import pprint @@ -410,7 +412,7 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.StorageV1beta1Api(api_client) + api_instance = kubernetes.client.StoragemigrationV1Api(api_client) pretty = 'pretty_example' # str | If 'true', 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) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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) @@ -425,11 +427,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_volume_attributes_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) - print("The response of StorageV1beta1Api->list_volume_attributes_class:\n") + api_response = api_instance.list_storage_version_migration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, resource_version_match=resource_version_match, send_initial_events=send_initial_events, shard_selector=shard_selector, timeout_seconds=timeout_seconds, watch=watch) + print("The response of StoragemigrationV1Api->list_storage_version_migration:\n") pprint(api_response) except Exception as e: - print("Exception when calling StorageV1beta1Api->list_volume_attributes_class: %s\n" % e) + print("Exception when calling StoragemigrationV1Api->list_storage_version_migration: %s\n" % e) ``` @@ -454,7 +456,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1VolumeAttributesClassList**](V1beta1VolumeAttributesClassList.md) +[**V1StorageVersionMigrationList**](V1StorageVersionMigrationList.md) ### Authorization @@ -474,10 +476,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_volume_attributes_class** -> V1beta1VolumeAttributesClass patch_volume_attributes_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) +# **patch_storage_version_migration** +> V1StorageVersionMigration patch_storage_version_migration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) -partially update the specified VolumeAttributesClass +partially update the specified StorageVersionMigration ### Example @@ -485,7 +487,7 @@ partially update the specified VolumeAttributesClass ```python import kubernetes.client -from kubernetes.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass +from kubernetes.client.models.v1_storage_version_migration import V1StorageVersionMigration from kubernetes.client.rest import ApiException from pprint import pprint @@ -509,8 +511,8 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.StorageV1beta1Api(api_client) - name = 'name_example' # str | name of the VolumeAttributesClass + api_instance = kubernetes.client.StoragemigrationV1Api(api_client) + name = 'name_example' # str | name of the StorageVersionMigration body = None # object | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) @@ -519,11 +521,11 @@ with kubernetes.client.ApiClient(configuration) as api_client: force = True # bool | 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) try: - api_response = api_instance.patch_volume_attributes_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) - print("The response of StorageV1beta1Api->patch_volume_attributes_class:\n") + api_response = api_instance.patch_storage_version_migration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of StoragemigrationV1Api->patch_storage_version_migration:\n") pprint(api_response) except Exception as e: - print("Exception when calling StorageV1beta1Api->patch_volume_attributes_class: %s\n" % e) + print("Exception when calling StoragemigrationV1Api->patch_storage_version_migration: %s\n" % e) ``` @@ -533,7 +535,7 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the VolumeAttributesClass | + **name** | **str**| name of the StorageVersionMigration | **body** | **object**| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] @@ -543,7 +545,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.md) +[**V1StorageVersionMigration**](V1StorageVersionMigration.md) ### Authorization @@ -564,10 +566,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **read_volume_attributes_class** -> V1beta1VolumeAttributesClass read_volume_attributes_class(name, pretty=pretty) +# **patch_storage_version_migration_status** +> V1StorageVersionMigration patch_storage_version_migration_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) -read the specified VolumeAttributesClass +partially update status of the specified StorageVersionMigration ### Example @@ -575,7 +577,7 @@ read the specified VolumeAttributesClass ```python import kubernetes.client -from kubernetes.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass +from kubernetes.client.models.v1_storage_version_migration import V1StorageVersionMigration from kubernetes.client.rest import ApiException from pprint import pprint @@ -599,16 +601,185 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.StorageV1beta1Api(api_client) - name = 'name_example' # str | name of the VolumeAttributesClass + api_instance = kubernetes.client.StoragemigrationV1Api(api_client) + name = 'name_example' # str | name of the StorageVersionMigration + body = None # object | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 = True # bool | 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) + + try: + api_response = api_instance.patch_storage_version_migration_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation, force=force) + print("The response of StoragemigrationV1Api->patch_storage_version_migration_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StoragemigrationV1Api->patch_storage_version_migration_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StorageVersionMigration | + **body** | **object**| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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** | **bool**| 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 + +[**V1StorageVersionMigration**](V1StorageVersionMigration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_storage_version_migration** +> V1StorageVersionMigration read_storage_version_migration(name, pretty=pretty) + +read the specified StorageVersionMigration + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_storage_version_migration import V1StorageVersionMigration +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StoragemigrationV1Api(api_client) + name = 'name_example' # str | name of the StorageVersionMigration + pretty = 'pretty_example' # str | If 'true', 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) + + try: + api_response = api_instance.read_storage_version_migration(name, pretty=pretty) + print("The response of StoragemigrationV1Api->read_storage_version_migration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StoragemigrationV1Api->read_storage_version_migration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StorageVersionMigration | + **pretty** | **str**| If 'true', 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 + +[**V1StorageVersionMigration**](V1StorageVersionMigration.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 | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **read_storage_version_migration_status** +> V1StorageVersionMigration read_storage_version_migration_status(name, pretty=pretty) + +read status of the specified StorageVersionMigration + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_storage_version_migration import V1StorageVersionMigration +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StoragemigrationV1Api(api_client) + name = 'name_example' # str | name of the StorageVersionMigration pretty = 'pretty_example' # str | If 'true', 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) try: - api_response = api_instance.read_volume_attributes_class(name, pretty=pretty) - print("The response of StorageV1beta1Api->read_volume_attributes_class:\n") + api_response = api_instance.read_storage_version_migration_status(name, pretty=pretty) + print("The response of StoragemigrationV1Api->read_storage_version_migration_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling StorageV1beta1Api->read_volume_attributes_class: %s\n" % e) + print("Exception when calling StoragemigrationV1Api->read_storage_version_migration_status: %s\n" % e) ``` @@ -618,12 +789,12 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the VolumeAttributesClass | + **name** | **str**| name of the StorageVersionMigration | **pretty** | **str**| If 'true', 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 -[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.md) +[**V1StorageVersionMigration**](V1StorageVersionMigration.md) ### Authorization @@ -643,10 +814,98 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **replace_volume_attributes_class** -> V1beta1VolumeAttributesClass replace_volume_attributes_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) +# **replace_storage_version_migration** +> V1StorageVersionMigration replace_storage_version_migration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + +replace the specified StorageVersionMigration + +### Example + +* Api Key Authentication (BearerToken): + +```python +import kubernetes.client +from kubernetes.client.models.v1_storage_version_migration import V1StorageVersionMigration +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = kubernetes.client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: BearerToken +configuration.api_key['BearerToken'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['BearerToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StoragemigrationV1Api(api_client) + name = 'name_example' # str | name of the StorageVersionMigration + body = kubernetes.client.V1StorageVersionMigration() # V1StorageVersionMigration | + pretty = 'pretty_example' # str | If 'true', 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) + dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) + field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + + try: + api_response = api_instance.replace_storage_version_migration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of StoragemigrationV1Api->replace_storage_version_migration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StoragemigrationV1Api->replace_storage_version_migration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StorageVersionMigration | + **body** | [**V1StorageVersionMigration**](V1StorageVersionMigration.md)| | + **pretty** | **str**| If 'true', 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] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] + **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] + **field_validation** | **str**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 + +[**V1StorageVersionMigration**](V1StorageVersionMigration.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 | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **replace_storage_version_migration_status** +> V1StorageVersionMigration replace_storage_version_migration_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) -replace the specified VolumeAttributesClass +replace status of the specified StorageVersionMigration ### Example @@ -654,7 +913,7 @@ replace the specified VolumeAttributesClass ```python import kubernetes.client -from kubernetes.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass +from kubernetes.client.models.v1_storage_version_migration import V1StorageVersionMigration from kubernetes.client.rest import ApiException from pprint import pprint @@ -678,20 +937,20 @@ configuration.api_key['BearerToken'] = os.environ["API_KEY"] # Enter a context with an instance of the API client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = kubernetes.client.StorageV1beta1Api(api_client) - name = 'name_example' # str | name of the VolumeAttributesClass - body = kubernetes.client.V1beta1VolumeAttributesClass() # V1beta1VolumeAttributesClass | + api_instance = kubernetes.client.StoragemigrationV1Api(api_client) + name = 'name_example' # str | name of the StorageVersionMigration + body = kubernetes.client.V1StorageVersionMigration() # V1StorageVersionMigration | pretty = 'pretty_example' # str | If 'true', 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) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. 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) field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) try: - api_response = api_instance.replace_volume_attributes_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) - print("The response of StorageV1beta1Api->replace_volume_attributes_class:\n") + api_response = api_instance.replace_storage_version_migration_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation) + print("The response of StoragemigrationV1Api->replace_storage_version_migration_status:\n") pprint(api_response) except Exception as e: - print("Exception when calling StorageV1beta1Api->replace_volume_attributes_class: %s\n" % e) + print("Exception when calling StoragemigrationV1Api->replace_storage_version_migration_status: %s\n" % e) ``` @@ -701,8 +960,8 @@ with kubernetes.client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the VolumeAttributesClass | - **body** | [**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.md)| | + **name** | **str**| name of the StorageVersionMigration | + **body** | [**V1StorageVersionMigration**](V1StorageVersionMigration.md)| | **pretty** | **str**| If 'true', 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] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. 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] @@ -710,7 +969,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1VolumeAttributesClass**](V1beta1VolumeAttributesClass.md) +[**V1StorageVersionMigration**](V1StorageVersionMigration.md) ### Authorization diff --git a/kubernetes/docs/V1AggregationRule.md b/kubernetes/docs/V1AggregationRule.md index 470eed00a9..88841daf3d 100644 --- a/kubernetes/docs/V1AggregationRule.md +++ b/kubernetes/docs/V1AggregationRule.md @@ -6,7 +6,7 @@ AggregationRule describes how to locate ClusterRoles to aggregate into the Clust Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cluster_role_selectors** | [**List[V1LabelSelector]**](V1LabelSelector.md) | ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added | [optional] +**cluster_role_selectors** | [**List[V1LabelSelector]**](V1LabelSelector.md) | clusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added | [optional] ## Example diff --git a/kubernetes/docs/V1BoundObjectReference.md b/kubernetes/docs/V1BoundObjectReference.md index b610f9b872..b463be1e68 100644 --- a/kubernetes/docs/V1BoundObjectReference.md +++ b/kubernetes/docs/V1BoundObjectReference.md @@ -7,7 +7,7 @@ BoundObjectReference is a reference to an object that a token is bound to. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | apiVersion is API version of the referent. | [optional] -**kind** | **str** | kind of the referent. Valid kinds are 'Pod' and 'Secret'. | [optional] +**kind** | **str** | kind of the referent. Valid kinds are 'Pod', 'Secret', 'Node', 'ValidatingWebhookConfiguration', and 'MutatingWebhookConfiguration'. | [optional] **name** | **str** | name of the referent. | [optional] **uid** | **str** | uid of the referent. | [optional] diff --git a/kubernetes/docs/V1CELDeviceSelector.md b/kubernetes/docs/V1CELDeviceSelector.md index a9d064adf4..8c8a95f560 100644 --- a/kubernetes/docs/V1CELDeviceSelector.md +++ b/kubernetes/docs/V1CELDeviceSelector.md @@ -6,7 +6,7 @@ CELDeviceSelector contains a CEL expression for selecting a device. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**expression** | **str** | 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. | +**expression** | **str** | 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. | ## Example diff --git a/kubernetes/docs/V1CSIDriverSpec.md b/kubernetes/docs/V1CSIDriverSpec.md index 3ede1eeed9..383aa58dcb 100644 --- a/kubernetes/docs/V1CSIDriverSpec.md +++ b/kubernetes/docs/V1CSIDriverSpec.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **fs_group_policy** | **str** | 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] **node_allocatable_update_period_seconds** | **int** | 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] **pod_info_on_mount** | **bool** | 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] -**prevent_pod_scheduling_if_missing** | **bool** | 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] +**prevent_pod_scheduling_if_missing** | **bool** | 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 a beta feature and requires the VolumeLimitScaling feature gate to be enabled. Default is \"false\". | [optional] **requires_republish** | **bool** | 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] **se_linux_mount** | **bool** | 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] **service_account_token_in_secrets** | **bool** | 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/V1CSINode.md b/kubernetes/docs/V1CSINode.md index 8ffeb8283f..0e1b3c8071 100644 --- a/kubernetes/docs/V1CSINode.md +++ b/kubernetes/docs/V1CSINode.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **kind** | **str** | 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** | [**V1CSINodeSpec**](V1CSINodeSpec.md) | | +**status** | [**V1CSINodeStatus**](V1CSINodeStatus.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1CSINodeStatus.md b/kubernetes/docs/V1CSINodeStatus.md new file mode 100644 index 0000000000..f5faa50893 --- /dev/null +++ b/kubernetes/docs/V1CSINodeStatus.md @@ -0,0 +1,28 @@ +# V1CSINodeStatus + +CSINodeStatus contains health and status information for storage on a node. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**storage_health** | [**List[V1StorageHealth]**](V1StorageHealth.md) | storageHealth contains backend health reports for CSI drivers registered on the node. | [optional] + +## Example + +```python +from kubernetes.client.models.v1_csi_node_status import V1CSINodeStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1CSINodeStatus from a JSON string +v1_csi_node_status_instance = V1CSINodeStatus.from_json(json) +# print the JSON string representation of the object +print(V1CSINodeStatus.to_json()) + +# convert the object into a dict +v1_csi_node_status_dict = v1_csi_node_status_instance.to_dict() +# create an instance of V1CSINodeStatus from a dict +v1_csi_node_status_from_dict = V1CSINodeStatus.from_dict(v1_csi_node_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1CapacityRequestPolicyRange.md b/kubernetes/docs/V1CapacityRequestPolicyRange.md index b02497df75..36f6a22764 100644 --- a/kubernetes/docs/V1CapacityRequestPolicyRange.md +++ b/kubernetes/docs/V1CapacityRequestPolicyRange.md @@ -1,6 +1,6 @@ # V1CapacityRequestPolicyRange -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. +CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - 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. ## Properties diff --git a/kubernetes/docs/V1ClusterRole.md b/kubernetes/docs/V1ClusterRole.md index 5a7f7bd2df..0b7bd5b860 100644 --- a/kubernetes/docs/V1ClusterRole.md +++ b/kubernetes/docs/V1ClusterRole.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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] -**rules** | [**List[V1PolicyRule]**](V1PolicyRule.md) | Rules holds all the PolicyRules for this ClusterRole | [optional] +**rules** | [**List[V1PolicyRule]**](V1PolicyRule.md) | rules holds all the PolicyRules for this ClusterRole | [optional] ## Example diff --git a/kubernetes/docs/V1ClusterRoleBinding.md b/kubernetes/docs/V1ClusterRoleBinding.md index cdcc8697b8..59866aeb86 100644 --- a/kubernetes/docs/V1ClusterRoleBinding.md +++ b/kubernetes/docs/V1ClusterRoleBinding.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **kind** | **str** | 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] **role_ref** | [**V1RoleRef**](V1RoleRef.md) | | -**subjects** | [**List[RbacV1Subject]**](RbacV1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] +**subjects** | [**List[RbacV1Subject]**](RbacV1Subject.md) | subjects holds references to the objects the role applies to. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1alpha1ClusterTrustBundle.md b/kubernetes/docs/V1ClusterTrustBundle.md similarity index 61% rename from kubernetes/aio/docs/V1alpha1ClusterTrustBundle.md rename to kubernetes/docs/V1ClusterTrustBundle.md index 2244afa69c..8fde95e728 100644 --- a/kubernetes/aio/docs/V1alpha1ClusterTrustBundle.md +++ b/kubernetes/docs/V1ClusterTrustBundle.md @@ -1,6 +1,6 @@ -# V1alpha1ClusterTrustBundle +# V1ClusterTrustBundle -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. +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 signer, 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. ## Properties @@ -9,23 +9,23 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1alpha1ClusterTrustBundleSpec**](V1alpha1ClusterTrustBundleSpec.md) | | +**spec** | [**V1ClusterTrustBundleSpec**](V1ClusterTrustBundleSpec.md) | | ## Example ```python -from kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle +from kubernetes.client.models.v1_cluster_trust_bundle import V1ClusterTrustBundle # TODO update the JSON string below json = "{}" -# create an instance of V1alpha1ClusterTrustBundle from a JSON string -v1alpha1_cluster_trust_bundle_instance = V1alpha1ClusterTrustBundle.from_json(json) +# create an instance of V1ClusterTrustBundle from a JSON string +v1_cluster_trust_bundle_instance = V1ClusterTrustBundle.from_json(json) # print the JSON string representation of the object -print(V1alpha1ClusterTrustBundle.to_json()) +print(V1ClusterTrustBundle.to_json()) # convert the object into a dict -v1alpha1_cluster_trust_bundle_dict = v1alpha1_cluster_trust_bundle_instance.to_dict() -# create an instance of V1alpha1ClusterTrustBundle from a dict -v1alpha1_cluster_trust_bundle_from_dict = V1alpha1ClusterTrustBundle.from_dict(v1alpha1_cluster_trust_bundle_dict) +v1_cluster_trust_bundle_dict = v1_cluster_trust_bundle_instance.to_dict() +# create an instance of V1ClusterTrustBundle from a dict +v1_cluster_trust_bundle_from_dict = V1ClusterTrustBundle.from_dict(v1_cluster_trust_bundle_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1alpha1ClusterTrustBundleList.md b/kubernetes/docs/V1ClusterTrustBundleList.md similarity index 60% rename from kubernetes/aio/docs/V1alpha1ClusterTrustBundleList.md rename to kubernetes/docs/V1ClusterTrustBundleList.md index fd5b7755a4..6a40ae196a 100644 --- a/kubernetes/aio/docs/V1alpha1ClusterTrustBundleList.md +++ b/kubernetes/docs/V1ClusterTrustBundleList.md @@ -1,4 +1,4 @@ -# V1alpha1ClusterTrustBundleList +# V1ClusterTrustBundleList ClusterTrustBundleList is a collection of ClusterTrustBundle objects @@ -7,25 +7,25 @@ ClusterTrustBundleList is a collection of ClusterTrustBundle objects Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | 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[V1alpha1ClusterTrustBundle]**](V1alpha1ClusterTrustBundle.md) | items is a collection of ClusterTrustBundle objects | +**items** | [**List[V1ClusterTrustBundle]**](V1ClusterTrustBundle.md) | items is a collection of ClusterTrustBundle objects | **kind** | **str** | 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] ## Example ```python -from kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_list import V1alpha1ClusterTrustBundleList +from kubernetes.client.models.v1_cluster_trust_bundle_list import V1ClusterTrustBundleList # TODO update the JSON string below json = "{}" -# create an instance of V1alpha1ClusterTrustBundleList from a JSON string -v1alpha1_cluster_trust_bundle_list_instance = V1alpha1ClusterTrustBundleList.from_json(json) +# create an instance of V1ClusterTrustBundleList from a JSON string +v1_cluster_trust_bundle_list_instance = V1ClusterTrustBundleList.from_json(json) # print the JSON string representation of the object -print(V1alpha1ClusterTrustBundleList.to_json()) +print(V1ClusterTrustBundleList.to_json()) # convert the object into a dict -v1alpha1_cluster_trust_bundle_list_dict = v1alpha1_cluster_trust_bundle_list_instance.to_dict() -# create an instance of V1alpha1ClusterTrustBundleList from a dict -v1alpha1_cluster_trust_bundle_list_from_dict = V1alpha1ClusterTrustBundleList.from_dict(v1alpha1_cluster_trust_bundle_list_dict) +v1_cluster_trust_bundle_list_dict = v1_cluster_trust_bundle_list_instance.to_dict() +# create an instance of V1ClusterTrustBundleList from a dict +v1_cluster_trust_bundle_list_from_dict = V1ClusterTrustBundleList.from_dict(v1_cluster_trust_bundle_list_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ClusterTrustBundleProjection.md b/kubernetes/docs/V1ClusterTrustBundleProjection.md index b42feb7627..45520e7b36 100644 --- a/kubernetes/docs/V1ClusterTrustBundleProjection.md +++ b/kubernetes/docs/V1ClusterTrustBundleProjection.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **optional** | **bool** | If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles. | [optional] **path** | **str** | Relative path from the volume root to write the bundle. | **signer_name** | **str** | Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated. | [optional] +**user** | **int** | user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] ## Example diff --git a/kubernetes/aio/docs/V1alpha1ClusterTrustBundleSpec.md b/kubernetes/docs/V1ClusterTrustBundleSpec.md similarity index 75% rename from kubernetes/aio/docs/V1alpha1ClusterTrustBundleSpec.md rename to kubernetes/docs/V1ClusterTrustBundleSpec.md index 42ceab4f90..5732aba35c 100644 --- a/kubernetes/aio/docs/V1alpha1ClusterTrustBundleSpec.md +++ b/kubernetes/docs/V1ClusterTrustBundleSpec.md @@ -1,4 +1,4 @@ -# V1alpha1ClusterTrustBundleSpec +# V1ClusterTrustBundleSpec ClusterTrustBundleSpec contains the signer and trust anchors. @@ -12,18 +12,18 @@ Name | Type | Description | Notes ## Example ```python -from kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_spec import V1alpha1ClusterTrustBundleSpec +from kubernetes.client.models.v1_cluster_trust_bundle_spec import V1ClusterTrustBundleSpec # TODO update the JSON string below json = "{}" -# create an instance of V1alpha1ClusterTrustBundleSpec from a JSON string -v1alpha1_cluster_trust_bundle_spec_instance = V1alpha1ClusterTrustBundleSpec.from_json(json) +# create an instance of V1ClusterTrustBundleSpec from a JSON string +v1_cluster_trust_bundle_spec_instance = V1ClusterTrustBundleSpec.from_json(json) # print the JSON string representation of the object -print(V1alpha1ClusterTrustBundleSpec.to_json()) +print(V1ClusterTrustBundleSpec.to_json()) # convert the object into a dict -v1alpha1_cluster_trust_bundle_spec_dict = v1alpha1_cluster_trust_bundle_spec_instance.to_dict() -# create an instance of V1alpha1ClusterTrustBundleSpec from a dict -v1alpha1_cluster_trust_bundle_spec_from_dict = V1alpha1ClusterTrustBundleSpec.from_dict(v1alpha1_cluster_trust_bundle_spec_dict) +v1_cluster_trust_bundle_spec_dict = v1_cluster_trust_bundle_spec_instance.to_dict() +# create an instance of V1ClusterTrustBundleSpec from a dict +v1_cluster_trust_bundle_spec_from_dict = V1ClusterTrustBundleSpec.from_dict(v1_cluster_trust_bundle_spec_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ConfigMap.md b/kubernetes/docs/V1ConfigMap.md index 055003bc9c..14646f5e59 100644 --- a/kubernetes/docs/V1ConfigMap.md +++ b/kubernetes/docs/V1ConfigMap.md @@ -7,7 +7,7 @@ ConfigMap holds configuration data for pods to consume. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | 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] -**binary_data** | **Dict[str, bytes]** | BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. | [optional] +**binary_data** | **Dict[str, bytes]** | BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in 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] **data** | **Dict[str, str]** | Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. | [optional] **immutable** | **bool** | Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. | [optional] **kind** | **str** | 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] diff --git a/kubernetes/docs/V1ConfigMapEnvSource.md b/kubernetes/docs/V1ConfigMapEnvSource.md index e22881f13b..9662e99a31 100644 --- a/kubernetes/docs/V1ConfigMapEnvSource.md +++ b/kubernetes/docs/V1ConfigMapEnvSource.md @@ -1,6 +1,6 @@ # V1ConfigMapEnvSource -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. +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. Keys in the BinaryData field are not currently propagated to container env vars. ## Properties diff --git a/kubernetes/docs/V1ConfigMapKeySelector.md b/kubernetes/docs/V1ConfigMapKeySelector.md index b8e0247698..12ea8319df 100644 --- a/kubernetes/docs/V1ConfigMapKeySelector.md +++ b/kubernetes/docs/V1ConfigMapKeySelector.md @@ -6,7 +6,7 @@ Selects a key from a ConfigMap. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**key** | **str** | The key to select. | +**key** | **str** | The key to select from the ConfigMap's Data field. Keys in the BinaryData field are not currently propagated to container env vars. | **name** | **str** | Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] **optional** | **bool** | Specify whether the ConfigMap or its key must be defined | [optional] diff --git a/kubernetes/docs/V1ConfigMapVolumeSource.md b/kubernetes/docs/V1ConfigMapVolumeSource.md index d52e861bec..3101a4d6d4 100644 --- a/kubernetes/docs/V1ConfigMapVolumeSource.md +++ b/kubernetes/docs/V1ConfigMapVolumeSource.md @@ -7,6 +7,7 @@ Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data f Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default_mode** | **int** | defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] +**default_user** | **int** | defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] **items** | [**List[V1KeyToPath]**](V1KeyToPath.md) | items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] **name** | **str** | Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] **optional** | **bool** | optional specify whether the ConfigMap or its keys must be defined | [optional] diff --git a/kubernetes/docs/V1ControllerRevision.md b/kubernetes/docs/V1ControllerRevision.md index c2f11147a1..e48aabe712 100644 --- a/kubernetes/docs/V1ControllerRevision.md +++ b/kubernetes/docs/V1ControllerRevision.md @@ -7,10 +7,10 @@ ControllerRevision implements an immutable snapshot of state data. Clients are r Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | 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] -**data** | **object** | Data is the serialized representation of the state. | [optional] +**data** | **object** | Data is the serialized representation of the state. | **kind** | **str** | 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] -**revision** | **int** | Revision indicates the revision of the state represented by Data. | +**revision** | **int** | Revision indicates the revision of the state represented by Data. | [optional] ## Example diff --git a/kubernetes/docs/V1DaemonSet.md b/kubernetes/docs/V1DaemonSet.md index cf1ddb9d4a..c948d475e6 100644 --- a/kubernetes/docs/V1DaemonSet.md +++ b/kubernetes/docs/V1DaemonSet.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1DaemonSetSpec**](V1DaemonSetSpec.md) | | [optional] +**spec** | [**V1DaemonSetSpec**](V1DaemonSetSpec.md) | | **status** | [**V1DaemonSetStatus**](V1DaemonSetStatus.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1DaemonSetCondition.md b/kubernetes/docs/V1DaemonSetCondition.md index 5d8bca9ad7..88eb8ab42a 100644 --- a/kubernetes/docs/V1DaemonSetCondition.md +++ b/kubernetes/docs/V1DaemonSetCondition.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes **last_transition_time** | **datetime** | Last time the condition transitioned from one status to another. | [optional] **message** | **str** | A human readable message indicating details about the transition. | [optional] **reason** | **str** | The reason for the condition's last transition. | [optional] -**status** | **str** | Status of the condition, one of True, False, Unknown. | -**type** | **str** | Type of DaemonSet condition. | +**status** | **str** | Status of the condition, one of True, False, Unknown. | [optional] +**type** | **str** | Type of DaemonSet condition. | [optional] ## Example diff --git a/kubernetes/docs/V1Deployment.md b/kubernetes/docs/V1Deployment.md index f5a791f717..e3bb8591dc 100644 --- a/kubernetes/docs/V1Deployment.md +++ b/kubernetes/docs/V1Deployment.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1DeploymentSpec**](V1DeploymentSpec.md) | | [optional] +**spec** | [**V1DeploymentSpec**](V1DeploymentSpec.md) | | **status** | [**V1DeploymentStatus**](V1DeploymentStatus.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1DeploymentCondition.md b/kubernetes/docs/V1DeploymentCondition.md index f96ae129e9..fecc6e5de7 100644 --- a/kubernetes/docs/V1DeploymentCondition.md +++ b/kubernetes/docs/V1DeploymentCondition.md @@ -10,8 +10,8 @@ Name | Type | Description | Notes **last_update_time** | **datetime** | The last time this condition was updated. | [optional] **message** | **str** | A human readable message indicating details about the transition. | [optional] **reason** | **str** | The reason for the condition's last transition. | [optional] -**status** | **str** | Status of the condition, one of True, False, Unknown. | -**type** | **str** | Type of deployment condition. | +**status** | **str** | Status of the condition, one of True, False, Unknown. | [optional] +**type** | **str** | Type of deployment condition. | [optional] ## Example diff --git a/kubernetes/docs/V1Device.md b/kubernetes/docs/V1Device.md index 3aa6cbc834..c953e2f5c6 100644 --- a/kubernetes/docs/V1Device.md +++ b/kubernetes/docs/V1Device.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **capacity** | [**Dict[str, 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] **consumes_counters** | [**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** | **str** | Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. | -**node_allocatable_resource_mappings** | [**Dict[str, 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] +**node_allocatable_resources** | [**Dict[str, V1NodeAllocatableResource]**](V1NodeAllocatableResource.md) | NodeAllocatableResources 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] **node_name** | **str** | 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] **node_selector** | [**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 a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] diff --git a/kubernetes/docs/V1DeviceClass.md b/kubernetes/docs/V1DeviceClass.md index 1dc575f198..cfc1b65449 100644 --- a/kubernetes/docs/V1DeviceClass.md +++ b/kubernetes/docs/V1DeviceClass.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1DeviceClassSpec**](V1DeviceClassSpec.md) | | +**spec** | [**V1DeviceClassSpec**](V1DeviceClassSpec.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1DeviceClassSpec.md b/kubernetes/docs/V1DeviceClassSpec.md index 44de739825..b0cc96e00f 100644 --- a/kubernetes/docs/V1DeviceClassSpec.md +++ b/kubernetes/docs/V1DeviceClassSpec.md @@ -7,7 +7,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] -**extended_resource_name** | **str** | 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] +**extended_resource_name** | **str** | 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] **selectors** | [**List[V1DeviceSelector]**](V1DeviceSelector.md) | Each selector must be satisfied by a device which is claimed via this class. | [optional] ## Example diff --git a/kubernetes/docs/V1DeviceCounterConsumption.md b/kubernetes/docs/V1DeviceCounterConsumption.md index 34b234c95d..ada6c72055 100644 --- a/kubernetes/docs/V1DeviceCounterConsumption.md +++ b/kubernetes/docs/V1DeviceCounterConsumption.md @@ -6,6 +6,7 @@ DeviceCounterConsumption defines a set of counters that a device will consume fr Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**compatibility_groups** | **List[str]** | CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique. | [optional] **counter_set** | **str** | CounterSet is the name of the set from which the counters defined will be consumed. | **counters** | [**Dict[str, V1Counter]**](V1Counter.md) | Counters defines the counters that will be consumed by the device. The maximum number of counters is 32. | diff --git a/kubernetes/docs/V1DeviceDerivedAttribute.md b/kubernetes/docs/V1DeviceDerivedAttribute.md new file mode 100644 index 0000000000..105d52d7c4 --- /dev/null +++ b/kubernetes/docs/V1DeviceDerivedAttribute.md @@ -0,0 +1,29 @@ +# V1DeviceDerivedAttribute + +DeviceDerivedAttribute defines a derived attribute computed via CEL. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expression** | **str** | Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget. | +**name** | **str** | Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint. | + +## Example + +```python +from kubernetes.client.models.v1_device_derived_attribute import V1DeviceDerivedAttribute + +# TODO update the JSON string below +json = "{}" +# create an instance of V1DeviceDerivedAttribute from a JSON string +v1_device_derived_attribute_instance = V1DeviceDerivedAttribute.from_json(json) +# print the JSON string representation of the object +print(V1DeviceDerivedAttribute.to_json()) + +# convert the object into a dict +v1_device_derived_attribute_dict = v1_device_derived_attribute_instance.to_dict() +# create an instance of V1DeviceDerivedAttribute from a dict +v1_device_derived_attribute_from_dict = V1DeviceDerivedAttribute.from_dict(v1_device_derived_attribute_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1DeviceRequestAllocationResult.md b/kubernetes/docs/V1DeviceRequestAllocationResult.md index dc8c61258e..721dcaa01c 100644 --- a/kubernetes/docs/V1DeviceRequestAllocationResult.md +++ b/kubernetes/docs/V1DeviceRequestAllocationResult.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **pool** | **str** | 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** | **str** | 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. | **share_id** | **str** | 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] +**skip_node_operations** | **List[str]** | SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated. | [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] ## Example diff --git a/kubernetes/docs/V1DeviceSubRequest.md b/kubernetes/docs/V1DeviceSubRequest.md index 022ba4f2ca..35e6d46935 100644 --- a/kubernetes/docs/V1DeviceSubRequest.md +++ b/kubernetes/docs/V1DeviceSubRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **allocation_mode** | **str** | 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] **capacity** | [**V1CapacityRequirements**](V1CapacityRequirements.md) | | [optional] **count** | **int** | 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] +**derived_attributes** | [**List[V1DeviceDerivedAttribute]**](V1DeviceDerivedAttribute.md) | DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. | [optional] **device_class_name** | **str** | 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** | **str** | 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] diff --git a/kubernetes/docs/V1DeviceTaintRule.md b/kubernetes/docs/V1DeviceTaintRule.md new file mode 100644 index 0000000000..cf47e5b579 --- /dev/null +++ b/kubernetes/docs/V1DeviceTaintRule.md @@ -0,0 +1,32 @@ +# V1DeviceTaintRule + +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 +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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** | **str** | 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** | [**V1DeviceTaintRuleSpec**](V1DeviceTaintRuleSpec.md) | | +**status** | [**V1DeviceTaintRuleStatus**](V1DeviceTaintRuleStatus.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1_device_taint_rule import V1DeviceTaintRule + +# TODO update the JSON string below +json = "{}" +# create an instance of V1DeviceTaintRule from a JSON string +v1_device_taint_rule_instance = V1DeviceTaintRule.from_json(json) +# print the JSON string representation of the object +print(V1DeviceTaintRule.to_json()) + +# convert the object into a dict +v1_device_taint_rule_dict = v1_device_taint_rule_instance.to_dict() +# create an instance of V1DeviceTaintRule from a dict +v1_device_taint_rule_from_dict = V1DeviceTaintRule.from_dict(v1_device_taint_rule_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1ServiceCIDRList.md b/kubernetes/docs/V1DeviceTaintRuleList.md similarity index 63% rename from kubernetes/aio/docs/V1beta1ServiceCIDRList.md rename to kubernetes/docs/V1DeviceTaintRuleList.md index 5f869e2f37..a258496115 100644 --- a/kubernetes/aio/docs/V1beta1ServiceCIDRList.md +++ b/kubernetes/docs/V1DeviceTaintRuleList.md @@ -1,31 +1,31 @@ -# V1beta1ServiceCIDRList +# V1DeviceTaintRuleList -ServiceCIDRList contains a list of ServiceCIDR objects. +DeviceTaintRuleList is a collection of DeviceTaintRules. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | 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[V1beta1ServiceCIDR]**](V1beta1ServiceCIDR.md) | items is the list of ServiceCIDRs. | +**items** | [**List[V1DeviceTaintRule]**](V1DeviceTaintRule.md) | Items is the list of DeviceTaintRules. | **kind** | **str** | 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] ## Example ```python -from kubernetes.aio.client.models.v1beta1_service_cidr_list import V1beta1ServiceCIDRList +from kubernetes.client.models.v1_device_taint_rule_list import V1DeviceTaintRuleList # TODO update the JSON string below json = "{}" -# create an instance of V1beta1ServiceCIDRList from a JSON string -v1beta1_service_cidr_list_instance = V1beta1ServiceCIDRList.from_json(json) +# create an instance of V1DeviceTaintRuleList from a JSON string +v1_device_taint_rule_list_instance = V1DeviceTaintRuleList.from_json(json) # print the JSON string representation of the object -print(V1beta1ServiceCIDRList.to_json()) +print(V1DeviceTaintRuleList.to_json()) # convert the object into a dict -v1beta1_service_cidr_list_dict = v1beta1_service_cidr_list_instance.to_dict() -# create an instance of V1beta1ServiceCIDRList from a dict -v1beta1_service_cidr_list_from_dict = V1beta1ServiceCIDRList.from_dict(v1beta1_service_cidr_list_dict) +v1_device_taint_rule_list_dict = v1_device_taint_rule_list_instance.to_dict() +# create an instance of V1DeviceTaintRuleList from a dict +v1_device_taint_rule_list_from_dict = V1DeviceTaintRuleList.from_dict(v1_device_taint_rule_list_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1DeviceTaintRuleSpec.md b/kubernetes/docs/V1DeviceTaintRuleSpec.md new file mode 100644 index 0000000000..96015617c8 --- /dev/null +++ b/kubernetes/docs/V1DeviceTaintRuleSpec.md @@ -0,0 +1,29 @@ +# V1DeviceTaintRuleSpec + +DeviceTaintRuleSpec specifies the selector and one taint. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device_selector** | [**V1DeviceTaintSelector**](V1DeviceTaintSelector.md) | | [optional] +**taint** | [**V1DeviceTaint**](V1DeviceTaint.md) | | + +## Example + +```python +from kubernetes.client.models.v1_device_taint_rule_spec import V1DeviceTaintRuleSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1DeviceTaintRuleSpec from a JSON string +v1_device_taint_rule_spec_instance = V1DeviceTaintRuleSpec.from_json(json) +# print the JSON string representation of the object +print(V1DeviceTaintRuleSpec.to_json()) + +# convert the object into a dict +v1_device_taint_rule_spec_dict = v1_device_taint_rule_spec_instance.to_dict() +# create an instance of V1DeviceTaintRuleSpec from a dict +v1_device_taint_rule_spec_from_dict = V1DeviceTaintRuleSpec.from_dict(v1_device_taint_rule_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1DeviceTaintRuleStatus.md b/kubernetes/docs/V1DeviceTaintRuleStatus.md new file mode 100644 index 0000000000..898eaaa43f --- /dev/null +++ b/kubernetes/docs/V1DeviceTaintRuleStatus.md @@ -0,0 +1,28 @@ +# V1DeviceTaintRuleStatus + +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] + +## Example + +```python +from kubernetes.client.models.v1_device_taint_rule_status import V1DeviceTaintRuleStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1DeviceTaintRuleStatus from a JSON string +v1_device_taint_rule_status_instance = V1DeviceTaintRuleStatus.from_json(json) +# print the JSON string representation of the object +print(V1DeviceTaintRuleStatus.to_json()) + +# convert the object into a dict +v1_device_taint_rule_status_dict = v1_device_taint_rule_status_instance.to_dict() +# create an instance of V1DeviceTaintRuleStatus from a dict +v1_device_taint_rule_status_from_dict = V1DeviceTaintRuleStatus.from_dict(v1_device_taint_rule_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1DeviceTaintSelector.md b/kubernetes/docs/V1DeviceTaintSelector.md new file mode 100644 index 0000000000..c2691a5cd8 --- /dev/null +++ b/kubernetes/docs/V1DeviceTaintSelector.md @@ -0,0 +1,30 @@ +# V1DeviceTaintSelector + +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** | **str** | 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** | **str** | If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver. | [optional] +**pool** | **str** | 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] + +## Example + +```python +from kubernetes.client.models.v1_device_taint_selector import V1DeviceTaintSelector + +# TODO update the JSON string below +json = "{}" +# create an instance of V1DeviceTaintSelector from a JSON string +v1_device_taint_selector_instance = V1DeviceTaintSelector.from_json(json) +# print the JSON string representation of the object +print(V1DeviceTaintSelector.to_json()) + +# convert the object into a dict +v1_device_taint_selector_dict = v1_device_taint_selector_instance.to_dict() +# create an instance of V1DeviceTaintSelector from a dict +v1_device_taint_selector_from_dict = V1DeviceTaintSelector.from_dict(v1_device_taint_selector_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1DownwardAPIVolumeFile.md b/kubernetes/docs/V1DownwardAPIVolumeFile.md index 7e1732b160..1c25dc3fc0 100644 --- a/kubernetes/docs/V1DownwardAPIVolumeFile.md +++ b/kubernetes/docs/V1DownwardAPIVolumeFile.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **mode** | **int** | Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] **path** | **str** | Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' | **resource_field_ref** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | | [optional] +**user** | **int** | user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] ## Example diff --git a/kubernetes/docs/V1DownwardAPIVolumeSource.md b/kubernetes/docs/V1DownwardAPIVolumeSource.md index 2ffd25ae2e..dd32ef4378 100644 --- a/kubernetes/docs/V1DownwardAPIVolumeSource.md +++ b/kubernetes/docs/V1DownwardAPIVolumeSource.md @@ -7,6 +7,7 @@ DownwardAPIVolumeSource represents a volume containing downward API info. Downwa Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default_mode** | **int** | Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] +**default_user** | **int** | defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] **items** | [**List[V1DownwardAPIVolumeFile]**](V1DownwardAPIVolumeFile.md) | Items is a list of downward API volume file | [optional] ## Example diff --git a/kubernetes/docs/V1EmptyDirVolumeSource.md b/kubernetes/docs/V1EmptyDirVolumeSource.md index e510cbf910..7faff07aa3 100644 --- a/kubernetes/docs/V1EmptyDirVolumeSource.md +++ b/kubernetes/docs/V1EmptyDirVolumeSource.md @@ -7,6 +7,7 @@ Represents an empty directory for a pod. Empty directory volumes support ownersh Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **medium** | **str** | medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir | [optional] +**mode** | **int** | mode specifies the permission bits for the emptyDir directory, in numeric notation (e.g., 0755, 01777). Must be a value between 0000 and 01777. If not specified, defaults to 0777. This might be in conflict with other options that affect the file mode, like fsGroup. If fsGroup is specified, the fsGroup permissions will override the mode specified here. This field has no effect on Windows. This field is alpha and requires EmptyDirVolumeMode featuregate to be enabled. | [optional] **size_limit** | **str** | sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir | [optional] ## Example diff --git a/kubernetes/docs/V1EvictionResponder.md b/kubernetes/docs/V1EvictionResponder.md new file mode 100644 index 0000000000..bde6982d69 --- /dev/null +++ b/kubernetes/docs/V1EvictionResponder.md @@ -0,0 +1,29 @@ +# V1EvictionResponder + +EvictionResponder allows you to specify the responder reacting to an Eviction. Responders should observe and communicate through the Eviction Resource API to help with the graceful eviction of a target (e.g. termination of a pod). + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | name allows you to identify the responder responding to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field must be unique for each responder. This field is required. | +**priority** | **int** | priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last. The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders. The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required. | + +## Example + +```python +from kubernetes.client.models.v1_eviction_responder import V1EvictionResponder + +# TODO update the JSON string below +json = "{}" +# create an instance of V1EvictionResponder from a JSON string +v1_eviction_responder_instance = V1EvictionResponder.from_json(json) +# print the JSON string representation of the object +print(V1EvictionResponder.to_json()) + +# convert the object into a dict +v1_eviction_responder_dict = v1_eviction_responder_instance.to_dict() +# create an instance of V1EvictionResponder from a dict +v1_eviction_responder_from_dict = V1EvictionResponder.from_dict(v1_eviction_responder_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ExactDeviceRequest.md b/kubernetes/docs/V1ExactDeviceRequest.md index e21c6ffa27..eb9dfe13b2 100644 --- a/kubernetes/docs/V1ExactDeviceRequest.md +++ b/kubernetes/docs/V1ExactDeviceRequest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **allocation_mode** | **str** | 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** | **int** | 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] +**derived_attributes** | [**List[V1DeviceDerivedAttribute]**](V1DeviceDerivedAttribute.md) | DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. | [optional] **device_class_name** | **str** | 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 a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] diff --git a/kubernetes/docs/V1FlowSchema.md b/kubernetes/docs/V1FlowSchema.md index 63c0eb9322..d0aa0bf780 100644 --- a/kubernetes/docs/V1FlowSchema.md +++ b/kubernetes/docs/V1FlowSchema.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1FlowSchemaSpec**](V1FlowSchemaSpec.md) | | [optional] +**spec** | [**V1FlowSchemaSpec**](V1FlowSchemaSpec.md) | | **status** | [**V1FlowSchemaStatus**](V1FlowSchemaStatus.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1FlowSchemaCondition.md b/kubernetes/docs/V1FlowSchemaCondition.md index 473135b7bc..cf804be5a8 100644 --- a/kubernetes/docs/V1FlowSchemaCondition.md +++ b/kubernetes/docs/V1FlowSchemaCondition.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes **last_transition_time** | **datetime** | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] **message** | **str** | `message` is a human-readable message indicating details about last transition. | [optional] **reason** | **str** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] -**status** | **str** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] -**type** | **str** | `type` is the type of the condition. Required. | [optional] +**status** | **str** | `status` is the status of the condition. Should be specified and set to one of True, False, Unknown. | [optional] +**type** | **str** | `type` is the type of the condition. Required. | ## Example diff --git a/kubernetes/docs/V1GRPCAction.md b/kubernetes/docs/V1GRPCAction.md index 9e00c1fa51..2fcf4c70ec 100644 --- a/kubernetes/docs/V1GRPCAction.md +++ b/kubernetes/docs/V1GRPCAction.md @@ -6,6 +6,7 @@ GRPCAction specifies an action involving a GRPC service. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**mode** | **str** | mode specifies the connection mode for the gRPC health probe. Set to \"TLS\" to use TLS without certificate verification. Set to \"Plaintext\" to use a plaintext (insecure) connection explicitly. If not specified, the probe uses a plaintext (insecure) connection. | [optional] **port** | **int** | Port number of the gRPC service. Number must be in the range 1 to 65535. | **service** | **str** | Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC. | [optional] diff --git a/kubernetes/docs/V1HTTPGetAction.md b/kubernetes/docs/V1HTTPGetAction.md index c0a790cfdc..e454b6572f 100644 --- a/kubernetes/docs/V1HTTPGetAction.md +++ b/kubernetes/docs/V1HTTPGetAction.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **http_headers** | [**List[V1HTTPHeader]**](V1HTTPHeader.md) | Custom headers to set in the request. HTTP allows repeated headers. | [optional] **path** | **str** | Path to access on the HTTP server. | [optional] **port** | **Union[int, str]** | Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. | +**protocol** | **str** | Protocol selects the wire protocol for the probe connection. Nil defaults to HTTP/1.1. | [optional] **scheme** | **str** | Scheme to use for connecting to the host. Defaults to HTTP. | [optional] ## Example diff --git a/kubernetes/docs/V1JobSchedulingConfiguration.md b/kubernetes/docs/V1JobSchedulingConfiguration.md new file mode 100644 index 0000000000..366b15308c --- /dev/null +++ b/kubernetes/docs/V1JobSchedulingConfiguration.md @@ -0,0 +1,31 @@ +# V1JobSchedulingConfiguration + +JobSchedulingConfiguration composes the reusable workload-aware scheduling building blocks. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disruption_mode** | [**V1alpha3WorkloadPodGroupDisruptionMode**](V1alpha3WorkloadPodGroupDisruptionMode.md) | | [optional] +**resource_claims** | [**List[V1alpha3WorkloadPodGroupResourceClaim]**](V1alpha3WorkloadPodGroupResourceClaim.md) | ResourceClaims defines which ResourceClaims may be shared among Pods in the Job. 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. At most 4 claims may be set, matching the limit on the resulting PodGroup. This list is immutable after creation: entries may neither be added, removed, nor modified. | [optional] +**scheduling_constraints** | [**V1alpha3WorkloadPodGroupSchedulingConstraints**](V1alpha3WorkloadPodGroupSchedulingConstraints.md) | | [optional] +**scheduling_policy** | [**V1alpha3WorkloadPodGroupSchedulingPolicy**](V1alpha3WorkloadPodGroupSchedulingPolicy.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1_job_scheduling_configuration import V1JobSchedulingConfiguration + +# TODO update the JSON string below +json = "{}" +# create an instance of V1JobSchedulingConfiguration from a JSON string +v1_job_scheduling_configuration_instance = V1JobSchedulingConfiguration.from_json(json) +# print the JSON string representation of the object +print(V1JobSchedulingConfiguration.to_json()) + +# convert the object into a dict +v1_job_scheduling_configuration_dict = v1_job_scheduling_configuration_instance.to_dict() +# create an instance of V1JobSchedulingConfiguration from a dict +v1_job_scheduling_configuration_from_dict = V1JobSchedulingConfiguration.from_dict(v1_job_scheduling_configuration_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1JobSpec.md b/kubernetes/docs/V1JobSpec.md index f1fb8e00da..e8817e1105 100644 --- a/kubernetes/docs/V1JobSpec.md +++ b/kubernetes/docs/V1JobSpec.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **parallelism** | **int** | Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ | [optional] **pod_failure_policy** | [**V1PodFailurePolicy**](V1PodFailurePolicy.md) | | [optional] **pod_replacement_policy** | **str** | podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed. - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. | [optional] +**scheduling** | [**V1JobSchedulingConfiguration**](V1JobSchedulingConfiguration.md) | | [optional] **selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **success_policy** | [**V1SuccessPolicy**](V1SuccessPolicy.md) | | [optional] **suspend** | **bool** | suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. | [optional] diff --git a/kubernetes/docs/V1JobStatus.md b/kubernetes/docs/V1JobStatus.md index b709d3f529..8b5c64bde6 100644 --- a/kubernetes/docs/V1JobStatus.md +++ b/kubernetes/docs/V1JobStatus.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **ready** | **int** | The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp). | [optional] **start_time** | **datetime** | Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC. Once set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished. | [optional] **succeeded** | **int** | The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs. | [optional] -**terminating** | **int** | 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] +**terminating** | **int** | The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp). | [optional] **uncounted_terminated_pods** | [**V1UncountedTerminatedPods**](V1UncountedTerminatedPods.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1KeyToPath.md b/kubernetes/docs/V1KeyToPath.md index c931808b7d..60eb25a876 100644 --- a/kubernetes/docs/V1KeyToPath.md +++ b/kubernetes/docs/V1KeyToPath.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **key** | **str** | key is the key to project. | **mode** | **int** | mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] **path** | **str** | path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. | +**user** | **int** | user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] ## Example diff --git a/kubernetes/docs/V1LeaseSpec.md b/kubernetes/docs/V1LeaseSpec.md index 09b2553e58..c2db2f0642 100644 --- a/kubernetes/docs/V1LeaseSpec.md +++ b/kubernetes/docs/V1LeaseSpec.md @@ -10,9 +10,9 @@ Name | Type | Description | Notes **holder_identity** | **str** | 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] **lease_duration_seconds** | **int** | 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] **lease_transitions** | **int** | leaseTransitions is the number of transitions of a lease between holders. | [optional] -**preferred_holder** | **str** | 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. | [optional] +**preferred_holder** | **str** | 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. | [optional] **renew_time** | **datetime** | renewTime is a time when the current holder of a lease has last updated the lease. | [optional] -**strategy** | **str** | 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. | [optional] +**strategy** | **str** | 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. | [optional] ## Example diff --git a/kubernetes/docs/V1LimitedPriorityLevelConfiguration.md b/kubernetes/docs/V1LimitedPriorityLevelConfiguration.md index 78564f2802..2e4ed94e13 100644 --- a/kubernetes/docs/V1LimitedPriorityLevelConfiguration.md +++ b/kubernetes/docs/V1LimitedPriorityLevelConfiguration.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **borrowing_limit_percent** | **int** | `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] **lendable_percent** | **int** | `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] -**limit_response** | [**V1LimitResponse**](V1LimitResponse.md) | | [optional] +**limit_response** | [**V1LimitResponse**](V1LimitResponse.md) | | **nominal_concurrency_shares** | **int** | `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] ## Example diff --git a/kubernetes/docs/V1NodeAllocatableMappedResources.md b/kubernetes/docs/V1NodeAllocatableMappedResources.md new file mode 100644 index 0000000000..a255dfd483 --- /dev/null +++ b/kubernetes/docs/V1NodeAllocatableMappedResources.md @@ -0,0 +1,29 @@ +# V1NodeAllocatableMappedResources + +NodeAllocatableMappedResources describes mapped node allocatable resource allocations. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name is the name of the resource (e.g., cpu, memory). | +**quantity** | **str** | Quantity is the total node allocatable resource capacity allocated for the claim. This claim's allocated devices is shared by all the containers referencing the claim. Kubelet adds this value to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. | + +## Example + +```python +from kubernetes.client.models.v1_node_allocatable_mapped_resources import V1NodeAllocatableMappedResources + +# TODO update the JSON string below +json = "{}" +# create an instance of V1NodeAllocatableMappedResources from a JSON string +v1_node_allocatable_mapped_resources_instance = V1NodeAllocatableMappedResources.from_json(json) +# print the JSON string representation of the object +print(V1NodeAllocatableMappedResources.to_json()) + +# convert the object into a dict +v1_node_allocatable_mapped_resources_dict = v1_node_allocatable_mapped_resources_instance.to_dict() +# create an instance of V1NodeAllocatableMappedResources from a dict +v1_node_allocatable_mapped_resources_from_dict = V1NodeAllocatableMappedResources.from_dict(v1_node_allocatable_mapped_resources_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NodeAllocatableMapping.md b/kubernetes/docs/V1NodeAllocatableMapping.md new file mode 100644 index 0000000000..049e9ce73d --- /dev/null +++ b/kubernetes/docs/V1NodeAllocatableMapping.md @@ -0,0 +1,30 @@ +# V1NodeAllocatableMapping + +NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capacity_key** | **str** | 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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. | [optional] +**capacity_multiplier** | **str** | CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16. | [optional] +**device_multiplier** | **str** | DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set. | [optional] + +## Example + +```python +from kubernetes.client.models.v1_node_allocatable_mapping import V1NodeAllocatableMapping + +# TODO update the JSON string below +json = "{}" +# create an instance of V1NodeAllocatableMapping from a JSON string +v1_node_allocatable_mapping_instance = V1NodeAllocatableMapping.from_json(json) +# print the JSON string representation of the object +print(V1NodeAllocatableMapping.to_json()) + +# convert the object into a dict +v1_node_allocatable_mapping_dict = v1_node_allocatable_mapping_instance.to_dict() +# create an instance of V1NodeAllocatableMapping from a dict +v1_node_allocatable_mapping_from_dict = V1NodeAllocatableMapping.from_dict(v1_node_allocatable_mapping_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NodeAllocatableOverhead.md b/kubernetes/docs/V1NodeAllocatableOverhead.md new file mode 100644 index 0000000000..68d7c5f7a0 --- /dev/null +++ b/kubernetes/docs/V1NodeAllocatableOverhead.md @@ -0,0 +1,29 @@ +# V1NodeAllocatableOverhead + +NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per_container** | **str** | PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once. | [optional] +**per_pod** | **str** | PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim. | [optional] + +## Example + +```python +from kubernetes.client.models.v1_node_allocatable_overhead import V1NodeAllocatableOverhead + +# TODO update the JSON string below +json = "{}" +# create an instance of V1NodeAllocatableOverhead from a JSON string +v1_node_allocatable_overhead_instance = V1NodeAllocatableOverhead.from_json(json) +# print the JSON string representation of the object +print(V1NodeAllocatableOverhead.to_json()) + +# convert the object into a dict +v1_node_allocatable_overhead_dict = v1_node_allocatable_overhead_instance.to_dict() +# create an instance of V1NodeAllocatableOverhead from a dict +v1_node_allocatable_overhead_from_dict = V1NodeAllocatableOverhead.from_dict(v1_node_allocatable_overhead_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NodeAllocatableOverheadResources.md b/kubernetes/docs/V1NodeAllocatableOverheadResources.md new file mode 100644 index 0000000000..3933dd9652 --- /dev/null +++ b/kubernetes/docs/V1NodeAllocatableOverheadResources.md @@ -0,0 +1,30 @@ +# V1NodeAllocatableOverheadResources + +NodeAllocatableOverheadResources describes auxiliary overhead resource allocations. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name is the name of the resource (e.g., cpu, memory). | +**per_container** | **str** | PerContainer is the variable overhead quantity applied for each container referencing the claim. The container references are recorded in `nodeAllocatableResourceClaimStatuses.containers`. The total overhead quantity allocated for the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once. At least one of PerPod or PerContainer must be specified. Specifying neither is an invalid configuration. | [optional] +**per_pod** | **str** | PerPod is the flat overhead quantity allocated per pod. Adding to each container limit allows individual containers to utilize the overhead, while the parent pod-level cgroup limit caps the total usage at the pod boundary where the overhead is accounted for exactly once. At least one of PerPod or PerContainer must be specified. Specifying neither is an invalid configuration. | [optional] + +## Example + +```python +from kubernetes.client.models.v1_node_allocatable_overhead_resources import V1NodeAllocatableOverheadResources + +# TODO update the JSON string below +json = "{}" +# create an instance of V1NodeAllocatableOverheadResources from a JSON string +v1_node_allocatable_overhead_resources_instance = V1NodeAllocatableOverheadResources.from_json(json) +# print the JSON string representation of the object +print(V1NodeAllocatableOverheadResources.to_json()) + +# convert the object into a dict +v1_node_allocatable_overhead_resources_dict = v1_node_allocatable_overhead_resources_instance.to_dict() +# create an instance of V1NodeAllocatableOverheadResources from a dict +v1_node_allocatable_overhead_resources_from_dict = V1NodeAllocatableOverheadResources.from_dict(v1_node_allocatable_overhead_resources_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NodeAllocatableResource.md b/kubernetes/docs/V1NodeAllocatableResource.md new file mode 100644 index 0000000000..783c56dbca --- /dev/null +++ b/kubernetes/docs/V1NodeAllocatableResource.md @@ -0,0 +1,29 @@ +# V1NodeAllocatableResource + +NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mapping** | [**V1NodeAllocatableMapping**](V1NodeAllocatableMapping.md) | | [optional] +**overhead** | [**V1NodeAllocatableOverhead**](V1NodeAllocatableOverhead.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1_node_allocatable_resource import V1NodeAllocatableResource + +# TODO update the JSON string below +json = "{}" +# create an instance of V1NodeAllocatableResource from a JSON string +v1_node_allocatable_resource_instance = V1NodeAllocatableResource.from_json(json) +# print the JSON string representation of the object +print(V1NodeAllocatableResource.to_json()) + +# convert the object into a dict +v1_node_allocatable_resource_dict = v1_node_allocatable_resource_instance.to_dict() +# create an instance of V1NodeAllocatableResource from a dict +v1_node_allocatable_resource_from_dict = V1NodeAllocatableResource.from_dict(v1_node_allocatable_resource_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NodeAllocatableResourceClaimStatus.md b/kubernetes/docs/V1NodeAllocatableResourceClaimStatus.md index 8f80c38fd6..71c06cac96 100644 --- a/kubernetes/docs/V1NodeAllocatableResourceClaimStatus.md +++ b/kubernetes/docs/V1NodeAllocatableResourceClaimStatus.md @@ -7,8 +7,9 @@ NodeAllocatableResourceClaimStatus describes the status of node allocatable reso Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **containers** | **List[str]** | Containers lists the names of all containers in this pod that reference the claim. | [optional] +**mapping** | [**List[V1NodeAllocatableMappedResources]**](V1NodeAllocatableMappedResources.md) | Mapping contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].mapping` field. This is used by kubelet for pod level and container-level cgroup enforcement. | [optional] +**overhead** | [**List[V1NodeAllocatableOverheadResources]**](V1NodeAllocatableOverheadResources.md) | Overhead contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].overhead` field. This is used by kubelet for pod level and container-level cgroup enforcement. | [optional] **resource_claim_name** | **str** | ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation. | -**resources** | **Dict[str, str]** | Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim. | ## Example diff --git a/kubernetes/docs/V1NodeAllocatableResourceMapping.md b/kubernetes/docs/V1NodeAllocatableResourceMapping.md deleted file mode 100644 index 74f828fda0..0000000000 --- a/kubernetes/docs/V1NodeAllocatableResourceMapping.md +++ /dev/null @@ -1,29 +0,0 @@ -# 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 ------------- | ------------- | ------------- | ------------- -**allocation_multiplier** | **str** | 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] -**capacity_key** | **str** | 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] - -## Example - -```python -from kubernetes.client.models.v1_node_allocatable_resource_mapping import V1NodeAllocatableResourceMapping - -# TODO update the JSON string below -json = "{}" -# create an instance of V1NodeAllocatableResourceMapping from a JSON string -v1_node_allocatable_resource_mapping_instance = V1NodeAllocatableResourceMapping.from_json(json) -# print the JSON string representation of the object -print(V1NodeAllocatableResourceMapping.to_json()) - -# convert the object into a dict -v1_node_allocatable_resource_mapping_dict = v1_node_allocatable_resource_mapping_instance.to_dict() -# create an instance of V1NodeAllocatableResourceMapping from a dict -v1_node_allocatable_resource_mapping_from_dict = V1NodeAllocatableResourceMapping.from_dict(v1_node_allocatable_resource_mapping_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NodePodPreemptionPolicy.md b/kubernetes/docs/V1NodePodPreemptionPolicy.md new file mode 100644 index 0000000000..5f38b6a715 --- /dev/null +++ b/kubernetes/docs/V1NodePodPreemptionPolicy.md @@ -0,0 +1,28 @@ +# V1NodePodPreemptionPolicy + +NodePodPreemptionPolicy defines the node-level policies governing preemption for pods on this node. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disable_resize_preemption** | **List[str]** | DisableResizePreemption lists the owners (e.g., autoscalers, operators, administrators) that have requested to disable scheduler and Kubelet preemption for in-place pod resize on this node. If this list is non-empty, resize-induced preemption is disabled on this node. This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption feature gate. | [optional] + +## Example + +```python +from kubernetes.client.models.v1_node_pod_preemption_policy import V1NodePodPreemptionPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1NodePodPreemptionPolicy from a JSON string +v1_node_pod_preemption_policy_instance = V1NodePodPreemptionPolicy.from_json(json) +# print the JSON string representation of the object +print(V1NodePodPreemptionPolicy.to_json()) + +# convert the object into a dict +v1_node_pod_preemption_policy_dict = v1_node_pod_preemption_policy_instance.to_dict() +# create an instance of V1NodePodPreemptionPolicy from a dict +v1_node_pod_preemption_policy_from_dict = V1NodePodPreemptionPolicy.from_dict(v1_node_pod_preemption_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NodeSpec.md b/kubernetes/docs/V1NodeSpec.md index d0c98d124b..1a428bdbe0 100644 --- a/kubernetes/docs/V1NodeSpec.md +++ b/kubernetes/docs/V1NodeSpec.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **external_id** | **str** | Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 | [optional] **pod_cidr** | **str** | PodCIDR represents the pod IP range assigned to the node. | [optional] **pod_cidrs** | **List[str]** | podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. | [optional] +**pod_preemption_policy** | [**V1NodePodPreemptionPolicy**](V1NodePodPreemptionPolicy.md) | | [optional] **provider_id** | **str** | ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID> | [optional] **taints** | [**List[V1Taint]**](V1Taint.md) | If specified, the node's taints. | [optional] **unschedulable** | **bool** | Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration | [optional] diff --git a/kubernetes/docs/V1NodeSystemInfo.md b/kubernetes/docs/V1NodeSystemInfo.md index ca58985396..0169f523fc 100644 --- a/kubernetes/docs/V1NodeSystemInfo.md +++ b/kubernetes/docs/V1NodeSystemInfo.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **machine_id** | **str** | MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html | **operating_system** | **str** | The Operating System reported by the node | **os_image** | **str** | OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). | +**running_in_user_namespace** | **bool** | Whether the node is running in a user namespace. | [optional] **swap** | [**V1NodeSwapStatus**](V1NodeSwapStatus.md) | | [optional] **system_uuid** | **str** | SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid | diff --git a/kubernetes/docs/V1ParentReference.md b/kubernetes/docs/V1ParentReference.md index 6a1d5fe5ed..2e65336522 100644 --- a/kubernetes/docs/V1ParentReference.md +++ b/kubernetes/docs/V1ParentReference.md @@ -6,10 +6,10 @@ ParentReference describes a reference to a parent object. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**group** | **str** | Group is the group of the object being referenced. | [optional] -**name** | **str** | Name is the name of the object being referenced. | -**namespace** | **str** | Namespace is the namespace of the object being referenced. | [optional] -**resource** | **str** | Resource is the resource of the object being referenced. | +**group** | **str** | group is the group of the object being referenced. | [optional] +**name** | **str** | name is the name of the object being referenced. | +**namespace** | **str** | namespace is the namespace of the object being referenced. | [optional] +**resource** | **str** | resource is the resource of the object being referenced. | ## Example diff --git a/kubernetes/docs/V1PersistentVolumeClaimStatus.md b/kubernetes/docs/V1PersistentVolumeClaimStatus.md index f730b9ace2..ab1576c26d 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimStatus.md +++ b/kubernetes/docs/V1PersistentVolumeClaimStatus.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **capacity** | **Dict[str, str]** | capacity represents the actual resources of the underlying volume. | [optional] **conditions** | [**List[V1PersistentVolumeClaimCondition]**](V1PersistentVolumeClaimCondition.md) | conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'. | [optional] **current_volume_attributes_class_name** | **str** | currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim | [optional] +**health_status** | [**V1VolumeHealthStatus**](V1VolumeHealthStatus.md) | | [optional] **modify_volume_status** | [**V1ModifyVolumeStatus**](V1ModifyVolumeStatus.md) | | [optional] **phase** | **str** | phase represents the current phase of PersistentVolumeClaim. | [optional] diff --git a/kubernetes/docs/V1PodCertificateProjection.md b/kubernetes/docs/V1PodCertificateProjection.md index 7642d088c5..f4715eb2ca 100644 --- a/kubernetes/docs/V1PodCertificateProjection.md +++ b/kubernetes/docs/V1PodCertificateProjection.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **key_type** | **str** | The type of keypair Kubelet will generate for the pod. Valid values are \"RSA3072\", \"RSA4096\", \"ECDSAP256\", \"ECDSAP384\", \"ECDSAP521\", and \"ED25519\". | **max_expiration_seconds** | **int** | maxExpirationSeconds is the maximum lifetime permitted for the certificate. Kubelet copies this value verbatim into the PodCertificateRequests it generates for this projection. 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] **signer_name** | **str** | Kubelet's generated CSRs will be addressed to this signer. | +**user** | **int** | user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] **user_annotations** | **Dict[str, str]** | userAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way. These values are copied verbatim into the `spec.unverifiedUserAnnotations` field of the PodCertificateRequest objects that Kubelet creates. 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] ## Example diff --git a/kubernetes/docs/V1PodCertificateRequest.md b/kubernetes/docs/V1PodCertificateRequest.md new file mode 100644 index 0000000000..c6f048cba2 --- /dev/null +++ b/kubernetes/docs/V1PodCertificateRequest.md @@ -0,0 +1,32 @@ +# V1PodCertificateRequest + +PodCertificateRequest encodes a pod requesting a certificate from a given signer. Kubelets use this API to implement podCertificate projected volumes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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** | **str** | 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** | [**V1PodCertificateRequestSpec**](V1PodCertificateRequestSpec.md) | | +**status** | [**V1PodCertificateRequestStatus**](V1PodCertificateRequestStatus.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1_pod_certificate_request import V1PodCertificateRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1PodCertificateRequest from a JSON string +v1_pod_certificate_request_instance = V1PodCertificateRequest.from_json(json) +# print the JSON string representation of the object +print(V1PodCertificateRequest.to_json()) + +# convert the object into a dict +v1_pod_certificate_request_dict = v1_pod_certificate_request_instance.to_dict() +# create an instance of V1PodCertificateRequest from a dict +v1_pod_certificate_request_from_dict = V1PodCertificateRequest.from_dict(v1_pod_certificate_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PodCertificateRequestList.md b/kubernetes/docs/V1PodCertificateRequestList.md new file mode 100644 index 0000000000..f7748af0f5 --- /dev/null +++ b/kubernetes/docs/V1PodCertificateRequestList.md @@ -0,0 +1,31 @@ +# V1PodCertificateRequestList + +PodCertificateRequestList is a collection of PodCertificateRequest objects + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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[V1PodCertificateRequest]**](V1PodCertificateRequest.md) | items is a collection of PodCertificateRequest objects | +**kind** | **str** | 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] + +## Example + +```python +from kubernetes.client.models.v1_pod_certificate_request_list import V1PodCertificateRequestList + +# TODO update the JSON string below +json = "{}" +# create an instance of V1PodCertificateRequestList from a JSON string +v1_pod_certificate_request_list_instance = V1PodCertificateRequestList.from_json(json) +# print the JSON string representation of the object +print(V1PodCertificateRequestList.to_json()) + +# convert the object into a dict +v1_pod_certificate_request_list_dict = v1_pod_certificate_request_list_instance.to_dict() +# create an instance of V1PodCertificateRequestList from a dict +v1_pod_certificate_request_list_from_dict = V1PodCertificateRequestList.from_dict(v1_pod_certificate_request_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PodCertificateRequestSpec.md b/kubernetes/docs/V1PodCertificateRequestSpec.md new file mode 100644 index 0000000000..ffdbb5b6b9 --- /dev/null +++ b/kubernetes/docs/V1PodCertificateRequestSpec.md @@ -0,0 +1,37 @@ +# V1PodCertificateRequestSpec + +PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_expiration_seconds** | **int** | 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] +**node_name** | **str** | nodeName is the name of the node the pod is assigned to. | +**node_uid** | **str** | nodeUID is the UID of the node the pod is assigned to. | +**pod_name** | **str** | podName is the name of the pod into which the certificate will be mounted. | +**pod_uid** | **str** | podUID is the UID of the pod into which the certificate will be mounted. | +**service_account_name** | **str** | serviceAccountName is the name of the service account the pod is running as. | +**service_account_uid** | **str** | serviceAccountUID is the UID of the service account the pod is running as. | +**signer_name** | **str** | 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. | +**stub_pkcs10_request** | **bytes** | 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. | +**unverified_user_annotations** | **Dict[str, str]** | 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] + +## Example + +```python +from kubernetes.client.models.v1_pod_certificate_request_spec import V1PodCertificateRequestSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1PodCertificateRequestSpec from a JSON string +v1_pod_certificate_request_spec_instance = V1PodCertificateRequestSpec.from_json(json) +# print the JSON string representation of the object +print(V1PodCertificateRequestSpec.to_json()) + +# convert the object into a dict +v1_pod_certificate_request_spec_dict = v1_pod_certificate_request_spec_instance.to_dict() +# create an instance of V1PodCertificateRequestSpec from a dict +v1_pod_certificate_request_spec_from_dict = V1PodCertificateRequestSpec.from_dict(v1_pod_certificate_request_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PodCertificateRequestStatus.md b/kubernetes/docs/V1PodCertificateRequestStatus.md new file mode 100644 index 0000000000..e95bdeb7e5 --- /dev/null +++ b/kubernetes/docs/V1PodCertificateRequestStatus.md @@ -0,0 +1,32 @@ +# V1PodCertificateRequestStatus + +PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**begin_refresh_at** | **datetime** | beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable. This field is only a hint. Kubelet may start refreshing before or after this time if necessary. | [optional] +**certificate_chain** | **str** | certificateChain is populated with an issued certificate by the signer. This field is set via the /status subresource. Once populated, this field is immutable. If the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty. Validation requirements: 1. certificateChain must consist of one or more PEM-formatted certificates. 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as described in section 4 of RFC5280. If more than one block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers. | [optional] +**conditions** | [**List[V1Condition]**](V1Condition.md) | conditions applied to the request. The types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\". If the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field. | [optional] +**not_after** | **datetime** | notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain. | [optional] +**not_before** | **datetime** | notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain. | [optional] + +## Example + +```python +from kubernetes.client.models.v1_pod_certificate_request_status import V1PodCertificateRequestStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1PodCertificateRequestStatus from a JSON string +v1_pod_certificate_request_status_instance = V1PodCertificateRequestStatus.from_json(json) +# print the JSON string representation of the object +print(V1PodCertificateRequestStatus.to_json()) + +# convert the object into a dict +v1_pod_certificate_request_status_dict = v1_pod_certificate_request_status_instance.to_dict() +# create an instance of V1PodCertificateRequestStatus from a dict +v1_pod_certificate_request_status_from_dict = V1PodCertificateRequestStatus.from_dict(v1_pod_certificate_request_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PodDisruptionBudgetSpec.md b/kubernetes/docs/V1PodDisruptionBudgetSpec.md index 6de3896da3..ac8a098efd 100644 --- a/kubernetes/docs/V1PodDisruptionBudgetSpec.md +++ b/kubernetes/docs/V1PodDisruptionBudgetSpec.md @@ -6,10 +6,10 @@ PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**max_unavailable** | **Union[int, str]** | An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\". | [optional] -**min_available** | **Union[int, str]** | An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". | [optional] +**max_unavailable** | **Union[int, str]** | maxUnavailable indicates that an eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\". | [optional] +**min_available** | **Union[int, str]** | minAvailable indicates that an eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". | [optional] **selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] -**unhealthy_pod_eviction_policy** | **str** | UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. | [optional] +**unhealthy_pod_eviction_policy** | **str** | unhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. | [optional] ## Example diff --git a/kubernetes/docs/V1PodSecurityContext.md b/kubernetes/docs/V1PodSecurityContext.md index 42dff0581d..efb66e5937 100644 --- a/kubernetes/docs/V1PodSecurityContext.md +++ b/kubernetes/docs/V1PodSecurityContext.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **run_as_group** | **int** | The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. | [optional] **run_as_non_root** | **bool** | 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 SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] **run_as_user** | **int** | The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. | [optional] -**se_linux_change_policy** | **str** | seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\". \"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. \"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. 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. 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. | [optional] +**se_linux_change_policy** | **str** | seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\". \"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. \"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. 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. 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. | [optional] **se_linux_options** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | | [optional] **seccomp_profile** | [**V1SeccompProfile**](V1SeccompProfile.md) | | [optional] **supplemental_groups** | **List[int]** | A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows. | [optional] diff --git a/kubernetes/docs/V1PodSpec.md b/kubernetes/docs/V1PodSpec.md index 3097557bb7..269a09c811 100644 --- a/kubernetes/docs/V1PodSpec.md +++ b/kubernetes/docs/V1PodSpec.md @@ -14,20 +14,21 @@ Name | Type | Description | Notes **dns_policy** | **str** | Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. | [optional] **enable_service_links** | **bool** | EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. | [optional] **ephemeral_containers** | [**List[V1EphemeralContainer]**](V1EphemeralContainer.md) | List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. | [optional] +**eviction_responders** | [**List[V1EvictionResponder]**](V1EvictionResponder.md) | evictionResponders reference responders that react to Evictions based on EvictionRequests. Responders should observe and communicate through the Eviction Resource API to help with the graceful termination of a pod. The responders are selected sequentially, according to their specified priority. Responders should periodically report on an eviction progress by updating the .status.responders[].heartbeatTime field of the Eviction object. If this field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there is no other responder, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods/<name>/eviction subresource). The maximum length of the responders list is 10. Responders are not supported when the pod is part of a PodGroup (.spec.schedulingGroup is set). This field can only be set on creation and is immutable afterwards. | [optional] **host_aliases** | [**List[V1HostAlias]**](V1HostAlias.md) | HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. | [optional] **host_ipc** | **bool** | Use the host's ipc namespace. Optional: Default to false. | [optional] **host_network** | **bool** | 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] **host_pid** | **bool** | Use the host's pid namespace. Optional: Default to false. | [optional] **host_users** | **bool** | 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** | **str** | Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. | [optional] -**hostname_override** | **str** | 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] +**hostname_override** | **str** | 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. | [optional] **image_pull_secrets** | [**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] **init_containers** | [**List[V1Container]**](V1Container.md) | List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ | [optional] **node_name** | **str** | NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename | [optional] **node_selector** | **Dict[str, str]** | NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | [optional] **os** | [**V1PodOS**](V1PodOS.md) | | [optional] **overhead** | **Dict[str, str]** | Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md | [optional] -**preemption_policy** | **str** | PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. | [optional] +**preemption_policy** | **str** | 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] **priority** | **int** | The priority value. Various system components use this field to find the priority of the pod. 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. | [optional] **priority_class_name** | **str** | If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. | [optional] **readiness_gates** | [**List[V1PodReadinessGate]**](V1PodReadinessGate.md) | If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates | [optional] diff --git a/kubernetes/docs/V1PodStatus.md b/kubernetes/docs/V1PodStatus.md index 2b6f332534..0979418688 100644 --- a/kubernetes/docs/V1PodStatus.md +++ b/kubernetes/docs/V1PodStatus.md @@ -27,6 +27,7 @@ Name | Type | Description | Notes **resource_claim_statuses** | [**List[V1PodResourceClaimStatus]**](V1PodResourceClaimStatus.md) | Status of resource claims. | [optional] **resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] **start_time** | **datetime** | RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. | [optional] +**volume_health** | [**List[V1PodVolumeHealth]**](V1PodVolumeHealth.md) | volumeHealth contains node-reported health for each volume the pod is using. Populated by the kubelet on the pod's node. | [optional] ## Example diff --git a/kubernetes/docs/V1PodVolumeHealth.md b/kubernetes/docs/V1PodVolumeHealth.md new file mode 100644 index 0000000000..f7d3127ad9 --- /dev/null +++ b/kubernetes/docs/V1PodVolumeHealth.md @@ -0,0 +1,30 @@ +# V1PodVolumeHealth + +PodVolumeHealth contains health information for a volume used by a pod, reported by the CSI node plugin via the kubelet. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**health_conditions** | [**List[V1VolumeHealthCondition]**](V1VolumeHealthCondition.md) | conditions is the set of adverse conditions reported by the CSI node plugin for this volume on this node. At most 16 conditions may be reported. | [optional] +**last_transition_time** | **datetime** | lastTransitionTime is when the current set of conditions first appeared. | [optional] +**name** | **str** | name matches an entry in pod.spec.volumes. | + +## Example + +```python +from kubernetes.client.models.v1_pod_volume_health import V1PodVolumeHealth + +# TODO update the JSON string below +json = "{}" +# create an instance of V1PodVolumeHealth from a JSON string +v1_pod_volume_health_instance = V1PodVolumeHealth.from_json(json) +# print the JSON string representation of the object +print(V1PodVolumeHealth.to_json()) + +# convert the object into a dict +v1_pod_volume_health_dict = v1_pod_volume_health_instance.to_dict() +# create an instance of V1PodVolumeHealth from a dict +v1_pod_volume_health_from_dict = V1PodVolumeHealth.from_dict(v1_pod_volume_health_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PolicyRule.md b/kubernetes/docs/V1PolicyRule.md index cbd741597d..9eda8398ce 100644 --- a/kubernetes/docs/V1PolicyRule.md +++ b/kubernetes/docs/V1PolicyRule.md @@ -6,11 +6,11 @@ PolicyRule holds information that describes a policy rule, but does not contain Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_groups** | **List[str]** | 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. \"\" represents the core API group and \"*\" represents all API groups. | [optional] -**non_resource_urls** | **List[str]** | 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 Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. | [optional] -**resource_names** | **List[str]** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] -**resources** | **List[str]** | Resources is a list of resources this rule applies to. '*' represents all resources. | [optional] -**verbs** | **List[str]** | Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. | +**api_groups** | **List[str]** | 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. \"\" represents the core API group and \"*\" represents all API groups. | [optional] +**non_resource_urls** | **List[str]** | 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 Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. | [optional] +**resource_names** | **List[str]** | resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] +**resources** | **List[str]** | resources is a list of resources this rule applies to. '*' represents all resources. | [optional] +**verbs** | **List[str]** | verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. | ## Example diff --git a/kubernetes/docs/V1PriorityLevelConfiguration.md b/kubernetes/docs/V1PriorityLevelConfiguration.md index 40712cd7d5..f7589e6195 100644 --- a/kubernetes/docs/V1PriorityLevelConfiguration.md +++ b/kubernetes/docs/V1PriorityLevelConfiguration.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1PriorityLevelConfigurationSpec**](V1PriorityLevelConfigurationSpec.md) | | [optional] +**spec** | [**V1PriorityLevelConfigurationSpec**](V1PriorityLevelConfigurationSpec.md) | | **status** | [**V1PriorityLevelConfigurationStatus**](V1PriorityLevelConfigurationStatus.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1PriorityLevelConfigurationCondition.md b/kubernetes/docs/V1PriorityLevelConfigurationCondition.md index caa71d238b..4640de5777 100644 --- a/kubernetes/docs/V1PriorityLevelConfigurationCondition.md +++ b/kubernetes/docs/V1PriorityLevelConfigurationCondition.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes **last_transition_time** | **datetime** | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] **message** | **str** | `message` is a human-readable message indicating details about last transition. | [optional] **reason** | **str** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] -**status** | **str** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] -**type** | **str** | `type` is the type of the condition. Required. | [optional] +**status** | **str** | `status` is the status of the condition. Should be specified and set to one of True, False, Unknown. | [optional] +**type** | **str** | `type` is the type of the condition. Required. | ## Example diff --git a/kubernetes/docs/V1ProjectedVolumeSource.md b/kubernetes/docs/V1ProjectedVolumeSource.md index 6cd3472a26..60dfb576a5 100644 --- a/kubernetes/docs/V1ProjectedVolumeSource.md +++ b/kubernetes/docs/V1ProjectedVolumeSource.md @@ -7,6 +7,7 @@ Represents a projected volume source Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default_mode** | **int** | defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] +**default_user** | **int** | defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] **sources** | [**List[V1VolumeProjection]**](V1VolumeProjection.md) | sources is the list of volume projections. Each entry in this list handles one source. | [optional] ## Example diff --git a/kubernetes/docs/V1ReplicaSet.md b/kubernetes/docs/V1ReplicaSet.md index 1ba8dac9ba..ec80b2645c 100644 --- a/kubernetes/docs/V1ReplicaSet.md +++ b/kubernetes/docs/V1ReplicaSet.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1ReplicaSetSpec**](V1ReplicaSetSpec.md) | | [optional] +**spec** | [**V1ReplicaSetSpec**](V1ReplicaSetSpec.md) | | **status** | [**V1ReplicaSetStatus**](V1ReplicaSetStatus.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1ReplicaSetCondition.md b/kubernetes/docs/V1ReplicaSetCondition.md index 578a204b35..af8ea74023 100644 --- a/kubernetes/docs/V1ReplicaSetCondition.md +++ b/kubernetes/docs/V1ReplicaSetCondition.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes **last_transition_time** | **datetime** | The last time the condition transitioned from one status to another. | [optional] **message** | **str** | A human readable message indicating details about the transition. | [optional] **reason** | **str** | The reason for the condition's last transition. | [optional] -**status** | **str** | Status of the condition, one of True, False, Unknown. | -**type** | **str** | Type of replica set condition. | +**status** | **str** | Status of the condition, one of True, False, Unknown. | [optional] +**type** | **str** | Type of replica set condition. | [optional] ## Example diff --git a/kubernetes/docs/V1ResourceClaimTemplate.md b/kubernetes/docs/V1ResourceClaimTemplate.md index 486dec20f6..629bc14bbc 100644 --- a/kubernetes/docs/V1ResourceClaimTemplate.md +++ b/kubernetes/docs/V1ResourceClaimTemplate.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1ResourceClaimTemplateSpec**](V1ResourceClaimTemplateSpec.md) | | +**spec** | [**V1ResourceClaimTemplateSpec**](V1ResourceClaimTemplateSpec.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1ResourceClaimTemplateSpec.md b/kubernetes/docs/V1ResourceClaimTemplateSpec.md index c652fd68b2..4ea9897487 100644 --- a/kubernetes/docs/V1ResourceClaimTemplateSpec.md +++ b/kubernetes/docs/V1ResourceClaimTemplateSpec.md @@ -7,7 +7,7 @@ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1ResourceClaimSpec**](V1ResourceClaimSpec.md) | | +**spec** | [**V1ResourceClaimSpec**](V1ResourceClaimSpec.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1ResourcePool.md b/kubernetes/docs/V1ResourcePool.md index 9b9505dc23..3c2eb96066 100644 --- a/kubernetes/docs/V1ResourcePool.md +++ b/kubernetes/docs/V1ResourcePool.md @@ -7,7 +7,7 @@ ResourcePool describes the pool that ResourceSlices belong to. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **generation** | **int** | 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. | -**name** | **str** | 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. | +**name** | **str** | Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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. | **resource_slice_count** | **int** | 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. | ## Example diff --git a/kubernetes/docs/V1ResourceSliceSpec.md b/kubernetes/docs/V1ResourceSliceSpec.md index 5f0788b1ea..3502da4444 100644 --- a/kubernetes/docs/V1ResourceSliceSpec.md +++ b/kubernetes/docs/V1ResourceSliceSpec.md @@ -11,9 +11,11 @@ Name | Type | Description | Notes **driver** | **str** | 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. | **node_name** | **str** | 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] **node_selector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] +**partition_type_attribute** | **str** | PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost. | [optional] **per_device_node_selection** | **bool** | 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] **pool** | [**V1ResourcePool**](V1ResourcePool.md) | | **shared_counters** | [**List[V1CounterSet]**](V1CounterSet.md) | 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] +**skip_node_operations** | **List[str]** | SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values. | [optional] ## Example diff --git a/kubernetes/docs/V1ResourceStatus.md b/kubernetes/docs/V1ResourceStatus.md index c1200b5fd7..032f65f406 100644 --- a/kubernetes/docs/V1ResourceStatus.md +++ b/kubernetes/docs/V1ResourceStatus.md @@ -6,7 +6,7 @@ ResourceStatus represents the status of a single resource allocated to a Pod. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:<claim_name>/<request>\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container. | +**name** | **str** | Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:<claim_name>/<request>\" when container.resources.claims[*].request is set or \"claim:<claim_name>\" when container.resources.claims[*].request is empty. For DRA-backed extended resources, \"claim:<claim_name>/<request>\" is used when the claim name and request name are recorded in pod.status.extendedResourceClaimStatus. When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container. | **resources** | [**List[V1ResourceHealth]**](V1ResourceHealth.md) | List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. | [optional] ## Example diff --git a/kubernetes/docs/V1Role.md b/kubernetes/docs/V1Role.md index 5054f7d8c8..6edb683e04 100644 --- a/kubernetes/docs/V1Role.md +++ b/kubernetes/docs/V1Role.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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] -**rules** | [**List[V1PolicyRule]**](V1PolicyRule.md) | Rules holds all the PolicyRules for this Role | [optional] +**rules** | [**List[V1PolicyRule]**](V1PolicyRule.md) | rules holds all the PolicyRules for this Role | [optional] ## Example diff --git a/kubernetes/docs/V1RoleBinding.md b/kubernetes/docs/V1RoleBinding.md index 18514a84ab..94b8d36a9f 100644 --- a/kubernetes/docs/V1RoleBinding.md +++ b/kubernetes/docs/V1RoleBinding.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **kind** | **str** | 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] **role_ref** | [**V1RoleRef**](V1RoleRef.md) | | -**subjects** | [**List[RbacV1Subject]**](RbacV1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] +**subjects** | [**List[RbacV1Subject]**](RbacV1Subject.md) | subjects holds references to the objects the role applies to. | [optional] ## Example diff --git a/kubernetes/docs/V1RoleRef.md b/kubernetes/docs/V1RoleRef.md index fe9017820e..fe2d6006bf 100644 --- a/kubernetes/docs/V1RoleRef.md +++ b/kubernetes/docs/V1RoleRef.md @@ -6,9 +6,9 @@ RoleRef contains information that points to the role being used Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_group** | **str** | APIGroup is the group for the resource being referenced | [optional] -**kind** | **str** | Kind is the type of resource being referenced | -**name** | **str** | Name is the name of resource being referenced | +**api_group** | **str** | apiGroup is the group for the resource being referenced | [optional] +**kind** | **str** | kind is the type of resource being referenced | +**name** | **str** | name is the name of resource being referenced | ## Example diff --git a/kubernetes/docs/V1SecretVolumeSource.md b/kubernetes/docs/V1SecretVolumeSource.md index 2d8016d58c..cd05da1171 100644 --- a/kubernetes/docs/V1SecretVolumeSource.md +++ b/kubernetes/docs/V1SecretVolumeSource.md @@ -7,6 +7,7 @@ Adapts a Secret into a volume. The contents of the target Secret's Data field w Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default_mode** | **int** | defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] +**default_user** | **int** | defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] **items** | [**List[V1KeyToPath]**](V1KeyToPath.md) | items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] **optional** | **bool** | optional field specify whether the Secret or its keys must be defined | [optional] **secret_name** | **str** | secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret | [optional] diff --git a/kubernetes/docs/V1ServiceAccountTokenProjection.md b/kubernetes/docs/V1ServiceAccountTokenProjection.md index 68071716cd..28b1bb37b2 100644 --- a/kubernetes/docs/V1ServiceAccountTokenProjection.md +++ b/kubernetes/docs/V1ServiceAccountTokenProjection.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **audience** | **str** | audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. | [optional] **expiration_seconds** | **int** | expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. | [optional] **path** | **str** | path is the path relative to the mount point of the file to project the token into. | +**user** | **int** | user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled. | [optional] ## Example diff --git a/kubernetes/docs/V1ServiceCIDRSpec.md b/kubernetes/docs/V1ServiceCIDRSpec.md index d261ae70b3..049e2cfd08 100644 --- a/kubernetes/docs/V1ServiceCIDRSpec.md +++ b/kubernetes/docs/V1ServiceCIDRSpec.md @@ -6,7 +6,7 @@ ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cidrs** | **List[str]** | CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable. | [optional] +**cidrs** | **List[str]** | cidrs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable. | [optional] ## Example diff --git a/kubernetes/docs/V1StatefulSet.md b/kubernetes/docs/V1StatefulSet.md index 09f81a98b7..a8c5a4fe0d 100644 --- a/kubernetes/docs/V1StatefulSet.md +++ b/kubernetes/docs/V1StatefulSet.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1StatefulSetSpec**](V1StatefulSetSpec.md) | | [optional] +**spec** | [**V1StatefulSetSpec**](V1StatefulSetSpec.md) | | **status** | [**V1StatefulSetStatus**](V1StatefulSetStatus.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1StatefulSetCondition.md b/kubernetes/docs/V1StatefulSetCondition.md index bdb2ca9551..f5718587b4 100644 --- a/kubernetes/docs/V1StatefulSetCondition.md +++ b/kubernetes/docs/V1StatefulSetCondition.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes **last_transition_time** | **datetime** | Last time the condition transitioned from one status to another. | [optional] **message** | **str** | A human readable message indicating details about the transition. | [optional] **reason** | **str** | The reason for the condition's last transition. | [optional] -**status** | **str** | Status of the condition, one of True, False, Unknown. | -**type** | **str** | Type of statefulset condition. | +**status** | **str** | Status of the condition, one of True, False, Unknown. | [optional] +**type** | **str** | Type of statefulset condition. | [optional] ## Example diff --git a/kubernetes/docs/V1StorageHealth.md b/kubernetes/docs/V1StorageHealth.md new file mode 100644 index 0000000000..30f5d04f1f --- /dev/null +++ b/kubernetes/docs/V1StorageHealth.md @@ -0,0 +1,29 @@ +# V1StorageHealth + +StorageHealth contains storage backend health reported by a CSI driver on a node. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**health_conditions** | [**List[V1StorageHealthCondition]**](V1StorageHealthCondition.md) | healthConditions are the adverse storage backend conditions reported by the CSI driver. At most 16 conditions may be reported. | [optional] +**name** | **str** | name is the CSI driver name, matching CSINodeDriver.name. | + +## Example + +```python +from kubernetes.client.models.v1_storage_health import V1StorageHealth + +# TODO update the JSON string below +json = "{}" +# create an instance of V1StorageHealth from a JSON string +v1_storage_health_instance = V1StorageHealth.from_json(json) +# print the JSON string representation of the object +print(V1StorageHealth.to_json()) + +# convert the object into a dict +v1_storage_health_dict = v1_storage_health_instance.to_dict() +# create an instance of V1StorageHealth from a dict +v1_storage_health_from_dict = V1StorageHealth.from_dict(v1_storage_health_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1StorageHealthCondition.md b/kubernetes/docs/V1StorageHealthCondition.md new file mode 100644 index 0000000000..2c871bb68e --- /dev/null +++ b/kubernetes/docs/V1StorageHealthCondition.md @@ -0,0 +1,33 @@ +# V1StorageHealthCondition + +StorageHealthCondition represents an adverse health condition reported by a CSI driver for its storage backend on a node. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_mode** | **str** | accessMode is the access mode affected. Nil means all access modes are affected. | [optional] +**last_transition_time** | **datetime** | lastTransitionTime is when this condition first appeared at its current state. | [optional] +**message** | **str** | message is a human-readable description. Maximum permitted length of a message is 1024 characters. | [optional] +**reason** | **str** | reason is a brief CamelCase machine-parseable reason. Maximum permitted length of a reason is 256 characters. | +**status** | **str** | status is the health status category. One of \"StorageUnreachable\", \"StorageDegraded\". | +**volume_mode** | **str** | volumeMode is the volume mode affected. Nil means both are affected. | [optional] + +## Example + +```python +from kubernetes.client.models.v1_storage_health_condition import V1StorageHealthCondition + +# TODO update the JSON string below +json = "{}" +# create an instance of V1StorageHealthCondition from a JSON string +v1_storage_health_condition_instance = V1StorageHealthCondition.from_json(json) +# print the JSON string representation of the object +print(V1StorageHealthCondition.to_json()) + +# convert the object into a dict +v1_storage_health_condition_dict = v1_storage_health_condition_instance.to_dict() +# create an instance of V1StorageHealthCondition from a dict +v1_storage_health_condition_from_dict = V1StorageHealthCondition.from_dict(v1_storage_health_condition_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1StorageVersionMigration.md b/kubernetes/docs/V1StorageVersionMigration.md new file mode 100644 index 0000000000..c4f637d373 --- /dev/null +++ b/kubernetes/docs/V1StorageVersionMigration.md @@ -0,0 +1,32 @@ +# V1StorageVersionMigration + +StorageVersionMigration represents a migration of stored data to the latest storage version. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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** | **str** | 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** | [**V1StorageVersionMigrationSpec**](V1StorageVersionMigrationSpec.md) | | [optional] +**status** | [**V1StorageVersionMigrationStatus**](V1StorageVersionMigrationStatus.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1_storage_version_migration import V1StorageVersionMigration + +# TODO update the JSON string below +json = "{}" +# create an instance of V1StorageVersionMigration from a JSON string +v1_storage_version_migration_instance = V1StorageVersionMigration.from_json(json) +# print the JSON string representation of the object +print(V1StorageVersionMigration.to_json()) + +# convert the object into a dict +v1_storage_version_migration_dict = v1_storage_version_migration_instance.to_dict() +# create an instance of V1StorageVersionMigration from a dict +v1_storage_version_migration_from_dict = V1StorageVersionMigration.from_dict(v1_storage_version_migration_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1StorageVersionMigrationList.md b/kubernetes/docs/V1StorageVersionMigrationList.md new file mode 100644 index 0000000000..6a3f5d1690 --- /dev/null +++ b/kubernetes/docs/V1StorageVersionMigrationList.md @@ -0,0 +1,31 @@ +# V1StorageVersionMigrationList + +StorageVersionMigrationList is a collection of storage version migrations. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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[V1StorageVersionMigration]**](V1StorageVersionMigration.md) | Items is the list of StorageVersionMigration | +**kind** | **str** | 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] + +## Example + +```python +from kubernetes.client.models.v1_storage_version_migration_list import V1StorageVersionMigrationList + +# TODO update the JSON string below +json = "{}" +# create an instance of V1StorageVersionMigrationList from a JSON string +v1_storage_version_migration_list_instance = V1StorageVersionMigrationList.from_json(json) +# print the JSON string representation of the object +print(V1StorageVersionMigrationList.to_json()) + +# convert the object into a dict +v1_storage_version_migration_list_dict = v1_storage_version_migration_list_instance.to_dict() +# create an instance of V1StorageVersionMigrationList from a dict +v1_storage_version_migration_list_from_dict = V1StorageVersionMigrationList.from_dict(v1_storage_version_migration_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1StorageVersionMigrationSpec.md b/kubernetes/docs/V1StorageVersionMigrationSpec.md new file mode 100644 index 0000000000..df035c5da9 --- /dev/null +++ b/kubernetes/docs/V1StorageVersionMigrationSpec.md @@ -0,0 +1,28 @@ +# V1StorageVersionMigrationSpec + +Spec of the storage version migration. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource** | [**V1GroupResource**](V1GroupResource.md) | | + +## Example + +```python +from kubernetes.client.models.v1_storage_version_migration_spec import V1StorageVersionMigrationSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1StorageVersionMigrationSpec from a JSON string +v1_storage_version_migration_spec_instance = V1StorageVersionMigrationSpec.from_json(json) +# print the JSON string representation of the object +print(V1StorageVersionMigrationSpec.to_json()) + +# convert the object into a dict +v1_storage_version_migration_spec_dict = v1_storage_version_migration_spec_instance.to_dict() +# create an instance of V1StorageVersionMigrationSpec from a dict +v1_storage_version_migration_spec_from_dict = V1StorageVersionMigrationSpec.from_dict(v1_storage_version_migration_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1StorageVersionMigrationStatus.md b/kubernetes/docs/V1StorageVersionMigrationStatus.md new file mode 100644 index 0000000000..3660c8c281 --- /dev/null +++ b/kubernetes/docs/V1StorageVersionMigrationStatus.md @@ -0,0 +1,29 @@ +# V1StorageVersionMigrationStatus + +Status of the storage version migration. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**List[V1Condition]**](V1Condition.md) | The latest available observations of the migration's current state. | [optional] +**resource_version** | **str** | 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] + +## Example + +```python +from kubernetes.client.models.v1_storage_version_migration_status import V1StorageVersionMigrationStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1StorageVersionMigrationStatus from a JSON string +v1_storage_version_migration_status_instance = V1StorageVersionMigrationStatus.from_json(json) +# print the JSON string representation of the object +print(V1StorageVersionMigrationStatus.to_json()) + +# convert the object into a dict +v1_storage_version_migration_status_dict = v1_storage_version_migration_status_instance.to_dict() +# create an instance of V1StorageVersionMigrationStatus from a dict +v1_storage_version_migration_status_from_dict = V1StorageVersionMigrationStatus.from_dict(v1_storage_version_migration_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1TokenRequestSpec.md b/kubernetes/docs/V1TokenRequestSpec.md index 17c1b7c2ad..640e6772cb 100644 --- a/kubernetes/docs/V1TokenRequestSpec.md +++ b/kubernetes/docs/V1TokenRequestSpec.md @@ -6,6 +6,7 @@ TokenRequestSpec contains client provided parameters of a token request. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**attestations** | **Dict[str, List[str]]** | attestations is a map of well-known keys to string-slice values. The values for each key have a specific semantic meaning, which is documented on the key definition. Requesters of tokens may ask the Kubernetes API Server to attest to certain claims. The API Server may perform authorization checks depending on the key of this map. | [optional] **audiences** | **List[str]** | 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] **bound_object_ref** | [**V1BoundObjectReference**](V1BoundObjectReference.md) | | [optional] **expiration_seconds** | **int** | 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/V1VolumeAttributesClass.md b/kubernetes/docs/V1VolumeAttributesClass.md index e04950be29..57bc201f55 100644 --- a/kubernetes/docs/V1VolumeAttributesClass.md +++ b/kubernetes/docs/V1VolumeAttributesClass.md @@ -7,7 +7,7 @@ VolumeAttributesClass represents a specification of mutable volume attributes de Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | 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] -**driver_name** | **str** | Name of the CSI driver This field is immutable. | +**driver_name** | **str** | driverName is the name of the CSI driver This field is immutable. | **kind** | **str** | 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] **parameters** | **Dict[str, str]** | parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field. | [optional] diff --git a/kubernetes/docs/V1VolumeHealthCondition.md b/kubernetes/docs/V1VolumeHealthCondition.md new file mode 100644 index 0000000000..5085efe0ad --- /dev/null +++ b/kubernetes/docs/V1VolumeHealthCondition.md @@ -0,0 +1,30 @@ +# V1VolumeHealthCondition + +VolumeHealthCondition represents an adverse health condition reported for a volume. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | message is a human-readable description. Maximum permitted length of a message is 1024 bytes. | [optional] +**reason** | **str** | reason is a brief CamelCase machine-parseable reason. Together with status it forms the unique identity of a condition entry. Maximum permitted length of a reason is 256 bytes. | +**status** | **str** | status is the machine-parseable health category. Possible values: - \"Inaccessible\": the volume cannot be accessed. - \"DataLoss\": data loss has been detected on the volume. - \"Degraded\": the volume is functioning with reduced capability. | + +## Example + +```python +from kubernetes.client.models.v1_volume_health_condition import V1VolumeHealthCondition + +# TODO update the JSON string below +json = "{}" +# create an instance of V1VolumeHealthCondition from a JSON string +v1_volume_health_condition_instance = V1VolumeHealthCondition.from_json(json) +# print the JSON string representation of the object +print(V1VolumeHealthCondition.to_json()) + +# convert the object into a dict +v1_volume_health_condition_dict = v1_volume_health_condition_instance.to_dict() +# create an instance of V1VolumeHealthCondition from a dict +v1_volume_health_condition_from_dict = V1VolumeHealthCondition.from_dict(v1_volume_health_condition_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1VolumeHealthStatus.md b/kubernetes/docs/V1VolumeHealthStatus.md new file mode 100644 index 0000000000..aed5d0b168 --- /dev/null +++ b/kubernetes/docs/V1VolumeHealthStatus.md @@ -0,0 +1,29 @@ +# V1VolumeHealthStatus + +VolumeHealthStatus contains health information for a volume reported by the CSI controller plugin. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**health_conditions** | [**List[V1VolumeHealthCondition]**](V1VolumeHealthCondition.md) | conditions is the set of adverse conditions reported by the CSI controller plugin. An empty list means no adverse condition. At most 16 conditions may be reported. | [optional] +**last_transition_time** | **datetime** | lastTransitionTime is when the current set of conditions first appeared. | [optional] + +## Example + +```python +from kubernetes.client.models.v1_volume_health_status import V1VolumeHealthStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1VolumeHealthStatus from a JSON string +v1_volume_health_status_instance = V1VolumeHealthStatus.from_json(json) +# print the JSON string representation of the object +print(V1VolumeHealthStatus.to_json()) + +# convert the object into a dict +v1_volume_health_status_dict = v1_volume_health_status_instance.to_dict() +# create an instance of V1VolumeHealthStatus from a dict +v1_volume_health_status_from_dict = V1VolumeHealthStatus.from_dict(v1_volume_health_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1VolumeMount.md b/kubernetes/docs/V1VolumeMount.md index 23c7b2fa4b..1428452f11 100644 --- a/kubernetes/docs/V1VolumeMount.md +++ b/kubernetes/docs/V1VolumeMount.md @@ -6,7 +6,8 @@ VolumeMount describes a mounting of a Volume within a container. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**mount_path** | **str** | Path within the container at which the volume should be mounted. Must not contain ':'. | +**bind_mount_options** | **List[str]** | bindMountOptions is the list of additional bind mount options to apply when mounting this volume into the container. Allowed values are noexec, nodev, and nosuid. These are Linux mount options and have no effect on Windows nodes. This field is not supported with image volumes. This is an alpha field and requires enabling the VolumeBindMountOptions feature gate. | [optional] +**mount_path** | **str** | Path within the container at which the volume should be mounted. | **mount_propagation** | **str** | mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). | [optional] **name** | **str** | This must match the Name of a Volume. | **read_only** | **bool** | Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. | [optional] diff --git a/kubernetes/docs/V1alpha1Eviction.md b/kubernetes/docs/V1alpha1Eviction.md new file mode 100644 index 0000000000..066165c486 --- /dev/null +++ b/kubernetes/docs/V1alpha1Eviction.md @@ -0,0 +1,32 @@ +# V1alpha1Eviction + +Eviction initiates an eviction process, which should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod). The evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. It manages the Eviction lifecycle. Requesters are preserved in .status.requesters even after they have withdrawn their request. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Once all EvictionRequest corresponding to this Eviction .spec.target have been removed, this Eviction object will eventually be garbage collected. If the target is a pod, the .status.targetResponders is populated from Pod's .spec.evictionResponders. Responders should observe and communicate through the .status to help with the eviction of the target when they see their state == Active in .status.targetResponders. ResponderStatus struct should then be periodically updated to indicate the progress or completion of the eviction process by each responder in .status.responders. If .status.responders[].heartbeatTime is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there are no other responders and the target is a pod, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource). + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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** | **str** | 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** | [**V1alpha1EvictionSpec**](V1alpha1EvictionSpec.md) | | +**status** | [**V1alpha1EvictionStatus**](V1alpha1EvictionStatus.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha1_eviction import V1alpha1Eviction + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1Eviction from a JSON string +v1alpha1_eviction_instance = V1alpha1Eviction.from_json(json) +# print the JSON string representation of the object +print(V1alpha1Eviction.to_json()) + +# convert the object into a dict +v1alpha1_eviction_dict = v1alpha1_eviction_instance.to_dict() +# create an instance of V1alpha1Eviction from a dict +v1alpha1_eviction_from_dict = V1alpha1Eviction.from_dict(v1alpha1_eviction_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1EvictionList.md b/kubernetes/docs/V1alpha1EvictionList.md new file mode 100644 index 0000000000..d5804d98db --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionList.md @@ -0,0 +1,31 @@ +# V1alpha1EvictionList + +EvictionList contains a list of Eviction resources. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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[V1alpha1Eviction]**](V1alpha1Eviction.md) | items is the list of Evictions. | +**kind** | **str** | 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] + +## Example + +```python +from kubernetes.client.models.v1alpha1_eviction_list import V1alpha1EvictionList + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionList from a JSON string +v1alpha1_eviction_list_instance = V1alpha1EvictionList.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionList.to_json()) + +# convert the object into a dict +v1alpha1_eviction_list_dict = v1alpha1_eviction_list_instance.to_dict() +# create an instance of V1alpha1EvictionList from a dict +v1alpha1_eviction_list_from_dict = V1alpha1EvictionList.from_dict(v1alpha1_eviction_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1EvictionPodReference.md b/kubernetes/docs/V1alpha1EvictionPodReference.md new file mode 100644 index 0000000000..b7623de165 --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionPodReference.md @@ -0,0 +1,29 @@ +# V1alpha1EvictionPodReference + +EvictionPodReference contains enough information to locate the referenced pod inside the same namespace. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | name of the target. This field is required. | +**uid** | **str** | uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required. | + +## Example + +```python +from kubernetes.client.models.v1alpha1_eviction_pod_reference import V1alpha1EvictionPodReference + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionPodReference from a JSON string +v1alpha1_eviction_pod_reference_instance = V1alpha1EvictionPodReference.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionPodReference.to_json()) + +# convert the object into a dict +v1alpha1_eviction_pod_reference_dict = v1alpha1_eviction_pod_reference_instance.to_dict() +# create an instance of V1alpha1EvictionPodReference from a dict +v1alpha1_eviction_pod_reference_from_dict = V1alpha1EvictionPodReference.from_dict(v1alpha1_eviction_pod_reference_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1EvictionRequest.md b/kubernetes/docs/V1alpha1EvictionRequest.md new file mode 100644 index 0000000000..fa5e1e76ce --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionRequest.md @@ -0,0 +1,32 @@ +# V1alpha1EvictionRequest + +EvictionRequest defines a request that should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod). The evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. - .spec.requester is set as a label on the Eviction for easier lookup. - Each target can have a set of responders assigned to it. Eviction objects are observed by these responders, who implement the eviction logic and update the Eviction's status with progress. There is many-to-many relationship between EvictionRequests and Evictions in general. And many-to-one if the target is a pod. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Deleting an EvictionRequest also counts as a withdrawal. Once all EvictionRequest of a target are removed, the corresponding Evictions are eventually garbage collected. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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** | **str** | 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** | [**V1alpha1EvictionRequestSpec**](V1alpha1EvictionRequestSpec.md) | | +**status** | [**V1alpha1EvictionRequestStatus**](V1alpha1EvictionRequestStatus.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionRequest from a JSON string +v1alpha1_eviction_request_instance = V1alpha1EvictionRequest.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionRequest.to_json()) + +# convert the object into a dict +v1alpha1_eviction_request_dict = v1alpha1_eviction_request_instance.to_dict() +# create an instance of V1alpha1EvictionRequest from a dict +v1alpha1_eviction_request_from_dict = V1alpha1EvictionRequest.from_dict(v1alpha1_eviction_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1EvictionRequestList.md b/kubernetes/docs/V1alpha1EvictionRequestList.md new file mode 100644 index 0000000000..0a4bb053f4 --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionRequestList.md @@ -0,0 +1,31 @@ +# V1alpha1EvictionRequestList + +EvictionRequestList contains a list of EvictionRequests resources. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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[V1alpha1EvictionRequest]**](V1alpha1EvictionRequest.md) | items is the list of EvictionRequests. | +**kind** | **str** | 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] + +## Example + +```python +from kubernetes.client.models.v1alpha1_eviction_request_list import V1alpha1EvictionRequestList + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionRequestList from a JSON string +v1alpha1_eviction_request_list_instance = V1alpha1EvictionRequestList.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionRequestList.to_json()) + +# convert the object into a dict +v1alpha1_eviction_request_list_dict = v1alpha1_eviction_request_list_instance.to_dict() +# create an instance of V1alpha1EvictionRequestList from a dict +v1alpha1_eviction_request_list_from_dict = V1alpha1EvictionRequestList.from_dict(v1alpha1_eviction_request_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1EvictionRequestPodReference.md b/kubernetes/docs/V1alpha1EvictionRequestPodReference.md new file mode 100644 index 0000000000..d364ab4fb1 --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionRequestPodReference.md @@ -0,0 +1,29 @@ +# V1alpha1EvictionRequestPodReference + +EvictionRequestPodReference contains enough information to locate the referenced pod inside the same namespace. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | name of the target. This field is required. | +**uid** | **str** | uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required. | + +## Example + +```python +from kubernetes.client.models.v1alpha1_eviction_request_pod_reference import V1alpha1EvictionRequestPodReference + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionRequestPodReference from a JSON string +v1alpha1_eviction_request_pod_reference_instance = V1alpha1EvictionRequestPodReference.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionRequestPodReference.to_json()) + +# convert the object into a dict +v1alpha1_eviction_request_pod_reference_dict = v1alpha1_eviction_request_pod_reference_instance.to_dict() +# create an instance of V1alpha1EvictionRequestPodReference from a dict +v1alpha1_eviction_request_pod_reference_from_dict = V1alpha1EvictionRequestPodReference.from_dict(v1alpha1_eviction_request_pod_reference_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1EvictionRequestSpec.md b/kubernetes/docs/V1alpha1EvictionRequestSpec.md new file mode 100644 index 0000000000..279d277c93 --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionRequestSpec.md @@ -0,0 +1,30 @@ +# V1alpha1EvictionRequestSpec + +EvictionRequestSpec is a specification of an EvictionRequest. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**intent** | **str** | intent specifies the action that should be taken for the specified target. - Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target. If all requesters' intents are withdrawn for a common target, the eviction will be canceled. Cancellation consequences: - Inactive responders will never run. - Active responders are expected to cancel the eviction. - Completed or Interrupted responders should not take any action. | +**requester** | **str** | requester allows you to identify the entity, that requested the eviction of the target. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field is required and immutable. | +**target** | [**V1alpha1EvictionRequestTarget**](V1alpha1EvictionRequestTarget.md) | | + +## Example + +```python +from kubernetes.client.models.v1alpha1_eviction_request_spec import V1alpha1EvictionRequestSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionRequestSpec from a JSON string +v1alpha1_eviction_request_spec_instance = V1alpha1EvictionRequestSpec.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionRequestSpec.to_json()) + +# convert the object into a dict +v1alpha1_eviction_request_spec_dict = v1alpha1_eviction_request_spec_instance.to_dict() +# create an instance of V1alpha1EvictionRequestSpec from a dict +v1alpha1_eviction_request_spec_from_dict = V1alpha1EvictionRequestSpec.from_dict(v1alpha1_eviction_request_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1EvictionRequestStatus.md b/kubernetes/docs/V1alpha1EvictionRequestStatus.md new file mode 100644 index 0000000000..af01a7df28 --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionRequestStatus.md @@ -0,0 +1,29 @@ +# V1alpha1EvictionRequestStatus + +EvictionRequestStatus represents the last observed status of the eviction request. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**List[V1Condition]**](V1Condition.md) | conditions contain information about the eviction request. EvictionRequest specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed by any eviction responder. This can happen if the request is canceled or if no responder managed to evict the target (e.g. terminate or delete a pod). - TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted). These conditions can be reset if the eviction was unsuccessful and a new Eviction intent has been submitted. The maximum length of the conditions list is 100. | [optional] +**observed_generation** | **int** | observedGeneration is EvictionRequest's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller. | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha1_eviction_request_status import V1alpha1EvictionRequestStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionRequestStatus from a JSON string +v1alpha1_eviction_request_status_instance = V1alpha1EvictionRequestStatus.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionRequestStatus.to_json()) + +# convert the object into a dict +v1alpha1_eviction_request_status_dict = v1alpha1_eviction_request_status_instance.to_dict() +# create an instance of V1alpha1EvictionRequestStatus from a dict +v1alpha1_eviction_request_status_from_dict = V1alpha1EvictionRequestStatus.from_dict(v1alpha1_eviction_request_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1EvictionRequestTarget.md b/kubernetes/docs/V1alpha1EvictionRequestTarget.md new file mode 100644 index 0000000000..a28f6a11c8 --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionRequestTarget.md @@ -0,0 +1,28 @@ +# V1alpha1EvictionRequestTarget + +EvictionRequestTarget contains a reference to an object that should be evicted. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pod** | [**V1alpha1EvictionRequestPodReference**](V1alpha1EvictionRequestPodReference.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha1_eviction_request_target import V1alpha1EvictionRequestTarget + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionRequestTarget from a JSON string +v1alpha1_eviction_request_target_instance = V1alpha1EvictionRequestTarget.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionRequestTarget.to_json()) + +# convert the object into a dict +v1alpha1_eviction_request_target_dict = v1alpha1_eviction_request_target_instance.to_dict() +# create an instance of V1alpha1EvictionRequestTarget from a dict +v1alpha1_eviction_request_target_from_dict = V1alpha1EvictionRequestTarget.from_dict(v1alpha1_eviction_request_target_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1EvictionSpec.md b/kubernetes/docs/V1alpha1EvictionSpec.md new file mode 100644 index 0000000000..0aa039aa41 --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionSpec.md @@ -0,0 +1,28 @@ +# V1alpha1EvictionSpec + +EvictionSpec is a specification of an Eviction. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**target** | [**V1alpha1EvictionTarget**](V1alpha1EvictionTarget.md) | | + +## Example + +```python +from kubernetes.client.models.v1alpha1_eviction_spec import V1alpha1EvictionSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionSpec from a JSON string +v1alpha1_eviction_spec_instance = V1alpha1EvictionSpec.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionSpec.to_json()) + +# convert the object into a dict +v1alpha1_eviction_spec_dict = v1alpha1_eviction_spec_instance.to_dict() +# create an instance of V1alpha1EvictionSpec from a dict +v1alpha1_eviction_spec_from_dict = V1alpha1EvictionSpec.from_dict(v1alpha1_eviction_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1EvictionStatus.md b/kubernetes/docs/V1alpha1EvictionStatus.md new file mode 100644 index 0000000000..6135e68693 --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionStatus.md @@ -0,0 +1,32 @@ +# V1alpha1EvictionStatus + +EvictionStatus represents the last observed status of the eviction request. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**List[V1Condition]**](V1Condition.md) | conditions contain information about the eviction request. Eviction specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed by any eviction responder. This can happen if the request is canceled or if no responder managed to evict the target (e.g. terminate or delete a pod). - TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted). The maximum length of the conditions list is 100. | [optional] +**observed_generation** | **int** | observedGeneration is Eviction's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller. | [optional] +**requesters** | [**List[V1alpha1Requester]**](V1alpha1Requester.md) | requesters allow you to identify the entities, that requested the eviction of the target. If all the requesters withdraw their eviction intent, the eviction will be canceled. The maximum length of the requesters list is 100. If this limit is exceeded, requesters with Withdrawn intent should be dropped first. | [optional] +**responders** | [**List[V1alpha1ResponderStatus]**](V1alpha1ResponderStatus.md) | responders represents the eviction process status of each declared responder. The responder list should be the same length and have the same .name fields as .status.targetResponders. Only responders with .name that have Active state in .targetResponders[].state should be updated and can be mutated. First initialization of the list is allowed. Each ResponderStatus is initialized by evictionrequest-controller and then managed by the designated responder. | [optional] +**target_responders** | [**List[V1alpha1TargetResponder]**](V1alpha1TargetResponder.md) | targetResponders reference responders that should eventually respond to this eviction to help with the graceful eviction of a target. These responders are selected sequentially, according to their specified priority by setting the Active state to the TargetResponder .state field. The maximum number of active responders allowed is 1. Eventually each responder can end up in an Interrupted, Canceled or, Completed state. Responders should observe these states in order to navigate their lifecycle. If the target is a pod, the field is populated from Pod's .spec.evictionResponders. Default responders may be added to the list according to the target. Default responders: - imperative-eviction.k8s.io/evictor responder with a priority of 100 is added to the list if the target is a pod. It will call the imperative Eviction API (pods/<name>/eviction subresource). This call may not succeed due to PodDisruptionBudgets, which may block the pod termination. It will update the responder message and try again with a backoff. The maximum length of the responders list is 11. The length and keys of the list cannot change once set. This field is managed by evictionrequest-controller. | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha1_eviction_status import V1alpha1EvictionStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionStatus from a JSON string +v1alpha1_eviction_status_instance = V1alpha1EvictionStatus.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionStatus.to_json()) + +# convert the object into a dict +v1alpha1_eviction_status_dict = v1alpha1_eviction_status_instance.to_dict() +# create an instance of V1alpha1EvictionStatus from a dict +v1alpha1_eviction_status_from_dict = V1alpha1EvictionStatus.from_dict(v1alpha1_eviction_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1EvictionTarget.md b/kubernetes/docs/V1alpha1EvictionTarget.md new file mode 100644 index 0000000000..4e5e0fcf46 --- /dev/null +++ b/kubernetes/docs/V1alpha1EvictionTarget.md @@ -0,0 +1,28 @@ +# V1alpha1EvictionTarget + +EvictionTarget contains a reference to an object that should be evicted. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pod** | [**V1alpha1EvictionPodReference**](V1alpha1EvictionPodReference.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha1_eviction_target import V1alpha1EvictionTarget + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1EvictionTarget from a JSON string +v1alpha1_eviction_target_instance = V1alpha1EvictionTarget.from_json(json) +# print the JSON string representation of the object +print(V1alpha1EvictionTarget.to_json()) + +# convert the object into a dict +v1alpha1_eviction_target_dict = v1alpha1_eviction_target_instance.to_dict() +# create an instance of V1alpha1EvictionTarget from a dict +v1alpha1_eviction_target_from_dict = V1alpha1EvictionTarget.from_dict(v1alpha1_eviction_target_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1Requester.md b/kubernetes/docs/V1alpha1Requester.md new file mode 100644 index 0000000000..85c3afcd50 --- /dev/null +++ b/kubernetes/docs/V1alpha1Requester.md @@ -0,0 +1,29 @@ +# V1alpha1Requester + +Requester allows you to identify the entity, that requested the eviction of the target. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**intent** | **str** | intent specifies the action that should be taken for the specified target. - Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target. If all requesters' intents are withdrawn, the eviction will be canceled. Cancellation consequences: - Inactive responders will never run. - Active responders are expected to cancel the eviction. - Completed or Interrupted responders should not take any action. | +**name** | **str** | name allows you to identify the entity, that requested the eviction of the target. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each requester. This field is required. | + +## Example + +```python +from kubernetes.client.models.v1alpha1_requester import V1alpha1Requester + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1Requester from a JSON string +v1alpha1_requester_instance = V1alpha1Requester.from_json(json) +# print the JSON string representation of the object +print(V1alpha1Requester.to_json()) + +# convert the object into a dict +v1alpha1_requester_dict = v1alpha1_requester_instance.to_dict() +# create an instance of V1alpha1Requester from a dict +v1alpha1_requester_from_dict = V1alpha1Requester.from_dict(v1alpha1_requester_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1ResponderStatus.md b/kubernetes/docs/V1alpha1ResponderStatus.md new file mode 100644 index 0000000000..fc7975c4aa --- /dev/null +++ b/kubernetes/docs/V1alpha1ResponderStatus.md @@ -0,0 +1,33 @@ +# V1alpha1ResponderStatus + +ResponderStatus represents the last observed status of the eviction process of the responder. It should be only updated by the designated responder whose name is .name field. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**completion_time** | **datetime** | completionTime tracks the time at which the Responder stopped processing the eviction request. Completion means that the responders has either fully or partially completed the eviction process, which may have resulted in target eviction (e.g. pod termination). It should reflect the present time when set. This field becomes immutable once set. | [optional] +**expected_completion_time** | **datetime** | expectedCompletionTime is the time at which the eviction process step is expected to end for the responder. The time cannot be set to the past. May be omitted if no estimate can be made. | [optional] +**heartbeat_time** | **datetime** | heartbeatTime is the last time at which the eviction process was reported to be in progress by the responder. It should reflect the present time when set. Responders should avoid heartbeats more frequent than 20 seconds to avoid overloading the control-plane. | [optional] +**message** | **str** | message provides human-readable details about the state of the responder and the eviction process. Maximum length is 4000 characters. | [optional] +**name** | **str** | name allows you to identify the responder reacting to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field is initialized by Kubernetes and must be unique for each responder. This field is required. | +**start_time** | **datetime** | startTime tracks the time at which this responder was designated as active and should start processing the eviction request. It should reflect the present time when set. This field is initialized by Kubernetes when this responder becomes active. This field becomes immutable once set. | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha1_responder_status import V1alpha1ResponderStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1ResponderStatus from a JSON string +v1alpha1_responder_status_instance = V1alpha1ResponderStatus.from_json(json) +# print the JSON string representation of the object +print(V1alpha1ResponderStatus.to_json()) + +# convert the object into a dict +v1alpha1_responder_status_dict = v1alpha1_responder_status_instance.to_dict() +# create an instance of V1alpha1ResponderStatus from a dict +v1alpha1_responder_status_from_dict = V1alpha1ResponderStatus.from_dict(v1alpha1_responder_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1TargetResponder.md b/kubernetes/docs/V1alpha1TargetResponder.md new file mode 100644 index 0000000000..1387b284fb --- /dev/null +++ b/kubernetes/docs/V1alpha1TargetResponder.md @@ -0,0 +1,30 @@ +# V1alpha1TargetResponder + +TargetResponder allows you to specify the responder reacting to the Eviction. Responders should observe and communicate through the Eviction API (see .state) to help with the graceful eviction of a target (e.g. termination of a pod). + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | name allows you to identify the responder reacting to the Eviction. It must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each responder. This field is required. | +**priority** | **int** | priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last. The responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders. The minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required and immutable. | +**state** | **str** | state specifies a state that is assigned by the evictionrequest-controller. Responders should observe this state in order to navigate their lifecycle. - Inactive means that the responder should not yet process this eviction request. - Active means that the responder is either running or expected to start soon. Also, startTime has been set in the ResponderStatus by the evictionrequest-controller. An active responder should currently interact with the eviction process by updating .status.responders, where .name is the active responder name. ResponderStatus fields should be periodically updated to indicate the progress or completion of the eviction process. If .status.responders[].heartbeatTime field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. Only one responder can be active at a time. - Interrupted means that the responder has failed to start or failed to update heartbeatTime in ResponderStatus in a timely manner. - Canceled means that the responder has been canceled. In other words, there is no EvictionRequest with the same target and Eviction intent in .spec.intent. - Completed means that the responder has successfully completed and set completionTime in ResponderStatus. Please refer to the ResponderStatus in .status.responders for more details on each responder. | + +## Example + +```python +from kubernetes.client.models.v1alpha1_target_responder import V1alpha1TargetResponder + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha1TargetResponder from a JSON string +v1alpha1_target_responder_instance = V1alpha1TargetResponder.from_json(json) +# print the JSON string representation of the object +print(V1alpha1TargetResponder.to_json()) + +# convert the object into a dict +v1alpha1_target_responder_dict = v1alpha1_target_responder_instance.to_dict() +# create an instance of V1alpha1TargetResponder from a dict +v1alpha1_target_responder_from_dict = V1alpha1TargetResponder.from_dict(v1alpha1_target_responder_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha2GangSchedulingPolicy.md b/kubernetes/docs/V1alpha2GangSchedulingPolicy.md deleted file mode 100644 index 431ec3aec7..0000000000 --- a/kubernetes/docs/V1alpha2GangSchedulingPolicy.md +++ /dev/null @@ -1,28 +0,0 @@ -# V1alpha2GangSchedulingPolicy - -GangSchedulingPolicy defines the parameters for gang scheduling. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**min_count** | **int** | MinCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. | - -## Example - -```python -from kubernetes.client.models.v1alpha2_gang_scheduling_policy import V1alpha2GangSchedulingPolicy - -# TODO update the JSON string below -json = "{}" -# create an instance of V1alpha2GangSchedulingPolicy from a JSON string -v1alpha2_gang_scheduling_policy_instance = V1alpha2GangSchedulingPolicy.from_json(json) -# print the JSON string representation of the object -print(V1alpha2GangSchedulingPolicy.to_json()) - -# convert the object into a dict -v1alpha2_gang_scheduling_policy_dict = v1alpha2_gang_scheduling_policy_instance.to_dict() -# create an instance of V1alpha2GangSchedulingPolicy from a dict -v1alpha2_gang_scheduling_policy_from_dict = V1alpha2GangSchedulingPolicy.from_dict(v1alpha2_gang_scheduling_policy_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha2LeaseCandidateSpec.md b/kubernetes/docs/V1alpha2LeaseCandidateSpec.md index 5cf9be91c6..ffb1b41325 100644 --- a/kubernetes/docs/V1alpha2LeaseCandidateSpec.md +++ b/kubernetes/docs/V1alpha2LeaseCandidateSpec.md @@ -6,12 +6,12 @@ LeaseCandidateSpec is a specification of a Lease. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**binary_version** | **str** | BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required. | -**emulation_version** | **str** | EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\" | [optional] -**lease_name** | **str** | LeaseName is the name of the lease for which this candidate is contending. This field is immutable. | -**ping_time** | **datetime** | PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime. | [optional] -**renew_time** | **datetime** | RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates. | [optional] -**strategy** | **str** | Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. | +**binary_version** | **str** | binaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required. | +**emulation_version** | **str** | emulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\" | [optional] +**lease_name** | **str** | leaseName is the name of the lease for which this candidate is contending. This field is immutable. | +**ping_time** | **datetime** | pingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime. | [optional] +**renew_time** | **datetime** | renewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates. | [optional] +**strategy** | **str** | strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. | ## Example diff --git a/kubernetes/docs/V1alpha2PodGroupSchedulingPolicy.md b/kubernetes/docs/V1alpha2PodGroupSchedulingPolicy.md deleted file mode 100644 index 244552b80a..0000000000 --- a/kubernetes/docs/V1alpha2PodGroupSchedulingPolicy.md +++ /dev/null @@ -1,29 +0,0 @@ -# V1alpha2PodGroupSchedulingPolicy - -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** | [**V1alpha2GangSchedulingPolicy**](V1alpha2GangSchedulingPolicy.md) | | [optional] - -## Example - -```python -from kubernetes.client.models.v1alpha2_pod_group_scheduling_policy import V1alpha2PodGroupSchedulingPolicy - -# TODO update the JSON string below -json = "{}" -# create an instance of V1alpha2PodGroupSchedulingPolicy from a JSON string -v1alpha2_pod_group_scheduling_policy_instance = V1alpha2PodGroupSchedulingPolicy.from_json(json) -# print the JSON string representation of the object -print(V1alpha2PodGroupSchedulingPolicy.to_json()) - -# convert the object into a dict -v1alpha2_pod_group_scheduling_policy_dict = v1alpha2_pod_group_scheduling_policy_instance.to_dict() -# create an instance of V1alpha2PodGroupSchedulingPolicy from a dict -v1alpha2_pod_group_scheduling_policy_from_dict = V1alpha2PodGroupSchedulingPolicy.from_dict(v1alpha2_pod_group_scheduling_policy_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha2PodGroupSpec.md b/kubernetes/docs/V1alpha2PodGroupSpec.md deleted file mode 100644 index e8607ce547..0000000000 --- a/kubernetes/docs/V1alpha2PodGroupSpec.md +++ /dev/null @@ -1,34 +0,0 @@ -# V1alpha2PodGroupSpec - -PodGroupSpec defines the desired state of a PodGroup. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**disruption_mode** | **str** | 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] -**pod_group_template_ref** | [**V1alpha2PodGroupTemplateReference**](V1alpha2PodGroupTemplateReference.md) | | [optional] -**priority** | **int** | 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] -**priority_class_name** | **str** | 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] -**resource_claims** | [**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] -**scheduling_constraints** | [**V1alpha2PodGroupSchedulingConstraints**](V1alpha2PodGroupSchedulingConstraints.md) | | [optional] -**scheduling_policy** | [**V1alpha2PodGroupSchedulingPolicy**](V1alpha2PodGroupSchedulingPolicy.md) | | - -## Example - -```python -from kubernetes.client.models.v1alpha2_pod_group_spec import V1alpha2PodGroupSpec - -# TODO update the JSON string below -json = "{}" -# create an instance of V1alpha2PodGroupSpec from a JSON string -v1alpha2_pod_group_spec_instance = V1alpha2PodGroupSpec.from_json(json) -# print the JSON string representation of the object -print(V1alpha2PodGroupSpec.to_json()) - -# convert the object into a dict -v1alpha2_pod_group_spec_dict = v1alpha2_pod_group_spec_instance.to_dict() -# create an instance of V1alpha2PodGroupSpec from a dict -v1alpha2_pod_group_spec_from_dict = V1alpha2PodGroupSpec.from_dict(v1alpha2_pod_group_spec_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha2PodGroupStatus.md b/kubernetes/docs/V1alpha2PodGroupStatus.md deleted file mode 100644 index 4c2d4dac87..0000000000 --- a/kubernetes/docs/V1alpha2PodGroupStatus.md +++ /dev/null @@ -1,29 +0,0 @@ -# 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] -**resource_claim_statuses** | [**List[V1alpha2PodGroupResourceClaimStatus]**](V1alpha2PodGroupResourceClaimStatus.md) | Status of resource claims. | [optional] - -## Example - -```python -from kubernetes.client.models.v1alpha2_pod_group_status import V1alpha2PodGroupStatus - -# TODO update the JSON string below -json = "{}" -# create an instance of V1alpha2PodGroupStatus from a JSON string -v1alpha2_pod_group_status_instance = V1alpha2PodGroupStatus.from_json(json) -# print the JSON string representation of the object -print(V1alpha2PodGroupStatus.to_json()) - -# convert the object into a dict -v1alpha2_pod_group_status_dict = v1alpha2_pod_group_status_instance.to_dict() -# create an instance of V1alpha2PodGroupStatus from a dict -v1alpha2_pod_group_status_from_dict = V1alpha2PodGroupStatus.from_dict(v1alpha2_pod_group_status_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha2PodGroupTemplate.md b/kubernetes/docs/V1alpha2PodGroupTemplate.md deleted file mode 100644 index 4d1e534442..0000000000 --- a/kubernetes/docs/V1alpha2PodGroupTemplate.md +++ /dev/null @@ -1,34 +0,0 @@ -# V1alpha2PodGroupTemplate - -PodGroupTemplate represents a template for a set of pods with a scheduling policy. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**disruption_mode** | **str** | 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** | **str** | Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable. | -**priority** | **int** | 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] -**priority_class_name** | **str** | 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] -**resource_claims** | [**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] -**scheduling_constraints** | [**V1alpha2PodGroupSchedulingConstraints**](V1alpha2PodGroupSchedulingConstraints.md) | | [optional] -**scheduling_policy** | [**V1alpha2PodGroupSchedulingPolicy**](V1alpha2PodGroupSchedulingPolicy.md) | | - -## Example - -```python -from kubernetes.client.models.v1alpha2_pod_group_template import V1alpha2PodGroupTemplate - -# TODO update the JSON string below -json = "{}" -# create an instance of V1alpha2PodGroupTemplate from a JSON string -v1alpha2_pod_group_template_instance = V1alpha2PodGroupTemplate.from_json(json) -# print the JSON string representation of the object -print(V1alpha2PodGroupTemplate.to_json()) - -# convert the object into a dict -v1alpha2_pod_group_template_dict = v1alpha2_pod_group_template_instance.to_dict() -# create an instance of V1alpha2PodGroupTemplate from a dict -v1alpha2_pod_group_template_from_dict = V1alpha2PodGroupTemplate.from_dict(v1alpha2_pod_group_template_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha2PodGroupTemplateReference.md b/kubernetes/docs/V1alpha2PodGroupTemplateReference.md deleted file mode 100644 index 896f25f5f2..0000000000 --- a/kubernetes/docs/V1alpha2PodGroupTemplateReference.md +++ /dev/null @@ -1,28 +0,0 @@ -# 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] - -## Example - -```python -from kubernetes.client.models.v1alpha2_pod_group_template_reference import V1alpha2PodGroupTemplateReference - -# TODO update the JSON string below -json = "{}" -# create an instance of V1alpha2PodGroupTemplateReference from a JSON string -v1alpha2_pod_group_template_reference_instance = V1alpha2PodGroupTemplateReference.from_json(json) -# print the JSON string representation of the object -print(V1alpha2PodGroupTemplateReference.to_json()) - -# convert the object into a dict -v1alpha2_pod_group_template_reference_dict = v1alpha2_pod_group_template_reference_instance.to_dict() -# create an instance of V1alpha2PodGroupTemplateReference from a dict -v1alpha2_pod_group_template_reference_from_dict = V1alpha2PodGroupTemplateReference.from_dict(v1alpha2_pod_group_template_reference_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha2WorkloadPodGroupTemplateReference.md b/kubernetes/docs/V1alpha2WorkloadPodGroupTemplateReference.md deleted file mode 100644 index ee6217433b..0000000000 --- a/kubernetes/docs/V1alpha2WorkloadPodGroupTemplateReference.md +++ /dev/null @@ -1,29 +0,0 @@ -# V1alpha2WorkloadPodGroupTemplateReference - -WorkloadPodGroupTemplateReference references the PodGroupTemplate within the Workload object. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pod_group_template_name** | **str** | PodGroupTemplateName defines the PodGroupTemplate name within the Workload object. | -**workload_name** | **str** | WorkloadName defines the name of the Workload object. | - -## Example - -```python -from kubernetes.client.models.v1alpha2_workload_pod_group_template_reference import V1alpha2WorkloadPodGroupTemplateReference - -# TODO update the JSON string below -json = "{}" -# create an instance of V1alpha2WorkloadPodGroupTemplateReference from a JSON string -v1alpha2_workload_pod_group_template_reference_instance = V1alpha2WorkloadPodGroupTemplateReference.from_json(json) -# print the JSON string representation of the object -print(V1alpha2WorkloadPodGroupTemplateReference.to_json()) - -# convert the object into a dict -v1alpha2_workload_pod_group_template_reference_dict = v1alpha2_workload_pod_group_template_reference_instance.to_dict() -# create an instance of V1alpha2WorkloadPodGroupTemplateReference from a dict -v1alpha2_workload_pod_group_template_reference_from_dict = V1alpha2WorkloadPodGroupTemplateReference.from_dict(v1alpha2_workload_pod_group_template_reference_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha2WorkloadSpec.md b/kubernetes/docs/V1alpha2WorkloadSpec.md deleted file mode 100644 index 66c5bf98e3..0000000000 --- a/kubernetes/docs/V1alpha2WorkloadSpec.md +++ /dev/null @@ -1,29 +0,0 @@ -# V1alpha2WorkloadSpec - -WorkloadSpec defines the desired state of a Workload. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**controller_ref** | [**V1alpha2TypedLocalObjectReference**](V1alpha2TypedLocalObjectReference.md) | | [optional] -**pod_group_templates** | [**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. | - -## Example - -```python -from kubernetes.client.models.v1alpha2_workload_spec import V1alpha2WorkloadSpec - -# TODO update the JSON string below -json = "{}" -# create an instance of V1alpha2WorkloadSpec from a JSON string -v1alpha2_workload_spec_instance = V1alpha2WorkloadSpec.from_json(json) -# print the JSON string representation of the object -print(V1alpha2WorkloadSpec.to_json()) - -# convert the object into a dict -v1alpha2_workload_spec_dict = v1alpha2_workload_spec_instance.to_dict() -# create an instance of V1alpha2WorkloadSpec from a dict -v1alpha2_workload_spec_from_dict = V1alpha2WorkloadSpec.from_dict(v1alpha2_workload_spec_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3CompositeDisruptionMode.md b/kubernetes/docs/V1alpha3CompositeDisruptionMode.md new file mode 100644 index 0000000000..38de643f59 --- /dev/null +++ b/kubernetes/docs/V1alpha3CompositeDisruptionMode.md @@ -0,0 +1,29 @@ +# V1alpha3CompositeDisruptionMode + +CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**all** | **object** | all specifies that all children groups can only be disrupted together. | [optional] +**single** | **object** | single specifies that children groups can be disrupted independently from each other. | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha3_composite_disruption_mode import V1alpha3CompositeDisruptionMode + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3CompositeDisruptionMode from a JSON string +v1alpha3_composite_disruption_mode_instance = V1alpha3CompositeDisruptionMode.from_json(json) +# print the JSON string representation of the object +print(V1alpha3CompositeDisruptionMode.to_json()) + +# convert the object into a dict +v1alpha3_composite_disruption_mode_dict = v1alpha3_composite_disruption_mode_instance.to_dict() +# create an instance of V1alpha3CompositeDisruptionMode from a dict +v1alpha3_composite_disruption_mode_from_dict = V1alpha3CompositeDisruptionMode.from_dict(v1alpha3_composite_disruption_mode_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3CompositeGangSchedulingPolicy.md b/kubernetes/docs/V1alpha3CompositeGangSchedulingPolicy.md new file mode 100644 index 0000000000..1c72507f95 --- /dev/null +++ b/kubernetes/docs/V1alpha3CompositeGangSchedulingPolicy.md @@ -0,0 +1,28 @@ +# V1alpha3CompositeGangSchedulingPolicy + +CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_group_count** | **int** | minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. | + +## Example + +```python +from kubernetes.client.models.v1alpha3_composite_gang_scheduling_policy import V1alpha3CompositeGangSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3CompositeGangSchedulingPolicy from a JSON string +v1alpha3_composite_gang_scheduling_policy_instance = V1alpha3CompositeGangSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1alpha3CompositeGangSchedulingPolicy.to_json()) + +# convert the object into a dict +v1alpha3_composite_gang_scheduling_policy_dict = v1alpha3_composite_gang_scheduling_policy_instance.to_dict() +# create an instance of V1alpha3CompositeGangSchedulingPolicy from a dict +v1alpha3_composite_gang_scheduling_policy_from_dict = V1alpha3CompositeGangSchedulingPolicy.from_dict(v1alpha3_composite_gang_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3CompositePodGroup.md b/kubernetes/docs/V1alpha3CompositePodGroup.md new file mode 100644 index 0000000000..d5946a0811 --- /dev/null +++ b/kubernetes/docs/V1alpha3CompositePodGroup.md @@ -0,0 +1,32 @@ +# V1alpha3CompositePodGroup + +CompositePodGroup represents a runtime instance of pod groups grouped together. CompositePodGroups are created by workload controllers (LWS, JobSet, etc...) from Workload.compositePodGroupTemplates. CompositePodGroup API enablement is toggled by the CompositePodGroup feature gate. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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** | **str** | 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** | [**V1alpha3CompositePodGroupSpec**](V1alpha3CompositePodGroupSpec.md) | | +**status** | [**V1alpha3CompositePodGroupStatus**](V1alpha3CompositePodGroupStatus.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3CompositePodGroup from a JSON string +v1alpha3_composite_pod_group_instance = V1alpha3CompositePodGroup.from_json(json) +# print the JSON string representation of the object +print(V1alpha3CompositePodGroup.to_json()) + +# convert the object into a dict +v1alpha3_composite_pod_group_dict = v1alpha3_composite_pod_group_instance.to_dict() +# create an instance of V1alpha3CompositePodGroup from a dict +v1alpha3_composite_pod_group_from_dict = V1alpha3CompositePodGroup.from_dict(v1alpha3_composite_pod_group_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3CompositePodGroupList.md b/kubernetes/docs/V1alpha3CompositePodGroupList.md new file mode 100644 index 0000000000..fafc339525 --- /dev/null +++ b/kubernetes/docs/V1alpha3CompositePodGroupList.md @@ -0,0 +1,31 @@ +# V1alpha3CompositePodGroupList + +CompositePodGroupList contains a list of CompositePodGroup resources. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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[V1alpha3CompositePodGroup]**](V1alpha3CompositePodGroup.md) | Items is the list of CompositePodGroups. | +**kind** | **str** | 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] + +## Example + +```python +from kubernetes.client.models.v1alpha3_composite_pod_group_list import V1alpha3CompositePodGroupList + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3CompositePodGroupList from a JSON string +v1alpha3_composite_pod_group_list_instance = V1alpha3CompositePodGroupList.from_json(json) +# print the JSON string representation of the object +print(V1alpha3CompositePodGroupList.to_json()) + +# convert the object into a dict +v1alpha3_composite_pod_group_list_dict = v1alpha3_composite_pod_group_list_instance.to_dict() +# create an instance of V1alpha3CompositePodGroupList from a dict +v1alpha3_composite_pod_group_list_from_dict = V1alpha3CompositePodGroupList.from_dict(v1alpha3_composite_pod_group_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3CompositePodGroupSchedulingConstraints.md b/kubernetes/docs/V1alpha3CompositePodGroupSchedulingConstraints.md new file mode 100644 index 0000000000..6ad51e812f --- /dev/null +++ b/kubernetes/docs/V1alpha3CompositePodGroupSchedulingConstraints.md @@ -0,0 +1,28 @@ +# V1alpha3CompositePodGroupSchedulingConstraints + +CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**topology** | [**List[V1alpha3TopologyConstraint]**](V1alpha3TopologyConstraint.md) | topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future. | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_constraints import V1alpha3CompositePodGroupSchedulingConstraints + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3CompositePodGroupSchedulingConstraints from a JSON string +v1alpha3_composite_pod_group_scheduling_constraints_instance = V1alpha3CompositePodGroupSchedulingConstraints.from_json(json) +# print the JSON string representation of the object +print(V1alpha3CompositePodGroupSchedulingConstraints.to_json()) + +# convert the object into a dict +v1alpha3_composite_pod_group_scheduling_constraints_dict = v1alpha3_composite_pod_group_scheduling_constraints_instance.to_dict() +# create an instance of V1alpha3CompositePodGroupSchedulingConstraints from a dict +v1alpha3_composite_pod_group_scheduling_constraints_from_dict = V1alpha3CompositePodGroupSchedulingConstraints.from_dict(v1alpha3_composite_pod_group_scheduling_constraints_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3CompositePodGroupSchedulingPolicy.md b/kubernetes/docs/V1alpha3CompositePodGroupSchedulingPolicy.md new file mode 100644 index 0000000000..50542111c1 --- /dev/null +++ b/kubernetes/docs/V1alpha3CompositePodGroupSchedulingPolicy.md @@ -0,0 +1,29 @@ +# V1alpha3CompositePodGroupSchedulingPolicy + +CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**basic** | **object** | basic specifies that the groups of this composite group should be scheduled independently. This field is immutable. | [optional] +**gang** | [**V1alpha3CompositeGangSchedulingPolicy**](V1alpha3CompositeGangSchedulingPolicy.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_policy import V1alpha3CompositePodGroupSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3CompositePodGroupSchedulingPolicy from a JSON string +v1alpha3_composite_pod_group_scheduling_policy_instance = V1alpha3CompositePodGroupSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1alpha3CompositePodGroupSchedulingPolicy.to_json()) + +# convert the object into a dict +v1alpha3_composite_pod_group_scheduling_policy_dict = v1alpha3_composite_pod_group_scheduling_policy_instance.to_dict() +# create an instance of V1alpha3CompositePodGroupSchedulingPolicy from a dict +v1alpha3_composite_pod_group_scheduling_policy_from_dict = V1alpha3CompositePodGroupSchedulingPolicy.from_dict(v1alpha3_composite_pod_group_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3CompositePodGroupSpec.md b/kubernetes/docs/V1alpha3CompositePodGroupSpec.md new file mode 100644 index 0000000000..ba54b27636 --- /dev/null +++ b/kubernetes/docs/V1alpha3CompositePodGroupSpec.md @@ -0,0 +1,35 @@ +# V1alpha3CompositePodGroupSpec + +CompositePodGroupSpec defines the desired state of CompositePodGroup. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disruption_mode** | [**V1alpha3CompositeDisruptionMode**](V1alpha3CompositeDisruptionMode.md) | | [optional] +**parent_composite_pod_group_name** | **str** | parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this composite pod group. It must be a DNS name. If it's nil, then this composite pod group is a root of a workload's hierarchy. This field is immutable. | [optional] +**preemption_policy** | **str** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] +**priority** | **int** | priority is the value of priority of this composite pod group. Various system components use this field to find the priority of the composite 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. | [optional] +**priority_class_name** | **str** | priorityClassName defines the priority that should be considered when scheduling this CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. If left unspecified, it is validated and resolved similarly to the PriorityClassName field in Pods (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the composite pod group's priority will be zero). This field is immutable. | [optional] +**scheduling_constraints** | [**V1alpha3CompositePodGroupSchedulingConstraints**](V1alpha3CompositePodGroupSchedulingConstraints.md) | | [optional] +**scheduling_policy** | [**V1alpha3CompositePodGroupSchedulingPolicy**](V1alpha3CompositePodGroupSchedulingPolicy.md) | | +**workload_ref** | [**V1alpha3WorkloadReference**](V1alpha3WorkloadReference.md) | | + +## Example + +```python +from kubernetes.client.models.v1alpha3_composite_pod_group_spec import V1alpha3CompositePodGroupSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3CompositePodGroupSpec from a JSON string +v1alpha3_composite_pod_group_spec_instance = V1alpha3CompositePodGroupSpec.from_json(json) +# print the JSON string representation of the object +print(V1alpha3CompositePodGroupSpec.to_json()) + +# convert the object into a dict +v1alpha3_composite_pod_group_spec_dict = v1alpha3_composite_pod_group_spec_instance.to_dict() +# create an instance of V1alpha3CompositePodGroupSpec from a dict +v1alpha3_composite_pod_group_spec_from_dict = V1alpha3CompositePodGroupSpec.from_dict(v1alpha3_composite_pod_group_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3CompositePodGroupStatus.md b/kubernetes/docs/V1alpha3CompositePodGroupStatus.md new file mode 100644 index 0000000000..a6be0b9068 --- /dev/null +++ b/kubernetes/docs/V1alpha3CompositePodGroupStatus.md @@ -0,0 +1,28 @@ +# V1alpha3CompositePodGroupStatus + +CompositePodGroupStatus represents information about the status of a composite pod group. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**List[V1Condition]**](V1Condition.md) | conditions represent the latest observations of the CompositePodGroup's state. Known condition types: - \"CompositePodGroupInitiallyScheduled\": Indicates whether the overall scheduling requirement for the subtree under this CompositePodGroup has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently deleted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the CompositePodGroup is about to be terminated due to disruption such as preemption. Known reasons for the CompositePodGroupInitiallyScheduled condition: - \"Unschedulable\": The CompositePodGroup's subtree could not be placed due to resource constraints, affinity/anti-affinity, or topological constraints. - \"SchedulerError\": The CompositePodGroup cannot be scheduled due to some internal error that occurred during scheduling. - \"Invalid\": Set to True when kube-scheduler detects an invalid group layout during runtime validation. The `message` field details the specific layout violation (such as a detected cycle, exceeding the maximum depth of 4, or referencing multiple distinct Workloads). Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The CompositePodGroup was targeted by the scheduler's preemption loop to free up capacity for higher-priority preemptors. | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha3_composite_pod_group_status import V1alpha3CompositePodGroupStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3CompositePodGroupStatus from a JSON string +v1alpha3_composite_pod_group_status_instance = V1alpha3CompositePodGroupStatus.from_json(json) +# print the JSON string representation of the object +print(V1alpha3CompositePodGroupStatus.to_json()) + +# convert the object into a dict +v1alpha3_composite_pod_group_status_dict = v1alpha3_composite_pod_group_status_instance.to_dict() +# create an instance of V1alpha3CompositePodGroupStatus from a dict +v1alpha3_composite_pod_group_status_from_dict = V1alpha3CompositePodGroupStatus.from_dict(v1alpha3_composite_pod_group_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3CompositePodGroupTemplate.md b/kubernetes/docs/V1alpha3CompositePodGroupTemplate.md new file mode 100644 index 0000000000..107c20ff23 --- /dev/null +++ b/kubernetes/docs/V1alpha3CompositePodGroupTemplate.md @@ -0,0 +1,36 @@ +# V1alpha3CompositePodGroupTemplate + +CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**composite_pod_group_templates** | [**List[V1alpha3CompositePodGroupTemplate]**](V1alpha3CompositePodGroupTemplate.md) | compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set. | [optional] +**disruption_mode** | [**V1alpha3CompositeDisruptionMode**](V1alpha3CompositeDisruptionMode.md) | | [optional] +**name** | **str** | name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required. | +**pod_group_templates** | [**List[V1alpha3PodGroupTemplate]**](V1alpha3PodGroupTemplate.md) | podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set. | [optional] +**preemption_policy** | **str** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] +**priority** | **int** | priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite 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. | [optional] +**priority_class_name** | **str** | priorityClassName indicates the priority that should be considered when scheduling a composite 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, composite pod groups created from this template will have the priority set to zero. This field is immutable. | [optional] +**scheduling_constraints** | [**V1alpha3CompositePodGroupSchedulingConstraints**](V1alpha3CompositePodGroupSchedulingConstraints.md) | | [optional] +**scheduling_policy** | [**V1alpha3CompositePodGroupSchedulingPolicy**](V1alpha3CompositePodGroupSchedulingPolicy.md) | | + +## Example + +```python +from kubernetes.client.models.v1alpha3_composite_pod_group_template import V1alpha3CompositePodGroupTemplate + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3CompositePodGroupTemplate from a JSON string +v1alpha3_composite_pod_group_template_instance = V1alpha3CompositePodGroupTemplate.from_json(json) +# print the JSON string representation of the object +print(V1alpha3CompositePodGroupTemplate.to_json()) + +# convert the object into a dict +v1alpha3_composite_pod_group_template_dict = v1alpha3_composite_pod_group_template_instance.to_dict() +# create an instance of V1alpha3CompositePodGroupTemplate from a dict +v1alpha3_composite_pod_group_template_from_dict = V1alpha3CompositePodGroupTemplate.from_dict(v1alpha3_composite_pod_group_template_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3DisruptionMode.md b/kubernetes/docs/V1alpha3DisruptionMode.md new file mode 100644 index 0000000000..33e2d4e767 --- /dev/null +++ b/kubernetes/docs/V1alpha3DisruptionMode.md @@ -0,0 +1,29 @@ +# V1alpha3DisruptionMode + +DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**all** | **object** | all specifies that all children can only be disrupted together. | [optional] +**single** | **object** | single specifies that children can be disrupted independently from each other. | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha3_disruption_mode import V1alpha3DisruptionMode + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3DisruptionMode from a JSON string +v1alpha3_disruption_mode_instance = V1alpha3DisruptionMode.from_json(json) +# print the JSON string representation of the object +print(V1alpha3DisruptionMode.to_json()) + +# convert the object into a dict +v1alpha3_disruption_mode_dict = v1alpha3_disruption_mode_instance.to_dict() +# create an instance of V1alpha3DisruptionMode from a dict +v1alpha3_disruption_mode_from_dict = V1alpha3DisruptionMode.from_dict(v1alpha3_disruption_mode_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3GangSchedulingPolicy.md b/kubernetes/docs/V1alpha3GangSchedulingPolicy.md new file mode 100644 index 0000000000..4f8e5cfcf6 --- /dev/null +++ b/kubernetes/docs/V1alpha3GangSchedulingPolicy.md @@ -0,0 +1,28 @@ +# V1alpha3GangSchedulingPolicy + +GangSchedulingPolicy defines the parameters for gang scheduling. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_count** | **int** | minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling. Note that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles. | + +## Example + +```python +from kubernetes.client.models.v1alpha3_gang_scheduling_policy import V1alpha3GangSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3GangSchedulingPolicy from a JSON string +v1alpha3_gang_scheduling_policy_instance = V1alpha3GangSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1alpha3GangSchedulingPolicy.to_json()) + +# convert the object into a dict +v1alpha3_gang_scheduling_policy_dict = v1alpha3_gang_scheduling_policy_instance.to_dict() +# create an instance of V1alpha3GangSchedulingPolicy from a dict +v1alpha3_gang_scheduling_policy_from_dict = V1alpha3GangSchedulingPolicy.from_dict(v1alpha3_gang_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3PartitionTypeStatus.md b/kubernetes/docs/V1alpha3PartitionTypeStatus.md new file mode 100644 index 0000000000..673c2dc5df --- /dev/null +++ b/kubernetes/docs/V1alpha3PartitionTypeStatus.md @@ -0,0 +1,31 @@ +# V1alpha3PartitionTypeStatus + +PartitionTypeStatus reports allocatability for a single partition type, identified by the value of a grouping attribute. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocatable** | **int** | Allocatable is the number of additional devices of this partition type that could still be allocated given current shared-counter consumption. | +**attribute** | **str** | Attribute is the fully qualified name of the device attribute whose value groups this entry. It is the PartitionTypeAttribute declared by the devices' own slice, or the default named in the request when their slice declares none. | +**total** | **int** | Total is the number of devices of this partition type in the pool. | +**type** | **str** | Type is the partition type value (e.g. \"Full\" or \"Half\"). | + +## Example + +```python +from kubernetes.client.models.v1alpha3_partition_type_status import V1alpha3PartitionTypeStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3PartitionTypeStatus from a JSON string +v1alpha3_partition_type_status_instance = V1alpha3PartitionTypeStatus.from_json(json) +# print the JSON string representation of the object +print(V1alpha3PartitionTypeStatus.to_json()) + +# convert the object into a dict +v1alpha3_partition_type_status_dict = v1alpha3_partition_type_status_instance.to_dict() +# create an instance of V1alpha3PartitionTypeStatus from a dict +v1alpha3_partition_type_status_from_dict = V1alpha3PartitionTypeStatus.from_dict(v1alpha3_partition_type_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha2PodGroup.md b/kubernetes/docs/V1alpha3PodGroup.md similarity index 71% rename from kubernetes/docs/V1alpha2PodGroup.md rename to kubernetes/docs/V1alpha3PodGroup.md index f5682a1c9c..6eaddad4c5 100644 --- a/kubernetes/docs/V1alpha2PodGroup.md +++ b/kubernetes/docs/V1alpha3PodGroup.md @@ -1,4 +1,4 @@ -# V1alpha2PodGroup +# V1alpha3PodGroup 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. @@ -9,24 +9,24 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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] +**spec** | [**V1alpha3PodGroupSpec**](V1alpha3PodGroupSpec.md) | | +**status** | [**V1alpha3PodGroupStatus**](V1alpha3PodGroupStatus.md) | | [optional] ## Example ```python -from kubernetes.client.models.v1alpha2_pod_group import V1alpha2PodGroup +from kubernetes.client.models.v1alpha3_pod_group import V1alpha3PodGroup # TODO update the JSON string below json = "{}" -# create an instance of V1alpha2PodGroup from a JSON string -v1alpha2_pod_group_instance = V1alpha2PodGroup.from_json(json) +# create an instance of V1alpha3PodGroup from a JSON string +v1alpha3_pod_group_instance = V1alpha3PodGroup.from_json(json) # print the JSON string representation of the object -print(V1alpha2PodGroup.to_json()) +print(V1alpha3PodGroup.to_json()) # convert the object into a dict -v1alpha2_pod_group_dict = v1alpha2_pod_group_instance.to_dict() -# create an instance of V1alpha2PodGroup from a dict -v1alpha2_pod_group_from_dict = V1alpha2PodGroup.from_dict(v1alpha2_pod_group_dict) +v1alpha3_pod_group_dict = v1alpha3_pod_group_instance.to_dict() +# create an instance of V1alpha3PodGroup from a dict +v1alpha3_pod_group_from_dict = V1alpha3PodGroup.from_dict(v1alpha3_pod_group_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha2PodGroupList.md b/kubernetes/docs/V1alpha3PodGroupList.md similarity index 69% rename from kubernetes/docs/V1alpha2PodGroupList.md rename to kubernetes/docs/V1alpha3PodGroupList.md index 5b57c42d92..12359aacfd 100644 --- a/kubernetes/docs/V1alpha2PodGroupList.md +++ b/kubernetes/docs/V1alpha3PodGroupList.md @@ -1,4 +1,4 @@ -# V1alpha2PodGroupList +# V1alpha3PodGroupList PodGroupList contains a list of PodGroup resources. @@ -7,25 +7,25 @@ PodGroupList contains a list of PodGroup resources. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | 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. | +**items** | [**List[V1alpha3PodGroup]**](V1alpha3PodGroup.md) | Items is the list of PodGroups. | **kind** | **str** | 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] ## Example ```python -from kubernetes.client.models.v1alpha2_pod_group_list import V1alpha2PodGroupList +from kubernetes.client.models.v1alpha3_pod_group_list import V1alpha3PodGroupList # TODO update the JSON string below json = "{}" -# create an instance of V1alpha2PodGroupList from a JSON string -v1alpha2_pod_group_list_instance = V1alpha2PodGroupList.from_json(json) +# create an instance of V1alpha3PodGroupList from a JSON string +v1alpha3_pod_group_list_instance = V1alpha3PodGroupList.from_json(json) # print the JSON string representation of the object -print(V1alpha2PodGroupList.to_json()) +print(V1alpha3PodGroupList.to_json()) # convert the object into a dict -v1alpha2_pod_group_list_dict = v1alpha2_pod_group_list_instance.to_dict() -# create an instance of V1alpha2PodGroupList from a dict -v1alpha2_pod_group_list_from_dict = V1alpha2PodGroupList.from_dict(v1alpha2_pod_group_list_dict) +v1alpha3_pod_group_list_dict = v1alpha3_pod_group_list_instance.to_dict() +# create an instance of V1alpha3PodGroupList from a dict +v1alpha3_pod_group_list_from_dict = V1alpha3PodGroupList.from_dict(v1alpha3_pod_group_list_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha2PodGroupResourceClaim.md b/kubernetes/docs/V1alpha3PodGroupResourceClaim.md similarity index 71% rename from kubernetes/docs/V1alpha2PodGroupResourceClaim.md rename to kubernetes/docs/V1alpha3PodGroupResourceClaim.md index 325caaef55..1cfc12e305 100644 --- a/kubernetes/docs/V1alpha2PodGroupResourceClaim.md +++ b/kubernetes/docs/V1alpha3PodGroupResourceClaim.md @@ -1,4 +1,4 @@ -# V1alpha2PodGroupResourceClaim +# V1alpha3PodGroupResourceClaim 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. @@ -6,25 +6,25 @@ PodGroupResourceClaim references exactly one ResourceClaim, either directly or b Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL. | -**resource_claim_name** | **str** | 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] -**resource_claim_template_name** | **str** | 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] +**name** | **str** | name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL. | +**resource_claim_name** | **str** | 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] +**resource_claim_template_name** | **str** | 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] ## Example ```python -from kubernetes.client.models.v1alpha2_pod_group_resource_claim import V1alpha2PodGroupResourceClaim +from kubernetes.client.models.v1alpha3_pod_group_resource_claim import V1alpha3PodGroupResourceClaim # TODO update the JSON string below json = "{}" -# create an instance of V1alpha2PodGroupResourceClaim from a JSON string -v1alpha2_pod_group_resource_claim_instance = V1alpha2PodGroupResourceClaim.from_json(json) +# create an instance of V1alpha3PodGroupResourceClaim from a JSON string +v1alpha3_pod_group_resource_claim_instance = V1alpha3PodGroupResourceClaim.from_json(json) # print the JSON string representation of the object -print(V1alpha2PodGroupResourceClaim.to_json()) +print(V1alpha3PodGroupResourceClaim.to_json()) # convert the object into a dict -v1alpha2_pod_group_resource_claim_dict = v1alpha2_pod_group_resource_claim_instance.to_dict() -# create an instance of V1alpha2PodGroupResourceClaim from a dict -v1alpha2_pod_group_resource_claim_from_dict = V1alpha2PodGroupResourceClaim.from_dict(v1alpha2_pod_group_resource_claim_dict) +v1alpha3_pod_group_resource_claim_dict = v1alpha3_pod_group_resource_claim_instance.to_dict() +# create an instance of V1alpha3PodGroupResourceClaim from a dict +v1alpha3_pod_group_resource_claim_from_dict = V1alpha3PodGroupResourceClaim.from_dict(v1alpha3_pod_group_resource_claim_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha2PodGroupResourceClaimStatus.md b/kubernetes/docs/V1alpha3PodGroupResourceClaimStatus.md similarity index 61% rename from kubernetes/docs/V1alpha2PodGroupResourceClaimStatus.md rename to kubernetes/docs/V1alpha3PodGroupResourceClaimStatus.md index a55224f461..c1420488f4 100644 --- a/kubernetes/docs/V1alpha2PodGroupResourceClaimStatus.md +++ b/kubernetes/docs/V1alpha3PodGroupResourceClaimStatus.md @@ -1,4 +1,4 @@ -# V1alpha2PodGroupResourceClaimStatus +# V1alpha3PodGroupResourceClaimStatus PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. @@ -6,24 +6,24 @@ PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupRes Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | 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. | -**resource_claim_name** | **str** | 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] +**name** | **str** | 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. | +**resource_claim_name** | **str** | 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] ## Example ```python -from kubernetes.client.models.v1alpha2_pod_group_resource_claim_status import V1alpha2PodGroupResourceClaimStatus +from kubernetes.client.models.v1alpha3_pod_group_resource_claim_status import V1alpha3PodGroupResourceClaimStatus # TODO update the JSON string below json = "{}" -# create an instance of V1alpha2PodGroupResourceClaimStatus from a JSON string -v1alpha2_pod_group_resource_claim_status_instance = V1alpha2PodGroupResourceClaimStatus.from_json(json) +# create an instance of V1alpha3PodGroupResourceClaimStatus from a JSON string +v1alpha3_pod_group_resource_claim_status_instance = V1alpha3PodGroupResourceClaimStatus.from_json(json) # print the JSON string representation of the object -print(V1alpha2PodGroupResourceClaimStatus.to_json()) +print(V1alpha3PodGroupResourceClaimStatus.to_json()) # convert the object into a dict -v1alpha2_pod_group_resource_claim_status_dict = v1alpha2_pod_group_resource_claim_status_instance.to_dict() -# create an instance of V1alpha2PodGroupResourceClaimStatus from a dict -v1alpha2_pod_group_resource_claim_status_from_dict = V1alpha2PodGroupResourceClaimStatus.from_dict(v1alpha2_pod_group_resource_claim_status_dict) +v1alpha3_pod_group_resource_claim_status_dict = v1alpha3_pod_group_resource_claim_status_instance.to_dict() +# create an instance of V1alpha3PodGroupResourceClaimStatus from a dict +v1alpha3_pod_group_resource_claim_status_from_dict = V1alpha3PodGroupResourceClaimStatus.from_dict(v1alpha3_pod_group_resource_claim_status_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha2PodGroupSchedulingConstraints.md b/kubernetes/docs/V1alpha3PodGroupSchedulingConstraints.md similarity index 52% rename from kubernetes/docs/V1alpha2PodGroupSchedulingConstraints.md rename to kubernetes/docs/V1alpha3PodGroupSchedulingConstraints.md index b57b3d7d98..d2cf807f30 100644 --- a/kubernetes/docs/V1alpha2PodGroupSchedulingConstraints.md +++ b/kubernetes/docs/V1alpha3PodGroupSchedulingConstraints.md @@ -1,4 +1,4 @@ -# V1alpha2PodGroupSchedulingConstraints +# V1alpha3PodGroupSchedulingConstraints PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup. @@ -6,23 +6,23 @@ PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for 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] +**topology** | [**List[V1alpha3TopologyConstraint]**](V1alpha3TopologyConstraint.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] ## Example ```python -from kubernetes.client.models.v1alpha2_pod_group_scheduling_constraints import V1alpha2PodGroupSchedulingConstraints +from kubernetes.client.models.v1alpha3_pod_group_scheduling_constraints import V1alpha3PodGroupSchedulingConstraints # TODO update the JSON string below json = "{}" -# create an instance of V1alpha2PodGroupSchedulingConstraints from a JSON string -v1alpha2_pod_group_scheduling_constraints_instance = V1alpha2PodGroupSchedulingConstraints.from_json(json) +# create an instance of V1alpha3PodGroupSchedulingConstraints from a JSON string +v1alpha3_pod_group_scheduling_constraints_instance = V1alpha3PodGroupSchedulingConstraints.from_json(json) # print the JSON string representation of the object -print(V1alpha2PodGroupSchedulingConstraints.to_json()) +print(V1alpha3PodGroupSchedulingConstraints.to_json()) # convert the object into a dict -v1alpha2_pod_group_scheduling_constraints_dict = v1alpha2_pod_group_scheduling_constraints_instance.to_dict() -# create an instance of V1alpha2PodGroupSchedulingConstraints from a dict -v1alpha2_pod_group_scheduling_constraints_from_dict = V1alpha2PodGroupSchedulingConstraints.from_dict(v1alpha2_pod_group_scheduling_constraints_dict) +v1alpha3_pod_group_scheduling_constraints_dict = v1alpha3_pod_group_scheduling_constraints_instance.to_dict() +# create an instance of V1alpha3PodGroupSchedulingConstraints from a dict +v1alpha3_pod_group_scheduling_constraints_from_dict = V1alpha3PodGroupSchedulingConstraints.from_dict(v1alpha3_pod_group_scheduling_constraints_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3PodGroupSchedulingPolicy.md b/kubernetes/docs/V1alpha3PodGroupSchedulingPolicy.md new file mode 100644 index 0000000000..3928d78968 --- /dev/null +++ b/kubernetes/docs/V1alpha3PodGroupSchedulingPolicy.md @@ -0,0 +1,29 @@ +# V1alpha3PodGroupSchedulingPolicy + +PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**basic** | **object** | basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward. | [optional] +**gang** | [**V1alpha3GangSchedulingPolicy**](V1alpha3GangSchedulingPolicy.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha3_pod_group_scheduling_policy import V1alpha3PodGroupSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3PodGroupSchedulingPolicy from a JSON string +v1alpha3_pod_group_scheduling_policy_instance = V1alpha3PodGroupSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1alpha3PodGroupSchedulingPolicy.to_json()) + +# convert the object into a dict +v1alpha3_pod_group_scheduling_policy_dict = v1alpha3_pod_group_scheduling_policy_instance.to_dict() +# create an instance of V1alpha3PodGroupSchedulingPolicy from a dict +v1alpha3_pod_group_scheduling_policy_from_dict = V1alpha3PodGroupSchedulingPolicy.from_dict(v1alpha3_pod_group_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3PodGroupSpec.md b/kubernetes/docs/V1alpha3PodGroupSpec.md new file mode 100644 index 0000000000..29ff4eb068 --- /dev/null +++ b/kubernetes/docs/V1alpha3PodGroupSpec.md @@ -0,0 +1,36 @@ +# V1alpha3PodGroupSpec + +PodGroupSpec defines the desired state of a PodGroup. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disruption_mode** | [**V1alpha3DisruptionMode**](V1alpha3DisruptionMode.md) | | [optional] +**parent_composite_pod_group_name** | **str** | parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable. | [optional] +**preemption_policy** | **str** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] +**priority** | **int** | 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. | [optional] +**priority_class_name** | **str** | 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. | [optional] +**resource_claims** | [**List[V1alpha3PodGroupResourceClaim]**](V1alpha3PodGroupResourceClaim.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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. | [optional] +**scheduling_constraints** | [**V1alpha3PodGroupSchedulingConstraints**](V1alpha3PodGroupSchedulingConstraints.md) | | [optional] +**scheduling_policy** | [**V1alpha3PodGroupSchedulingPolicy**](V1alpha3PodGroupSchedulingPolicy.md) | | +**workload_ref** | [**V1alpha3WorkloadReference**](V1alpha3WorkloadReference.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha3_pod_group_spec import V1alpha3PodGroupSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3PodGroupSpec from a JSON string +v1alpha3_pod_group_spec_instance = V1alpha3PodGroupSpec.from_json(json) +# print the JSON string representation of the object +print(V1alpha3PodGroupSpec.to_json()) + +# convert the object into a dict +v1alpha3_pod_group_spec_dict = v1alpha3_pod_group_spec_instance.to_dict() +# create an instance of V1alpha3PodGroupSpec from a dict +v1alpha3_pod_group_spec_from_dict = V1alpha3PodGroupSpec.from_dict(v1alpha3_pod_group_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3PodGroupStatus.md b/kubernetes/docs/V1alpha3PodGroupStatus.md new file mode 100644 index 0000000000..e7bb2d815b --- /dev/null +++ b/kubernetes/docs/V1alpha3PodGroupStatus.md @@ -0,0 +1,29 @@ +# V1alpha3PodGroupStatus + +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: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupInitiallyScheduled 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] +**resource_claim_statuses** | [**List[V1alpha3PodGroupResourceClaimStatus]**](V1alpha3PodGroupResourceClaimStatus.md) | resourceClaimStatuses is status of resource claims. | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha3_pod_group_status import V1alpha3PodGroupStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3PodGroupStatus from a JSON string +v1alpha3_pod_group_status_instance = V1alpha3PodGroupStatus.from_json(json) +# print the JSON string representation of the object +print(V1alpha3PodGroupStatus.to_json()) + +# convert the object into a dict +v1alpha3_pod_group_status_dict = v1alpha3_pod_group_status_instance.to_dict() +# create an instance of V1alpha3PodGroupStatus from a dict +v1alpha3_pod_group_status_from_dict = V1alpha3PodGroupStatus.from_dict(v1alpha3_pod_group_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3PodGroupTemplate.md b/kubernetes/docs/V1alpha3PodGroupTemplate.md new file mode 100644 index 0000000000..5681f64d55 --- /dev/null +++ b/kubernetes/docs/V1alpha3PodGroupTemplate.md @@ -0,0 +1,35 @@ +# V1alpha3PodGroupTemplate + +PodGroupTemplate represents a template for a set of pods with a scheduling policy. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disruption_mode** | [**V1alpha3DisruptionMode**](V1alpha3DisruptionMode.md) | | [optional] +**name** | **str** | name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable. | +**preemption_policy** | **str** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] +**priority** | **int** | 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. The higher the value, the higher the priority. This field is immutable. | [optional] +**priority_class_name** | **str** | priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable. | [optional] +**resource_claims** | [**List[V1alpha3PodGroupResourceClaim]**](V1alpha3PodGroupResourceClaim.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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. | [optional] +**scheduling_constraints** | [**V1alpha3PodGroupSchedulingConstraints**](V1alpha3PodGroupSchedulingConstraints.md) | | [optional] +**scheduling_policy** | [**V1alpha3PodGroupSchedulingPolicy**](V1alpha3PodGroupSchedulingPolicy.md) | | + +## Example + +```python +from kubernetes.client.models.v1alpha3_pod_group_template import V1alpha3PodGroupTemplate + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3PodGroupTemplate from a JSON string +v1alpha3_pod_group_template_instance = V1alpha3PodGroupTemplate.from_json(json) +# print the JSON string representation of the object +print(V1alpha3PodGroupTemplate.to_json()) + +# convert the object into a dict +v1alpha3_pod_group_template_dict = v1alpha3_pod_group_template_instance.to_dict() +# create an instance of V1alpha3PodGroupTemplate from a dict +v1alpha3_pod_group_template_from_dict = V1alpha3PodGroupTemplate.from_dict(v1alpha3_pod_group_template_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3PoolStatus.md b/kubernetes/docs/V1alpha3PoolStatus.md index ff5a0e0ca1..27e6eed93e 100644 --- a/kubernetes/docs/V1alpha3PoolStatus.md +++ b/kubernetes/docs/V1alpha3PoolStatus.md @@ -11,8 +11,10 @@ Name | Type | Description | Notes **driver** | **str** | Driver is the DRA driver name for this pool. Must be a DNS subdomain (e.g., \"gpu.example.com\"). | **generation** | **int** | 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. | **node_name** | **str** | 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] +**partition_summary** | [**List[V1alpha3PartitionTypeStatus]**](V1alpha3PartitionTypeStatus.md) | PartitionSummary reports allocatability per (attribute, partition type) for a partitionable pool that publishes SharedCounters. Each entry names the grouping attribute it was resolved from: the PartitionTypeAttribute declared by a device's own slice, or for devices whose slice declares none, the default named in the request. A pool that mixes partitions declared under different attributes reports each independently. When no slice declares an attribute and the request names no default, the pool reports no partition summary. | [optional] **pool_name** | **str** | PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by \"/\"). | **resource_slice_count** | **int** | ResourceSliceCount is the number of ResourceSlices that make up this pool. May be unset when validationError is set. | [optional] +**shareable_summary** | [**V1alpha3ShareableSummaryStatus**](V1alpha3ShareableSummaryStatus.md) | | [optional] **total_devices** | **int** | 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] **unavailable_devices** | **int** | 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] **validation_error** | **str** | 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/V1alpha3ResourcePoolStatusRequestSpec.md b/kubernetes/docs/V1alpha3ResourcePoolStatusRequestSpec.md index bbfc3ca68a..841357abbb 100644 --- a/kubernetes/docs/V1alpha3ResourcePoolStatusRequestSpec.md +++ b/kubernetes/docs/V1alpha3ResourcePoolStatusRequestSpec.md @@ -6,6 +6,7 @@ ResourcePoolStatusRequestSpec defines the filters for the pool status request. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**default_partition_type_attribute** | **str** | DefaultPartitionTypeAttribute optionally names a device attribute (by its fully qualified name, e.g. \"gpu.example.com/profile\") to use as the default grouping attribute for partitionable devices whose slice has not declared one themselves. A slice's own PartitionTypeAttribute always takes precedence. This default applies only to devices whose slice does not declare one, so that a request can still get an accurate partitionSummary from a driver that has not been updated to declare it. When neither the slice nor this default names an attribute, a partitionable pool reports no partitionSummary. Must include the domain qualifier. | [optional] **driver** | **str** | 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** | **int** | 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] **pool_name** | **str** | 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/V1alpha3ShareableCapacityStatus.md b/kubernetes/docs/V1alpha3ShareableCapacityStatus.md new file mode 100644 index 0000000000..a1f607c4f2 --- /dev/null +++ b/kubernetes/docs/V1alpha3ShareableCapacityStatus.md @@ -0,0 +1,31 @@ +# V1alpha3ShareableCapacityStatus + +ShareableCapacityStatus reports aggregate amounts for a single shareable capacity key. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available** | **str** | Available is Total minus Consumed, never negative. | +**consumed** | **str** | Consumed is the amount drawn by current allocations. | +**name** | **str** | Name is the capacity name. | +**total** | **str** | Total is the sum of this capacity across shareable devices in the pool. | + +## Example + +```python +from kubernetes.client.models.v1alpha3_shareable_capacity_status import V1alpha3ShareableCapacityStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3ShareableCapacityStatus from a JSON string +v1alpha3_shareable_capacity_status_instance = V1alpha3ShareableCapacityStatus.from_json(json) +# print the JSON string representation of the object +print(V1alpha3ShareableCapacityStatus.to_json()) + +# convert the object into a dict +v1alpha3_shareable_capacity_status_dict = v1alpha3_shareable_capacity_status_instance.to_dict() +# create an instance of V1alpha3ShareableCapacityStatus from a dict +v1alpha3_shareable_capacity_status_from_dict = V1alpha3ShareableCapacityStatus.from_dict(v1alpha3_shareable_capacity_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3ShareableSummaryStatus.md b/kubernetes/docs/V1alpha3ShareableSummaryStatus.md new file mode 100644 index 0000000000..e119f20883 --- /dev/null +++ b/kubernetes/docs/V1alpha3ShareableSummaryStatus.md @@ -0,0 +1,30 @@ +# V1alpha3ShareableSummaryStatus + +ShareableSummaryStatus reports aggregate capacity for a pool that contains devices with AllowMultipleAllocations. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capacity** | [**List[V1alpha3ShareableCapacityStatus]**](V1alpha3ShareableCapacityStatus.md) | Capacity reports aggregate total, consumed, and available amounts per shareable capacity key across the pool. | [optional] +**fully_available_devices** | **int** | FullyAvailableDevices is the number of shareable devices with no capacity consumed. | +**partially_available_devices** | **int** | PartiallyAvailableDevices is the number of shareable devices with some but not all capacity consumed. | + +## Example + +```python +from kubernetes.client.models.v1alpha3_shareable_summary_status import V1alpha3ShareableSummaryStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3ShareableSummaryStatus from a JSON string +v1alpha3_shareable_summary_status_instance = V1alpha3ShareableSummaryStatus.from_json(json) +# print the JSON string representation of the object +print(V1alpha3ShareableSummaryStatus.to_json()) + +# convert the object into a dict +v1alpha3_shareable_summary_status_dict = v1alpha3_shareable_summary_status_instance.to_dict() +# create an instance of V1alpha3ShareableSummaryStatus from a dict +v1alpha3_shareable_summary_status_from_dict = V1alpha3ShareableSummaryStatus.from_dict(v1alpha3_shareable_summary_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha2TopologyConstraint.md b/kubernetes/docs/V1alpha3TopologyConstraint.md similarity index 57% rename from kubernetes/docs/V1alpha2TopologyConstraint.md rename to kubernetes/docs/V1alpha3TopologyConstraint.md index 7af605a289..706a57ceec 100644 --- a/kubernetes/docs/V1alpha2TopologyConstraint.md +++ b/kubernetes/docs/V1alpha3TopologyConstraint.md @@ -1,4 +1,4 @@ -# V1alpha2TopologyConstraint +# V1alpha3TopologyConstraint TopologyConstraint defines a topology constraint for a PodGroup. @@ -6,23 +6,23 @@ TopologyConstraint defines a topology constraint for a PodGroup. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**key** | **str** | 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\" | +**key** | **str** | 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\" | ## Example ```python -from kubernetes.client.models.v1alpha2_topology_constraint import V1alpha2TopologyConstraint +from kubernetes.client.models.v1alpha3_topology_constraint import V1alpha3TopologyConstraint # TODO update the JSON string below json = "{}" -# create an instance of V1alpha2TopologyConstraint from a JSON string -v1alpha2_topology_constraint_instance = V1alpha2TopologyConstraint.from_json(json) +# create an instance of V1alpha3TopologyConstraint from a JSON string +v1alpha3_topology_constraint_instance = V1alpha3TopologyConstraint.from_json(json) # print the JSON string representation of the object -print(V1alpha2TopologyConstraint.to_json()) +print(V1alpha3TopologyConstraint.to_json()) # convert the object into a dict -v1alpha2_topology_constraint_dict = v1alpha2_topology_constraint_instance.to_dict() -# create an instance of V1alpha2TopologyConstraint from a dict -v1alpha2_topology_constraint_from_dict = V1alpha2TopologyConstraint.from_dict(v1alpha2_topology_constraint_dict) +v1alpha3_topology_constraint_dict = v1alpha3_topology_constraint_instance.to_dict() +# create an instance of V1alpha3TopologyConstraint from a dict +v1alpha3_topology_constraint_from_dict = V1alpha3TopologyConstraint.from_dict(v1alpha3_topology_constraint_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha2TypedLocalObjectReference.md b/kubernetes/docs/V1alpha3TypedLocalObjectReference.md similarity index 53% rename from kubernetes/docs/V1alpha2TypedLocalObjectReference.md rename to kubernetes/docs/V1alpha3TypedLocalObjectReference.md index 4afb57a574..dabd65b808 100644 --- a/kubernetes/docs/V1alpha2TypedLocalObjectReference.md +++ b/kubernetes/docs/V1alpha3TypedLocalObjectReference.md @@ -1,4 +1,4 @@ -# V1alpha2TypedLocalObjectReference +# V1alpha3TypedLocalObjectReference TypedLocalObjectReference allows to reference typed object inside the same namespace. @@ -6,25 +6,25 @@ TypedLocalObjectReference allows to reference typed object inside the same names Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_group** | **str** | APIGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain. | [optional] -**kind** | **str** | Kind is the type of resource being referenced. It must be a path segment name. | -**name** | **str** | Name is the name of resource being referenced. It must be a path segment name. | +**api_group** | **str** | apiGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain. | [optional] +**kind** | **str** | kind is the type of resource being referenced. It must be a path segment name. | +**name** | **str** | name is the name of resource being referenced. It must be a path segment name. | ## Example ```python -from kubernetes.client.models.v1alpha2_typed_local_object_reference import V1alpha2TypedLocalObjectReference +from kubernetes.client.models.v1alpha3_typed_local_object_reference import V1alpha3TypedLocalObjectReference # TODO update the JSON string below json = "{}" -# create an instance of V1alpha2TypedLocalObjectReference from a JSON string -v1alpha2_typed_local_object_reference_instance = V1alpha2TypedLocalObjectReference.from_json(json) +# create an instance of V1alpha3TypedLocalObjectReference from a JSON string +v1alpha3_typed_local_object_reference_instance = V1alpha3TypedLocalObjectReference.from_json(json) # print the JSON string representation of the object -print(V1alpha2TypedLocalObjectReference.to_json()) +print(V1alpha3TypedLocalObjectReference.to_json()) # convert the object into a dict -v1alpha2_typed_local_object_reference_dict = v1alpha2_typed_local_object_reference_instance.to_dict() -# create an instance of V1alpha2TypedLocalObjectReference from a dict -v1alpha2_typed_local_object_reference_from_dict = V1alpha2TypedLocalObjectReference.from_dict(v1alpha2_typed_local_object_reference_dict) +v1alpha3_typed_local_object_reference_dict = v1alpha3_typed_local_object_reference_instance.to_dict() +# create an instance of V1alpha3TypedLocalObjectReference from a dict +v1alpha3_typed_local_object_reference_from_dict = V1alpha3TypedLocalObjectReference.from_dict(v1alpha3_typed_local_object_reference_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha2Workload.md b/kubernetes/docs/V1alpha3Workload.md similarity index 74% rename from kubernetes/docs/V1alpha2Workload.md rename to kubernetes/docs/V1alpha3Workload.md index b1a13c84c4..70ba0de3ed 100644 --- a/kubernetes/docs/V1alpha2Workload.md +++ b/kubernetes/docs/V1alpha3Workload.md @@ -1,4 +1,4 @@ -# V1alpha2Workload +# V1alpha3Workload 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. @@ -9,23 +9,23 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1alpha2WorkloadSpec**](V1alpha2WorkloadSpec.md) | | +**spec** | [**V1alpha3WorkloadSpec**](V1alpha3WorkloadSpec.md) | | ## Example ```python -from kubernetes.client.models.v1alpha2_workload import V1alpha2Workload +from kubernetes.client.models.v1alpha3_workload import V1alpha3Workload # TODO update the JSON string below json = "{}" -# create an instance of V1alpha2Workload from a JSON string -v1alpha2_workload_instance = V1alpha2Workload.from_json(json) +# create an instance of V1alpha3Workload from a JSON string +v1alpha3_workload_instance = V1alpha3Workload.from_json(json) # print the JSON string representation of the object -print(V1alpha2Workload.to_json()) +print(V1alpha3Workload.to_json()) # convert the object into a dict -v1alpha2_workload_dict = v1alpha2_workload_instance.to_dict() -# create an instance of V1alpha2Workload from a dict -v1alpha2_workload_from_dict = V1alpha2Workload.from_dict(v1alpha2_workload_dict) +v1alpha3_workload_dict = v1alpha3_workload_instance.to_dict() +# create an instance of V1alpha3Workload from a dict +v1alpha3_workload_from_dict = V1alpha3Workload.from_dict(v1alpha3_workload_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha2WorkloadList.md b/kubernetes/docs/V1alpha3WorkloadList.md similarity index 69% rename from kubernetes/docs/V1alpha2WorkloadList.md rename to kubernetes/docs/V1alpha3WorkloadList.md index 7773c950f0..7c43e6f688 100644 --- a/kubernetes/docs/V1alpha2WorkloadList.md +++ b/kubernetes/docs/V1alpha3WorkloadList.md @@ -1,4 +1,4 @@ -# V1alpha2WorkloadList +# V1alpha3WorkloadList WorkloadList contains a list of Workload resources. @@ -7,25 +7,25 @@ WorkloadList contains a list of Workload resources. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | 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[V1alpha2Workload]**](V1alpha2Workload.md) | Items is the list of Workloads. | +**items** | [**List[V1alpha3Workload]**](V1alpha3Workload.md) | Items is the list of Workloads. | **kind** | **str** | 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] ## Example ```python -from kubernetes.client.models.v1alpha2_workload_list import V1alpha2WorkloadList +from kubernetes.client.models.v1alpha3_workload_list import V1alpha3WorkloadList # TODO update the JSON string below json = "{}" -# create an instance of V1alpha2WorkloadList from a JSON string -v1alpha2_workload_list_instance = V1alpha2WorkloadList.from_json(json) +# create an instance of V1alpha3WorkloadList from a JSON string +v1alpha3_workload_list_instance = V1alpha3WorkloadList.from_json(json) # print the JSON string representation of the object -print(V1alpha2WorkloadList.to_json()) +print(V1alpha3WorkloadList.to_json()) # convert the object into a dict -v1alpha2_workload_list_dict = v1alpha2_workload_list_instance.to_dict() -# create an instance of V1alpha2WorkloadList from a dict -v1alpha2_workload_list_from_dict = V1alpha2WorkloadList.from_dict(v1alpha2_workload_list_dict) +v1alpha3_workload_list_dict = v1alpha3_workload_list_instance.to_dict() +# create an instance of V1alpha3WorkloadList from a dict +v1alpha3_workload_list_from_dict = V1alpha3WorkloadList.from_dict(v1alpha3_workload_list_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3WorkloadPodGroupDisruptionMode.md b/kubernetes/docs/V1alpha3WorkloadPodGroupDisruptionMode.md new file mode 100644 index 0000000000..c355689fd7 --- /dev/null +++ b/kubernetes/docs/V1alpha3WorkloadPodGroupDisruptionMode.md @@ -0,0 +1,29 @@ +# V1alpha3WorkloadPodGroupDisruptionMode + +WorkloadPodGroupDisruptionMode defines how individual pods within a group can be disrupted. Exactly one mode must be set. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**all** | **object** | all specifies that all pods in the group must be disrupted together. | [optional] +**single** | **object** | single specifies that pods can be disrupted independently from each other. | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha3_workload_pod_group_disruption_mode import V1alpha3WorkloadPodGroupDisruptionMode + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3WorkloadPodGroupDisruptionMode from a JSON string +v1alpha3_workload_pod_group_disruption_mode_instance = V1alpha3WorkloadPodGroupDisruptionMode.from_json(json) +# print the JSON string representation of the object +print(V1alpha3WorkloadPodGroupDisruptionMode.to_json()) + +# convert the object into a dict +v1alpha3_workload_pod_group_disruption_mode_dict = v1alpha3_workload_pod_group_disruption_mode_instance.to_dict() +# create an instance of V1alpha3WorkloadPodGroupDisruptionMode from a dict +v1alpha3_workload_pod_group_disruption_mode_from_dict = V1alpha3WorkloadPodGroupDisruptionMode.from_dict(v1alpha3_workload_pod_group_disruption_mode_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3WorkloadPodGroupGangSchedulingPolicy.md b/kubernetes/docs/V1alpha3WorkloadPodGroupGangSchedulingPolicy.md new file mode 100644 index 0000000000..d77486944a --- /dev/null +++ b/kubernetes/docs/V1alpha3WorkloadPodGroupGangSchedulingPolicy.md @@ -0,0 +1,28 @@ +# V1alpha3WorkloadPodGroupGangSchedulingPolicy + +WorkloadPodGroupGangSchedulingPolicy defines the parameters for gang (all-or-nothing) scheduling. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_count** | **int** | minCount is the minimum number of pods that must be scheduled at the same time for the scheduler to admit the entire group. This field is optional. If it is not specified, the controller should inject a context-specific sane default (e.g., parallelism for a Job). If set, it must be a positive integer. | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha3_workload_pod_group_gang_scheduling_policy import V1alpha3WorkloadPodGroupGangSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3WorkloadPodGroupGangSchedulingPolicy from a JSON string +v1alpha3_workload_pod_group_gang_scheduling_policy_instance = V1alpha3WorkloadPodGroupGangSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1alpha3WorkloadPodGroupGangSchedulingPolicy.to_json()) + +# convert the object into a dict +v1alpha3_workload_pod_group_gang_scheduling_policy_dict = v1alpha3_workload_pod_group_gang_scheduling_policy_instance.to_dict() +# create an instance of V1alpha3WorkloadPodGroupGangSchedulingPolicy from a dict +v1alpha3_workload_pod_group_gang_scheduling_policy_from_dict = V1alpha3WorkloadPodGroupGangSchedulingPolicy.from_dict(v1alpha3_workload_pod_group_gang_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3WorkloadPodGroupResourceClaim.md b/kubernetes/docs/V1alpha3WorkloadPodGroupResourceClaim.md new file mode 100644 index 0000000000..32d3f85c76 --- /dev/null +++ b/kubernetes/docs/V1alpha3WorkloadPodGroupResourceClaim.md @@ -0,0 +1,30 @@ +# V1alpha3WorkloadPodGroupResourceClaim + +WorkloadPodGroupResourceClaim references a dynamic resource claim that is shared across pods in the group. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | name uniquely identifies this resource claim inside the group. This field is required. It must be a DNS_LABEL. | +**resource_claim_name** | **str** | resourceClaimName is the name of a ResourceClaim object in the same namespace. This field is optional. If it is not specified, no resource claim is used. If set, it must be a DNS subdomain. | [optional] +**resource_claim_template_name** | **str** | resourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace. This field is optional. If it is not specified, no resource claim template is used. If set, it must be a DNS subdomain. | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha3_workload_pod_group_resource_claim import V1alpha3WorkloadPodGroupResourceClaim + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3WorkloadPodGroupResourceClaim from a JSON string +v1alpha3_workload_pod_group_resource_claim_instance = V1alpha3WorkloadPodGroupResourceClaim.from_json(json) +# print the JSON string representation of the object +print(V1alpha3WorkloadPodGroupResourceClaim.to_json()) + +# convert the object into a dict +v1alpha3_workload_pod_group_resource_claim_dict = v1alpha3_workload_pod_group_resource_claim_instance.to_dict() +# create an instance of V1alpha3WorkloadPodGroupResourceClaim from a dict +v1alpha3_workload_pod_group_resource_claim_from_dict = V1alpha3WorkloadPodGroupResourceClaim.from_dict(v1alpha3_workload_pod_group_resource_claim_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3WorkloadPodGroupSchedulingConstraints.md b/kubernetes/docs/V1alpha3WorkloadPodGroupSchedulingConstraints.md new file mode 100644 index 0000000000..3c99392aeb --- /dev/null +++ b/kubernetes/docs/V1alpha3WorkloadPodGroupSchedulingConstraints.md @@ -0,0 +1,28 @@ +# V1alpha3WorkloadPodGroupSchedulingConstraints + +WorkloadPodGroupSchedulingConstraints defines leaf-level scheduling constraints, such as topology. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**topology** | [**List[V1alpha3TopologyConstraint]**](V1alpha3TopologyConstraint.md) | topology specifies desired topological placements for all pods within the pod group. If unset, no topology placement is requested. | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_constraints import V1alpha3WorkloadPodGroupSchedulingConstraints + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3WorkloadPodGroupSchedulingConstraints from a JSON string +v1alpha3_workload_pod_group_scheduling_constraints_instance = V1alpha3WorkloadPodGroupSchedulingConstraints.from_json(json) +# print the JSON string representation of the object +print(V1alpha3WorkloadPodGroupSchedulingConstraints.to_json()) + +# convert the object into a dict +v1alpha3_workload_pod_group_scheduling_constraints_dict = v1alpha3_workload_pod_group_scheduling_constraints_instance.to_dict() +# create an instance of V1alpha3WorkloadPodGroupSchedulingConstraints from a dict +v1alpha3_workload_pod_group_scheduling_constraints_from_dict = V1alpha3WorkloadPodGroupSchedulingConstraints.from_dict(v1alpha3_workload_pod_group_scheduling_constraints_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3WorkloadPodGroupSchedulingPolicy.md b/kubernetes/docs/V1alpha3WorkloadPodGroupSchedulingPolicy.md new file mode 100644 index 0000000000..8e60fec000 --- /dev/null +++ b/kubernetes/docs/V1alpha3WorkloadPodGroupSchedulingPolicy.md @@ -0,0 +1,29 @@ +# V1alpha3WorkloadPodGroupSchedulingPolicy + +WorkloadPodGroupSchedulingPolicy defines the scheduling policy for a group of pods managed by a workload controller. Exactly one policy must be set. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**basic** | **object** | basic specifies that standard, pod-by-pod Kubernetes scheduling behavior should be used. | [optional] +**gang** | [**V1alpha3WorkloadPodGroupGangSchedulingPolicy**](V1alpha3WorkloadPodGroupGangSchedulingPolicy.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_policy import V1alpha3WorkloadPodGroupSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3WorkloadPodGroupSchedulingPolicy from a JSON string +v1alpha3_workload_pod_group_scheduling_policy_instance = V1alpha3WorkloadPodGroupSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1alpha3WorkloadPodGroupSchedulingPolicy.to_json()) + +# convert the object into a dict +v1alpha3_workload_pod_group_scheduling_policy_dict = v1alpha3_workload_pod_group_scheduling_policy_instance.to_dict() +# create an instance of V1alpha3WorkloadPodGroupSchedulingPolicy from a dict +v1alpha3_workload_pod_group_scheduling_policy_from_dict = V1alpha3WorkloadPodGroupSchedulingPolicy.from_dict(v1alpha3_workload_pod_group_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3WorkloadReference.md b/kubernetes/docs/V1alpha3WorkloadReference.md new file mode 100644 index 0000000000..04b072744f --- /dev/null +++ b/kubernetes/docs/V1alpha3WorkloadReference.md @@ -0,0 +1,29 @@ +# V1alpha3WorkloadReference + +WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**template_name** | **str** | templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required. | +**workload_name** | **str** | workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required. | + +## Example + +```python +from kubernetes.client.models.v1alpha3_workload_reference import V1alpha3WorkloadReference + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3WorkloadReference from a JSON string +v1alpha3_workload_reference_instance = V1alpha3WorkloadReference.from_json(json) +# print the JSON string representation of the object +print(V1alpha3WorkloadReference.to_json()) + +# convert the object into a dict +v1alpha3_workload_reference_dict = v1alpha3_workload_reference_instance.to_dict() +# create an instance of V1alpha3WorkloadReference from a dict +v1alpha3_workload_reference_from_dict = V1alpha3WorkloadReference.from_dict(v1alpha3_workload_reference_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha3WorkloadSpec.md b/kubernetes/docs/V1alpha3WorkloadSpec.md new file mode 100644 index 0000000000..b0236c97cb --- /dev/null +++ b/kubernetes/docs/V1alpha3WorkloadSpec.md @@ -0,0 +1,30 @@ +# V1alpha3WorkloadSpec + +WorkloadSpec defines the desired state of a Workload. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**composite_pod_group_templates** | [**List[V1alpha3CompositePodGroupTemplate]**](V1alpha3CompositePodGroupTemplate.md) | compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. This field is used only when the CompositePodGroup feature gate is enabled. | [optional] +**controller_ref** | [**V1alpha3TypedLocalObjectReference**](V1alpha3TypedLocalObjectReference.md) | | [optional] +**pod_group_templates** | [**List[V1alpha3PodGroupTemplate]**](V1alpha3PodGroupTemplate.md) | podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. | [optional] + +## Example + +```python +from kubernetes.client.models.v1alpha3_workload_spec import V1alpha3WorkloadSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1alpha3WorkloadSpec from a JSON string +v1alpha3_workload_spec_instance = V1alpha3WorkloadSpec.from_json(json) +# print the JSON string representation of the object +print(V1alpha3WorkloadSpec.to_json()) + +# convert the object into a dict +v1alpha3_workload_spec_dict = v1alpha3_workload_spec_instance.to_dict() +# create an instance of V1alpha3WorkloadSpec from a dict +v1alpha3_workload_spec_from_dict = V1alpha3WorkloadSpec.from_dict(v1alpha3_workload_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1BasicDevice.md b/kubernetes/docs/V1beta1BasicDevice.md index a6371bba40..15352c52a8 100644 --- a/kubernetes/docs/V1beta1BasicDevice.md +++ b/kubernetes/docs/V1beta1BasicDevice.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **binds_to_node** | **bool** | 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** | [**Dict[str, 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] **consumes_counters** | [**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] -**node_allocatable_resource_mappings** | [**Dict[str, 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] +**node_allocatable_resources** | [**Dict[str, V1beta1NodeAllocatableResource]**](V1beta1NodeAllocatableResource.md) | NodeAllocatableResources 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] **node_name** | **str** | 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] **node_selector** | [**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 a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] diff --git a/kubernetes/docs/V1beta1CELDeviceSelector.md b/kubernetes/docs/V1beta1CELDeviceSelector.md index 07d33bb218..dc4c5ddc12 100644 --- a/kubernetes/docs/V1beta1CELDeviceSelector.md +++ b/kubernetes/docs/V1beta1CELDeviceSelector.md @@ -6,7 +6,7 @@ CELDeviceSelector contains a CEL expression for selecting a device. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**expression** | **str** | 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. | +**expression** | **str** | 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. | ## Example diff --git a/kubernetes/docs/V1beta1CapacityRequestPolicyRange.md b/kubernetes/docs/V1beta1CapacityRequestPolicyRange.md index cece2a52ce..a4cdd6afa8 100644 --- a/kubernetes/docs/V1beta1CapacityRequestPolicyRange.md +++ b/kubernetes/docs/V1beta1CapacityRequestPolicyRange.md @@ -1,6 +1,6 @@ # V1beta1CapacityRequestPolicyRange -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. +CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - 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. ## Properties diff --git a/kubernetes/docs/V1beta1ClusterTrustBundle.md b/kubernetes/docs/V1beta1ClusterTrustBundle.md index 8ef741c020..c224b5cac8 100644 --- a/kubernetes/docs/V1beta1ClusterTrustBundle.md +++ b/kubernetes/docs/V1beta1ClusterTrustBundle.md @@ -1,6 +1,6 @@ # V1beta1ClusterTrustBundle -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. +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 signer, 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. ## Properties diff --git a/kubernetes/docs/V1beta1CompositeDisruptionMode.md b/kubernetes/docs/V1beta1CompositeDisruptionMode.md new file mode 100644 index 0000000000..169331eebc --- /dev/null +++ b/kubernetes/docs/V1beta1CompositeDisruptionMode.md @@ -0,0 +1,29 @@ +# V1beta1CompositeDisruptionMode + +CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**all** | **object** | all specifies that all children groups can only be disrupted together. | [optional] +**single** | **object** | single specifies that children groups can be disrupted independently from each other. | [optional] + +## Example + +```python +from kubernetes.client.models.v1beta1_composite_disruption_mode import V1beta1CompositeDisruptionMode + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CompositeDisruptionMode from a JSON string +v1beta1_composite_disruption_mode_instance = V1beta1CompositeDisruptionMode.from_json(json) +# print the JSON string representation of the object +print(V1beta1CompositeDisruptionMode.to_json()) + +# convert the object into a dict +v1beta1_composite_disruption_mode_dict = v1beta1_composite_disruption_mode_instance.to_dict() +# create an instance of V1beta1CompositeDisruptionMode from a dict +v1beta1_composite_disruption_mode_from_dict = V1beta1CompositeDisruptionMode.from_dict(v1beta1_composite_disruption_mode_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1CompositeGangSchedulingPolicy.md b/kubernetes/docs/V1beta1CompositeGangSchedulingPolicy.md new file mode 100644 index 0000000000..d9cae60822 --- /dev/null +++ b/kubernetes/docs/V1beta1CompositeGangSchedulingPolicy.md @@ -0,0 +1,28 @@ +# V1beta1CompositeGangSchedulingPolicy + +CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_group_count** | **int** | minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. | + +## Example + +```python +from kubernetes.client.models.v1beta1_composite_gang_scheduling_policy import V1beta1CompositeGangSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CompositeGangSchedulingPolicy from a JSON string +v1beta1_composite_gang_scheduling_policy_instance = V1beta1CompositeGangSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1beta1CompositeGangSchedulingPolicy.to_json()) + +# convert the object into a dict +v1beta1_composite_gang_scheduling_policy_dict = v1beta1_composite_gang_scheduling_policy_instance.to_dict() +# create an instance of V1beta1CompositeGangSchedulingPolicy from a dict +v1beta1_composite_gang_scheduling_policy_from_dict = V1beta1CompositeGangSchedulingPolicy.from_dict(v1beta1_composite_gang_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1CompositePodGroupSchedulingConstraints.md b/kubernetes/docs/V1beta1CompositePodGroupSchedulingConstraints.md new file mode 100644 index 0000000000..22c37511f0 --- /dev/null +++ b/kubernetes/docs/V1beta1CompositePodGroupSchedulingConstraints.md @@ -0,0 +1,28 @@ +# V1beta1CompositePodGroupSchedulingConstraints + +CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**topology** | [**List[V1beta1TopologyConstraint]**](V1beta1TopologyConstraint.md) | topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future. | [optional] + +## Example + +```python +from kubernetes.client.models.v1beta1_composite_pod_group_scheduling_constraints import V1beta1CompositePodGroupSchedulingConstraints + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CompositePodGroupSchedulingConstraints from a JSON string +v1beta1_composite_pod_group_scheduling_constraints_instance = V1beta1CompositePodGroupSchedulingConstraints.from_json(json) +# print the JSON string representation of the object +print(V1beta1CompositePodGroupSchedulingConstraints.to_json()) + +# convert the object into a dict +v1beta1_composite_pod_group_scheduling_constraints_dict = v1beta1_composite_pod_group_scheduling_constraints_instance.to_dict() +# create an instance of V1beta1CompositePodGroupSchedulingConstraints from a dict +v1beta1_composite_pod_group_scheduling_constraints_from_dict = V1beta1CompositePodGroupSchedulingConstraints.from_dict(v1beta1_composite_pod_group_scheduling_constraints_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1CompositePodGroupSchedulingPolicy.md b/kubernetes/docs/V1beta1CompositePodGroupSchedulingPolicy.md new file mode 100644 index 0000000000..0232baa386 --- /dev/null +++ b/kubernetes/docs/V1beta1CompositePodGroupSchedulingPolicy.md @@ -0,0 +1,29 @@ +# V1beta1CompositePodGroupSchedulingPolicy + +CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**basic** | **object** | basic specifies that the groups of this composite group should be scheduled independently. This field is immutable. | [optional] +**gang** | [**V1beta1CompositeGangSchedulingPolicy**](V1beta1CompositeGangSchedulingPolicy.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1beta1_composite_pod_group_scheduling_policy import V1beta1CompositePodGroupSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CompositePodGroupSchedulingPolicy from a JSON string +v1beta1_composite_pod_group_scheduling_policy_instance = V1beta1CompositePodGroupSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1beta1CompositePodGroupSchedulingPolicy.to_json()) + +# convert the object into a dict +v1beta1_composite_pod_group_scheduling_policy_dict = v1beta1_composite_pod_group_scheduling_policy_instance.to_dict() +# create an instance of V1beta1CompositePodGroupSchedulingPolicy from a dict +v1beta1_composite_pod_group_scheduling_policy_from_dict = V1beta1CompositePodGroupSchedulingPolicy.from_dict(v1beta1_composite_pod_group_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1CompositePodGroupTemplate.md b/kubernetes/docs/V1beta1CompositePodGroupTemplate.md new file mode 100644 index 0000000000..293a5766d1 --- /dev/null +++ b/kubernetes/docs/V1beta1CompositePodGroupTemplate.md @@ -0,0 +1,36 @@ +# V1beta1CompositePodGroupTemplate + +CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**composite_pod_group_templates** | [**List[V1beta1CompositePodGroupTemplate]**](V1beta1CompositePodGroupTemplate.md) | compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set. | [optional] +**disruption_mode** | [**V1beta1CompositeDisruptionMode**](V1beta1CompositeDisruptionMode.md) | | [optional] +**name** | **str** | name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required. | +**pod_group_templates** | [**List[V1beta1PodGroupTemplate]**](V1beta1PodGroupTemplate.md) | podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set. | [optional] +**preemption_policy** | **str** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] +**priority** | **int** | priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite 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. | [optional] +**priority_class_name** | **str** | priorityClassName indicates the priority that should be considered when scheduling a composite 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, composite pod groups created from this template will have the priority set to zero. This field is immutable. | [optional] +**scheduling_constraints** | [**V1beta1CompositePodGroupSchedulingConstraints**](V1beta1CompositePodGroupSchedulingConstraints.md) | | [optional] +**scheduling_policy** | [**V1beta1CompositePodGroupSchedulingPolicy**](V1beta1CompositePodGroupSchedulingPolicy.md) | | + +## Example + +```python +from kubernetes.client.models.v1beta1_composite_pod_group_template import V1beta1CompositePodGroupTemplate + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CompositePodGroupTemplate from a JSON string +v1beta1_composite_pod_group_template_instance = V1beta1CompositePodGroupTemplate.from_json(json) +# print the JSON string representation of the object +print(V1beta1CompositePodGroupTemplate.to_json()) + +# convert the object into a dict +v1beta1_composite_pod_group_template_dict = v1beta1_composite_pod_group_template_instance.to_dict() +# create an instance of V1beta1CompositePodGroupTemplate from a dict +v1beta1_composite_pod_group_template_from_dict = V1beta1CompositePodGroupTemplate.from_dict(v1beta1_composite_pod_group_template_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1DeviceClass.md b/kubernetes/docs/V1beta1DeviceClass.md index 3170eb281e..8055438ffc 100644 --- a/kubernetes/docs/V1beta1DeviceClass.md +++ b/kubernetes/docs/V1beta1DeviceClass.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1beta1DeviceClassSpec**](V1beta1DeviceClassSpec.md) | | +**spec** | [**V1beta1DeviceClassSpec**](V1beta1DeviceClassSpec.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1beta1DeviceClassSpec.md b/kubernetes/docs/V1beta1DeviceClassSpec.md index 6c988a5ec2..00a72b748f 100644 --- a/kubernetes/docs/V1beta1DeviceClassSpec.md +++ b/kubernetes/docs/V1beta1DeviceClassSpec.md @@ -7,7 +7,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] -**extended_resource_name** | **str** | 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] +**extended_resource_name** | **str** | 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] **selectors** | [**List[V1beta1DeviceSelector]**](V1beta1DeviceSelector.md) | Each selector must be satisfied by a device which is claimed via this class. | [optional] ## Example diff --git a/kubernetes/docs/V1beta1DeviceCounterConsumption.md b/kubernetes/docs/V1beta1DeviceCounterConsumption.md index 75f11afe95..a734f9947b 100644 --- a/kubernetes/docs/V1beta1DeviceCounterConsumption.md +++ b/kubernetes/docs/V1beta1DeviceCounterConsumption.md @@ -6,6 +6,7 @@ DeviceCounterConsumption defines a set of counters that a device will consume fr Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**compatibility_groups** | **List[str]** | CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique. | [optional] **counter_set** | **str** | CounterSet is the name of the set from which the counters defined will be consumed. | **counters** | [**Dict[str, V1beta1Counter]**](V1beta1Counter.md) | Counters defines the counters that will be consumed by the device. The maximum number of counters is 32. | diff --git a/kubernetes/docs/V1beta1DeviceDerivedAttribute.md b/kubernetes/docs/V1beta1DeviceDerivedAttribute.md new file mode 100644 index 0000000000..0234d11f49 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceDerivedAttribute.md @@ -0,0 +1,29 @@ +# V1beta1DeviceDerivedAttribute + +DeviceDerivedAttribute defines a derived attribute computed via CEL. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expression** | **str** | Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget. | +**name** | **str** | Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint. | + +## Example + +```python +from kubernetes.client.models.v1beta1_device_derived_attribute import V1beta1DeviceDerivedAttribute + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1DeviceDerivedAttribute from a JSON string +v1beta1_device_derived_attribute_instance = V1beta1DeviceDerivedAttribute.from_json(json) +# print the JSON string representation of the object +print(V1beta1DeviceDerivedAttribute.to_json()) + +# convert the object into a dict +v1beta1_device_derived_attribute_dict = v1beta1_device_derived_attribute_instance.to_dict() +# create an instance of V1beta1DeviceDerivedAttribute from a dict +v1beta1_device_derived_attribute_from_dict = V1beta1DeviceDerivedAttribute.from_dict(v1beta1_device_derived_attribute_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1DeviceRequest.md b/kubernetes/docs/V1beta1DeviceRequest.md index bec1f024ac..70caa943c3 100644 --- a/kubernetes/docs/V1beta1DeviceRequest.md +++ b/kubernetes/docs/V1beta1DeviceRequest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **allocation_mode** | **str** | 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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] **capacity** | [**V1beta1CapacityRequirements**](V1beta1CapacityRequirements.md) | | [optional] **count** | **int** | 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. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. | [optional] +**derived_attributes** | [**List[V1beta1DeviceDerivedAttribute]**](V1beta1DeviceDerivedAttribute.md) | DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. | [optional] **device_class_name** | **str** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. 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. | [optional] **first_available** | [**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** | **str** | 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. | diff --git a/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md b/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md index 966399aaa6..b30a891844 100644 --- a/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md +++ b/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **pool** | **str** | 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** | **str** | 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. | **share_id** | **str** | 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] +**skip_node_operations** | **List[str]** | SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated. | [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] ## Example diff --git a/kubernetes/docs/V1beta1DeviceSubRequest.md b/kubernetes/docs/V1beta1DeviceSubRequest.md index c1ad38252b..f903cb6a61 100644 --- a/kubernetes/docs/V1beta1DeviceSubRequest.md +++ b/kubernetes/docs/V1beta1DeviceSubRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **allocation_mode** | **str** | 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] **capacity** | [**V1beta1CapacityRequirements**](V1beta1CapacityRequirements.md) | | [optional] **count** | **int** | 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] +**derived_attributes** | [**List[V1beta1DeviceDerivedAttribute]**](V1beta1DeviceDerivedAttribute.md) | DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. | [optional] **device_class_name** | **str** | 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** | **str** | 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] diff --git a/kubernetes/docs/V1beta1DisruptionMode.md b/kubernetes/docs/V1beta1DisruptionMode.md new file mode 100644 index 0000000000..590d64d0eb --- /dev/null +++ b/kubernetes/docs/V1beta1DisruptionMode.md @@ -0,0 +1,29 @@ +# V1beta1DisruptionMode + +DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**all** | **object** | all specifies that all children can only be disrupted together. | [optional] +**single** | **object** | single specifies that children can be disrupted independently from each other. | [optional] + +## Example + +```python +from kubernetes.client.models.v1beta1_disruption_mode import V1beta1DisruptionMode + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1DisruptionMode from a JSON string +v1beta1_disruption_mode_instance = V1beta1DisruptionMode.from_json(json) +# print the JSON string representation of the object +print(V1beta1DisruptionMode.to_json()) + +# convert the object into a dict +v1beta1_disruption_mode_dict = v1beta1_disruption_mode_instance.to_dict() +# create an instance of V1beta1DisruptionMode from a dict +v1beta1_disruption_mode_from_dict = V1beta1DisruptionMode.from_dict(v1beta1_disruption_mode_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1GangSchedulingPolicy.md b/kubernetes/docs/V1beta1GangSchedulingPolicy.md new file mode 100644 index 0000000000..840c9e1129 --- /dev/null +++ b/kubernetes/docs/V1beta1GangSchedulingPolicy.md @@ -0,0 +1,28 @@ +# V1beta1GangSchedulingPolicy + +GangSchedulingPolicy defines the parameters for gang scheduling. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_count** | **int** | minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling. Note that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles. | + +## Example + +```python +from kubernetes.client.models.v1beta1_gang_scheduling_policy import V1beta1GangSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GangSchedulingPolicy from a JSON string +v1beta1_gang_scheduling_policy_instance = V1beta1GangSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1beta1GangSchedulingPolicy.to_json()) + +# convert the object into a dict +v1beta1_gang_scheduling_policy_dict = v1beta1_gang_scheduling_policy_instance.to_dict() +# create an instance of V1beta1GangSchedulingPolicy from a dict +v1beta1_gang_scheduling_policy_from_dict = V1beta1GangSchedulingPolicy.from_dict(v1beta1_gang_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1IPAddress.md b/kubernetes/docs/V1beta1IPAddress.md deleted file mode 100644 index 9b5b31719f..0000000000 --- a/kubernetes/docs/V1beta1IPAddress.md +++ /dev/null @@ -1,31 +0,0 @@ -# V1beta1IPAddress - -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 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | 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** | **str** | 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) | | - -## Example - -```python -from kubernetes.client.models.v1beta1_ip_address import V1beta1IPAddress - -# TODO update the JSON string below -json = "{}" -# create an instance of V1beta1IPAddress from a JSON string -v1beta1_ip_address_instance = V1beta1IPAddress.from_json(json) -# print the JSON string representation of the object -print(V1beta1IPAddress.to_json()) - -# convert the object into a dict -v1beta1_ip_address_dict = v1beta1_ip_address_instance.to_dict() -# create an instance of V1beta1IPAddress from a dict -v1beta1_ip_address_from_dict = V1beta1IPAddress.from_dict(v1beta1_ip_address_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1IPAddressSpec.md b/kubernetes/docs/V1beta1IPAddressSpec.md deleted file mode 100644 index 133d6911a6..0000000000 --- a/kubernetes/docs/V1beta1IPAddressSpec.md +++ /dev/null @@ -1,28 +0,0 @@ -# V1beta1IPAddressSpec - -IPAddressSpec describe the attributes in an IP Address. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**parent_ref** | [**V1beta1ParentReference**](V1beta1ParentReference.md) | | - -## Example - -```python -from kubernetes.client.models.v1beta1_ip_address_spec import V1beta1IPAddressSpec - -# TODO update the JSON string below -json = "{}" -# create an instance of V1beta1IPAddressSpec from a JSON string -v1beta1_ip_address_spec_instance = V1beta1IPAddressSpec.from_json(json) -# print the JSON string representation of the object -print(V1beta1IPAddressSpec.to_json()) - -# convert the object into a dict -v1beta1_ip_address_spec_dict = v1beta1_ip_address_spec_instance.to_dict() -# create an instance of V1beta1IPAddressSpec from a dict -v1beta1_ip_address_spec_from_dict = V1beta1IPAddressSpec.from_dict(v1beta1_ip_address_spec_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1LeaseCandidateSpec.md b/kubernetes/docs/V1beta1LeaseCandidateSpec.md index 77dddfe700..ddb57646f3 100644 --- a/kubernetes/docs/V1beta1LeaseCandidateSpec.md +++ b/kubernetes/docs/V1beta1LeaseCandidateSpec.md @@ -6,12 +6,12 @@ LeaseCandidateSpec is a specification of a Lease. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**binary_version** | **str** | BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required. | -**emulation_version** | **str** | EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\" | [optional] -**lease_name** | **str** | LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable. | -**ping_time** | **datetime** | PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime. | [optional] -**renew_time** | **datetime** | RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates. | [optional] -**strategy** | **str** | Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. | +**binary_version** | **str** | binaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required. | +**emulation_version** | **str** | emulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\" | [optional] +**lease_name** | **str** | leaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable. | +**ping_time** | **datetime** | pingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime. | [optional] +**renew_time** | **datetime** | renewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates. | [optional] +**strategy** | **str** | strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. | ## Example diff --git a/kubernetes/docs/V1beta1NodeAllocatableMapping.md b/kubernetes/docs/V1beta1NodeAllocatableMapping.md new file mode 100644 index 0000000000..abdaca882a --- /dev/null +++ b/kubernetes/docs/V1beta1NodeAllocatableMapping.md @@ -0,0 +1,30 @@ +# V1beta1NodeAllocatableMapping + +NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices or the specific capacity consumed. These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capacity_key** | **str** | 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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. | [optional] +**capacity_multiplier** | **str** | CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16. | [optional] +**device_multiplier** | **str** | DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set. | [optional] + +## Example + +```python +from kubernetes.client.models.v1beta1_node_allocatable_mapping import V1beta1NodeAllocatableMapping + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1NodeAllocatableMapping from a JSON string +v1beta1_node_allocatable_mapping_instance = V1beta1NodeAllocatableMapping.from_json(json) +# print the JSON string representation of the object +print(V1beta1NodeAllocatableMapping.to_json()) + +# convert the object into a dict +v1beta1_node_allocatable_mapping_dict = v1beta1_node_allocatable_mapping_instance.to_dict() +# create an instance of V1beta1NodeAllocatableMapping from a dict +v1beta1_node_allocatable_mapping_from_dict = V1beta1NodeAllocatableMapping.from_dict(v1beta1_node_allocatable_mapping_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1NodeAllocatableOverhead.md b/kubernetes/docs/V1beta1NodeAllocatableOverhead.md new file mode 100644 index 0000000000..9e71f09338 --- /dev/null +++ b/kubernetes/docs/V1beta1NodeAllocatableOverhead.md @@ -0,0 +1,29 @@ +# V1beta1NodeAllocatableOverhead + +NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per_container** | **str** | PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once. | [optional] +**per_pod** | **str** | PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim. | [optional] + +## Example + +```python +from kubernetes.client.models.v1beta1_node_allocatable_overhead import V1beta1NodeAllocatableOverhead + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1NodeAllocatableOverhead from a JSON string +v1beta1_node_allocatable_overhead_instance = V1beta1NodeAllocatableOverhead.from_json(json) +# print the JSON string representation of the object +print(V1beta1NodeAllocatableOverhead.to_json()) + +# convert the object into a dict +v1beta1_node_allocatable_overhead_dict = v1beta1_node_allocatable_overhead_instance.to_dict() +# create an instance of V1beta1NodeAllocatableOverhead from a dict +v1beta1_node_allocatable_overhead_from_dict = V1beta1NodeAllocatableOverhead.from_dict(v1beta1_node_allocatable_overhead_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1NodeAllocatableResource.md b/kubernetes/docs/V1beta1NodeAllocatableResource.md new file mode 100644 index 0000000000..39d74d1fbe --- /dev/null +++ b/kubernetes/docs/V1beta1NodeAllocatableResource.md @@ -0,0 +1,29 @@ +# V1beta1NodeAllocatableResource + +NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mapping** | [**V1beta1NodeAllocatableMapping**](V1beta1NodeAllocatableMapping.md) | | [optional] +**overhead** | [**V1beta1NodeAllocatableOverhead**](V1beta1NodeAllocatableOverhead.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1beta1_node_allocatable_resource import V1beta1NodeAllocatableResource + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1NodeAllocatableResource from a JSON string +v1beta1_node_allocatable_resource_instance = V1beta1NodeAllocatableResource.from_json(json) +# print the JSON string representation of the object +print(V1beta1NodeAllocatableResource.to_json()) + +# convert the object into a dict +v1beta1_node_allocatable_resource_dict = v1beta1_node_allocatable_resource_instance.to_dict() +# create an instance of V1beta1NodeAllocatableResource from a dict +v1beta1_node_allocatable_resource_from_dict = V1beta1NodeAllocatableResource.from_dict(v1beta1_node_allocatable_resource_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1NodeAllocatableResourceMapping.md b/kubernetes/docs/V1beta1NodeAllocatableResourceMapping.md deleted file mode 100644 index 1f2c5eb11e..0000000000 --- a/kubernetes/docs/V1beta1NodeAllocatableResourceMapping.md +++ /dev/null @@ -1,29 +0,0 @@ -# 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 ------------- | ------------- | ------------- | ------------- -**allocation_multiplier** | **str** | 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] -**capacity_key** | **str** | 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] - -## Example - -```python -from kubernetes.client.models.v1beta1_node_allocatable_resource_mapping import V1beta1NodeAllocatableResourceMapping - -# TODO update the JSON string below -json = "{}" -# create an instance of V1beta1NodeAllocatableResourceMapping from a JSON string -v1beta1_node_allocatable_resource_mapping_instance = V1beta1NodeAllocatableResourceMapping.from_json(json) -# print the JSON string representation of the object -print(V1beta1NodeAllocatableResourceMapping.to_json()) - -# convert the object into a dict -v1beta1_node_allocatable_resource_mapping_dict = v1beta1_node_allocatable_resource_mapping_instance.to_dict() -# create an instance of V1beta1NodeAllocatableResourceMapping from a dict -v1beta1_node_allocatable_resource_mapping_from_dict = V1beta1NodeAllocatableResourceMapping.from_dict(v1beta1_node_allocatable_resource_mapping_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1ParentReference.md b/kubernetes/docs/V1beta1ParentReference.md deleted file mode 100644 index 7e9ab58ca0..0000000000 --- a/kubernetes/docs/V1beta1ParentReference.md +++ /dev/null @@ -1,31 +0,0 @@ -# V1beta1ParentReference - -ParentReference describes a reference to a parent object. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group** | **str** | Group is the group of the object being referenced. | [optional] -**name** | **str** | Name is the name of the object being referenced. | -**namespace** | **str** | Namespace is the namespace of the object being referenced. | [optional] -**resource** | **str** | Resource is the resource of the object being referenced. | - -## Example - -```python -from kubernetes.client.models.v1beta1_parent_reference import V1beta1ParentReference - -# TODO update the JSON string below -json = "{}" -# create an instance of V1beta1ParentReference from a JSON string -v1beta1_parent_reference_instance = V1beta1ParentReference.from_json(json) -# print the JSON string representation of the object -print(V1beta1ParentReference.to_json()) - -# convert the object into a dict -v1beta1_parent_reference_dict = v1beta1_parent_reference_instance.to_dict() -# create an instance of V1beta1ParentReference from a dict -v1beta1_parent_reference_from_dict = V1beta1ParentReference.from_dict(v1beta1_parent_reference_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/aio/docs/V1beta1ServiceCIDR.md b/kubernetes/docs/V1beta1PodGroup.md similarity index 59% rename from kubernetes/aio/docs/V1beta1ServiceCIDR.md rename to kubernetes/docs/V1beta1PodGroup.md index ce0704fa73..6b8103050b 100644 --- a/kubernetes/aio/docs/V1beta1ServiceCIDR.md +++ b/kubernetes/docs/V1beta1PodGroup.md @@ -1,6 +1,6 @@ -# V1beta1ServiceCIDR +# V1beta1PodGroup -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. +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 @@ -9,24 +9,24 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1beta1ServiceCIDRSpec**](V1beta1ServiceCIDRSpec.md) | | [optional] -**status** | [**V1beta1ServiceCIDRStatus**](V1beta1ServiceCIDRStatus.md) | | [optional] +**spec** | [**V1beta1PodGroupSpec**](V1beta1PodGroupSpec.md) | | +**status** | [**V1beta1PodGroupStatus**](V1beta1PodGroupStatus.md) | | [optional] ## Example ```python -from kubernetes.aio.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR +from kubernetes.client.models.v1beta1_pod_group import V1beta1PodGroup # TODO update the JSON string below json = "{}" -# create an instance of V1beta1ServiceCIDR from a JSON string -v1beta1_service_cidr_instance = V1beta1ServiceCIDR.from_json(json) +# create an instance of V1beta1PodGroup from a JSON string +v1beta1_pod_group_instance = V1beta1PodGroup.from_json(json) # print the JSON string representation of the object -print(V1beta1ServiceCIDR.to_json()) +print(V1beta1PodGroup.to_json()) # convert the object into a dict -v1beta1_service_cidr_dict = v1beta1_service_cidr_instance.to_dict() -# create an instance of V1beta1ServiceCIDR from a dict -v1beta1_service_cidr_from_dict = V1beta1ServiceCIDR.from_dict(v1beta1_service_cidr_dict) +v1beta1_pod_group_dict = v1beta1_pod_group_instance.to_dict() +# create an instance of V1beta1PodGroup from a dict +v1beta1_pod_group_from_dict = V1beta1PodGroup.from_dict(v1beta1_pod_group_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1PodGroupList.md b/kubernetes/docs/V1beta1PodGroupList.md new file mode 100644 index 0000000000..d187d2fa9c --- /dev/null +++ b/kubernetes/docs/V1beta1PodGroupList.md @@ -0,0 +1,31 @@ +# V1beta1PodGroupList + +PodGroupList contains a list of PodGroup resources. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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[V1beta1PodGroup]**](V1beta1PodGroup.md) | Items is the list of PodGroups. | +**kind** | **str** | 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] + +## Example + +```python +from kubernetes.client.models.v1beta1_pod_group_list import V1beta1PodGroupList + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PodGroupList from a JSON string +v1beta1_pod_group_list_instance = V1beta1PodGroupList.from_json(json) +# print the JSON string representation of the object +print(V1beta1PodGroupList.to_json()) + +# convert the object into a dict +v1beta1_pod_group_list_dict = v1beta1_pod_group_list_instance.to_dict() +# create an instance of V1beta1PodGroupList from a dict +v1beta1_pod_group_list_from_dict = V1beta1PodGroupList.from_dict(v1beta1_pod_group_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1PodGroupResourceClaim.md b/kubernetes/docs/V1beta1PodGroupResourceClaim.md new file mode 100644 index 0000000000..0d489284fe --- /dev/null +++ b/kubernetes/docs/V1beta1PodGroupResourceClaim.md @@ -0,0 +1,30 @@ +# V1beta1PodGroupResourceClaim + +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** | **str** | name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL. | +**resource_claim_name** | **str** | 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] +**resource_claim_template_name** | **str** | 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] + +## Example + +```python +from kubernetes.client.models.v1beta1_pod_group_resource_claim import V1beta1PodGroupResourceClaim + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PodGroupResourceClaim from a JSON string +v1beta1_pod_group_resource_claim_instance = V1beta1PodGroupResourceClaim.from_json(json) +# print the JSON string representation of the object +print(V1beta1PodGroupResourceClaim.to_json()) + +# convert the object into a dict +v1beta1_pod_group_resource_claim_dict = v1beta1_pod_group_resource_claim_instance.to_dict() +# create an instance of V1beta1PodGroupResourceClaim from a dict +v1beta1_pod_group_resource_claim_from_dict = V1beta1PodGroupResourceClaim.from_dict(v1beta1_pod_group_resource_claim_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1PodGroupResourceClaimStatus.md b/kubernetes/docs/V1beta1PodGroupResourceClaimStatus.md new file mode 100644 index 0000000000..55b3ed5201 --- /dev/null +++ b/kubernetes/docs/V1beta1PodGroupResourceClaimStatus.md @@ -0,0 +1,29 @@ +# V1beta1PodGroupResourceClaimStatus + +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** | **str** | 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. | +**resource_claim_name** | **str** | 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] + +## Example + +```python +from kubernetes.client.models.v1beta1_pod_group_resource_claim_status import V1beta1PodGroupResourceClaimStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PodGroupResourceClaimStatus from a JSON string +v1beta1_pod_group_resource_claim_status_instance = V1beta1PodGroupResourceClaimStatus.from_json(json) +# print the JSON string representation of the object +print(V1beta1PodGroupResourceClaimStatus.to_json()) + +# convert the object into a dict +v1beta1_pod_group_resource_claim_status_dict = v1beta1_pod_group_resource_claim_status_instance.to_dict() +# create an instance of V1beta1PodGroupResourceClaimStatus from a dict +v1beta1_pod_group_resource_claim_status_from_dict = V1beta1PodGroupResourceClaimStatus.from_dict(v1beta1_pod_group_resource_claim_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1PodGroupSchedulingConstraints.md b/kubernetes/docs/V1beta1PodGroupSchedulingConstraints.md new file mode 100644 index 0000000000..671d722428 --- /dev/null +++ b/kubernetes/docs/V1beta1PodGroupSchedulingConstraints.md @@ -0,0 +1,28 @@ +# V1beta1PodGroupSchedulingConstraints + +PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**topology** | [**List[V1beta1TopologyConstraint]**](V1beta1TopologyConstraint.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] + +## Example + +```python +from kubernetes.client.models.v1beta1_pod_group_scheduling_constraints import V1beta1PodGroupSchedulingConstraints + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PodGroupSchedulingConstraints from a JSON string +v1beta1_pod_group_scheduling_constraints_instance = V1beta1PodGroupSchedulingConstraints.from_json(json) +# print the JSON string representation of the object +print(V1beta1PodGroupSchedulingConstraints.to_json()) + +# convert the object into a dict +v1beta1_pod_group_scheduling_constraints_dict = v1beta1_pod_group_scheduling_constraints_instance.to_dict() +# create an instance of V1beta1PodGroupSchedulingConstraints from a dict +v1beta1_pod_group_scheduling_constraints_from_dict = V1beta1PodGroupSchedulingConstraints.from_dict(v1beta1_pod_group_scheduling_constraints_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1PodGroupSchedulingPolicy.md b/kubernetes/docs/V1beta1PodGroupSchedulingPolicy.md new file mode 100644 index 0000000000..4dd5094566 --- /dev/null +++ b/kubernetes/docs/V1beta1PodGroupSchedulingPolicy.md @@ -0,0 +1,29 @@ +# V1beta1PodGroupSchedulingPolicy + +PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**basic** | **object** | basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward. | [optional] +**gang** | [**V1beta1GangSchedulingPolicy**](V1beta1GangSchedulingPolicy.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1beta1_pod_group_scheduling_policy import V1beta1PodGroupSchedulingPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PodGroupSchedulingPolicy from a JSON string +v1beta1_pod_group_scheduling_policy_instance = V1beta1PodGroupSchedulingPolicy.from_json(json) +# print the JSON string representation of the object +print(V1beta1PodGroupSchedulingPolicy.to_json()) + +# convert the object into a dict +v1beta1_pod_group_scheduling_policy_dict = v1beta1_pod_group_scheduling_policy_instance.to_dict() +# create an instance of V1beta1PodGroupSchedulingPolicy from a dict +v1beta1_pod_group_scheduling_policy_from_dict = V1beta1PodGroupSchedulingPolicy.from_dict(v1beta1_pod_group_scheduling_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1PodGroupSpec.md b/kubernetes/docs/V1beta1PodGroupSpec.md new file mode 100644 index 0000000000..ac2261ee40 --- /dev/null +++ b/kubernetes/docs/V1beta1PodGroupSpec.md @@ -0,0 +1,36 @@ +# V1beta1PodGroupSpec + +PodGroupSpec defines the desired state of a PodGroup. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disruption_mode** | [**V1beta1DisruptionMode**](V1beta1DisruptionMode.md) | | [optional] +**parent_composite_pod_group_name** | **str** | parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable. | [optional] +**preemption_policy** | **str** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] +**priority** | **int** | 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. | [optional] +**priority_class_name** | **str** | 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. | [optional] +**resource_claims** | [**List[V1beta1PodGroupResourceClaim]**](V1beta1PodGroupResourceClaim.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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. | [optional] +**scheduling_constraints** | [**V1beta1PodGroupSchedulingConstraints**](V1beta1PodGroupSchedulingConstraints.md) | | [optional] +**scheduling_policy** | [**V1beta1PodGroupSchedulingPolicy**](V1beta1PodGroupSchedulingPolicy.md) | | +**workload_ref** | [**V1beta1WorkloadReference**](V1beta1WorkloadReference.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1beta1_pod_group_spec import V1beta1PodGroupSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PodGroupSpec from a JSON string +v1beta1_pod_group_spec_instance = V1beta1PodGroupSpec.from_json(json) +# print the JSON string representation of the object +print(V1beta1PodGroupSpec.to_json()) + +# convert the object into a dict +v1beta1_pod_group_spec_dict = v1beta1_pod_group_spec_instance.to_dict() +# create an instance of V1beta1PodGroupSpec from a dict +v1beta1_pod_group_spec_from_dict = V1beta1PodGroupSpec.from_dict(v1beta1_pod_group_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1PodGroupStatus.md b/kubernetes/docs/V1beta1PodGroupStatus.md new file mode 100644 index 0000000000..a925f89652 --- /dev/null +++ b/kubernetes/docs/V1beta1PodGroupStatus.md @@ -0,0 +1,29 @@ +# V1beta1PodGroupStatus + +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: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupInitiallyScheduled 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] +**resource_claim_statuses** | [**List[V1beta1PodGroupResourceClaimStatus]**](V1beta1PodGroupResourceClaimStatus.md) | resourceClaimStatuses is status of resource claims. | [optional] + +## Example + +```python +from kubernetes.client.models.v1beta1_pod_group_status import V1beta1PodGroupStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PodGroupStatus from a JSON string +v1beta1_pod_group_status_instance = V1beta1PodGroupStatus.from_json(json) +# print the JSON string representation of the object +print(V1beta1PodGroupStatus.to_json()) + +# convert the object into a dict +v1beta1_pod_group_status_dict = v1beta1_pod_group_status_instance.to_dict() +# create an instance of V1beta1PodGroupStatus from a dict +v1beta1_pod_group_status_from_dict = V1beta1PodGroupStatus.from_dict(v1beta1_pod_group_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1PodGroupTemplate.md b/kubernetes/docs/V1beta1PodGroupTemplate.md new file mode 100644 index 0000000000..fb83e7bf76 --- /dev/null +++ b/kubernetes/docs/V1beta1PodGroupTemplate.md @@ -0,0 +1,35 @@ +# V1beta1PodGroupTemplate + +PodGroupTemplate represents a template for a set of pods with a scheduling policy. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disruption_mode** | [**V1beta1DisruptionMode**](V1beta1DisruptionMode.md) | | [optional] +**name** | **str** | name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable. | +**preemption_policy** | **str** | preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled. | [optional] +**priority** | **int** | 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. The higher the value, the higher the priority. This field is immutable. | [optional] +**priority_class_name** | **str** | priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable. | [optional] +**resource_claims** | [**List[V1beta1PodGroupResourceClaim]**](V1beta1PodGroupResourceClaim.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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. | [optional] +**scheduling_constraints** | [**V1beta1PodGroupSchedulingConstraints**](V1beta1PodGroupSchedulingConstraints.md) | | [optional] +**scheduling_policy** | [**V1beta1PodGroupSchedulingPolicy**](V1beta1PodGroupSchedulingPolicy.md) | | + +## Example + +```python +from kubernetes.client.models.v1beta1_pod_group_template import V1beta1PodGroupTemplate + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PodGroupTemplate from a JSON string +v1beta1_pod_group_template_instance = V1beta1PodGroupTemplate.from_json(json) +# print the JSON string representation of the object +print(V1beta1PodGroupTemplate.to_json()) + +# convert the object into a dict +v1beta1_pod_group_template_dict = v1beta1_pod_group_template_instance.to_dict() +# create an instance of V1beta1PodGroupTemplate from a dict +v1beta1_pod_group_template_from_dict = V1beta1PodGroupTemplate.from_dict(v1beta1_pod_group_template_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1ResourceClaim.md b/kubernetes/docs/V1beta1ResourceClaim.md index a3cb9e8dca..6b1d20e7d4 100644 --- a/kubernetes/docs/V1beta1ResourceClaim.md +++ b/kubernetes/docs/V1beta1ResourceClaim.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1beta1ResourceClaimSpec**](V1beta1ResourceClaimSpec.md) | | +**spec** | [**V1beta1ResourceClaimSpec**](V1beta1ResourceClaimSpec.md) | | [optional] **status** | [**V1beta1ResourceClaimStatus**](V1beta1ResourceClaimStatus.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1beta1ResourceClaimTemplate.md b/kubernetes/docs/V1beta1ResourceClaimTemplate.md index e6712c3ce8..c3589132e4 100644 --- a/kubernetes/docs/V1beta1ResourceClaimTemplate.md +++ b/kubernetes/docs/V1beta1ResourceClaimTemplate.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1beta1ResourceClaimTemplateSpec**](V1beta1ResourceClaimTemplateSpec.md) | | +**spec** | [**V1beta1ResourceClaimTemplateSpec**](V1beta1ResourceClaimTemplateSpec.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1beta1ResourceClaimTemplateSpec.md b/kubernetes/docs/V1beta1ResourceClaimTemplateSpec.md index d15fd70687..b3edd46eb2 100644 --- a/kubernetes/docs/V1beta1ResourceClaimTemplateSpec.md +++ b/kubernetes/docs/V1beta1ResourceClaimTemplateSpec.md @@ -7,7 +7,7 @@ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1ResourceClaimSpec**](V1beta1ResourceClaimSpec.md) | | +**spec** | [**V1beta1ResourceClaimSpec**](V1beta1ResourceClaimSpec.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1beta1ResourcePool.md b/kubernetes/docs/V1beta1ResourcePool.md index 89e1b7e3d4..b199bbb2bc 100644 --- a/kubernetes/docs/V1beta1ResourcePool.md +++ b/kubernetes/docs/V1beta1ResourcePool.md @@ -7,7 +7,7 @@ ResourcePool describes the pool that ResourceSlices belong to. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **generation** | **int** | 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. | -**name** | **str** | 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. | +**name** | **str** | Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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. | **resource_slice_count** | **int** | 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. | ## Example diff --git a/kubernetes/docs/V1beta1ResourceSliceSpec.md b/kubernetes/docs/V1beta1ResourceSliceSpec.md index 1ea812d332..a68b466c20 100644 --- a/kubernetes/docs/V1beta1ResourceSliceSpec.md +++ b/kubernetes/docs/V1beta1ResourceSliceSpec.md @@ -11,9 +11,11 @@ Name | Type | Description | Notes **driver** | **str** | 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. | **node_name** | **str** | 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] **node_selector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] +**partition_type_attribute** | **str** | PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost. | [optional] **per_device_node_selection** | **bool** | 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] **pool** | [**V1beta1ResourcePool**](V1beta1ResourcePool.md) | | **shared_counters** | [**List[V1beta1CounterSet]**](V1beta1CounterSet.md) | 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] +**skip_node_operations** | **List[str]** | SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values. | [optional] ## Example diff --git a/kubernetes/docs/V1beta1ServiceCIDRSpec.md b/kubernetes/docs/V1beta1ServiceCIDRSpec.md deleted file mode 100644 index d45674ba41..0000000000 --- a/kubernetes/docs/V1beta1ServiceCIDRSpec.md +++ /dev/null @@ -1,28 +0,0 @@ -# V1beta1ServiceCIDRSpec - -ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cidrs** | **List[str]** | CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable. | [optional] - -## Example - -```python -from kubernetes.client.models.v1beta1_service_cidr_spec import V1beta1ServiceCIDRSpec - -# TODO update the JSON string below -json = "{}" -# create an instance of V1beta1ServiceCIDRSpec from a JSON string -v1beta1_service_cidr_spec_instance = V1beta1ServiceCIDRSpec.from_json(json) -# print the JSON string representation of the object -print(V1beta1ServiceCIDRSpec.to_json()) - -# convert the object into a dict -v1beta1_service_cidr_spec_dict = v1beta1_service_cidr_spec_instance.to_dict() -# create an instance of V1beta1ServiceCIDRSpec from a dict -v1beta1_service_cidr_spec_from_dict = V1beta1ServiceCIDRSpec.from_dict(v1beta1_service_cidr_spec_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1ServiceCIDRStatus.md b/kubernetes/docs/V1beta1ServiceCIDRStatus.md deleted file mode 100644 index 4130460849..0000000000 --- a/kubernetes/docs/V1beta1ServiceCIDRStatus.md +++ /dev/null @@ -1,28 +0,0 @@ -# V1beta1ServiceCIDRStatus - -ServiceCIDRStatus describes the current state of the ServiceCIDR. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List[V1Condition]**](V1Condition.md) | conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state | [optional] - -## Example - -```python -from kubernetes.client.models.v1beta1_service_cidr_status import V1beta1ServiceCIDRStatus - -# TODO update the JSON string below -json = "{}" -# create an instance of V1beta1ServiceCIDRStatus from a JSON string -v1beta1_service_cidr_status_instance = V1beta1ServiceCIDRStatus.from_json(json) -# print the JSON string representation of the object -print(V1beta1ServiceCIDRStatus.to_json()) - -# convert the object into a dict -v1beta1_service_cidr_status_dict = v1beta1_service_cidr_status_instance.to_dict() -# create an instance of V1beta1ServiceCIDRStatus from a dict -v1beta1_service_cidr_status_from_dict = V1beta1ServiceCIDRStatus.from_dict(v1beta1_service_cidr_status_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1TopologyConstraint.md b/kubernetes/docs/V1beta1TopologyConstraint.md new file mode 100644 index 0000000000..e6fb283156 --- /dev/null +++ b/kubernetes/docs/V1beta1TopologyConstraint.md @@ -0,0 +1,28 @@ +# V1beta1TopologyConstraint + +TopologyConstraint defines a topology constraint for a PodGroup. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **str** | 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\" | + +## Example + +```python +from kubernetes.client.models.v1beta1_topology_constraint import V1beta1TopologyConstraint + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1TopologyConstraint from a JSON string +v1beta1_topology_constraint_instance = V1beta1TopologyConstraint.from_json(json) +# print the JSON string representation of the object +print(V1beta1TopologyConstraint.to_json()) + +# convert the object into a dict +v1beta1_topology_constraint_dict = v1beta1_topology_constraint_instance.to_dict() +# create an instance of V1beta1TopologyConstraint from a dict +v1beta1_topology_constraint_from_dict = V1beta1TopologyConstraint.from_dict(v1beta1_topology_constraint_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1TypedLocalObjectReference.md b/kubernetes/docs/V1beta1TypedLocalObjectReference.md new file mode 100644 index 0000000000..91b347b86a --- /dev/null +++ b/kubernetes/docs/V1beta1TypedLocalObjectReference.md @@ -0,0 +1,30 @@ +# V1beta1TypedLocalObjectReference + +TypedLocalObjectReference allows to reference typed object inside the same namespace. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_group** | **str** | apiGroup is the group for the resource being referenced. If apiGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting apiGroup is required. It must be a DNS subdomain. | [optional] +**kind** | **str** | kind is the type of resource being referenced. It must be a path segment name. | +**name** | **str** | name is the name of resource being referenced. It must be a path segment name. | + +## Example + +```python +from kubernetes.client.models.v1beta1_typed_local_object_reference import V1beta1TypedLocalObjectReference + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1TypedLocalObjectReference from a JSON string +v1beta1_typed_local_object_reference_instance = V1beta1TypedLocalObjectReference.from_json(json) +# print the JSON string representation of the object +print(V1beta1TypedLocalObjectReference.to_json()) + +# convert the object into a dict +v1beta1_typed_local_object_reference_dict = v1beta1_typed_local_object_reference_instance.to_dict() +# create an instance of V1beta1TypedLocalObjectReference from a dict +v1beta1_typed_local_object_reference_from_dict = V1beta1TypedLocalObjectReference.from_dict(v1beta1_typed_local_object_reference_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1VolumeAttributesClass.md b/kubernetes/docs/V1beta1VolumeAttributesClass.md deleted file mode 100644 index 9429910a07..0000000000 --- a/kubernetes/docs/V1beta1VolumeAttributesClass.md +++ /dev/null @@ -1,32 +0,0 @@ -# V1beta1VolumeAttributesClass - -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. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | 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] -**driver_name** | **str** | Name of the CSI driver This field is immutable. | -**kind** | **str** | 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] -**parameters** | **Dict[str, str]** | parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field. | [optional] - -## Example - -```python -from kubernetes.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass - -# TODO update the JSON string below -json = "{}" -# create an instance of V1beta1VolumeAttributesClass from a JSON string -v1beta1_volume_attributes_class_instance = V1beta1VolumeAttributesClass.from_json(json) -# print the JSON string representation of the object -print(V1beta1VolumeAttributesClass.to_json()) - -# convert the object into a dict -v1beta1_volume_attributes_class_dict = v1beta1_volume_attributes_class_instance.to_dict() -# create an instance of V1beta1VolumeAttributesClass from a dict -v1beta1_volume_attributes_class_from_dict = V1beta1VolumeAttributesClass.from_dict(v1beta1_volume_attributes_class_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1VolumeAttributesClassList.md b/kubernetes/docs/V1beta1VolumeAttributesClassList.md deleted file mode 100644 index 0951ededea..0000000000 --- a/kubernetes/docs/V1beta1VolumeAttributesClassList.md +++ /dev/null @@ -1,31 +0,0 @@ -# V1beta1VolumeAttributesClassList - -VolumeAttributesClassList is a collection of VolumeAttributesClass objects. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | 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[V1beta1VolumeAttributesClass]**](V1beta1VolumeAttributesClass.md) | items is the list of VolumeAttributesClass objects. | -**kind** | **str** | 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] - -## Example - -```python -from kubernetes.client.models.v1beta1_volume_attributes_class_list import V1beta1VolumeAttributesClassList - -# TODO update the JSON string below -json = "{}" -# create an instance of V1beta1VolumeAttributesClassList from a JSON string -v1beta1_volume_attributes_class_list_instance = V1beta1VolumeAttributesClassList.from_json(json) -# print the JSON string representation of the object -print(V1beta1VolumeAttributesClassList.to_json()) - -# convert the object into a dict -v1beta1_volume_attributes_class_list_dict = v1beta1_volume_attributes_class_list_instance.to_dict() -# create an instance of V1beta1VolumeAttributesClassList from a dict -v1beta1_volume_attributes_class_list_from_dict = V1beta1VolumeAttributesClassList.from_dict(v1beta1_volume_attributes_class_list_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1Workload.md b/kubernetes/docs/V1beta1Workload.md new file mode 100644 index 0000000000..663c462697 --- /dev/null +++ b/kubernetes/docs/V1beta1Workload.md @@ -0,0 +1,31 @@ +# V1beta1Workload + +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 + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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** | **str** | 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** | [**V1beta1WorkloadSpec**](V1beta1WorkloadSpec.md) | | + +## Example + +```python +from kubernetes.client.models.v1beta1_workload import V1beta1Workload + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Workload from a JSON string +v1beta1_workload_instance = V1beta1Workload.from_json(json) +# print the JSON string representation of the object +print(V1beta1Workload.to_json()) + +# convert the object into a dict +v1beta1_workload_dict = v1beta1_workload_instance.to_dict() +# create an instance of V1beta1Workload from a dict +v1beta1_workload_from_dict = V1beta1Workload.from_dict(v1beta1_workload_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1WorkloadList.md b/kubernetes/docs/V1beta1WorkloadList.md new file mode 100644 index 0000000000..439e77ac06 --- /dev/null +++ b/kubernetes/docs/V1beta1WorkloadList.md @@ -0,0 +1,31 @@ +# V1beta1WorkloadList + +WorkloadList contains a list of Workload resources. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | 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[V1beta1Workload]**](V1beta1Workload.md) | items is the list of Workloads. | +**kind** | **str** | 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] + +## Example + +```python +from kubernetes.client.models.v1beta1_workload_list import V1beta1WorkloadList + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1WorkloadList from a JSON string +v1beta1_workload_list_instance = V1beta1WorkloadList.from_json(json) +# print the JSON string representation of the object +print(V1beta1WorkloadList.to_json()) + +# convert the object into a dict +v1beta1_workload_list_dict = v1beta1_workload_list_instance.to_dict() +# create an instance of V1beta1WorkloadList from a dict +v1beta1_workload_list_from_dict = V1beta1WorkloadList.from_dict(v1beta1_workload_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1WorkloadReference.md b/kubernetes/docs/V1beta1WorkloadReference.md new file mode 100644 index 0000000000..cd7f0a724a --- /dev/null +++ b/kubernetes/docs/V1beta1WorkloadReference.md @@ -0,0 +1,29 @@ +# V1beta1WorkloadReference + +WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**template_name** | **str** | templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required. | +**workload_name** | **str** | workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required. | + +## Example + +```python +from kubernetes.client.models.v1beta1_workload_reference import V1beta1WorkloadReference + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1WorkloadReference from a JSON string +v1beta1_workload_reference_instance = V1beta1WorkloadReference.from_json(json) +# print the JSON string representation of the object +print(V1beta1WorkloadReference.to_json()) + +# convert the object into a dict +v1beta1_workload_reference_dict = v1beta1_workload_reference_instance.to_dict() +# create an instance of V1beta1WorkloadReference from a dict +v1beta1_workload_reference_from_dict = V1beta1WorkloadReference.from_dict(v1beta1_workload_reference_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1WorkloadSpec.md b/kubernetes/docs/V1beta1WorkloadSpec.md new file mode 100644 index 0000000000..fb945356f5 --- /dev/null +++ b/kubernetes/docs/V1beta1WorkloadSpec.md @@ -0,0 +1,30 @@ +# V1beta1WorkloadSpec + +WorkloadSpec defines the desired state of a Workload. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**composite_pod_group_templates** | [**List[V1beta1CompositePodGroupTemplate]**](V1beta1CompositePodGroupTemplate.md) | compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. This field is used only when the CompositePodGroup feature gate is enabled. | [optional] +**controller_ref** | [**V1beta1TypedLocalObjectReference**](V1beta1TypedLocalObjectReference.md) | | [optional] +**pod_group_templates** | [**List[V1beta1PodGroupTemplate]**](V1beta1PodGroupTemplate.md) | podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set. | [optional] + +## Example + +```python +from kubernetes.client.models.v1beta1_workload_spec import V1beta1WorkloadSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1WorkloadSpec from a JSON string +v1beta1_workload_spec_instance = V1beta1WorkloadSpec.from_json(json) +# print the JSON string representation of the object +print(V1beta1WorkloadSpec.to_json()) + +# convert the object into a dict +v1beta1_workload_spec_dict = v1beta1_workload_spec_instance.to_dict() +# create an instance of V1beta1WorkloadSpec from a dict +v1beta1_workload_spec_from_dict = V1beta1WorkloadSpec.from_dict(v1beta1_workload_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2CELDeviceSelector.md b/kubernetes/docs/V1beta2CELDeviceSelector.md index 569cff2209..073028e231 100644 --- a/kubernetes/docs/V1beta2CELDeviceSelector.md +++ b/kubernetes/docs/V1beta2CELDeviceSelector.md @@ -6,7 +6,7 @@ CELDeviceSelector contains a CEL expression for selecting a device. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**expression** | **str** | 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. | +**expression** | **str** | 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. | ## Example diff --git a/kubernetes/docs/V1beta2CapacityRequestPolicyRange.md b/kubernetes/docs/V1beta2CapacityRequestPolicyRange.md index 8a9371ca6a..05cc3b798f 100644 --- a/kubernetes/docs/V1beta2CapacityRequestPolicyRange.md +++ b/kubernetes/docs/V1beta2CapacityRequestPolicyRange.md @@ -1,6 +1,6 @@ # V1beta2CapacityRequestPolicyRange -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. +CapacityRequestPolicyRange defines a valid range for consumable capacity values. If the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value(). - 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. ## Properties diff --git a/kubernetes/docs/V1beta2Device.md b/kubernetes/docs/V1beta2Device.md index 4b7cd282ba..b925459ce0 100644 --- a/kubernetes/docs/V1beta2Device.md +++ b/kubernetes/docs/V1beta2Device.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **capacity** | [**Dict[str, 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] **consumes_counters** | [**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** | **str** | Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. | -**node_allocatable_resource_mappings** | [**Dict[str, 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] +**node_allocatable_resources** | [**Dict[str, V1beta2NodeAllocatableResource]**](V1beta2NodeAllocatableResource.md) | NodeAllocatableResources 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] **node_name** | **str** | 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] **node_selector** | [**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 a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] diff --git a/kubernetes/docs/V1beta2DeviceClass.md b/kubernetes/docs/V1beta2DeviceClass.md index 3521b0c45d..f7e27acd7d 100644 --- a/kubernetes/docs/V1beta2DeviceClass.md +++ b/kubernetes/docs/V1beta2DeviceClass.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1beta2DeviceClassSpec**](V1beta2DeviceClassSpec.md) | | +**spec** | [**V1beta2DeviceClassSpec**](V1beta2DeviceClassSpec.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1beta2DeviceClassSpec.md b/kubernetes/docs/V1beta2DeviceClassSpec.md index e45143dde3..78459bef35 100644 --- a/kubernetes/docs/V1beta2DeviceClassSpec.md +++ b/kubernetes/docs/V1beta2DeviceClassSpec.md @@ -7,7 +7,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] -**extended_resource_name** | **str** | 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] +**extended_resource_name** | **str** | 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] **selectors** | [**List[V1beta2DeviceSelector]**](V1beta2DeviceSelector.md) | Each selector must be satisfied by a device which is claimed via this class. | [optional] ## Example diff --git a/kubernetes/docs/V1beta2DeviceCounterConsumption.md b/kubernetes/docs/V1beta2DeviceCounterConsumption.md index d1478a8f8b..499566da68 100644 --- a/kubernetes/docs/V1beta2DeviceCounterConsumption.md +++ b/kubernetes/docs/V1beta2DeviceCounterConsumption.md @@ -6,6 +6,7 @@ DeviceCounterConsumption defines a set of counters that a device will consume fr Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**compatibility_groups** | **List[str]** | CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique. | [optional] **counter_set** | **str** | CounterSet is the name of the set from which the counters defined will be consumed. | **counters** | [**Dict[str, V1beta2Counter]**](V1beta2Counter.md) | Counters defines the counters that will be consumed by the device. The maximum number of counters is 32. | diff --git a/kubernetes/docs/V1beta2DeviceDerivedAttribute.md b/kubernetes/docs/V1beta2DeviceDerivedAttribute.md new file mode 100644 index 0000000000..eb777d7a80 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceDerivedAttribute.md @@ -0,0 +1,29 @@ +# V1beta2DeviceDerivedAttribute + +DeviceDerivedAttribute defines a derived attribute computed via CEL. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expression** | **str** | Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail. The expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector. When pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors. The expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks). 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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget. | +**name** | **str** | Name is the identifier for this derived attribute, used in constraints. It must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\"). If the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\"). It is not valid to define a derived attribute that isn't used in at least one constraint. | + +## Example + +```python +from kubernetes.client.models.v1beta2_device_derived_attribute import V1beta2DeviceDerivedAttribute + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta2DeviceDerivedAttribute from a JSON string +v1beta2_device_derived_attribute_instance = V1beta2DeviceDerivedAttribute.from_json(json) +# print the JSON string representation of the object +print(V1beta2DeviceDerivedAttribute.to_json()) + +# convert the object into a dict +v1beta2_device_derived_attribute_dict = v1beta2_device_derived_attribute_instance.to_dict() +# create an instance of V1beta2DeviceDerivedAttribute from a dict +v1beta2_device_derived_attribute_from_dict = V1beta2DeviceDerivedAttribute.from_dict(v1beta2_device_derived_attribute_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md b/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md index 5294aa35bc..ea50ed4954 100644 --- a/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md +++ b/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **pool** | **str** | 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** | **str** | 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. | **share_id** | **str** | 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] +**skip_node_operations** | **List[str]** | SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated. | [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] ## Example diff --git a/kubernetes/docs/V1beta2DeviceSubRequest.md b/kubernetes/docs/V1beta2DeviceSubRequest.md index 1e2cd914ee..785fa06034 100644 --- a/kubernetes/docs/V1beta2DeviceSubRequest.md +++ b/kubernetes/docs/V1beta2DeviceSubRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **allocation_mode** | **str** | 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] **capacity** | [**V1beta2CapacityRequirements**](V1beta2CapacityRequirements.md) | | [optional] **count** | **int** | 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] +**derived_attributes** | [**List[V1beta2DeviceDerivedAttribute]**](V1beta2DeviceDerivedAttribute.md) | DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. | [optional] **device_class_name** | **str** | 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** | **str** | 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] diff --git a/kubernetes/docs/V1beta2ExactDeviceRequest.md b/kubernetes/docs/V1beta2ExactDeviceRequest.md index d7e0b7c94a..f294e6f49f 100644 --- a/kubernetes/docs/V1beta2ExactDeviceRequest.md +++ b/kubernetes/docs/V1beta2ExactDeviceRequest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **allocation_mode** | **str** | 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** | [**V1beta2CapacityRequirements**](V1beta2CapacityRequirements.md) | | [optional] **count** | **int** | 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] +**derived_attributes** | [**List[V1beta2DeviceDerivedAttribute]**](V1beta2DeviceDerivedAttribute.md) | DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions. Derived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints. Every derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list. The maximum number of derived attributes is 32. This is an alpha field and requires enabling the DRADerivedAttributes feature gate. | [optional] **device_class_name** | **str** | 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 a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] diff --git a/kubernetes/docs/V1beta2NodeAllocatableMapping.md b/kubernetes/docs/V1beta2NodeAllocatableMapping.md new file mode 100644 index 0000000000..5d1cc7734f --- /dev/null +++ b/kubernetes/docs/V1beta2NodeAllocatableMapping.md @@ -0,0 +1,30 @@ +# V1beta2NodeAllocatableMapping + +NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capacity_key** | **str** | 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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. | [optional] +**capacity_multiplier** | **str** | CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16. | [optional] +**device_multiplier** | **str** | DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set. | [optional] + +## Example + +```python +from kubernetes.client.models.v1beta2_node_allocatable_mapping import V1beta2NodeAllocatableMapping + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta2NodeAllocatableMapping from a JSON string +v1beta2_node_allocatable_mapping_instance = V1beta2NodeAllocatableMapping.from_json(json) +# print the JSON string representation of the object +print(V1beta2NodeAllocatableMapping.to_json()) + +# convert the object into a dict +v1beta2_node_allocatable_mapping_dict = v1beta2_node_allocatable_mapping_instance.to_dict() +# create an instance of V1beta2NodeAllocatableMapping from a dict +v1beta2_node_allocatable_mapping_from_dict = V1beta2NodeAllocatableMapping.from_dict(v1beta2_node_allocatable_mapping_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2NodeAllocatableOverhead.md b/kubernetes/docs/V1beta2NodeAllocatableOverhead.md new file mode 100644 index 0000000000..9d70abddc2 --- /dev/null +++ b/kubernetes/docs/V1beta2NodeAllocatableOverhead.md @@ -0,0 +1,29 @@ +# V1beta2NodeAllocatableOverhead + +NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per_container** | **str** | PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once. | [optional] +**per_pod** | **str** | PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim. | [optional] + +## Example + +```python +from kubernetes.client.models.v1beta2_node_allocatable_overhead import V1beta2NodeAllocatableOverhead + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta2NodeAllocatableOverhead from a JSON string +v1beta2_node_allocatable_overhead_instance = V1beta2NodeAllocatableOverhead.from_json(json) +# print the JSON string representation of the object +print(V1beta2NodeAllocatableOverhead.to_json()) + +# convert the object into a dict +v1beta2_node_allocatable_overhead_dict = v1beta2_node_allocatable_overhead_instance.to_dict() +# create an instance of V1beta2NodeAllocatableOverhead from a dict +v1beta2_node_allocatable_overhead_from_dict = V1beta2NodeAllocatableOverhead.from_dict(v1beta2_node_allocatable_overhead_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2NodeAllocatableResource.md b/kubernetes/docs/V1beta2NodeAllocatableResource.md new file mode 100644 index 0000000000..448650fed0 --- /dev/null +++ b/kubernetes/docs/V1beta2NodeAllocatableResource.md @@ -0,0 +1,29 @@ +# V1beta2NodeAllocatableResource + +NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mapping** | [**V1beta2NodeAllocatableMapping**](V1beta2NodeAllocatableMapping.md) | | [optional] +**overhead** | [**V1beta2NodeAllocatableOverhead**](V1beta2NodeAllocatableOverhead.md) | | [optional] + +## Example + +```python +from kubernetes.client.models.v1beta2_node_allocatable_resource import V1beta2NodeAllocatableResource + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta2NodeAllocatableResource from a JSON string +v1beta2_node_allocatable_resource_instance = V1beta2NodeAllocatableResource.from_json(json) +# print the JSON string representation of the object +print(V1beta2NodeAllocatableResource.to_json()) + +# convert the object into a dict +v1beta2_node_allocatable_resource_dict = v1beta2_node_allocatable_resource_instance.to_dict() +# create an instance of V1beta2NodeAllocatableResource from a dict +v1beta2_node_allocatable_resource_from_dict = V1beta2NodeAllocatableResource.from_dict(v1beta2_node_allocatable_resource_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2NodeAllocatableResourceMapping.md b/kubernetes/docs/V1beta2NodeAllocatableResourceMapping.md deleted file mode 100644 index a49bcc7dbb..0000000000 --- a/kubernetes/docs/V1beta2NodeAllocatableResourceMapping.md +++ /dev/null @@ -1,29 +0,0 @@ -# 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 ------------- | ------------- | ------------- | ------------- -**allocation_multiplier** | **str** | 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] -**capacity_key** | **str** | 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] - -## Example - -```python -from kubernetes.client.models.v1beta2_node_allocatable_resource_mapping import V1beta2NodeAllocatableResourceMapping - -# TODO update the JSON string below -json = "{}" -# create an instance of V1beta2NodeAllocatableResourceMapping from a JSON string -v1beta2_node_allocatable_resource_mapping_instance = V1beta2NodeAllocatableResourceMapping.from_json(json) -# print the JSON string representation of the object -print(V1beta2NodeAllocatableResourceMapping.to_json()) - -# convert the object into a dict -v1beta2_node_allocatable_resource_mapping_dict = v1beta2_node_allocatable_resource_mapping_instance.to_dict() -# create an instance of V1beta2NodeAllocatableResourceMapping from a dict -v1beta2_node_allocatable_resource_mapping_from_dict = V1beta2NodeAllocatableResourceMapping.from_dict(v1beta2_node_allocatable_resource_mapping_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2ResourceClaim.md b/kubernetes/docs/V1beta2ResourceClaim.md index 7afe539aa1..e6a3f058bb 100644 --- a/kubernetes/docs/V1beta2ResourceClaim.md +++ b/kubernetes/docs/V1beta2ResourceClaim.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1beta2ResourceClaimSpec**](V1beta2ResourceClaimSpec.md) | | +**spec** | [**V1beta2ResourceClaimSpec**](V1beta2ResourceClaimSpec.md) | | [optional] **status** | [**V1beta2ResourceClaimStatus**](V1beta2ResourceClaimStatus.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1beta2ResourceClaimTemplate.md b/kubernetes/docs/V1beta2ResourceClaimTemplate.md index f57f32d721..4b6493a000 100644 --- a/kubernetes/docs/V1beta2ResourceClaimTemplate.md +++ b/kubernetes/docs/V1beta2ResourceClaimTemplate.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **api_version** | **str** | 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** | **str** | 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** | [**V1beta2ResourceClaimTemplateSpec**](V1beta2ResourceClaimTemplateSpec.md) | | +**spec** | [**V1beta2ResourceClaimTemplateSpec**](V1beta2ResourceClaimTemplateSpec.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1beta2ResourceClaimTemplateSpec.md b/kubernetes/docs/V1beta2ResourceClaimTemplateSpec.md index bbcf9301ea..4c3be1124c 100644 --- a/kubernetes/docs/V1beta2ResourceClaimTemplateSpec.md +++ b/kubernetes/docs/V1beta2ResourceClaimTemplateSpec.md @@ -7,7 +7,7 @@ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta2ResourceClaimSpec**](V1beta2ResourceClaimSpec.md) | | +**spec** | [**V1beta2ResourceClaimSpec**](V1beta2ResourceClaimSpec.md) | | [optional] ## Example diff --git a/kubernetes/docs/V1beta2ResourcePool.md b/kubernetes/docs/V1beta2ResourcePool.md index ac06b8b06a..39f2c593a4 100644 --- a/kubernetes/docs/V1beta2ResourcePool.md +++ b/kubernetes/docs/V1beta2ResourcePool.md @@ -7,7 +7,7 @@ ResourcePool describes the pool that ResourceSlices belong to. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **generation** | **int** | 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. | -**name** | **str** | 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. | +**name** | **str** | Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool. 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. | **resource_slice_count** | **int** | 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. | ## Example diff --git a/kubernetes/docs/V1beta2ResourceSliceSpec.md b/kubernetes/docs/V1beta2ResourceSliceSpec.md index c4a6f1fdd5..39b09b2b4b 100644 --- a/kubernetes/docs/V1beta2ResourceSliceSpec.md +++ b/kubernetes/docs/V1beta2ResourceSliceSpec.md @@ -11,9 +11,11 @@ Name | Type | Description | Notes **driver** | **str** | 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. | **node_name** | **str** | 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] **node_selector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] +**partition_type_attribute** | **str** | PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU. When set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost. | [optional] **per_device_node_selection** | **bool** | 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] **pool** | [**V1beta2ResourcePool**](V1beta2ResourcePool.md) | | **shared_counters** | [**List[V1beta2CounterSet]**](V1beta2CounterSet.md) | 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] +**skip_node_operations** | **List[str]** | SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are: - \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This value cannot be specified unless \"NodeUnprepareResources\" is also listed (or \"*\" is specified). - \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped. Other values may be added in the future. The kubelet must ignore unknown values. | [optional] ## Example diff --git a/kubernetes/docs/V2HPAScalingRules.md b/kubernetes/docs/V2HPAScalingRules.md index d4914760ce..06625c7b3c 100644 --- a/kubernetes/docs/V2HPAScalingRules.md +++ b/kubernetes/docs/V2HPAScalingRules.md @@ -1,6 +1,6 @@ # V2HPAScalingRules -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.) +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. ## Properties @@ -9,7 +9,7 @@ Name | Type | Description | Notes **policies** | [**List[V2HPAScalingPolicy]**](V2HPAScalingPolicy.md) | policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window. | [optional] **select_policy** | **str** | selectPolicy is used to specify which policy should be used. If not set, the default value Max is used. | [optional] **stabilization_window_seconds** | **int** | stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). | [optional] -**tolerance** | **str** | tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%). For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi. This is an beta field and requires the HPAConfigurableTolerance feature gate to be enabled. | [optional] +**tolerance** | **str** | tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%). For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi. | [optional] ## Example diff --git a/kubernetes/docs/V2HorizontalPodAutoscalerCondition.md b/kubernetes/docs/V2HorizontalPodAutoscalerCondition.md index 88accf7b32..dd033fe82b 100644 --- a/kubernetes/docs/V2HorizontalPodAutoscalerCondition.md +++ b/kubernetes/docs/V2HorizontalPodAutoscalerCondition.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **last_transition_time** | **datetime** | lastTransitionTime is the last time the condition transitioned from one status to another | [optional] **message** | **str** | message is a human-readable explanation containing details about the transition | [optional] +**observed_generation** | **int** | 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] **reason** | **str** | reason is the reason for the condition's last transition. | [optional] **status** | **str** | status is the status of the condition (True, False, Unknown) | **type** | **str** | type describes the current condition | diff --git a/kubernetes/docs/V2MetricValueStatus.md b/kubernetes/docs/V2MetricValueStatus.md index e099b679a1..c22d768a61 100644 --- a/kubernetes/docs/V2MetricValueStatus.md +++ b/kubernetes/docs/V2MetricValueStatus.md @@ -6,7 +6,7 @@ MetricValueStatus holds the current value for a metric Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**average_utilization** | **int** | currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. | [optional] +**average_utilization** | **int** | 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] **average_value** | **str** | averageValue is the current value of the average of the metric across all relevant pods (as a quantity) | [optional] **value** | **str** | value is the current value of the metric (as a quantity). | [optional] diff --git a/kubernetes/swagger.json.unprocessed b/kubernetes/swagger.json.unprocessed index 67de7f202b..1312319359 100644 --- a/kubernetes/swagger.json.unprocessed +++ b/kubernetes/swagger.json.unprocessed @@ -2112,7 +2112,7 @@ } }, "required": [ - "revision" + "data" ], "type": "object", "x-kubernetes-group-version-kind": [ @@ -2182,6 +2182,9 @@ "description": "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. 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": [ { @@ -2215,10 +2218,6 @@ "type": "string" } }, - "required": [ - "type", - "status" - ], "type": "object" }, "io.k8s.api.apps.v1.DaemonSetList": { @@ -2396,6 +2395,9 @@ "description": "Most recently observed status of the Deployment." } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -2433,10 +2435,6 @@ "type": "string" } }, - "required": [ - "type", - "status" - ], "type": "object" }, "io.k8s.api.apps.v1.DeploymentList": { @@ -2618,6 +2616,9 @@ "description": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. 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": [ { @@ -2651,10 +2652,6 @@ "type": "string" } }, - "required": [ - "type", - "status" - ], "type": "object" }, "io.k8s.api.apps.v1.ReplicaSetList": { @@ -2838,6 +2835,9 @@ "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time." } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -2871,10 +2871,6 @@ "type": "string" } }, - "required": [ - "type", - "status" - ], "type": "object" }, "io.k8s.api.apps.v1.StatefulSetList": { @@ -3085,7 +3081,7 @@ "type": "string" }, "kind": { - "description": "kind of the referent. Valid kinds are 'Pod' and 'Secret'.", + "description": "kind of the referent. Valid kinds are 'Pod', 'Secret', 'Node', 'ValidatingWebhookConfiguration', and 'MutatingWebhookConfiguration'.", "type": "string" }, "name": { @@ -3174,6 +3170,16 @@ "io.k8s.api.authentication.v1.TokenRequestSpec": { "description": "TokenRequestSpec contains client provided parameters of a token request.", "properties": { + "attestations": { + "additionalProperties": { + "items": { + "type": "string" + }, + "type": "array" + }, + "description": "attestations is a map of well-known keys to string-slice values. The values for each key have a specific semantic meaning, which is documented on the key definition. Requesters of tokens may ask the Kubernetes API Server to attest to certain claims. The API Server may perform authorization checks depending on the key of this map.", + "type": "object" + }, "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": { @@ -3785,7 +3791,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec", @@ -3858,7 +3864,7 @@ }, "scaleTargetRef": { "$ref": "#/definitions/io.k8s.api.autoscaling.v1.CrossVersionObjectReference", - "description": "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." + "description": "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." }, "targetCPUUtilizationPercentage": { "description": "targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.", @@ -3919,7 +3925,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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/io.k8s.api.autoscaling.v1.ScaleSpec", @@ -4098,7 +4104,7 @@ "type": "object" }, "io.k8s.api.autoscaling.v2.HPAScalingRules": { - "description": "HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.\n\nScaling 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.\n\nThe 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.)", + "description": "HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.\n\nScaling 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.\n\nThe tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations.", "properties": { "policies": { "description": "policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window.", @@ -4119,7 +4125,7 @@ }, "tolerance": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).\n\nFor example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.\n\nThis is an beta field and requires the HPAConfigurableTolerance feature gate to be enabled." + "description": "tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).\n\nFor example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi." } }, "type": "object" @@ -4185,6 +4191,11 @@ "description": "message is a human-readable explanation containing details about the transition", "type": "string" }, + "observedGeneration": { + "description": "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.", + "format": "int64", + "type": "integer" + }, "reason": { "description": "reason is the reason for the condition's last transition.", "type": "string" @@ -4379,7 +4390,7 @@ "properties": { "containerResource": { "$ref": "#/definitions/io.k8s.api.autoscaling.v2.ContainerResourceMetricStatus", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + "description": "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 to normal per-pod metrics using the \"pods\" source." }, "external": { "$ref": "#/definitions/io.k8s.api.autoscaling.v2.ExternalMetricStatus", @@ -4437,7 +4448,7 @@ "description": "MetricValueStatus holds the current value for a metric", "properties": { "averageUtilization": { - "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", + "description": "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.", "format": "int32", "type": "integer" }, @@ -4484,7 +4495,7 @@ }, "describedObject": { "$ref": "#/definitions/io.k8s.api.autoscaling.v2.CrossVersionObjectReference", - "description": "DescribedObject specifies the descriptions of a object,such as kind,name apiVersion" + "description": "describedObject specifies the descriptions of a object,such as kind,name apiVersion" }, "metric": { "$ref": "#/definitions/io.k8s.api.autoscaling.v2.MetricIdentifier", @@ -4810,6 +4821,37 @@ } ] }, + "io.k8s.api.batch.v1.JobSchedulingConfiguration": { + "description": "JobSchedulingConfiguration composes the reusable workload-aware scheduling building blocks.", + "properties": { + "disruptionMode": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupDisruptionMode", + "description": "DisruptionMode defines the mode in which the Job's pods can be disrupted. One of Single, All. This field is immutable after creation: it may not be added or removed, and the selected mode may not be changed." + }, + "resourceClaims": { + "description": "ResourceClaims defines which ResourceClaims may be shared among Pods in the Job. 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. At most 4 claims may be set, matching the limit on the resulting PodGroup. This list is immutable after creation: entries may neither be added, removed, nor modified.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupResourceClaim" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "schedulingConstraints": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupSchedulingConstraints", + "description": "SchedulingConstraints defines scheduling constraints (e.g. topology) for the Job's pods. This field is immutable after creation." + }, + "schedulingPolicy": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupSchedulingPolicy", + "description": "SchedulingPolicy defines the scheduling policy for this Job. Exactly one of Basic or Gang must be set. This field is immutable after creation: the policy may not be added or removed. The policy variant (basic/gang) is frozen by hand-written validation; only schedulingPolicy.gang.minCount may be changed." + } + }, + "type": "object" + }, "io.k8s.api.batch.v1.JobSpec": { "description": "JobSpec describes how the job execution will look like.", "properties": { @@ -4863,6 +4905,10 @@ "description": "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use.", "type": "string" }, + "scheduling": { + "$ref": "#/definitions/io.k8s.api.batch.v1.JobSchedulingConfiguration", + "description": "scheduling defines the Workload-aware Scheduling configuration for this Job. When set, it specifies the scheduling policy (basic or gang), topology constraints, disruption mode, and shared resource claims. When omitted, the Job defaults to the basic scheduling policy, which behaves as standard pod-by-pod scheduling. This field is alpha-level and requires the WorkloadWithJob feature gate. This field is immutable, including whether it is set at all, only policy.gang.minCount may be changed after creation." + }, "selector": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", "description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" @@ -4940,7 +4986,7 @@ "type": "integer" }, "terminating": { - "description": "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).\n\nThis field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).", + "description": "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).", "format": "int32", "type": "integer" }, @@ -5288,8 +5334,8 @@ }, "type": "object" }, - "io.k8s.api.certificates.v1alpha1.ClusterTrustBundle": { - "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle 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.\n\nIt 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.", + "io.k8s.api.certificates.v1.ClusterTrustBundle": { + "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle 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.\n\nIt can be optionally associated with a particular signer, 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.", "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", @@ -5304,7 +5350,7 @@ "description": "metadata contains the object metadata." }, "spec": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec", + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundleSpec", "description": "spec contains the signer (if any) and trust anchors." } }, @@ -5316,11 +5362,11 @@ { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } ] }, - "io.k8s.api.certificates.v1alpha1.ClusterTrustBundleList": { + "io.k8s.api.certificates.v1.ClusterTrustBundleList": { "description": "ClusterTrustBundleList is a collection of ClusterTrustBundle objects", "properties": { "apiVersion": { @@ -5330,7 +5376,7 @@ "items": { "description": "items is a collection of ClusterTrustBundle objects", "items": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" }, "type": "array" }, @@ -5351,11 +5397,11 @@ { "group": "certificates.k8s.io", "kind": "ClusterTrustBundleList", - "version": "v1alpha1" + "version": "v1" } ] }, - "io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec": { + "io.k8s.api.certificates.v1.ClusterTrustBundleSpec": { "description": "ClusterTrustBundleSpec contains the signer and trust anchors.", "properties": { "signerName": { @@ -5372,8 +5418,175 @@ ], "type": "object" }, + "io.k8s.api.certificates.v1.PodCertificateRequest": { + "description": "PodCertificateRequest encodes a pod requesting a certificate from a given signer.\n\nKubelets use this API to implement podCertificate projected volumes", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "metadata contains the object metadata." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequestSpec", + "description": "spec contains the details about the certificate being requested." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequestStatus", + "description": "status contains the issued certificate, and a standard set of conditions." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1" + } + ] + }, + "io.k8s.api.certificates.v1.PodCertificateRequestList": { + "description": "PodCertificateRequestList is a collection of PodCertificateRequest 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", + "type": "string" + }, + "items": { + "description": "items is a collection of PodCertificateRequest objects", + "items": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" + }, + "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/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "metadata contains the list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "PodCertificateRequestList", + "version": "v1" + } + ] + }, + "io.k8s.api.certificates.v1.PodCertificateRequestSpec": { + "description": "PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation.", + "properties": { + "maxExpirationSeconds": { + "description": "maxExpirationSeconds is the maximum lifetime permitted for the certificate.\n\nIf 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).\n\nThe 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.", + "format": "int32", + "type": "integer" + }, + "nodeName": { + "description": "nodeName is the name of the node the pod is assigned to.", + "type": "string" + }, + "nodeUID": { + "description": "nodeUID is the UID of the node the pod is assigned to.", + "type": "string" + }, + "podName": { + "description": "podName is the name of the pod into which the certificate will be mounted.", + "type": "string" + }, + "podUID": { + "description": "podUID is the UID of the pod into which the certificate will be mounted.", + "type": "string" + }, + "serviceAccountName": { + "description": "serviceAccountName is the name of the service account the pod is running as.", + "type": "string" + }, + "serviceAccountUID": { + "description": "serviceAccountUID is the UID of the service account the pod is running as.", + "type": "string" + }, + "signerName": { + "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" + }, + "description": "unverifiedUserAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way.\n\nEntries 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.\n\nSigners should document the keys and values they support. Signers should deny requests that contain keys they do not recognize.", + "type": "object" + } + }, + "required": [ + "signerName", + "podName", + "podUID", + "serviceAccountName", + "serviceAccountUID", + "nodeName", + "nodeUID", + "stubPKCS10Request" + ], + "type": "object" + }, + "io.k8s.api.certificates.v1.PodCertificateRequestStatus": { + "description": "PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued.", + "properties": { + "beginRefreshAt": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable.\n\nThis field is only a hint. Kubelet may start refreshing before or after this time if necessary." + }, + "certificateChain": { + "description": "certificateChain is populated with an issued certificate by the signer. This field is set via the /status subresource. Once populated, this field is immutable.\n\nIf the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty.\n\nValidation requirements:\n 1. certificateChain must consist of one or more PEM-formatted certificates.\n 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as\n described in section 4 of RFC5280.\n\nIf more than one block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers.", + "type": "string" + }, + "conditions": { + "description": "conditions applied to the request.\n\nThe types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\".\n\nIf the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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" + }, + "notAfter": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain." + }, + "notBefore": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain." + } + }, + "type": "object" + }, "io.k8s.api.certificates.v1beta1.ClusterTrustBundle": { - "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle 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.\n\nIt 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.", + "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle 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.\n\nIt can be optionally associated with a particular signer, 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.", "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", @@ -5646,7 +5859,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "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/io.k8s.api.coordination.v1.LeaseSpec", @@ -5719,7 +5932,7 @@ "type": "integer" }, "preferredHolder": { - "description": "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.", + "description": "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.", "type": "string" }, "renewTime": { @@ -5727,7 +5940,7 @@ "description": "renewTime is a time when the current holder of a lease has last updated the lease." }, "strategy": { - "description": "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.", + "description": "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.", "type": "string" } }, @@ -5746,7 +5959,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "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/io.k8s.api.coordination.v1alpha2.LeaseCandidateSpec", @@ -5804,27 +6017,27 @@ "description": "LeaseCandidateSpec is a specification of a Lease.", "properties": { "binaryVersion": { - "description": "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", + "description": "binaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", "type": "string" }, "emulationVersion": { - "description": "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", + "description": "emulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", "type": "string" }, "leaseName": { - "description": "LeaseName is the name of the lease for which this candidate is contending. This field is immutable.", + "description": "leaseName is the name of the lease for which this candidate is contending. This field is immutable.", "type": "string" }, "pingTime": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime." + "description": "pingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime." }, "renewTime": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates." + "description": "renewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates." }, "strategy": { - "description": "Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.", + "description": "strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.", "type": "string" } }, @@ -5848,7 +6061,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "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/io.k8s.api.coordination.v1beta1.LeaseCandidateSpec", @@ -5906,27 +6119,27 @@ "description": "LeaseCandidateSpec is a specification of a Lease.", "properties": { "binaryVersion": { - "description": "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", + "description": "binaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", "type": "string" }, "emulationVersion": { - "description": "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", + "description": "emulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", "type": "string" }, "leaseName": { - "description": "LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.", + "description": "leaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.", "type": "string" }, "pingTime": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime." + "description": "pingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime." }, "renewTime": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates." + "description": "renewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates." }, "strategy": { - "description": "Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.", + "description": "strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.", "type": "string" } }, @@ -6402,6 +6615,11 @@ "signerName": { "description": "Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.", "type": "string" + }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" } }, "required": [ @@ -6520,7 +6738,7 @@ "format": "byte", "type": "string" }, - "description": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.", + "description": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in 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.", "type": "object" }, "data": { @@ -6553,7 +6771,7 @@ ] }, "io.k8s.api.core.v1.ConfigMapEnvSource": { - "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", + "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe 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.", "properties": { "name": { "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", @@ -6570,7 +6788,7 @@ "description": "Selects a key from a ConfigMap.", "properties": { "key": { - "description": "The key to select.", + "description": "The key to select from the ConfigMap's Data field. Keys in the BinaryData field are not currently propagated to container env vars.", "type": "string" }, "name": { @@ -6684,6 +6902,11 @@ "format": "int32", "type": "integer" }, + "defaultUser": { + "description": "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "items": { "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", "items": { @@ -7232,6 +7455,11 @@ "resourceFieldRef": { "$ref": "#/definitions/io.k8s.api.core.v1.ResourceFieldSelector", "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported." + }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" } }, "required": [ @@ -7247,6 +7475,11 @@ "format": "int32", "type": "integer" }, + "defaultUser": { + "description": "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "items": { "description": "Items is a list of downward API volume file", "items": { @@ -7265,6 +7498,11 @@ "description": "medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", "type": "string" }, + "mode": { + "description": "mode specifies the permission bits for the emptyDir directory, in numeric notation (e.g., 0755, 01777). Must be a value between 0000 and 01777. If not specified, defaults to 0777. This might be in conflict with other options that affect the file mode, like fsGroup. If fsGroup is specified, the fsGroup permissions will override the mode specified here. This field has no effect on Windows. This field is alpha and requires EmptyDirVolumeMode featuregate to be enabled.", + "format": "int32", + "type": "integer" + }, "sizeLimit": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir" @@ -7818,6 +8056,26 @@ }, "type": "object" }, + "io.k8s.api.core.v1.EvictionResponder": { + "description": "EvictionResponder allows you to specify the responder reacting to an Eviction. Responders should observe and communicate through the Eviction Resource API to help with the graceful eviction of a target (e.g. termination of a pod).", + "properties": { + "name": { + "description": "name allows you to identify the responder responding to the Eviction.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field must be unique for each responder. This field is required.", + "type": "string" + }, + "priority": { + "description": "priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last.\n\nThe responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders.\n\nThe minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "name", + "priority" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, "io.k8s.api.core.v1.ExecAction": { "description": "ExecAction describes a \"run in container\" action.", "properties": { @@ -8002,6 +8260,10 @@ "io.k8s.api.core.v1.GRPCAction": { "description": "GRPCAction specifies an action involving a GRPC service.", "properties": { + "mode": { + "description": "mode specifies the connection mode for the gRPC health probe. Set to \"TLS\" to use TLS without certificate verification. Set to \"Plaintext\" to use a plaintext (insecure) connection explicitly. If not specified, the probe uses a plaintext (insecure) connection.", + "type": "string" + }, "port": { "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", "format": "int32", @@ -8109,6 +8371,10 @@ "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." }, + "protocol": { + "description": "Protocol selects the wire protocol for the probe connection. Nil defaults to HTTP/1.1.", + "type": "string" + }, "scheme": { "description": "Scheme to use for connecting to the host. Defaults to HTTP.", "type": "string" @@ -8350,6 +8616,11 @@ "path": { "description": "path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", "type": "string" + }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" } }, "required": [ @@ -8867,6 +9138,45 @@ }, "type": "object" }, + "io.k8s.api.core.v1.NodeAllocatableMappedResources": { + "description": "NodeAllocatableMappedResources describes mapped node allocatable resource allocations.", + "properties": { + "name": { + "description": "Name is the name of the resource (e.g., cpu, memory).", + "type": "string" + }, + "quantity": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "Quantity is the total node allocatable resource capacity allocated for the claim. This claim's allocated devices is shared by all the containers referencing the claim. Kubelet adds this value to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim." + } + }, + "required": [ + "name", + "quantity" + ], + "type": "object" + }, + "io.k8s.api.core.v1.NodeAllocatableOverheadResources": { + "description": "NodeAllocatableOverheadResources describes auxiliary overhead resource allocations.", + "properties": { + "name": { + "description": "Name is the name of the resource (e.g., cpu, memory).", + "type": "string" + }, + "perContainer": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "PerContainer is the variable overhead quantity applied for each container referencing the claim. The container references are recorded in `nodeAllocatableResourceClaimStatuses.containers`. The total overhead quantity allocated for the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once. At least one of PerPod or PerContainer must be specified. Specifying neither is an invalid configuration." + }, + "perPod": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "PerPod is the flat overhead quantity allocated per pod. Adding to each container limit allows individual containers to utilize the overhead, while the parent pod-level cgroup limit caps the total usage at the pod boundary where the overhead is accounted for exactly once. At least one of PerPod or PerContainer must be specified. Specifying neither is an invalid configuration." + } + }, + "required": [ + "name" + ], + "type": "object" + }, "io.k8s.api.core.v1.NodeAllocatableResourceClaimStatus": { "description": "NodeAllocatableResourceClaimStatus describes the status of node allocatable resources allocated via DRA.", "properties": { @@ -8878,21 +9188,39 @@ "type": "array", "x-kubernetes-list-type": "set" }, + "mapping": { + "description": "Mapping contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].mapping` field. This is used by kubelet for pod level and container-level cgroup enforcement.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeAllocatableMappedResources" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "overhead": { + "description": "Overhead contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].overhead` field. This is used by kubelet for pod level and container-level cgroup enforcement.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeAllocatableOverheadResources" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, "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/io.k8s.apimachinery.pkg.api.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" + "resourceClaimName" ], "type": "object" }, @@ -9017,6 +9345,20 @@ } ] }, + "io.k8s.api.core.v1.NodePodPreemptionPolicy": { + "description": "NodePodPreemptionPolicy defines the node-level policies governing preemption for pods on this node.", + "properties": { + "disableResizePreemption": { + "description": "DisableResizePreemption lists the owners (e.g., autoscalers, operators, administrators) that have requested to disable scheduler and Kubelet preemption for in-place pod resize on this node. If this list is non-empty, resize-induced preemption is disabled on this node. This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption feature gate.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, "io.k8s.api.core.v1.NodeRuntimeHandler": { "description": "NodeRuntimeHandler is a set of runtime handler information.", "properties": { @@ -9136,6 +9478,10 @@ "x-kubernetes-list-type": "set", "x-kubernetes-patch-strategy": "merge" }, + "podPreemptionPolicy": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodePodPreemptionPolicy", + "description": "PodPreemptionPolicy controls the node-level preemption behaviors for pods on this node. This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption feature gate." + }, "providerID": { "description": "ID of the node assigned by the cloud provider in the format: ://", "type": "string" @@ -9311,6 +9657,10 @@ "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", "type": "string" }, + "runningInUserNamespace": { + "description": "Whether the node is running in a user namespace.", + "type": "boolean" + }, "swap": { "$ref": "#/definitions/io.k8s.api.core.v1.NodeSwapStatus", "description": "Swap Info reported by the node." @@ -9535,11 +9885,11 @@ }, "dataSource": { "$ref": "#/definitions/io.k8s.api.core.v1.TypedLocalObjectReference", - "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * 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. If the namespace is specified, then dataSourceRef will not be copied to dataSource." + "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * 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. 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." }, "dataSourceRef": { "$ref": "#/definitions/io.k8s.api.core.v1.TypedObjectReference", - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(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." + "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled." }, "resources": { "$ref": "#/definitions/io.k8s.api.core.v1.VolumeResourceRequirements", @@ -9618,6 +9968,10 @@ "description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim", "type": "string" }, + "healthStatus": { + "$ref": "#/definitions/io.k8s.api.core.v1.VolumeHealthStatus", + "description": "healthStatus contains the latest controller-reported health information for the volume bound to this claim." + }, "modifyVolumeStatus": { "$ref": "#/definitions/io.k8s.api.core.v1.ModifyVolumeStatus", "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted." @@ -10029,6 +10383,11 @@ "description": "Kubelet's generated CSRs will be addressed to this signer.", "type": "string" }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "userAnnotations": { "additionalProperties": { "type": "string" @@ -10321,7 +10680,7 @@ "type": "integer" }, "seLinuxChangePolicy": { - "description": "seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\".\n\n\"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.\n\n\"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. 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.\n\nIf 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.\n\nThis field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.\n\nAll 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.", + "description": "seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\".\n\n\"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.\n\n\"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. 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.\n\nIf not specified, \"MountOption\" is used.\n\nThis field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.\n\nAll 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.", "type": "string" }, "seLinuxOptions": { @@ -10414,6 +10773,19 @@ "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge" }, + "evictionResponders": { + "description": "evictionResponders reference responders that react to Evictions based on EvictionRequests. Responders should observe and communicate through the Eviction Resource API to help with the graceful termination of a pod. The responders are selected sequentially, according to their specified priority.\n\nResponders should periodically report on an eviction progress by updating the .status.responders[].heartbeatTime field of the Eviction object. If this field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there is no other responder, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource).\n\nThe maximum length of the responders list is 10. Responders are not supported when the pod is part of a PodGroup (.spec.schedulingGroup is set). This field can only be set on creation and is immutable afterwards.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.EvictionResponder" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, "hostAliases": { "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.", "items": { @@ -10448,7 +10820,7 @@ "type": "string" }, "hostnameOverride": { - "description": "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.\n\nThis 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.", + "description": "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.\n\nThis field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters.", "type": "string" }, "imagePullSecrets": { @@ -10501,7 +10873,7 @@ "type": "object" }, "preemptionPolicy": { - "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", + "description": "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.", "type": "string" }, "priority": { @@ -10712,7 +11084,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.NodeAllocatableResourceClaimStatus" }, "type": "array", - "x-kubernetes-list-type": "atomic" + "x-kubernetes-list-map-keys": [ + "resourceClaimName" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "resourceClaimName", + "x-kubernetes-patch-strategy": "merge" }, "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.", @@ -10776,6 +11153,17 @@ "startTime": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", "description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod." + }, + "volumeHealth": { + "description": "volumeHealth contains node-reported health for each volume the pod is using. Populated by the kubelet on the pod's node.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodVolumeHealth" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" } }, "type": "object" @@ -10858,6 +11246,37 @@ }, "type": "object" }, + "io.k8s.api.core.v1.PodVolumeHealth": { + "description": "PodVolumeHealth contains health information for a volume used by a pod, reported by the CSI node plugin via the kubelet.", + "properties": { + "healthConditions": { + "description": "conditions is the set of adverse conditions reported by the CSI node plugin for this volume on this node. At most 16 conditions may be reported.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.VolumeHealthCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "status", + "reason" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "status", + "x-kubernetes-patch-strategy": "merge" + }, + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is when the current set of conditions first appeared." + }, + "name": { + "description": "name matches an entry in pod.spec.volumes.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, "io.k8s.api.core.v1.PortStatus": { "description": "PortStatus represents the error condition of a service port", "properties": { @@ -10981,6 +11400,11 @@ "format": "int32", "type": "integer" }, + "defaultUser": { + "description": "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "sources": { "description": "sources is the list of volume projections. Each entry in this list handles one source.", "items": { @@ -11499,7 +11923,7 @@ "description": "ResourceStatus represents the status of a single resource allocated to a Pod.", "properties": { "name": { - "description": "Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:/\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.", + "description": "Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:/\" when container.resources.claims[*].request is set or \"claim:\" when container.resources.claims[*].request is empty. For DRA-backed extended resources, \"claim:/\" is used when the claim name and request name are recorded in pod.status.extendedResourceClaimStatus. When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.", "type": "string" }, "resources": { @@ -11873,6 +12297,11 @@ "format": "int32", "type": "integer" }, + "defaultUser": { + "description": "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "items": { "description": "items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", "items": { @@ -12081,6 +12510,11 @@ "path": { "description": "path is the path relative to the mount point of the file to project the token into.", "type": "string" + }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" } }, "required": [ @@ -12748,11 +13182,65 @@ ], "type": "object" }, + "io.k8s.api.core.v1.VolumeHealthCondition": { + "description": "VolumeHealthCondition represents an adverse health condition reported for a volume.", + "properties": { + "message": { + "description": "message is a human-readable description. Maximum permitted length of a message is 1024 bytes.", + "type": "string" + }, + "reason": { + "description": "reason is a brief CamelCase machine-parseable reason. Together with status it forms the unique identity of a condition entry. Maximum permitted length of a reason is 256 bytes.", + "type": "string" + }, + "status": { + "description": "status is the machine-parseable health category. Possible values: - \"Inaccessible\": the volume cannot be accessed. - \"DataLoss\": data loss has been detected on the volume. - \"Degraded\": the volume is functioning with reduced capability.", + "type": "string" + } + }, + "required": [ + "status", + "reason" + ], + "type": "object" + }, + "io.k8s.api.core.v1.VolumeHealthStatus": { + "description": "VolumeHealthStatus contains health information for a volume reported by the CSI controller plugin.", + "properties": { + "healthConditions": { + "description": "conditions is the set of adverse conditions reported by the CSI controller plugin. An empty list means no adverse condition. At most 16 conditions may be reported.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.VolumeHealthCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "status", + "reason" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "status", + "x-kubernetes-patch-strategy": "merge" + }, + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is when the current set of conditions first appeared." + } + }, + "type": "object" + }, "io.k8s.api.core.v1.VolumeMount": { "description": "VolumeMount describes a mounting of a Volume within a container.", "properties": { + "bindMountOptions": { + "description": "bindMountOptions is the list of additional bind mount options to apply when mounting this volume into the container. Allowed values are noexec, nodev, and nosuid. These are Linux mount options and have no effect on Windows nodes. This field is not supported with image volumes. This is an alpha field and requires enabling the VolumeBindMountOptions feature gate.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", + "description": "Path within the container at which the volume should be mounted.", "type": "string" }, "mountPropagation": { @@ -13211,7 +13699,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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" }, "note": { "description": "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.", @@ -13278,7 +13766,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "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" } }, "required": [ @@ -13365,6 +13853,9 @@ "description": "`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" } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -13390,7 +13881,7 @@ "type": "string" }, "status": { - "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "description": "`status` is the status of the condition. Should be specified and set to one of True, False, Unknown.", "type": "string" }, "type": { @@ -13398,6 +13889,9 @@ "type": "string" } }, + "required": [ + "type" + ], "type": "object" }, "io.k8s.api.flowcontrol.v1.FlowSchemaList": { @@ -13545,6 +14039,9 @@ "type": "integer" } }, + "required": [ + "limitResponse" + ], "type": "object" }, "io.k8s.api.flowcontrol.v1.NonResourcePolicyRule": { @@ -13630,6 +14127,9 @@ "description": "`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" } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -13655,7 +14155,7 @@ "type": "string" }, "status": { - "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "description": "`status` is the status of the condition. Should be specified and set to one of True, False, Unknown.", "type": "string" }, "type": { @@ -13663,6 +14163,9 @@ "type": "string" } }, + "required": [ + "type" + ], "type": "object" }, "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList": { @@ -13896,6 +14399,419 @@ ], "type": "object" }, + "io.k8s.api.lifecycle.v1alpha1.Eviction": { + "description": "Eviction initiates an eviction process, which should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod).\n\nThe evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. It manages the Eviction lifecycle. Requesters are preserved in .status.requesters even after they have withdrawn their request. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Once all EvictionRequest corresponding to this Eviction .spec.target have been removed, this Eviction object will eventually be garbage collected.\n\nIf the target is a pod, the .status.targetResponders is populated from Pod's .spec.evictionResponders.\n\nResponders should observe and communicate through the .status to help with the eviction of the target when they see their state == Active in .status.targetResponders. ResponderStatus struct should then be periodically updated to indicate the progress or completion of the eviction process by each responder in .status.responders. If .status.responders[].heartbeatTime is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority.\n\nIf there are no other responders and the target is a pod, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource).", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. .metadata.name set by the evictionrequest-controller is purely informative and subject to change. .spec.target field should be used to identify the target precisesly.\n\nThe requester and responder names will be used as label keys and added to the labels of the eviction in one of the following formats: 1. acme.io/foo: \"requester\" 2. acme.io/foo: \"responder\" 3. acme.io/foo: \"requester-responder\"\n\nPlease see EvictionParticipantRole for available role label values." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionSpec", + "description": "spec defines the eviction specification. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionStatus", + "description": "status represents the most recently observed status of the eviction. Populated by responders and evictionrequest-controller. 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": [ + { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionList": { + "description": "EvictionList contains a list of Eviction 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 Evictions.", + "items": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + }, + "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/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "lifecycle.k8s.io", + "kind": "EvictionList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionPodReference": { + "description": "EvictionPodReference contains enough information to locate the referenced pod inside the same namespace.", + "properties": { + "name": { + "description": "name of the target. This field is required.", + "type": "string" + }, + "uid": { + "description": "uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required.", + "type": "string" + } + }, + "required": [ + "name", + "uid" + ], + "type": "object" + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionRequest": { + "description": "EvictionRequest defines a request that should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod).\n\nThe evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions.\n - .spec.requester is set as a label on the Eviction for easier lookup.\n - Each target can have a set of responders assigned to it. Eviction objects are observed by\n these responders, who implement the eviction logic and update the Eviction's status with\n progress.\n\nThere is many-to-many relationship between EvictionRequests and Evictions in general. And many-to-one if the target is a pod.\n\nIf all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Deleting an EvictionRequest also counts as a withdrawal. Once all EvictionRequest of a target are removed, the corresponding Evictions are eventually garbage collected.", + "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/io.k8s.apimachinery.pkg.apis.meta.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/io.k8s.api.lifecycle.v1alpha1.EvictionRequestSpec", + "description": "spec defines the eviction request specification. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequestStatus", + "description": "status represents the most recently observed status of the eviction request. 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": [ + { + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionRequestList": { + "description": "EvictionRequestList contains a list of EvictionRequests 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 EvictionRequests.", + "items": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" + }, + "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/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "lifecycle.k8s.io", + "kind": "EvictionRequestList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionRequestPodReference": { + "description": "EvictionRequestPodReference contains enough information to locate the referenced pod inside the same namespace.", + "properties": { + "name": { + "description": "name of the target. This field is required.", + "type": "string" + }, + "uid": { + "description": "uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required.", + "type": "string" + } + }, + "required": [ + "name", + "uid" + ], + "type": "object" + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionRequestSpec": { + "description": "EvictionRequestSpec is a specification of an EvictionRequest.", + "properties": { + "intent": { + "description": "intent specifies the action that should be taken for the specified target.\n\n- Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target.\n If all requesters' intents are withdrawn for a common target, the eviction will be canceled.\n Cancellation consequences:\n - Inactive responders will never run.\n - Active responders are expected to cancel the eviction.\n - Completed or Interrupted responders should not take any action.", + "type": "string" + }, + "requester": { + "description": "requester allows you to identify the entity, that requested the eviction of the target.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field is required and immutable.", + "type": "string" + }, + "target": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequestTarget", + "description": "target contains a reference to an object (e.g. a pod) that should be evicted. This field is required and immutable." + } + }, + "required": [ + "target", + "requester", + "intent" + ], + "type": "object" + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionRequestStatus": { + "description": "EvictionRequestStatus represents the last observed status of the eviction request.", + "properties": { + "conditions": { + "description": "conditions contain information about the eviction request.\n\nEvictionRequest specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed\n by any eviction responder. This can happen if the request is canceled or if no responder\n managed to evict the target (e.g. terminate or delete a pod).\n- TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted).\n\nThese conditions can be reset if the eviction was unsuccessful and a new Eviction intent has been submitted.\n\nThe maximum length of the conditions list is 100.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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" + }, + "observedGeneration": { + "description": "observedGeneration is EvictionRequest's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller.", + "format": "int64", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionRequestTarget": { + "description": "EvictionRequestTarget contains a reference to an object that should be evicted.", + "properties": { + "pod": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequestPodReference", + "description": "pod references a pod that is subject to eviction/termination. Pods that are part of a PodGroup (.spec.schedulingGroup is set) are not supported." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "pod": "Pod" + } + } + ] + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionSpec": { + "description": "EvictionSpec is a specification of an Eviction.", + "properties": { + "target": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionTarget", + "description": "target contains a reference to an object (e.g. a pod) that should be evicted. This field is required and immutable." + } + }, + "required": [ + "target" + ], + "type": "object" + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionStatus": { + "description": "EvictionStatus represents the last observed status of the eviction request.", + "properties": { + "conditions": { + "description": "conditions contain information about the eviction request.\n\nEviction specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed\n by any eviction responder. This can happen if the request is canceled or if no responder\n managed to evict the target (e.g. terminate or delete a pod).\n- TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted).\n\n\tThe maximum length of the conditions list is 100.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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" + }, + "observedGeneration": { + "description": "observedGeneration is Eviction's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller.", + "format": "int64", + "type": "integer" + }, + "requesters": { + "description": "requesters allow you to identify the entities, that requested the eviction of the target. If all the requesters withdraw their eviction intent, the eviction will be canceled.\n\nThe maximum length of the requesters list is 100. If this limit is exceeded, requesters with Withdrawn intent should be dropped first.", + "items": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Requester" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "responders": { + "description": "responders represents the eviction process status of each declared responder.\n\nThe responder list should be the same length and have the same .name fields as .status.targetResponders. Only responders with .name that have Active state in .targetResponders[].state should be updated and can be mutated. First initialization of the list is allowed.\n\nEach ResponderStatus is initialized by evictionrequest-controller and then managed by the designated responder.", + "items": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.ResponderStatus" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "targetResponders": { + "description": "targetResponders reference responders that should eventually respond to this eviction to help with the graceful eviction of a target. These responders are selected sequentially, according to their specified priority by setting the Active state to the TargetResponder .state field. The maximum number of active responders allowed is 1. Eventually each responder can end up in an Interrupted, Canceled or, Completed state. Responders should observe these states in order to navigate their lifecycle.\n\nIf the target is a pod, the field is populated from Pod's .spec.evictionResponders. Default responders may be added to the list according to the target.\n\nDefault responders: - imperative-eviction.k8s.io/evictor responder with a priority of 100 is added to the list if the\n target is a pod. It will call the imperative Eviction API (pods//eviction subresource).\n This call may not succeed due to PodDisruptionBudgets, which may block the pod termination.\n It will update the responder message and try again with a backoff.\n\nThe maximum length of the responders list is 11. The length and keys of the list cannot change once set. This field is managed by evictionrequest-controller.", + "items": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.TargetResponder" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.k8s.api.lifecycle.v1alpha1.EvictionTarget": { + "description": "EvictionTarget contains a reference to an object that should be evicted.", + "properties": { + "pod": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionPodReference", + "description": "pod references a pod that is subject to eviction/termination. Pods that are part of a PodGroup (.spec.schedulingGroup is set) are not supported." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "pod": "Pod" + } + } + ] + }, + "io.k8s.api.lifecycle.v1alpha1.Requester": { + "description": "Requester allows you to identify the entity, that requested the eviction of the target.", + "properties": { + "intent": { + "description": "intent specifies the action that should be taken for the specified target.\n\n- Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target.\n If all requesters' intents are withdrawn, the eviction will be canceled.\n Cancellation consequences:\n - Inactive responders will never run.\n - Active responders are expected to cancel the eviction.\n - Completed or Interrupted responders should not take any action.", + "type": "string" + }, + "name": { + "description": "name allows you to identify the entity, that requested the eviction of the target.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each requester. This field is required.", + "type": "string" + } + }, + "required": [ + "name", + "intent" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.lifecycle.v1alpha1.ResponderStatus": { + "description": "ResponderStatus represents the last observed status of the eviction process of the responder. It should be only updated by the designated responder whose name is .name field.", + "properties": { + "completionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "completionTime tracks the time at which the Responder stopped processing the eviction request. Completion means that the responders has either fully or partially completed the eviction process, which may have resulted in target eviction (e.g. pod termination). It should reflect the present time when set. This field becomes immutable once set." + }, + "expectedCompletionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "expectedCompletionTime is the time at which the eviction process step is expected to end for the responder. The time cannot be set to the past. May be omitted if no estimate can be made." + }, + "heartbeatTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "heartbeatTime is the last time at which the eviction process was reported to be in progress by the responder. It should reflect the present time when set. Responders should avoid heartbeats more frequent than 20 seconds to avoid overloading the control-plane." + }, + "message": { + "description": "message provides human-readable details about the state of the responder and the eviction process. Maximum length is 4000 characters.", + "type": "string" + }, + "name": { + "description": "name allows you to identify the responder reacting to the Eviction.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field is initialized by Kubernetes and must be unique for each responder. This field is required.", + "type": "string" + }, + "startTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "startTime tracks the time at which this responder was designated as active and should start processing the eviction request. It should reflect the present time when set. This field is initialized by Kubernetes when this responder becomes active. This field becomes immutable once set." + } + }, + "required": [ + "name" + ], + "type": "object", + "x-kubernetes-map-type": "granular" + }, + "io.k8s.api.lifecycle.v1alpha1.TargetResponder": { + "description": "TargetResponder allows you to specify the responder reacting to the Eviction. Responders should observe and communicate through the Eviction API (see .state) to help with the graceful eviction of a target (e.g. termination of a pod).", + "properties": { + "name": { + "description": "name allows you to identify the responder reacting to the Eviction.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each responder. This field is required.", + "type": "string" + }, + "priority": { + "description": "priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last.\n\nThe responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders.\n\nThe minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required and immutable.", + "format": "int32", + "type": "integer" + }, + "state": { + "description": "state specifies a state that is assigned by the evictionrequest-controller. Responders should observe this state in order to navigate their lifecycle. - Inactive means that the responder should not yet process this eviction request. - Active means that the responder is either running or expected to start soon.\n Also, startTime has been set in the ResponderStatus by the evictionrequest-controller.\n\n An active responder should currently interact with the eviction process by updating\n .status.responders, where .name is the active responder name. ResponderStatus fields\n should be periodically updated to indicate the progress or completion of the eviction process.\n If .status.responders[].heartbeatTime field is not updated within the heartbeat deadline defined\n by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder\n\t with a lower priority. Only one responder can be active at a time.\n- Interrupted means that the responder has failed to start or failed to update\n heartbeatTime in ResponderStatus in a timely manner.\n- Canceled means that the responder has been canceled. In other words, there\tis no\n EvictionRequest with the same target and Eviction intent in .spec.intent.\n- Completed means that the responder has successfully completed and set completionTime\n in ResponderStatus.\n\nPlease refer to the ResponderStatus in .status.responders for more details on each responder.", + "type": "string" + } + }, + "required": [ + "name", + "priority", + "state" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, "io.k8s.api.networking.v1.HTTPIngressPath": { "description": "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", "properties": { @@ -13948,7 +14864,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddressSpec", @@ -14007,7 +14923,7 @@ "properties": { "parentRef": { "$ref": "#/definitions/io.k8s.api.networking.v1.ParentReference", - "description": "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." + "description": "parentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." } }, "required": [ @@ -14049,7 +14965,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/io.k8s.api.networking.v1.IngressSpec", @@ -14096,7 +15012,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClassSpec", @@ -14293,7 +15209,8 @@ "type": "string" }, "http": { - "$ref": "#/definitions/io.k8s.api.networking.v1.HTTPIngressRuleValue" + "$ref": "#/definitions/io.k8s.api.networking.v1.HTTPIngressRuleValue", + "description": "http is a HTTP IngressRuleValue, which contains a list of http selectors" } }, "type": "object" @@ -14386,7 +15303,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicySpec", @@ -14556,19 +15473,19 @@ "description": "ParentReference describes a reference to a parent object.", "properties": { "group": { - "description": "Group is the group of the object being referenced.", + "description": "group is the group of the object being referenced.", "type": "string" }, "name": { - "description": "Name is the name of the object being referenced.", + "description": "name is the name of the object being referenced.", "type": "string" }, "namespace": { - "description": "Namespace is the namespace of the object being referenced.", + "description": "namespace is the namespace of the object being referenced.", "type": "string" }, "resource": { - "description": "Resource is the resource of the object being referenced.", + "description": "resource is the resource of the object being referenced.", "type": "string" } }, @@ -14607,7 +15524,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDRSpec", @@ -14666,7 +15583,7 @@ "description": "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", "properties": { "cidrs": { - "description": "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", + "description": "cidrs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", "items": { "type": "string" }, @@ -14695,213 +15612,6 @@ }, "type": "object" }, - "io.k8s.api.networking.v1beta1.IPAddress": { - "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", - "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/io.k8s.apimachinery.pkg.apis.meta.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/io.k8s.api.networking.v1beta1.IPAddressSpec", - "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": [ - { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.networking.v1beta1.IPAddressList": { - "description": "IPAddressList contains a list of IPAddress.", - "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 IPAddresses.", - "items": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" - }, - "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/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "IPAddressList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.networking.v1beta1.IPAddressSpec": { - "description": "IPAddressSpec describe the attributes in an IP Address.", - "properties": { - "parentRef": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ParentReference", - "description": "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." - } - }, - "required": [ - "parentRef" - ], - "type": "object" - }, - "io.k8s.api.networking.v1beta1.ParentReference": { - "description": "ParentReference describes a reference to a parent object.", - "properties": { - "group": { - "description": "Group is the group of the object being referenced.", - "type": "string" - }, - "name": { - "description": "Name is the name of the object being referenced.", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of the object being referenced.", - "type": "string" - }, - "resource": { - "description": "Resource is the resource of the object being referenced.", - "type": "string" - } - }, - "required": [ - "resource", - "name" - ], - "type": "object" - }, - "io.k8s.api.networking.v1beta1.ServiceCIDR": { - "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.", - "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/io.k8s.apimachinery.pkg.apis.meta.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/io.k8s.api.networking.v1beta1.ServiceCIDRSpec", - "description": "spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDRStatus", - "description": "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.networking.v1beta1.ServiceCIDRList": { - "description": "ServiceCIDRList contains a list of ServiceCIDR 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", - "type": "string" - }, - "items": { - "description": "items is the list of ServiceCIDRs.", - "items": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" - }, - "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/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "ServiceCIDRList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.networking.v1beta1.ServiceCIDRSpec": { - "description": "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", - "properties": { - "cidrs": { - "description": "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "io.k8s.api.networking.v1beta1.ServiceCIDRStatus": { - "description": "ServiceCIDRStatus describes the current state of the ServiceCIDR.", - "properties": { - "conditions": { - "description": "conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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" - }, "io.k8s.api.node.v1.Overhead": { "description": "Overhead structure represents the resource overhead associated with running a pod.", "properties": { @@ -14932,7 +15642,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "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" }, "overhead": { "$ref": "#/definitions/io.k8s.api.node.v1.Overhead", @@ -15021,7 +15731,7 @@ }, "deleteOptions": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions", - "description": "DeleteOptions may be provided" + "description": "deleteOptions may be provided" }, "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", @@ -15029,7 +15739,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "ObjectMeta describes the pod that is being evicted." + "description": "metadata describes the pod that is being evicted." } }, "type": "object", @@ -15054,15 +15764,15 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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/io.k8s.api.policy.v1.PodDisruptionBudgetSpec", - "description": "Specification of the desired behavior of the PodDisruptionBudget." + "description": "spec is the specification of the desired behavior of the PodDisruptionBudget." }, "status": { "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetStatus", - "description": "Most recently observed status of the PodDisruptionBudget." + "description": "status is the most recently observed status of the PodDisruptionBudget." } }, "type": "object", @@ -15114,19 +15824,19 @@ "properties": { "maxUnavailable": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." + "description": "maxUnavailable indicates that an eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." }, "minAvailable": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." + "description": "minAvailable indicates that an eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." }, "selector": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", + "description": "selector is a label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", "x-kubernetes-patch-strategy": "replace" }, "unhealthyPodEvictionPolicy": { - "description": "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.", + "description": "unhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.", "type": "string" } }, @@ -15187,7 +15897,7 @@ "description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", "properties": { "clusterRoleSelectors": { - "description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added", + "description": "clusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added", "items": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" }, @@ -15202,7 +15912,7 @@ "properties": { "aggregationRule": { "$ref": "#/definitions/io.k8s.api.rbac.v1.AggregationRule", - "description": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." + "description": "aggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." }, "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", @@ -15214,10 +15924,10 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata." + "description": "metadata is the standard object's metadata." }, "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", + "description": "rules holds all the PolicyRules for this ClusterRole", "items": { "$ref": "#/definitions/io.k8s.api.rbac.v1.PolicyRule" }, @@ -15247,14 +15957,14 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata." + "description": "metadata is the standard object's metadata." }, "roleRef": { "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleRef", - "description": "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." + "description": "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." }, "subjects": { - "description": "Subjects holds references to the objects the role applies to.", + "description": "subjects holds references to the objects the role applies to.", "items": { "$ref": "#/definitions/io.k8s.api.rbac.v1.Subject" }, @@ -15348,7 +16058,7 @@ "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.", "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. \"\" represents the core API group and \"*\" represents all API groups.", + "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. \"\" represents the core API group and \"*\" represents all API groups.", "items": { "type": "string" }, @@ -15356,7 +16066,7 @@ "x-kubernetes-list-type": "atomic" }, "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 Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", + "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 Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", "items": { "type": "string" }, @@ -15364,7 +16074,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" }, @@ -15372,7 +16082,7 @@ "x-kubernetes-list-type": "atomic" }, "resources": { - "description": "Resources is a list of resources this rule applies to. '*' represents all resources.", + "description": "resources is a list of resources this rule applies to. '*' represents all resources.", "items": { "type": "string" }, @@ -15380,7 +16090,7 @@ "x-kubernetes-list-type": "atomic" }, "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.", + "description": "verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.", "items": { "type": "string" }, @@ -15406,10 +16116,10 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata." + "description": "metadata is the standard object's metadata." }, "rules": { - "description": "Rules holds all the PolicyRules for this Role", + "description": "rules holds all the PolicyRules for this Role", "items": { "$ref": "#/definitions/io.k8s.api.rbac.v1.PolicyRule" }, @@ -15439,14 +16149,14 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata." + "description": "metadata is the standard object's metadata." }, "roleRef": { "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleRef", - "description": "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." + "description": "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." }, "subjects": { - "description": "Subjects holds references to the objects the role applies to.", + "description": "subjects holds references to the objects the role applies to.", "items": { "$ref": "#/definitions/io.k8s.api.rbac.v1.Subject" }, @@ -15540,15 +16250,15 @@ "description": "RoleRef contains information that points to the role being used", "properties": { "apiGroup": { - "description": "APIGroup is the group for the resource being referenced", + "description": "apiGroup is the group for the resource being referenced", "type": "string" }, "kind": { - "description": "Kind is the type of resource being referenced", + "description": "kind is the type of resource being referenced", "type": "string" }, "name": { - "description": "Name is the name of resource being referenced", + "description": "name is the name of resource being referenced", "type": "string" } }, @@ -15563,19 +16273,19 @@ "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.", "properties": { "apiGroup": { - "description": "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.", + "description": "apiGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.", "type": "string" }, "kind": { - "description": "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.", + "description": "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.", "type": "string" }, "name": { - "description": "Name of the object being referenced.", + "description": "name of the object being referenced.", "type": "string" }, "namespace": { - "description": "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.", + "description": "namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.", "type": "string" } }, @@ -15654,7 +16364,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\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.", + "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\nCommon errors: - \"no such key\": Use optional chaining (.? followed by orValue())\n or guarding the check with has() for optional fields.\n See CEL Optional Types for details:\n https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes\n\nFor more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/\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" } }, @@ -15686,7 +16396,7 @@ "type": "object" }, "io.k8s.api.resource.v1.CapacityRequestPolicyRange": { - "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", + "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\nIf the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value().\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", "properties": { "max": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", @@ -15810,11 +16520,11 @@ "description": "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.", "type": "string" }, - "nodeAllocatableResourceMappings": { + "nodeAllocatableResources": { "additionalProperties": { - "$ref": "#/definitions/io.k8s.api.resource.v1.NodeAllocatableResourceMapping" + "$ref": "#/definitions/io.k8s.api.resource.v1.NodeAllocatableResource" }, - "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.", + "description": "NodeAllocatableResources 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": { @@ -16027,9 +16737,6 @@ "description": "Spec defines what can be allocated and how to configure it.\n\nThis 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.\n\nChanging the spec automatically increments the metadata.generation number." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -16096,7 +16803,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 a beta 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.", "type": "string" }, "selectors": { @@ -16135,6 +16842,14 @@ "io.k8s.api.resource.v1.DeviceCounterConsumption": { "description": "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.", "properties": { + "compatibilityGroups": { + "description": "CompatibilityGroups is a list of opaque group names for this counter set consumption.\n\nDevices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field.\n\nAn unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups.\n\nGroup names are opaque and meaningful only within the publishing driver's pool.\n\nThe maximum number of groups is 2, and the names must be unique.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "counterSet": { "description": "CounterSet is the name of the set from which the counters defined will be consumed.", "type": "string" @@ -16153,6 +16868,24 @@ ], "type": "object" }, + "io.k8s.api.resource.v1.DeviceDerivedAttribute": { + "description": "DeviceDerivedAttribute defines a derived attribute computed via CEL.", + "properties": { + "expression": { + "description": "Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail.\n\nThe expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector.\n\nWhen pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors.\n\nThe expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks).\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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.", + "type": "string" + }, + "name": { + "description": "Name is the identifier for this derived attribute, used in constraints.\n\nIt must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\").\n\nIf the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\").\n\nIt is not valid to define a derived attribute that isn't used in at least one constraint.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": "object" + }, "io.k8s.api.resource.v1.DeviceRequest": { "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.", "properties": { @@ -16228,6 +16961,14 @@ "description": "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.", "type": "string" }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, "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 a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { @@ -16271,6 +17012,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.\n\nA class is required. Which classes are available depends on the cluster.\n\nAdministrators 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.", "type": "string" @@ -16328,6 +17077,131 @@ ], "type": "object" }, + "io.k8s.api.resource.v1.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/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRuleSpec", + "description": "Spec specifies the selector and one taint.\n\nChanging the spec automatically increments the metadata.generation number." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.resource.v1.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": "v1" + } + ] + }, + "io.k8s.api.resource.v1.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/io.k8s.api.resource.v1.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/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "DeviceTaintRuleList", + "version": "v1" + } + ] + }, + "io.k8s.api.resource.v1.DeviceTaintRuleSpec": { + "description": "DeviceTaintRuleSpec specifies the selector and one taint.", + "properties": { + "deviceSelector": { + "$ref": "#/definitions/io.k8s.api.resource.v1.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/io.k8s.api.resource.v1.DeviceTaint", + "description": "The taint that gets applied to matching devices." + } + }, + "required": [ + "taint" + ], + "type": "object" + }, + "io.k8s.api.resource.v1.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/io.k8s.apimachinery.pkg.apis.meta.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" + }, + "io.k8s.api.resource.v1.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" + }, "io.k8s.api.resource.v1.DeviceToleration": { "description": "The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator .", "properties": { @@ -16375,6 +17249,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.\n\nA DeviceClassName is required.\n\nAdministrators 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.", "type": "string" @@ -16423,16 +17305,48 @@ }, "type": "object" }, - "io.k8s.api.resource.v1.NodeAllocatableResourceMapping": { - "description": "NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.", + "io.k8s.api.resource.v1.NodeAllocatableMapping": { + "description": "NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.", "properties": { - "allocationMultiplier": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.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\".", + "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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.", "type": "string" + }, + "capacityMultiplier": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16." + }, + "deviceMultiplier": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set." + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1.NodeAllocatableOverhead": { + "description": "NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers.", + "properties": { + "perContainer": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once." + }, + "perPod": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim." + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1.NodeAllocatableResource": { + "description": "NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration.", + "properties": { + "mapping": { + "$ref": "#/definitions/io.k8s.api.resource.v1.NodeAllocatableMapping", + "description": "Mapping is used when the device directly models a node allocatable resource like standard CPU or memory (e.g., with a CPU DRA driver). The calculated quantity is accounted for exactly once per claim instance on the node. To prevent node cgroup isolation friction, the scheduler explicitly blocks sharing mapped device claims across multiple pods." + }, + "overhead": { + "$ref": "#/definitions/io.k8s.api.resource.v1.NodeAllocatableOverhead", + "description": "Overhead contains fields for modeling auxiliary overhead incurred on node allocatable resources when allocating devices that are not themselves modeling a node allocatable resource (e.g., host memory overhead for GPUs). Sharing overhead-mapped claims across multiple pods is allowed. The node allocatable overhead is accounted for individually for each pod referencing the claim. Overhead is always subtracted from the node's allocatable capacity for the resource, even when mapping is specified for the same resource. Eg: If a device models memory capacity per socket as a consumable capacity pool via Mapping (with CapacityKey), any overhead specified for the same resource will be subtracted from the node's general allocatable capacity and not from the per-socket capacity pool in Mapping." } }, "type": "object" @@ -16479,9 +17393,6 @@ "description": "Status describes whether the claim is ready to use and what has been allocated." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -16620,9 +17531,6 @@ "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -16679,9 +17587,6 @@ "description": "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." } }, - "required": [ - "spec" - ], "type": "object" }, "io.k8s.api.resource.v1.ResourcePool": { @@ -16693,7 +17598,7 @@ "type": "integer" }, "name": { - "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", + "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", "type": "string" }, "resourceSliceCount": { @@ -16803,6 +17708,10 @@ "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", "description": "NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.\n\nMust use exactly one term.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set." }, + "partitionTypeAttribute": { + "description": "PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU.\n\nWhen set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.", + "type": "string" + }, "perDeviceNodeSelection": { "description": "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.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.", "type": "boolean" @@ -16818,6 +17727,14 @@ }, "type": "array", "x-kubernetes-list-type": "atomic" + }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are:\n\n- \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This\n value cannot be specified unless \"NodeUnprepareResources\" is also listed\n (or \"*\" is specified).\n- \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped.\n\nOther values may be added in the future. The kubelet must ignore unknown values.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" } }, "required": [ @@ -16977,6 +17894,36 @@ }, "type": "object" }, + "io.k8s.api.resource.v1alpha3.PartitionTypeStatus": { + "description": "PartitionTypeStatus reports allocatability for a single partition type, identified by the value of a grouping attribute.", + "properties": { + "allocatable": { + "description": "Allocatable is the number of additional devices of this partition type that could still be allocated given current shared-counter consumption.", + "format": "int32", + "type": "integer" + }, + "attribute": { + "description": "Attribute is the fully qualified name of the device attribute whose value groups this entry. It is the PartitionTypeAttribute declared by the devices' own slice, or the default named in the request when their slice declares none.", + "type": "string" + }, + "total": { + "description": "Total is the number of devices of this partition type in the pool.", + "format": "int32", + "type": "integer" + }, + "type": { + "description": "Type is the partition type value (e.g. \"Full\" or \"Half\").", + "type": "string" + } + }, + "required": [ + "attribute", + "type", + "total", + "allocatable" + ], + "type": "object" + }, "io.k8s.api.resource.v1alpha3.PoolStatus": { "description": "PoolStatus contains status information for a single resource pool.", "properties": { @@ -17003,6 +17950,14 @@ "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" }, + "partitionSummary": { + "description": "PartitionSummary reports allocatability per (attribute, partition type) for a partitionable pool that publishes SharedCounters. Each entry names the grouping attribute it was resolved from: the PartitionTypeAttribute declared by a device's own slice, or for devices whose slice declares none, the default named in the request. A pool that mixes partitions declared under different attributes reports each independently. When no slice declares an attribute and the request names no default, the pool reports no partition summary.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.PartitionTypeStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "poolName": { "description": "PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by \"/\").", "type": "string" @@ -17012,6 +17967,10 @@ "format": "int32", "type": "integer" }, + "shareableSummary": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ShareableSummaryStatus", + "description": "ShareableSummary reports aggregate capacity for a pool that contains devices with AllowMultipleAllocations. It is populated only when at least one device in the pool is shareable." + }, "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", @@ -17109,6 +18068,10 @@ "io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequestSpec": { "description": "ResourcePoolStatusRequestSpec defines the filters for the pool status request.", "properties": { + "defaultPartitionTypeAttribute": { + "description": "DefaultPartitionTypeAttribute optionally names a device attribute (by its fully qualified name, e.g. \"gpu.example.com/profile\") to use as the default grouping attribute for partitionable devices whose slice has not declared one themselves.\n\nA slice's own PartitionTypeAttribute always takes precedence. This default applies only to devices whose slice does not declare one, so that a request can still get an accurate partitionSummary from a driver that has not been updated to declare it. When neither the slice nor this default names an attribute, a partitionable pool reports no partitionSummary.\n\nMust include the domain qualifier.", + "type": "string" + }, "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" @@ -17163,6 +18126,62 @@ ], "type": "object" }, + "io.k8s.api.resource.v1alpha3.ShareableCapacityStatus": { + "description": "ShareableCapacityStatus reports aggregate amounts for a single shareable capacity key.", + "properties": { + "available": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "Available is Total minus Consumed, never negative." + }, + "consumed": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "Consumed is the amount drawn by current allocations." + }, + "name": { + "description": "Name is the capacity name.", + "type": "string" + }, + "total": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "Total is the sum of this capacity across shareable devices in the pool." + } + }, + "required": [ + "name", + "total", + "consumed", + "available" + ], + "type": "object" + }, + "io.k8s.api.resource.v1alpha3.ShareableSummaryStatus": { + "description": "ShareableSummaryStatus reports aggregate capacity for a pool that contains devices with AllowMultipleAllocations.", + "properties": { + "capacity": { + "description": "Capacity reports aggregate total, consumed, and available amounts per shareable capacity key across the pool.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ShareableCapacityStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "fullyAvailableDevices": { + "description": "FullyAvailableDevices is the number of shareable devices with no capacity consumed.", + "format": "int32", + "type": "integer" + }, + "partiallyAvailableDevices": { + "description": "PartiallyAvailableDevices is the number of shareable devices with some but not all capacity consumed.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "fullyAvailableDevices", + "partiallyAvailableDevices" + ], + "type": "object" + }, "io.k8s.api.resource.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": { @@ -17280,11 +18299,11 @@ "type": "array", "x-kubernetes-list-type": "atomic" }, - "nodeAllocatableResourceMappings": { + "nodeAllocatableResources": { "additionalProperties": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.NodeAllocatableResourceMapping" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.NodeAllocatableResource" }, - "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.", + "description": "NodeAllocatableResources 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": { @@ -17310,7 +18329,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\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.", + "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\nCommon errors: - \"no such key\": Use optional chaining (.? followed by orValue())\n or guarding the check with has() for optional fields.\n See CEL Optional Types for details:\n https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes\n\nFor more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/\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" } }, @@ -17342,7 +18361,7 @@ "type": "object" }, "io.k8s.api.resource.v1beta1.CapacityRequestPolicyRange": { - "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", + "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\nIf the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value().\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", "properties": { "max": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", @@ -17614,9 +18633,6 @@ "description": "Spec defines what can be allocated and how to configure it.\n\nThis 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.\n\nChanging the spec automatically increments the metadata.generation number." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -17683,7 +18699,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 a beta 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.", "type": "string" }, "selectors": { @@ -17722,6 +18738,14 @@ "io.k8s.api.resource.v1beta1.DeviceCounterConsumption": { "description": "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.", "properties": { + "compatibilityGroups": { + "description": "CompatibilityGroups is a list of opaque group names for this counter set consumption.\n\nDevices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field.\n\nAn unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups.\n\nGroup names are opaque and meaningful only within the publishing driver's pool.\n\nThe maximum number of groups is 2, and the names must be unique.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "counterSet": { "description": "CounterSet is the name of the set from which the counters defined will be consumed.", "type": "string" @@ -17740,6 +18764,24 @@ ], "type": "object" }, + "io.k8s.api.resource.v1beta1.DeviceDerivedAttribute": { + "description": "DeviceDerivedAttribute defines a derived attribute computed via CEL.", + "properties": { + "expression": { + "description": "Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail.\n\nThe expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector.\n\nWhen pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors.\n\nThe expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks).\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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.", + "type": "string" + }, + "name": { + "description": "Name is the identifier for this derived attribute, used in constraints.\n\nIt must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\").\n\nIf the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\").\n\nIt is not valid to define a derived attribute that isn't used in at least one constraint.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": "object" + }, "io.k8s.api.resource.v1beta1.DeviceRequest": { "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.", "properties": { @@ -17760,6 +18802,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.\n\nA class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster.\n\nAdministrators 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.", "type": "string" @@ -17848,6 +18898,14 @@ "description": "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.", "type": "string" }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, "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 a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { @@ -17891,6 +18949,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.\n\nA class is required. Which classes are available depends on the cluster.\n\nAdministrators 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.", "type": "string" @@ -17997,16 +19063,48 @@ }, "type": "object" }, - "io.k8s.api.resource.v1beta1.NodeAllocatableResourceMapping": { - "description": "NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.", + "io.k8s.api.resource.v1beta1.NodeAllocatableMapping": { + "description": "NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices or the specific capacity consumed. These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.", "properties": { - "allocationMultiplier": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.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\".", + "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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.", "type": "string" + }, + "capacityMultiplier": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16." + }, + "deviceMultiplier": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set." + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1beta1.NodeAllocatableOverhead": { + "description": "NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers.", + "properties": { + "perContainer": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once." + }, + "perPod": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim." + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1beta1.NodeAllocatableResource": { + "description": "NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration.", + "properties": { + "mapping": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.NodeAllocatableMapping", + "description": "Mapping is used when the device directly models a node allocatable resource like standard CPU or memory (e.g., with a CPU DRA driver). The calculated quantity is accounted for exactly once per claim instance on the node. To prevent node cgroup isolation friction, the scheduler explicitly blocks sharing mapped device claims across multiple pods." + }, + "overhead": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.NodeAllocatableOverhead", + "description": "Overhead contains fields for modeling auxiliary overhead incurred on node allocatable resources when allocating devices that are not themselves modeling a node allocatable resource (e.g., host memory overhead for GPUs). Sharing overhead-mapped claims across multiple pods is allowed. The node allocatable overhead is accounted for individually for each pod referencing the claim. Overhead is always subtracted from the node's allocatable capacity for the resource, even when mapping is specified for the same resource. Eg: If a device models memory capacity per socket as a consumable capacity pool via Mapping (with CapacityKey), any overhead specified for the same resource will be subtracted from the node's general allocatable capacity and not from the per-socket capacity pool in Mapping." } }, "type": "object" @@ -18053,9 +19151,6 @@ "description": "Status describes whether the claim is ready to use and what has been allocated." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -18194,9 +19289,6 @@ "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -18253,9 +19345,6 @@ "description": "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." } }, - "required": [ - "spec" - ], "type": "object" }, "io.k8s.api.resource.v1beta1.ResourcePool": { @@ -18267,7 +19356,7 @@ "type": "integer" }, "name": { - "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", + "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", "type": "string" }, "resourceSliceCount": { @@ -18377,6 +19466,10 @@ "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", "description": "NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.\n\nMust use exactly one term.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set." }, + "partitionTypeAttribute": { + "description": "PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU.\n\nWhen set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.", + "type": "string" + }, "perDeviceNodeSelection": { "description": "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.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.", "type": "boolean" @@ -18392,6 +19485,14 @@ }, "type": "array", "x-kubernetes-list-type": "atomic" + }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are:\n\n- \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This\n value cannot be specified unless \"NodeUnprepareResources\" is also listed\n (or \"*\" is specified).\n- \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped.\n\nOther values may be added in the future. The kubelet must ignore unknown values.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" } }, "required": [ @@ -18468,7 +19569,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\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.", + "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\nCommon errors: - \"no such key\": Use optional chaining (.? followed by orValue())\n or guarding the check with has() for optional fields.\n See CEL Optional Types for details:\n https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes\n\nFor more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/\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" } }, @@ -18500,7 +19601,7 @@ "type": "object" }, "io.k8s.api.resource.v1beta2.CapacityRequestPolicyRange": { - "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", + "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\nIf the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value().\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", "properties": { "max": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", @@ -18624,11 +19725,11 @@ "description": "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.", "type": "string" }, - "nodeAllocatableResourceMappings": { + "nodeAllocatableResources": { "additionalProperties": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.NodeAllocatableResourceMapping" + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.NodeAllocatableResource" }, - "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.", + "description": "NodeAllocatableResources 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": { @@ -18841,9 +19942,6 @@ "description": "Spec defines what can be allocated and how to configure it.\n\nThis 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.\n\nChanging the spec automatically increments the metadata.generation number." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -18910,7 +20008,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 a beta 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.", "type": "string" }, "selectors": { @@ -18949,6 +20047,14 @@ "io.k8s.api.resource.v1beta2.DeviceCounterConsumption": { "description": "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.", "properties": { + "compatibilityGroups": { + "description": "CompatibilityGroups is a list of opaque group names for this counter set consumption.\n\nDevices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field.\n\nAn unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups.\n\nGroup names are opaque and meaningful only within the publishing driver's pool.\n\nThe maximum number of groups is 2, and the names must be unique.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "counterSet": { "description": "CounterSet is the name of the set from which the counters defined will be consumed.", "type": "string" @@ -18967,6 +20073,24 @@ ], "type": "object" }, + "io.k8s.api.resource.v1beta2.DeviceDerivedAttribute": { + "description": "DeviceDerivedAttribute defines a derived attribute computed via CEL.", + "properties": { + "expression": { + "description": "Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail.\n\nThe expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector.\n\nWhen pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors.\n\nThe expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks).\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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.", + "type": "string" + }, + "name": { + "description": "Name is the identifier for this derived attribute, used in constraints.\n\nIt must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\").\n\nIf the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\").\n\nIt is not valid to define a derived attribute that isn't used in at least one constraint.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": "object" + }, "io.k8s.api.resource.v1beta2.DeviceRequest": { "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.", "properties": { @@ -19042,6 +20166,14 @@ "description": "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.", "type": "string" }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, "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 a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { @@ -19085,6 +20217,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.\n\nA class is required. Which classes are available depends on the cluster.\n\nAdministrators 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.", "type": "string" @@ -19314,6 +20454,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.\n\nA DeviceClassName is required.\n\nAdministrators 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.", "type": "string" @@ -19362,16 +20510,48 @@ }, "type": "object" }, - "io.k8s.api.resource.v1beta2.NodeAllocatableResourceMapping": { - "description": "NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.", + "io.k8s.api.resource.v1beta2.NodeAllocatableMapping": { + "description": "NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.", "properties": { - "allocationMultiplier": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.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\".", + "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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.", "type": "string" + }, + "capacityMultiplier": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16." + }, + "deviceMultiplier": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set." + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1beta2.NodeAllocatableOverhead": { + "description": "NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers.", + "properties": { + "perContainer": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once." + }, + "perPod": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim." + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1beta2.NodeAllocatableResource": { + "description": "NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration.", + "properties": { + "mapping": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.NodeAllocatableMapping", + "description": "Mapping is used when the device directly models a node allocatable resource like standard CPU or memory (e.g., with a CPU DRA driver). The calculated quantity is accounted for exactly once per claim instance on the node. To prevent node cgroup isolation friction, the scheduler explicitly blocks sharing mapped device claims across multiple pods." + }, + "overhead": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.NodeAllocatableOverhead", + "description": "Overhead contains fields for modeling auxiliary overhead incurred on node allocatable resources when allocating devices that are not themselves modeling a node allocatable resource (e.g., host memory overhead for GPUs). Sharing overhead-mapped claims across multiple pods is allowed. The node allocatable overhead is accounted for individually for each pod referencing the claim. Overhead is always subtracted from the node's allocatable capacity for the resource, even when mapping is specified for the same resource. Eg: If a device models memory capacity per socket as a consumable capacity pool via Mapping (with CapacityKey), any overhead specified for the same resource will be subtracted from the node's general allocatable capacity and not from the per-socket capacity pool in Mapping." } }, "type": "object" @@ -19418,9 +20598,6 @@ "description": "Status describes whether the claim is ready to use and what has been allocated." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -19559,9 +20736,6 @@ "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -19618,9 +20792,6 @@ "description": "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." } }, - "required": [ - "spec" - ], "type": "object" }, "io.k8s.api.resource.v1beta2.ResourcePool": { @@ -19632,7 +20803,7 @@ "type": "integer" }, "name": { - "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", + "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", "type": "string" }, "resourceSliceCount": { @@ -19742,6 +20913,10 @@ "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", "description": "NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.\n\nMust use exactly one term.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set." }, + "partitionTypeAttribute": { + "description": "PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU.\n\nWhen set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.", + "type": "string" + }, "perDeviceNodeSelection": { "description": "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.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.", "type": "boolean" @@ -19757,6 +20932,14 @@ }, "type": "array", "x-kubernetes-list-type": "atomic" + }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are:\n\n- \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This\n value cannot be specified unless \"NodeUnprepareResources\" is also listed\n (or \"*\" is specified).\n- \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped.\n\nOther values may be added in the future. The kubelet must ignore unknown values.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" } }, "required": [ @@ -19786,7 +20969,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "preemptionPolicy": { "description": "preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", @@ -19842,15 +21025,315 @@ } ] }, - "io.k8s.api.scheduling.v1alpha2.BasicSchedulingPolicy": { + "io.k8s.api.scheduling.v1alpha3.AllCompositeDisruptionMode": { + "description": "AllCompositeDisruptionMode means that children of a CompositePodGroup can only be disrupted or preempted together.", + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.AllDisruptionMode": { + "description": "AllDisruptionMode specifies that children can only be disrupted together.", + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.BasicSchedulingPolicy": { "description": "BasicSchedulingPolicy indicates that standard Kubernetes scheduling behavior should be used.", "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.GangSchedulingPolicy": { + "io.k8s.api.scheduling.v1alpha3.CompositeBasicSchedulingPolicy": { + "description": "CompositeBasicSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled independently.", + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.CompositeDisruptionMode": { + "description": "CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set.", + "properties": { + "all": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.AllCompositeDisruptionMode", + "description": "all specifies that all children groups can only be disrupted together." + }, + "single": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.SingleCompositeDisruptionMode", + "description": "single specifies that children groups can be disrupted independently from each other." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } + } + ] + }, + "io.k8s.api.scheduling.v1alpha3.CompositeGangSchedulingPolicy": { + "description": "CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics.", + "properties": { + "minGroupCount": { + "description": "minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "minGroupCount" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.CompositePodGroup": { + "description": "CompositePodGroup represents a runtime instance of pod groups grouped together. CompositePodGroups are created by workload controllers (LWS, JobSet, etc...) from Workload.compositePodGroupTemplates. CompositePodGroup API enablement is toggled by the CompositePodGroup 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/io.k8s.apimachinery.pkg.apis.meta.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/io.k8s.api.scheduling.v1alpha3.CompositePodGroupSpec", + "description": "spec defines the desired state of the CompositePodGroup." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroupStatus", + "description": "status represents the current observed state of the CompositePodGroup." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + ] + }, + "io.k8s.api.scheduling.v1alpha3.CompositePodGroupList": { + "description": "CompositePodGroupList contains a list of CompositePodGroup 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 CompositePodGroups.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + }, + "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/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroupList", + "version": "v1alpha3" + } + ] + }, + "io.k8s.api.scheduling.v1alpha3.CompositePodGroupSchedulingConstraints": { + "description": "CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup.", + "properties": { + "topology": { + "description": "topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.TopologyConstraint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.CompositePodGroupSchedulingPolicy": { + "description": "CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set.", + "properties": { + "basic": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositeBasicSchedulingPolicy", + "description": "basic specifies that the groups of this composite group should be scheduled independently. This field is immutable." + }, + "gang": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositeGangSchedulingPolicy", + "description": "gang specifies that the groups of this composite group should be scheduled using all-or-nothing semantics." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "basic": "Basic", + "gang": "Gang" + } + } + ] + }, + "io.k8s.api.scheduling.v1alpha3.CompositePodGroupSpec": { + "description": "CompositePodGroupSpec defines the desired state of CompositePodGroup.", + "properties": { + "disruptionMode": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositeDisruptionMode", + "description": "disruptionMode defines the mode in which a given CompositePodGroup can be disrupted. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. One of Single, All. Defaults to Single if unset. This field is immutable." + }, + "parentCompositePodGroupName": { + "description": "parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this composite pod group. It must be a DNS name. If it's nil, then this composite pod group is a root of a workload's hierarchy. This field is immutable.", + "type": "string" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" + }, + "priority": { + "description": "priority is the value of priority of this composite pod group. Various system components use this field to find the priority of the composite 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.", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "priorityClassName defines the priority that should be considered when scheduling this CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. If left unspecified, it is validated and resolved similarly to the PriorityClassName field in Pods (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the composite pod group's priority will be zero). This field is immutable.", + "type": "string" + }, + "schedulingConstraints": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroupSchedulingConstraints", + "description": "schedulingConstraints defines optional scheduling constraints (e.g. topology) for this CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. This field is immutable." + }, + "schedulingPolicy": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this instance of the CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. This field is immutable." + }, + "workloadRef": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadReference", + "description": "workloadRef references an optional CompositePodGroup template within the Workload object that was used to create the CompositePodGroup. This field is required. This field is immutable." + } + }, + "required": [ + "workloadRef", + "schedulingPolicy" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.CompositePodGroupStatus": { + "description": "CompositePodGroupStatus represents information about the status of a composite pod group.", + "properties": { + "conditions": { + "description": "conditions represent the latest observations of the CompositePodGroup's state.\n\nKnown condition types: - \"CompositePodGroupInitiallyScheduled\": Indicates whether the overall scheduling requirement\n for the subtree under this CompositePodGroup has been satisfied. Once this condition\n transitions to True, it serves as a terminal state and will never revert to False,\n even if pods are subsequently deleted and group constraints are no longer met.\n- \"DisruptionTarget\": Indicates whether the CompositePodGroup is about to be terminated\n due to disruption such as preemption.\n\nKnown reasons for the CompositePodGroupInitiallyScheduled condition: - \"Unschedulable\": The CompositePodGroup's subtree could not be placed due to resource constraints,\n affinity/anti-affinity, or topological constraints.\n- \"SchedulerError\": The CompositePodGroup cannot be scheduled due to some internal error\n that occurred during scheduling.\n- \"Invalid\": Set to True when kube-scheduler detects an invalid group layout during\n runtime validation. The `message` field details the specific layout violation (such as\n a detected cycle, exceeding the maximum depth of 4, or referencing multiple distinct Workloads).\n\nKnown reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The CompositePodGroup was targeted by the scheduler's preemption loop\n to free up capacity for higher-priority preemptors.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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" + }, + "io.k8s.api.scheduling.v1alpha3.CompositePodGroupTemplate": { + "description": "CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.", + "properties": { + "compositePodGroupTemplates": { + "description": "compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "disruptionMode": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositeDisruptionMode", + "description": "disruptionMode defines the mode in which a given CompositePodGroup can be disrupted. One of Single, All. This field is immutable." + }, + "name": { + "description": "name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required.", + "type": "string" + }, + "podGroupTemplates": { + "description": "podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" + }, + "priority": { + "description": "priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite 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.", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "priorityClassName indicates the priority that should be considered when scheduling a composite 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, composite pod groups created from this template will have the priority set to zero. This field is immutable.", + "type": "string" + }, + "schedulingConstraints": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroupSchedulingConstraints", + "description": "schedulingConstraints defines optional scheduling constraints (e.g. topology) for this CompositePodGroupTemplate. This field is immutable." + }, + "schedulingPolicy": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this template." + } + }, + "required": [ + "name", + "schedulingPolicy" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.DisruptionMode": { + "description": "DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set.", + "properties": { + "all": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.AllDisruptionMode", + "description": "all specifies that all children can only be disrupted together." + }, + "single": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.SingleDisruptionMode", + "description": "single specifies that children can be disrupted independently from each other." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } + } + ] + }, + "io.k8s.api.scheduling.v1alpha3.GangSchedulingPolicy": { "description": "GangSchedulingPolicy defines the parameters for gang scheduling.", "properties": { "minCount": { - "description": "MinCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.", + "description": "minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling.\n\nNote that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles.", "format": "int32", "type": "integer" } @@ -19860,7 +21343,7 @@ ], "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.PodGroup": { + "io.k8s.api.scheduling.v1alpha3.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": { @@ -19873,15 +21356,15 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroupSpec", - "description": "Spec defines the desired state of the PodGroup." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroupSpec", + "description": "spec defines the desired state of the PodGroup." }, "status": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroupStatus", - "description": "Status represents the current observed state of the PodGroup." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroupStatus", + "description": "status represents the current observed state of the PodGroup." } }, "required": [ @@ -19892,11 +21375,11 @@ { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1alpha3" } ] }, - "io.k8s.api.scheduling.v1alpha2.PodGroupList": { + "io.k8s.api.scheduling.v1alpha3.PodGroupList": { "description": "PodGroupList contains a list of PodGroup resources.", "properties": { "apiVersion": { @@ -19906,7 +21389,7 @@ "items": { "description": "Items is the list of PodGroups.", "items": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" }, "type": "array" }, @@ -19927,23 +21410,23 @@ { "group": "scheduling.k8s.io", "kind": "PodGroupList", - "version": "v1alpha2" + "version": "v1alpha3" } ] }, - "io.k8s.api.scheduling.v1alpha2.PodGroupResourceClaim": { + "io.k8s.api.scheduling.v1alpha3.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.", + "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.", + "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.", + "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" } }, @@ -19952,15 +21435,15 @@ ], "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.PodGroupResourceClaimStatus": { + "io.k8s.api.scheduling.v1alpha3.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 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.", + "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.", + "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" } }, @@ -19969,13 +21452,13 @@ ], "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.PodGroupSchedulingConstraints": { + "io.k8s.api.scheduling.v1alpha3.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.", + "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/io.k8s.api.scheduling.v1alpha2.TopologyConstraint" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.TopologyConstraint" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -19983,16 +21466,16 @@ }, "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.PodGroupSchedulingPolicy": { - "description": "PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set.", + "io.k8s.api.scheduling.v1alpha3.PodGroupSchedulingPolicy": { + "description": "PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it.", "properties": { "basic": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.BasicSchedulingPolicy", - "description": "Basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.BasicSchedulingPolicy", + "description": "basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward." }, "gang": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.GangSchedulingPolicy", - "description": "Gang specifies that the pods in this group should be scheduled using all-or-nothing semantics." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.GangSchedulingPolicy", + "description": "gang specifies that the pods in this group should be scheduled using all-or-nothing semantics. Setting this field at group creation time opts this group to gang scheduling; this field cannot be set or unset afterward. The minCount field within Gang scheduling policy remains mutable after group creation." } }, "type": "object", @@ -20005,30 +21488,34 @@ } ] }, - "io.k8s.api.scheduling.v1alpha2.PodGroupSpec": { + "io.k8s.api.scheduling.v1alpha3.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.", + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.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 Single, All. Defaults to Single if unset. This field is immutable." + }, + "parentCompositePodGroupName": { + "description": "parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable.", "type": "string" }, - "podGroupTemplateRef": { - "$ref": "#/definitions/io.k8s.api.scheduling.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." + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" }, "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.", + "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.", "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.", + "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.", "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.", + "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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", "items": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroupResourceClaim" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroupResourceClaim" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -20039,12 +21526,16 @@ "x-kubernetes-patch-strategy": "merge,retainKeys" }, "schedulingConstraints": { - "$ref": "#/definitions/io.k8s.api.scheduling.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." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.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/io.k8s.api.scheduling.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." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.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." + }, + "workloadRef": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadReference", + "description": "workloadRef references an optional PodGroup template within the Workload object that was used to create the PodGroup. This field is immutable." } }, "required": [ @@ -20052,11 +21543,11 @@ ], "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.PodGroupStatus": { + "io.k8s.api.scheduling.v1alpha3.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.", + "description": "conditions represent the latest observations of the PodGroup's state.\n\nKnown condition types: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated\n due to disruption such as preemption.\n\nKnown reasons for the PodGroupInitiallyScheduled 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/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" }, @@ -20069,9 +21560,9 @@ "x-kubernetes-patch-strategy": "merge" }, "resourceClaimStatuses": { - "description": "Status of resource claims.", + "description": "resourceClaimStatuses is status of resource claims.", "items": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroupResourceClaimStatus" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroupResourceClaimStatus" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -20084,30 +21575,34 @@ }, "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.PodGroupTemplate": { + "io.k8s.api.scheduling.v1alpha3.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" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.DisruptionMode", + "description": "disruptionMode defines the mode in which a given PodGroup can be disrupted. One of Single, All. This field is immutable." }, "name": { - "description": "Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.", + "description": "name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.", + "type": "string" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", "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.", + "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. The higher the value, the higher the priority. This field is immutable.", "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.", + "description": "priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable.", "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.", + "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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", "items": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroupResourceClaim" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroupResourceClaim" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -20118,12 +21613,12 @@ "x-kubernetes-patch-strategy": "merge,retainKeys" }, "schedulingConstraints": { - "$ref": "#/definitions/io.k8s.api.scheduling.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." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.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. This field is immutable." }, "schedulingPolicy": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroupSchedulingPolicy", - "description": "SchedulingPolicy defines the scheduling policy for this PodGroupTemplate." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this PodGroupTemplate." } }, "required": [ @@ -20132,28 +21627,19 @@ ], "type": "object" }, - "io.k8s.api.scheduling.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/io.k8s.api.scheduling.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" - } - } - ] + "io.k8s.api.scheduling.v1alpha3.SingleCompositeDisruptionMode": { + "description": "SingleCompositeDisruptionMode means that individual children of a CompositePodGroup can be disrupted or preempted independently.", + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.SingleDisruptionMode": { + "description": "SingleDisruptionMode specifies that children can be disrupted independently.", + "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.TopologyConstraint": { + "io.k8s.api.scheduling.v1alpha3.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\"", + "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" } }, @@ -20162,19 +21648,19 @@ ], "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.TypedLocalObjectReference": { + "io.k8s.api.scheduling.v1alpha3.TypedLocalObjectReference": { "description": "TypedLocalObjectReference allows to reference typed object inside the same namespace.", "properties": { "apiGroup": { - "description": "APIGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain.", + "description": "apiGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain.", "type": "string" }, "kind": { - "description": "Kind is the type of resource being referenced. It must be a path segment name.", + "description": "kind is the type of resource being referenced. It must be a path segment name.", "type": "string" }, "name": { - "description": "Name is the name of resource being referenced. It must be a path segment name.", + "description": "name is the name of resource being referenced. It must be a path segment name.", "type": "string" } }, @@ -20184,7 +21670,7 @@ ], "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.Workload": { + "io.k8s.api.scheduling.v1alpha3.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": { @@ -20197,11 +21683,11 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.WorkloadSpec", - "description": "Spec defines the desired behavior of a Workload." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadSpec", + "description": "spec defines the desired behavior of a Workload." } }, "required": [ @@ -20212,11 +21698,11 @@ { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1alpha3" } ] }, - "io.k8s.api.scheduling.v1alpha2.WorkloadList": { + "io.k8s.api.scheduling.v1alpha3.WorkloadList": { "description": "WorkloadList contains a list of Workload resources.", "properties": { "apiVersion": { @@ -20226,7 +21712,7 @@ "items": { "description": "Items is the list of Workloads.", "items": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" }, "type": "array" }, @@ -20247,39 +21733,152 @@ { "group": "scheduling.k8s.io", "kind": "WorkloadList", - "version": "v1alpha2" + "version": "v1alpha3" + } + ] + }, + "io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupAllDisruptionMode": { + "description": "WorkloadPodGroupAllDisruptionMode indicates that all pods in the group must be disrupted together.", + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupBasicSchedulingPolicy": { + "description": "WorkloadPodGroupBasicSchedulingPolicy indicates standard Kubernetes scheduling behavior.", + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupDisruptionMode": { + "description": "WorkloadPodGroupDisruptionMode defines how individual pods within a group can be disrupted. Exactly one mode must be set.", + "properties": { + "all": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupAllDisruptionMode", + "description": "all specifies that all pods in the group must be disrupted together." + }, + "single": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupSingleDisruptionMode", + "description": "single specifies that pods can be disrupted independently from each other." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } + } + ] + }, + "io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupGangSchedulingPolicy": { + "description": "WorkloadPodGroupGangSchedulingPolicy defines the parameters for gang (all-or-nothing) scheduling.", + "properties": { + "minCount": { + "description": "minCount is the minimum number of pods that must be scheduled at the same time for the scheduler to admit the entire group. This field is optional. If it is not specified, the controller should inject a context-specific sane default (e.g., parallelism for a Job). If set, it must be a positive integer.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupResourceClaim": { + "description": "WorkloadPodGroupResourceClaim references a dynamic resource claim that is shared across pods in the group.", + "properties": { + "name": { + "description": "name uniquely identifies this resource claim inside the group. This field is required. It must be a DNS_LABEL.", + "type": "string" + }, + "resourceClaimName": { + "description": "resourceClaimName is the name of a ResourceClaim object in the same namespace. This field is optional. If it is not specified, no resource claim is used. If set, it must be a DNS subdomain.", + "type": "string" + }, + "resourceClaimTemplateName": { + "description": "resourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace. This field is optional. If it is not specified, no resource claim template is used. If set, it must be a DNS subdomain.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupSchedulingConstraints": { + "description": "WorkloadPodGroupSchedulingConstraints defines leaf-level scheduling constraints, such as topology.", + "properties": { + "topology": { + "description": "topology specifies desired topological placements for all pods within the pod group. If unset, no topology placement is requested.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.TopologyConstraint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupSchedulingPolicy": { + "description": "WorkloadPodGroupSchedulingPolicy defines the scheduling policy for a group of pods managed by a workload controller. Exactly one policy must be set.", + "properties": { + "basic": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupBasicSchedulingPolicy", + "description": "basic specifies that standard, pod-by-pod Kubernetes scheduling behavior should be used." + }, + "gang": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupGangSchedulingPolicy", + "description": "gang specifies all-or-nothing scheduling semantics." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "basic": "Basic", + "gang": "Gang" + } } ] }, - "io.k8s.api.scheduling.v1alpha2.WorkloadPodGroupTemplateReference": { - "description": "WorkloadPodGroupTemplateReference references the PodGroupTemplate within the Workload object.", + "io.k8s.api.scheduling.v1alpha3.WorkloadPodGroupSingleDisruptionMode": { + "description": "WorkloadPodGroupSingleDisruptionMode indicates that individual pods can be disrupted independently.", + "type": "object" + }, + "io.k8s.api.scheduling.v1alpha3.WorkloadReference": { + "description": "WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup.", "properties": { - "podGroupTemplateName": { - "description": "PodGroupTemplateName defines the PodGroupTemplate name within the Workload object.", + "templateName": { + "description": "templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required.", "type": "string" }, "workloadName": { - "description": "WorkloadName defines the name of the Workload object.", + "description": "workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required.", "type": "string" } }, "required": [ "workloadName", - "podGroupTemplateName" + "templateName" ], "type": "object" }, - "io.k8s.api.scheduling.v1alpha2.WorkloadSpec": { + "io.k8s.api.scheduling.v1alpha3.WorkloadSpec": { "description": "WorkloadSpec defines the desired state of a Workload.", "properties": { + "compositePodGroupTemplates": { + "description": "compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.\n\nThis field is used only when the CompositePodGroup feature gate is enabled.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, "controllerRef": { - "$ref": "#/definitions/io.k8s.api.scheduling.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." + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.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." }, "podGroupTemplates": { - "description": "PodGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. This field is immutable.", + "description": "podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.", "items": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroupTemplate" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroupTemplate" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -20288,13 +21887,195 @@ "x-kubernetes-list-type": "map" } }, + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.AllCompositeDisruptionMode": { + "description": "AllCompositeDisruptionMode means that children of a CompositePodGroup can only be disrupted or preempted together.", + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.AllDisruptionMode": { + "description": "AllDisruptionMode specifies that children can only be disrupted together.", + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.BasicSchedulingPolicy": { + "description": "BasicSchedulingPolicy indicates that standard Kubernetes scheduling behavior should be used.", + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.CompositeBasicSchedulingPolicy": { + "description": "CompositeBasicSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled independently.", + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.CompositeDisruptionMode": { + "description": "CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set.", + "properties": { + "all": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.AllCompositeDisruptionMode", + "description": "all specifies that all children groups can only be disrupted together." + }, + "single": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.SingleCompositeDisruptionMode", + "description": "single specifies that children groups can be disrupted independently from each other." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } + } + ] + }, + "io.k8s.api.scheduling.v1beta1.CompositeGangSchedulingPolicy": { + "description": "CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics.", + "properties": { + "minGroupCount": { + "description": "minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.", + "format": "int32", + "type": "integer" + } + }, "required": [ - "podGroupTemplates" + "minGroupCount" ], "type": "object" }, - "io.k8s.api.storage.v1.CSIDriver": { - "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.", + "io.k8s.api.scheduling.v1beta1.CompositePodGroupSchedulingConstraints": { + "description": "CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup.", + "properties": { + "topology": { + "description": "topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.TopologyConstraint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.CompositePodGroupSchedulingPolicy": { + "description": "CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set.", + "properties": { + "basic": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.CompositeBasicSchedulingPolicy", + "description": "basic specifies that the groups of this composite group should be scheduled independently. This field is immutable." + }, + "gang": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.CompositeGangSchedulingPolicy", + "description": "gang specifies that the groups of this composite group should be scheduled using all-or-nothing semantics." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "basic": "Basic", + "gang": "Gang" + } + } + ] + }, + "io.k8s.api.scheduling.v1beta1.CompositePodGroupTemplate": { + "description": "CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.", + "properties": { + "compositePodGroupTemplates": { + "description": "compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.CompositePodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "disruptionMode": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.CompositeDisruptionMode", + "description": "disruptionMode defines the mode in which a given CompositePodGroup can be disrupted. One of Single, All. This field is immutable." + }, + "name": { + "description": "name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required.", + "type": "string" + }, + "podGroupTemplates": { + "description": "podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" + }, + "priority": { + "description": "priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite 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.", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "priorityClassName indicates the priority that should be considered when scheduling a composite 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, composite pod groups created from this template will have the priority set to zero. This field is immutable.", + "type": "string" + }, + "schedulingConstraints": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.CompositePodGroupSchedulingConstraints", + "description": "schedulingConstraints defines optional scheduling constraints (e.g. topology) for this CompositePodGroupTemplate. This field is immutable." + }, + "schedulingPolicy": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.CompositePodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this template." + } + }, + "required": [ + "name", + "schedulingPolicy" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.DisruptionMode": { + "description": "DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set.", + "properties": { + "all": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.AllDisruptionMode", + "description": "all specifies that all children can only be disrupted together." + }, + "single": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.SingleDisruptionMode", + "description": "single specifies that children can be disrupted independently from each other." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } + } + ] + }, + "io.k8s.api.scheduling.v1beta1.GangSchedulingPolicy": { + "description": "GangSchedulingPolicy defines the parameters for gang scheduling.", + "properties": { + "minCount": { + "description": "minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling.\n\nNote that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "minCount" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.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", @@ -20306,11 +22087,15 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. 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/io.k8s.api.storage.v1.CSIDriverSpec", - "description": "spec represents the specification of the CSI Driver." + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroupSpec", + "description": "spec defines the desired state of the PodGroup." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroupStatus", + "description": "status represents the current observed state of the PodGroup." } }, "required": [ @@ -20319,23 +22104,23 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSIDriver", - "version": "v1" + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1beta1" } ] }, - "io.k8s.api.storage.v1.CSIDriverList": { - "description": "CSIDriverList is a collection of CSIDriver objects.", + "io.k8s.api.scheduling.v1beta1.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 CSIDriver", + "description": "Items is the list of PodGroups.", "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" }, "type": "array" }, @@ -20345,7 +22130,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata." } }, "required": [ @@ -20354,41 +22139,481 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSIDriverList", - "version": "v1" + "group": "scheduling.k8s.io", + "kind": "PodGroupList", + "version": "v1beta1" } ] }, - "io.k8s.api.storage.v1.CSIDriverSpec": { - "description": "CSIDriverSpec is the specification of a CSIDriver.", + "io.k8s.api.scheduling.v1beta1.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": { - "attachRequired": { - "description": "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.\n\nThis field is immutable.", - "type": "boolean" - }, - "fsGroupPolicy": { - "description": "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.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.\n\nDefaults 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.", + "name": { + "description": "name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.", "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 feature requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", - "format": "int64", - "type": "integer" - }, - "podInfoOnMount": { - "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" + "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" }, - "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" + "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" + }, + "io.k8s.api.scheduling.v1beta1.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 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" }, - "seLinuxMount": { + "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" + }, + "io.k8s.api.scheduling.v1beta1.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/io.k8s.api.scheduling.v1beta1.TopologyConstraint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.PodGroupSchedulingPolicy": { + "description": "PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it.", + "properties": { + "basic": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.BasicSchedulingPolicy", + "description": "basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward." + }, + "gang": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.GangSchedulingPolicy", + "description": "gang specifies that the pods in this group should be scheduled using all-or-nothing semantics. Setting this field at group creation time opts this group to gang scheduling; this field cannot be set or unset afterward. The minCount field within Gang scheduling policy remains mutable after group creation." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "basic": "Basic", + "gang": "Gang" + } + } + ] + }, + "io.k8s.api.scheduling.v1beta1.PodGroupSpec": { + "description": "PodGroupSpec defines the desired state of a PodGroup.", + "properties": { + "disruptionMode": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.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 Single, All. Defaults to Single if unset. This field is immutable." + }, + "parentCompositePodGroupName": { + "description": "parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable.", + "type": "string" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" + }, + "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.", + "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.", + "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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.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/io.k8s.api.scheduling.v1beta1.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/io.k8s.api.scheduling.v1beta1.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." + }, + "workloadRef": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.WorkloadReference", + "description": "workloadRef references an optional PodGroup template within the Workload object that was used to create the PodGroup. This field is immutable." + } + }, + "required": [ + "schedulingPolicy" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.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: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated\n due to disruption such as preemption.\n\nKnown reasons for the PodGroupInitiallyScheduled 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/io.k8s.apimachinery.pkg.apis.meta.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": "resourceClaimStatuses is status of resource claims.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.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" + }, + "io.k8s.api.scheduling.v1beta1.PodGroupTemplate": { + "description": "PodGroupTemplate represents a template for a set of pods with a scheduling policy.", + "properties": { + "disruptionMode": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.DisruptionMode", + "description": "disruptionMode defines the mode in which a given PodGroup can be disrupted. One of Single, All. This field is immutable." + }, + "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" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "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. The higher the value, the higher the priority. This field is immutable.", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable.", + "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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.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/io.k8s.api.scheduling.v1beta1.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. This field is immutable." + }, + "schedulingPolicy": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this PodGroupTemplate." + } + }, + "required": [ + "name", + "schedulingPolicy" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.SingleCompositeDisruptionMode": { + "description": "SingleCompositeDisruptionMode means that individual children of a CompositePodGroup can be disrupted or preempted independently.", + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.SingleDisruptionMode": { + "description": "SingleDisruptionMode specifies that children can be disrupted independently.", + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.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" + }, + "io.k8s.api.scheduling.v1beta1.TypedLocalObjectReference": { + "description": "TypedLocalObjectReference allows to reference typed object inside the same namespace.", + "properties": { + "apiGroup": { + "description": "apiGroup is the group for the resource being referenced. If apiGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting apiGroup is required. It must be a DNS subdomain.", + "type": "string" + }, + "kind": { + "description": "kind is the type of resource being referenced. It must be a path segment name.", + "type": "string" + }, + "name": { + "description": "name is the name of resource being referenced. It must be a path segment name.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.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", + "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/io.k8s.apimachinery.pkg.apis.meta.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/io.k8s.api.scheduling.v1beta1.WorkloadSpec", + "description": "spec defines the desired behavior of a Workload." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.scheduling.v1beta1.WorkloadList": { + "description": "WorkloadList contains a list of Workload 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 Workloads.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" + }, + "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/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "metadata is the standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "WorkloadList", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.scheduling.v1beta1.WorkloadReference": { + "description": "WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup.", + "properties": { + "templateName": { + "description": "templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required.", + "type": "string" + }, + "workloadName": { + "description": "workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required.", + "type": "string" + } + }, + "required": [ + "workloadName", + "templateName" + ], + "type": "object" + }, + "io.k8s.api.scheduling.v1beta1.WorkloadSpec": { + "description": "WorkloadSpec defines the desired state of a Workload.", + "properties": { + "compositePodGroupTemplates": { + "description": "compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.\n\nThis field is used only when the CompositePodGroup feature gate is enabled.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.CompositePodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "controllerRef": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.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." + }, + "podGroupTemplates": { + "description": "podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.", + "items": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object" + }, + "io.k8s.api.storage.v1.CSIDriver": { + "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.", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "metadata is the standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriverSpec", + "description": "spec represents the specification of the CSI Driver." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSIDriverList": { + "description": "CSIDriverList is a collection of CSIDriver 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", + "type": "string" + }, + "items": { + "description": "items is the list of CSIDriver", + "items": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + }, + "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/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIDriverList", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSIDriverSpec": { + "description": "CSIDriverSpec is the specification of a CSIDriver.", + "properties": { + "attachRequired": { + "description": "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.\n\nThis field is immutable.", + "type": "boolean" + }, + "fsGroupPolicy": { + "description": "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.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.\n\nDefaults 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.", + "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 feature requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", + "format": "int64", + "type": "integer" + }, + "podInfoOnMount": { + "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 a beta 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" + }, + "seLinuxMount": { "description": "seLinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"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.\n\nWhen \"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.\n\nDefault is \"false\".", "type": "boolean" }, @@ -20432,11 +22657,15 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. metadata.name must be the Kubernetes node name." + "description": "metadata is the standard object metadata. metadata.name must be the Kubernetes node name." }, "spec": { "$ref": "#/definitions/io.k8s.api.storage.v1.CSINodeSpec", "description": "spec is the specification of CSINode" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINodeStatus", + "description": "status contains health and status information for the node's storage." } }, "required": [ @@ -20538,6 +22767,25 @@ ], "type": "object" }, + "io.k8s.api.storage.v1.CSINodeStatus": { + "description": "CSINodeStatus contains health and status information for storage on a node.", + "properties": { + "storageHealth": { + "description": "storageHealth contains backend health reports for CSI drivers registered on the node.", + "items": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageHealth" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, "io.k8s.api.storage.v1.CSIStorageCapacity": { "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.\n\nFor 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\"\n\nThe 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\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey 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.", "properties": { @@ -20559,7 +22807,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "nodeTopology": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", @@ -20642,7 +22890,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "mountOptions": { "description": "mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.", @@ -20719,6 +22967,61 @@ } ] }, + "io.k8s.api.storage.v1.StorageHealth": { + "description": "StorageHealth contains storage backend health reported by a CSI driver on a node.", + "properties": { + "healthConditions": { + "description": "healthConditions are the adverse storage backend conditions reported by the CSI driver. At most 16 conditions may be reported.", + "items": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageHealthCondition" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "name is the CSI driver name, matching CSINodeDriver.name.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.storage.v1.StorageHealthCondition": { + "description": "StorageHealthCondition represents an adverse health condition reported by a CSI driver for its storage backend on a node.", + "properties": { + "accessMode": { + "description": "accessMode is the access mode affected. Nil means all access modes are affected.", + "type": "string" + }, + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is when this condition first appeared at its current state." + }, + "message": { + "description": "message is a human-readable description. Maximum permitted length of a message is 1024 characters.", + "type": "string" + }, + "reason": { + "description": "reason is a brief CamelCase machine-parseable reason. Maximum permitted length of a reason is 256 characters.", + "type": "string" + }, + "status": { + "description": "status is the health status category. One of \"StorageUnreachable\", \"StorageDegraded\".", + "type": "string" + }, + "volumeMode": { + "description": "volumeMode is the volume mode affected. Nil means both are affected.", + "type": "string" + } + }, + "required": [ + "status", + "reason" + ], + "type": "object" + }, "io.k8s.api.storage.v1.TokenRequest": { "description": "TokenRequest contains parameters of a service account token.", "properties": { @@ -20750,7 +23053,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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/io.k8s.api.storage.v1.VolumeAttachmentSpec", @@ -20881,7 +23184,7 @@ "type": "string" }, "driverName": { - "description": "Name of the CSI driver This field is immutable.", + "description": "driverName is the name of the CSI driver This field is immutable.", "type": "string" }, "kind": { @@ -20890,7 +23193,7 @@ }, "metadata": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "parameters": { "additionalProperties": { @@ -20977,56 +23280,50 @@ }, "type": "object" }, - "io.k8s.api.storage.v1beta1.VolumeAttributesClass": { - "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.", + "io.k8s.api.storagemigration.v1.StorageVersionMigration": { + "description": "StorageVersionMigration represents a migration of stored data to the latest storage version.", "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" }, - "driverName": { - "description": "Name of the CSI driver This field is immutable.", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "parameters": { - "additionalProperties": { - "type": "string" - }, - "description": "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\n\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.", - "type": "object" + "spec": { + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigrationSpec", + "description": "Specification of the migration." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigrationStatus", + "description": "Status of the migration." } }, - "required": [ - "driverName" - ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } ] }, - "io.k8s.api.storage.v1beta1.VolumeAttributesClassList": { - "description": "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.", + "io.k8s.api.storagemigration.v1.StorageVersionMigrationList": { + "description": "StorageVersionMigrationList is a collection of storage version migrations.", "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 VolumeAttributesClass objects.", + "description": "Items is the list of StorageVersionMigration", "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" }, "type": "array" }, @@ -21045,12 +23342,48 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClassList", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigrationList", + "version": "v1" } ] }, + "io.k8s.api.storagemigration.v1.StorageVersionMigrationSpec": { + "description": "Spec of the storage version migration.", + "properties": { + "resource": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupResource", + "description": "The resource that is being migrated. The migrator sends requests to the endpoint serving the resource. Immutable." + } + }, + "required": [ + "resource" + ], + "type": "object" + }, + "io.k8s.api.storagemigration.v1.StorageVersionMigrationStatus": { + "description": "Status of the storage version migration.", + "properties": { + "conditions": { + "description": "The latest available observations of the migration's current state.", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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" + }, + "resourceVersion": { + "description": "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.", + "type": "string" + } + }, + "type": "object" + }, "io.k8s.api.storagemigration.v1beta1.StorageVersionMigration": { "description": "StorageVersionMigration represents a migration of stored data to the latest storage version.", "properties": { @@ -22376,6 +24709,11 @@ "kind": "DeleteOptions", "version": "v1alpha1" }, + { + "group": "lifecycle.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, { "group": "networking.k8s.io", "kind": "DeleteOptions", @@ -22454,7 +24792,7 @@ { "group": "scheduling.k8s.io", "kind": "DeleteOptions", - "version": "v1alpha2" + "version": "v1alpha3" }, { "group": "scheduling.k8s.io", @@ -22476,6 +24814,11 @@ "kind": "DeleteOptions", "version": "v1beta1" }, + { + "group": "storagemigration.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, { "group": "storagemigration.k8s.io", "kind": "DeleteOptions", @@ -23155,6 +25498,11 @@ "kind": "WatchEvent", "version": "v1alpha1" }, + { + "group": "lifecycle.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, { "group": "networking.k8s.io", "kind": "WatchEvent", @@ -23233,7 +25581,7 @@ { "group": "scheduling.k8s.io", "kind": "WatchEvent", - "version": "v1alpha2" + "version": "v1alpha3" }, { "group": "scheduling.k8s.io", @@ -23255,6 +25603,11 @@ "kind": "WatchEvent", "version": "v1beta1" }, + { + "group": "storagemigration.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, { "group": "storagemigration.k8s.io", "kind": "WatchEvent", @@ -23263,7 +25616,7 @@ ] }, "io.k8s.apimachinery.pkg.runtime.RawExtension": { - "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.Object `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// External package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// On the wire, the JSON will look something like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\":\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", + "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\"\"`\n\t\tMyPlugin runtime.Object `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// External package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\"\"`\n\t\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// On the wire, the JSON will look something like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\":\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", "type": "object" }, "io.k8s.apimachinery.pkg.util.intstr.IntOrString": { @@ -23890,14 +26243,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get available API versions", "operationId": "getCoreAPIVersions", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -40462,14 +42817,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get available API versions", "operationId": "getAPIVersions", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -40495,14 +42852,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAdmissionregistrationAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -47484,14 +49843,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getApiextensionsAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -48409,14 +50770,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getApiregistrationAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -49334,14 +51697,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAppsAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -54940,14 +57305,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAuthenticationAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -55172,14 +57539,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAuthorizationAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -55571,14 +57940,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAutoscalingAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -57734,14 +60105,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getBatchAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -59862,14 +62235,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getCertificatesAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -60807,214 +63182,13 @@ } } }, - "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of CertificateSigningRequest. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCertificatesV1CertificateSigningRequestList", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind CertificateSigningRequest. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCertificatesV1CertificateSigningRequest", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the CertificateSigningRequest", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/certificates.k8s.io/v1alpha1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "description": "get available resources", - "operationId": "getCertificatesV1alpha1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1alpha1" - ] - } - }, - "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles": { + "/apis/certificates.k8s.io/v1/clustertrustbundles": { "delete": { "consumes": [ "*/*" ], "description": "delete collection of ClusterTrustBundle", - "operationId": "deleteCertificatesV1alpha1CollectionClusterTrustBundle", + "operationId": "deleteCertificatesV1CollectionClusterTrustBundle", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -61087,13 +63261,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } }, "get": { @@ -61101,7 +63275,7 @@ "*/*" ], "description": "list or watch objects of kind ClusterTrustBundle", - "operationId": "listCertificatesV1alpha1ClusterTrustBundle", + "operationId": "listCertificatesV1ClusterTrustBundle", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -61150,7 +63324,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundleList" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundleList" } }, "401": { @@ -61161,13 +63335,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } }, "parameters": [ @@ -61180,14 +63354,14 @@ "*/*" ], "description": "create a ClusterTrustBundle", - "operationId": "createCertificatesV1alpha1ClusterTrustBundle", + "operationId": "createCertificatesV1ClusterTrustBundle", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, { @@ -61218,19 +63392,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, "401": { @@ -61241,23 +63415,23 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } } }, - "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}": { + "/apis/certificates.k8s.io/v1/clustertrustbundles/{name}": { "delete": { "consumes": [ "*/*" ], "description": "delete a ClusterTrustBundle", - "operationId": "deleteCertificatesV1alpha1ClusterTrustBundle", + "operationId": "deleteCertificatesV1ClusterTrustBundle", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -61309,13 +63483,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } }, "get": { @@ -61323,7 +63497,7 @@ "*/*" ], "description": "read the specified ClusterTrustBundle", - "operationId": "readCertificatesV1alpha1ClusterTrustBundle", + "operationId": "readCertificatesV1ClusterTrustBundle", "produces": [ "application/json", "application/yaml", @@ -61334,7 +63508,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, "401": { @@ -61345,13 +63519,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } }, "parameters": [ @@ -61376,7 +63550,7 @@ "application/apply-patch+cbor" ], "description": "partially update the specified ClusterTrustBundle", - "operationId": "patchCertificatesV1alpha1ClusterTrustBundle", + "operationId": "patchCertificatesV1ClusterTrustBundle", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -61412,13 +63586,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, "401": { @@ -61429,13 +63603,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } }, "put": { @@ -61443,14 +63617,14 @@ "*/*" ], "description": "replace the specified ClusterTrustBundle", - "operationId": "replaceCertificatesV1alpha1ClusterTrustBundle", + "operationId": "replaceCertificatesV1ClusterTrustBundle", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, { @@ -61481,13 +63655,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.ClusterTrustBundle" } }, "401": { @@ -61498,224 +63672,23 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" - } - } - }, - "/apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ClusterTrustBundle. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCertificatesV1alpha1ClusterTrustBundleList", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1alpha1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind ClusterTrustBundle. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCertificatesV1alpha1ClusterTrustBundle", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1alpha1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the ClusterTrustBundle", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "version": "v1" } - ] - }, - "/apis/certificates.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "description": "get available resources", - "operationId": "getCertificatesV1beta1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ] } }, - "/apis/certificates.k8s.io/v1beta1/clustertrustbundles": { + "/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ClusterTrustBundle", - "operationId": "deleteCertificatesV1beta1CollectionClusterTrustBundle", + "description": "delete collection of PodCertificateRequest", + "operationId": "deleteCertificatesV1CollectionNamespacedPodCertificateRequest", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -61788,21 +63761,21 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ClusterTrustBundle", - "operationId": "listCertificatesV1beta1ClusterTrustBundle", + "description": "list or watch objects of kind PodCertificateRequest", + "operationId": "listCertificatesV1NamespacedPodCertificateRequest", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -61851,7 +63824,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundleList" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequestList" } }, "401": { @@ -61862,16 +63835,19 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" } }, "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -61880,15 +63856,15 @@ "consumes": [ "*/*" ], - "description": "create a ClusterTrustBundle", - "operationId": "createCertificatesV1beta1ClusterTrustBundle", + "description": "create a PodCertificateRequest", + "operationId": "createCertificatesV1NamespacedPodCertificateRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, { @@ -61919,19 +63895,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "401": { @@ -61942,23 +63918,23 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" } } }, - "/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}": { + "/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ClusterTrustBundle", - "operationId": "deleteCertificatesV1beta1ClusterTrustBundle", + "description": "delete a PodCertificateRequest", + "operationId": "deleteCertificatesV1NamespacedPodCertificateRequest", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -62010,21 +63986,21 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ClusterTrustBundle", - "operationId": "readCertificatesV1beta1ClusterTrustBundle", + "description": "read the specified PodCertificateRequest", + "operationId": "readCertificatesV1NamespacedPodCertificateRequest", "produces": [ "application/json", "application/yaml", @@ -62035,7 +64011,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "401": { @@ -62046,24 +64022,27 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" } }, "parameters": [ { - "description": "name of the ClusterTrustBundle", + "description": "name of the PodCertificateRequest", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -62076,8 +64055,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ClusterTrustBundle", - "operationId": "patchCertificatesV1beta1ClusterTrustBundle", + "description": "partially update the specified PodCertificateRequest", + "operationId": "patchCertificatesV1NamespacedPodCertificateRequest", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -62113,13 +64092,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "401": { @@ -62130,28 +64109,28 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified ClusterTrustBundle", - "operationId": "replaceCertificatesV1beta1ClusterTrustBundle", + "description": "replace the specified PodCertificateRequest", + "operationId": "replaceCertificatesV1NamespacedPodCertificateRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, { @@ -62182,13 +64161,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "401": { @@ -62199,74 +64178,23 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" } } }, - "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests": { - "delete": { + "/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of PodCertificateRequest", - "operationId": "deleteCertificatesV1beta1CollectionNamespacedPodCertificateRequest", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - } - ], + "description": "read status of the specified PodCertificateRequest", + "operationId": "readCertificatesV1NamespacedPodCertificateRequestStatus", "produces": [ "application/json", "application/yaml", @@ -62277,7 +64205,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "401": { @@ -62288,70 +64216,83 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" } }, - "get": { + "parameters": [ + { + "description": "name of the PodCertificateRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" ], - "description": "list or watch objects of kind PodCertificateRequest", - "operationId": "listCertificatesV1beta1NamespacedPodCertificateRequest", + "description": "partially update status of the specified PodCertificateRequest", + "operationId": "patchCertificatesV1NamespacedPodCertificateRequestStatus", "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + "$ref": "#/parameters/body-78PwaGsr" }, { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 }, { - "$ref": "#/parameters/shardSelector-Kgyki_3_" + "$ref": "#/parameters/fieldManager-7c6nTn1T" }, { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "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 }, { - "$ref": "#/parameters/watch-XNNPZGbK" + "$ref": "#/parameters/force-tOGGb0Yi" } ], "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/io.k8s.api.certificates.v1beta1.PodCertificateRequestList" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "401": { @@ -62362,36 +64303,28 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" } }, - "parameters": [ - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "post": { + "put": { "consumes": [ "*/*" ], - "description": "create a PodCertificateRequest", - "operationId": "createCertificatesV1beta1NamespacedPodCertificateRequest", + "description": "replace status of the specified PodCertificateRequest", + "operationId": "replaceCertificatesV1NamespacedPodCertificateRequestStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, { @@ -62422,19 +64355,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequest" } }, "401": { @@ -62445,64 +64372,37 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" } } }, - "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}": { - "delete": { + "/apis/certificates.k8s.io/v1/podcertificaterequests": { + "get": { "consumes": [ "*/*" ], - "description": "delete a PodCertificateRequest", - "operationId": "deleteCertificatesV1beta1NamespacedPodCertificateRequest", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - } - ], + "description": "list or watch objects of kind PodCertificateRequest", + "operationId": "listCertificatesV1PodCertificateRequestForAllNamespaces", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.certificates.v1.PodCertificateRequestList" } }, "401": { @@ -62513,32 +64413,75 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests": { "get": { "consumes": [ "*/*" ], - "description": "read the specified PodCertificateRequest", - "operationId": "readCertificatesV1beta1NamespacedPodCertificateRequest", + "description": "watch individual changes to a list of CertificateSigningRequest. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCertificatesV1CertificateSigningRequestList", "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/io.k8s.api.certificates.v1beta1.PodCertificateRequest" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -62549,83 +64492,75 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" + "kind": "CertificateSigningRequest", + "version": "v1" } }, "parameters": [ { - "description": "name of the PodCertificateRequest", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" }, { - "$ref": "#/parameters/namespace-vgWSWtn3" + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "patch": { + ] + }, + "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified PodCertificateRequest", - "operationId": "patchCertificatesV1beta1NamespacedPodCertificateRequest", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } + "*/*" ], + "description": "watch changes to an object of kind CertificateSigningRequest. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCertificatesV1CertificateSigningRequest", "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/io.k8s.api.certificates.v1beta1.PodCertificateRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -62636,65 +64571,83 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" + "kind": "CertificateSigningRequest", + "version": "v1" } }, - "put": { + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the CertificateSigningRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/certificates.k8s.io/v1/watch/clustertrustbundles": { + "get": { "consumes": [ "*/*" ], - "description": "replace the specified PodCertificateRequest", - "operationId": "replaceCertificatesV1beta1NamespacedPodCertificateRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": "watch individual changes to a list of ClusterTrustBundle. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCertificatesV1ClusterTrustBundleList", "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/io.k8s.api.certificates.v1beta1.PodCertificateRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -62705,327 +64658,13 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" - } - } - }, - "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified PodCertificateRequest", - "operationId": "readCertificatesV1beta1NamespacedPodCertificateRequestStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.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 - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified PodCertificateRequest", - "operationId": "patchCertificatesV1beta1NamespacedPodCertificateRequestStatus", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.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" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified PodCertificateRequest", - "operationId": "replaceCertificatesV1beta1NamespacedPodCertificateRequestStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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/io.k8s.api.certificates.v1beta1.PodCertificateRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.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" - } - } - }, - "/apis/certificates.k8s.io/v1beta1/podcertificaterequests": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodCertificateRequest", - "operationId": "listCertificatesV1beta1PodCertificateRequestForAllNamespaces", - "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/io.k8s.api.certificates.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": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ClusterTrustBundle. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCertificatesV1beta1ClusterTrustBundleList", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "ClusterTrustBundle", + "version": "v1" } }, "parameters": [ @@ -63067,13 +64706,13 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles/{name}": { + "/apis/certificates.k8s.io/v1/watch/clustertrustbundles/{name}": { "get": { "consumes": [ "*/*" ], "description": "watch changes to an object of kind ClusterTrustBundle. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCertificatesV1beta1ClusterTrustBundle", + "operationId": "watchCertificatesV1ClusterTrustBundle", "produces": [ "application/json", "application/yaml", @@ -63098,13 +64737,13 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1beta1" + "version": "v1" } }, "parameters": [ @@ -63154,13 +64793,13 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests": { + "/apis/certificates.k8s.io/v1/watch/namespaces/{namespace}/podcertificaterequests": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of PodCertificateRequest. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCertificatesV1beta1NamespacedPodCertificateRequestList", + "operationId": "watchCertificatesV1NamespacedPodCertificateRequestList", "produces": [ "application/json", "application/yaml", @@ -63185,13 +64824,13 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" } }, "parameters": [ @@ -63236,13 +64875,13 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests/{name}": { + "/apis/certificates.k8s.io/v1/watch/namespaces/{namespace}/podcertificaterequests/{name}": { "get": { "consumes": [ "*/*" ], "description": "watch changes to an object of kind PodCertificateRequest. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCertificatesV1beta1NamespacedPodCertificateRequest", + "operationId": "watchCertificatesV1NamespacedPodCertificateRequest", "produces": [ "application/json", "application/yaml", @@ -63267,13 +64906,13 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" } }, "parameters": [ @@ -63326,13 +64965,13 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/podcertificaterequests": { + "/apis/certificates.k8s.io/v1/watch/podcertificaterequests": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of PodCertificateRequest. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCertificatesV1beta1PodCertificateRequestListForAllNamespaces", + "operationId": "watchCertificatesV1PodCertificateRequestListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -63357,13 +64996,13 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" } }, "parameters": [ @@ -63405,40 +65044,7 @@ } ] }, - "/apis/coordination.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getCoordinationAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination" - ] - } - }, - "/apis/coordination.k8s.io/v1/": { + "/apis/certificates.k8s.io/v1beta1/": { "get": { "consumes": [ "application/json", @@ -63447,7 +65053,7 @@ "application/cbor" ], "description": "get available resources", - "operationId": "getCoordinationV1APIResources", + "operationId": "getCertificatesV1beta1APIResources", "produces": [ "application/json", "application/yaml", @@ -63469,96 +65075,17 @@ "https" ], "tags": [ - "coordination_v1" + "certificates_v1beta1" ] } }, - "/apis/coordination.k8s.io/v1/leases": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Lease", - "operationId": "listCoordinationV1LeaseForAllNamespaces", - "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/io.k8s.api.coordination.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": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases": { + "/apis/certificates.k8s.io/v1beta1/clustertrustbundles": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Lease", - "operationId": "deleteCoordinationV1CollectionNamespacedLease", + "description": "delete collection of ClusterTrustBundle", + "operationId": "deleteCertificatesV1beta1CollectionClusterTrustBundle", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -63631,21 +65158,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Lease", - "operationId": "listCoordinationV1NamespacedLease", + "description": "list or watch objects of kind ClusterTrustBundle", + "operationId": "listCertificatesV1beta1ClusterTrustBundle", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -63694,7 +65221,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.LeaseList" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundleList" } }, "401": { @@ -63705,19 +65232,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": [ - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -63726,15 +65250,15 @@ "consumes": [ "*/*" ], - "description": "create a Lease", - "operationId": "createCoordinationV1NamespacedLease", + "description": "create a ClusterTrustBundle", + "operationId": "createCertificatesV1beta1ClusterTrustBundle", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, { @@ -63765,19 +65289,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, "401": { @@ -63788,23 +65312,23 @@ "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" } } }, - "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}": { + "/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a Lease", - "operationId": "deleteCoordinationV1NamespacedLease", + "description": "delete a ClusterTrustBundle", + "operationId": "deleteCertificatesV1beta1ClusterTrustBundle", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -63856,21 +65380,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified Lease", - "operationId": "readCoordinationV1NamespacedLease", + "description": "read the specified ClusterTrustBundle", + "operationId": "readCertificatesV1beta1ClusterTrustBundle", "produces": [ "application/json", "application/yaml", @@ -63881,7 +65405,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, "401": { @@ -63892,27 +65416,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 }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -63925,8 +65446,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified Lease", - "operationId": "patchCoordinationV1NamespacedLease", + "description": "partially update the specified ClusterTrustBundle", + "operationId": "patchCertificatesV1beta1ClusterTrustBundle", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -63962,13 +65483,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, "401": { @@ -63979,28 +65500,28 @@ "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" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified Lease", - "operationId": "replaceCoordinationV1NamespacedLease", + "description": "replace the specified ClusterTrustBundle", + "operationId": "replaceCertificatesV1beta1ClusterTrustBundle", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, { @@ -64031,13 +65552,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.ClusterTrustBundle" } }, "401": { @@ -64048,388 +65569,23 @@ "https" ], "tags": [ - "coordination_v1" + "certificates_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - } - }, - "/apis/coordination.k8s.io/v1/watch/leases": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Lease. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoordinationV1LeaseListForAllNamespaces", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Lease. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoordinationV1NamespacedLeaseList", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind Lease. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoordinationV1NamespacedLease", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the Lease", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1beta1" } - ] - }, - "/apis/coordination.k8s.io/v1alpha2/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "description": "get available resources", - "operationId": "getCoordinationV1alpha2APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1alpha2" - ] } }, - "/apis/coordination.k8s.io/v1alpha2/leasecandidates": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind LeaseCandidate", - "operationId": "listCoordinationV1alpha2LeaseCandidateForAllNamespaces", - "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/io.k8s.api.coordination.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": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates": { + "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of LeaseCandidate", - "operationId": "deleteCoordinationV1alpha2CollectionNamespacedLeaseCandidate", + "description": "delete collection of PodCertificateRequest", + "operationId": "deleteCertificatesV1beta1CollectionNamespacedPodCertificateRequest", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -64502,21 +65658,21 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind LeaseCandidate", - "operationId": "listCoordinationV1alpha2NamespacedLeaseCandidate", + "description": "list or watch objects of kind PodCertificateRequest", + "operationId": "listCertificatesV1beta1NamespacedPodCertificateRequest", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -64565,7 +65721,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidateList" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequestList" } }, "401": { @@ -64576,13 +65732,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": [ @@ -64597,15 +65753,15 @@ "consumes": [ "*/*" ], - "description": "create a LeaseCandidate", - "operationId": "createCoordinationV1alpha2NamespacedLeaseCandidate", + "description": "create a PodCertificateRequest", + "operationId": "createCertificatesV1beta1NamespacedPodCertificateRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, { @@ -64636,19 +65792,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, "401": { @@ -64659,23 +65815,23 @@ "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" } } }, - "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}": { + "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a LeaseCandidate", - "operationId": "deleteCoordinationV1alpha2NamespacedLeaseCandidate", + "description": "delete a PodCertificateRequest", + "operationId": "deleteCertificatesV1beta1NamespacedPodCertificateRequest", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -64727,21 +65883,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified LeaseCandidate", - "operationId": "readCoordinationV1alpha2NamespacedLeaseCandidate", + "description": "read the specified PodCertificateRequest", + "operationId": "readCertificatesV1beta1NamespacedPodCertificateRequest", "produces": [ "application/json", "application/yaml", @@ -64752,7 +65908,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, "401": { @@ -64763,18 +65919,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, @@ -64796,8 +65952,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified LeaseCandidate", - "operationId": "patchCoordinationV1alpha2NamespacedLeaseCandidate", + "description": "partially update the specified PodCertificateRequest", + "operationId": "patchCertificatesV1beta1NamespacedPodCertificateRequest", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -64833,13 +65989,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, "401": { @@ -64850,28 +66006,28 @@ "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" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified LeaseCandidate", - "operationId": "replaceCoordinationV1alpha2NamespacedLeaseCandidate", + "description": "replace the specified PodCertificateRequest", + "operationId": "replaceCertificatesV1beta1NamespacedPodCertificateRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, { @@ -64902,13 +66058,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" } }, "401": { @@ -64919,23 +66075,217 @@ "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" } } }, - "/apis/coordination.k8s.io/v1alpha2/watch/leasecandidates": { + "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoordinationV1alpha2LeaseCandidateListForAllNamespaces", + "description": "read status of the specified PodCertificateRequest", + "operationId": "readCertificatesV1beta1NamespacedPodCertificateRequestStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.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 + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified PodCertificateRequest", + "operationId": "patchCertificatesV1beta1NamespacedPodCertificateRequestStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.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" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PodCertificateRequest", + "operationId": "replaceCertificatesV1beta1NamespacedPodCertificateRequestStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.certificates.v1beta1.PodCertificateRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.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" + } + } + }, + "/apis/certificates.k8s.io/v1beta1/podcertificaterequests": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodCertificateRequest", + "operationId": "listCertificatesV1beta1PodCertificateRequestForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -64949,7 +66299,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequestList" } }, "401": { @@ -64960,13 +66310,13 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], - "x-kubernetes-action": "watchlist", + "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": [ @@ -65008,13 +66358,13 @@ } ] }, - "/apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates": { + "/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoordinationV1alpha2NamespacedLeaseCandidateList", + "description": "watch individual changes to a list of ClusterTrustBundle. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCertificatesV1beta1ClusterTrustBundleList", "produces": [ "application/json", "application/yaml", @@ -65039,13 +66389,13 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1beta1" } }, "parameters": [ @@ -65064,9 +66414,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -65090,13 +66437,13 @@ } ] }, - "/apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates/{name}": { + "/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoordinationV1alpha2NamespacedLeaseCandidate", + "description": "watch changes to an object of kind ClusterTrustBundle. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCertificatesV1beta1ClusterTrustBundle", "produces": [ "application/json", "application/yaml", @@ -65121,13 +66468,13 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1beta1" } }, "parameters": [ @@ -65147,16 +66494,13 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the LeaseCandidate", + "description": "name of the ClusterTrustBundle", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -65180,48 +66524,13 @@ } ] }, - "/apis/coordination.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "description": "get available resources", - "operationId": "getCoordinationV1beta1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1beta1" - ] - } - }, - "/apis/coordination.k8s.io/v1beta1/leasecandidates": { + "/apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind LeaseCandidate", - "operationId": "listCoordinationV1beta1LeaseCandidateForAllNamespaces", + "description": "watch individual changes to a list of PodCertificateRequest. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCertificatesV1beta1NamespacedPodCertificateRequestList", "produces": [ "application/json", "application/yaml", @@ -65235,7 +66544,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidateList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -65246,12 +66555,12 @@ "https" ], "tags": [ - "coordination_v1beta1" + "certificates_v1beta1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", "version": "v1beta1" } }, @@ -65271,6 +66580,9 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -65294,75 +66606,27 @@ } ] }, - "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates": { - "delete": { + "/apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of LeaseCandidate", - "operationId": "deleteCoordinationV1beta1CollectionNamespacedLeaseCandidate", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - } - ], + "description": "watch changes to an object of kind PodCertificateRequest. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCertificatesV1beta1NamespacedPodCertificateRequest", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -65373,56 +66637,72 @@ "https" ], "tags": [ - "coordination_v1beta1" + "certificates_v1beta1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", "version": "v1beta1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the PodCertificateRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/certificates.k8s.io/v1beta1/watch/podcertificaterequests": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind LeaseCandidate", - "operationId": "listCoordinationV1beta1NamespacedLeaseCandidate", - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ], + "description": "watch individual changes to a list of PodCertificateRequest. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCertificatesV1beta1PodCertificateRequestListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -65436,7 +66716,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidateList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -65447,36 +66727,386 @@ "https" ], "tags": [ - "coordination_v1beta1" + "certificates_v1beta1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", "version": "v1beta1" } }, "parameters": [ { - "$ref": "#/parameters/namespace-vgWSWtn3" + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" }, { "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a LeaseCandidate", - "operationId": "createCoordinationV1beta1NamespacedLeaseCandidate", - "parameters": [ - { - "in": "body", - "name": "body", + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/coordination.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get information of a group", + "operationId": "getCoordinationAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination" + ] + } + }, + "/apis/coordination.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get available resources", + "operationId": "getCoordinationV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ] + } + }, + "/apis/coordination.k8s.io/v1/leases": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Lease", + "operationId": "listCoordinationV1LeaseForAllNamespaces", + "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/io.k8s.api.coordination.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": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Lease", + "operationId": "deleteCoordinationV1CollectionNamespacedLease", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Lease", + "operationId": "listCoordinationV1NamespacedLease", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "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/io.k8s.api.coordination.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": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a Lease", + "operationId": "createCoordinationV1NamespacedLease", + "parameters": [ + { + "in": "body", + "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, { @@ -65507,19 +67137,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, "401": { @@ -65530,23 +67160,23 @@ "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" } } }, - "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}": { + "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a LeaseCandidate", - "operationId": "deleteCoordinationV1beta1NamespacedLeaseCandidate", + "description": "delete a Lease", + "operationId": "deleteCoordinationV1NamespacedLease", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -65598,21 +67228,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified LeaseCandidate", - "operationId": "readCoordinationV1beta1NamespacedLeaseCandidate", + "description": "read the specified Lease", + "operationId": "readCoordinationV1NamespacedLease", "produces": [ "application/json", "application/yaml", @@ -65623,7 +67253,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, "401": { @@ -65634,18 +67264,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, @@ -65667,8 +67297,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified LeaseCandidate", - "operationId": "patchCoordinationV1beta1NamespacedLeaseCandidate", + "description": "partially update the specified Lease", + "operationId": "patchCoordinationV1NamespacedLease", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -65704,13 +67334,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, "401": { @@ -65721,28 +67351,28 @@ "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" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified LeaseCandidate", - "operationId": "replaceCoordinationV1beta1NamespacedLeaseCandidate", + "description": "replace the specified Lease", + "operationId": "replaceCoordinationV1NamespacedLease", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, { @@ -65773,13 +67403,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, "401": { @@ -65790,23 +67420,23 @@ "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" } } }, - "/apis/coordination.k8s.io/v1beta1/watch/leasecandidates": { + "/apis/coordination.k8s.io/v1/watch/leases": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoordinationV1beta1LeaseCandidateListForAllNamespaces", + "description": "watch individual changes to a list of Lease. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoordinationV1LeaseListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -65831,13 +67461,13 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" } }, "parameters": [ @@ -65879,13 +67509,13 @@ } ] }, - "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates": { + "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoordinationV1beta1NamespacedLeaseCandidateList", + "description": "watch individual changes to a list of Lease. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoordinationV1NamespacedLeaseList", "produces": [ "application/json", "application/yaml", @@ -65910,13 +67540,13 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" } }, "parameters": [ @@ -65961,13 +67591,13 @@ } ] }, - "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates/{name}": { + "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoordinationV1beta1NamespacedLeaseCandidate", + "description": "watch changes to an object of kind Lease. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoordinationV1NamespacedLease", "produces": [ "application/json", "application/yaml", @@ -65992,13 +67622,13 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" } }, "parameters": [ @@ -66018,7 +67648,7 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the LeaseCandidate", + "description": "name of the Lease", "in": "path", "name": "name", "required": true, @@ -66051,40 +67681,7 @@ } ] }, - "/apis/discovery.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getDiscoveryAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery" - ] - } - }, - "/apis/discovery.k8s.io/v1/": { + "/apis/coordination.k8s.io/v1alpha2/": { "get": { "consumes": [ "application/json", @@ -66093,7 +67690,7 @@ "application/cbor" ], "description": "get available resources", - "operationId": "getDiscoveryV1APIResources", + "operationId": "getCoordinationV1alpha2APIResources", "produces": [ "application/json", "application/yaml", @@ -66115,17 +67712,17 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ] } }, - "/apis/discovery.k8s.io/v1/endpointslices": { + "/apis/coordination.k8s.io/v1alpha2/leasecandidates": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listDiscoveryV1EndpointSliceForAllNamespaces", + "description": "list or watch objects of kind LeaseCandidate", + "operationId": "listCoordinationV1alpha2LeaseCandidateForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -66139,7 +67736,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSliceList" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidateList" } }, "401": { @@ -66150,13 +67747,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": [ @@ -66198,13 +67795,13 @@ } ] }, - "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices": { + "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of EndpointSlice", - "operationId": "deleteDiscoveryV1CollectionNamespacedEndpointSlice", + "description": "delete collection of LeaseCandidate", + "operationId": "deleteCoordinationV1alpha2CollectionNamespacedLeaseCandidate", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -66277,21 +67874,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listDiscoveryV1NamespacedEndpointSlice", + "description": "list or watch objects of kind LeaseCandidate", + "operationId": "listCoordinationV1alpha2NamespacedLeaseCandidate", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -66340,7 +67937,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSliceList" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidateList" } }, "401": { @@ -66351,13 +67948,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": [ @@ -66372,15 +67969,15 @@ "consumes": [ "*/*" ], - "description": "create an EndpointSlice", - "operationId": "createDiscoveryV1NamespacedEndpointSlice", + "description": "create a LeaseCandidate", + "operationId": "createCoordinationV1alpha2NamespacedLeaseCandidate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, { @@ -66411,19 +68008,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, "401": { @@ -66434,23 +68031,23 @@ "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" } } }, - "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}": { + "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an EndpointSlice", - "operationId": "deleteDiscoveryV1NamespacedEndpointSlice", + "description": "delete a LeaseCandidate", + "operationId": "deleteCoordinationV1alpha2NamespacedLeaseCandidate", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -66502,21 +68099,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified EndpointSlice", - "operationId": "readDiscoveryV1NamespacedEndpointSlice", + "description": "read the specified LeaseCandidate", + "operationId": "readCoordinationV1alpha2NamespacedLeaseCandidate", "produces": [ "application/json", "application/yaml", @@ -66527,7 +68124,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, "401": { @@ -66538,18 +68135,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, @@ -66571,8 +68168,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified EndpointSlice", - "operationId": "patchDiscoveryV1NamespacedEndpointSlice", + "description": "partially update the specified LeaseCandidate", + "operationId": "patchCoordinationV1alpha2NamespacedLeaseCandidate", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -66608,13 +68205,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, "401": { @@ -66625,28 +68222,28 @@ "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" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified EndpointSlice", - "operationId": "replaceDiscoveryV1NamespacedEndpointSlice", + "description": "replace the specified LeaseCandidate", + "operationId": "replaceCoordinationV1alpha2NamespacedLeaseCandidate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, { @@ -66677,13 +68274,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + "$ref": "#/definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate" } }, "401": { @@ -66694,23 +68291,23 @@ "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" } } }, - "/apis/discovery.k8s.io/v1/watch/endpointslices": { + "/apis/coordination.k8s.io/v1alpha2/watch/leasecandidates": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchDiscoveryV1EndpointSliceListForAllNamespaces", + "description": "watch individual changes to a list of LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoordinationV1alpha2LeaseCandidateListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -66735,13 +68332,13 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha2" } }, "parameters": [ @@ -66783,13 +68380,13 @@ } ] }, - "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices": { + "/apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchDiscoveryV1NamespacedEndpointSliceList", + "description": "watch individual changes to a list of LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoordinationV1alpha2NamespacedLeaseCandidateList", "produces": [ "application/json", "application/yaml", @@ -66814,13 +68411,13 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha2" } }, "parameters": [ @@ -66865,13 +68462,13 @@ } ] }, - "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}": { + "/apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchDiscoveryV1NamespacedEndpointSlice", + "description": "watch changes to an object of kind LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoordinationV1alpha2NamespacedLeaseCandidate", "produces": [ "application/json", "application/yaml", @@ -66896,13 +68493,13 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha2" } }, "parameters": [ @@ -66922,7 +68519,7 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the EndpointSlice", + "description": "name of the LeaseCandidate", "in": "path", "name": "name", "required": true, @@ -66955,40 +68552,7 @@ } ] }, - "/apis/events.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getEventsAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events" - ] - } - }, - "/apis/events.k8s.io/v1/": { + "/apis/coordination.k8s.io/v1beta1/": { "get": { "consumes": [ "application/json", @@ -66997,7 +68561,7 @@ "application/cbor" ], "description": "get available resources", - "operationId": "getEventsV1APIResources", + "operationId": "getCoordinationV1beta1APIResources", "produces": [ "application/json", "application/yaml", @@ -67019,17 +68583,17 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ] } }, - "/apis/events.k8s.io/v1/events": { + "/apis/coordination.k8s.io/v1beta1/leasecandidates": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Event", - "operationId": "listEventsV1EventForAllNamespaces", + "description": "list or watch objects of kind LeaseCandidate", + "operationId": "listCoordinationV1beta1LeaseCandidateForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -67043,7 +68607,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.EventList" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidateList" } }, "401": { @@ -67054,13 +68618,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": [ @@ -67102,13 +68666,13 @@ } ] }, - "/apis/events.k8s.io/v1/namespaces/{namespace}/events": { + "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Event", - "operationId": "deleteEventsV1CollectionNamespacedEvent", + "description": "delete collection of LeaseCandidate", + "operationId": "deleteCoordinationV1beta1CollectionNamespacedLeaseCandidate", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -67181,21 +68745,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Event", - "operationId": "listEventsV1NamespacedEvent", + "description": "list or watch objects of kind LeaseCandidate", + "operationId": "listCoordinationV1beta1NamespacedLeaseCandidate", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -67244,7 +68808,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.EventList" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidateList" } }, "401": { @@ -67255,13 +68819,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": [ @@ -67276,15 +68840,15 @@ "consumes": [ "*/*" ], - "description": "create an Event", - "operationId": "createEventsV1NamespacedEvent", + "description": "create a LeaseCandidate", + "operationId": "createCoordinationV1beta1NamespacedLeaseCandidate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, { @@ -67315,19 +68879,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, "401": { @@ -67338,23 +68902,23 @@ "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" } } }, - "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}": { + "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an Event", - "operationId": "deleteEventsV1NamespacedEvent", + "description": "delete a LeaseCandidate", + "operationId": "deleteCoordinationV1beta1NamespacedLeaseCandidate", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -67406,21 +68970,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified Event", - "operationId": "readEventsV1NamespacedEvent", + "description": "read the specified LeaseCandidate", + "operationId": "readCoordinationV1beta1NamespacedLeaseCandidate", "produces": [ "application/json", "application/yaml", @@ -67431,7 +68995,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, "401": { @@ -67442,18 +69006,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, @@ -67475,8 +69039,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified Event", - "operationId": "patchEventsV1NamespacedEvent", + "description": "partially update the specified LeaseCandidate", + "operationId": "patchCoordinationV1beta1NamespacedLeaseCandidate", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -67512,13 +69076,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, "401": { @@ -67529,28 +69093,28 @@ "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" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified Event", - "operationId": "replaceEventsV1NamespacedEvent", + "description": "replace the specified LeaseCandidate", + "operationId": "replaceCoordinationV1beta1NamespacedLeaseCandidate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, { @@ -67581,13 +69145,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.LeaseCandidate" } }, "401": { @@ -67598,23 +69162,23 @@ "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" } } }, - "/apis/events.k8s.io/v1/watch/events": { + "/apis/coordination.k8s.io/v1beta1/watch/leasecandidates": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchEventsV1EventListForAllNamespaces", + "description": "watch individual changes to a list of LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoordinationV1beta1LeaseCandidateListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -67639,13 +69203,13 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1beta1" } }, "parameters": [ @@ -67687,13 +69251,13 @@ } ] }, - "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events": { + "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchEventsV1NamespacedEventList", + "description": "watch individual changes to a list of LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoordinationV1beta1NamespacedLeaseCandidateList", "produces": [ "application/json", "application/yaml", @@ -67718,13 +69282,13 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1beta1" } }, "parameters": [ @@ -67769,13 +69333,13 @@ } ] }, - "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}": { + "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind Event. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchEventsV1NamespacedEvent", + "description": "watch changes to an object of kind LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchCoordinationV1beta1NamespacedLeaseCandidate", "produces": [ "application/json", "application/yaml", @@ -67800,13 +69364,13 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1beta1" } }, "parameters": [ @@ -67826,7 +69390,7 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the Event", + "description": "name of the LeaseCandidate", "in": "path", "name": "name", "required": true, @@ -67859,19 +69423,21 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/": { + "/apis/discovery.k8s.io/": { "get": { "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", - "operationId": "getFlowcontrolApiserverAPIGroup", + "operationId": "getDiscoveryAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -67888,11 +69454,11 @@ "https" ], "tags": [ - "flowcontrolApiserver" + "discovery" ] } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/": { + "/apis/discovery.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -67901,7 +69467,7 @@ "application/cbor" ], "description": "get available resources", - "operationId": "getFlowcontrolApiserverV1APIResources", + "operationId": "getDiscoveryV1APIResources", "produces": [ "application/json", "application/yaml", @@ -67923,17 +69489,96 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "discovery_v1" ] } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas": { + "/apis/discovery.k8s.io/v1/endpointslices": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind EndpointSlice", + "operationId": "listDiscoveryV1EndpointSliceForAllNamespaces", + "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/io.k8s.api.discovery.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": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of FlowSchema", - "operationId": "deleteFlowcontrolApiserverV1CollectionFlowSchema", + "description": "delete collection of EndpointSlice", + "operationId": "deleteDiscoveryV1CollectionNamespacedEndpointSlice", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -68006,12 +69651,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" } }, @@ -68019,8 +69664,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind FlowSchema", - "operationId": "listFlowcontrolApiserverV1FlowSchema", + "description": "list or watch objects of kind EndpointSlice", + "operationId": "listDiscoveryV1NamespacedEndpointSlice", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -68069,7 +69714,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchemaList" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSliceList" } }, "401": { @@ -68080,16 +69725,19 @@ "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": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -68098,15 +69746,15 @@ "consumes": [ "*/*" ], - "description": "create a FlowSchema", - "operationId": "createFlowcontrolApiserverV1FlowSchema", + "description": "create an EndpointSlice", + "operationId": "createDiscoveryV1NamespacedEndpointSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, { @@ -68137,19 +69785,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, "401": { @@ -68160,23 +69808,23 @@ "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" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}": { + "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a FlowSchema", - "operationId": "deleteFlowcontrolApiserverV1FlowSchema", + "description": "delete an EndpointSlice", + "operationId": "deleteDiscoveryV1NamespacedEndpointSlice", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -68228,12 +69876,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" } }, @@ -68241,8 +69889,8 @@ "consumes": [ "*/*" ], - "description": "read the specified FlowSchema", - "operationId": "readFlowcontrolApiserverV1FlowSchema", + "description": "read the specified EndpointSlice", + "operationId": "readDiscoveryV1NamespacedEndpointSlice", "produces": [ "application/json", "application/yaml", @@ -68253,7 +69901,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, "401": { @@ -68264,24 +69912,27 @@ "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 }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -68294,8 +69945,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified FlowSchema", - "operationId": "patchFlowcontrolApiserverV1FlowSchema", + "description": "partially update the specified EndpointSlice", + "operationId": "patchDiscoveryV1NamespacedEndpointSlice", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -68331,13 +69982,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, "401": { @@ -68348,12 +69999,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" } }, @@ -68361,15 +70012,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified FlowSchema", - "operationId": "replaceFlowcontrolApiserverV1FlowSchema", + "description": "replace the specified EndpointSlice", + "operationId": "replaceDiscoveryV1NamespacedEndpointSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, { @@ -68400,13 +70051,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, "401": { @@ -68417,34 +70068,37 @@ "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" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status": { + "/apis/discovery.k8s.io/v1/watch/endpointslices": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified FlowSchema", - "operationId": "readFlowcontrolApiserverV1FlowSchemaStatus", + "description": "watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchDiscoveryV1EndpointSliceListForAllNamespaces", "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/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -68455,80 +70109,157 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "discovery_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "watchlist", "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", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "patch": { + ] + }, + "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified FlowSchema", - "operationId": "patchFlowcontrolApiserverV1FlowSchemaStatus", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } + "*/*" ], + "description": "watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchDiscoveryV1NamespacedEndpointSliceList", "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/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, - "201": { - "description": "Created", + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchDiscoveryV1NamespacedEndpointSlice", + "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/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -68539,48 +70270,110 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "discovery_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" } }, - "put": { + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the EndpointSlice", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/events.k8s.io/": { + "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], - "description": "replace status of the specified FlowSchema", - "operationId": "replaceFlowcontrolApiserverV1FlowSchemaStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, + "description": "get information of a group", + "operationId": "getEventsAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": [ + "events" + ] + } + }, + "/apis/events.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], + "description": "get available resources", + "operationId": "getEventsV1APIResources", "produces": [ "application/json", "application/yaml", @@ -68591,13 +70384,42 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" } }, - "201": { - "description": "Created", + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "events_v1" + ] + } + }, + "/apis/events.k8s.io/v1/events": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Event", + "operationId": "listEventsV1EventForAllNamespaces", + "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/io.k8s.api.flowcontrol.v1.FlowSchema" + "$ref": "#/definitions/io.k8s.api.events.v1.EventList" } }, "401": { @@ -68608,23 +70430,61 @@ "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": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations": { + "/apis/events.k8s.io/v1/namespaces/{namespace}/events": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of PriorityLevelConfiguration", - "operationId": "deleteFlowcontrolApiserverV1CollectionPriorityLevelConfiguration", + "description": "delete collection of Event", + "operationId": "deleteEventsV1CollectionNamespacedEvent", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -68697,12 +70557,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" } }, @@ -68710,8 +70570,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind PriorityLevelConfiguration", - "operationId": "listFlowcontrolApiserverV1PriorityLevelConfiguration", + "description": "list or watch objects of kind Event", + "operationId": "listEventsV1NamespacedEvent", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -68760,7 +70620,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList" + "$ref": "#/definitions/io.k8s.api.events.v1.EventList" } }, "401": { @@ -68771,16 +70631,19 @@ "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": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -68789,15 +70652,15 @@ "consumes": [ "*/*" ], - "description": "create a PriorityLevelConfiguration", - "operationId": "createFlowcontrolApiserverV1PriorityLevelConfiguration", + "description": "create an Event", + "operationId": "createEventsV1NamespacedEvent", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, { @@ -68828,19 +70691,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, "401": { @@ -68851,23 +70714,23 @@ "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" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}": { + "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a PriorityLevelConfiguration", - "operationId": "deleteFlowcontrolApiserverV1PriorityLevelConfiguration", + "description": "delete an Event", + "operationId": "deleteEventsV1NamespacedEvent", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -68919,12 +70782,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" } }, @@ -68932,8 +70795,8 @@ "consumes": [ "*/*" ], - "description": "read the specified PriorityLevelConfiguration", - "operationId": "readFlowcontrolApiserverV1PriorityLevelConfiguration", + "description": "read the specified Event", + "operationId": "readEventsV1NamespacedEvent", "produces": [ "application/json", "application/yaml", @@ -68944,7 +70807,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, "401": { @@ -68955,24 +70818,27 @@ "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, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -68985,8 +70851,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified PriorityLevelConfiguration", - "operationId": "patchFlowcontrolApiserverV1PriorityLevelConfiguration", + "description": "partially update the specified Event", + "operationId": "patchEventsV1NamespacedEvent", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -69022,13 +70888,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, "401": { @@ -69039,12 +70905,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" } }, @@ -69052,206 +70918,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified PriorityLevelConfiguration", - "operationId": "replaceFlowcontrolApiserverV1PriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.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" - } - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified PriorityLevelConfiguration", - "operationId": "readFlowcontrolApiserverV1PriorityLevelConfigurationStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.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", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified PriorityLevelConfiguration", - "operationId": "patchFlowcontrolApiserverV1PriorityLevelConfigurationStatus", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.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" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified PriorityLevelConfiguration", - "operationId": "replaceFlowcontrolApiserverV1PriorityLevelConfigurationStatus", + "description": "replace the specified Event", + "operationId": "replaceEventsV1NamespacedEvent", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, { @@ -69282,13 +70957,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, "401": { @@ -69299,23 +70974,23 @@ "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" } } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas": { + "/apis/events.k8s.io/v1/watch/events": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of FlowSchema. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchFlowcontrolApiserverV1FlowSchemaList", + "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchEventsV1EventListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -69340,12 +71015,12 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "events_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" } }, @@ -69388,13 +71063,13 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas/{name}": { + "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind FlowSchema. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchFlowcontrolApiserverV1FlowSchema", + "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchEventsV1NamespacedEventList", "produces": [ "application/json", "application/yaml", @@ -69419,12 +71094,12 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "events_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" } }, @@ -69445,91 +71120,7 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the FlowSchema", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchFlowcontrolApiserverV1PriorityLevelConfigurationList", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" + "$ref": "#/parameters/namespace-vgWSWtn3" }, { "$ref": "#/parameters/pretty-tJGM1-ng" @@ -69554,13 +71145,13 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations/{name}": { + "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchFlowcontrolApiserverV1PriorityLevelConfiguration", + "description": "watch changes to an object of kind Event. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchEventsV1NamespacedEvent", "produces": [ "application/json", "application/yaml", @@ -69585,12 +71176,12 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "events_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" } }, @@ -69611,13 +71202,16 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the PriorityLevelConfiguration", + "description": "name of the Event", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -69641,19 +71235,21 @@ } ] }, - "/apis/internal.apiserver.k8s.io/": { + "/apis/flowcontrol.apiserver.k8s.io/": { "get": { "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", - "operationId": "getInternalApiserverAPIGroup", + "operationId": "getFlowcontrolApiserverAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -69670,11 +71266,11 @@ "https" ], "tags": [ - "internalApiserver" + "flowcontrolApiserver" ] } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/": { + "/apis/flowcontrol.apiserver.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -69683,7 +71279,7 @@ "application/cbor" ], "description": "get available resources", - "operationId": "getInternalApiserverV1alpha1APIResources", + "operationId": "getFlowcontrolApiserverV1APIResources", "produces": [ "application/json", "application/yaml", @@ -69705,17 +71301,17 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "flowcontrolApiserver_v1" ] } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions": { + "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of StorageVersion", - "operationId": "deleteInternalApiserverV1alpha1CollectionStorageVersion", + "description": "delete collection of FlowSchema", + "operationId": "deleteFlowcontrolApiserverV1CollectionFlowSchema", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -69788,21 +71384,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind StorageVersion", - "operationId": "listInternalApiserverV1alpha1StorageVersion", + "description": "list or watch objects of kind FlowSchema", + "operationId": "listFlowcontrolApiserverV1FlowSchema", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -69851,7 +71447,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchemaList" } }, "401": { @@ -69862,13 +71458,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": [ @@ -69880,15 +71476,15 @@ "consumes": [ "*/*" ], - "description": "create a StorageVersion", - "operationId": "createInternalApiserverV1alpha1StorageVersion", + "description": "create a FlowSchema", + "operationId": "createFlowcontrolApiserverV1FlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, { @@ -69919,19 +71515,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "401": { @@ -69942,23 +71538,23 @@ "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" } } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a StorageVersion", - "operationId": "deleteInternalApiserverV1alpha1StorageVersion", + "description": "delete a FlowSchema", + "operationId": "deleteFlowcontrolApiserverV1FlowSchema", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -70010,21 +71606,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified StorageVersion", - "operationId": "readInternalApiserverV1alpha1StorageVersion", + "description": "read the specified FlowSchema", + "operationId": "readFlowcontrolApiserverV1FlowSchema", "produces": [ "application/json", "application/yaml", @@ -70035,7 +71631,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "401": { @@ -70046,18 +71642,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, @@ -70076,8 +71672,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified StorageVersion", - "operationId": "patchInternalApiserverV1alpha1StorageVersion", + "description": "partially update the specified FlowSchema", + "operationId": "patchFlowcontrolApiserverV1FlowSchema", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -70113,13 +71709,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "401": { @@ -70130,28 +71726,28 @@ "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" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified StorageVersion", - "operationId": "replaceInternalApiserverV1alpha1StorageVersion", + "description": "replace the specified FlowSchema", + "operationId": "replaceFlowcontrolApiserverV1FlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, { @@ -70182,13 +71778,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "401": { @@ -70199,23 +71795,23 @@ "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" } } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status": { + "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified StorageVersion", - "operationId": "readInternalApiserverV1alpha1StorageVersionStatus", + "description": "read status of the specified FlowSchema", + "operationId": "readFlowcontrolApiserverV1FlowSchemaStatus", "produces": [ "application/json", "application/yaml", @@ -70226,7 +71822,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "401": { @@ -70237,18 +71833,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, @@ -70267,8 +71863,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified StorageVersion", - "operationId": "patchInternalApiserverV1alpha1StorageVersionStatus", + "description": "partially update status of the specified FlowSchema", + "operationId": "patchFlowcontrolApiserverV1FlowSchemaStatus", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -70304,13 +71900,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "401": { @@ -70321,28 +71917,28 @@ "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" } }, "put": { "consumes": [ "*/*" ], - "description": "replace status of the specified StorageVersion", - "operationId": "replaceInternalApiserverV1alpha1StorageVersionStatus", + "description": "replace status of the specified FlowSchema", + "operationId": "replaceFlowcontrolApiserverV1FlowSchemaStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, { @@ -70373,13 +71969,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.FlowSchema" } }, "401": { @@ -70390,257 +71986,23 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - } - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of StorageVersion. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchInternalApiserverV1alpha1StorageVersionList", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind StorageVersion. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchInternalApiserverV1alpha1StorageVersion", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the StorageVersion", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" } - ] - }, - "/apis/networking.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getNetworkingAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking" - ] - } - }, - "/apis/networking.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "description": "get available resources", - "operationId": "getNetworkingV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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": [ "*/*" ], - "description": "delete collection of IngressClass", - "operationId": "deleteNetworkingV1CollectionIngressClass", + "description": "delete collection of PriorityLevelConfiguration", + "operationId": "deleteFlowcontrolApiserverV1CollectionPriorityLevelConfiguration", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -70713,12 +72075,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" } }, @@ -70726,8 +72088,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind IngressClass", - "operationId": "listNetworkingV1IngressClass", + "description": "list or watch objects of kind PriorityLevelConfiguration", + "operationId": "listFlowcontrolApiserverV1PriorityLevelConfiguration", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -70776,7 +72138,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClassList" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList" } }, "401": { @@ -70787,12 +72149,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" } }, @@ -70805,15 +72167,15 @@ "consumes": [ "*/*" ], - "description": "create an IngressClass", - "operationId": "createNetworkingV1IngressClass", + "description": "create a PriorityLevelConfiguration", + "operationId": "createFlowcontrolApiserverV1PriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, { @@ -70844,19 +72206,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "401": { @@ -70867,23 +72229,23 @@ "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" } } }, - "/apis/networking.k8s.io/v1/ingressclasses/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an IngressClass", - "operationId": "deleteNetworkingV1IngressClass", + "description": "delete a PriorityLevelConfiguration", + "operationId": "deleteFlowcontrolApiserverV1PriorityLevelConfiguration", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -70935,12 +72297,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" } }, @@ -70948,8 +72310,8 @@ "consumes": [ "*/*" ], - "description": "read the specified IngressClass", - "operationId": "readNetworkingV1IngressClass", + "description": "read the specified PriorityLevelConfiguration", + "operationId": "readFlowcontrolApiserverV1PriorityLevelConfiguration", "produces": [ "application/json", "application/yaml", @@ -70960,7 +72322,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "401": { @@ -70971,18 +72333,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, @@ -71001,8 +72363,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified IngressClass", - "operationId": "patchNetworkingV1IngressClass", + "description": "partially update the specified PriorityLevelConfiguration", + "operationId": "patchFlowcontrolApiserverV1PriorityLevelConfiguration", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -71038,13 +72400,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "401": { @@ -71055,12 +72417,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" } }, @@ -71068,15 +72430,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified IngressClass", - "operationId": "replaceNetworkingV1IngressClass", + "description": "replace the specified PriorityLevelConfiguration", + "operationId": "replaceFlowcontrolApiserverV1PriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, { @@ -71107,13 +72469,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "401": { @@ -71124,37 +72486,34 @@ "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" } } }, - "/apis/networking.k8s.io/v1/ingresses": { + "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Ingress", - "operationId": "listNetworkingV1IngressForAllNamespaces", + "description": "read status of the specified PriorityLevelConfiguration", + "operationId": "readFlowcontrolApiserverV1PriorityLevelConfigurationStatus", "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/io.k8s.api.networking.v1.IngressList" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "401": { @@ -71165,67 +72524,41 @@ "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": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true }, { "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" } - ] - }, - "/apis/networking.k8s.io/v1/ipaddresses": { - "delete": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" ], - "description": "delete collection of IPAddress", - "operationId": "deleteNetworkingV1CollectionIPAddress", + "description": "partially update status of the specified PriorityLevelConfiguration", + "operationId": "patchFlowcontrolApiserverV1PriorityLevelConfigurationStatus", "parameters": [ { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" + "$ref": "#/parameters/body-78PwaGsr" }, { "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", @@ -71235,40 +72568,17 @@ "uniqueItems": true }, { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + "$ref": "#/parameters/fieldManager-7c6nTn1T" }, { - "$ref": "#/parameters/shardSelector-Kgyki_3_" + "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 }, { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "$ref": "#/parameters/force-tOGGb0Yi" } ], "produces": [ @@ -71281,7 +72591,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" } }, "401": { @@ -71292,56 +72608,92 @@ "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" } }, - "get": { + "put": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind IPAddress", - "operationId": "listNetworkingV1IPAddress", + "description": "replace status of the specified PriorityLevelConfiguration", + "operationId": "replaceFlowcontrolApiserverV1PriorityLevelConfigurationStatus", "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } }, { - "$ref": "#/parameters/continue-QfD61s0i" + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 }, { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + "$ref": "#/parameters/fieldManager-Qy4HdaTW" }, { - "$ref": "#/parameters/shardSelector-Kgyki_3_" + "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/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + } }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "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" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas": { + "get": { + "consumes": [ + "*/*" ], + "description": "watch individual changes to a list of FlowSchema. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchFlowcontrolApiserverV1FlowSchemaList", "produces": [ "application/json", "application/yaml", @@ -71355,7 +72707,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddressList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -71366,76 +72718,75 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", "version": "v1" } }, "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "post": { + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "create an IPAddress", - "operationId": "createNetworkingV1IPAddress", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": "watch changes to an object of kind FlowSchema. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchFlowcontrolApiserverV1FlowSchema", "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/io.k8s.api.networking.v1.IPAddress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -71446,64 +72797,83 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", "version": "v1" } - } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/networking.k8s.io/v1/ipaddresses/{name}": { - "delete": { + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations": { + "get": { "consumes": [ "*/*" ], - "description": "delete an IPAddress", - "operationId": "deleteNetworkingV1IPAddress", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - } - ], + "description": "watch individual changes to a list of PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchFlowcontrolApiserverV1PriorityLevelConfigurationList", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -71514,32 +72884,75 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", "version": "v1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations/{name}": { "get": { "consumes": [ "*/*" ], - "description": "read the specified IPAddress", - "operationId": "readNetworkingV1IPAddress", + "description": "watch changes to an object of kind PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchFlowcontrolApiserverV1PriorityLevelConfiguration", "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/io.k8s.api.networking.v1.IPAddress" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -71550,18 +72963,33 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", "version": "v1" } }, "parameters": [ { - "description": "name of the IPAddress", + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the PriorityLevelConfiguration", "in": "path", "name": "name", "required": true, @@ -71570,43 +72998,37 @@ }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "patch": { + ] + }, + "/apis/internal.apiserver.k8s.io/": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified IPAddress", - "operationId": "patchNetworkingV1IPAddress", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], + "description": "get information of a group", + "operationId": "getInternalApiserverAPIGroup", "produces": [ "application/json", "application/yaml", @@ -71617,13 +73039,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" } }, "401": { @@ -71634,48 +73050,20 @@ "https" ], "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" - } - }, - "put": { + "internalApiserver" + ] + } + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/": { + "get": { "consumes": [ - "*/*" - ], - "description": "replace the specified IPAddress", - "operationId": "replaceNetworkingV1IPAddress", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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 - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], + "description": "get available resources", + "operationId": "getInternalApiserverV1alpha1APIResources", "produces": [ "application/json", "application/yaml", @@ -71686,13 +73074,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" } }, "401": { @@ -71703,23 +73085,17 @@ "https" ], "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" - } + "internalApiserver_v1alpha1" + ] } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses": { + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Ingress", - "operationId": "deleteNetworkingV1CollectionNamespacedIngress", + "description": "delete collection of StorageVersion", + "operationId": "deleteInternalApiserverV1alpha1CollectionStorageVersion", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -71792,21 +73168,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Ingress", - "operationId": "listNetworkingV1NamespacedIngress", + "description": "list or watch objects of kind StorageVersion", + "operationId": "listInternalApiserverV1alpha1StorageVersion", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -71855,7 +73231,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressList" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList" } }, "401": { @@ -71866,19 +73242,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": [ - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -71887,15 +73260,15 @@ "consumes": [ "*/*" ], - "description": "create an Ingress", - "operationId": "createNetworkingV1NamespacedIngress", + "description": "create a StorageVersion", + "operationId": "createInternalApiserverV1alpha1StorageVersion", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, { @@ -71926,19 +73299,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "401": { @@ -71949,23 +73322,23 @@ "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" } } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}": { + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an Ingress", - "operationId": "deleteNetworkingV1NamespacedIngress", + "description": "delete a StorageVersion", + "operationId": "deleteInternalApiserverV1alpha1StorageVersion", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -72017,21 +73390,21 @@ "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" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified Ingress", - "operationId": "readNetworkingV1NamespacedIngress", + "description": "read the specified StorageVersion", + "operationId": "readInternalApiserverV1alpha1StorageVersion", "produces": [ "application/json", "application/yaml", @@ -72042,7 +73415,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "401": { @@ -72053,27 +73426,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 }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -72086,8 +73456,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified Ingress", - "operationId": "patchNetworkingV1NamespacedIngress", + "description": "partially update the specified StorageVersion", + "operationId": "patchInternalApiserverV1alpha1StorageVersion", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -72123,13 +73493,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "401": { @@ -72140,28 +73510,28 @@ "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" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified Ingress", - "operationId": "replaceNetworkingV1NamespacedIngress", + "description": "replace the specified StorageVersion", + "operationId": "replaceInternalApiserverV1alpha1StorageVersion", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, { @@ -72192,13 +73562,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "401": { @@ -72209,23 +73579,23 @@ "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" } } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status": { + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified Ingress", - "operationId": "readNetworkingV1NamespacedIngressStatus", + "description": "read status of the specified StorageVersion", + "operationId": "readInternalApiserverV1alpha1StorageVersionStatus", "produces": [ "application/json", "application/yaml", @@ -72236,7 +73606,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "401": { @@ -72247,27 +73617,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 }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -72280,8 +73647,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified Ingress", - "operationId": "patchNetworkingV1NamespacedIngressStatus", + "description": "partially update status of the specified StorageVersion", + "operationId": "patchInternalApiserverV1alpha1StorageVersionStatus", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -72317,13 +73684,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "401": { @@ -72334,28 +73701,28 @@ "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" } }, "put": { "consumes": [ "*/*" ], - "description": "replace status of the specified Ingress", - "operationId": "replaceNetworkingV1NamespacedIngressStatus", + "description": "replace status of the specified StorageVersion", + "operationId": "replaceInternalApiserverV1alpha1StorageVersionStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, { @@ -72386,13 +73753,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, "401": { @@ -72403,85 +73770,37 @@ "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" } } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies": { - "delete": { + "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of NetworkPolicy", - "operationId": "deleteNetworkingV1CollectionNamespacedNetworkPolicy", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - } - ], + "description": "watch individual changes to a list of StorageVersion. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchInternalApiserverV1alpha1StorageVersionList", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -72492,56 +73811,61 @@ "https" ], "tags": [ - "networking_v1" + "internalApiserver_v1alpha1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind NetworkPolicy", - "operationId": "listNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ], + "description": "watch changes to an object of kind StorageVersion. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchInternalApiserverV1alpha1StorageVersion", "produces": [ "application/json", "application/yaml", @@ -72555,7 +73879,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -72566,56 +73890,72 @@ "https" ], "tags": [ - "networking_v1" + "internalApiserver_v1alpha1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" } }, "parameters": [ { - "$ref": "#/parameters/namespace-vgWSWtn3" + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the StorageVersion", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "post": { + ] + }, + "/apis/lifecycle.k8s.io/": { + "get": { "consumes": [ - "*/*" - ], - "description": "create a NetworkPolicy", - "operationId": "createNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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 - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], + "description": "get information of a group", + "operationId": "getLifecycleAPIGroup", "produces": [ "application/json", "application/yaml", @@ -72626,19 +73966,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" } }, "401": { @@ -72649,47 +73977,20 @@ "https" ], "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } + "lifecycle" + ] } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}": { - "delete": { + "/apis/lifecycle.k8s.io/v1alpha1/": { + "get": { "consumes": [ - "*/*" - ], - "description": "delete a NetworkPolicy", - "operationId": "deleteNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], + "description": "get available resources", + "operationId": "getLifecycleV1alpha1APIResources", "produces": [ "application/json", "application/yaml", @@ -72700,13 +74001,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" } }, "401": { @@ -72717,32 +74012,31 @@ "https" ], "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, + "lifecycle_v1alpha1" + ] + } + }, + "/apis/lifecycle.k8s.io/v1alpha1/evictionrequests": { "get": { "consumes": [ "*/*" ], - "description": "read the specified NetworkPolicy", - "operationId": "readNetworkingV1NamespacedNetworkPolicy", + "description": "list or watch objects of kind EvictionRequest", + "operationId": "listLifecycleV1alpha1EvictionRequestForAllNamespaces", "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/io.k8s.api.networking.v1.NetworkPolicy" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequestList" } }, "401": { @@ -72753,179 +74047,61 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the NetworkPolicy", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" }, { - "$ref": "#/parameters/namespace-vgWSWtn3" + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" }, { "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified NetworkPolicy", - "operationId": "patchNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified NetworkPolicy", - "operationId": "replaceNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - } + ] }, - "/apis/networking.k8s.io/v1/networkpolicies": { + "/apis/lifecycle.k8s.io/v1alpha1/evictions": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind NetworkPolicy", - "operationId": "listNetworkingV1NetworkPolicyForAllNamespaces", + "description": "list or watch objects of kind Eviction", + "operationId": "listLifecycleV1alpha1EvictionForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -72939,7 +74115,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyList" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionList" } }, "401": { @@ -72950,13 +74126,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, "parameters": [ @@ -72998,13 +74174,13 @@ } ] }, - "/apis/networking.k8s.io/v1/servicecidrs": { + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ServiceCIDR", - "operationId": "deleteNetworkingV1CollectionServiceCIDR", + "description": "delete collection of EvictionRequest", + "operationId": "deleteLifecycleV1alpha1CollectionNamespacedEvictionRequest", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -73077,21 +74253,21 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ServiceCIDR", - "operationId": "listNetworkingV1ServiceCIDR", + "description": "list or watch objects of kind EvictionRequest", + "operationId": "listLifecycleV1alpha1NamespacedEvictionRequest", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -73140,7 +74316,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDRList" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequestList" } }, "401": { @@ -73151,16 +74327,19 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -73169,15 +74348,15 @@ "consumes": [ "*/*" ], - "description": "create a ServiceCIDR", - "operationId": "createNetworkingV1ServiceCIDR", + "description": "create an EvictionRequest", + "operationId": "createLifecycleV1alpha1NamespacedEvictionRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, { @@ -73208,19 +74387,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "401": { @@ -73231,23 +74410,23 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } } }, - "/apis/networking.k8s.io/v1/servicecidrs/{name}": { + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ServiceCIDR", - "operationId": "deleteNetworkingV1ServiceCIDR", + "description": "delete an EvictionRequest", + "operationId": "deleteLifecycleV1alpha1NamespacedEvictionRequest", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -73299,21 +74478,21 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ServiceCIDR", - "operationId": "readNetworkingV1ServiceCIDR", + "description": "read the specified EvictionRequest", + "operationId": "readLifecycleV1alpha1NamespacedEvictionRequest", "produces": [ "application/json", "application/yaml", @@ -73324,7 +74503,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "401": { @@ -73335,24 +74514,27 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the ServiceCIDR", + "description": "name of the EvictionRequest", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -73365,8 +74547,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ServiceCIDR", - "operationId": "patchNetworkingV1ServiceCIDR", + "description": "partially update the specified EvictionRequest", + "operationId": "patchLifecycleV1alpha1NamespacedEvictionRequest", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -73402,13 +74584,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "401": { @@ -73419,28 +74601,28 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified ServiceCIDR", - "operationId": "replaceNetworkingV1ServiceCIDR", + "description": "replace the specified EvictionRequest", + "operationId": "replaceLifecycleV1alpha1NamespacedEvictionRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, { @@ -73471,13 +74653,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "401": { @@ -73488,23 +74670,23 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } } }, - "/apis/networking.k8s.io/v1/servicecidrs/{name}/status": { + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified ServiceCIDR", - "operationId": "readNetworkingV1ServiceCIDRStatus", + "description": "read status of the specified EvictionRequest", + "operationId": "readLifecycleV1alpha1NamespacedEvictionRequestStatus", "produces": [ "application/json", "application/yaml", @@ -73515,7 +74697,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "401": { @@ -73526,24 +74708,27 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the ServiceCIDR", + "description": "name of the EvictionRequest", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -73556,8 +74741,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified ServiceCIDR", - "operationId": "patchNetworkingV1ServiceCIDRStatus", + "description": "partially update status of the specified EvictionRequest", + "operationId": "patchLifecycleV1alpha1NamespacedEvictionRequestStatus", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -73593,13 +74778,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "401": { @@ -73610,28 +74795,28 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace status of the specified ServiceCIDR", - "operationId": "replaceNetworkingV1ServiceCIDRStatus", + "description": "replace status of the specified EvictionRequest", + "operationId": "replaceLifecycleV1alpha1NamespacedEvictionRequestStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, { @@ -73662,13 +74847,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionRequest" } }, "401": { @@ -73679,37 +74864,85 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } } }, - "/apis/networking.k8s.io/v1/watch/ingressclasses": { - "get": { + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions": { + "delete": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of IngressClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1IngressClassList", + "description": "delete collection of Eviction", + "operationId": "deleteLifecycleV1alpha1CollectionNamespacedEviction", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -73720,61 +74953,56 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/networking.k8s.io/v1/watch/ingressclasses/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind IngressClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNetworkingV1IngressClass", + "description": "list or watch objects of kind Eviction", + "operationId": "listLifecycleV1alpha1NamespacedEviction", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], "produces": [ "application/json", "application/yaml", @@ -73788,7 +75016,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.EvictionList" } }, "401": { @@ -73799,83 +75027,79 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the IngressClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "$ref": "#/parameters/namespace-vgWSWtn3" }, { "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" } - ] - }, - "/apis/networking.k8s.io/v1/watch/ingresses": { - "get": { + ], + "post": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of Ingress. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1IngressListForAllNamespaces", + "description": "create an Eviction", + "operationId": "createLifecycleV1alpha1NamespacedEviction", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" } }, "401": { @@ -73886,75 +75110,64 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } - ] + } }, - "/apis/networking.k8s.io/v1/watch/ipaddresses": { - "get": { + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}": { + "delete": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of IPAddress. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1IPAddressList", + "description": "delete an Eviction", + "operationId": "deleteLifecycleV1alpha1NamespacedEviction", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -73965,75 +75178,32 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/networking.k8s.io/v1/watch/ipaddresses/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind IPAddress. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNetworkingV1IPAddress", + "description": "read the specified Eviction", + "operationId": "readLifecycleV1alpha1NamespacedEviction", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" } }, "401": { @@ -74044,33 +75214,18 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the IPAddress", + "description": "name of the Eviction", "in": "path", "name": "name", "required": true, @@ -74078,49 +75233,64 @@ "uniqueItems": true }, { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "$ref": "#/parameters/namespace-vgWSWtn3" }, { - "$ref": "#/parameters/watch-XNNPZGbK" + "$ref": "#/parameters/pretty-tJGM1-ng" } - ] - }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses": { - "get": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified Eviction", + "operationId": "patchLifecycleV1alpha1NamespacedEviction", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } ], - "description": "watch individual changes to a list of Ingress. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1NamespacedIngressList", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" } }, "401": { @@ -74131,64 +75301,286 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Eviction", + "operationId": "replaceLifecycleV1alpha1NamespacedEviction", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" + } + } + }, + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified Eviction", + "operationId": "readLifecycleV1alpha1NamespacedEvictionStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" + } + }, + "parameters": [ { - "$ref": "#/parameters/limit-1NfNmdNH" + "description": "name of the Eviction", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true }, { "$ref": "#/parameters/namespace-vgWSWtn3" }, { "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified Eviction", + "operationId": "patchLifecycleV1alpha1NamespacedEvictionStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified Eviction", + "operationId": "replaceLifecycleV1alpha1NamespacedEvictionStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.lifecycle.v1alpha1.Eviction" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } - ] + } }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/evictionrequests": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind Ingress. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNetworkingV1NamespacedIngress", + "description": "watch individual changes to a list of EvictionRequest. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchLifecycleV1alpha1EvictionRequestListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -74213,13 +75605,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ @@ -74238,17 +75630,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "description": "name of the Ingress", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -74272,13 +75653,13 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/evictions": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1NamespacedNetworkPolicyList", + "description": "watch individual changes to a list of Eviction. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchLifecycleV1alpha1EvictionListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -74303,13 +75684,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, "parameters": [ @@ -74328,9 +75709,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -74354,13 +75732,13 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictionrequests": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNetworkingV1NamespacedNetworkPolicy", + "description": "watch individual changes to a list of EvictionRequest. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchLifecycleV1alpha1NamespacedEvictionRequestList", "produces": [ "application/json", "application/yaml", @@ -74385,13 +75763,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ @@ -74410,14 +75788,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "description": "name of the NetworkPolicy", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "$ref": "#/parameters/namespace-vgWSWtn3" }, @@ -74444,13 +75814,13 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/networkpolicies": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictionrequests/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1NetworkPolicyListForAllNamespaces", + "description": "watch changes to an object of kind EvictionRequest. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchLifecycleV1alpha1NamespacedEvictionRequest", "produces": [ "application/json", "application/yaml", @@ -74475,13 +75845,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ @@ -74500,6 +75870,17 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, + { + "description": "name of the EvictionRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -74523,13 +75904,13 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/servicecidrs": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictions": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ServiceCIDR. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1ServiceCIDRList", + "description": "watch individual changes to a list of Eviction. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchLifecycleV1alpha1NamespacedEvictionList", "produces": [ "application/json", "application/yaml", @@ -74554,13 +75935,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, "parameters": [ @@ -74579,6 +75960,9 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -74602,13 +75986,13 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/servicecidrs/{name}": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictions/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ServiceCIDR. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNetworkingV1ServiceCIDR", + "description": "watch changes to an object of kind Eviction. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchLifecycleV1alpha1NamespacedEviction", "produces": [ "application/json", "application/yaml", @@ -74633,13 +76017,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, "parameters": [ @@ -74659,13 +76043,16 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the ServiceCIDR", + "description": "name of the Eviction", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -74689,7 +76076,42 @@ } ] }, - "/apis/networking.k8s.io/v1beta1/": { + "/apis/networking.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get information of a group", + "operationId": "getNetworkingAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking" + ] + } + }, + "/apis/networking.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -74698,7 +76120,7 @@ "application/cbor" ], "description": "get available resources", - "operationId": "getNetworkingV1beta1APIResources", + "operationId": "getNetworkingV1APIResources", "produces": [ "application/json", "application/yaml", @@ -74720,17 +76142,17 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ] } }, - "/apis/networking.k8s.io/v1beta1/ipaddresses": { + "/apis/networking.k8s.io/v1/ingressclasses": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of IPAddress", - "operationId": "deleteNetworkingV1beta1CollectionIPAddress", + "description": "delete collection of IngressClass", + "operationId": "deleteNetworkingV1CollectionIngressClass", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -74803,21 +76225,21 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind IPAddress", - "operationId": "listNetworkingV1beta1IPAddress", + "description": "list or watch objects of kind IngressClass", + "operationId": "listNetworkingV1IngressClass", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -74866,7 +76288,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddressList" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClassList" } }, "401": { @@ -74877,13 +76299,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } }, "parameters": [ @@ -74895,15 +76317,15 @@ "consumes": [ "*/*" ], - "description": "create an IPAddress", - "operationId": "createNetworkingV1beta1IPAddress", + "description": "create an IngressClass", + "operationId": "createNetworkingV1IngressClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, { @@ -74934,19 +76356,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, "401": { @@ -74957,23 +76379,23 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } } }, - "/apis/networking.k8s.io/v1beta1/ipaddresses/{name}": { + "/apis/networking.k8s.io/v1/ingressclasses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an IPAddress", - "operationId": "deleteNetworkingV1beta1IPAddress", + "description": "delete an IngressClass", + "operationId": "deleteNetworkingV1IngressClass", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -75025,21 +76447,21 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified IPAddress", - "operationId": "readNetworkingV1beta1IPAddress", + "description": "read the specified IngressClass", + "operationId": "readNetworkingV1IngressClass", "produces": [ "application/json", "application/yaml", @@ -75050,7 +76472,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, "401": { @@ -75061,18 +76483,18 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } }, "parameters": [ { - "description": "name of the IPAddress", + "description": "name of the IngressClass", "in": "path", "name": "name", "required": true, @@ -75091,8 +76513,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified IPAddress", - "operationId": "patchNetworkingV1beta1IPAddress", + "description": "partially update the specified IngressClass", + "operationId": "patchNetworkingV1IngressClass", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -75128,13 +76550,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, "401": { @@ -75145,28 +76567,28 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified IPAddress", - "operationId": "replaceNetworkingV1beta1IPAddress", + "description": "replace the specified IngressClass", + "operationId": "replaceNetworkingV1IngressClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, { @@ -75197,13 +76619,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IPAddress" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, "401": { @@ -75214,23 +76636,102 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } } }, - "/apis/networking.k8s.io/v1beta1/servicecidrs": { + "/apis/networking.k8s.io/v1/ingresses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Ingress", + "operationId": "listNetworkingV1IngressForAllNamespaces", + "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/io.k8s.api.networking.v1.IngressList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1/ipaddresses": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ServiceCIDR", - "operationId": "deleteNetworkingV1beta1CollectionServiceCIDR", + "description": "delete collection of IPAddress", + "operationId": "deleteNetworkingV1CollectionIPAddress", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -75303,21 +76804,21 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ServiceCIDR", - "operationId": "listNetworkingV1beta1ServiceCIDR", + "description": "list or watch objects of kind IPAddress", + "operationId": "listNetworkingV1IPAddress", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -75366,7 +76867,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDRList" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddressList" } }, "401": { @@ -75377,13 +76878,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" } }, "parameters": [ @@ -75395,15 +76896,15 @@ "consumes": [ "*/*" ], - "description": "create a ServiceCIDR", - "operationId": "createNetworkingV1beta1ServiceCIDR", + "description": "create an IPAddress", + "operationId": "createNetworkingV1IPAddress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, { @@ -75434,19 +76935,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, "401": { @@ -75457,23 +76958,23 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" } } }, - "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}": { + "/apis/networking.k8s.io/v1/ipaddresses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ServiceCIDR", - "operationId": "deleteNetworkingV1beta1ServiceCIDR", + "description": "delete an IPAddress", + "operationId": "deleteNetworkingV1IPAddress", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -75525,21 +77026,21 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ServiceCIDR", - "operationId": "readNetworkingV1beta1ServiceCIDR", + "description": "read the specified IPAddress", + "operationId": "readNetworkingV1IPAddress", "produces": [ "application/json", "application/yaml", @@ -75550,7 +77051,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, "401": { @@ -75561,18 +77062,18 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" } }, "parameters": [ { - "description": "name of the ServiceCIDR", + "description": "name of the IPAddress", "in": "path", "name": "name", "required": true, @@ -75591,8 +77092,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ServiceCIDR", - "operationId": "patchNetworkingV1beta1ServiceCIDR", + "description": "partially update the specified IPAddress", + "operationId": "patchNetworkingV1IPAddress", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -75628,13 +77129,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, "401": { @@ -75645,28 +77146,28 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified ServiceCIDR", - "operationId": "replaceNetworkingV1beta1ServiceCIDR", + "description": "replace the specified IPAddress", + "operationId": "replaceNetworkingV1IPAddress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, { @@ -75697,13 +77198,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IPAddress" } }, "401": { @@ -75714,23 +77215,74 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" } } }, - "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status": { - "get": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses": { + "delete": { "consumes": [ "*/*" ], - "description": "read status of the specified ServiceCIDR", - "operationId": "readNetworkingV1beta1ServiceCIDRStatus", + "description": "delete collection of Ingress", + "operationId": "deleteNetworkingV1CollectionNamespacedIngress", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], "produces": [ "application/json", "application/yaml", @@ -75741,7 +77293,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -75752,80 +77304,70 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "Ingress", + "version": "v1" } }, - "parameters": [ - { - "description": "name of the ServiceCIDR", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "patch": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" + "*/*" ], - "description": "partially update status of the specified ServiceCIDR", - "operationId": "patchNetworkingV1beta1ServiceCIDRStatus", + "description": "list or watch objects of kind Ingress", + "operationId": "listNetworkingV1NamespacedIngress", "parameters": [ { - "$ref": "#/parameters/body-78PwaGsr" + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" }, { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + "$ref": "#/parameters/continue-QfD61s0i" }, { - "$ref": "#/parameters/fieldManager-7c6nTn1T" + "$ref": "#/parameters/fieldSelector-xIcQKXFG" }, { - "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 + "$ref": "#/parameters/labelSelector-5Zw57w4C" }, { - "$ref": "#/parameters/force-tOGGb0Yi" + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } ], "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/io.k8s.api.networking.v1beta1.ServiceCIDR" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressList" } }, "401": { @@ -75836,28 +77378,36 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "Ingress", + "version": "v1" } }, - "put": { + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { "consumes": [ "*/*" ], - "description": "replace status of the specified ServiceCIDR", - "operationId": "replaceNetworkingV1beta1ServiceCIDRStatus", + "description": "create an Ingress", + "operationId": "createNetworkingV1NamespacedIngress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" } }, { @@ -75888,13 +77438,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1beta1.ServiceCIDR" + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" } }, "401": { @@ -75905,37 +77461,64 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "Ingress", + "version": "v1" } } }, - "/apis/networking.k8s.io/v1beta1/watch/ipaddresses": { - "get": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}": { + "delete": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of IPAddress. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1beta1IPAddressList", + "description": "delete an Ingress", + "operationId": "deleteNetworkingV1NamespacedIngress", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -75946,75 +77529,32 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "Ingress", + "version": "v1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/networking.k8s.io/v1beta1/watch/ipaddresses/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind IPAddress. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNetworkingV1beta1IPAddress", + "description": "read the specified Ingress", + "operationId": "readNetworkingV1NamespacedIngress", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" } }, "401": { @@ -76025,33 +77565,18 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "Ingress", + "version": "v1" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the IPAddress", + "description": "name of the Ingress", "in": "path", "name": "name", "required": true, @@ -76059,49 +77584,64 @@ "uniqueItems": true }, { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "$ref": "#/parameters/namespace-vgWSWtn3" }, { - "$ref": "#/parameters/watch-XNNPZGbK" + "$ref": "#/parameters/pretty-tJGM1-ng" } - ] - }, - "/apis/networking.k8s.io/v1beta1/watch/servicecidrs": { - "get": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified Ingress", + "operationId": "patchNetworkingV1NamespacedIngress", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } ], - "description": "watch individual changes to a list of ServiceCIDR. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1beta1ServiceCIDRList", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" } }, "401": { @@ -76112,75 +77652,103 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "Ingress", + "version": "v1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Ingress", + "operationId": "replaceNetworkingV1NamespacedIngress", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.networking.v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" } - ] + } }, - "/apis/networking.k8s.io/v1beta1/watch/servicecidrs/{name}": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ServiceCIDR. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNetworkingV1beta1ServiceCIDR", + "description": "read status of the specified Ingress", + "operationId": "readNetworkingV1NamespacedIngressStatus", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" } }, "401": { @@ -76191,33 +77759,18 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "Ingress", + "version": "v1" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the ServiceCIDR", + "description": "name of the Ingress", "in": "path", "name": "name", "required": true, @@ -76225,47 +77778,64 @@ "uniqueItems": true }, { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "$ref": "#/parameters/namespace-vgWSWtn3" }, { - "$ref": "#/parameters/watch-XNNPZGbK" + "$ref": "#/parameters/pretty-tJGM1-ng" } - ] - }, - "/apis/node.k8s.io/": { - "get": { + ], + "patch": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified Ingress", + "operationId": "patchNetworkingV1NamespacedIngressStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } ], - "description": "get information of a group", - "operationId": "getNodeAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" } }, "401": { @@ -76276,20 +77846,48 @@ "https" ], "tags": [ - "node" - ] - } - }, - "/apis/node.k8s.io/v1/": { - "get": { + "networking_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + }, + "put": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" + "*/*" + ], + "description": "replace status of the specified Ingress", + "operationId": "replaceNetworkingV1NamespacedIngressStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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": "get available resources", - "operationId": "getNodeV1APIResources", "produces": [ "application/json", "application/yaml", @@ -76300,7 +77898,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" } }, "401": { @@ -76311,17 +77915,23 @@ "https" ], "tags": [ - "node_v1" - ] + "networking_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } } }, - "/apis/node.k8s.io/v1/runtimeclasses": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of RuntimeClass", - "operationId": "deleteNodeV1CollectionRuntimeClass", + "description": "delete collection of NetworkPolicy", + "operationId": "deleteNetworkingV1CollectionNamespacedNetworkPolicy", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -76394,12 +78004,12 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, @@ -76407,8 +78017,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind RuntimeClass", - "operationId": "listNodeV1RuntimeClass", + "description": "list or watch objects of kind NetworkPolicy", + "operationId": "listNetworkingV1NamespacedNetworkPolicy", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -76457,7 +78067,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClassList" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyList" } }, "401": { @@ -76468,16 +78078,19 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -76486,15 +78099,15 @@ "consumes": [ "*/*" ], - "description": "create a RuntimeClass", - "operationId": "createNodeV1RuntimeClass", + "description": "create a NetworkPolicy", + "operationId": "createNetworkingV1NamespacedNetworkPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, { @@ -76525,19 +78138,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, "401": { @@ -76548,23 +78161,23 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } } }, - "/apis/node.k8s.io/v1/runtimeclasses/{name}": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a RuntimeClass", - "operationId": "deleteNodeV1RuntimeClass", + "description": "delete a NetworkPolicy", + "operationId": "deleteNetworkingV1NamespacedNetworkPolicy", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -76616,12 +78229,12 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, @@ -76629,8 +78242,8 @@ "consumes": [ "*/*" ], - "description": "read the specified RuntimeClass", - "operationId": "readNodeV1RuntimeClass", + "description": "read the specified NetworkPolicy", + "operationId": "readNetworkingV1NamespacedNetworkPolicy", "produces": [ "application/json", "application/yaml", @@ -76641,7 +78254,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, "401": { @@ -76652,24 +78265,27 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, "parameters": [ { - "description": "name of the RuntimeClass", + "description": "name of the NetworkPolicy", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -76682,8 +78298,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified RuntimeClass", - "operationId": "patchNodeV1RuntimeClass", + "description": "partially update the specified NetworkPolicy", + "operationId": "patchNetworkingV1NamespacedNetworkPolicy", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -76719,13 +78335,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, "401": { @@ -76736,12 +78352,12 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, @@ -76749,15 +78365,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified RuntimeClass", - "operationId": "replaceNodeV1RuntimeClass", + "description": "replace the specified NetworkPolicy", + "operationId": "replaceNetworkingV1NamespacedNetworkPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, { @@ -76788,13 +78404,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, "401": { @@ -76805,102 +78421,23 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } } }, - "/apis/node.k8s.io/v1/watch/runtimeclasses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNodeV1RuntimeClassList", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/node.k8s.io/v1/watch/runtimeclasses/{name}": { + "/apis/networking.k8s.io/v1/networkpolicies": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNodeV1RuntimeClass", + "description": "list or watch objects of kind NetworkPolicy", + "operationId": "listNetworkingV1NetworkPolicyForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -76914,7 +78451,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyList" } }, "401": { @@ -76925,12 +78462,12 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, @@ -76950,14 +78487,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "description": "name of the RuntimeClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -76981,81 +78510,13 @@ } ] }, - "/apis/policy/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getPolicyAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy" - ] - } - }, - "/apis/policy/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "description": "get available resources", - "operationId": "getPolicyV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ] - } - }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets": { + "/apis/networking.k8s.io/v1/servicecidrs": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of PodDisruptionBudget", - "operationId": "deletePolicyV1CollectionNamespacedPodDisruptionBudget", + "description": "delete collection of ServiceCIDR", + "operationId": "deleteNetworkingV1CollectionServiceCIDR", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -77128,12 +78589,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } }, @@ -77141,8 +78602,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listPolicyV1NamespacedPodDisruptionBudget", + "description": "list or watch objects of kind ServiceCIDR", + "operationId": "listNetworkingV1ServiceCIDR", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -77191,7 +78652,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetList" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDRList" } }, "401": { @@ -77202,19 +78663,16 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } }, "parameters": [ - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -77223,15 +78681,15 @@ "consumes": [ "*/*" ], - "description": "create a PodDisruptionBudget", - "operationId": "createPolicyV1NamespacedPodDisruptionBudget", + "description": "create a ServiceCIDR", + "operationId": "createNetworkingV1ServiceCIDR", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, { @@ -77262,19 +78720,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "401": { @@ -77285,23 +78743,23 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } } }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "/apis/networking.k8s.io/v1/servicecidrs/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a PodDisruptionBudget", - "operationId": "deletePolicyV1NamespacedPodDisruptionBudget", + "description": "delete a ServiceCIDR", + "operationId": "deleteNetworkingV1ServiceCIDR", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -77353,12 +78811,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } }, @@ -77366,8 +78824,8 @@ "consumes": [ "*/*" ], - "description": "read the specified PodDisruptionBudget", - "operationId": "readPolicyV1NamespacedPodDisruptionBudget", + "description": "read the specified ServiceCIDR", + "operationId": "readNetworkingV1ServiceCIDR", "produces": [ "application/json", "application/yaml", @@ -77378,7 +78836,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "401": { @@ -77389,27 +78847,24 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } }, "parameters": [ { - "description": "name of the PodDisruptionBudget", + "description": "name of the ServiceCIDR", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -77422,8 +78877,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified PodDisruptionBudget", - "operationId": "patchPolicyV1NamespacedPodDisruptionBudget", + "description": "partially update the specified ServiceCIDR", + "operationId": "patchNetworkingV1ServiceCIDR", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -77459,13 +78914,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "401": { @@ -77476,12 +78931,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } }, @@ -77489,15 +78944,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified PodDisruptionBudget", - "operationId": "replacePolicyV1NamespacedPodDisruptionBudget", + "description": "replace the specified ServiceCIDR", + "operationId": "replaceNetworkingV1ServiceCIDR", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, { @@ -77528,13 +78983,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "401": { @@ -77545,23 +79000,23 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } } }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { + "/apis/networking.k8s.io/v1/servicecidrs/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified PodDisruptionBudget", - "operationId": "readPolicyV1NamespacedPodDisruptionBudgetStatus", + "description": "read status of the specified ServiceCIDR", + "operationId": "readNetworkingV1ServiceCIDRStatus", "produces": [ "application/json", "application/yaml", @@ -77572,7 +79027,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "401": { @@ -77583,27 +79038,24 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } }, "parameters": [ { - "description": "name of the PodDisruptionBudget", + "description": "name of the ServiceCIDR", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -77616,8 +79068,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified PodDisruptionBudget", - "operationId": "patchPolicyV1NamespacedPodDisruptionBudgetStatus", + "description": "partially update status of the specified ServiceCIDR", + "operationId": "patchNetworkingV1ServiceCIDRStatus", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -77653,13 +79105,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "401": { @@ -77670,12 +79122,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } }, @@ -77683,15 +79135,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified PodDisruptionBudget", - "operationId": "replacePolicyV1NamespacedPodDisruptionBudgetStatus", + "description": "replace status of the specified ServiceCIDR", + "operationId": "replaceNetworkingV1ServiceCIDRStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, { @@ -77722,13 +79174,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceCIDR" } }, "401": { @@ -77739,102 +79191,23 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } } }, - "/apis/policy/v1/poddisruptionbudgets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listPolicyV1PodDisruptionBudgetForAllNamespaces", - "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/io.k8s.api.policy.v1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets": { + "/apis/networking.k8s.io/v1/watch/ingressclasses": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchPolicyV1NamespacedPodDisruptionBudgetList", + "description": "watch individual changes to a list of IngressClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1IngressClassList", "produces": [ "application/json", "application/yaml", @@ -77859,12 +79232,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "IngressClass", "version": "v1" } }, @@ -77884,9 +79257,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -77910,13 +79280,13 @@ } ] }, - "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "/apis/networking.k8s.io/v1/watch/ingressclasses/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchPolicyV1NamespacedPodDisruptionBudget", + "description": "watch changes to an object of kind IngressClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNetworkingV1IngressClass", "produces": [ "application/json", "application/yaml", @@ -77941,12 +79311,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "IngressClass", "version": "v1" } }, @@ -77967,16 +79337,13 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the PodDisruptionBudget", + "description": "name of the IngressClass", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -78000,13 +79367,13 @@ } ] }, - "/apis/policy/v1/watch/poddisruptionbudgets": { + "/apis/networking.k8s.io/v1/watch/ingresses": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchPolicyV1PodDisruptionBudgetListForAllNamespaces", + "description": "watch individual changes to a list of Ingress. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1IngressListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -78031,12 +79398,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" } }, @@ -78079,25 +79446,27 @@ } ] }, - "/apis/rbac.authorization.k8s.io/": { + "/apis/networking.k8s.io/v1/watch/ipaddresses": { "get": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], - "description": "get information of a group", - "operationId": "getRbacAuthorizationAPIGroup", + "description": "watch individual changes to a list of IPAddress. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1IPAddressList", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "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/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -78108,31 +79477,75 @@ "https" ], "tags": [ - "rbacAuthorization" - ] - } + "networking_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/rbac.authorization.k8s.io/v1/": { + "/apis/networking.k8s.io/v1/watch/ipaddresses/{name}": { "get": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" + "*/*" ], - "description": "get available resources", - "operationId": "getRbacAuthorizationV1APIResources", + "description": "watch changes to an object of kind IPAddress. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNetworkingV1IPAddress", "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/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -78143,79 +79556,83 @@ "https" ], "tags": [ - "rbacAuthorization_v1" - ] - } + "networking_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the IPAddress", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings": { - "delete": { + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of ClusterRoleBinding", - "operationId": "deleteRbacAuthorizationV1CollectionClusterRoleBinding", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - } - ], + "description": "watch individual changes to a list of Ingress. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1NamespacedIngressList", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -78226,56 +79643,64 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ClusterRoleBinding", - "operationId": "listRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ], + "description": "watch changes to an object of kind Ingress. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNetworkingV1NamespacedIngress", "produces": [ "application/json", "application/yaml", @@ -78289,7 +79714,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBindingList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -78300,76 +79725,86 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" } }, "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the Ingress", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "post": { + ] + }, + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { + "get": { "consumes": [ "*/*" ], - "description": "create a ClusterRoleBinding", - "operationId": "createRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": "watch individual changes to a list of NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1NamespacedNetworkPolicyList", "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/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -78380,64 +79815,78 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } - } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}": { - "delete": { + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "delete a ClusterRoleBinding", - "operationId": "deleteRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - } - ], + "description": "watch changes to an object of kind NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNetworkingV1NamespacedNetworkPolicy", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -78448,32 +79897,86 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the NetworkPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1/watch/networkpolicies": { "get": { "consumes": [ "*/*" ], - "description": "read the specified ClusterRoleBinding", - "operationId": "readRbacAuthorizationV1ClusterRoleBinding", + "description": "watch individual changes to a list of NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1NetworkPolicyListForAllNamespaces", "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/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -78484,80 +79987,75 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, "parameters": [ { - "description": "name of the ClusterRoleBinding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "patch": { + ] + }, + "/apis/networking.k8s.io/v1/watch/servicecidrs": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified ClusterRoleBinding", - "operationId": "patchRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } + "*/*" ], + "description": "watch individual changes to a list of ServiceCIDR. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1ServiceCIDRList", "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/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -78568,48 +80066,151 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "networking_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } }, - "put": { + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/networking.k8s.io/v1/watch/servicecidrs/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "replace the specified ClusterRoleBinding", - "operationId": "replaceRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, + "description": "watch changes to an object of kind ServiceCIDR. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNetworkingV1ServiceCIDR", + "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/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": [ + "networking_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ServiceCIDR", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/node.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], + "description": "get information of a group", + "operationId": "getNodeAPIGroup", "produces": [ "application/json", "application/yaml", @@ -78620,13 +80221,42 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" } }, - "201": { - "description": "Created", + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node" + ] + } + }, + "/apis/node.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get available resources", + "operationId": "getNodeV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" } }, "401": { @@ -78637,23 +80267,17 @@ "https" ], "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } + "node_v1" + ] } }, - "/apis/rbac.authorization.k8s.io/v1/clusterroles": { + "/apis/node.k8s.io/v1/runtimeclasses": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ClusterRole", - "operationId": "deleteRbacAuthorizationV1CollectionClusterRole", + "description": "delete collection of RuntimeClass", + "operationId": "deleteNodeV1CollectionRuntimeClass", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -78726,12 +80350,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "node_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" } }, @@ -78739,8 +80363,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ClusterRole", - "operationId": "listRbacAuthorizationV1ClusterRole", + "description": "list or watch objects of kind RuntimeClass", + "operationId": "listNodeV1RuntimeClass", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -78789,7 +80413,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleList" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClassList" } }, "401": { @@ -78800,12 +80424,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "node_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" } }, @@ -78818,15 +80442,15 @@ "consumes": [ "*/*" ], - "description": "create a ClusterRole", - "operationId": "createRbacAuthorizationV1ClusterRole", + "description": "create a RuntimeClass", + "operationId": "createNodeV1RuntimeClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, { @@ -78857,19 +80481,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, "401": { @@ -78880,23 +80504,23 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "node_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" } } }, - "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}": { + "/apis/node.k8s.io/v1/runtimeclasses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ClusterRole", - "operationId": "deleteRbacAuthorizationV1ClusterRole", + "description": "delete a RuntimeClass", + "operationId": "deleteNodeV1RuntimeClass", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -78948,12 +80572,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "node_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" } }, @@ -78961,8 +80585,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ClusterRole", - "operationId": "readRbacAuthorizationV1ClusterRole", + "description": "read the specified RuntimeClass", + "operationId": "readNodeV1RuntimeClass", "produces": [ "application/json", "application/yaml", @@ -78973,7 +80597,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, "401": { @@ -78984,18 +80608,18 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "node_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" } }, "parameters": [ { - "description": "name of the ClusterRole", + "description": "name of the RuntimeClass", "in": "path", "name": "name", "required": true, @@ -79014,8 +80638,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ClusterRole", - "operationId": "patchRbacAuthorizationV1ClusterRole", + "description": "partially update the specified RuntimeClass", + "operationId": "patchNodeV1RuntimeClass", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -79051,13 +80675,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, "401": { @@ -79068,12 +80692,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "node_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" } }, @@ -79081,15 +80705,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ClusterRole", - "operationId": "replaceRbacAuthorizationV1ClusterRole", + "description": "replace the specified RuntimeClass", + "operationId": "replaceNodeV1RuntimeClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, { @@ -79120,13 +80744,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, "401": { @@ -79137,45 +80761,281 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "node_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", + "group": "node.k8s.io", + "kind": "RuntimeClass", "version": "v1" } } }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings": { - "delete": { + "/apis/node.k8s.io/v1/watch/runtimeclasses": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of RoleBinding", - "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRoleBinding", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + "description": "watch individual changes to a list of RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNodeV1RuntimeClassList", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/node.k8s.io/v1/watch/runtimeclasses/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchNodeV1RuntimeClass", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the RuntimeClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/policy/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get information of a group", + "operationId": "getPolicyAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy" + ] + } + }, + "/apis/policy/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get available resources", + "operationId": "getPolicyV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ] + } + }, + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PodDisruptionBudget", + "operationId": "deletePolicyV1CollectionNamespacedPodDisruptionBudget", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" }, { "$ref": "#/parameters/labelSelector-5Zw57w4C" @@ -79226,12 +81086,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, @@ -79239,8 +81099,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind RoleBinding", - "operationId": "listRbacAuthorizationV1NamespacedRoleBinding", + "description": "list or watch objects of kind PodDisruptionBudget", + "operationId": "listPolicyV1NamespacedPodDisruptionBudget", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -79289,7 +81149,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBindingList" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetList" } }, "401": { @@ -79300,12 +81160,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, @@ -79321,15 +81181,15 @@ "consumes": [ "*/*" ], - "description": "create a RoleBinding", - "operationId": "createRbacAuthorizationV1NamespacedRoleBinding", + "description": "create a PodDisruptionBudget", + "operationId": "createPolicyV1NamespacedPodDisruptionBudget", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, { @@ -79360,19 +81220,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "401": { @@ -79383,23 +81243,23 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } } }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}": { + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a RoleBinding", - "operationId": "deleteRbacAuthorizationV1NamespacedRoleBinding", + "description": "delete a PodDisruptionBudget", + "operationId": "deletePolicyV1NamespacedPodDisruptionBudget", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -79451,12 +81311,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, @@ -79464,8 +81324,8 @@ "consumes": [ "*/*" ], - "description": "read the specified RoleBinding", - "operationId": "readRbacAuthorizationV1NamespacedRoleBinding", + "description": "read the specified PodDisruptionBudget", + "operationId": "readPolicyV1NamespacedPodDisruptionBudget", "produces": [ "application/json", "application/yaml", @@ -79476,7 +81336,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "401": { @@ -79487,18 +81347,18 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, "parameters": [ { - "description": "name of the RoleBinding", + "description": "name of the PodDisruptionBudget", "in": "path", "name": "name", "required": true, @@ -79520,8 +81380,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified RoleBinding", - "operationId": "patchRbacAuthorizationV1NamespacedRoleBinding", + "description": "partially update the specified PodDisruptionBudget", + "operationId": "patchPolicyV1NamespacedPodDisruptionBudget", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -79557,13 +81417,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "401": { @@ -79574,12 +81434,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, @@ -79587,15 +81447,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified RoleBinding", - "operationId": "replaceRbacAuthorizationV1NamespacedRoleBinding", + "description": "replace the specified PodDisruptionBudget", + "operationId": "replacePolicyV1NamespacedPodDisruptionBudget", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, { @@ -79626,13 +81486,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "401": { @@ -79643,74 +81503,23 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } } }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles": { - "delete": { + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of Role", - "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRole", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - } - ], + "description": "read status of the specified PodDisruptionBudget", + "operationId": "readPolicyV1NamespacedPodDisruptionBudgetStatus", "produces": [ "application/json", "application/yaml", @@ -79721,7 +81530,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "401": { @@ -79732,70 +81541,83 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, - "get": { + "parameters": [ + { + "description": "name of the PodDisruptionBudget", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" ], - "description": "list or watch objects of kind Role", - "operationId": "listRbacAuthorizationV1NamespacedRole", + "description": "partially update status of the specified PodDisruptionBudget", + "operationId": "patchPolicyV1NamespacedPodDisruptionBudgetStatus", "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + "$ref": "#/parameters/body-78PwaGsr" }, { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 }, { - "$ref": "#/parameters/shardSelector-Kgyki_3_" + "$ref": "#/parameters/fieldManager-7c6nTn1T" }, { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "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 }, { - "$ref": "#/parameters/watch-XNNPZGbK" + "$ref": "#/parameters/force-tOGGb0Yi" } ], "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/io.k8s.api.rbac.v1.RoleList" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "401": { @@ -79806,36 +81628,28 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, - "parameters": [ - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "post": { + "put": { "consumes": [ "*/*" ], - "description": "create a Role", - "operationId": "createRbacAuthorizationV1NamespacedRole", + "description": "replace status of the specified PodDisruptionBudget", + "operationId": "replacePolicyV1NamespacedPodDisruptionBudgetStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, { @@ -79866,279 +81680,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - } - }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a Role", - "operationId": "deleteRbacAuthorizationV1NamespacedRole", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Role", - "operationId": "readRbacAuthorizationV1NamespacedRole", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Role", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified Role", - "operationId": "patchRbacAuthorizationV1NamespacedRole", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Role", - "operationId": "replaceRbacAuthorizationV1NamespacedRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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/io.k8s.api.rbac.v1.Role" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, "401": { @@ -80149,102 +81697,23 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } } }, - "/apis/rbac.authorization.k8s.io/v1/rolebindings": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind RoleBinding", - "operationId": "listRbacAuthorizationV1RoleBindingForAllNamespaces", - "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/io.k8s.api.rbac.v1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/roles": { + "/apis/policy/v1/poddisruptionbudgets": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Role", - "operationId": "listRbacAuthorizationV1RoleForAllNamespaces", + "description": "list or watch objects of kind PodDisruptionBudget", + "operationId": "listPolicyV1PodDisruptionBudgetForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -80258,7 +81727,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleList" + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetList" } }, "401": { @@ -80269,12 +81738,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, @@ -80317,13 +81786,13 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { + "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1ClusterRoleBindingList", + "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchPolicyV1NamespacedPodDisruptionBudgetList", "produces": [ "application/json", "application/yaml", @@ -80348,12 +81817,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, @@ -80373,6 +81842,9 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -80396,13 +81868,13 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { + "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1ClusterRoleBinding", + "description": "watch changes to an object of kind PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchPolicyV1NamespacedPodDisruptionBudget", "produces": [ "application/json", "application/yaml", @@ -80427,12 +81899,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, @@ -80453,13 +81925,16 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the ClusterRoleBinding", + "description": "name of the PodDisruptionBudget", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -80483,13 +81958,13 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles": { + "/apis/policy/v1/watch/poddisruptionbudgets": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ClusterRole. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1ClusterRoleList", + "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchPolicyV1PodDisruptionBudgetListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -80514,12 +81989,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "policy_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } }, @@ -80562,27 +82037,27 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}": { + "/apis/rbac.authorization.k8s.io/": { "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], - "description": "watch changes to an object of kind ClusterRole. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1ClusterRole", + "description": "get information of a group", + "operationId": "getRbacAuthorizationAPIGroup", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" } }, "401": { @@ -80593,83 +82068,31 @@ "https" ], "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the ClusterRole", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] + "rbacAuthorization" + ] + } }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings": { + "/apis/rbac.authorization.k8s.io/v1/": { "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], - "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1NamespacedRoleBindingList", + "description": "get available resources", + "operationId": "getRbacAuthorizationV1APIResources", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" } }, "401": { @@ -80681,77 +82104,78 @@ ], "tags": [ "rbacAuthorization_v1" + ] + } + }, + "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings": { + "delete": { + "consumes": [ + "*/*" ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}": { - "get": { - "consumes": [ - "*/*" + "description": "delete collection of ClusterRoleBinding", + "operationId": "deleteRbacAuthorizationV1CollectionClusterRoleBinding", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } ], - "description": "watch changes to an object of kind RoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1NamespacedRoleBinding", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -80764,70 +82188,54 @@ "tags": [ "rbacAuthorization_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", + "kind": "ClusterRoleBinding", "version": "v1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the RoleBinding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1NamespacedRoleList", + "description": "list or watch objects of kind ClusterRoleBinding", + "operationId": "listRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], "produces": [ "application/json", "application/yaml", @@ -80841,7 +82249,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBindingList" } }, "401": { @@ -80854,76 +82262,74 @@ "tags": [ "rbacAuthorization_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "rbac.authorization.k8s.io", - "kind": "Role", + "kind": "ClusterRoleBinding", "version": "v1" } }, "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}": { - "get": { + ], + "post": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind Role. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1NamespacedRole", + "description": "create a ClusterRoleBinding", + "operationId": "createRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" } }, "401": { @@ -80936,84 +82342,62 @@ "tags": [ "rbacAuthorization_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "rbac.authorization.k8s.io", - "kind": "Role", + "kind": "ClusterRoleBinding", "version": "v1" } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the Role", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] + } }, - "/apis/rbac.authorization.k8s.io/v1/watch/rolebindings": { - "get": { + "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}": { + "delete": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1RoleBindingListForAllNamespaces", + "description": "delete a ClusterRoleBinding", + "operationId": "deleteRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -81026,73 +82410,30 @@ "tags": [ "rbacAuthorization_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", + "kind": "ClusterRoleBinding", "version": "v1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/roles": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1RoleListForAllNamespaces", + "description": "read the specified ClusterRoleBinding", + "operationId": "readRbacAuthorizationV1ClusterRoleBinding", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" } }, "401": { @@ -81105,71 +82446,78 @@ "tags": [ "rbacAuthorization_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "rbac.authorization.k8s.io", - "kind": "Role", + "kind": "ClusterRoleBinding", "version": "v1" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" + "description": "name of the ClusterRoleBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true }, { "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" } - ] - }, - "/apis/resource.k8s.io/": { - "get": { + ], + "patch": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified ClusterRoleBinding", + "operationId": "patchRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } ], - "description": "get information of a group", - "operationId": "getResourceAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" } }, "401": { @@ -81180,20 +82528,48 @@ "https" ], "tags": [ - "resource" - ] - } - }, - "/apis/resource.k8s.io/v1/": { - "get": { + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "put": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" + "*/*" + ], + "description": "replace the specified ClusterRoleBinding", + "operationId": "replaceRbacAuthorizationV1ClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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": "get available resources", - "operationId": "getResourceV1APIResources", "produces": [ "application/json", "application/yaml", @@ -81204,7 +82580,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" } }, "401": { @@ -81215,17 +82597,23 @@ "https" ], "tags": [ - "resource_v1" - ] + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } } }, - "/apis/resource.k8s.io/v1/deviceclasses": { + "/apis/rbac.authorization.k8s.io/v1/clusterroles": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of DeviceClass", - "operationId": "deleteResourceV1CollectionDeviceClass", + "description": "delete collection of ClusterRole", + "operationId": "deleteRbacAuthorizationV1CollectionClusterRole", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -81298,12 +82686,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } }, @@ -81311,8 +82699,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind DeviceClass", - "operationId": "listResourceV1DeviceClass", + "description": "list or watch objects of kind ClusterRole", + "operationId": "listRbacAuthorizationV1ClusterRole", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -81361,7 +82749,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClassList" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleList" } }, "401": { @@ -81372,12 +82760,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } }, @@ -81390,15 +82778,15 @@ "consumes": [ "*/*" ], - "description": "create a DeviceClass", - "operationId": "createResourceV1DeviceClass", + "description": "create a ClusterRole", + "operationId": "createRbacAuthorizationV1ClusterRole", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, { @@ -81429,19 +82817,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "401": { @@ -81452,23 +82840,23 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } } }, - "/apis/resource.k8s.io/v1/deviceclasses/{name}": { + "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a DeviceClass", - "operationId": "deleteResourceV1DeviceClass", + "description": "delete a ClusterRole", + "operationId": "deleteRbacAuthorizationV1ClusterRole", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -81503,13 +82891,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -81520,12 +82908,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } }, @@ -81533,8 +82921,8 @@ "consumes": [ "*/*" ], - "description": "read the specified DeviceClass", - "operationId": "readResourceV1DeviceClass", + "description": "read the specified ClusterRole", + "operationId": "readRbacAuthorizationV1ClusterRole", "produces": [ "application/json", "application/yaml", @@ -81545,7 +82933,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "401": { @@ -81556,18 +82944,18 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } }, "parameters": [ { - "description": "name of the DeviceClass", + "description": "name of the ClusterRole", "in": "path", "name": "name", "required": true, @@ -81586,8 +82974,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified DeviceClass", - "operationId": "patchResourceV1DeviceClass", + "description": "partially update the specified ClusterRole", + "operationId": "patchRbacAuthorizationV1ClusterRole", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -81623,13 +83011,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "401": { @@ -81640,12 +83028,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } }, @@ -81653,15 +83041,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified DeviceClass", - "operationId": "replaceResourceV1DeviceClass", + "description": "replace the specified ClusterRole", + "operationId": "replaceRbacAuthorizationV1ClusterRole", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, { @@ -81692,13 +83080,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, "401": { @@ -81709,23 +83097,23 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } } }, - "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims": { + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceClaim", - "operationId": "deleteResourceV1CollectionNamespacedResourceClaim", + "description": "delete collection of RoleBinding", + "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRoleBinding", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -81798,12 +83186,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, @@ -81811,8 +83199,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listResourceV1NamespacedResourceClaim", + "description": "list or watch objects of kind RoleBinding", + "operationId": "listRbacAuthorizationV1NamespacedRoleBinding", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -81861,7 +83249,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimList" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBindingList" } }, "401": { @@ -81872,12 +83260,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, @@ -81893,15 +83281,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceClaim", - "operationId": "createResourceV1NamespacedResourceClaim", + "description": "create a RoleBinding", + "operationId": "createRbacAuthorizationV1NamespacedRoleBinding", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, { @@ -81932,19 +83320,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "401": { @@ -81955,23 +83343,23 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } } }, - "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceClaim", - "operationId": "deleteResourceV1NamespacedResourceClaim", + "description": "delete a RoleBinding", + "operationId": "deleteRbacAuthorizationV1NamespacedRoleBinding", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -82006,13 +83394,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -82023,215 +83411,21 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified ResourceClaim", - "operationId": "readResourceV1NamespacedResourceClaim", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ResourceClaim", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified ResourceClaim", - "operationId": "patchResourceV1NamespacedResourceClaim", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ResourceClaim", - "operationId": "replaceResourceV1NamespacedResourceClaim", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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/io.k8s.api.resource.v1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1" - } - } - }, - "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified ResourceClaim", - "operationId": "readResourceV1NamespacedResourceClaimStatus", + "description": "read the specified RoleBinding", + "operationId": "readRbacAuthorizationV1NamespacedRoleBinding", "produces": [ "application/json", "application/yaml", @@ -82242,7 +83436,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "401": { @@ -82253,18 +83447,18 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, "parameters": [ { - "description": "name of the ResourceClaim", + "description": "name of the RoleBinding", "in": "path", "name": "name", "required": true, @@ -82286,8 +83480,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified ResourceClaim", - "operationId": "patchResourceV1NamespacedResourceClaimStatus", + "description": "partially update the specified RoleBinding", + "operationId": "patchRbacAuthorizationV1NamespacedRoleBinding", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -82323,13 +83517,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "401": { @@ -82340,12 +83534,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, @@ -82353,15 +83547,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified ResourceClaim", - "operationId": "replaceResourceV1NamespacedResourceClaimStatus", + "description": "replace the specified RoleBinding", + "operationId": "replaceRbacAuthorizationV1NamespacedRoleBinding", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, { @@ -82392,13 +83586,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, "401": { @@ -82409,23 +83603,23 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } } }, - "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceClaimTemplate", - "operationId": "deleteResourceV1CollectionNamespacedResourceClaimTemplate", + "description": "delete collection of Role", + "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRole", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -82498,12 +83692,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -82511,8 +83705,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listResourceV1NamespacedResourceClaimTemplate", + "description": "list or watch objects of kind Role", + "operationId": "listRbacAuthorizationV1NamespacedRole", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -82561,7 +83755,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplateList" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleList" } }, "401": { @@ -82572,12 +83766,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -82593,15 +83787,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceClaimTemplate", - "operationId": "createResourceV1NamespacedResourceClaimTemplate", + "description": "create a Role", + "operationId": "createRbacAuthorizationV1NamespacedRole", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, { @@ -82632,19 +83826,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "401": { @@ -82655,23 +83849,23 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } } }, - "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceClaimTemplate", - "operationId": "deleteResourceV1NamespacedResourceClaimTemplate", + "description": "delete a Role", + "operationId": "deleteRbacAuthorizationV1NamespacedRole", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -82706,13 +83900,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -82723,12 +83917,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -82736,8 +83930,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ResourceClaimTemplate", - "operationId": "readResourceV1NamespacedResourceClaimTemplate", + "description": "read the specified Role", + "operationId": "readRbacAuthorizationV1NamespacedRole", "produces": [ "application/json", "application/yaml", @@ -82748,7 +83942,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "401": { @@ -82759,18 +83953,18 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, "parameters": [ { - "description": "name of the ResourceClaimTemplate", + "description": "name of the Role", "in": "path", "name": "name", "required": true, @@ -82792,8 +83986,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourceClaimTemplate", - "operationId": "patchResourceV1NamespacedResourceClaimTemplate", + "description": "partially update the specified Role", + "operationId": "patchRbacAuthorizationV1NamespacedRole", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -82829,13 +84023,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "401": { @@ -82846,12 +84040,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -82859,15 +84053,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ResourceClaimTemplate", - "operationId": "replaceResourceV1NamespacedResourceClaimTemplate", + "description": "replace the specified Role", + "operationId": "replaceRbacAuthorizationV1NamespacedRole", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, { @@ -82898,13 +84092,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, "401": { @@ -82915,23 +84109,23 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } } }, - "/apis/resource.k8s.io/v1/resourceclaims": { + "/apis/rbac.authorization.k8s.io/v1/rolebindings": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listResourceV1ResourceClaimForAllNamespaces", + "description": "list or watch objects of kind RoleBinding", + "operationId": "listRbacAuthorizationV1RoleBindingForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -82945,7 +84139,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimList" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBindingList" } }, "401": { @@ -82956,12 +84150,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, @@ -83004,13 +84198,13 @@ } ] }, - "/apis/resource.k8s.io/v1/resourceclaimtemplates": { + "/apis/rbac.authorization.k8s.io/v1/roles": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listResourceV1ResourceClaimTemplateForAllNamespaces", + "description": "list or watch objects of kind Role", + "operationId": "listRbacAuthorizationV1RoleForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -83024,7 +84218,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplateList" + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleList" } }, "401": { @@ -83035,12 +84229,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -83083,75 +84277,27 @@ } ] }, - "/apis/resource.k8s.io/v1/resourceslices": { - "delete": { + "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceSlice", - "operationId": "deleteResourceV1CollectionResourceSlice", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - } - ], + "description": "watch individual changes to a list of ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1ClusterRoleBindingList", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -83162,56 +84308,61 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", "version": "v1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceSlice", - "operationId": "listResourceV1ResourceSlice", - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ], + "description": "watch changes to an object of kind ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchRbacAuthorizationV1ClusterRoleBinding", "produces": [ "application/json", "application/yaml", @@ -83225,7 +84376,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSliceList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -83236,76 +84387,83 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", "version": "v1" } }, "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ClusterRoleBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "post": { + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles": { + "get": { "consumes": [ "*/*" ], - "description": "create a ResourceSlice", - "operationId": "createResourceV1ResourceSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": "watch individual changes to a list of ClusterRole. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1ClusterRoleList", "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/io.k8s.api.resource.v1.ResourceSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -83316,64 +84474,75 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } - } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/resource.k8s.io/v1/resourceslices/{name}": { - "delete": { + "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "delete a ResourceSlice", - "operationId": "deleteResourceV1ResourceSlice", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - } - ], + "description": "watch changes to an object of kind ClusterRole. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchRbacAuthorizationV1ClusterRole", "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/io.k8s.api.resource.v1.ResourceSlice" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -83384,32 +84553,83 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ClusterRole", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings": { "get": { "consumes": [ "*/*" ], - "description": "read the specified ResourceSlice", - "operationId": "readResourceV1ResourceSlice", + "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1NamespacedRoleBindingList", "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/io.k8s.api.resource.v1.ResourceSlice" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -83420,255 +84640,64 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, "parameters": [ { - "description": "name of the ResourceSlice", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified ResourceSlice", - "operationId": "patchResourceV1ResourceSlice", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ResourceSlice", - "operationId": "replaceResourceV1ResourceSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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/io.k8s.api.resource.v1.ResourceSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1" - } - } - }, - "/apis/resource.k8s.io/v1/watch/deviceclasses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of DeviceClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1DeviceClassList", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/resource.k8s.io/v1/watch/deviceclasses/{name}": { - "get": { + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind DeviceClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1DeviceClass", + "description": "watch changes to an object of kind RoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchRbacAuthorizationV1NamespacedRoleBinding", "produces": [ "application/json", "application/yaml", @@ -83693,12 +84722,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, @@ -83719,13 +84748,16 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the DeviceClass", + "description": "name of the RoleBinding", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -83749,13 +84781,13 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims": { + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1NamespacedResourceClaimList", + "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1NamespacedRoleList", "produces": [ "application/json", "application/yaml", @@ -83780,12 +84812,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -83831,13 +84863,13 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1NamespacedResourceClaim", + "description": "watch changes to an object of kind Role. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchRbacAuthorizationV1NamespacedRole", "produces": [ "application/json", "application/yaml", @@ -83862,12 +84894,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -83888,7 +84920,7 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the ResourceClaim", + "description": "name of the Role", "in": "path", "name": "name", "required": true, @@ -83921,13 +84953,13 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/rbac.authorization.k8s.io/v1/watch/rolebindings": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1NamespacedResourceClaimTemplateList", + "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1RoleBindingListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -83952,12 +84984,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", "version": "v1" } }, @@ -83977,9 +85009,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -84003,13 +85032,13 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/rbac.authorization.k8s.io/v1/watch/roles": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1NamespacedResourceClaimTemplate", + "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchRbacAuthorizationV1RoleListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -84034,12 +85063,12 @@ "https" ], "tags": [ - "resource_v1" + "rbacAuthorization_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "group": "rbac.authorization.k8s.io", + "kind": "Role", "version": "v1" } }, @@ -84059,17 +85088,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "description": "name of the ResourceClaimTemplate", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -84093,27 +85111,27 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/resourceclaims": { + "/apis/resource.k8s.io/": { "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], - "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1ResourceClaimListForAllNamespaces", + "description": "get information of a group", + "operationId": "getResourceAPIGroup", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" } }, "401": { @@ -84124,75 +85142,31 @@ "https" ], "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] + "resource" + ] + } }, - "/apis/resource.k8s.io/v1/watch/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1/": { "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], - "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1ResourceClaimTemplateListForAllNamespaces", + "description": "get available resources", + "operationId": "getResourceV1APIResources", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" } }, "401": { @@ -84204,74 +85178,78 @@ ], "tags": [ "resource_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] + ] + } }, - "/apis/resource.k8s.io/v1/watch/resourceslices": { - "get": { + "/apis/resource.k8s.io/v1/deviceclasses": { + "delete": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1ResourceSliceList", + "description": "delete collection of DeviceClass", + "operationId": "deleteResourceV1CollectionDeviceClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -84284,59 +85262,54 @@ "tags": [ "resource_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", + "kind": "DeviceClass", "version": "v1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/resource.k8s.io/v1/watch/resourceslices/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1ResourceSlice", + "description": "list or watch objects of kind DeviceClass", + "operationId": "listResourceV1DeviceClass", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], "produces": [ "application/json", "application/yaml", @@ -84350,7 +85323,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClassList" } }, "401": { @@ -84363,31 +85336,200 @@ "tags": [ "resource_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", + "kind": "DeviceClass", "version": "v1" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a DeviceClass", + "operationId": "createResourceV1DeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1" + } + } + }, + "/apis/resource.k8s.io/v1/deviceclasses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a DeviceClass", + "operationId": "deleteResourceV1DeviceClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/limit-1NfNmdNH" + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified DeviceClass", + "operationId": "readResourceV1DeviceClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1" + } + }, + "parameters": [ { - "description": "name of the ResourceSlice", + "description": "name of the DeviceClass", "in": "path", "name": "name", "required": true, @@ -84396,37 +85538,112 @@ }, { "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" } - ] - }, - "/apis/resource.k8s.io/v1alpha3/": { - "get": { + ], + "patch": { "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified DeviceClass", + "operationId": "patchResourceV1DeviceClass", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" ], - "description": "get available resources", - "operationId": "getResourceV1alpha3APIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified DeviceClass", + "operationId": "replaceResourceV1DeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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", @@ -84437,7 +85654,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceClass" } }, "401": { @@ -84448,17 +85671,23 @@ "https" ], "tags": [ - "resource_v1alpha3" - ] + "resource_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1" + } } }, - "/apis/resource.k8s.io/v1alpha3/devicetaintrules": { + "/apis/resource.k8s.io/v1/devicetaintrules": { "delete": { "consumes": [ "*/*" ], "description": "delete collection of DeviceTaintRule", - "operationId": "deleteResourceV1alpha3CollectionDeviceTaintRule", + "operationId": "deleteResourceV1CollectionDeviceTaintRule", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -84531,13 +85760,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } }, "get": { @@ -84545,7 +85774,7 @@ "*/*" ], "description": "list or watch objects of kind DeviceTaintRule", - "operationId": "listResourceV1alpha3DeviceTaintRule", + "operationId": "listResourceV1DeviceTaintRule", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -84594,7 +85823,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRuleList" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRuleList" } }, "401": { @@ -84605,13 +85834,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } }, "parameters": [ @@ -84624,14 +85853,14 @@ "*/*" ], "description": "create a DeviceTaintRule", - "operationId": "createResourceV1alpha3DeviceTaintRule", + "operationId": "createResourceV1DeviceTaintRule", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, { @@ -84662,19 +85891,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "401": { @@ -84685,23 +85914,23 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } } }, - "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}": { + "/apis/resource.k8s.io/v1/devicetaintrules/{name}": { "delete": { "consumes": [ "*/*" ], "description": "delete a DeviceTaintRule", - "operationId": "deleteResourceV1alpha3DeviceTaintRule", + "operationId": "deleteResourceV1DeviceTaintRule", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -84736,13 +85965,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -84753,13 +85982,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } }, "get": { @@ -84767,7 +85996,7 @@ "*/*" ], "description": "read the specified DeviceTaintRule", - "operationId": "readResourceV1alpha3DeviceTaintRule", + "operationId": "readResourceV1DeviceTaintRule", "produces": [ "application/json", "application/yaml", @@ -84778,7 +86007,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "401": { @@ -84789,13 +86018,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } }, "parameters": [ @@ -84820,7 +86049,7 @@ "application/apply-patch+cbor" ], "description": "partially update the specified DeviceTaintRule", - "operationId": "patchResourceV1alpha3DeviceTaintRule", + "operationId": "patchResourceV1DeviceTaintRule", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -84856,13 +86085,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "401": { @@ -84873,13 +86102,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } }, "put": { @@ -84887,14 +86116,14 @@ "*/*" ], "description": "replace the specified DeviceTaintRule", - "operationId": "replaceResourceV1alpha3DeviceTaintRule", + "operationId": "replaceResourceV1DeviceTaintRule", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, { @@ -84925,13 +86154,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "401": { @@ -84942,23 +86171,23 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } } }, - "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status": { + "/apis/resource.k8s.io/v1/devicetaintrules/{name}/status": { "get": { "consumes": [ "*/*" ], "description": "read status of the specified DeviceTaintRule", - "operationId": "readResourceV1alpha3DeviceTaintRuleStatus", + "operationId": "readResourceV1DeviceTaintRuleStatus", "produces": [ "application/json", "application/yaml", @@ -84969,7 +86198,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "401": { @@ -84980,13 +86209,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } }, "parameters": [ @@ -85011,7 +86240,7 @@ "application/apply-patch+cbor" ], "description": "partially update status of the specified DeviceTaintRule", - "operationId": "patchResourceV1alpha3DeviceTaintRuleStatus", + "operationId": "patchResourceV1DeviceTaintRuleStatus", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -85047,13 +86276,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "401": { @@ -85064,13 +86293,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } }, "put": { @@ -85078,14 +86307,14 @@ "*/*" ], "description": "replace status of the specified DeviceTaintRule", - "operationId": "replaceResourceV1alpha3DeviceTaintRuleStatus", + "operationId": "replaceResourceV1DeviceTaintRuleStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, { @@ -85116,13 +86345,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1.DeviceTaintRule" } }, "401": { @@ -85133,23 +86362,23 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceTaintRule", - "version": "v1alpha3" + "version": "v1" } } }, - "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests": { + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourcePoolStatusRequest", - "operationId": "deleteResourceV1alpha3CollectionResourcePoolStatusRequest", + "description": "delete collection of ResourceClaim", + "operationId": "deleteResourceV1CollectionNamespacedResourceClaim", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -85222,21 +86451,21 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourcePoolStatusRequest", - "operationId": "listResourceV1alpha3ResourcePoolStatusRequest", + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceV1NamespacedResourceClaim", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -85285,7 +86514,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequestList" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimList" } }, "401": { @@ -85296,33 +86525,36 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } }, "parameters": [ { - "$ref": "#/parameters/pretty-tJGM1-ng" + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" } ], "post": { "consumes": [ "*/*" ], - "description": "create a ResourcePoolStatusRequest", - "operationId": "createResourceV1alpha3ResourcePoolStatusRequest", + "description": "create a ResourceClaim", + "operationId": "createResourceV1NamespacedResourceClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, { @@ -85353,19 +86585,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "401": { @@ -85376,23 +86608,23 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } } }, - "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}": { + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourcePoolStatusRequest", - "operationId": "deleteResourceV1alpha3ResourcePoolStatusRequest", + "description": "delete a ResourceClaim", + "operationId": "deleteResourceV1NamespacedResourceClaim", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -85427,13 +86659,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "401": { @@ -85444,21 +86676,21 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ResourcePoolStatusRequest", - "operationId": "readResourceV1alpha3ResourcePoolStatusRequest", + "description": "read the specified ResourceClaim", + "operationId": "readResourceV1NamespacedResourceClaim", "produces": [ "application/json", "application/yaml", @@ -85469,7 +86701,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "401": { @@ -85480,24 +86712,27 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } }, "parameters": [ { - "description": "name of the ResourcePoolStatusRequest", + "description": "name of the ResourceClaim", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -85510,8 +86745,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourcePoolStatusRequest", - "operationId": "patchResourceV1alpha3ResourcePoolStatusRequest", + "description": "partially update the specified ResourceClaim", + "operationId": "patchResourceV1NamespacedResourceClaim", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -85547,13 +86782,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "401": { @@ -85564,28 +86799,28 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified ResourcePoolStatusRequest", - "operationId": "replaceResourceV1alpha3ResourcePoolStatusRequest", + "description": "replace the specified ResourceClaim", + "operationId": "replaceResourceV1NamespacedResourceClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, { @@ -85616,13 +86851,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "401": { @@ -85633,23 +86868,23 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } } }, - "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status": { + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified ResourcePoolStatusRequest", - "operationId": "readResourceV1alpha3ResourcePoolStatusRequestStatus", + "description": "read status of the specified ResourceClaim", + "operationId": "readResourceV1NamespacedResourceClaimStatus", "produces": [ "application/json", "application/yaml", @@ -85660,7 +86895,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "401": { @@ -85671,24 +86906,27 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } }, "parameters": [ { - "description": "name of the ResourcePoolStatusRequest", + "description": "name of the ResourceClaim", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -85701,8 +86939,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified ResourcePoolStatusRequest", - "operationId": "patchResourceV1alpha3ResourcePoolStatusRequestStatus", + "description": "partially update status of the specified ResourceClaim", + "operationId": "patchResourceV1NamespacedResourceClaimStatus", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -85738,13 +86976,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "401": { @@ -85755,28 +86993,28 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace status of the specified ResourcePoolStatusRequest", - "operationId": "replaceResourceV1alpha3ResourcePoolStatusRequestStatus", + "description": "replace status of the specified ResourceClaim", + "operationId": "replaceResourceV1NamespacedResourceClaimStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, { @@ -85807,13 +87045,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaim" } }, "401": { @@ -85824,37 +87062,85 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaim", + "version": "v1" } } }, - "/apis/resource.k8s.io/v1alpha3/watch/devicetaintrules": { - "get": { + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates": { + "delete": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1alpha3DeviceTaintRuleList", + "description": "delete collection of ResourceClaimTemplate", + "operationId": "deleteResourceV1CollectionNamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -85865,61 +87151,56 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + "kind": "ResourceClaimTemplate", + "version": "v1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/resource.k8s.io/v1alpha3/watch/devicetaintrules/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1alpha3DeviceTaintRule", + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceV1NamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], "produces": [ "application/json", "application/yaml", @@ -85933,7 +87214,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplateList" } }, "401": { @@ -85944,83 +87225,79 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + "kind": "ResourceClaimTemplate", + "version": "v1" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the DeviceTaintRule", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "$ref": "#/parameters/namespace-vgWSWtn3" }, { "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" } - ] - }, - "/apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests": { - "get": { + ], + "post": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourcePoolStatusRequest. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1alpha3ResourcePoolStatusRequestList", + "description": "create a ResourceClaimTemplate", + "operationId": "createResourceV1NamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" } }, "401": { @@ -86031,75 +87308,64 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "kind": "ResourceClaimTemplate", + "version": "v1" } - ] + } }, - "/apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests/{name}": { - "get": { + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "delete": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ResourcePoolStatusRequest. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1alpha3ResourcePoolStatusRequest", + "description": "delete a ResourceClaimTemplate", + "operationId": "deleteResourceV1NamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" } }, "401": { @@ -86110,39 +87376,264 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceClaimTemplate", + "version": "v1" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the ResourcePoolStatusRequest", + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceClaimTemplate", + "operationId": "readResourceV1NamespacedResourceClaimTemplate", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaimTemplate", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified ResourceClaimTemplate", + "operationId": "patchResourceV1NamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceClaimTemplate", + "operationId": "replaceResourceV1NamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1" + } + } + }, + "/apis/resource.k8s.io/v1/resourceclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceV1ResourceClaimForAllNamespaces", + "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/io.k8s.api.resource.v1.ResourceClaimList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -86166,27 +87657,27 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/": { + "/apis/resource.k8s.io/v1/resourceclaimtemplates": { "get": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" + "*/*" ], - "description": "get available resources", - "operationId": "getResourceV1beta1APIResources", + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceV1ResourceClaimTemplateForAllNamespaces", "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/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceClaimTemplateList" } }, "401": { @@ -86197,17 +87688,61 @@ "https" ], "tags": [ - "resource_v1beta1" - ] - } + "resource_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/resource.k8s.io/v1beta1/deviceclasses": { + "/apis/resource.k8s.io/v1/resourceslices": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of DeviceClass", - "operationId": "deleteResourceV1beta1CollectionDeviceClass", + "description": "delete collection of ResourceSlice", + "operationId": "deleteResourceV1CollectionResourceSlice", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -86280,21 +87815,21 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "ResourceSlice", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind DeviceClass", - "operationId": "listResourceV1beta1DeviceClass", + "description": "list or watch objects of kind ResourceSlice", + "operationId": "listResourceV1ResourceSlice", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -86343,7 +87878,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClassList" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSliceList" } }, "401": { @@ -86354,13 +87889,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "ResourceSlice", + "version": "v1" } }, "parameters": [ @@ -86372,15 +87907,15 @@ "consumes": [ "*/*" ], - "description": "create a DeviceClass", - "operationId": "createResourceV1beta1DeviceClass", + "description": "create a ResourceSlice", + "operationId": "createResourceV1ResourceSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, { @@ -86411,19 +87946,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "401": { @@ -86434,23 +87969,23 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "ResourceSlice", + "version": "v1" } } }, - "/apis/resource.k8s.io/v1beta1/deviceclasses/{name}": { + "/apis/resource.k8s.io/v1/resourceslices/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a DeviceClass", - "operationId": "deleteResourceV1beta1DeviceClass", + "description": "delete a ResourceSlice", + "operationId": "deleteResourceV1ResourceSlice", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -86485,13 +88020,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "401": { @@ -86502,21 +88037,21 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "ResourceSlice", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified DeviceClass", - "operationId": "readResourceV1beta1DeviceClass", + "description": "read the specified ResourceSlice", + "operationId": "readResourceV1ResourceSlice", "produces": [ "application/json", "application/yaml", @@ -86527,7 +88062,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "401": { @@ -86538,18 +88073,18 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "ResourceSlice", + "version": "v1" } }, "parameters": [ { - "description": "name of the DeviceClass", + "description": "name of the ResourceSlice", "in": "path", "name": "name", "required": true, @@ -86568,8 +88103,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified DeviceClass", - "operationId": "patchResourceV1beta1DeviceClass", + "description": "partially update the specified ResourceSlice", + "operationId": "patchResourceV1ResourceSlice", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -86605,13 +88140,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "401": { @@ -86622,28 +88157,28 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "ResourceSlice", + "version": "v1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified DeviceClass", - "operationId": "replaceResourceV1beta1DeviceClass", + "description": "replace the specified ResourceSlice", + "operationId": "replaceResourceV1ResourceSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, { @@ -86674,13 +88209,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1.ResourceSlice" } }, "401": { @@ -86691,85 +88226,37 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "ResourceSlice", + "version": "v1" } } }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims": { - "delete": { + "/apis/resource.k8s.io/v1/watch/deviceclasses": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceClaim", - "operationId": "deleteResourceV1beta1CollectionNamespacedResourceClaim", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - } - ], + "description": "watch individual changes to a list of DeviceClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1DeviceClassList", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -86780,56 +88267,61 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceClass", + "version": "v1" } }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listResourceV1beta1NamespacedResourceClaim", - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1/watch/deviceclasses/{name}": { + "get": { + "consumes": [ + "*/*" ], + "description": "watch changes to an object of kind DeviceClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1DeviceClass", "produces": [ "application/json", "application/yaml", @@ -86843,7 +88335,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -86854,79 +88346,162 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceClass", + "version": "v1" } }, "parameters": [ { - "$ref": "#/parameters/namespace-vgWSWtn3" + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the DeviceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "post": { + ] + }, + "/apis/resource.k8s.io/v1/watch/devicetaintrules": { + "get": { "consumes": [ "*/*" ], - "description": "create a ResourceClaim", - "operationId": "createResourceV1beta1NamespacedResourceClaim", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, + "description": "watch individual changes to a list of DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1DeviceTaintRuleList", + "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/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": [ + "resource_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1/watch/devicetaintrules/{name}": { + "get": { + "consumes": [ + "*/*" ], + "description": "watch changes to an object of kind DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1DeviceTaintRule", "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/io.k8s.api.resource.v1beta1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -86937,64 +88512,83 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1" } - } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}": { - "delete": { + "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims": { + "get": { "consumes": [ "*/*" ], - "description": "delete a ResourceClaim", - "operationId": "deleteResourceV1beta1NamespacedResourceClaim", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - } - ], + "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1NamespacedResourceClaimList", "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/io.k8s.api.resource.v1beta1.ResourceClaim" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -87005,32 +88599,78 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta1" + "version": "v1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims/{name}": { "get": { "consumes": [ "*/*" ], - "description": "read the specified ResourceClaim", - "operationId": "readResourceV1beta1NamespacedResourceClaim", + "description": "watch changes to an object of kind ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1NamespacedResourceClaim", "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/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -87041,16 +88681,31 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta1" + "version": "v1" } }, "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, { "description": "name of the ResourceClaim", "in": "path", @@ -87064,60 +88719,48 @@ }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "patch": { + ] + }, + "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified ResourceClaim", - "operationId": "patchResourceV1beta1NamespacedResourceClaim", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } + "*/*" ], + "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1NamespacedResourceClaimTemplateList", "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/io.k8s.api.resource.v1beta1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -87128,65 +88771,78 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "ResourceClaimTemplate", + "version": "v1" } }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ResourceClaim", - "operationId": "replaceResourceV1beta1NamespacedResourceClaim", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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 - } + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "get": { + "consumes": [ + "*/*" ], + "description": "watch changes to an object of kind ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1NamespacedResourceClaimTemplate", "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/io.k8s.api.resource.v1beta1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -87197,34 +88853,86 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "ResourceClaimTemplate", + "version": "v1" } - } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ResourceClaimTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status": { + "/apis/resource.k8s.io/v1/watch/resourceclaims": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified ResourceClaim", - "operationId": "readResourceV1beta1NamespacedResourceClaimStatus", + "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1ResourceClaimListForAllNamespaces", "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/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -87235,83 +88943,75 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta1" + "version": "v1" } }, "parameters": [ { - "description": "name of the ResourceClaim", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" }, { - "$ref": "#/parameters/namespace-vgWSWtn3" + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "patch": { + ] + }, + "/apis/resource.k8s.io/v1/watch/resourceclaimtemplates": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified ResourceClaim", - "operationId": "patchResourceV1beta1NamespacedResourceClaimStatus", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } + "*/*" ], + "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1ResourceClaimTemplateListForAllNamespaces", "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/io.k8s.api.resource.v1beta1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -87322,65 +89022,154 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "ResourceClaimTemplate", + "version": "v1" } }, - "put": { + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1/watch/resourceslices": { + "get": { "consumes": [ "*/*" ], - "description": "replace status of the specified ResourceClaim", - "operationId": "replaceResourceV1beta1NamespacedResourceClaimStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, + "description": "watch individual changes to a list of ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1ResourceSliceList", + "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/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": [ + "resource_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1/watch/resourceslices/{name}": { + "get": { + "consumes": [ + "*/*" ], + "description": "watch changes to an object of kind ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1ResourceSlice", "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/io.k8s.api.resource.v1beta1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -87391,23 +89180,104 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "ResourceSlice", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ResourceSlice", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } + ] + }, + "/apis/resource.k8s.io/v1alpha3/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get available resources", + "operationId": "getResourceV1alpha3APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ] } }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1alpha3/devicetaintrules": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceClaimTemplate", - "operationId": "deleteResourceV1beta1CollectionNamespacedResourceClaimTemplate", + "description": "delete collection of DeviceTaintRule", + "operationId": "deleteResourceV1alpha3CollectionDeviceTaintRule", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -87480,21 +89350,21 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listResourceV1beta1NamespacedResourceClaimTemplate", + "description": "list or watch objects of kind DeviceTaintRule", + "operationId": "listResourceV1alpha3DeviceTaintRule", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -87543,7 +89413,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplateList" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRuleList" } }, "401": { @@ -87554,19 +89424,16 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, "parameters": [ - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -87575,15 +89442,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceClaimTemplate", - "operationId": "createResourceV1beta1NamespacedResourceClaimTemplate", + "description": "create a DeviceTaintRule", + "operationId": "createResourceV1alpha3DeviceTaintRule", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, { @@ -87614,19 +89481,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "401": { @@ -87637,23 +89504,23 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } } }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceClaimTemplate", - "operationId": "deleteResourceV1beta1NamespacedResourceClaimTemplate", + "description": "delete a DeviceTaintRule", + "operationId": "deleteResourceV1alpha3DeviceTaintRule", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -87688,13 +89555,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "401": { @@ -87705,21 +89572,21 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ResourceClaimTemplate", - "operationId": "readResourceV1beta1NamespacedResourceClaimTemplate", + "description": "read the specified DeviceTaintRule", + "operationId": "readResourceV1alpha3DeviceTaintRule", "produces": [ "application/json", "application/yaml", @@ -87730,7 +89597,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "401": { @@ -87741,27 +89608,24 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, "parameters": [ { - "description": "name of the ResourceClaimTemplate", + "description": "name of the DeviceTaintRule", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -87774,8 +89638,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourceClaimTemplate", - "operationId": "patchResourceV1beta1NamespacedResourceClaimTemplate", + "description": "partially update the specified DeviceTaintRule", + "operationId": "patchResourceV1alpha3DeviceTaintRule", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -87811,13 +89675,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "401": { @@ -87828,28 +89692,28 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified ResourceClaimTemplate", - "operationId": "replaceResourceV1beta1NamespacedResourceClaimTemplate", + "description": "replace the specified DeviceTaintRule", + "operationId": "replaceResourceV1alpha3DeviceTaintRule", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, { @@ -87880,13 +89744,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "401": { @@ -87897,37 +89761,34 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } } }, - "/apis/resource.k8s.io/v1beta1/resourceclaims": { + "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listResourceV1beta1ResourceClaimForAllNamespaces", + "description": "read status of the specified DeviceTaintRule", + "operationId": "readResourceV1alpha3DeviceTaintRuleStatus", "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/io.k8s.api.resource.v1beta1.ResourceClaimList" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "401": { @@ -87938,75 +89799,80 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true }, { "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" } - ] - }, - "/apis/resource.k8s.io/v1beta1/resourceclaimtemplates": { - "get": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified DeviceTaintRule", + "operationId": "patchResourceV1alpha3DeviceTaintRuleStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listResourceV1beta1ResourceClaimTemplateForAllNamespaces", "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/io.k8s.api.resource.v1beta1.ResourceClaimTemplateList" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" } }, "401": { @@ -88017,61 +89883,92 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified DeviceTaintRule", + "operationId": "replaceResourceV1alpha3DeviceTaintRuleStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" } - ] + } }, - "/apis/resource.k8s.io/v1beta1/resourceslices": { + "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceSlice", - "operationId": "deleteResourceV1beta1CollectionResourceSlice", + "description": "delete collection of ResourcePoolStatusRequest", + "operationId": "deleteResourceV1alpha3CollectionResourcePoolStatusRequest", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -88144,21 +90041,21 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceSlice", - "operationId": "listResourceV1beta1ResourceSlice", + "description": "list or watch objects of kind ResourcePoolStatusRequest", + "operationId": "listResourceV1alpha3ResourcePoolStatusRequest", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -88207,7 +90104,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSliceList" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequestList" } }, "401": { @@ -88218,13 +90115,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, "parameters": [ @@ -88236,15 +90133,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceSlice", - "operationId": "createResourceV1beta1ResourceSlice", + "description": "create a ResourcePoolStatusRequest", + "operationId": "createResourceV1alpha3ResourcePoolStatusRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, { @@ -88275,19 +90172,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -88298,23 +90195,23 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } } }, - "/apis/resource.k8s.io/v1beta1/resourceslices/{name}": { + "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceSlice", - "operationId": "deleteResourceV1beta1ResourceSlice", + "description": "delete a ResourcePoolStatusRequest", + "operationId": "deleteResourceV1alpha3ResourcePoolStatusRequest", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -88349,13 +90246,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -88366,21 +90263,21 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ResourceSlice", - "operationId": "readResourceV1beta1ResourceSlice", + "description": "read the specified ResourcePoolStatusRequest", + "operationId": "readResourceV1alpha3ResourcePoolStatusRequest", "produces": [ "application/json", "application/yaml", @@ -88391,7 +90288,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -88402,18 +90299,18 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, "parameters": [ { - "description": "name of the ResourceSlice", + "description": "name of the ResourcePoolStatusRequest", "in": "path", "name": "name", "required": true, @@ -88432,8 +90329,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourceSlice", - "operationId": "patchResourceV1beta1ResourceSlice", + "description": "partially update the specified ResourcePoolStatusRequest", + "operationId": "patchResourceV1alpha3ResourcePoolStatusRequest", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -88469,13 +90366,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -88486,28 +90383,28 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified ResourceSlice", - "operationId": "replaceResourceV1beta1ResourceSlice", + "description": "replace the specified ResourcePoolStatusRequest", + "operationId": "replaceResourceV1alpha3ResourcePoolStatusRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, { @@ -88538,13 +90435,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -88555,37 +90452,34 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } } }, - "/apis/resource.k8s.io/v1beta1/watch/deviceclasses": { + "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of DeviceClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta1DeviceClassList", + "description": "read status of the specified ResourcePoolStatusRequest", + "operationId": "readResourceV1alpha3ResourcePoolStatusRequestStatus", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -88596,75 +90490,80 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" + "description": "name of the ResourcePoolStatusRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true }, { "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" } - ] - }, - "/apis/resource.k8s.io/v1beta1/watch/deviceclasses/{name}": { - "get": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified ResourcePoolStatusRequest", + "operationId": "patchResourceV1alpha3ResourcePoolStatusRequestStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } ], - "description": "watch changes to an object of kind DeviceClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1beta1DeviceClass", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -88675,69 +90574,92 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the DeviceClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified ResourcePoolStatusRequest", + "operationId": "replaceResourceV1alpha3ResourcePoolStatusRequestStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourcePoolStatusRequest" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } - ] + } }, - "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims": { + "/apis/resource.k8s.io/v1alpha3/watch/devicetaintrules": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta1NamespacedResourceClaimList", + "description": "watch individual changes to a list of DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha3DeviceTaintRuleList", "produces": [ "application/json", "application/yaml", @@ -88762,13 +90684,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, "parameters": [ @@ -88787,9 +90709,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -88813,13 +90732,13 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/resource.k8s.io/v1alpha3/watch/devicetaintrules/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1beta1NamespacedResourceClaim", + "description": "watch changes to an object of kind DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1alpha3DeviceTaintRule", "produces": [ "application/json", "application/yaml", @@ -88844,13 +90763,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, "parameters": [ @@ -88870,16 +90789,13 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the ResourceClaim", + "description": "name of the DeviceTaintRule", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -88903,13 +90819,13 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta1NamespacedResourceClaimTemplateList", + "description": "watch individual changes to a list of ResourcePoolStatusRequest. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha3ResourcePoolStatusRequestList", "produces": [ "application/json", "application/yaml", @@ -88934,13 +90850,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, "parameters": [ @@ -88959,9 +90875,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -88985,340 +90898,13 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1beta1NamespacedResourceClaimTemplate", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the ResourceClaimTemplate", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/resource.k8s.io/v1beta1/watch/resourceclaims": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta1ResourceClaimListForAllNamespaces", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/resource.k8s.io/v1beta1/watch/resourceclaimtemplates": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta1ResourceClaimTemplateListForAllNamespaces", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/resource.k8s.io/v1beta1/watch/resourceslices": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta1ResourceSliceList", - "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/resource.k8s.io/v1beta1/watch/resourceslices/{name}": { + "/apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1beta1ResourceSlice", + "description": "watch changes to an object of kind ResourcePoolStatusRequest. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1alpha3ResourcePoolStatusRequest", "produces": [ "application/json", "application/yaml", @@ -89343,13 +90929,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1alpha3" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, "parameters": [ @@ -89369,7 +90955,7 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the ResourceSlice", + "description": "name of the ResourcePoolStatusRequest", "in": "path", "name": "name", "required": true, @@ -89399,7 +90985,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/": { + "/apis/resource.k8s.io/v1beta1/": { "get": { "consumes": [ "application/json", @@ -89408,7 +90994,7 @@ "application/cbor" ], "description": "get available resources", - "operationId": "getResourceV1beta2APIResources", + "operationId": "getResourceV1beta1APIResources", "produces": [ "application/json", "application/yaml", @@ -89430,17 +91016,17 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ] } }, - "/apis/resource.k8s.io/v1beta2/deviceclasses": { + "/apis/resource.k8s.io/v1beta1/deviceclasses": { "delete": { "consumes": [ "*/*" ], "description": "delete collection of DeviceClass", - "operationId": "deleteResourceV1beta2CollectionDeviceClass", + "operationId": "deleteResourceV1beta1CollectionDeviceClass", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -89513,13 +91099,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta2" + "version": "v1beta1" } }, "get": { @@ -89527,7 +91113,7 @@ "*/*" ], "description": "list or watch objects of kind DeviceClass", - "operationId": "listResourceV1beta2DeviceClass", + "operationId": "listResourceV1beta1DeviceClass", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -89576,7 +91162,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClassList" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClassList" } }, "401": { @@ -89587,13 +91173,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta2" + "version": "v1beta1" } }, "parameters": [ @@ -89606,14 +91192,14 @@ "*/*" ], "description": "create a DeviceClass", - "operationId": "createResourceV1beta2DeviceClass", + "operationId": "createResourceV1beta1DeviceClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, { @@ -89644,19 +91230,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "401": { @@ -89667,23 +91253,23 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta2" + "version": "v1beta1" } } }, - "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}": { + "/apis/resource.k8s.io/v1beta1/deviceclasses/{name}": { "delete": { "consumes": [ "*/*" ], "description": "delete a DeviceClass", - "operationId": "deleteResourceV1beta2DeviceClass", + "operationId": "deleteResourceV1beta1DeviceClass", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -89718,13 +91304,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "401": { @@ -89735,13 +91321,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta2" + "version": "v1beta1" } }, "get": { @@ -89749,7 +91335,7 @@ "*/*" ], "description": "read the specified DeviceClass", - "operationId": "readResourceV1beta2DeviceClass", + "operationId": "readResourceV1beta1DeviceClass", "produces": [ "application/json", "application/yaml", @@ -89760,7 +91346,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "401": { @@ -89771,13 +91357,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta2" + "version": "v1beta1" } }, "parameters": [ @@ -89802,7 +91388,7 @@ "application/apply-patch+cbor" ], "description": "partially update the specified DeviceClass", - "operationId": "patchResourceV1beta2DeviceClass", + "operationId": "patchResourceV1beta1DeviceClass", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -89838,13 +91424,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "401": { @@ -89855,13 +91441,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta2" + "version": "v1beta1" } }, "put": { @@ -89869,14 +91455,14 @@ "*/*" ], "description": "replace the specified DeviceClass", - "operationId": "replaceResourceV1beta2DeviceClass", + "operationId": "replaceResourceV1beta1DeviceClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, { @@ -89907,13 +91493,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.DeviceClass" } }, "401": { @@ -89924,23 +91510,23 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta2" + "version": "v1beta1" } } }, - "/apis/resource.k8s.io/v1beta2/devicetaintrules": { + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of DeviceTaintRule", - "operationId": "deleteResourceV1beta2CollectionDeviceTaintRule", + "description": "delete collection of ResourceClaim", + "operationId": "deleteResourceV1beta1CollectionNamespacedResourceClaim", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -90013,21 +91599,21 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind DeviceTaintRule", - "operationId": "listResourceV1beta2DeviceTaintRule", + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceV1beta1NamespacedResourceClaim", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -90076,7 +91662,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRuleList" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimList" } }, "401": { @@ -90087,16 +91673,19 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -90105,15 +91694,15 @@ "consumes": [ "*/*" ], - "description": "create a DeviceTaintRule", - "operationId": "createResourceV1beta2DeviceTaintRule", + "description": "create a ResourceClaim", + "operationId": "createResourceV1beta1NamespacedResourceClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, { @@ -90144,19 +91733,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "401": { @@ -90167,23 +91756,23 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } } }, - "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}": { + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a DeviceTaintRule", - "operationId": "deleteResourceV1beta2DeviceTaintRule", + "description": "delete a ResourceClaim", + "operationId": "deleteResourceV1beta1NamespacedResourceClaim", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -90218,13 +91807,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "401": { @@ -90235,21 +91824,21 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified DeviceTaintRule", - "operationId": "readResourceV1beta2DeviceTaintRule", + "description": "read the specified ResourceClaim", + "operationId": "readResourceV1beta1NamespacedResourceClaim", "produces": [ "application/json", "application/yaml", @@ -90260,7 +91849,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "401": { @@ -90271,24 +91860,27 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the DeviceTaintRule", + "description": "name of the ResourceClaim", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -90301,8 +91893,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified DeviceTaintRule", - "operationId": "patchResourceV1beta2DeviceTaintRule", + "description": "partially update the specified ResourceClaim", + "operationId": "patchResourceV1beta1NamespacedResourceClaim", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -90338,13 +91930,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "401": { @@ -90355,28 +91947,28 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified DeviceTaintRule", - "operationId": "replaceResourceV1beta2DeviceTaintRule", + "description": "replace the specified ResourceClaim", + "operationId": "replaceResourceV1beta1NamespacedResourceClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, { @@ -90407,13 +91999,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "401": { @@ -90424,23 +92016,23 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } } }, - "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status": { + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified DeviceTaintRule", - "operationId": "readResourceV1beta2DeviceTaintRuleStatus", + "description": "read status of the specified ResourceClaim", + "operationId": "readResourceV1beta1NamespacedResourceClaimStatus", "produces": [ "application/json", "application/yaml", @@ -90451,7 +92043,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "401": { @@ -90462,24 +92054,27 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the DeviceTaintRule", + "description": "name of the ResourceClaim", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -90492,8 +92087,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified DeviceTaintRule", - "operationId": "patchResourceV1beta2DeviceTaintRuleStatus", + "description": "partially update status of the specified ResourceClaim", + "operationId": "patchResourceV1beta1NamespacedResourceClaimStatus", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -90529,13 +92124,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "401": { @@ -90546,28 +92141,28 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace status of the specified DeviceTaintRule", - "operationId": "replaceResourceV1beta2DeviceTaintRuleStatus", + "description": "replace status of the specified ResourceClaim", + "operationId": "replaceResourceV1beta1NamespacedResourceClaimStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, { @@ -90598,13 +92193,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaim" } }, "401": { @@ -90615,23 +92210,23 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims": { + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceClaim", - "operationId": "deleteResourceV1beta2CollectionNamespacedResourceClaim", + "description": "delete collection of ResourceClaimTemplate", + "operationId": "deleteResourceV1beta1CollectionNamespacedResourceClaimTemplate", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -90704,21 +92299,21 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listResourceV1beta2NamespacedResourceClaim", + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceV1beta1NamespacedResourceClaimTemplate", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -90767,7 +92362,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimList" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplateList" } }, "401": { @@ -90778,13 +92373,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } }, "parameters": [ @@ -90799,15 +92394,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceClaim", - "operationId": "createResourceV1beta2NamespacedResourceClaim", + "description": "create a ResourceClaimTemplate", + "operationId": "createResourceV1beta1NamespacedResourceClaimTemplate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, { @@ -90838,19 +92433,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "401": { @@ -90861,23 +92456,23 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceClaim", - "operationId": "deleteResourceV1beta2NamespacedResourceClaim", + "description": "delete a ResourceClaimTemplate", + "operationId": "deleteResourceV1beta1NamespacedResourceClaimTemplate", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -90912,13 +92507,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "401": { @@ -90929,21 +92524,21 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ResourceClaim", - "operationId": "readResourceV1beta2NamespacedResourceClaim", + "description": "read the specified ResourceClaimTemplate", + "operationId": "readResourceV1beta1NamespacedResourceClaimTemplate", "produces": [ "application/json", "application/yaml", @@ -90954,7 +92549,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "401": { @@ -90965,18 +92560,18 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the ResourceClaim", + "description": "name of the ResourceClaimTemplate", "in": "path", "name": "name", "required": true, @@ -90998,8 +92593,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourceClaim", - "operationId": "patchResourceV1beta2NamespacedResourceClaim", + "description": "partially update the specified ResourceClaimTemplate", + "operationId": "patchResourceV1beta1NamespacedResourceClaimTemplate", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -91035,13 +92630,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "401": { @@ -91052,28 +92647,28 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified ResourceClaim", - "operationId": "replaceResourceV1beta2NamespacedResourceClaim", + "description": "replace the specified ResourceClaimTemplate", + "operationId": "replaceResourceV1beta1NamespacedResourceClaimTemplate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, { @@ -91104,13 +92699,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplate" } }, "401": { @@ -91121,34 +92716,37 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status": { + "/apis/resource.k8s.io/v1beta1/resourceclaims": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified ResourceClaim", - "operationId": "readResourceV1beta2NamespacedResourceClaimStatus", + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceV1beta1ResourceClaimForAllNamespaces", "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/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimList" } }, "401": { @@ -91159,83 +92757,75 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta2" + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the ResourceClaim", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" }, { - "$ref": "#/parameters/namespace-vgWSWtn3" + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "patch": { + ] + }, + "/apis/resource.k8s.io/v1beta1/resourceclaimtemplates": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified ResourceClaim", - "operationId": "patchResourceV1beta2NamespacedResourceClaimStatus", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } + "*/*" ], + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceV1beta1ResourceClaimTemplateForAllNamespaces", "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/io.k8s.api.resource.v1beta2.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceClaimTemplateList" } }, "401": { @@ -91246,92 +92836,61 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified ResourceClaim", - "operationId": "replaceResourceV1beta2NamespacedResourceClaimStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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/io.k8s.api.resource.v1beta2.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" - } - }, - "401": { - "description": "Unauthorized" - } + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - } + ] }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1beta1/resourceslices": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceClaimTemplate", - "operationId": "deleteResourceV1beta2CollectionNamespacedResourceClaimTemplate", + "description": "delete collection of ResourceSlice", + "operationId": "deleteResourceV1beta1CollectionResourceSlice", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -91404,21 +92963,21 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "kind": "ResourceSlice", + "version": "v1beta1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listResourceV1beta2NamespacedResourceClaimTemplate", + "description": "list or watch objects of kind ResourceSlice", + "operationId": "listResourceV1beta1ResourceSlice", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -91467,7 +93026,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplateList" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSliceList" } }, "401": { @@ -91478,19 +93037,16 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "kind": "ResourceSlice", + "version": "v1beta1" } }, "parameters": [ - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -91499,15 +93055,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceClaimTemplate", - "operationId": "createResourceV1beta2NamespacedResourceClaimTemplate", + "description": "create a ResourceSlice", + "operationId": "createResourceV1beta1ResourceSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, { @@ -91538,19 +93094,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "401": { @@ -91561,23 +93117,23 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "kind": "ResourceSlice", + "version": "v1beta1" } } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/resource.k8s.io/v1beta1/resourceslices/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceClaimTemplate", - "operationId": "deleteResourceV1beta2NamespacedResourceClaimTemplate", + "description": "delete a ResourceSlice", + "operationId": "deleteResourceV1beta1ResourceSlice", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -91612,13 +93168,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "401": { @@ -91629,21 +93185,21 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "kind": "ResourceSlice", + "version": "v1beta1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified ResourceClaimTemplate", - "operationId": "readResourceV1beta2NamespacedResourceClaimTemplate", + "description": "read the specified ResourceSlice", + "operationId": "readResourceV1beta1ResourceSlice", "produces": [ "application/json", "application/yaml", @@ -91654,7 +93210,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "401": { @@ -91665,27 +93221,24 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "kind": "ResourceSlice", + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the ResourceClaimTemplate", + "description": "name of the ResourceSlice", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, { "$ref": "#/parameters/pretty-tJGM1-ng" } @@ -91698,8 +93251,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourceClaimTemplate", - "operationId": "patchResourceV1beta2NamespacedResourceClaimTemplate", + "description": "partially update the specified ResourceSlice", + "operationId": "patchResourceV1beta1ResourceSlice", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -91735,13 +93288,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "401": { @@ -91752,28 +93305,28 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "kind": "ResourceSlice", + "version": "v1beta1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified ResourceClaimTemplate", - "operationId": "replaceResourceV1beta2NamespacedResourceClaimTemplate", + "description": "replace the specified ResourceSlice", + "operationId": "replaceResourceV1beta1ResourceSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, { @@ -91804,13 +93357,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/io.k8s.api.resource.v1beta1.ResourceSlice" } }, "401": { @@ -91821,23 +93374,23 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "kind": "ResourceSlice", + "version": "v1beta1" } } }, - "/apis/resource.k8s.io/v1beta2/resourceclaims": { + "/apis/resource.k8s.io/v1beta1/watch/deviceclasses": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listResourceV1beta2ResourceClaimForAllNamespaces", + "description": "watch individual changes to a list of DeviceClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta1DeviceClassList", "produces": [ "application/json", "application/yaml", @@ -91851,7 +93404,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -91862,13 +93415,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "kind": "DeviceClass", + "version": "v1beta1" } }, "parameters": [ @@ -91910,13 +93463,13 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1beta1/watch/deviceclasses/{name}": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listResourceV1beta2ResourceClaimTemplateForAllNamespaces", + "description": "watch changes to an object of kind DeviceClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1beta1DeviceClass", "produces": [ "application/json", "application/yaml", @@ -91930,7 +93483,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplateList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -91941,13 +93494,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "kind": "DeviceClass", + "version": "v1beta1" } }, "parameters": [ @@ -91966,6 +93519,14 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, + { + "description": "name of the DeviceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -91989,75 +93550,27 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/resourceslices": { - "delete": { + "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims": { + "get": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceSlice", - "operationId": "deleteResourceV1beta2CollectionResourceSlice", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - } - ], + "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta1NamespacedResourceClaimList", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -92068,56 +93581,64 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims/{name}": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceSlice", - "operationId": "listResourceV1beta2ResourceSlice", - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ], + "description": "watch changes to an object of kind ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1beta1NamespacedResourceClaim", "produces": [ "application/json", "application/yaml", @@ -92131,7 +93652,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSliceList" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -92142,76 +93663,86 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "post": { + ] + }, + "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates": { + "get": { "consumes": [ "*/*" ], - "description": "create a ResourceSlice", - "operationId": "createResourceV1beta2ResourceSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta1NamespacedResourceClaimTemplateList", "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/io.k8s.api.resource.v1beta2.ResourceSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -92222,64 +93753,78 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } - } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/resource.k8s.io/v1beta2/resourceslices/{name}": { - "delete": { + "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "delete a ResourceSlice", - "operationId": "deleteResourceV1beta2ResourceSlice", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - } - ], + "description": "watch changes to an object of kind ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1beta1NamespacedResourceClaimTemplate", "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/io.k8s.api.resource.v1beta2.ResourceSlice" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -92290,212 +93835,72 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified ResourceSlice", - "operationId": "readResourceV1beta2ResourceSlice", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the ResourceSlice", + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ResourceClaimTemplate", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified ResourceSlice", - "operationId": "patchResourceV1beta2ResourceSlice", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.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" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ResourceSlice", - "operationId": "replaceResourceV1beta2ResourceSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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/io.k8s.api.resource.v1beta2.ResourceSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" - } - }, - "401": { - "description": "Unauthorized" - } + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - } + ] }, - "/apis/resource.k8s.io/v1beta2/watch/deviceclasses": { + "/apis/resource.k8s.io/v1beta1/watch/resourceclaims": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of DeviceClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta2DeviceClassList", + "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta1ResourceClaimListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -92520,13 +93925,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta2" + "kind": "ResourceClaim", + "version": "v1beta1" } }, "parameters": [ @@ -92568,13 +93973,13 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/deviceclasses/{name}": { + "/apis/resource.k8s.io/v1beta1/watch/resourceclaimtemplates": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind DeviceClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1beta2DeviceClass", + "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta1ResourceClaimTemplateListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -92599,13 +94004,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta2" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } }, "parameters": [ @@ -92624,14 +94029,6 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, - { - "description": "name of the DeviceClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -92655,13 +94052,13 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/devicetaintrules": { + "/apis/resource.k8s.io/v1beta1/watch/resourceslices": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta2DeviceTaintRuleList", + "description": "watch individual changes to a list of ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta1ResourceSliceList", "produces": [ "application/json", "application/yaml", @@ -92686,13 +94083,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceSlice", + "version": "v1beta1" } }, "parameters": [ @@ -92734,13 +94131,13 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/devicetaintrules/{name}": { + "/apis/resource.k8s.io/v1beta1/watch/resourceslices/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1beta2DeviceTaintRule", + "description": "watch changes to an object of kind ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1beta1ResourceSlice", "produces": [ "application/json", "application/yaml", @@ -92765,13 +94162,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "resource_v1beta1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1beta2" + "kind": "ResourceSlice", + "version": "v1beta1" } }, "parameters": [ @@ -92791,7 +94188,7 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the DeviceTaintRule", + "description": "name of the ResourceSlice", "in": "path", "name": "name", "required": true, @@ -92821,27 +94218,27 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims": { + "/apis/resource.k8s.io/v1beta2/": { "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], - "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta2NamespacedResourceClaimList", + "description": "get available resources", + "operationId": "getResourceV1beta2APIResources", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" } }, "401": { @@ -92853,77 +94250,78 @@ ], "tags": [ "resource_v1beta2" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] + ] + } }, - "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims/{name}": { - "get": { + "/apis/resource.k8s.io/v1beta2/deviceclasses": { + "delete": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1beta2NamespacedResourceClaim", + "description": "delete collection of DeviceClass", + "operationId": "deleteResourceV1beta2CollectionDeviceClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -92936,70 +94334,54 @@ "tags": [ "resource_v1beta2" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", + "kind": "DeviceClass", "version": "v1beta2" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the ResourceClaim", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "$ref": "#/parameters/namespace-vgWSWtn3" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta2NamespacedResourceClaimTemplateList", + "description": "list or watch objects of kind DeviceClass", + "operationId": "listResourceV1beta2DeviceClass", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], "produces": [ "application/json", "application/yaml", @@ -93013,7 +94395,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClassList" } }, "401": { @@ -93026,76 +94408,5980 @@ "tags": [ "resource_v1beta2" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "kind": "DeviceClass", "version": "v1beta2" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a DeviceClass", + "operationId": "createResourceV1beta2DeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" + } + } + }, + "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a DeviceClass", + "operationId": "deleteResourceV1beta2DeviceClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified DeviceClass", + "operationId": "readResourceV1beta2DeviceClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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": "name of the DeviceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified DeviceClass", + "operationId": "patchResourceV1beta2DeviceClass", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified DeviceClass", + "operationId": "replaceResourceV1beta2DeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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" + } + } + }, + "/apis/resource.k8s.io/v1beta2/devicetaintrules": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of DeviceTaintRule", + "operationId": "deleteResourceV1beta2CollectionDeviceTaintRule", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind DeviceTaintRule", + "operationId": "listResourceV1beta2DeviceTaintRule", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "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/io.k8s.api.resource.v1beta2.DeviceTaintRuleList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a DeviceTaintRule", + "operationId": "createResourceV1beta2DeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + } + }, + "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a DeviceTaintRule", + "operationId": "deleteResourceV1beta2DeviceTaintRule", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified DeviceTaintRule", + "operationId": "readResourceV1beta2DeviceTaintRule", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "parameters": [ + { + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified DeviceTaintRule", + "operationId": "patchResourceV1beta2DeviceTaintRule", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified DeviceTaintRule", + "operationId": "replaceResourceV1beta2DeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + } + }, + "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified DeviceTaintRule", + "operationId": "readResourceV1beta2DeviceTaintRuleStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "parameters": [ + { + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified DeviceTaintRule", + "operationId": "patchResourceV1beta2DeviceTaintRuleStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified DeviceTaintRule", + "operationId": "replaceResourceV1beta2DeviceTaintRuleStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + } + }, + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ResourceClaim", + "operationId": "deleteResourceV1beta2CollectionNamespacedResourceClaim", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceV1beta2NamespacedResourceClaim", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "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/io.k8s.api.resource.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" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ResourceClaim", + "operationId": "createResourceV1beta2NamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta2" + } + } + }, + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ResourceClaim", + "operationId": "deleteResourceV1beta2NamespacedResourceClaim", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceClaim", + "operationId": "readResourceV1beta2NamespacedResourceClaim", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified ResourceClaim", + "operationId": "patchResourceV1beta2NamespacedResourceClaim", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceClaim", + "operationId": "replaceResourceV1beta2NamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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" + } + } + }, + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified ResourceClaim", + "operationId": "readResourceV1beta2NamespacedResourceClaimStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified ResourceClaim", + "operationId": "patchResourceV1beta2NamespacedResourceClaimStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified ResourceClaim", + "operationId": "replaceResourceV1beta2NamespacedResourceClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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" + } + } + }, + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ResourceClaimTemplate", + "operationId": "deleteResourceV1beta2CollectionNamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceV1beta2NamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "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/io.k8s.api.resource.v1beta2.ResourceClaimTemplateList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ResourceClaimTemplate", + "operationId": "createResourceV1beta2NamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + } + }, + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ResourceClaimTemplate", + "operationId": "deleteResourceV1beta2NamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceClaimTemplate", + "operationId": "readResourceV1beta2NamespacedResourceClaimTemplate", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaimTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified ResourceClaimTemplate", + "operationId": "patchResourceV1beta2NamespacedResourceClaimTemplate", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceClaimTemplate", + "operationId": "replaceResourceV1beta2NamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + } + }, + "/apis/resource.k8s.io/v1beta2/resourceclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceV1beta2ResourceClaimForAllNamespaces", + "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/io.k8s.api.resource.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" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/resourceclaimtemplates": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceV1beta2ResourceClaimTemplateForAllNamespaces", + "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/io.k8s.api.resource.v1beta2.ResourceClaimTemplateList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/resourceslices": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ResourceSlice", + "operationId": "deleteResourceV1beta2CollectionResourceSlice", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceSlice", + "operationId": "listResourceV1beta2ResourceSlice", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "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/io.k8s.api.resource.v1beta2.ResourceSliceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ResourceSlice", + "operationId": "createResourceV1beta2ResourceSlice", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.ResourceSlice" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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" + } + } + }, + "/apis/resource.k8s.io/v1beta2/resourceslices/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ResourceSlice", + "operationId": "deleteResourceV1beta2ResourceSlice", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta2" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceSlice", + "operationId": "readResourceV1beta2ResourceSlice", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta2" + } + }, + "parameters": [ + { + "description": "name of the ResourceSlice", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified ResourceSlice", + "operationId": "patchResourceV1beta2ResourceSlice", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceSlice", + "operationId": "replaceResourceV1beta2ResourceSlice", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.resource.v1beta2.ResourceSlice" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1beta2.ResourceSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta2" + } + } + }, + "/apis/resource.k8s.io/v1beta2/watch/deviceclasses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of DeviceClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta2DeviceClassList", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/deviceclasses/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind DeviceClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1beta2DeviceClass", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the DeviceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/devicetaintrules": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta2DeviceTaintRuleList", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/devicetaintrules/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind DeviceTaintRule. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1beta2DeviceTaintRule", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta2NamespacedResourceClaimList", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1beta2NamespacedResourceClaim", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta2NamespacedResourceClaimTemplateList", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1beta2NamespacedResourceClaimTemplate", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ResourceClaimTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/resourceclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta2ResourceClaimListForAllNamespaces", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/resourceclaimtemplates": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta2ResourceClaimTemplateListForAllNamespaces", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/resourceslices": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1beta2ResourceSliceList", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/resourceslices/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1beta2ResourceSlice", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta2" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the ResourceSlice", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get information of a group", + "operationId": "getSchedulingAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling" + ] + } + }, + "/apis/scheduling.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get available resources", + "operationId": "getSchedulingV1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ] + } + }, + "/apis/scheduling.k8s.io/v1/priorityclasses": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PriorityClass", + "operationId": "deleteSchedulingV1CollectionPriorityClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.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" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PriorityClass", + "operationId": "listSchedulingV1PriorityClass", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "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/io.k8s.api.scheduling.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": [ + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a PriorityClass", + "operationId": "createSchedulingV1PriorityClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.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" + } + } + }, + "/apis/scheduling.k8s.io/v1/priorityclasses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a PriorityClass", + "operationId": "deleteSchedulingV1PriorityClass", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified PriorityClass", + "operationId": "readSchedulingV1PriorityClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PriorityClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified PriorityClass", + "operationId": "patchSchedulingV1PriorityClass", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PriorityClass", + "operationId": "replaceSchedulingV1PriorityClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + } + }, + "/apis/scheduling.k8s.io/v1/watch/priorityclasses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PriorityClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchSchedulingV1PriorityClassList", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind PriorityClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchSchedulingV1PriorityClass", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the PriorityClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get available resources", + "operationId": "getSchedulingV1alpha3APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ] + } + }, + "/apis/scheduling.k8s.io/v1alpha3/compositepodgroups": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind CompositePodGroup", + "operationId": "listSchedulingV1alpha3CompositePodGroupForAllNamespaces", + "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/io.k8s.api.scheduling.v1alpha3.CompositePodGroupList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of CompositePodGroup", + "operationId": "deleteSchedulingV1alpha3CollectionNamespacedCompositePodGroup", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind CompositePodGroup", + "operationId": "listSchedulingV1alpha3NamespacedCompositePodGroup", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "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/io.k8s.api.scheduling.v1alpha3.CompositePodGroupList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a CompositePodGroup", + "operationId": "createSchedulingV1alpha3NamespacedCompositePodGroup", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + } + }, + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a CompositePodGroup", + "operationId": "deleteSchedulingV1alpha3NamespacedCompositePodGroup", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified CompositePodGroup", + "operationId": "readSchedulingV1alpha3NamespacedCompositePodGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "description": "name of the CompositePodGroup", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified CompositePodGroup", + "operationId": "patchSchedulingV1alpha3NamespacedCompositePodGroup", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified CompositePodGroup", + "operationId": "replaceSchedulingV1alpha3NamespacedCompositePodGroup", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + } + }, + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified CompositePodGroup", + "operationId": "readSchedulingV1alpha3NamespacedCompositePodGroupStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + }, + "parameters": [ { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" + "description": "name of the CompositePodGroup", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified CompositePodGroup", + "operationId": "patchSchedulingV1alpha3NamespacedCompositePodGroupStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified CompositePodGroup", + "operationId": "replaceSchedulingV1alpha3NamespacedCompositePodGroupStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.CompositePodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" + } + } + }, + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PodGroup", + "operationId": "deleteSchedulingV1alpha3CollectionNamespacedPodGroup", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodGroup", + "operationId": "listSchedulingV1alpha3NamespacedPodGroup", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], + "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/io.k8s.api.scheduling.v1alpha3.PodGroupList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a PodGroup", + "operationId": "createSchedulingV1alpha3NamespacedPodGroup", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + } + } + }, + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a PodGroup", + "operationId": "deleteSchedulingV1alpha3NamespacedPodGroup", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified PodGroup", + "operationId": "readSchedulingV1alpha3NamespacedPodGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + } + }, + "parameters": [ { - "$ref": "#/parameters/limit-1NfNmdNH" + "description": "name of the PodGroup", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true }, { "$ref": "#/parameters/namespace-vgWSWtn3" }, { "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified PodGroup", + "operationId": "patchSchedulingV1alpha3NamespacedPodGroup", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PodGroup", + "operationId": "replaceSchedulingV1alpha3NamespacedPodGroup", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" } - ] + } }, - "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1beta2NamespacedResourceClaimTemplate", + "description": "read status of the specified PodGroup", + "operationId": "readSchedulingV1alpha3NamespacedPodGroupStatus", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" } }, "401": { @@ -93106,33 +100392,18 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the ResourceClaimTemplate", + "description": "name of the PodGroup", "in": "path", "name": "name", "required": true, @@ -93144,34 +100415,278 @@ }, { "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified PodGroup", + "operationId": "patchSchedulingV1alpha3NamespacedPodGroupStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PodGroup", + "operationId": "replaceSchedulingV1alpha3NamespacedPodGroupStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" } - ] + } }, - "/apis/resource.k8s.io/v1beta2/watch/resourceclaims": { + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Workload", + "operationId": "deleteSchedulingV1alpha3CollectionNamespacedWorkload", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" + } + }, "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta2ResourceClaimListForAllNamespaces", + "description": "list or watch objects of kind Workload", + "operationId": "listSchedulingV1alpha3NamespacedWorkload", + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ], "produces": [ "application/json", "application/yaml", @@ -93185,7 +100700,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.WorkloadList" } }, "401": { @@ -93196,75 +100711,79 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" + "$ref": "#/parameters/namespace-vgWSWtn3" }, { "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" } - ] - }, - "/apis/resource.k8s.io/v1beta2/watch/resourceclaimtemplates": { - "get": { + ], + "post": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta2ResourceClaimTemplateListForAllNamespaces", + "description": "create a Workload", + "operationId": "createSchedulingV1alpha3NamespacedWorkload", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" } }, "401": { @@ -93275,75 +100794,64 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" - } - }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" } - ] + } }, - "/apis/resource.k8s.io/v1beta2/watch/resourceslices": { - "get": { + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name}": { + "delete": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchResourceV1beta2ResourceSliceList", + "description": "delete a Workload", + "operationId": "deleteSchedulingV1alpha3NamespacedWorkload", + "parameters": [ + { + "$ref": "#/parameters/body-2Y1dVQaQ" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" + }, + { + "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" + }, + { + "$ref": "#/parameters/orphanDependents-uRB25kX5" + }, + { + "$ref": "#/parameters/propagationPolicy-6jk3prlO" + } + ], "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -93354,75 +100862,32 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" } }, - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } - ] - }, - "/apis/resource.k8s.io/v1beta2/watch/resourceslices/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind ResourceSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchResourceV1beta2ResourceSlice", + "description": "read the specified Workload", + "operationId": "readSchedulingV1alpha3NamespacedWorkload", "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" } }, "401": { @@ -93433,33 +100898,18 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "watch", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" } }, "parameters": [ { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "description": "name of the ResourceSlice", + "description": "name of the Workload", "in": "path", "name": "name", "required": true, @@ -93467,71 +100917,47 @@ "uniqueItems": true }, { - "$ref": "#/parameters/pretty-tJGM1-ng" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "$ref": "#/parameters/namespace-vgWSWtn3" }, { - "$ref": "#/parameters/watch-XNNPZGbK" + "$ref": "#/parameters/pretty-tJGM1-ng" } - ] - }, - "/apis/scheduling.k8s.io/": { - "get": { + ], + "patch": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getSchedulingAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } + "description": "partially update the specified Workload", + "operationId": "patchSchedulingV1alpha3NamespacedWorkload", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" }, - "401": { - "description": "Unauthorized" + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling" - ] - } - }, - "/apis/scheduling.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" ], - "description": "get available resources", - "operationId": "getSchedulingV1APIResources", "produces": [ "application/json", "application/yaml", @@ -93542,7 +100968,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" } }, "401": { @@ -93553,23 +100985,29 @@ "https" ], "tags": [ - "scheduling_v1" - ] - } - }, - "/apis/scheduling.k8s.io/v1/priorityclasses": { - "delete": { + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" + } + }, + "put": { "consumes": [ "*/*" ], - "description": "delete collection of PriorityClass", - "operationId": "deleteSchedulingV1CollectionPriorityClass", + "description": "replace the specified Workload", + "operationId": "replaceSchedulingV1alpha3NamespacedWorkload", "parameters": [ { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" + } }, { "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", @@ -93579,40 +101017,14 @@ "uniqueItems": true }, { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" + "$ref": "#/parameters/fieldManager-Qy4HdaTW" }, { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + "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": [ @@ -93625,7 +101037,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.Workload" } }, "401": { @@ -93636,56 +101054,23 @@ "https" ], "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" + "scheduling_v1alpha3" ], - "description": "list or watch objects of kind PriorityClass", - "operationId": "listSchedulingV1PriorityClass", - "parameters": [ - { - "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" - }, - { - "$ref": "#/parameters/continue-QfD61s0i" - }, - { - "$ref": "#/parameters/fieldSelector-xIcQKXFG" - }, - { - "$ref": "#/parameters/labelSelector-5Zw57w4C" - }, - { - "$ref": "#/parameters/limit-1NfNmdNH" - }, - { - "$ref": "#/parameters/resourceVersion-5WAnf1kx" - }, - { - "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" - }, - { - "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" - }, - { - "$ref": "#/parameters/shardSelector-Kgyki_3_" - }, - { - "$ref": "#/parameters/timeoutSeconds-yvYezaOC" - }, - { - "$ref": "#/parameters/watch-XNNPZGbK" - } + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" + } + } + }, + "/apis/scheduling.k8s.io/v1alpha3/podgroups": { + "get": { + "consumes": [ + "*/*" ], + "description": "list or watch objects of kind PodGroup", + "operationId": "listSchedulingV1alpha3PodGroupForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -93699,7 +101084,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClassList" + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha3.PodGroupList" } }, "401": { @@ -93710,76 +101095,75 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha3" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "PodGroup", + "version": "v1alpha3" } }, "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "post": { + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/watch/compositepodgroups": { + "get": { "consumes": [ "*/*" ], - "description": "create a PriorityClass", - "operationId": "createSchedulingV1PriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": "watch individual changes to a list of CompositePodGroup. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchSchedulingV1alpha3CompositePodGroupListForAllNamespaces", "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/io.k8s.api.scheduling.v1.PriorityClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -93790,64 +101174,75 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "CompositePodGroup", + "version": "v1alpha3" } - } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/scheduling.k8s.io/v1/priorityclasses/{name}": { - "delete": { + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/compositepodgroups": { + "get": { "consumes": [ "*/*" ], - "description": "delete a PriorityClass", - "operationId": "deleteSchedulingV1PriorityClass", - "parameters": [ - { - "$ref": "#/parameters/body-2Y1dVQaQ" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/gracePeriodSeconds--K5HaBOS" - }, - { - "$ref": "#/parameters/ignoreStoreReadErrorWithClusterBreakingPotential-QbNkfIqj" - }, - { - "$ref": "#/parameters/orphanDependents-uRB25kX5" - }, - { - "$ref": "#/parameters/propagationPolicy-6jk3prlO" - } - ], + "description": "watch individual changes to a list of CompositePodGroup. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchSchedulingV1alpha3NamespacedCompositePodGroupList", "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/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -93858,32 +101253,78 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "CompositePodGroup", + "version": "v1alpha3" } }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/compositepodgroups/{name}": { "get": { "consumes": [ "*/*" ], - "description": "read the specified PriorityClass", - "operationId": "readSchedulingV1PriorityClass", + "description": "watch changes to an object of kind CompositePodGroup. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchSchedulingV1alpha3NamespacedCompositePodGroup", "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/io.k8s.api.scheduling.v1.PriorityClass" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -93894,80 +101335,86 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "CompositePodGroup", + "version": "v1alpha3" } }, "parameters": [ { - "description": "name of the PriorityClass", + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the CompositePodGroup", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" } - ], - "patch": { + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/podgroups": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified PriorityClass", - "operationId": "patchSchedulingV1PriorityClass", - "parameters": [ - { - "$ref": "#/parameters/body-78PwaGsr" - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - }, - { - "$ref": "#/parameters/fieldManager-7c6nTn1T" - }, - { - "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 - }, - { - "$ref": "#/parameters/force-tOGGb0Yi" - } + "*/*" ], + "description": "watch individual changes to a list of PodGroup. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchSchedulingV1alpha3NamespacedPodGroupList", "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/io.k8s.api.scheduling.v1.PriorityClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -93978,65 +101425,78 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "PodGroup", + "version": "v1alpha3" } }, - "put": { + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/podgroups/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "replace the specified PriorityClass", - "operationId": "replaceSchedulingV1PriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.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 - }, - { - "$ref": "#/parameters/fieldManager-Qy4HdaTW" - }, - { - "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": "watch changes to an object of kind PodGroup. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchSchedulingV1alpha3NamespacedPodGroup", "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/io.k8s.api.scheduling.v1.PriorityClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" } }, "401": { @@ -94047,23 +101507,72 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "PodGroup", + "version": "v1alpha3" } - } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "description": "name of the PodGroup", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] }, - "/apis/scheduling.k8s.io/v1/watch/priorityclasses": { + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/workloads": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of PriorityClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchSchedulingV1PriorityClassList", + "description": "watch individual changes to a list of Workload. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchSchedulingV1alpha3NamespacedWorkloadList", "produces": [ "application/json", "application/yaml", @@ -94088,13 +101597,13 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha3" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "Workload", + "version": "v1alpha3" } }, "parameters": [ @@ -94113,6 +101622,9 @@ { "$ref": "#/parameters/limit-1NfNmdNH" }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -94136,13 +101648,13 @@ } ] }, - "/apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}": { + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/workloads/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind PriorityClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchSchedulingV1PriorityClass", + "description": "watch changes to an object of kind Workload. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchSchedulingV1alpha3NamespacedWorkload", "produces": [ "application/json", "application/yaml", @@ -94167,13 +101679,13 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha3" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "Workload", + "version": "v1alpha3" } }, "parameters": [ @@ -94193,13 +101705,95 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the PriorityClass", + "description": "name of the Workload", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "$ref": "#/parameters/namespace-vgWSWtn3" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/watch/podgroups": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PodGroup. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchSchedulingV1alpha3PodGroupListForAllNamespaces", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, { "$ref": "#/parameters/pretty-tJGM1-ng" }, @@ -94223,7 +101817,165 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/": { + "/apis/scheduling.k8s.io/v1alpha3/watch/workloads": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Workload. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchSchedulingV1alpha3WorkloadListForAllNamespaces", + "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/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha3/workloads": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Workload", + "operationId": "listSchedulingV1alpha3WorkloadForAllNamespaces", + "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/io.k8s.api.scheduling.v1alpha3.WorkloadList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" + }, + { + "$ref": "#/parameters/continue-QfD61s0i" + }, + { + "$ref": "#/parameters/fieldSelector-xIcQKXFG" + }, + { + "$ref": "#/parameters/labelSelector-5Zw57w4C" + }, + { + "$ref": "#/parameters/limit-1NfNmdNH" + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + }, + { + "$ref": "#/parameters/resourceVersion-5WAnf1kx" + }, + { + "$ref": "#/parameters/resourceVersionMatch-t8XhRHeC" + }, + { + "$ref": "#/parameters/sendInitialEvents-rLXlEK_k" + }, + { + "$ref": "#/parameters/shardSelector-Kgyki_3_" + }, + { + "$ref": "#/parameters/timeoutSeconds-yvYezaOC" + }, + { + "$ref": "#/parameters/watch-XNNPZGbK" + } + ] + }, + "/apis/scheduling.k8s.io/v1beta1/": { "get": { "consumes": [ "application/json", @@ -94232,7 +101984,7 @@ "application/cbor" ], "description": "get available resources", - "operationId": "getSchedulingV1alpha2APIResources", + "operationId": "getSchedulingV1beta1APIResources", "produces": [ "application/json", "application/yaml", @@ -94254,17 +102006,17 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ] } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups": { "delete": { "consumes": [ "*/*" ], "description": "delete collection of PodGroup", - "operationId": "deleteSchedulingV1alpha2CollectionNamespacedPodGroup", + "operationId": "deleteSchedulingV1beta1CollectionNamespacedPodGroup", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -94337,13 +102089,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "get": { @@ -94351,7 +102103,7 @@ "*/*" ], "description": "list or watch objects of kind PodGroup", - "operationId": "listSchedulingV1alpha2NamespacedPodGroup", + "operationId": "listSchedulingV1beta1NamespacedPodGroup", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -94400,7 +102152,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroupList" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroupList" } }, "401": { @@ -94411,13 +102163,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -94433,14 +102185,14 @@ "*/*" ], "description": "create a PodGroup", - "operationId": "createSchedulingV1alpha2NamespacedPodGroup", + "operationId": "createSchedulingV1beta1NamespacedPodGroup", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, { @@ -94471,19 +102223,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "401": { @@ -94494,23 +102246,23 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}": { "delete": { "consumes": [ "*/*" ], "description": "delete a PodGroup", - "operationId": "deleteSchedulingV1alpha2NamespacedPodGroup", + "operationId": "deleteSchedulingV1beta1NamespacedPodGroup", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -94562,13 +102314,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "get": { @@ -94576,7 +102328,7 @@ "*/*" ], "description": "read the specified PodGroup", - "operationId": "readSchedulingV1alpha2NamespacedPodGroup", + "operationId": "readSchedulingV1beta1NamespacedPodGroup", "produces": [ "application/json", "application/yaml", @@ -94587,7 +102339,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "401": { @@ -94598,13 +102350,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -94632,7 +102384,7 @@ "application/apply-patch+cbor" ], "description": "partially update the specified PodGroup", - "operationId": "patchSchedulingV1alpha2NamespacedPodGroup", + "operationId": "patchSchedulingV1beta1NamespacedPodGroup", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -94668,13 +102420,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "401": { @@ -94685,13 +102437,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "put": { @@ -94699,14 +102451,14 @@ "*/*" ], "description": "replace the specified PodGroup", - "operationId": "replaceSchedulingV1alpha2NamespacedPodGroup", + "operationId": "replaceSchedulingV1beta1NamespacedPodGroup", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, { @@ -94737,13 +102489,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "401": { @@ -94754,23 +102506,23 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status": { "get": { "consumes": [ "*/*" ], "description": "read status of the specified PodGroup", - "operationId": "readSchedulingV1alpha2NamespacedPodGroupStatus", + "operationId": "readSchedulingV1beta1NamespacedPodGroupStatus", "produces": [ "application/json", "application/yaml", @@ -94781,7 +102533,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "401": { @@ -94792,13 +102544,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -94826,7 +102578,7 @@ "application/apply-patch+cbor" ], "description": "partially update status of the specified PodGroup", - "operationId": "patchSchedulingV1alpha2NamespacedPodGroupStatus", + "operationId": "patchSchedulingV1beta1NamespacedPodGroupStatus", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -94862,13 +102614,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "401": { @@ -94879,13 +102631,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "put": { @@ -94893,14 +102645,14 @@ "*/*" ], "description": "replace status of the specified PodGroup", - "operationId": "replaceSchedulingV1alpha2NamespacedPodGroupStatus", + "operationId": "replaceSchedulingV1beta1NamespacedPodGroupStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, { @@ -94931,13 +102683,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroup" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroup" } }, "401": { @@ -94948,23 +102700,23 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads": { "delete": { "consumes": [ "*/*" ], "description": "delete collection of Workload", - "operationId": "deleteSchedulingV1alpha2CollectionNamespacedWorkload", + "operationId": "deleteSchedulingV1beta1CollectionNamespacedWorkload", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -95037,13 +102789,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "get": { @@ -95051,7 +102803,7 @@ "*/*" ], "description": "list or watch objects of kind Workload", - "operationId": "listSchedulingV1alpha2NamespacedWorkload", + "operationId": "listSchedulingV1beta1NamespacedWorkload", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -95100,7 +102852,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.WorkloadList" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.WorkloadList" } }, "401": { @@ -95111,13 +102863,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -95133,14 +102885,14 @@ "*/*" ], "description": "create a Workload", - "operationId": "createSchedulingV1alpha2NamespacedWorkload", + "operationId": "createSchedulingV1beta1NamespacedWorkload", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, { @@ -95171,19 +102923,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, "401": { @@ -95194,23 +102946,23 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name}": { "delete": { "consumes": [ "*/*" ], "description": "delete a Workload", - "operationId": "deleteSchedulingV1alpha2NamespacedWorkload", + "operationId": "deleteSchedulingV1beta1NamespacedWorkload", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -95262,13 +103014,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "get": { @@ -95276,7 +103028,7 @@ "*/*" ], "description": "read the specified Workload", - "operationId": "readSchedulingV1alpha2NamespacedWorkload", + "operationId": "readSchedulingV1beta1NamespacedWorkload", "produces": [ "application/json", "application/yaml", @@ -95287,7 +103039,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, "401": { @@ -95298,13 +103050,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -95332,7 +103084,7 @@ "application/apply-patch+cbor" ], "description": "partially update the specified Workload", - "operationId": "patchSchedulingV1alpha2NamespacedWorkload", + "operationId": "patchSchedulingV1beta1NamespacedWorkload", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -95368,13 +103120,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, "401": { @@ -95385,13 +103137,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "put": { @@ -95399,14 +103151,14 @@ "*/*" ], "description": "replace the specified Workload", - "operationId": "replaceSchedulingV1alpha2NamespacedWorkload", + "operationId": "replaceSchedulingV1beta1NamespacedWorkload", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, { @@ -95437,13 +103189,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.Workload" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.Workload" } }, "401": { @@ -95454,23 +103206,23 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } } }, - "/apis/scheduling.k8s.io/v1alpha2/podgroups": { + "/apis/scheduling.k8s.io/v1beta1/podgroups": { "get": { "consumes": [ "*/*" ], "description": "list or watch objects of kind PodGroup", - "operationId": "listSchedulingV1alpha2PodGroupForAllNamespaces", + "operationId": "listSchedulingV1beta1PodGroupForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -95484,7 +103236,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.PodGroupList" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PodGroupList" } }, "401": { @@ -95495,13 +103247,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -95543,13 +103295,13 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/podgroups": { + "/apis/scheduling.k8s.io/v1beta1/watch/namespaces/{namespace}/podgroups": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of PodGroup. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchSchedulingV1alpha2NamespacedPodGroupList", + "operationId": "watchSchedulingV1beta1NamespacedPodGroupList", "produces": [ "application/json", "application/yaml", @@ -95574,13 +103326,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -95625,13 +103377,13 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/podgroups/{name}": { + "/apis/scheduling.k8s.io/v1beta1/watch/namespaces/{namespace}/podgroups/{name}": { "get": { "consumes": [ "*/*" ], "description": "watch changes to an object of kind PodGroup. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchSchedulingV1alpha2NamespacedPodGroup", + "operationId": "watchSchedulingV1beta1NamespacedPodGroup", "produces": [ "application/json", "application/yaml", @@ -95656,13 +103408,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -95715,13 +103467,13 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/workloads": { + "/apis/scheduling.k8s.io/v1beta1/watch/namespaces/{namespace}/workloads": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of Workload. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchSchedulingV1alpha2NamespacedWorkloadList", + "operationId": "watchSchedulingV1beta1NamespacedWorkloadList", "produces": [ "application/json", "application/yaml", @@ -95746,13 +103498,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -95797,13 +103549,13 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/workloads/{name}": { + "/apis/scheduling.k8s.io/v1beta1/watch/namespaces/{namespace}/workloads/{name}": { "get": { "consumes": [ "*/*" ], "description": "watch changes to an object of kind Workload. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchSchedulingV1alpha2NamespacedWorkload", + "operationId": "watchSchedulingV1beta1NamespacedWorkload", "produces": [ "application/json", "application/yaml", @@ -95828,13 +103580,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -95887,13 +103639,13 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/podgroups": { + "/apis/scheduling.k8s.io/v1beta1/watch/podgroups": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of PodGroup. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchSchedulingV1alpha2PodGroupListForAllNamespaces", + "operationId": "watchSchedulingV1beta1PodGroupListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -95918,13 +103670,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -95966,13 +103718,13 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/workloads": { + "/apis/scheduling.k8s.io/v1beta1/watch/workloads": { "get": { "consumes": [ "*/*" ], "description": "watch individual changes to a list of Workload. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchSchedulingV1alpha2WorkloadListForAllNamespaces", + "operationId": "watchSchedulingV1beta1WorkloadListForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -95997,13 +103749,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -96045,13 +103797,13 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/workloads": { + "/apis/scheduling.k8s.io/v1beta1/workloads": { "get": { "consumes": [ "*/*" ], "description": "list or watch objects of kind Workload", - "operationId": "listSchedulingV1alpha2WorkloadForAllNamespaces", + "operationId": "listSchedulingV1beta1WorkloadForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -96065,7 +103817,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha2.WorkloadList" + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.WorkloadList" } }, "401": { @@ -96076,13 +103828,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -96129,14 +103881,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getStorageAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -97192,6 +104946,197 @@ } } }, + "/apis/storage.k8s.io/v1/csinodes/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified CSINode", + "operationId": "readStorageV1CSINodeStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the CSINode", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified CSINode", + "operationId": "patchStorageV1CSINodeStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified CSINode", + "operationId": "replaceStorageV1CSINodeStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.storage.v1.CSINode" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + } + }, "/apis/storage.k8s.io/v1/csistoragecapacities": { "get": { "consumes": [ @@ -100549,7 +108494,42 @@ } ] }, - "/apis/storage.k8s.io/v1beta1/": { + "/apis/storagemigration.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get information of a group", + "operationId": "getStoragemigrationAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storagemigration" + ] + } + }, + "/apis/storagemigration.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -100558,7 +108538,7 @@ "application/cbor" ], "description": "get available resources", - "operationId": "getStorageV1beta1APIResources", + "operationId": "getStoragemigrationV1APIResources", "produces": [ "application/json", "application/yaml", @@ -100580,17 +108560,17 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ] } }, - "/apis/storage.k8s.io/v1beta1/volumeattributesclasses": { + "/apis/storagemigration.k8s.io/v1/storageversionmigrations": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of VolumeAttributesClass", - "operationId": "deleteStorageV1beta1CollectionVolumeAttributesClass", + "description": "delete collection of StorageVersionMigration", + "operationId": "deleteStoragemigrationV1CollectionStorageVersionMigration", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -100663,21 +108643,21 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind VolumeAttributesClass", - "operationId": "listStorageV1beta1VolumeAttributesClass", + "description": "list or watch objects of kind StorageVersionMigration", + "operationId": "listStoragemigrationV1StorageVersionMigration", "parameters": [ { "$ref": "#/parameters/allowWatchBookmarks-HC2hJt-J" @@ -100726,7 +108706,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClassList" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigrationList" } }, "401": { @@ -100737,13 +108717,13 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } }, "parameters": [ @@ -100755,15 +108735,15 @@ "consumes": [ "*/*" ], - "description": "create a VolumeAttributesClass", - "operationId": "createStorageV1beta1VolumeAttributesClass", + "description": "create a StorageVersionMigration", + "operationId": "createStoragemigrationV1StorageVersionMigration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, { @@ -100794,19 +108774,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, "401": { @@ -100817,23 +108797,23 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } } }, - "/apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}": { + "/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a VolumeAttributesClass", - "operationId": "deleteStorageV1beta1VolumeAttributesClass", + "description": "delete a StorageVersionMigration", + "operationId": "deleteStoragemigrationV1StorageVersionMigration", "parameters": [ { "$ref": "#/parameters/body-2Y1dVQaQ" @@ -100868,13 +108848,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" } }, "401": { @@ -100885,21 +108865,21 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } }, "get": { "consumes": [ "*/*" ], - "description": "read the specified VolumeAttributesClass", - "operationId": "readStorageV1beta1VolumeAttributesClass", + "description": "read the specified StorageVersionMigration", + "operationId": "readStoragemigrationV1StorageVersionMigration", "produces": [ "application/json", "application/yaml", @@ -100910,7 +108890,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, "401": { @@ -100921,18 +108901,18 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } }, "parameters": [ { - "description": "name of the VolumeAttributesClass", + "description": "name of the StorageVersionMigration", "in": "path", "name": "name", "required": true, @@ -100951,8 +108931,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified VolumeAttributesClass", - "operationId": "patchStorageV1beta1VolumeAttributesClass", + "description": "partially update the specified StorageVersionMigration", + "operationId": "patchStoragemigrationV1StorageVersionMigration", "parameters": [ { "$ref": "#/parameters/body-78PwaGsr" @@ -100988,13 +108968,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, "401": { @@ -101005,28 +108985,28 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } }, "put": { "consumes": [ "*/*" ], - "description": "replace the specified VolumeAttributesClass", - "operationId": "replaceStorageV1beta1VolumeAttributesClass", + "description": "replace the specified StorageVersionMigration", + "operationId": "replaceStoragemigrationV1StorageVersionMigration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, { @@ -101057,13 +109037,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" } }, "401": { @@ -101074,23 +109054,214 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } } }, - "/apis/storage.k8s.io/v1beta1/watch/volumeattributesclasses": { + "/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "watch individual changes to a list of VolumeAttributesClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchStorageV1beta1VolumeAttributesClassList", + "description": "read status of the specified StorageVersionMigration", + "operationId": "readStoragemigrationV1StorageVersionMigrationStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storagemigration_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the StorageVersionMigration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "$ref": "#/parameters/pretty-tJGM1-ng" + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified StorageVersionMigration", + "operationId": "patchStoragemigrationV1StorageVersionMigrationStatus", + "parameters": [ + { + "$ref": "#/parameters/body-78PwaGsr" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-7c6nTn1T" + }, + { + "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 + }, + { + "$ref": "#/parameters/force-tOGGb0Yi" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storagemigration_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified StorageVersionMigration", + "operationId": "replaceStoragemigrationV1StorageVersionMigrationStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + }, + { + "$ref": "#/parameters/fieldManager-Qy4HdaTW" + }, + { + "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/io.k8s.api.storagemigration.v1.StorageVersionMigration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storagemigration.v1.StorageVersionMigration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storagemigration_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" + } + } + }, + "/apis/storagemigration.k8s.io/v1/watch/storageversionmigrations": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of StorageVersionMigration. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchStoragemigrationV1StorageVersionMigrationList", "produces": [ "application/json", "application/yaml", @@ -101115,13 +109286,13 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "watchlist", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } }, "parameters": [ @@ -101163,13 +109334,13 @@ } ] }, - "/apis/storage.k8s.io/v1beta1/watch/volumeattributesclasses/{name}": { + "/apis/storagemigration.k8s.io/v1/watch/storageversionmigrations/{name}": { "get": { "consumes": [ "*/*" ], - "description": "watch changes to an object of kind VolumeAttributesClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchStorageV1beta1VolumeAttributesClass", + "description": "watch changes to an object of kind StorageVersionMigration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchStoragemigrationV1StorageVersionMigration", "produces": [ "application/json", "application/yaml", @@ -101194,13 +109365,13 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } }, "parameters": [ @@ -101220,7 +109391,7 @@ "$ref": "#/parameters/limit-1NfNmdNH" }, { - "description": "name of the VolumeAttributesClass", + "description": "name of the StorageVersionMigration", "in": "path", "name": "name", "required": true, @@ -101250,39 +109421,6 @@ } ] }, - "/apis/storagemigration.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getStoragemigrationAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storagemigration" - ] - } - }, "/apis/storagemigration.k8s.io/v1beta1/": { "get": { "consumes": [ diff --git a/scripts/swagger.json b/scripts/swagger.json index 575b02786c..9c0c14a7fd 100644 --- a/scripts/swagger.json +++ b/scripts/swagger.json @@ -2109,7 +2109,7 @@ } }, "required": [ - "revision" + "data" ], "type": "object", "x-kubernetes-group-version-kind": [ @@ -2179,6 +2179,9 @@ "description": "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. 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": [ { @@ -2213,10 +2216,6 @@ "type": "string" } }, - "required": [ - "type", - "status" - ], "type": "object" }, "v1.DaemonSetList": { @@ -2394,6 +2393,9 @@ "description": "Most recently observed status of the Deployment." } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -2433,10 +2435,6 @@ "type": "string" } }, - "required": [ - "type", - "status" - ], "type": "object" }, "v1.DeploymentList": { @@ -2618,6 +2616,9 @@ "description": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. 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": [ { @@ -2652,10 +2653,6 @@ "type": "string" } }, - "required": [ - "type", - "status" - ], "type": "object" }, "v1.ReplicaSetList": { @@ -2844,6 +2841,9 @@ "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time." } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -2878,10 +2878,6 @@ "type": "string" } }, - "required": [ - "type", - "status" - ], "type": "object" }, "v1.StatefulSetList": { @@ -3092,7 +3088,7 @@ "type": "string" }, "kind": { - "description": "kind of the referent. Valid kinds are 'Pod' and 'Secret'.", + "description": "kind of the referent. Valid kinds are 'Pod', 'Secret', 'Node', 'ValidatingWebhookConfiguration', and 'MutatingWebhookConfiguration'.", "type": "string" }, "name": { @@ -3181,6 +3177,16 @@ "v1.TokenRequestSpec": { "description": "TokenRequestSpec contains client provided parameters of a token request.", "properties": { + "attestations": { + "additionalProperties": { + "items": { + "type": "string" + }, + "type": "array" + }, + "description": "attestations is a map of well-known keys to string-slice values. The values for each key have a specific semantic meaning, which is documented on the key definition. Requesters of tokens may ask the Kubernetes API Server to attest to certain claims. The API Server may perform authorization checks depending on the key of this map.", + "type": "object" + }, "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": { @@ -3793,7 +3799,7 @@ }, "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.HorizontalPodAutoscalerSpec", @@ -3866,7 +3872,7 @@ }, "scaleTargetRef": { "$ref": "#/definitions/v1.CrossVersionObjectReference", - "description": "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." + "description": "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." }, "targetCPUUtilizationPercentage": { "description": "targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.", @@ -3928,7 +3934,7 @@ }, "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.ScaleSpec", @@ -4107,7 +4113,7 @@ "type": "object" }, "v2.HPAScalingRules": { - "description": "HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.\n\nScaling 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.\n\nThe 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.)", + "description": "HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.\n\nScaling 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.\n\nThe tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations.", "properties": { "policies": { "description": "policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window.", @@ -4127,7 +4133,7 @@ "type": "integer" }, "tolerance": { - "description": "tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).\n\nFor example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.\n\nThis is an beta field and requires the HPAConfigurableTolerance feature gate to be enabled.", + "description": "tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).\n\nFor example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.", "type": "string" } }, @@ -4195,6 +4201,11 @@ "description": "message is a human-readable explanation containing details about the transition", "type": "string" }, + "observedGeneration": { + "description": "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.", + "format": "int64", + "type": "integer" + }, "reason": { "description": "reason is the reason for the condition's last transition.", "type": "string" @@ -4390,7 +4401,7 @@ "properties": { "containerResource": { "$ref": "#/definitions/v2.ContainerResourceMetricStatus", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + "description": "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 to normal per-pod metrics using the \"pods\" source." }, "external": { "$ref": "#/definitions/v2.ExternalMetricStatus", @@ -4448,7 +4459,7 @@ "description": "MetricValueStatus holds the current value for a metric", "properties": { "averageUtilization": { - "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", + "description": "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.", "format": "int32", "type": "integer" }, @@ -4495,7 +4506,7 @@ }, "describedObject": { "$ref": "#/definitions/v2.CrossVersionObjectReference", - "description": "DescribedObject specifies the descriptions of a object,such as kind,name apiVersion" + "description": "describedObject specifies the descriptions of a object,such as kind,name apiVersion" }, "metric": { "$ref": "#/definitions/v2.MetricIdentifier", @@ -4825,6 +4836,37 @@ } ] }, + "v1.JobSchedulingConfiguration": { + "description": "JobSchedulingConfiguration composes the reusable workload-aware scheduling building blocks.", + "properties": { + "disruptionMode": { + "$ref": "#/definitions/v1alpha3.WorkloadPodGroupDisruptionMode", + "description": "DisruptionMode defines the mode in which the Job's pods can be disrupted. One of Single, All. This field is immutable after creation: it may not be added or removed, and the selected mode may not be changed." + }, + "resourceClaims": { + "description": "ResourceClaims defines which ResourceClaims may be shared among Pods in the Job. 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. At most 4 claims may be set, matching the limit on the resulting PodGroup. This list is immutable after creation: entries may neither be added, removed, nor modified.", + "items": { + "$ref": "#/definitions/v1alpha3.WorkloadPodGroupResourceClaim" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "schedulingConstraints": { + "$ref": "#/definitions/v1alpha3.WorkloadPodGroupSchedulingConstraints", + "description": "SchedulingConstraints defines scheduling constraints (e.g. topology) for the Job's pods. This field is immutable after creation." + }, + "schedulingPolicy": { + "$ref": "#/definitions/v1alpha3.WorkloadPodGroupSchedulingPolicy", + "description": "SchedulingPolicy defines the scheduling policy for this Job. Exactly one of Basic or Gang must be set. This field is immutable after creation: the policy may not be added or removed. The policy variant (basic/gang) is frozen by hand-written validation; only schedulingPolicy.gang.minCount may be changed." + } + }, + "type": "object" + }, "v1.JobSpec": { "description": "JobSpec describes how the job execution will look like.", "properties": { @@ -4878,6 +4920,10 @@ "description": "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use.", "type": "string" }, + "scheduling": { + "$ref": "#/definitions/v1.JobSchedulingConfiguration", + "description": "scheduling defines the Workload-aware Scheduling configuration for this Job. When set, it specifies the scheduling policy (basic or gang), topology constraints, disruption mode, and shared resource claims. When omitted, the Job defaults to the basic scheduling policy, which behaves as standard pod-by-pod scheduling. This field is alpha-level and requires the WorkloadWithJob feature gate. This field is immutable, including whether it is set at all, only policy.gang.minCount may be changed after creation." + }, "selector": { "$ref": "#/definitions/v1.LabelSelector", "description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" @@ -4957,7 +5003,7 @@ "type": "integer" }, "terminating": { - "description": "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).\n\nThis field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).", + "description": "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).", "format": "int32", "type": "integer" }, @@ -5307,8 +5353,8 @@ }, "type": "object" }, - "v1alpha1.ClusterTrustBundle": { - "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle 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.\n\nIt 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.", + "v1.ClusterTrustBundle": { + "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle 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.\n\nIt can be optionally associated with a particular signer, 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.", "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", @@ -5323,7 +5369,7 @@ "description": "metadata contains the object metadata." }, "spec": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundleSpec", + "$ref": "#/definitions/v1.ClusterTrustBundleSpec", "description": "spec contains the signer (if any) and trust anchors." } }, @@ -5335,11 +5381,11 @@ { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } ] }, - "v1alpha1.ClusterTrustBundleList": { + "v1.ClusterTrustBundleList": { "description": "ClusterTrustBundleList is a collection of ClusterTrustBundle objects", "properties": { "apiVersion": { @@ -5349,7 +5395,7 @@ "items": { "description": "items is a collection of ClusterTrustBundle objects", "items": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" }, "type": "array" }, @@ -5370,11 +5416,11 @@ { "group": "certificates.k8s.io", "kind": "ClusterTrustBundleList", - "version": "v1alpha1" + "version": "v1" } ] }, - "v1alpha1.ClusterTrustBundleSpec": { + "v1.ClusterTrustBundleSpec": { "description": "ClusterTrustBundleSpec contains the signer and trust anchors.", "properties": { "signerName": { @@ -5391,8 +5437,178 @@ ], "type": "object" }, + "v1.PodCertificateRequest": { + "description": "PodCertificateRequest encodes a pod requesting a certificate from a given signer.\n\nKubelets use this API to implement podCertificate projected volumes", + "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 contains the object metadata." + }, + "spec": { + "$ref": "#/definitions/v1.PodCertificateRequestSpec", + "description": "spec contains the details about the certificate being requested." + }, + "status": { + "$ref": "#/definitions/v1.PodCertificateRequestStatus", + "description": "status contains the issued certificate, and a standard set of conditions." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1" + } + ] + }, + "v1.PodCertificateRequestList": { + "description": "PodCertificateRequestList is a collection of PodCertificateRequest 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", + "type": "string" + }, + "items": { + "description": "items is a collection of PodCertificateRequest objects", + "items": { + "$ref": "#/definitions/v1.PodCertificateRequest" + }, + "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 contains the list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "PodCertificateRequestList", + "version": "v1" + } + ] + }, + "v1.PodCertificateRequestSpec": { + "description": "PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation.", + "properties": { + "maxExpirationSeconds": { + "description": "maxExpirationSeconds is the maximum lifetime permitted for the certificate.\n\nIf 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).\n\nThe 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.", + "format": "int32", + "type": "integer" + }, + "nodeName": { + "description": "nodeName is the name of the node the pod is assigned to.", + "type": "string" + }, + "nodeUID": { + "description": "nodeUID is the UID of the node the pod is assigned to.", + "type": "string" + }, + "podName": { + "description": "podName is the name of the pod into which the certificate will be mounted.", + "type": "string" + }, + "podUID": { + "description": "podUID is the UID of the pod into which the certificate will be mounted.", + "type": "string" + }, + "serviceAccountName": { + "description": "serviceAccountName is the name of the service account the pod is running as.", + "type": "string" + }, + "serviceAccountUID": { + "description": "serviceAccountUID is the UID of the service account the pod is running as.", + "type": "string" + }, + "signerName": { + "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" + }, + "description": "unverifiedUserAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way.\n\nEntries 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.\n\nSigners should document the keys and values they support. Signers should deny requests that contain keys they do not recognize.", + "type": "object" + } + }, + "required": [ + "signerName", + "podName", + "podUID", + "serviceAccountName", + "serviceAccountUID", + "nodeName", + "nodeUID", + "stubPKCS10Request" + ], + "type": "object" + }, + "v1.PodCertificateRequestStatus": { + "description": "PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued.", + "properties": { + "beginRefreshAt": { + "description": "beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable.\n\nThis field is only a hint. Kubelet may start refreshing before or after this time if necessary.", + "format": "date-time", + "type": "string" + }, + "certificateChain": { + "description": "certificateChain is populated with an issued certificate by the signer. This field is set via the /status subresource. Once populated, this field is immutable.\n\nIf the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty.\n\nValidation requirements:\n 1. certificateChain must consist of one or more PEM-formatted certificates.\n 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as\n described in section 4 of RFC5280.\n\nIf more than one block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers.", + "type": "string" + }, + "conditions": { + "description": "conditions applied to the request.\n\nThe types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\".\n\nIf the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field.", + "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" + }, + "notAfter": { + "description": "notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.", + "format": "date-time", + "type": "string" + }, + "notBefore": { + "description": "notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.", + "format": "date-time", + "type": "string" + } + }, + "type": "object" + }, "v1beta1.ClusterTrustBundle": { - "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle 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.\n\nIt 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.", + "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle 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.\n\nIt can be optionally associated with a particular signer, 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.", "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", @@ -5668,7 +5884,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "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.LeaseSpec", @@ -5742,7 +5958,7 @@ "type": "integer" }, "preferredHolder": { - "description": "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.", + "description": "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.", "type": "string" }, "renewTime": { @@ -5751,7 +5967,7 @@ "type": "string" }, "strategy": { - "description": "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.", + "description": "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.", "type": "string" } }, @@ -5770,7 +5986,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "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/v1alpha2.LeaseCandidateSpec", @@ -5828,29 +6044,29 @@ "description": "LeaseCandidateSpec is a specification of a Lease.", "properties": { "binaryVersion": { - "description": "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", + "description": "binaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", "type": "string" }, "emulationVersion": { - "description": "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", + "description": "emulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", "type": "string" }, "leaseName": { - "description": "LeaseName is the name of the lease for which this candidate is contending. This field is immutable.", + "description": "leaseName is the name of the lease for which this candidate is contending. This field is immutable.", "type": "string" }, "pingTime": { - "description": "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.", + "description": "pingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.", "format": "date-time", "type": "string" }, "renewTime": { - "description": "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.", + "description": "renewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.", "format": "date-time", "type": "string" }, "strategy": { - "description": "Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.", + "description": "strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.", "type": "string" } }, @@ -5874,7 +6090,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "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.LeaseCandidateSpec", @@ -5932,29 +6148,29 @@ "description": "LeaseCandidateSpec is a specification of a Lease.", "properties": { "binaryVersion": { - "description": "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", + "description": "binaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", "type": "string" }, "emulationVersion": { - "description": "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", + "description": "emulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", "type": "string" }, "leaseName": { - "description": "LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.", + "description": "leaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.", "type": "string" }, "pingTime": { - "description": "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.", + "description": "pingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.", "format": "date-time", "type": "string" }, "renewTime": { - "description": "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.", + "description": "renewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.", "format": "date-time", "type": "string" }, "strategy": { - "description": "Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.", + "description": "strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.", "type": "string" } }, @@ -6430,6 +6646,11 @@ "signerName": { "description": "Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.", "type": "string" + }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" } }, "required": [ @@ -6548,7 +6769,7 @@ "format": "byte", "type": "string" }, - "description": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.", + "description": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in 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.", "type": "object" }, "data": { @@ -6581,7 +6802,7 @@ ] }, "v1.ConfigMapEnvSource": { - "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", + "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe 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.", "properties": { "name": { "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", @@ -6598,7 +6819,7 @@ "description": "Selects a key from a ConfigMap.", "properties": { "key": { - "description": "The key to select.", + "description": "The key to select from the ConfigMap's Data field. Keys in the BinaryData field are not currently propagated to container env vars.", "type": "string" }, "name": { @@ -6712,6 +6933,11 @@ "format": "int32", "type": "integer" }, + "defaultUser": { + "description": "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "items": { "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", "items": { @@ -7264,6 +7490,11 @@ "resourceFieldRef": { "$ref": "#/definitions/v1.ResourceFieldSelector", "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported." + }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" } }, "required": [ @@ -7279,6 +7510,11 @@ "format": "int32", "type": "integer" }, + "defaultUser": { + "description": "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "items": { "description": "Items is a list of downward API volume file", "items": { @@ -7297,6 +7533,11 @@ "description": "medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", "type": "string" }, + "mode": { + "description": "mode specifies the permission bits for the emptyDir directory, in numeric notation (e.g., 0755, 01777). Must be a value between 0000 and 01777. If not specified, defaults to 0777. This might be in conflict with other options that affect the file mode, like fsGroup. If fsGroup is specified, the fsGroup permissions will override the mode specified here. This field has no effect on Windows. This field is alpha and requires EmptyDirVolumeMode featuregate to be enabled.", + "format": "int32", + "type": "integer" + }, "sizeLimit": { "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", "type": "string" @@ -7854,6 +8095,26 @@ }, "type": "object" }, + "v1.EvictionResponder": { + "description": "EvictionResponder allows you to specify the responder reacting to an Eviction. Responders should observe and communicate through the Eviction Resource API to help with the graceful eviction of a target (e.g. termination of a pod).", + "properties": { + "name": { + "description": "name allows you to identify the responder responding to the Eviction.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field must be unique for each responder. This field is required.", + "type": "string" + }, + "priority": { + "description": "priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last.\n\nThe responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders.\n\nThe minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "name", + "priority" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, "v1.ExecAction": { "description": "ExecAction describes a \"run in container\" action.", "properties": { @@ -8038,6 +8299,10 @@ "v1.GRPCAction": { "description": "GRPCAction specifies an action involving a GRPC service.", "properties": { + "mode": { + "description": "mode specifies the connection mode for the gRPC health probe. Set to \"TLS\" to use TLS without certificate verification. Set to \"Plaintext\" to use a plaintext (insecure) connection explicitly. If not specified, the probe uses a plaintext (insecure) connection.", + "type": "string" + }, "port": { "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", "format": "int32", @@ -8146,6 +8411,10 @@ "format": "int-or-string", "type": "object" }, + "protocol": { + "description": "Protocol selects the wire protocol for the probe connection. Nil defaults to HTTP/1.1.", + "type": "string" + }, "scheme": { "description": "Scheme to use for connecting to the host. Defaults to HTTP.", "type": "string" @@ -8387,6 +8656,11 @@ "path": { "description": "path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", "type": "string" + }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" } }, "required": [ @@ -8910,6 +9184,45 @@ }, "type": "object" }, + "v1.NodeAllocatableMappedResources": { + "description": "NodeAllocatableMappedResources describes mapped node allocatable resource allocations.", + "properties": { + "name": { + "description": "Name is the name of the resource (e.g., cpu, memory).", + "type": "string" + }, + "quantity": { + "description": "Quantity is the total node allocatable resource capacity allocated for the claim. This claim's allocated devices is shared by all the containers referencing the claim. Kubelet adds this value to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.", + "type": "string" + } + }, + "required": [ + "name", + "quantity" + ], + "type": "object" + }, + "v1.NodeAllocatableOverheadResources": { + "description": "NodeAllocatableOverheadResources describes auxiliary overhead resource allocations.", + "properties": { + "name": { + "description": "Name is the name of the resource (e.g., cpu, memory).", + "type": "string" + }, + "perContainer": { + "description": "PerContainer is the variable overhead quantity applied for each container referencing the claim. The container references are recorded in `nodeAllocatableResourceClaimStatuses.containers`. The total overhead quantity allocated for the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once. At least one of PerPod or PerContainer must be specified. Specifying neither is an invalid configuration.", + "type": "string" + }, + "perPod": { + "description": "PerPod is the flat overhead quantity allocated per pod. Adding to each container limit allows individual containers to utilize the overhead, while the parent pod-level cgroup limit caps the total usage at the pod boundary where the overhead is accounted for exactly once. At least one of PerPod or PerContainer must be specified. Specifying neither is an invalid configuration.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, "v1.NodeAllocatableResourceClaimStatus": { "description": "NodeAllocatableResourceClaimStatus describes the status of node allocatable resources allocated via DRA.", "properties": { @@ -8921,22 +9234,39 @@ "type": "array", "x-kubernetes-list-type": "set" }, + "mapping": { + "description": "Mapping contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].mapping` field. This is used by kubelet for pod level and container-level cgroup enforcement.", + "items": { + "$ref": "#/definitions/v1.NodeAllocatableMappedResources" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "overhead": { + "description": "Overhead contains allocations through devices mapped in the device spec's `nodeAllocatableResources[...].overhead` field. This is used by kubelet for pod level and container-level cgroup enforcement.", + "items": { + "$ref": "#/definitions/v1.NodeAllocatableOverheadResources" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, "resourceClaimName": { "description": "ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.", "type": "string" - }, - "resources": { - "additionalProperties": { - "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.", - "type": "string" - }, - "description": "Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.", - "type": "object" } }, "required": [ - "resourceClaimName", - "resources" + "resourceClaimName" ], "type": "object" }, @@ -9063,6 +9393,20 @@ } ] }, + "v1.NodePodPreemptionPolicy": { + "description": "NodePodPreemptionPolicy defines the node-level policies governing preemption for pods on this node.", + "properties": { + "disableResizePreemption": { + "description": "DisableResizePreemption lists the owners (e.g., autoscalers, operators, administrators) that have requested to disable scheduler and Kubelet preemption for in-place pod resize on this node. If this list is non-empty, resize-induced preemption is disabled on this node. This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption feature gate.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, "v1.NodeRuntimeHandler": { "description": "NodeRuntimeHandler is a set of runtime handler information.", "properties": { @@ -9182,6 +9526,10 @@ "x-kubernetes-list-type": "set", "x-kubernetes-patch-strategy": "merge" }, + "podPreemptionPolicy": { + "$ref": "#/definitions/v1.NodePodPreemptionPolicy", + "description": "PodPreemptionPolicy controls the node-level preemption behaviors for pods on this node. This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption feature gate." + }, "providerID": { "description": "ID of the node assigned by the cloud provider in the format: ://", "type": "string" @@ -9359,6 +9707,10 @@ "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", "type": "string" }, + "runningInUserNamespace": { + "description": "Whether the node is running in a user namespace.", + "type": "boolean" + }, "swap": { "$ref": "#/definitions/v1.NodeSwapStatus", "description": "Swap Info reported by the node." @@ -9585,11 +9937,11 @@ }, "dataSource": { "$ref": "#/definitions/v1.TypedLocalObjectReference", - "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * 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. If the namespace is specified, then dataSourceRef will not be copied to dataSource." + "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * 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. 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." }, "dataSourceRef": { "$ref": "#/definitions/v1.TypedObjectReference", - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(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." + "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled." }, "resources": { "$ref": "#/definitions/v1.VolumeResourceRequirements", @@ -9670,6 +10022,10 @@ "description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim", "type": "string" }, + "healthStatus": { + "$ref": "#/definitions/v1.VolumeHealthStatus", + "description": "healthStatus contains the latest controller-reported health information for the volume bound to this claim." + }, "modifyVolumeStatus": { "$ref": "#/definitions/v1.ModifyVolumeStatus", "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted." @@ -10083,6 +10439,11 @@ "description": "Kubelet's generated CSRs will be addressed to this signer.", "type": "string" }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "userAnnotations": { "additionalProperties": { "type": "string" @@ -10377,7 +10738,7 @@ "type": "integer" }, "seLinuxChangePolicy": { - "description": "seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\".\n\n\"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.\n\n\"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. 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.\n\nIf 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.\n\nThis field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.\n\nAll 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.", + "description": "seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\".\n\n\"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.\n\n\"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. 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.\n\nIf not specified, \"MountOption\" is used.\n\nThis field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.\n\nAll 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.", "type": "string" }, "seLinuxOptions": { @@ -10470,6 +10831,19 @@ "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge" }, + "evictionResponders": { + "description": "evictionResponders reference responders that react to Evictions based on EvictionRequests. Responders should observe and communicate through the Eviction Resource API to help with the graceful termination of a pod. The responders are selected sequentially, according to their specified priority.\n\nResponders should periodically report on an eviction progress by updating the .status.responders[].heartbeatTime field of the Eviction object. If this field is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority. If there is no other responder, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource).\n\nThe maximum length of the responders list is 10. Responders are not supported when the pod is part of a PodGroup (.spec.schedulingGroup is set). This field can only be set on creation and is immutable afterwards.", + "items": { + "$ref": "#/definitions/v1.EvictionResponder" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, "hostAliases": { "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.", "items": { @@ -10504,7 +10878,7 @@ "type": "string" }, "hostnameOverride": { - "description": "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.\n\nThis 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.", + "description": "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.\n\nThis field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters.", "type": "string" }, "imagePullSecrets": { @@ -10558,7 +10932,7 @@ "type": "object" }, "preemptionPolicy": { - "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", + "description": "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.", "type": "string" }, "priority": { @@ -10770,7 +11144,12 @@ "$ref": "#/definitions/v1.NodeAllocatableResourceClaimStatus" }, "type": "array", - "x-kubernetes-list-type": "atomic" + "x-kubernetes-list-map-keys": [ + "resourceClaimName" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "resourceClaimName", + "x-kubernetes-patch-strategy": "merge" }, "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.", @@ -10835,6 +11214,17 @@ "description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.", "format": "date-time", "type": "string" + }, + "volumeHealth": { + "description": "volumeHealth contains node-reported health for each volume the pod is using. Populated by the kubelet on the pod's node.", + "items": { + "$ref": "#/definitions/v1.PodVolumeHealth" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" } }, "type": "object" @@ -10917,6 +11307,38 @@ }, "type": "object" }, + "v1.PodVolumeHealth": { + "description": "PodVolumeHealth contains health information for a volume used by a pod, reported by the CSI node plugin via the kubelet.", + "properties": { + "healthConditions": { + "description": "conditions is the set of adverse conditions reported by the CSI node plugin for this volume on this node. At most 16 conditions may be reported.", + "items": { + "$ref": "#/definitions/v1.VolumeHealthCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "status", + "reason" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "status", + "x-kubernetes-patch-strategy": "merge" + }, + "lastTransitionTime": { + "description": "lastTransitionTime is when the current set of conditions first appeared.", + "format": "date-time", + "type": "string" + }, + "name": { + "description": "name matches an entry in pod.spec.volumes.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, "v1.PortStatus": { "description": "PortStatus represents the error condition of a service port", "properties": { @@ -11040,6 +11462,11 @@ "format": "int32", "type": "integer" }, + "defaultUser": { + "description": "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "sources": { "description": "sources is the list of volume projections. Each entry in this list handles one source.", "items": { @@ -11564,7 +11991,7 @@ "description": "ResourceStatus represents the status of a single resource allocated to a Pod.", "properties": { "name": { - "description": "Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:/\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.", + "description": "Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:/\" when container.resources.claims[*].request is set or \"claim:\" when container.resources.claims[*].request is empty. For DRA-backed extended resources, \"claim:/\" is used when the claim name and request name are recorded in pod.status.extendedResourceClaimStatus. When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.", "type": "string" }, "resources": { @@ -11938,6 +12365,11 @@ "format": "int32", "type": "integer" }, + "defaultUser": { + "description": "defaultUser is Optional: The owner UID of the created files by default. The defaultUser field is only used as a fallback when the item-level user field is unset. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" + }, "items": { "description": "items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", "items": { @@ -12146,6 +12578,11 @@ "path": { "description": "path is the path relative to the mount point of the file to project the token into.", "type": "string" + }, + "user": { + "description": "user is Optional: The owner UID of the created file. If specified, the item-level user field takes precedence over defaultUser. (Alpha) This field requires the AtomicWriteVolumeUserFields feature gate to be enabled.", + "format": "int64", + "type": "integer" } }, "required": [ @@ -12816,11 +13253,66 @@ ], "type": "object" }, + "v1.VolumeHealthCondition": { + "description": "VolumeHealthCondition represents an adverse health condition reported for a volume.", + "properties": { + "message": { + "description": "message is a human-readable description. Maximum permitted length of a message is 1024 bytes.", + "type": "string" + }, + "reason": { + "description": "reason is a brief CamelCase machine-parseable reason. Together with status it forms the unique identity of a condition entry. Maximum permitted length of a reason is 256 bytes.", + "type": "string" + }, + "status": { + "description": "status is the machine-parseable health category. Possible values: - \"Inaccessible\": the volume cannot be accessed. - \"DataLoss\": data loss has been detected on the volume. - \"Degraded\": the volume is functioning with reduced capability.", + "type": "string" + } + }, + "required": [ + "status", + "reason" + ], + "type": "object" + }, + "v1.VolumeHealthStatus": { + "description": "VolumeHealthStatus contains health information for a volume reported by the CSI controller plugin.", + "properties": { + "healthConditions": { + "description": "conditions is the set of adverse conditions reported by the CSI controller plugin. An empty list means no adverse condition. At most 16 conditions may be reported.", + "items": { + "$ref": "#/definitions/v1.VolumeHealthCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "status", + "reason" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "status", + "x-kubernetes-patch-strategy": "merge" + }, + "lastTransitionTime": { + "description": "lastTransitionTime is when the current set of conditions first appeared.", + "format": "date-time", + "type": "string" + } + }, + "type": "object" + }, "v1.VolumeMount": { "description": "VolumeMount describes a mounting of a Volume within a container.", "properties": { + "bindMountOptions": { + "description": "bindMountOptions is the list of additional bind mount options to apply when mounting this volume into the container. Allowed values are noexec, nodev, and nosuid. These are Linux mount options and have no effect on Windows nodes. This field is not supported with image volumes. This is an alpha field and requires enabling the VolumeBindMountOptions feature gate.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", + "description": "Path within the container at which the volume should be mounted.", "type": "string" }, "mountPropagation": { @@ -13284,7 +13776,7 @@ }, "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" }, "note": { "description": "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.", @@ -13351,7 +13843,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "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" } }, "required": [ @@ -13439,6 +13931,9 @@ "description": "`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" } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -13465,7 +13960,7 @@ "type": "string" }, "status": { - "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "description": "`status` is the status of the condition. Should be specified and set to one of True, False, Unknown.", "type": "string" }, "type": { @@ -13473,6 +13968,9 @@ "type": "string" } }, + "required": [ + "type" + ], "type": "object" }, "v1.FlowSchemaList": { @@ -13620,6 +14118,9 @@ "type": "integer" } }, + "required": [ + "limitResponse" + ], "type": "object" }, "v1.NonResourcePolicyRule": { @@ -13705,6 +14206,9 @@ "description": "`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" } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -13731,7 +14235,7 @@ "type": "string" }, "status": { - "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "description": "`status` is the status of the condition. Should be specified and set to one of True, False, Unknown.", "type": "string" }, "type": { @@ -13739,6 +14243,9 @@ "type": "string" } }, + "required": [ + "type" + ], "type": "object" }, "v1.PriorityLevelConfigurationList": { @@ -13972,47 +14479,8 @@ ], "type": "object" }, - "v1.HTTPIngressPath": { - "description": "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", - "properties": { - "backend": { - "$ref": "#/definitions/v1.IngressBackend", - "description": "backend defines the referenced service endpoint to which the traffic will be forwarded to." - }, - "path": { - "description": "path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value \"Exact\" or \"Prefix\".", - "type": "string" - }, - "pathType": { - "description": "pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.", - "type": "string" - } - }, - "required": [ - "pathType", - "backend" - ], - "type": "object" - }, - "v1.HTTPIngressRuleValue": { - "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 '#'.", - "properties": { - "paths": { - "description": "paths is a collection of paths that map requests to backends.", - "items": { - "$ref": "#/definitions/v1.HTTPIngressPath" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "paths" - ], - "type": "object" - }, - "v1.IPAddress": { - "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", + "v1alpha1.Eviction": { + "description": "Eviction initiates an eviction process, which should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod).\n\nThe evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. It manages the Eviction lifecycle. Requesters are preserved in .status.requesters even after they have withdrawn their request. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Once all EvictionRequest corresponding to this Eviction .spec.target have been removed, this Eviction object will eventually be garbage collected.\n\nIf the target is a pod, the .status.targetResponders is populated from Pod's .spec.evictionResponders.\n\nResponders should observe and communicate through the .status to help with the eviction of the target when they see their state == Active in .status.targetResponders. ResponderStatus struct should then be periodically updated to indicate the progress or completion of the eviction process by each responder in .status.responders. If .status.responders[].heartbeatTime is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority.\n\nIf there are no other responders and the target is a pod, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods//eviction subresource).", "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", @@ -14024,11 +14492,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 metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. .metadata.name set by the evictionrequest-controller is purely informative and subject to change. .spec.target field should be used to identify the target precisesly.\n\nThe requester and responder names will be used as label keys and added to the labels of the eviction in one of the following formats: 1. acme.io/foo: \"requester\" 2. acme.io/foo: \"responder\" 3. acme.io/foo: \"requester-responder\"\n\nPlease see EvictionParticipantRole for available role label values." }, "spec": { - "$ref": "#/definitions/v1.IPAddressSpec", - "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" + "$ref": "#/definitions/v1alpha1.EvictionSpec", + "description": "spec defines the eviction specification. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/v1alpha1.EvictionStatus", + "description": "status represents the most recently observed status of the eviction. Populated by responders and evictionrequest-controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, "required": [ @@ -14037,23 +14509,23 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } ] }, - "v1.IPAddressList": { - "description": "IPAddressList contains a list of IPAddress.", + "v1alpha1.EvictionList": { + "description": "EvictionList contains a list of Eviction 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 IPAddresses.", + "description": "items is the list of Evictions.", "items": { - "$ref": "#/definitions/v1.IPAddress" + "$ref": "#/definitions/v1alpha1.Eviction" }, "type": "array" }, @@ -14063,7 +14535,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "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 list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -14072,48 +14544,32 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "networking.k8s.io", - "kind": "IPAddressList", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionList", + "version": "v1alpha1" } ] }, - "v1.IPAddressSpec": { - "description": "IPAddressSpec describe the attributes in an IP Address.", - "properties": { - "parentRef": { - "$ref": "#/definitions/v1.ParentReference", - "description": "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." - } - }, - "required": [ - "parentRef" - ], - "type": "object" - }, - "v1.IPBlock": { - "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.", + "v1alpha1.EvictionPodReference": { + "description": "EvictionPodReference contains enough information to locate the referenced pod inside the same namespace.", "properties": { - "cidr": { - "description": "cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", + "name": { + "description": "name of the target. This field is required.", "type": "string" }, - "except": { - "description": "except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the cidr range", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "uid": { + "description": "uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required.", + "type": "string" } }, "required": [ - "cidr" + "name", + "uid" ], "type": "object" }, - "v1.Ingress": { - "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.", + "v1alpha1.EvictionRequest": { + "description": "EvictionRequest defines a request that should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod).\n\nThe evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions.\n - .spec.requester is set as a label on the Eviction for easier lookup.\n - Each target can have a set of responders assigned to it. Eviction objects are observed by\n these responders, who implement the eviction logic and update the Eviction's status with\n progress.\n\nThere is many-to-many relationship between EvictionRequests and Evictions in general. And many-to-one if the target is a pod.\n\nIf all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Deleting an EvictionRequest also counts as a withdrawal. Once all EvictionRequest of a target are removed, the corresponding Evictions are eventually garbage collected.", "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", @@ -14125,80 +14581,40 @@ }, "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 metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." }, "spec": { - "$ref": "#/definitions/v1.IngressSpec", - "description": "spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1alpha1.EvictionRequestSpec", + "description": "spec defines the eviction request specification. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, "status": { - "$ref": "#/definitions/v1.IngressStatus", - "description": "status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - ] - }, - "v1.IngressBackend": { - "description": "IngressBackend describes all endpoints for a given service and port.", - "properties": { - "resource": { - "$ref": "#/definitions/v1.TypedLocalObjectReference", - "description": "resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with \"Service\"." - }, - "service": { - "$ref": "#/definitions/v1.IngressServiceBackend", - "description": "service references a service as a backend. This is a mutually exclusive setting with \"Resource\"." - } - }, - "type": "object" - }, - "v1.IngressClass": { - "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.", - "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/v1.IngressClassSpec", - "description": "spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1alpha1.EvictionRequestStatus", + "description": "status represents the most recently observed status of the eviction request. 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": [ { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } ] }, - "v1.IngressClassList": { - "description": "IngressClassList is a collection of IngressClasses.", + "v1alpha1.EvictionRequestList": { + "description": "EvictionRequestList contains a list of EvictionRequests 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 IngressClasses.", + "description": "items is the list of EvictionRequests.", "items": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1alpha1.EvictionRequest" }, "type": "array" }, @@ -14208,7 +14624,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata." + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -14217,161 +14633,670 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "networking.k8s.io", - "kind": "IngressClassList", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequestList", + "version": "v1alpha1" } ] }, - "v1.IngressClassParametersReference": { - "description": "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", + "v1alpha1.EvictionRequestPodReference": { + "description": "EvictionRequestPodReference contains enough information to locate the referenced pod inside the same namespace.", "properties": { - "apiGroup": { - "description": "apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "kind is the type of resource being referenced.", - "type": "string" - }, "name": { - "description": "name is the name of resource being referenced.", - "type": "string" - }, - "namespace": { - "description": "namespace is the namespace of the resource being referenced. This field is required when scope is set to \"Namespace\" and must be unset when scope is set to \"Cluster\".", + "description": "name of the target. This field is required.", "type": "string" }, - "scope": { - "description": "scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\".", + "uid": { + "description": "uid of the target. It can be found in .metadata.uid of the target and is a lowercase UUID in 8-4-4-4-12 format. This field is required.", "type": "string" } }, "required": [ - "kind", - "name" + "name", + "uid" ], "type": "object" }, - "v1.IngressClassSpec": { - "description": "IngressClassSpec provides information about the class of an Ingress.", - "properties": { - "controller": { - "description": "controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable.", - "type": "string" - }, - "parameters": { - "$ref": "#/definitions/v1.IngressClassParametersReference", - "description": "parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters." - } - }, - "type": "object" - }, - "v1.IngressList": { - "description": "IngressList is a collection of Ingress.", + "v1alpha1.EvictionRequestSpec": { + "description": "EvictionRequestSpec is a specification of an EvictionRequest.", "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", + "intent": { + "description": "intent specifies the action that should be taken for the specified target.\n\n- Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target.\n If all requesters' intents are withdrawn for a common target, the eviction will be canceled.\n Cancellation consequences:\n - Inactive responders will never run.\n - Active responders are expected to cancel the eviction.\n - Completed or Interrupted responders should not take any action.", "type": "string" }, - "items": { - "description": "items is the list of Ingress.", - "items": { - "$ref": "#/definitions/v1.Ingress" - }, - "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", + "requester": { + "description": "requester allows you to identify the entity, that requested the eviction of the target.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). Domain names *.k8s.io and *.kubernetes.io are reserved. This field is required and immutable.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "target": { + "$ref": "#/definitions/v1alpha1.EvictionRequestTarget", + "description": "target contains a reference to an object (e.g. a pod) that should be evicted. This field is required and immutable." } }, "required": [ - "items" + "target", + "requester", + "intent" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "IngressList", - "version": "v1" - } - ] + "type": "object" }, - "v1.IngressLoadBalancerIngress": { - "description": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", + "v1alpha1.EvictionRequestStatus": { + "description": "EvictionRequestStatus represents the last observed status of the eviction request.", "properties": { - "hostname": { - "description": "hostname is set for load-balancer ingress points that are DNS based.", - "type": "string" - }, - "ip": { - "description": "ip is set for load-balancer ingress points that are IP based.", - "type": "string" - }, - "ports": { - "description": "ports provides information about the ports exposed by this LoadBalancer.", + "conditions": { + "description": "conditions contain information about the eviction request.\n\nEvictionRequest specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed\n by any eviction responder. This can happen if the request is canceled or if no responder\n managed to evict the target (e.g. terminate or delete a pod).\n- TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted).\n\nThese conditions can be reset if the eviction was unsuccessful and a new Eviction intent has been submitted.\n\nThe maximum length of the conditions list is 100.", "items": { - "$ref": "#/definitions/v1.IngressPortStatus" + "$ref": "#/definitions/v1.Condition" }, "type": "array", - "x-kubernetes-list-type": "atomic" + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "observedGeneration": { + "description": "observedGeneration is EvictionRequest's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller.", + "format": "int64", + "type": "integer" } }, "type": "object" }, - "v1.IngressLoadBalancerStatus": { - "description": "IngressLoadBalancerStatus represents the status of a load-balancer.", + "v1alpha1.EvictionRequestTarget": { + "description": "EvictionRequestTarget contains a reference to an object that should be evicted.", "properties": { - "ingress": { - "description": "ingress is a list containing ingress points for the load-balancer.", - "items": { - "$ref": "#/definitions/v1.IngressLoadBalancerIngress" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "pod": { + "$ref": "#/definitions/v1alpha1.EvictionRequestPodReference", + "description": "pod references a pod that is subject to eviction/termination. Pods that are part of a PodGroup (.spec.schedulingGroup is set) are not supported." } }, - "type": "object" + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "pod": "Pod" + } + } + ] }, - "v1.IngressPortStatus": { - "description": "IngressPortStatus represents the error condition of a service port", + "v1alpha1.EvictionSpec": { + "description": "EvictionSpec is a specification of an Eviction.", "properties": { - "error": { - "description": "error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", - "type": "string" - }, - "port": { - "description": "port is the port number of the ingress port.", - "format": "int32", - "type": "integer" - }, - "protocol": { - "description": "protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"", - "type": "string" + "target": { + "$ref": "#/definitions/v1alpha1.EvictionTarget", + "description": "target contains a reference to an object (e.g. a pod) that should be evicted. This field is required and immutable." } }, "required": [ - "port", - "protocol" + "target" ], "type": "object" }, - "v1.IngressRule": { - "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.", + "v1alpha1.EvictionStatus": { + "description": "EvictionStatus represents the last observed status of the eviction request.", "properties": { - "host": { - "description": "host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to\n the IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.\n\nhost can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.", - "type": "string" + "conditions": { + "description": "conditions contain information about the eviction request.\n\nEviction specific conditions are: TargetEvicted or Failed (managed by evictionrequest-controller). - Failed means that the eviction request is no longer being processed\n by any eviction responder. This can happen if the request is canceled or if no responder\n managed to evict the target (e.g. terminate or delete a pod).\n- TargetEvicted means that the target has been evicted (e.g. a pod has been terminated or deleted).\n\n\tThe maximum length of the conditions list is 100.", + "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" }, - "http": { - "$ref": "#/definitions/v1.HTTPIngressRuleValue" - } - }, + "observedGeneration": { + "description": "observedGeneration is Eviction's .metadata.generation observed by the evictionrequest-controller. The observed generation value cannot be negative and can only be incremented. The minimum value is 1. This field is managed by evictionrequest-controller.", + "format": "int64", + "type": "integer" + }, + "requesters": { + "description": "requesters allow you to identify the entities, that requested the eviction of the target. If all the requesters withdraw their eviction intent, the eviction will be canceled.\n\nThe maximum length of the requesters list is 100. If this limit is exceeded, requesters with Withdrawn intent should be dropped first.", + "items": { + "$ref": "#/definitions/v1alpha1.Requester" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "responders": { + "description": "responders represents the eviction process status of each declared responder.\n\nThe responder list should be the same length and have the same .name fields as .status.targetResponders. Only responders with .name that have Active state in .targetResponders[].state should be updated and can be mutated. First initialization of the list is allowed.\n\nEach ResponderStatus is initialized by evictionrequest-controller and then managed by the designated responder.", + "items": { + "$ref": "#/definitions/v1alpha1.ResponderStatus" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "targetResponders": { + "description": "targetResponders reference responders that should eventually respond to this eviction to help with the graceful eviction of a target. These responders are selected sequentially, according to their specified priority by setting the Active state to the TargetResponder .state field. The maximum number of active responders allowed is 1. Eventually each responder can end up in an Interrupted, Canceled or, Completed state. Responders should observe these states in order to navigate their lifecycle.\n\nIf the target is a pod, the field is populated from Pod's .spec.evictionResponders. Default responders may be added to the list according to the target.\n\nDefault responders: - imperative-eviction.k8s.io/evictor responder with a priority of 100 is added to the list if the\n target is a pod. It will call the imperative Eviction API (pods//eviction subresource).\n This call may not succeed due to PodDisruptionBudgets, which may block the pod termination.\n It will update the responder message and try again with a backoff.\n\nThe maximum length of the responders list is 11. The length and keys of the list cannot change once set. This field is managed by evictionrequest-controller.", + "items": { + "$ref": "#/definitions/v1alpha1.TargetResponder" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "v1alpha1.EvictionTarget": { + "description": "EvictionTarget contains a reference to an object that should be evicted.", + "properties": { + "pod": { + "$ref": "#/definitions/v1alpha1.EvictionPodReference", + "description": "pod references a pod that is subject to eviction/termination. Pods that are part of a PodGroup (.spec.schedulingGroup is set) are not supported." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "pod": "Pod" + } + } + ] + }, + "v1alpha1.Requester": { + "description": "Requester allows you to identify the entity, that requested the eviction of the target.", + "properties": { + "intent": { + "description": "intent specifies the action that should be taken for the specified target.\n\n- Eviction means that the requester is interested in the eviction of the target. - Withdrawn means that the requester is no longer interested in the eviction of the target.\n If all requesters' intents are withdrawn, the eviction will be canceled.\n Cancellation consequences:\n - Inactive responders will never run.\n - Active responders are expected to cancel the eviction.\n - Completed or Interrupted responders should not take any action.", + "type": "string" + }, + "name": { + "description": "name allows you to identify the entity, that requested the eviction of the target.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each requester. This field is required.", + "type": "string" + } + }, + "required": [ + "name", + "intent" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1alpha1.ResponderStatus": { + "description": "ResponderStatus represents the last observed status of the eviction process of the responder. It should be only updated by the designated responder whose name is .name field.", + "properties": { + "completionTime": { + "description": "completionTime tracks the time at which the Responder stopped processing the eviction request. Completion means that the responders has either fully or partially completed the eviction process, which may have resulted in target eviction (e.g. pod termination). It should reflect the present time when set. This field becomes immutable once set.", + "format": "date-time", + "type": "string" + }, + "expectedCompletionTime": { + "description": "expectedCompletionTime is the time at which the eviction process step is expected to end for the responder. The time cannot be set to the past. May be omitted if no estimate can be made.", + "format": "date-time", + "type": "string" + }, + "heartbeatTime": { + "description": "heartbeatTime is the last time at which the eviction process was reported to be in progress by the responder. It should reflect the present time when set. Responders should avoid heartbeats more frequent than 20 seconds to avoid overloading the control-plane.", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "message provides human-readable details about the state of the responder and the eviction process. Maximum length is 4000 characters.", + "type": "string" + }, + "name": { + "description": "name allows you to identify the responder reacting to the Eviction.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field is initialized by Kubernetes and must be unique for each responder. This field is required.", + "type": "string" + }, + "startTime": { + "description": "startTime tracks the time at which this responder was designated as active and should start processing the eviction request. It should reflect the present time when set. This field is initialized by Kubernetes when this responder becomes active. This field becomes immutable once set.", + "format": "date-time", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object", + "x-kubernetes-map-type": "granular" + }, + "v1alpha1.TargetResponder": { + "description": "TargetResponder allows you to specify the responder reacting to the Eviction. Responders should observe and communicate through the Eviction API (see .state) to help with the graceful eviction of a target (e.g. termination of a pod).", + "properties": { + "name": { + "description": "name allows you to identify the responder reacting to the Eviction.\n\nIt must be a valid domain-prefixed key (such as \"acme.io/foo\"). This field must be unique for each responder. This field is required.", + "type": "string" + }, + "priority": { + "description": "priority for this responder. Higher priorities are selected first by the evictionrequest-controller. If there are responders with the same priority, the responder whose domain name comes first in the alphabetical higher domain order, will be picked. This means that the top domain labels are compared alphabetically first, followed by the lower domain labels. The key is compared last.\n\nThe responder that is the managing controller of the pod should set the value of this field to 10000 to allow both for preemption or fallback registration by other responders.\n\nThe minimum value is 0 and the maximum value is 100000. The interval 0-999 is reserved for responders with *.k8s.io suffix. This field is required and immutable.", + "format": "int32", + "type": "integer" + }, + "state": { + "description": "state specifies a state that is assigned by the evictionrequest-controller. Responders should observe this state in order to navigate their lifecycle. - Inactive means that the responder should not yet process this eviction request. - Active means that the responder is either running or expected to start soon.\n Also, startTime has been set in the ResponderStatus by the evictionrequest-controller.\n\n An active responder should currently interact with the eviction process by updating\n .status.responders, where .name is the active responder name. ResponderStatus fields\n should be periodically updated to indicate the progress or completion of the eviction process.\n If .status.responders[].heartbeatTime field is not updated within the heartbeat deadline defined\n by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder\n\t with a lower priority. Only one responder can be active at a time.\n- Interrupted means that the responder has failed to start or failed to update\n heartbeatTime in ResponderStatus in a timely manner.\n- Canceled means that the responder has been canceled. In other words, there\tis no\n EvictionRequest with the same target and Eviction intent in .spec.intent.\n- Completed means that the responder has successfully completed and set completionTime\n in ResponderStatus.\n\nPlease refer to the ResponderStatus in .status.responders for more details on each responder.", + "type": "string" + } + }, + "required": [ + "name", + "priority", + "state" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1.HTTPIngressPath": { + "description": "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", + "properties": { + "backend": { + "$ref": "#/definitions/v1.IngressBackend", + "description": "backend defines the referenced service endpoint to which the traffic will be forwarded to." + }, + "path": { + "description": "path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value \"Exact\" or \"Prefix\".", + "type": "string" + }, + "pathType": { + "description": "pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.", + "type": "string" + } + }, + "required": [ + "pathType", + "backend" + ], + "type": "object" + }, + "v1.HTTPIngressRuleValue": { + "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 '#'.", + "properties": { + "paths": { + "description": "paths is a collection of paths that map requests to backends.", + "items": { + "$ref": "#/definitions/v1.HTTPIngressPath" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "paths" + ], + "type": "object" + }, + "v1.IPAddress": { + "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", + "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.IPAddressSpec", + "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": [ + { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1" + } + ] + }, + "v1.IPAddressList": { + "description": "IPAddressList contains a list of IPAddress.", + "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 IPAddresses.", + "items": { + "$ref": "#/definitions/v1.IPAddress" + }, + "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 object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IPAddressList", + "version": "v1" + } + ] + }, + "v1.IPAddressSpec": { + "description": "IPAddressSpec describe the attributes in an IP Address.", + "properties": { + "parentRef": { + "$ref": "#/definitions/v1.ParentReference", + "description": "parentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." + } + }, + "required": [ + "parentRef" + ], + "type": "object" + }, + "v1.IPBlock": { + "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.", + "properties": { + "cidr": { + "description": "cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", + "type": "string" + }, + "except": { + "description": "except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the cidr range", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "cidr" + ], + "type": "object" + }, + "v1.Ingress": { + "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.", + "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.IngressSpec", + "description": "spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/v1.IngressStatus", + "description": "status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + ] + }, + "v1.IngressBackend": { + "description": "IngressBackend describes all endpoints for a given service and port.", + "properties": { + "resource": { + "$ref": "#/definitions/v1.TypedLocalObjectReference", + "description": "resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with \"Service\"." + }, + "service": { + "$ref": "#/definitions/v1.IngressServiceBackend", + "description": "service references a service as a backend. This is a mutually exclusive setting with \"Resource\"." + } + }, + "type": "object" + }, + "v1.IngressClass": { + "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.", + "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.IngressClassSpec", + "description": "spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" + } + ] + }, + "v1.IngressClassList": { + "description": "IngressClassList is a collection of IngressClasses.", + "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 IngressClasses.", + "items": { + "$ref": "#/definitions/v1.IngressClass" + }, + "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": "networking.k8s.io", + "kind": "IngressClassList", + "version": "v1" + } + ] + }, + "v1.IngressClassParametersReference": { + "description": "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", + "properties": { + "apiGroup": { + "description": "apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": "string" + }, + "kind": { + "description": "kind is the type of resource being referenced.", + "type": "string" + }, + "name": { + "description": "name is the name of resource being referenced.", + "type": "string" + }, + "namespace": { + "description": "namespace is the namespace of the resource being referenced. This field is required when scope is set to \"Namespace\" and must be unset when scope is set to \"Cluster\".", + "type": "string" + }, + "scope": { + "description": "scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\".", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, + "v1.IngressClassSpec": { + "description": "IngressClassSpec provides information about the class of an Ingress.", + "properties": { + "controller": { + "description": "controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable.", + "type": "string" + }, + "parameters": { + "$ref": "#/definitions/v1.IngressClassParametersReference", + "description": "parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters." + } + }, + "type": "object" + }, + "v1.IngressList": { + "description": "IngressList is a collection of Ingress.", + "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 Ingress.", + "items": { + "$ref": "#/definitions/v1.Ingress" + }, + "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 object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressList", + "version": "v1" + } + ] + }, + "v1.IngressLoadBalancerIngress": { + "description": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", + "properties": { + "hostname": { + "description": "hostname is set for load-balancer ingress points that are DNS based.", + "type": "string" + }, + "ip": { + "description": "ip is set for load-balancer ingress points that are IP based.", + "type": "string" + }, + "ports": { + "description": "ports provides information about the ports exposed by this LoadBalancer.", + "items": { + "$ref": "#/definitions/v1.IngressPortStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.IngressLoadBalancerStatus": { + "description": "IngressLoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "description": "ingress is a list containing ingress points for the load-balancer.", + "items": { + "$ref": "#/definitions/v1.IngressLoadBalancerIngress" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.IngressPortStatus": { + "description": "IngressPortStatus represents the error condition of a service port", + "properties": { + "error": { + "description": "error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", + "type": "string" + }, + "port": { + "description": "port is the port number of the ingress port.", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"", + "type": "string" + } + }, + "required": [ + "port", + "protocol" + ], + "type": "object" + }, + "v1.IngressRule": { + "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.", + "properties": { + "host": { + "description": "host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to\n the IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.\n\nhost can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.", + "type": "string" + }, + "http": { + "$ref": "#/definitions/v1.HTTPIngressRuleValue", + "description": "http is a HTTP IngressRuleValue, which contains a list of http selectors" + } + }, "type": "object" }, "v1.IngressServiceBackend": { @@ -14462,7 +15387,7 @@ }, "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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/v1.NetworkPolicySpec", @@ -14633,19 +15558,19 @@ "description": "ParentReference describes a reference to a parent object.", "properties": { "group": { - "description": "Group is the group of the object being referenced.", + "description": "group is the group of the object being referenced.", "type": "string" }, "name": { - "description": "Name is the name of the object being referenced.", + "description": "name is the name of the object being referenced.", "type": "string" }, "namespace": { - "description": "Namespace is the namespace of the object being referenced.", + "description": "namespace is the namespace of the object being referenced.", "type": "string" }, "resource": { - "description": "Resource is the resource of the object being referenced.", + "description": "resource is the resource of the object being referenced.", "type": "string" } }, @@ -14684,7 +15609,7 @@ }, "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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/v1.ServiceCIDRSpec", @@ -14743,7 +15668,7 @@ "description": "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", "properties": { "cidrs": { - "description": "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", + "description": "cidrs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", "items": { "type": "string" }, @@ -14772,215 +15697,8 @@ }, "type": "object" }, - "v1beta1.IPAddress": { - "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", - "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/v1beta1.IPAddressSpec", - "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": [ - { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" - } - ] - }, - "v1beta1.IPAddressList": { - "description": "IPAddressList contains a list of IPAddress.", - "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 IPAddresses.", - "items": { - "$ref": "#/definitions/v1beta1.IPAddress" - }, - "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 object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "IPAddressList", - "version": "v1beta1" - } - ] - }, - "v1beta1.IPAddressSpec": { - "description": "IPAddressSpec describe the attributes in an IP Address.", - "properties": { - "parentRef": { - "$ref": "#/definitions/v1beta1.ParentReference", - "description": "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." - } - }, - "required": [ - "parentRef" - ], - "type": "object" - }, - "v1beta1.ParentReference": { - "description": "ParentReference describes a reference to a parent object.", - "properties": { - "group": { - "description": "Group is the group of the object being referenced.", - "type": "string" - }, - "name": { - "description": "Name is the name of the object being referenced.", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of the object being referenced.", - "type": "string" - }, - "resource": { - "description": "Resource is the resource of the object being referenced.", - "type": "string" - } - }, - "required": [ - "resource", - "name" - ], - "type": "object" - }, - "v1beta1.ServiceCIDR": { - "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.", - "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/v1beta1.ServiceCIDRSpec", - "description": "spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/v1beta1.ServiceCIDRStatus", - "description": "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" - } - ] - }, - "v1beta1.ServiceCIDRList": { - "description": "ServiceCIDRList contains a list of ServiceCIDR 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", - "type": "string" - }, - "items": { - "description": "items is the list of ServiceCIDRs.", - "items": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" - }, - "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 object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "ServiceCIDRList", - "version": "v1beta1" - } - ] - }, - "v1beta1.ServiceCIDRSpec": { - "description": "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", - "properties": { - "cidrs": { - "description": "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "v1beta1.ServiceCIDRStatus": { - "description": "ServiceCIDRStatus describes the current state of the ServiceCIDR.", - "properties": { - "conditions": { - "description": "conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state", - "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" - }, - "v1.Overhead": { - "description": "Overhead structure represents the resource overhead associated with running a pod.", + "v1.Overhead": { + "description": "Overhead structure represents the resource overhead associated with running a pod.", "properties": { "podFixed": { "additionalProperties": { @@ -15010,7 +15728,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "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" }, "overhead": { "$ref": "#/definitions/v1.Overhead", @@ -15099,7 +15817,7 @@ }, "deleteOptions": { "$ref": "#/definitions/v1.DeleteOptions", - "description": "DeleteOptions may be provided" + "description": "deleteOptions may be provided" }, "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", @@ -15107,7 +15825,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "ObjectMeta describes the pod that is being evicted." + "description": "metadata describes the pod that is being evicted." } }, "type": "object", @@ -15132,15 +15850,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.PodDisruptionBudgetSpec", - "description": "Specification of the desired behavior of the PodDisruptionBudget." + "description": "spec is the specification of the desired behavior of the PodDisruptionBudget." }, "status": { "$ref": "#/definitions/v1.PodDisruptionBudgetStatus", - "description": "Most recently observed status of the PodDisruptionBudget." + "description": "status is the most recently observed status of the PodDisruptionBudget." } }, "type": "object", @@ -15191,22 +15909,22 @@ "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", "properties": { "maxUnavailable": { - "description": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\".", + "description": "maxUnavailable indicates that an eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\".", "format": "int-or-string", "type": "object" }, "minAvailable": { - "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\".", + "description": "minAvailable indicates that an eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\".", "format": "int-or-string", "type": "object" }, "selector": { "$ref": "#/definitions/v1.LabelSelector", - "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", + "description": "selector is a label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", "x-kubernetes-patch-strategy": "replace" }, "unhealthyPodEvictionPolicy": { - "description": "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.", + "description": "unhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.", "type": "string" } }, @@ -15269,7 +15987,7 @@ "description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", "properties": { "clusterRoleSelectors": { - "description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added", + "description": "clusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added", "items": { "$ref": "#/definitions/v1.LabelSelector" }, @@ -15284,7 +16002,7 @@ "properties": { "aggregationRule": { "$ref": "#/definitions/v1.AggregationRule", - "description": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." + "description": "aggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." }, "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", @@ -15296,10 +16014,10 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." + "description": "metadata is the standard object's metadata." }, "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", + "description": "rules holds all the PolicyRules for this ClusterRole", "items": { "$ref": "#/definitions/v1.PolicyRule" }, @@ -15329,14 +16047,14 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." + "description": "metadata is the standard object's metadata." }, "roleRef": { "$ref": "#/definitions/v1.RoleRef", - "description": "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." + "description": "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." }, "subjects": { - "description": "Subjects holds references to the objects the role applies to.", + "description": "subjects holds references to the objects the role applies to.", "items": { "$ref": "#/definitions/rbac.v1.Subject" }, @@ -15430,7 +16148,7 @@ "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.", "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. \"\" represents the core API group and \"*\" represents all API groups.", + "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. \"\" represents the core API group and \"*\" represents all API groups.", "items": { "type": "string" }, @@ -15438,7 +16156,7 @@ "x-kubernetes-list-type": "atomic" }, "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 Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", + "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 Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", "items": { "type": "string" }, @@ -15446,7 +16164,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" }, @@ -15454,7 +16172,7 @@ "x-kubernetes-list-type": "atomic" }, "resources": { - "description": "Resources is a list of resources this rule applies to. '*' represents all resources.", + "description": "resources is a list of resources this rule applies to. '*' represents all resources.", "items": { "type": "string" }, @@ -15462,7 +16180,7 @@ "x-kubernetes-list-type": "atomic" }, "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.", + "description": "verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.", "items": { "type": "string" }, @@ -15488,10 +16206,10 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." + "description": "metadata is the standard object's metadata." }, "rules": { - "description": "Rules holds all the PolicyRules for this Role", + "description": "rules holds all the PolicyRules for this Role", "items": { "$ref": "#/definitions/v1.PolicyRule" }, @@ -15521,14 +16239,14 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." + "description": "metadata is the standard object's metadata." }, "roleRef": { "$ref": "#/definitions/v1.RoleRef", - "description": "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." + "description": "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." }, "subjects": { - "description": "Subjects holds references to the objects the role applies to.", + "description": "subjects holds references to the objects the role applies to.", "items": { "$ref": "#/definitions/rbac.v1.Subject" }, @@ -15622,15 +16340,15 @@ "description": "RoleRef contains information that points to the role being used", "properties": { "apiGroup": { - "description": "APIGroup is the group for the resource being referenced", + "description": "apiGroup is the group for the resource being referenced", "type": "string" }, "kind": { - "description": "Kind is the type of resource being referenced", + "description": "kind is the type of resource being referenced", "type": "string" }, "name": { - "description": "Name is the name of resource being referenced", + "description": "name is the name of resource being referenced", "type": "string" } }, @@ -15645,19 +16363,19 @@ "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.", "properties": { "apiGroup": { - "description": "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.", + "description": "apiGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.", "type": "string" }, "kind": { - "description": "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.", + "description": "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.", "type": "string" }, "name": { - "description": "Name of the object being referenced.", + "description": "name of the object being referenced.", "type": "string" }, "namespace": { - "description": "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.", + "description": "namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.", "type": "string" } }, @@ -15737,7 +16455,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\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.", + "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\nCommon errors: - \"no such key\": Use optional chaining (.? followed by orValue())\n or guarding the check with has() for optional fields.\n See CEL Optional Types for details:\n https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes\n\nFor more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/\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" } }, @@ -15770,7 +16488,7 @@ "type": "object" }, "v1.CapacityRequestPolicyRange": { - "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", + "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\nIf the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value().\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", "properties": { "max": { "description": "Max defines the upper limit for capacity that can be requested.\n\nMax must be less than or equal to the capacity value. Min and requestPolicy.default must be less than or equal to the maximum.", @@ -15895,11 +16613,11 @@ "description": "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.", "type": "string" }, - "nodeAllocatableResourceMappings": { + "nodeAllocatableResources": { "additionalProperties": { - "$ref": "#/definitions/v1.NodeAllocatableResourceMapping" + "$ref": "#/definitions/v1.NodeAllocatableResource" }, - "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.", + "description": "NodeAllocatableResources 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": { @@ -16112,9 +16830,6 @@ "description": "Spec defines what can be allocated and how to configure it.\n\nThis 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.\n\nChanging the spec automatically increments the metadata.generation number." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -16181,7 +16896,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 a beta 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.", "type": "string" }, "selectors": { @@ -16220,6 +16935,14 @@ "v1.DeviceCounterConsumption": { "description": "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.", "properties": { + "compatibilityGroups": { + "description": "CompatibilityGroups is a list of opaque group names for this counter set consumption.\n\nDevices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field.\n\nAn unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups.\n\nGroup names are opaque and meaningful only within the publishing driver's pool.\n\nThe maximum number of groups is 2, and the names must be unique.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "counterSet": { "description": "CounterSet is the name of the set from which the counters defined will be consumed.", "type": "string" @@ -16238,6 +16961,24 @@ ], "type": "object" }, + "v1.DeviceDerivedAttribute": { + "description": "DeviceDerivedAttribute defines a derived attribute computed via CEL.", + "properties": { + "expression": { + "description": "Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail.\n\nThe expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector.\n\nWhen pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors.\n\nThe expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks).\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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.", + "type": "string" + }, + "name": { + "description": "Name is the identifier for this derived attribute, used in constraints.\n\nIt must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\").\n\nIf the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\").\n\nIt is not valid to define a derived attribute that isn't used in at least one constraint.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": "object" + }, "v1.DeviceRequest": { "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.", "properties": { @@ -16314,6 +17055,14 @@ "description": "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.", "type": "string" }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, "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 a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { @@ -16357,6 +17106,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/v1.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.\n\nA class is required. Which classes are available depends on the cluster.\n\nAdministrators 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.", "type": "string" @@ -16415,6 +17172,131 @@ ], "type": "object" }, + "v1.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/v1.DeviceTaintRuleSpec", + "description": "Spec specifies the selector and one taint.\n\nChanging the spec automatically increments the metadata.generation number." + }, + "status": { + "$ref": "#/definitions/v1.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": "v1" + } + ] + }, + "v1.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/v1.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": "v1" + } + ] + }, + "v1.DeviceTaintRuleSpec": { + "description": "DeviceTaintRuleSpec specifies the selector and one taint.", + "properties": { + "deviceSelector": { + "$ref": "#/definitions/v1.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/v1.DeviceTaint", + "description": "The taint that gets applied to matching devices." + } + }, + "required": [ + "taint" + ], + "type": "object" + }, + "v1.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" + }, + "v1.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" + }, "v1.DeviceToleration": { "description": "The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator .", "properties": { @@ -16462,6 +17344,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/v1.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.\n\nA DeviceClassName is required.\n\nAdministrators 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.", "type": "string" @@ -16510,16 +17400,48 @@ }, "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.", + "v1.NodeAllocatableMapping": { + "description": "NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.", "properties": { - "allocationMultiplier": { - "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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.", "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\".", + "capacityMultiplier": { + "description": "CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16.", + "type": "string" + }, + "deviceMultiplier": { + "description": "DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set.", + "type": "string" + } + }, + "type": "object" + }, + "v1.NodeAllocatableOverhead": { + "description": "NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers.", + "properties": { + "perContainer": { + "description": "PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once.", "type": "string" + }, + "perPod": { + "description": "PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim.", + "type": "string" + } + }, + "type": "object" + }, + "v1.NodeAllocatableResource": { + "description": "NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration.", + "properties": { + "mapping": { + "$ref": "#/definitions/v1.NodeAllocatableMapping", + "description": "Mapping is used when the device directly models a node allocatable resource like standard CPU or memory (e.g., with a CPU DRA driver). The calculated quantity is accounted for exactly once per claim instance on the node. To prevent node cgroup isolation friction, the scheduler explicitly blocks sharing mapped device claims across multiple pods." + }, + "overhead": { + "$ref": "#/definitions/v1.NodeAllocatableOverhead", + "description": "Overhead contains fields for modeling auxiliary overhead incurred on node allocatable resources when allocating devices that are not themselves modeling a node allocatable resource (e.g., host memory overhead for GPUs). Sharing overhead-mapped claims across multiple pods is allowed. The node allocatable overhead is accounted for individually for each pod referencing the claim. Overhead is always subtracted from the node's allocatable capacity for the resource, even when mapping is specified for the same resource. Eg: If a device models memory capacity per socket as a consumable capacity pool via Mapping (with CapacityKey), any overhead specified for the same resource will be subtracted from the node's general allocatable capacity and not from the per-socket capacity pool in Mapping." } }, "type": "object" @@ -16566,9 +17488,6 @@ "description": "Status describes whether the claim is ready to use and what has been allocated." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -16707,9 +17626,6 @@ "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -16766,9 +17682,6 @@ "description": "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." } }, - "required": [ - "spec" - ], "type": "object" }, "v1.ResourcePool": { @@ -16780,7 +17693,7 @@ "type": "integer" }, "name": { - "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", + "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", "type": "string" }, "resourceSliceCount": { @@ -16890,6 +17803,10 @@ "$ref": "#/definitions/v1.NodeSelector", "description": "NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.\n\nMust use exactly one term.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set." }, + "partitionTypeAttribute": { + "description": "PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU.\n\nWhen set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.", + "type": "string" + }, "perDeviceNodeSelection": { "description": "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.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.", "type": "boolean" @@ -16905,6 +17822,14 @@ }, "type": "array", "x-kubernetes-list-type": "atomic" + }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are:\n\n- \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This\n value cannot be specified unless \"NodeUnprepareResources\" is also listed\n (or \"*\" is specified).\n- \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped.\n\nOther values may be added in the future. The kubelet must ignore unknown values.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" } }, "required": [ @@ -17065,6 +17990,36 @@ }, "type": "object" }, + "v1alpha3.PartitionTypeStatus": { + "description": "PartitionTypeStatus reports allocatability for a single partition type, identified by the value of a grouping attribute.", + "properties": { + "allocatable": { + "description": "Allocatable is the number of additional devices of this partition type that could still be allocated given current shared-counter consumption.", + "format": "int32", + "type": "integer" + }, + "attribute": { + "description": "Attribute is the fully qualified name of the device attribute whose value groups this entry. It is the PartitionTypeAttribute declared by the devices' own slice, or the default named in the request when their slice declares none.", + "type": "string" + }, + "total": { + "description": "Total is the number of devices of this partition type in the pool.", + "format": "int32", + "type": "integer" + }, + "type": { + "description": "Type is the partition type value (e.g. \"Full\" or \"Half\").", + "type": "string" + } + }, + "required": [ + "attribute", + "type", + "total", + "allocatable" + ], + "type": "object" + }, "v1alpha3.PoolStatus": { "description": "PoolStatus contains status information for a single resource pool.", "properties": { @@ -17091,6 +18046,14 @@ "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" }, + "partitionSummary": { + "description": "PartitionSummary reports allocatability per (attribute, partition type) for a partitionable pool that publishes SharedCounters. Each entry names the grouping attribute it was resolved from: the PartitionTypeAttribute declared by a device's own slice, or for devices whose slice declares none, the default named in the request. A pool that mixes partitions declared under different attributes reports each independently. When no slice declares an attribute and the request names no default, the pool reports no partition summary.", + "items": { + "$ref": "#/definitions/v1alpha3.PartitionTypeStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "poolName": { "description": "PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by \"/\").", "type": "string" @@ -17100,6 +18063,10 @@ "format": "int32", "type": "integer" }, + "shareableSummary": { + "$ref": "#/definitions/v1alpha3.ShareableSummaryStatus", + "description": "ShareableSummary reports aggregate capacity for a pool that contains devices with AllowMultipleAllocations. It is populated only when at least one device in the pool is shareable." + }, "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", @@ -17197,6 +18164,10 @@ "v1alpha3.ResourcePoolStatusRequestSpec": { "description": "ResourcePoolStatusRequestSpec defines the filters for the pool status request.", "properties": { + "defaultPartitionTypeAttribute": { + "description": "DefaultPartitionTypeAttribute optionally names a device attribute (by its fully qualified name, e.g. \"gpu.example.com/profile\") to use as the default grouping attribute for partitionable devices whose slice has not declared one themselves.\n\nA slice's own PartitionTypeAttribute always takes precedence. This default applies only to devices whose slice does not declare one, so that a request can still get an accurate partitionSummary from a driver that has not been updated to declare it. When neither the slice nor this default names an attribute, a partitionable pool reports no partitionSummary.\n\nMust include the domain qualifier.", + "type": "string" + }, "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" @@ -17251,6 +18222,62 @@ ], "type": "object" }, + "v1alpha3.ShareableCapacityStatus": { + "description": "ShareableCapacityStatus reports aggregate amounts for a single shareable capacity key.", + "properties": { + "available": { + "description": "Available is Total minus Consumed, never negative.", + "type": "string" + }, + "consumed": { + "description": "Consumed is the amount drawn by current allocations.", + "type": "string" + }, + "name": { + "description": "Name is the capacity name.", + "type": "string" + }, + "total": { + "description": "Total is the sum of this capacity across shareable devices in the pool.", + "type": "string" + } + }, + "required": [ + "name", + "total", + "consumed", + "available" + ], + "type": "object" + }, + "v1alpha3.ShareableSummaryStatus": { + "description": "ShareableSummaryStatus reports aggregate capacity for a pool that contains devices with AllowMultipleAllocations.", + "properties": { + "capacity": { + "description": "Capacity reports aggregate total, consumed, and available amounts per shareable capacity key across the pool.", + "items": { + "$ref": "#/definitions/v1alpha3.ShareableCapacityStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "fullyAvailableDevices": { + "description": "FullyAvailableDevices is the number of shareable devices with no capacity consumed.", + "format": "int32", + "type": "integer" + }, + "partiallyAvailableDevices": { + "description": "PartiallyAvailableDevices is the number of shareable devices with some but not all capacity consumed.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "fullyAvailableDevices", + "partiallyAvailableDevices" + ], + "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": { @@ -17369,11 +18396,11 @@ "type": "array", "x-kubernetes-list-type": "atomic" }, - "nodeAllocatableResourceMappings": { + "nodeAllocatableResources": { "additionalProperties": { - "$ref": "#/definitions/v1beta1.NodeAllocatableResourceMapping" + "$ref": "#/definitions/v1beta1.NodeAllocatableResource" }, - "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.", + "description": "NodeAllocatableResources 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": { @@ -17399,7 +18426,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\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.", + "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\nCommon errors: - \"no such key\": Use optional chaining (.? followed by orValue())\n or guarding the check with has() for optional fields.\n See CEL Optional Types for details:\n https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes\n\nFor more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/\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" } }, @@ -17432,7 +18459,7 @@ "type": "object" }, "v1beta1.CapacityRequestPolicyRange": { - "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", + "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\nIf the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value().\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", "properties": { "max": { "description": "Max defines the upper limit for capacity that can be requested.\n\nMax must be less than or equal to the capacity value. Min and requestPolicy.default must be less than or equal to the maximum.", @@ -17705,9 +18732,6 @@ "description": "Spec defines what can be allocated and how to configure it.\n\nThis 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.\n\nChanging the spec automatically increments the metadata.generation number." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -17774,7 +18798,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 a beta 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.", "type": "string" }, "selectors": { @@ -17813,6 +18837,14 @@ "v1beta1.DeviceCounterConsumption": { "description": "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.", "properties": { + "compatibilityGroups": { + "description": "CompatibilityGroups is a list of opaque group names for this counter set consumption.\n\nDevices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field.\n\nAn unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups.\n\nGroup names are opaque and meaningful only within the publishing driver's pool.\n\nThe maximum number of groups is 2, and the names must be unique.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "counterSet": { "description": "CounterSet is the name of the set from which the counters defined will be consumed.", "type": "string" @@ -17831,6 +18863,24 @@ ], "type": "object" }, + "v1beta1.DeviceDerivedAttribute": { + "description": "DeviceDerivedAttribute defines a derived attribute computed via CEL.", + "properties": { + "expression": { + "description": "Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail.\n\nThe expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector.\n\nWhen pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors.\n\nThe expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks).\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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.", + "type": "string" + }, + "name": { + "description": "Name is the identifier for this derived attribute, used in constraints.\n\nIt must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\").\n\nIf the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\").\n\nIt is not valid to define a derived attribute that isn't used in at least one constraint.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": "object" + }, "v1beta1.DeviceRequest": { "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.", "properties": { @@ -17851,6 +18901,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/v1beta1.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.\n\nA class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster.\n\nAdministrators 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.", "type": "string" @@ -17940,6 +18998,14 @@ "description": "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.", "type": "string" }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, "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 a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { @@ -17983,6 +19049,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/v1beta1.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.\n\nA class is required. Which classes are available depends on the cluster.\n\nAdministrators 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.", "type": "string" @@ -18090,16 +19164,48 @@ }, "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.", + "v1beta1.NodeAllocatableMapping": { + "description": "NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices or the specific capacity consumed. These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.", "properties": { - "allocationMultiplier": { - "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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.", "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\".", + "capacityMultiplier": { + "description": "CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16.", "type": "string" + }, + "deviceMultiplier": { + "description": "DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set.", + "type": "string" + } + }, + "type": "object" + }, + "v1beta1.NodeAllocatableOverhead": { + "description": "NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers.", + "properties": { + "perContainer": { + "description": "PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once.", + "type": "string" + }, + "perPod": { + "description": "PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim.", + "type": "string" + } + }, + "type": "object" + }, + "v1beta1.NodeAllocatableResource": { + "description": "NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration.", + "properties": { + "mapping": { + "$ref": "#/definitions/v1beta1.NodeAllocatableMapping", + "description": "Mapping is used when the device directly models a node allocatable resource like standard CPU or memory (e.g., with a CPU DRA driver). The calculated quantity is accounted for exactly once per claim instance on the node. To prevent node cgroup isolation friction, the scheduler explicitly blocks sharing mapped device claims across multiple pods." + }, + "overhead": { + "$ref": "#/definitions/v1beta1.NodeAllocatableOverhead", + "description": "Overhead contains fields for modeling auxiliary overhead incurred on node allocatable resources when allocating devices that are not themselves modeling a node allocatable resource (e.g., host memory overhead for GPUs). Sharing overhead-mapped claims across multiple pods is allowed. The node allocatable overhead is accounted for individually for each pod referencing the claim. Overhead is always subtracted from the node's allocatable capacity for the resource, even when mapping is specified for the same resource. Eg: If a device models memory capacity per socket as a consumable capacity pool via Mapping (with CapacityKey), any overhead specified for the same resource will be subtracted from the node's general allocatable capacity and not from the per-socket capacity pool in Mapping." } }, "type": "object" @@ -18146,9 +19252,6 @@ "description": "Status describes whether the claim is ready to use and what has been allocated." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -18287,9 +19390,6 @@ "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -18346,9 +19446,6 @@ "description": "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." } }, - "required": [ - "spec" - ], "type": "object" }, "v1beta1.ResourcePool": { @@ -18360,7 +19457,7 @@ "type": "integer" }, "name": { - "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", + "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", "type": "string" }, "resourceSliceCount": { @@ -18470,6 +19567,10 @@ "$ref": "#/definitions/v1.NodeSelector", "description": "NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.\n\nMust use exactly one term.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set." }, + "partitionTypeAttribute": { + "description": "PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU.\n\nWhen set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.", + "type": "string" + }, "perDeviceNodeSelection": { "description": "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.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.", "type": "boolean" @@ -18485,6 +19586,14 @@ }, "type": "array", "x-kubernetes-list-type": "atomic" + }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are:\n\n- \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This\n value cannot be specified unless \"NodeUnprepareResources\" is also listed\n (or \"*\" is specified).\n- \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped.\n\nOther values may be added in the future. The kubelet must ignore unknown values.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" } }, "required": [ @@ -18562,7 +19671,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\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.", + "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\nCommon errors: - \"no such key\": Use optional chaining (.? followed by orValue())\n or guarding the check with has() for optional fields.\n See CEL Optional Types for details:\n https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes\n\nFor more CEL expression syntax and examples, see: https://kubernetes.io/docs/reference/using-api/cel/\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" } }, @@ -18595,7 +19704,7 @@ "type": "object" }, "v1beta2.CapacityRequestPolicyRange": { - "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", + "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\nIf the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value().\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", "properties": { "max": { "description": "Max defines the upper limit for capacity that can be requested.\n\nMax must be less than or equal to the capacity value. Min and requestPolicy.default must be less than or equal to the maximum.", @@ -18720,11 +19829,11 @@ "description": "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.", "type": "string" }, - "nodeAllocatableResourceMappings": { + "nodeAllocatableResources": { "additionalProperties": { - "$ref": "#/definitions/v1beta2.NodeAllocatableResourceMapping" + "$ref": "#/definitions/v1beta2.NodeAllocatableResource" }, - "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.", + "description": "NodeAllocatableResources 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": { @@ -18937,9 +20046,6 @@ "description": "Spec defines what can be allocated and how to configure it.\n\nThis 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.\n\nChanging the spec automatically increments the metadata.generation number." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -19006,7 +20112,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 a beta 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.", "type": "string" }, "selectors": { @@ -19045,6 +20151,14 @@ "v1beta2.DeviceCounterConsumption": { "description": "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.", "properties": { + "compatibilityGroups": { + "description": "CompatibilityGroups is a list of opaque group names for this counter set consumption.\n\nDevices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field.\n\nAn unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups.\n\nGroup names are opaque and meaningful only within the publishing driver's pool.\n\nThe maximum number of groups is 2, and the names must be unique.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "counterSet": { "description": "CounterSet is the name of the set from which the counters defined will be consumed.", "type": "string" @@ -19063,6 +20177,24 @@ ], "type": "object" }, + "v1beta2.DeviceDerivedAttribute": { + "description": "DeviceDerivedAttribute defines a derived attribute computed via CEL.", + "properties": { + "expression": { + "description": "Expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail.\n\nThe expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector.\n\nWhen pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors.\n\nThe expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks).\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; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget.", + "type": "string" + }, + "name": { + "description": "Name is the identifier for this derived attribute, used in constraints.\n\nIt must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\").\n\nIf the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\").\n\nIt is not valid to define a derived attribute that isn't used in at least one constraint.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": "object" + }, "v1beta2.DeviceRequest": { "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.", "properties": { @@ -19139,6 +20271,14 @@ "description": "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.", "type": "string" }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for this allocated device when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. It is a copy of the ResourceSlice.spec.skipNodeOperations value at the time when the device was allocated.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, "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 a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { @@ -19182,6 +20322,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/v1beta2.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.\n\nA class is required. Which classes are available depends on the cluster.\n\nAdministrators 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.", "type": "string" @@ -19412,6 +20560,14 @@ "format": "int64", "type": "integer" }, + "derivedAttributes": { + "description": "DerivedAttributes defines a set of virtual attributes computed via CEL expressions for each candidate device. These virtual attributes can be referenced in `.devices.constraints` to align and match different devices (e.g., co-allocating a GPU and a NIC on the same NUMA node) even if their drivers publish different attributes. Derived attributes are not available via `device.attributes` in the CEL environment when evaluating selector expressions.\n\nDerived attributes allow you to extract, transform, or normalize topology information (such as extracting a NUMA index from a complex topology string or renaming a vendor-specific attribute) into a common virtual attribute name at scheduling time. The scheduler then evaluates these virtual attributes exactly like static attributes when matching constraints.\n\nEvery derived attribute defined in this list must be referenced by at least one MatchAttribute or DistinctAttribute constraint in the `.devices.constraints` list.\n\nThe maximum number of derived attributes is 32.\n\nThis is an alpha field and requires enabling the DRADerivedAttributes feature gate.", + "items": { + "$ref": "#/definitions/v1beta2.DeviceDerivedAttribute" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "deviceClassName": { "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.\n\nA DeviceClassName is required.\n\nAdministrators 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.", "type": "string" @@ -19460,20 +20616,52 @@ }, "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.", + "v1beta2.NodeAllocatableMapping": { + "description": "NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.", "properties": { - "allocationMultiplier": { - "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. `capacityMultiplier` must also be set and 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\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.", "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\".", + "capacityMultiplier": { + "description": "CapacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. 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\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16.", + "type": "string" + }, + "deviceMultiplier": { + "description": "DeviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set.", "type": "string" } }, "type": "object" }, + "v1beta2.NodeAllocatableOverhead": { + "description": "NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers.", + "properties": { + "perContainer": { + "description": "PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once.", + "type": "string" + }, + "perPod": { + "description": "PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim.", + "type": "string" + } + }, + "type": "object" + }, + "v1beta2.NodeAllocatableResource": { + "description": "NodeAllocatableResource defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. At least one of Mapping or Overhead must be specified. Not specifying either is an invalid configuration.", + "properties": { + "mapping": { + "$ref": "#/definitions/v1beta2.NodeAllocatableMapping", + "description": "Mapping is used when the device directly models a node allocatable resource like standard CPU or memory (e.g., with a CPU DRA driver). The calculated quantity is accounted for exactly once per claim instance on the node. To prevent node cgroup isolation friction, the scheduler explicitly blocks sharing mapped device claims across multiple pods." + }, + "overhead": { + "$ref": "#/definitions/v1beta2.NodeAllocatableOverhead", + "description": "Overhead contains fields for modeling auxiliary overhead incurred on node allocatable resources when allocating devices that are not themselves modeling a node allocatable resource (e.g., host memory overhead for GPUs). Sharing overhead-mapped claims across multiple pods is allowed. The node allocatable overhead is accounted for individually for each pod referencing the claim. Overhead is always subtracted from the node's allocatable capacity for the resource, even when mapping is specified for the same resource. Eg: If a device models memory capacity per socket as a consumable capacity pool via Mapping (with CapacityKey), any overhead specified for the same resource will be subtracted from the node's general allocatable capacity and not from the per-socket capacity pool in Mapping." + } + }, + "type": "object" + }, "v1beta2.OpaqueDeviceConfiguration": { "description": "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.", "properties": { @@ -19516,9 +20704,6 @@ "description": "Status describes whether the claim is ready to use and what has been allocated." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -19657,9 +20842,6 @@ "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -19716,9 +20898,6 @@ "description": "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." } }, - "required": [ - "spec" - ], "type": "object" }, "v1beta2.ResourcePool": { @@ -19730,7 +20909,7 @@ "type": "integer" }, "name": { - "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", + "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. A field selector can be used to list only ResourceSlice objects belonging to a certain pool.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", "type": "string" }, "resourceSliceCount": { @@ -19840,6 +21019,10 @@ "$ref": "#/definitions/v1.NodeSelector", "description": "NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.\n\nMust use exactly one term.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set." }, + "partitionTypeAttribute": { + "description": "PartitionTypeAttribute names a string device attribute (by fully qualified name, e.g. \"gpu.example.com/profile\") whose value labels each device with its partition type, such as \"Full\" or \"Half\" for a MIG-style GPU.\n\nWhen set, every partitionable device in the slice must carry the attribute and devices sharing a value must share the same ConsumesCounters cost.", + "type": "string" + }, "perDeviceNodeSelection": { "description": "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.\n\nExactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.", "type": "boolean" @@ -19855,6 +21038,14 @@ }, "type": "array", "x-kubernetes-list-type": "atomic" + }, + "skipNodeOperations": { + "description": "SkipNodeOperations lists node-local resource operations (gRPC calls) that will be skipped for the devices in this slice when determining whether operations are necessary on the node. If all allocated devices for a driver in a claim skip an operation, that gRPC call will be skipped. Valid values are:\n\n- \"NodePrepareResources\": NodePrepareResources gRPC calls are skipped. This\n value cannot be specified unless \"NodeUnprepareResources\" is also listed\n (or \"*\" is specified).\n- \"NodeUnprepareResources\": NodeUnprepareResources gRPC calls are skipped. - \"*\": All node-local resource operations are skipped.\n\nOther values may be added in the future. The kubelet must ignore unknown values.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" } }, "required": [ @@ -19884,7 +21075,7 @@ }, "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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "preemptionPolicy": { "description": "preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", @@ -19940,22 +21131,44 @@ } ] }, - "v1alpha2.GangSchedulingPolicy": { - "description": "GangSchedulingPolicy defines the parameters for gang scheduling.", + "v1alpha3.CompositeDisruptionMode": { + "description": "CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set.", "properties": { - "minCount": { - "description": "MinCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.", + "all": { + "description": "all specifies that all children groups can only be disrupted together.", + "type": "object" + }, + "single": { + "description": "single specifies that children groups can be disrupted independently from each other.", + "type": "object" + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } + } + ] + }, + "v1alpha3.CompositeGangSchedulingPolicy": { + "description": "CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics.", + "properties": { + "minGroupCount": { + "description": "minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.", "format": "int32", "type": "integer" } }, "required": [ - "minCount" + "minGroupCount" ], "type": "object" }, - "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.", + "v1alpha3.CompositePodGroup": { + "description": "CompositePodGroup represents a runtime instance of pod groups grouped together. CompositePodGroups are created by workload controllers (LWS, JobSet, etc...) from Workload.compositePodGroupTemplates. CompositePodGroup API enablement is toggled by the CompositePodGroup 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", @@ -19967,15 +21180,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 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." + "$ref": "#/definitions/v1alpha3.CompositePodGroupSpec", + "description": "spec defines the desired state of the CompositePodGroup." }, "status": { - "$ref": "#/definitions/v1alpha2.PodGroupStatus", - "description": "Status represents the current observed state of the PodGroup." + "$ref": "#/definitions/v1alpha3.CompositePodGroupStatus", + "description": "status represents the current observed state of the CompositePodGroup." } }, "required": [ @@ -19985,22 +21198,22 @@ "x-kubernetes-group-version-kind": [ { "group": "scheduling.k8s.io", - "kind": "PodGroup", - "version": "v1alpha2" + "kind": "CompositePodGroup", + "version": "v1alpha3" } ] }, - "v1alpha2.PodGroupList": { - "description": "PodGroupList contains a list of PodGroup resources.", + "v1alpha3.CompositePodGroupList": { + "description": "CompositePodGroupList contains a list of CompositePodGroup 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.", + "description": "Items is the list of CompositePodGroups.", "items": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" }, "type": "array" }, @@ -20020,56 +21233,18 @@ "x-kubernetes-group-version-kind": [ { "group": "scheduling.k8s.io", - "kind": "PodGroupList", - "version": "v1alpha2" + "kind": "CompositePodGroupList", + "version": "v1alpha3" } ] }, - "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 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.", + "v1alpha3.CompositePodGroupSchedulingConstraints": { + "description": "CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup.", "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.", + "description": "topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future.", "items": { - "$ref": "#/definitions/v1alpha2.TopologyConstraint" + "$ref": "#/definitions/v1alpha3.TopologyConstraint" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -20077,16 +21252,16 @@ }, "type": "object" }, - "v1alpha2.PodGroupSchedulingPolicy": { - "description": "PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set.", + "v1alpha3.CompositePodGroupSchedulingPolicy": { + "description": "CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. 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.", + "description": "basic specifies that the groups of this composite group should be scheduled independently. This field is immutable.", "type": "object" }, "gang": { - "$ref": "#/definitions/v1alpha2.GangSchedulingPolicy", - "description": "Gang specifies that the pods in this group should be scheduled using all-or-nothing semantics." + "$ref": "#/definitions/v1alpha3.CompositeGangSchedulingPolicy", + "description": "gang specifies that the groups of this composite group should be scheduled using all-or-nothing semantics." } }, "type": "object", @@ -20099,58 +21274,54 @@ } ] }, - "v1alpha2.PodGroupSpec": { - "description": "PodGroupSpec defines the desired state of a PodGroup.", + "v1alpha3.CompositePodGroupSpec": { + "description": "CompositePodGroupSpec defines the desired state of CompositePodGroup.", "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.", + "$ref": "#/definitions/v1alpha3.CompositeDisruptionMode", + "description": "disruptionMode defines the mode in which a given CompositePodGroup can be disrupted. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. One of Single, All. Defaults to Single if unset. This field is immutable." + }, + "parentCompositePodGroupName": { + "description": "parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this composite pod group. It must be a DNS name. If it's nil, then this composite pod group is a root of a workload's hierarchy. This field is immutable.", "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." + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" }, "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.", + "description": "priority is the value of priority of this composite pod group. Various system components use this field to find the priority of the composite 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.", "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.", + "description": "priorityClassName defines the priority that should be considered when scheduling this CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. If left unspecified, it is validated and resolved similarly to the PriorityClassName field in Pods (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the composite pod group's priority will be zero). This field is immutable.", "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." + "$ref": "#/definitions/v1alpha3.CompositePodGroupSchedulingConstraints", + "description": "schedulingConstraints defines optional scheduling constraints (e.g. topology) for this CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. This field is immutable." }, "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." + "$ref": "#/definitions/v1alpha3.CompositePodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this instance of the CompositePodGroup. Controllers are expected to fill this field by copying it from a CompositePodGroupTemplate. This field is immutable." + }, + "workloadRef": { + "$ref": "#/definitions/v1alpha3.WorkloadReference", + "description": "workloadRef references an optional CompositePodGroup template within the Workload object that was used to create the CompositePodGroup. This field is required. This field is immutable." } }, "required": [ + "workloadRef", "schedulingPolicy" ], "type": "object" }, - "v1alpha2.PodGroupStatus": { - "description": "PodGroupStatus represents information about the status of a pod group.", + "v1alpha3.CompositePodGroupStatus": { + "description": "CompositePodGroupStatus represents information about the status of a composite 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.", + "description": "conditions represent the latest observations of the CompositePodGroup's state.\n\nKnown condition types: - \"CompositePodGroupInitiallyScheduled\": Indicates whether the overall scheduling requirement\n for the subtree under this CompositePodGroup has been satisfied. Once this condition\n transitions to True, it serves as a terminal state and will never revert to False,\n even if pods are subsequently deleted and group constraints are no longer met.\n- \"DisruptionTarget\": Indicates whether the CompositePodGroup is about to be terminated\n due to disruption such as preemption.\n\nKnown reasons for the CompositePodGroupInitiallyScheduled condition: - \"Unschedulable\": The CompositePodGroup's subtree could not be placed due to resource constraints,\n affinity/anti-affinity, or topological constraints.\n- \"SchedulerError\": The CompositePodGroup cannot be scheduled due to some internal error\n that occurred during scheduling.\n- \"Invalid\": Set to True when kube-scheduler detects an invalid group layout during\n runtime validation. The `message` field details the specific layout violation (such as\n a detected cycle, exceeding the maximum depth of 4, or referencing multiple distinct Workloads).\n\nKnown reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The CompositePodGroup was targeted by the scheduler's preemption loop\n to free up capacity for higher-priority preemptors.", "items": { "$ref": "#/definitions/v1.Condition" }, @@ -20161,63 +21332,63 @@ "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "type", "x-kubernetes-patch-strategy": "merge" - }, - "resourceClaimStatuses": { - "description": "Status of resource claims.", + } + }, + "type": "object" + }, + "v1alpha3.CompositePodGroupTemplate": { + "description": "CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.", + "properties": { + "compositePodGroupTemplates": { + "description": "compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.", "items": { - "$ref": "#/definitions/v1alpha2.PodGroupResourceClaimStatus" + "$ref": "#/definitions/v1alpha3.CompositePodGroupTemplate" }, "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": { + "x-kubernetes-list-type": "map" + }, "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" + "$ref": "#/definitions/v1alpha3.CompositeDisruptionMode", + "description": "disruptionMode defines the mode in which a given CompositePodGroup can be disrupted. One of Single, All. This field is immutable." }, "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.", + "description": "name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required.", "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.", + "podGroupTemplates": { + "description": "podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.", "items": { - "$ref": "#/definitions/v1alpha2.PodGroupResourceClaim" + "$ref": "#/definitions/v1alpha3.PodGroupTemplate" }, "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" + "x-kubernetes-list-type": "map" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" + }, + "priority": { + "description": "priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite 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.", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "priorityClassName indicates the priority that should be considered when scheduling a composite 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, composite pod groups created from this template will have the priority set to zero. This field is immutable.", + "type": "string" }, "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." + "$ref": "#/definitions/v1alpha3.CompositePodGroupSchedulingConstraints", + "description": "schedulingConstraints defines optional scheduling constraints (e.g. topology) for this CompositePodGroupTemplate. This field is immutable." }, "schedulingPolicy": { - "$ref": "#/definitions/v1alpha2.PodGroupSchedulingPolicy", - "description": "SchedulingPolicy defines the scheduling policy for this PodGroupTemplate." + "$ref": "#/definitions/v1alpha3.CompositePodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this template." } }, "required": [ @@ -20226,60 +21397,44 @@ ], "type": "object" }, - "v1alpha2.PodGroupTemplateReference": { - "description": "PodGroupTemplateReference references a PodGroup template defined in some object (e.g. Workload). Exactly one reference must be set.", + "v1alpha3.DisruptionMode": { + "description": "DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set.", "properties": { - "workload": { - "$ref": "#/definitions/v1alpha2.WorkloadPodGroupTemplateReference", - "description": "Workload references the PodGroupTemplate within the Workload object that was used to create the PodGroup." + "all": { + "description": "all specifies that all children can only be disrupted together.", + "type": "object" + }, + "single": { + "description": "single specifies that children can be disrupted independently from each other.", + "type": "object" } }, "type": "object", "x-kubernetes-unions": [ { "fields-to-discriminateBy": { - "workload": "Workload" + "all": "All", + "single": "Single" } } ] }, - "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" - }, - "v1alpha2.TypedLocalObjectReference": { - "description": "TypedLocalObjectReference allows to reference typed object inside the same namespace.", + "v1alpha3.GangSchedulingPolicy": { + "description": "GangSchedulingPolicy defines the parameters for gang scheduling.", "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced. It must be a path segment name.", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced. It must be a path segment name.", - "type": "string" + "minCount": { + "description": "minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling.\n\nNote that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles.", + "format": "int32", + "type": "integer" } }, "required": [ - "kind", - "name" + "minCount" ], "type": "object" }, - "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.", + "v1alpha3.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", @@ -20291,11 +21446,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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1alpha2.WorkloadSpec", - "description": "Spec defines the desired behavior of a Workload." + "$ref": "#/definitions/v1alpha3.PodGroupSpec", + "description": "spec defines the desired state of the PodGroup." + }, + "status": { + "$ref": "#/definitions/v1alpha3.PodGroupStatus", + "description": "status represents the current observed state of the PodGroup." } }, "required": [ @@ -20305,22 +21464,22 @@ "x-kubernetes-group-version-kind": [ { "group": "scheduling.k8s.io", - "kind": "Workload", - "version": "v1alpha2" + "kind": "PodGroup", + "version": "v1alpha3" } ] }, - "v1alpha2.WorkloadList": { - "description": "WorkloadList contains a list of Workload resources.", + "v1alpha3.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 Workloads.", + "description": "Items is the list of PodGroups.", "items": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1alpha3.PodGroup" }, "type": "array" }, @@ -20340,353 +21499,302 @@ "x-kubernetes-group-version-kind": [ { "group": "scheduling.k8s.io", - "kind": "WorkloadList", - "version": "v1alpha2" + "kind": "PodGroupList", + "version": "v1alpha3" } ] }, - "v1alpha2.WorkloadPodGroupTemplateReference": { - "description": "WorkloadPodGroupTemplateReference references the PodGroupTemplate within the Workload object.", + "v1alpha3.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": { - "podGroupTemplateName": { - "description": "PodGroupTemplateName defines the PodGroupTemplate name within the Workload object.", + "name": { + "description": "name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.", "type": "string" }, - "workloadName": { - "description": "WorkloadName defines the name of the Workload object.", + "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" - } - }, - "required": [ - "workloadName", - "podGroupTemplateName" - ], - "type": "object" - }, - "v1alpha2.WorkloadSpec": { - "description": "WorkloadSpec defines the desired state of a Workload.", - "properties": { - "controllerRef": { - "$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." }, - "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/v1alpha2.PodGroupTemplate" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" + "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": [ - "podGroupTemplates" + "name" ], "type": "object" }, - "v1.CSIDriver": { - "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.", + "v1alpha3.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": { - "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", + "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" }, - "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", + "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" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.CSIDriverSpec", - "description": "spec represents the specification of the CSI Driver." } }, "required": [ - "spec" + "name" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "CSIDriver", - "version": "v1" - } - ] + "type": "object" }, - "v1.CSIDriverList": { - "description": "CSIDriverList is a collection of CSIDriver objects.", + "v1alpha3.PodGroupSchedulingConstraints": { + "description": "PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup.", "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 CSIDriver", + "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/v1.CSIDriver" + "$ref": "#/definitions/v1alpha3.TopologyConstraint" }, - "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" + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1alpha3.PodGroupSchedulingPolicy": { + "description": "PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it.", + "properties": { + "basic": { + "description": "basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward.", + "type": "object" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "gang": { + "$ref": "#/definitions/v1alpha3.GangSchedulingPolicy", + "description": "gang specifies that the pods in this group should be scheduled using all-or-nothing semantics. Setting this field at group creation time opts this group to gang scheduling; this field cannot be set or unset afterward. The minCount field within Gang scheduling policy remains mutable after group creation." } }, - "required": [ - "items" - ], "type": "object", - "x-kubernetes-group-version-kind": [ + "x-kubernetes-unions": [ { - "group": "storage.k8s.io", - "kind": "CSIDriverList", - "version": "v1" + "fields-to-discriminateBy": { + "basic": "Basic", + "gang": "Gang" + } } ] }, - "v1.CSIDriverSpec": { - "description": "CSIDriverSpec is the specification of a CSIDriver.", + "v1alpha3.PodGroupSpec": { + "description": "PodGroupSpec defines the desired state of a PodGroup.", "properties": { - "attachRequired": { - "description": "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.\n\nThis field is immutable.", - "type": "boolean" + "disruptionMode": { + "$ref": "#/definitions/v1alpha3.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 Single, All. Defaults to Single if unset. This field is immutable." }, - "fsGroupPolicy": { - "description": "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.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.\n\nDefaults 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.", + "parentCompositePodGroupName": { + "description": "parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable.", "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 feature requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", - "format": "int64", - "type": "integer" - }, - "podInfoOnMount": { - "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" + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" }, - "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" + "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.", + "format": "int32", + "type": "integer" }, - "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" + "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.", + "type": "string" }, - "seLinuxMount": { - "description": "seLinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"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.\n\nWhen \"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.\n\nDefault is \"false\".", - "type": "boolean" + "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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/v1alpha3.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" }, - "serviceAccountTokenInSecrets": { - "description": "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.\n\nWhen \"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.\n\nWhen \"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.\n\nThis field can only be set when TokenRequests is configured. The API server will reject CSIDriver specs that set this field without TokenRequests.\n\nDefault behavior if unset is to pass tokens in the VolumeContext field.", - "type": "boolean" + "schedulingConstraints": { + "$ref": "#/definitions/v1alpha3.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." }, - "storageCapacity": { - "description": "storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true.\n\nThe check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field was immutable in Kubernetes <= 1.22 and now is mutable.", - "type": "boolean" + "schedulingPolicy": { + "$ref": "#/definitions/v1alpha3.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." }, - "tokenRequests": { - "description": "tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": {\n \"\": {\n \"token\": ,\n \"expirationTimestamp\": ,\n },\n ...\n}\n\nNote: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.", + "workloadRef": { + "$ref": "#/definitions/v1alpha3.WorkloadReference", + "description": "workloadRef references an optional PodGroup template within the Workload object that was used to create the PodGroup. This field is immutable." + } + }, + "required": [ + "schedulingPolicy" + ], + "type": "object" + }, + "v1alpha3.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: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated\n due to disruption such as preemption.\n\nKnown reasons for the PodGroupInitiallyScheduled 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/storage.v1.TokenRequest" + "$ref": "#/definitions/v1.Condition" }, "type": "array", - "x-kubernetes-list-type": "atomic" + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "volumeLifecycleModes": { - "description": "volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism.\n\nThe other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume.\n\nFor more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future.\n\nThis field is beta. This field is immutable.", + "resourceClaimStatuses": { + "description": "resourceClaimStatuses is status of resource claims.", "items": { - "type": "string" + "$ref": "#/definitions/v1alpha3.PodGroupResourceClaimStatus" }, "type": "array", - "x-kubernetes-list-type": "set" + "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" }, - "v1.CSINode": { - "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.", + "v1alpha3.PodGroupTemplate": { + "description": "PodGroupTemplate represents a template for a set of pods with a scheduling policy.", "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" + "disruptionMode": { + "$ref": "#/definitions/v1alpha3.DisruptionMode", + "description": "disruptionMode defines the mode in which a given PodGroup can be disrupted. One of Single, All. This field is immutable." }, - "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", + "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" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. metadata.name must be the Kubernetes node name." - }, - "spec": { - "$ref": "#/definitions/v1.CSINodeSpec", - "description": "spec is the specification of CSINode" - } - }, - "required": [ - "spec" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "CSINode", - "version": "v1" - } - ] - }, - "v1.CSINodeDriver": { - "description": "CSINodeDriver holds information about the specification of one CSI driver installed on a node", - "properties": { - "allocatable": { - "$ref": "#/definitions/v1.VolumeNodeResources", - "description": "allocatable represents the volume resources of a node that are available for scheduling. This field is beta." - }, - "name": { - "description": "name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.", + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", "type": "string" }, - "nodeID": { - "description": "nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required.", + "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. The higher the value, the higher the priority. This field is immutable.", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable.", "type": "string" }, - "topologyKeys": { - "description": "topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.", + "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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", "items": { - "type": "string" + "$ref": "#/definitions/v1alpha3.PodGroupResourceClaim" }, "type": "array", - "x-kubernetes-list-type": "atomic" + "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/v1alpha3.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. This field is immutable." + }, + "schedulingPolicy": { + "$ref": "#/definitions/v1alpha3.PodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this PodGroupTemplate." } }, "required": [ "name", - "nodeID" + "schedulingPolicy" ], "type": "object" }, - "v1.CSINodeList": { - "description": "CSINodeList is a collection of CSINode objects.", + "v1alpha3.TopologyConstraint": { + "description": "TopologyConstraint defines a topology constraint for a PodGroup.", "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 CSINode", - "items": { - "$ref": "#/definitions/v1.CSINode" - }, - "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", + "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" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "items" + "key" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "CSINodeList", - "version": "v1" - } - ] + "type": "object" }, - "v1.CSINodeSpec": { - "description": "CSINodeSpec holds information about the specification of all CSI drivers installed on a node", + "v1alpha3.TypedLocalObjectReference": { + "description": "TypedLocalObjectReference allows to reference typed object inside the same namespace.", "properties": { - "drivers": { - "description": "drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.", - "items": { - "$ref": "#/definitions/v1.CSINodeDriver" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" + "apiGroup": { + "description": "apiGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain.", + "type": "string" + }, + "kind": { + "description": "kind is the type of resource being referenced. It must be a path segment name.", + "type": "string" + }, + "name": { + "description": "name is the name of resource being referenced. It must be a path segment name.", + "type": "string" } }, "required": [ - "drivers" + "kind", + "name" ], "type": "object" }, - "v1.CSIStorageCapacity": { - "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.\n\nFor 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\"\n\nThe 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\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey 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.", + "v1alpha3.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", "type": "string" }, - "capacity": { - "description": "capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable.", - "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" }, - "maximumVolumeSize": { - "description": "maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim.", - "type": "string" - }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "nodeTopology": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable." + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "storageClassName": { - "description": "storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.", - "type": "string" + "spec": { + "$ref": "#/definitions/v1alpha3.WorkloadSpec", + "description": "spec defines the desired behavior of a Workload." } }, "required": [ - "storageClassName" + "spec" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1" + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" } ] }, - "v1.CSIStorageCapacityList": { - "description": "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.", + "v1alpha3.WorkloadList": { + "description": "WorkloadList contains a list of Workload 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 CSIStorageCapacity objects.", + "description": "Items is the list of Workloads.", "items": { - "$ref": "#/definitions/v1.CSIStorageCapacity" + "$ref": "#/definitions/v1alpha3.Workload" }, "type": "array" }, @@ -20696,7 +21804,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata." } }, "required": [ @@ -20705,134 +21813,323 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacityList", - "version": "v1" + "group": "scheduling.k8s.io", + "kind": "WorkloadList", + "version": "v1alpha3" } ] }, - "v1.StorageClass": { - "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", + "v1alpha3.WorkloadPodGroupDisruptionMode": { + "description": "WorkloadPodGroupDisruptionMode defines how individual pods within a group can be disrupted. Exactly one mode must be set.", "properties": { - "allowVolumeExpansion": { - "description": "allowVolumeExpansion shows whether the storage class allow volume expand.", - "type": "boolean" - }, - "allowedTopologies": { - "description": "allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.", - "items": { - "$ref": "#/definitions/v1.TopologySelectorTerm" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "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" - }, - "mountOptions": { - "description": "mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "parameters": { - "additionalProperties": { - "type": "string" - }, - "description": "parameters holds the parameters for the provisioner that should create volumes of this storage class.", + "all": { + "description": "all specifies that all pods in the group must be disrupted together.", "type": "object" }, - "provisioner": { - "description": "provisioner indicates the type of the provisioner.", - "type": "string" - }, - "reclaimPolicy": { - "description": "reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.", - "type": "string" - }, - "volumeBindingMode": { - "description": "volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.", - "type": "string" + "single": { + "description": "single specifies that pods can be disrupted independently from each other.", + "type": "object" } }, - "required": [ - "provisioner" - ], "type": "object", - "x-kubernetes-group-version-kind": [ + "x-kubernetes-unions": [ { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } } ] }, - "v1.StorageClassList": { - "description": "StorageClassList is a collection of storage classes.", + "v1alpha3.WorkloadPodGroupGangSchedulingPolicy": { + "description": "WorkloadPodGroupGangSchedulingPolicy defines the parameters for gang (all-or-nothing) scheduling.", "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", + "minCount": { + "description": "minCount is the minimum number of pods that must be scheduled at the same time for the scheduler to admit the entire group. This field is optional. If it is not specified, the controller should inject a context-specific sane default (e.g., parallelism for a Job). If set, it must be a positive integer.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "v1alpha3.WorkloadPodGroupResourceClaim": { + "description": "WorkloadPodGroupResourceClaim references a dynamic resource claim that is shared across pods in the group.", + "properties": { + "name": { + "description": "name uniquely identifies this resource claim inside the group. This field is required. It must be a DNS_LABEL.", "type": "string" }, - "items": { - "description": "items is the list of StorageClasses", + "resourceClaimName": { + "description": "resourceClaimName is the name of a ResourceClaim object in the same namespace. This field is optional. If it is not specified, no resource claim is used. If set, it must be a DNS subdomain.", + "type": "string" + }, + "resourceClaimTemplateName": { + "description": "resourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace. This field is optional. If it is not specified, no resource claim template is used. If set, it must be a DNS subdomain.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "v1alpha3.WorkloadPodGroupSchedulingConstraints": { + "description": "WorkloadPodGroupSchedulingConstraints defines leaf-level scheduling constraints, such as topology.", + "properties": { + "topology": { + "description": "topology specifies desired topological placements for all pods within the pod group. If unset, no topology placement is requested.", "items": { - "$ref": "#/definitions/v1.StorageClass" + "$ref": "#/definitions/v1alpha3.TopologyConstraint" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1alpha3.WorkloadPodGroupSchedulingPolicy": { + "description": "WorkloadPodGroupSchedulingPolicy defines the scheduling policy for a group of pods managed by a workload controller. Exactly one policy must be set.", + "properties": { + "basic": { + "description": "basic specifies that standard, pod-by-pod Kubernetes scheduling behavior should be used.", + "type": "object" }, - "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", + "gang": { + "$ref": "#/definitions/v1alpha3.WorkloadPodGroupGangSchedulingPolicy", + "description": "gang specifies all-or-nothing scheduling semantics." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "basic": "Basic", + "gang": "Gang" + } + } + ] + }, + "v1alpha3.WorkloadReference": { + "description": "WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup.", + "properties": { + "templateName": { + "description": "templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "workloadName": { + "description": "workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required.", + "type": "string" } }, "required": [ - "items" + "workloadName", + "templateName" ], + "type": "object" + }, + "v1alpha3.WorkloadSpec": { + "description": "WorkloadSpec defines the desired state of a Workload.", + "properties": { + "compositePodGroupTemplates": { + "description": "compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.\n\nThis field is used only when the CompositePodGroup feature gate is enabled.", + "items": { + "$ref": "#/definitions/v1alpha3.CompositePodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "controllerRef": { + "$ref": "#/definitions/v1alpha3.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." + }, + "podGroupTemplates": { + "description": "podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.", + "items": { + "$ref": "#/definitions/v1alpha3.PodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object" + }, + "v1beta1.CompositeDisruptionMode": { + "description": "CompositeDisruptionMode defines how individual entities within a composite pod group can be disrupted. Exactly one mode must be set.", + "properties": { + "all": { + "description": "all specifies that all children groups can only be disrupted together.", + "type": "object" + }, + "single": { + "description": "single specifies that children groups can be disrupted independently from each other.", + "type": "object" + } + }, "type": "object", - "x-kubernetes-group-version-kind": [ + "x-kubernetes-unions": [ { - "group": "storage.k8s.io", - "kind": "StorageClassList", - "version": "v1" + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } } ] }, - "storage.v1.TokenRequest": { - "description": "TokenRequest contains parameters of a service account token.", + "v1beta1.CompositeGangSchedulingPolicy": { + "description": "CompositeGangSchedulingPolicy indicates that the groups belonging to the composite group should be scheduled using all-or-nothing semantics.", "properties": { - "audience": { - "description": "audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver.", + "minGroupCount": { + "description": "minGroupCount is the minimum number of child groups that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "minGroupCount" + ], + "type": "object" + }, + "v1beta1.CompositePodGroupSchedulingConstraints": { + "description": "CompositePodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a CompositePodGroup.", + "properties": { + "topology": { + "description": "topology defines the topology constraints for the composite pod group. Currently only a single topology constraint can be specified. This may change in the future.", + "items": { + "$ref": "#/definitions/v1beta1.TopologyConstraint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1beta1.CompositePodGroupSchedulingPolicy": { + "description": "CompositePodGroupSchedulingPolicy defines the scheduling configuration for a CompositePodGroup. Exactly one policy must be set.", + "properties": { + "basic": { + "description": "basic specifies that the groups of this composite group should be scheduled independently. This field is immutable.", + "type": "object" + }, + "gang": { + "$ref": "#/definitions/v1beta1.CompositeGangSchedulingPolicy", + "description": "gang specifies that the groups of this composite group should be scheduled using all-or-nothing semantics." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "basic": "Basic", + "gang": "Gang" + } + } + ] + }, + "v1beta1.CompositePodGroupTemplate": { + "description": "CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.", + "properties": { + "compositePodGroupTemplates": { + "description": "compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.", + "items": { + "$ref": "#/definitions/v1beta1.CompositePodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "disruptionMode": { + "$ref": "#/definitions/v1beta1.CompositeDisruptionMode", + "description": "disruptionMode defines the mode in which a given CompositePodGroup can be disrupted. One of Single, All. This field is immutable." + }, + "name": { + "description": "name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required.", "type": "string" }, - "expirationSeconds": { - "description": "expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\".", - "format": "int64", + "podGroupTemplates": { + "description": "podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.", + "items": { + "$ref": "#/definitions/v1beta1.PodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" + }, + "priority": { + "description": "priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite 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.", + "format": "int32", "type": "integer" + }, + "priorityClassName": { + "description": "priorityClassName indicates the priority that should be considered when scheduling a composite 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, composite pod groups created from this template will have the priority set to zero. This field is immutable.", + "type": "string" + }, + "schedulingConstraints": { + "$ref": "#/definitions/v1beta1.CompositePodGroupSchedulingConstraints", + "description": "schedulingConstraints defines optional scheduling constraints (e.g. topology) for this CompositePodGroupTemplate. This field is immutable." + }, + "schedulingPolicy": { + "$ref": "#/definitions/v1beta1.CompositePodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this template." } }, "required": [ - "audience" + "name", + "schedulingPolicy" ], "type": "object" }, - "v1.VolumeAttachment": { - "description": "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.\n\nVolumeAttachment objects are non-namespaced.", + "v1beta1.DisruptionMode": { + "description": "DisruptionMode defines how individual entities within a group can be disrupted. Exactly one mode can be set.", + "properties": { + "all": { + "description": "all specifies that all children can only be disrupted together.", + "type": "object" + }, + "single": { + "description": "single specifies that children can be disrupted independently from each other.", + "type": "object" + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "all": "All", + "single": "Single" + } + } + ] + }, + "v1beta1.GangSchedulingPolicy": { + "description": "GangSchedulingPolicy defines the parameters for gang scheduling.", + "properties": { + "minCount": { + "description": "minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling.\n\nNote that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "minCount" + ], + "type": "object" + }, + "v1beta1.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", @@ -20844,15 +22141,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.VolumeAttachmentSpec", - "description": "spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system." + "$ref": "#/definitions/v1beta1.PodGroupSpec", + "description": "spec defines the desired state of the PodGroup." }, "status": { - "$ref": "#/definitions/v1.VolumeAttachmentStatus", - "description": "status represents status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher." + "$ref": "#/definitions/v1beta1.PodGroupStatus", + "description": "status represents the current observed state of the PodGroup." } }, "required": [ @@ -20861,23 +22158,23 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1" + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1beta1" } ] }, - "v1.VolumeAttachmentList": { - "description": "VolumeAttachmentList is a collection of VolumeAttachment objects.", + "v1beta1.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 VolumeAttachments", + "description": "Items is the list of PodGroups.", "items": { - "$ref": "#/definitions/v1.VolumeAttachment" + "$ref": "#/definitions/v1beta1.PodGroup" }, "type": "array" }, @@ -20887,7 +22184,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata." } }, "required": [ @@ -20896,232 +22193,303 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "VolumeAttachmentList", - "version": "v1" + "group": "scheduling.k8s.io", + "kind": "PodGroupList", + "version": "v1beta1" } ] }, - "v1.VolumeAttachmentSource": { - "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.", + "v1beta1.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": { - "inlineVolumeSpec": { - "$ref": "#/definitions/v1.PersistentVolumeSpec", - "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature." + "name": { + "description": "name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.", + "type": "string" }, - "persistentVolumeName": { - "description": "persistentVolumeName represents the name of the persistent volume to attach.", + "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" }, - "v1.VolumeAttachmentSpec": { - "description": "VolumeAttachmentSpec is the specification of a VolumeAttachment request.", + "v1beta1.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": { - "attacher": { - "description": "attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().", + "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" }, - "nodeName": { - "description": "nodeName represents the node that the volume should be attached to.", + "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" - }, - "source": { - "$ref": "#/definitions/v1.VolumeAttachmentSource", - "description": "source represents the volume that should be attached." } }, "required": [ - "attacher", - "source", - "nodeName" + "name" ], "type": "object" }, - "v1.VolumeAttachmentStatus": { - "description": "VolumeAttachmentStatus is the status of a VolumeAttachment request.", + "v1beta1.PodGroupSchedulingConstraints": { + "description": "PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup.", "properties": { - "attachError": { - "$ref": "#/definitions/v1.VolumeError", - "description": "attachError represents the last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher." - }, - "attached": { - "description": "attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - "type": "boolean" - }, - "attachmentMetadata": { - "additionalProperties": { - "type": "string" + "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/v1beta1.TopologyConstraint" }, - "description": "attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - "type": "object" - }, - "detachError": { - "$ref": "#/definitions/v1.VolumeError", - "description": "detachError represents the last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher." + "type": "array", + "x-kubernetes-list-type": "atomic" } }, - "required": [ - "attached" - ], "type": "object" }, - "v1.VolumeAttributesClass": { - "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.", + "v1beta1.PodGroupSchedulingPolicy": { + "description": "PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. The policy is chosen at creation time by setting either the Basic or Gang field. The PodGroup may not change policy after creation. Fields within chosen policy may be updated after creation when their individual fields allow it.", "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" - }, - "driverName": { - "description": "Name of the CSI driver This field is immutable.", - "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" - }, - "parameters": { - "additionalProperties": { - "type": "string" - }, - "description": "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\n\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.", + "basic": { + "description": "basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. Setting this field at group creation time opts this group to basic scheduling; this field cannot be changed afterward.", "type": "object" + }, + "gang": { + "$ref": "#/definitions/v1beta1.GangSchedulingPolicy", + "description": "gang specifies that the pods in this group should be scheduled using all-or-nothing semantics. Setting this field at group creation time opts this group to gang scheduling; this field cannot be set or unset afterward. The minCount field within Gang scheduling policy remains mutable after group creation." } }, - "required": [ - "driverName" - ], "type": "object", - "x-kubernetes-group-version-kind": [ + "x-kubernetes-unions": [ { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1" + "fields-to-discriminateBy": { + "basic": "Basic", + "gang": "Gang" + } } ] }, - "v1.VolumeAttributesClassList": { - "description": "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.", + "v1beta1.PodGroupSpec": { + "description": "PodGroupSpec defines the desired state of a PodGroup.", "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", + "disruptionMode": { + "$ref": "#/definitions/v1beta1.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 Single, All. Defaults to Single if unset. This field is immutable." + }, + "parentCompositePodGroupName": { + "description": "parentCompositePodGroupName contains the name of the parent composite pod group within the same namespace as this pod group. If it's nil, then this pod group is a root of a workload's hierarchy. This field is used only when the CompositePodGroup feature gate is enabled. This field is immutable.", "type": "string" }, - "items": { - "description": "items is the list of VolumeAttributesClass objects.", + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. When Priority Admission Controller is enabled, it populates this field from PriorityClassName, and defaults to PreemptLowerPriority if value is unset in PriorityClass. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "type": "string" + }, + "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.", + "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.", + "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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", "items": { - "$ref": "#/definitions/v1.VolumeAttributesClass" + "$ref": "#/definitions/v1beta1.PodGroupResourceClaim" }, - "type": "array" + "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" }, - "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" + "schedulingConstraints": { + "$ref": "#/definitions/v1beta1.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." }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "schedulingPolicy": { + "$ref": "#/definitions/v1beta1.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." + }, + "workloadRef": { + "$ref": "#/definitions/v1beta1.WorkloadReference", + "description": "workloadRef references an optional PodGroup template within the Workload object that was used to create the PodGroup. This field is immutable." } }, "required": [ - "items" + "schedulingPolicy" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClassList", - "version": "v1" + "type": "object" + }, + "v1beta1.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: - \"PodGroupInitiallyScheduled\": Indicates whether the scheduling requirement has been satisfied. Once this condition transitions to True, it serves as a terminal state and will never revert to False, even if pods are subsequently evicted and group constraints are no longer met. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated\n due to disruption such as preemption.\n\nKnown reasons for the PodGroupInitiallyScheduled 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": "resourceClaimStatuses is status of resource claims.", + "items": { + "$ref": "#/definitions/v1beta1.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" }, - "v1.VolumeError": { - "description": "VolumeError captures an error encountered during a volume operation.", + "v1beta1.PodGroupTemplate": { + "description": "PodGroupTemplate represents a template for a set of pods with a scheduling policy.", "properties": { - "errorCode": { - "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.", + "disruptionMode": { + "$ref": "#/definitions/v1beta1.DisruptionMode", + "description": "disruptionMode defines the mode in which a given PodGroup can be disrupted. One of Single, All. This field is immutable." + }, + "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" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.", + "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. The higher the value, the higher the priority. This field is immutable.", "format": "int32", "type": "integer" }, - "message": { - "description": "message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.", + "priorityClassName": { + "description": "priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable.", "type": "string" }, - "time": { - "description": "time represents the time the error was encountered.", - "format": "date-time", + "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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/v1beta1.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/v1beta1.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. This field is immutable." + }, + "schedulingPolicy": { + "$ref": "#/definitions/v1beta1.PodGroupSchedulingPolicy", + "description": "schedulingPolicy defines the scheduling policy for this PodGroupTemplate." + } + }, + "required": [ + "name", + "schedulingPolicy" + ], + "type": "object" + }, + "v1beta1.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" }, - "v1.VolumeNodeResources": { - "description": "VolumeNodeResources is a set of resource limits for scheduling of volumes.", + "v1beta1.TypedLocalObjectReference": { + "description": "TypedLocalObjectReference allows to reference typed object inside the same namespace.", "properties": { - "count": { - "description": "count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded.", - "format": "int32", - "type": "integer" + "apiGroup": { + "description": "apiGroup is the group for the resource being referenced. If apiGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting apiGroup is required. It must be a DNS subdomain.", + "type": "string" + }, + "kind": { + "description": "kind is the type of resource being referenced. It must be a path segment name.", + "type": "string" + }, + "name": { + "description": "name is the name of resource being referenced. It must be a path segment name.", + "type": "string" } }, + "required": [ + "kind", + "name" + ], "type": "object" }, - "v1beta1.VolumeAttributesClass": { - "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.", + "v1beta1.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", "type": "string" }, - "driverName": { - "description": "Name of the CSI driver This field is immutable.", - "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" + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "parameters": { - "additionalProperties": { - "type": "string" - }, - "description": "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\n\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.", - "type": "object" + "spec": { + "$ref": "#/definitions/v1beta1.WorkloadSpec", + "description": "spec defines the desired behavior of a Workload." } }, "required": [ - "driverName" + "spec" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", + "group": "scheduling.k8s.io", + "kind": "Workload", "version": "v1beta1" } ] }, - "v1beta1.VolumeAttributesClassList": { - "description": "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.", + "v1beta1.WorkloadList": { + "description": "WorkloadList contains a list of Workload 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 VolumeAttributesClass objects.", + "description": "items is the list of Workloads.", "items": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1beta1.Workload" }, "type": "array" }, @@ -21131,7 +22499,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "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." } }, "required": [ @@ -21140,56 +22508,105 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClassList", + "group": "scheduling.k8s.io", + "kind": "WorkloadList", "version": "v1beta1" } ] }, - "v1beta1.StorageVersionMigration": { - "description": "StorageVersionMigration represents a migration of stored data to the latest storage version.", + "v1beta1.WorkloadReference": { + "description": "WorkloadReference references the Workload object together with the template that was used to create a particular PodGroup.", "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", + "templateName": { + "description": "templateName is the name of a template within the Workload object that was used to create a pod group. It must be a DNS label. This field is required.", "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", + "workloadName": { + "description": "workloadName is the name of the Workload object that contains a template that was used when creating a pod group. It must be a DNS name. This field is required.", "type": "string" + } + }, + "required": [ + "workloadName", + "templateName" + ], + "type": "object" + }, + "v1beta1.WorkloadSpec": { + "description": "WorkloadSpec defines the desired state of a Workload.", + "properties": { + "compositePodGroupTemplates": { + "description": "compositePodGroupTemplates is the list of CompositePodGroup templates that make up the Workload. The maximum number of templates is 8. This field is immutable. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.\n\nThis field is used only when the CompositePodGroup feature gate is enabled.", + "items": { + "$ref": "#/definitions/v1beta1.CompositePodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1beta1.StorageVersionMigrationSpec", - "description": "Specification of the migration." - }, - "status": { - "$ref": "#/definitions/v1beta1.StorageVersionMigrationStatus", - "description": "Status of the migration." + "controllerRef": { + "$ref": "#/definitions/v1beta1.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." + }, + "podGroupTemplates": { + "description": "podGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. Templates cannot be added or removed after the workload is created. Existing templates may still be updated where their individual fields allow it. Exactly one of CompositePodGroupTemplates and PodGroupTemplates must be set.", + "items": { + "$ref": "#/definitions/v1beta1.PodGroupTemplate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" } }, + "type": "object" + }, + "v1.CSIDriver": { + "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.", + "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. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.CSIDriverSpec", + "description": "spec represents the specification of the CSI Driver." + } + }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storagemigration.k8s.io", - "kind": "StorageVersionMigration", - "version": "v1beta1" + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" } ] }, - "v1beta1.StorageVersionMigrationList": { - "description": "StorageVersionMigrationList is a collection of storage version migrations.", + "v1.CSIDriverList": { + "description": "CSIDriverList is a collection of CSIDriver 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", "type": "string" }, "items": { - "description": "Items is the list of StorageVersionMigration", + "description": "items is the list of CSIDriver", "items": { - "$ref": "#/definitions/v1beta1.StorageVersionMigration" + "$ref": "#/definitions/v1.CSIDriver" }, "type": "array" }, @@ -21208,184 +22625,268 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storagemigration.k8s.io", - "kind": "StorageVersionMigrationList", - "version": "v1beta1" + "group": "storage.k8s.io", + "kind": "CSIDriverList", + "version": "v1" } ] }, - "v1beta1.StorageVersionMigrationSpec": { - "description": "Spec of the storage version migration.", - "properties": { - "resource": { - "$ref": "#/definitions/v1.GroupResource", - "description": "The resource that is being migrated. The migrator sends requests to the endpoint serving the resource. Immutable." - } - }, - "required": [ - "resource" - ], - "type": "object" - }, - "v1beta1.StorageVersionMigrationStatus": { - "description": "Status of the storage version migration.", + "v1.CSIDriverSpec": { + "description": "CSIDriverSpec is the specification of a CSIDriver.", "properties": { - "conditions": { - "description": "The latest available observations of the migration's current state.", + "attachRequired": { + "description": "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.\n\nThis field is immutable.", + "type": "boolean" + }, + "fsGroupPolicy": { + "description": "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.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.\n\nDefaults 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.", + "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 feature requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", + "format": "int64", + "type": "integer" + }, + "podInfoOnMount": { + "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 a beta 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" + }, + "seLinuxMount": { + "description": "seLinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"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.\n\nWhen \"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.\n\nDefault is \"false\".", + "type": "boolean" + }, + "serviceAccountTokenInSecrets": { + "description": "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.\n\nWhen \"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.\n\nWhen \"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.\n\nThis field can only be set when TokenRequests is configured. The API server will reject CSIDriver specs that set this field without TokenRequests.\n\nDefault behavior if unset is to pass tokens in the VolumeContext field.", + "type": "boolean" + }, + "storageCapacity": { + "description": "storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true.\n\nThe check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field was immutable in Kubernetes <= 1.22 and now is mutable.", + "type": "boolean" + }, + "tokenRequests": { + "description": "tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": {\n \"\": {\n \"token\": ,\n \"expirationTimestamp\": ,\n },\n ...\n}\n\nNote: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.", "items": { - "$ref": "#/definitions/v1.Condition" + "$ref": "#/definitions/storage.v1.TokenRequest" }, "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" + "x-kubernetes-list-type": "atomic" }, - "resourceVersion": { - "description": "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.", - "type": "string" + "volumeLifecycleModes": { + "description": "volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism.\n\nThe other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume.\n\nFor more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future.\n\nThis field is beta. This field is immutable.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" } }, "type": "object" }, - "v1.CustomResourceColumnDefinition": { - "description": "CustomResourceColumnDefinition specifies a column for server side printing.", + "v1.CSINode": { + "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.", "properties": { - "description": { - "description": "description is a human readable description of this column.", - "type": "string" - }, - "format": { - "description": "format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.", + "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" }, - "jsonPath": { - "description": "jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column.", + "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" }, - "name": { - "description": "name is a human readable name for the column.", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "metadata is the standard object metadata. metadata.name must be the Kubernetes node name." }, - "priority": { - "description": "priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0.", - "format": "int32", - "type": "integer" + "spec": { + "$ref": "#/definitions/v1.CSINodeSpec", + "description": "spec is the specification of CSINode" }, - "type": { - "description": "type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.", - "type": "string" + "status": { + "$ref": "#/definitions/v1.CSINodeStatus", + "description": "status contains health and status information for the node's storage." } }, "required": [ - "name", - "type", - "jsonPath" + "spec" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + ] }, - "v1.CustomResourceConversion": { - "description": "CustomResourceConversion describes how to convert different versions of a CR.", + "v1.CSINodeDriver": { + "description": "CSINodeDriver holds information about the specification of one CSI driver installed on a node", "properties": { - "strategy": { - "description": "strategy specifies how custom resources are converted between versions. Allowed values are: - `\"None\"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `\"Webhook\"`: API Server will call to an external webhook to do the conversion. Additional information\n is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.", + "allocatable": { + "$ref": "#/definitions/v1.VolumeNodeResources", + "description": "allocatable represents the volume resources of a node that are available for scheduling. This field is beta." + }, + "name": { + "description": "name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.", "type": "string" }, - "webhook": { - "$ref": "#/definitions/v1.WebhookConversion", - "description": "webhook describes how to call the conversion webhook. Required when `strategy` is set to `\"Webhook\"`." + "nodeID": { + "description": "nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required.", + "type": "string" + }, + "topologyKeys": { + "description": "topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "required": [ - "strategy" + "name", + "nodeID" ], "type": "object" }, - "v1.CustomResourceDefinition": { - "description": "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.", + "v1.CSINodeList": { + "description": "CSINodeList is a collection of CSINode 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", "type": "string" }, + "items": { + "description": "items is the list of CSINode", + "items": { + "$ref": "#/definitions/v1.CSINode" + }, + "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.ObjectMeta", - "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.CustomResourceDefinitionSpec", - "description": "spec describes how the user wants the resources to appear" - }, - "status": { - "$ref": "#/definitions/v1.CustomResourceDefinitionStatus", - "description": "status indicates the actual state of the CustomResourceDefinition" + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "spec" + "items" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", + "group": "storage.k8s.io", + "kind": "CSINodeList", "version": "v1" } ] }, - "v1.CustomResourceDefinitionCondition": { - "description": "CustomResourceDefinitionCondition contains details for the current condition of this pod.", + "v1.CSINodeSpec": { + "description": "CSINodeSpec holds information about the specification of all CSI drivers installed on a node", "properties": { - "lastTransitionTime": { - "description": "lastTransitionTime last time the condition transitioned from one status to another.", - "format": "date-time", + "drivers": { + "description": "drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.", + "items": { + "$ref": "#/definitions/v1.CSINodeDriver" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "required": [ + "drivers" + ], + "type": "object" + }, + "v1.CSINodeStatus": { + "description": "CSINodeStatus contains health and status information for storage on a node.", + "properties": { + "storageHealth": { + "description": "storageHealth contains backend health reports for CSI drivers registered on the node.", + "items": { + "$ref": "#/definitions/v1.StorageHealth" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "v1.CSIStorageCapacity": { + "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.\n\nFor 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\"\n\nThe 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\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey 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.", + "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" }, - "message": { - "description": "message is a human-readable message indicating details about last transition.", + "capacity": { + "description": "capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable.", "type": "string" }, - "observedGeneration": { - "description": "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.", - "format": "int64", - "type": "integer" - }, - "reason": { - "description": "reason is a unique, one-word, CamelCase reason for the condition's last transition.", + "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" }, - "status": { - "description": "status is the status of the condition. Can be True, False, Unknown.", + "maximumVolumeSize": { + "description": "maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim.", "type": "string" }, - "type": { - "description": "type is the type of the condition. Types include Established, NamesAccepted and Terminating.", + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "metadata is the standard object metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "nodeTopology": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable." + }, + "storageClassName": { + "description": "storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.", "type": "string" } }, "required": [ - "type", - "status" + "storageClassName" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" + } + ] }, - "v1.CustomResourceDefinitionList": { - "description": "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.", + "v1.CSIStorageCapacityList": { + "description": "CSIStorageCapacityList is a collection of CSIStorageCapacity 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", "type": "string" }, "items": { - "description": "items list individual CustomResourceDefinition objects", + "description": "items is the list of CSIStorageCapacity objects.", "items": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1.CSIStorageCapacity" }, "type": "array" }, @@ -21395,7 +22896,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -21404,745 +22905,692 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinitionList", + "group": "storage.k8s.io", + "kind": "CSIStorageCapacityList", "version": "v1" } ] }, - "v1.CustomResourceDefinitionNames": { - "description": "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition", + "v1.StorageClass": { + "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", "properties": { - "categories": { - "description": "categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.", + "allowVolumeExpansion": { + "description": "allowVolumeExpansion shows whether the storage class allow volume expand.", + "type": "boolean" + }, + "allowedTopologies": { + "description": "allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.", "items": { - "type": "string" + "$ref": "#/definitions/v1.TopologySelectorTerm" }, "type": "array", "x-kubernetes-list-type": "atomic" }, - "kind": { - "description": "kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.", + "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" }, - "listKind": { - "description": "listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\".", + "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" }, - "plural": { - "description": "plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase.", - "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" }, - "shortNames": { - "description": "shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase.", + "mountOptions": { + "description": "mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.", "items": { "type": "string" }, "type": "array", "x-kubernetes-list-type": "atomic" }, - "singular": { - "description": "singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.", + "parameters": { + "additionalProperties": { + "type": "string" + }, + "description": "parameters holds the parameters for the provisioner that should create volumes of this storage class.", + "type": "object" + }, + "provisioner": { + "description": "provisioner indicates the type of the provisioner.", + "type": "string" + }, + "reclaimPolicy": { + "description": "reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.", + "type": "string" + }, + "volumeBindingMode": { + "description": "volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.", "type": "string" } }, "required": [ - "plural", - "kind" + "provisioner" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "StorageClass", + "version": "v1" + } + ] }, - "v1.CustomResourceDefinitionSpec": { - "description": "CustomResourceDefinitionSpec describes how a user wants their resource to appear", + "v1.StorageClassList": { + "description": "StorageClassList is a collection of storage classes.", "properties": { - "conversion": { - "$ref": "#/definitions/v1.CustomResourceConversion", - "description": "conversion defines conversion settings for the CRD." - }, - "group": { - "description": "group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`).", + "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" }, - "names": { - "$ref": "#/definitions/v1.CustomResourceDefinitionNames", - "description": "names specify the resource and kind names for the custom resource." - }, - "preserveUnknownFields": { - "description": "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.", - "type": "boolean" + "items": { + "description": "items is the list of StorageClasses", + "items": { + "$ref": "#/definitions/v1.StorageClass" + }, + "type": "array" }, - "scope": { - "description": "scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`.", + "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" }, - "versions": { - "description": "versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.", - "items": { - "$ref": "#/definitions/v1.CustomResourceDefinitionVersion" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "group", - "names", - "scope", - "versions" + "items" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "StorageClassList", + "version": "v1" + } + ] }, - "v1.CustomResourceDefinitionStatus": { - "description": "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition", + "v1.StorageHealth": { + "description": "StorageHealth contains storage backend health reported by a CSI driver on a node.", "properties": { - "acceptedNames": { - "$ref": "#/definitions/v1.CustomResourceDefinitionNames", - "description": "acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec." - }, - "conditions": { - "description": "conditions indicate state for particular aspects of a CustomResourceDefinition", - "items": { - "$ref": "#/definitions/v1.CustomResourceDefinitionCondition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - }, - "observedGeneration": { - "description": "The generation observed by the CRD controller.", - "format": "int64", - "type": "integer" - }, - "storedVersions": { - "description": "storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list.", + "healthConditions": { + "description": "healthConditions are the adverse storage backend conditions reported by the CSI driver. At most 16 conditions may be reported.", "items": { - "type": "string" + "$ref": "#/definitions/v1.StorageHealthCondition" }, "type": "array", "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "name is the CSI driver name, matching CSINodeDriver.name.", + "type": "string" } }, + "required": [ + "name" + ], "type": "object" }, - "v1.CustomResourceDefinitionVersion": { - "description": "CustomResourceDefinitionVersion describes a version for CRD.", + "v1.StorageHealthCondition": { + "description": "StorageHealthCondition represents an adverse health condition reported by a CSI driver for its storage backend on a node.", "properties": { - "additionalPrinterColumns": { - "description": "additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used.", - "items": { - "$ref": "#/definitions/v1.CustomResourceColumnDefinition" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "accessMode": { + "description": "accessMode is the access mode affected. Nil means all access modes are affected.", + "type": "string" }, - "deprecated": { - "description": "deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.", - "type": "boolean" - }, - "deprecationWarning": { - "description": "deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.", + "lastTransitionTime": { + "description": "lastTransitionTime is when this condition first appeared at its current state.", + "format": "date-time", "type": "string" }, - "name": { - "description": "name is the version name, e.g. \u201cv1\u201d, \u201cv2beta1\u201d, etc. The custom resources are served under this version at `/apis///...` if `served` is true.", + "message": { + "description": "message is a human-readable description. Maximum permitted length of a message is 1024 characters.", "type": "string" }, - "schema": { - "$ref": "#/definitions/v1.CustomResourceValidation", - "description": "schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource." - }, - "selectableFields": { - "description": "selectableFields specifies paths to fields that may be used as field selectors. A maximum of 8 selectable fields are allowed. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors", - "items": { - "$ref": "#/definitions/v1.SelectableField" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "served": { - "description": "served is a flag enabling/disabling this version from being served via REST APIs", - "type": "boolean" - }, - "storage": { - "description": "storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.", - "type": "boolean" - }, - "subresources": { - "$ref": "#/definitions/v1.CustomResourceSubresources", - "description": "subresources specify what subresources this version of the defined custom resource have." - } - }, - "required": [ - "name", - "served", - "storage" - ], - "type": "object" - }, - "v1.CustomResourceSubresourceScale": { - "description": "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.", - "properties": { - "labelSelectorPath": { - "description": "labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string.", + "reason": { + "description": "reason is a brief CamelCase machine-parseable reason. Maximum permitted length of a reason is 256 characters.", "type": "string" }, - "specReplicasPath": { - "description": "specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.", + "status": { + "description": "status is the health status category. One of \"StorageUnreachable\", \"StorageDegraded\".", "type": "string" }, - "statusReplicasPath": { - "description": "statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0.", + "volumeMode": { + "description": "volumeMode is the volume mode affected. Nil means both are affected.", "type": "string" } }, "required": [ - "specReplicasPath", - "statusReplicasPath" + "status", + "reason" ], "type": "object" }, - "v1.CustomResourceSubresources": { - "description": "CustomResourceSubresources defines the status and scale subresources for CustomResources.", - "properties": { - "scale": { - "$ref": "#/definitions/v1.CustomResourceSubresourceScale", - "description": "scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object." - }, - "status": { - "description": "status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.", - "type": "object" - } - }, - "type": "object" - }, - "v1.CustomResourceValidation": { - "description": "CustomResourceValidation is a list of validation methods for CustomResources.", - "properties": { - "openAPIV3Schema": { - "$ref": "#/definitions/v1.JSONSchemaProps", - "description": "openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning." - } - }, - "type": "object" - }, - "v1.ExternalDocumentation": { - "description": "ExternalDocumentation allows referencing an external resource for extended documentation.", + "storage.v1.TokenRequest": { + "description": "TokenRequest contains parameters of a service account token.", "properties": { - "description": { + "audience": { + "description": "audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver.", "type": "string" }, - "url": { - "type": "string" + "expirationSeconds": { + "description": "expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\".", + "format": "int64", + "type": "integer" } }, + "required": [ + "audience" + ], "type": "object" }, - "v1.JSONSchemaProps": { - "description": "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).", + "v1.VolumeAttachment": { + "description": "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.\n\nVolumeAttachment objects are non-namespaced.", "properties": { - "$ref": { - "type": "string" - }, - "$schema": { + "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" }, - "additionalItems": { - "description": "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.", - "type": "object" - }, - "additionalProperties": { - "description": "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.", - "type": "object" - }, - "allOf": { - "items": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "anyOf": { - "items": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "default": { - "description": "default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false.", - "type": "object" - }, - "definitions": { - "additionalProperties": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "type": "object" - }, - "dependencies": { - "additionalProperties": { - "description": "JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.", - "type": "object" - }, - "type": "object" - }, - "description": { + "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" }, - "enum": { - "items": { - "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.", - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "example": { - "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.", - "type": "object" - }, - "exclusiveMaximum": { - "type": "boolean" - }, - "exclusiveMinimum": { - "type": "boolean" - }, - "externalDocs": { - "$ref": "#/definitions/v1.ExternalDocumentation" + "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" }, - "format": { - "description": "format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:\n\n- bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like \"0321751043\" or \"978-0321751041\" - isbn10: an ISBN10 number string like \"0321751043\" - isbn13: an ISBN13 number string like \"978-0321751041\" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\\\d{3})\\\\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\\\\d{3}[- ]?\\\\d{2}[- ]?\\\\d{4}$ - hexcolor: an hexadecimal color code like \"#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like \"rgb(255,255,2559\" - byte: base64 encoded binary data - password: any kind of string - date: a date string like \"2006-01-02\" as defined by full-date in RFC3339 - duration: a duration string like \"22 ns\" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like \"2014-12-15T19:30:20.000Z\" as defined by date-time in RFC3339.", - "type": "string" + "spec": { + "$ref": "#/definitions/v1.VolumeAttachmentSpec", + "description": "spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system." }, - "id": { + "status": { + "$ref": "#/definitions/v1.VolumeAttachmentStatus", + "description": "status represents status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + ] + }, + "v1.VolumeAttachmentList": { + "description": "VolumeAttachmentList is a collection of VolumeAttachment 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", "type": "string" }, "items": { - "description": "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.", - "type": "object" - }, - "maxItems": { - "format": "int64", - "type": "integer" - }, - "maxLength": { - "format": "int64", - "type": "integer" - }, - "maxProperties": { - "format": "int64", - "type": "integer" - }, - "maximum": { - "format": "double", - "type": "number" - }, - "minItems": { - "format": "int64", - "type": "integer" - }, - "minLength": { - "format": "int64", - "type": "integer" - }, - "minProperties": { - "format": "int64", - "type": "integer" - }, - "minimum": { - "format": "double", - "type": "number" - }, - "multipleOf": { - "format": "double", - "type": "number" - }, - "not": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "nullable": { - "type": "boolean" - }, - "oneOf": { - "items": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "pattern": { - "type": "string" - }, - "patternProperties": { - "additionalProperties": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "type": "object" - }, - "properties": { - "additionalProperties": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "type": "object" - }, - "required": { - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "title": { - "type": "string" - }, - "type": { - "type": "string" - }, - "uniqueItems": { - "type": "boolean" - }, - "x-kubernetes-embedded-resource": { - "description": "x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).", - "type": "boolean" - }, - "x-kubernetes-int-or-string": { - "description": "x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:\n\n1) anyOf:\n - type: integer\n - type: string\n2) allOf:\n - anyOf:\n - type: integer\n - type: string\n - ... zero or more", - "type": "boolean" - }, - "x-kubernetes-list-map-keys": { - "description": "x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map.\n\nThis tag MUST only be used on lists that have the \"x-kubernetes-list-type\" extension set to \"map\". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported).\n\nThe properties specified must either be required or have a default value, to ensure those properties are present for all list items.", + "description": "items is the list of VolumeAttachments", "items": { - "type": "string" + "$ref": "#/definitions/v1.VolumeAttachment" }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "x-kubernetes-list-type": { - "description": "x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values:\n\n1) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic lists will be entirely replaced when updated. This extension\n may be used on any type of list (struct, scalar, ...).\n2) `set`:\n Sets are lists that must not have multiple items with the same value. Each\n value must be a scalar, an object with x-kubernetes-map-type `atomic` or an\n array with x-kubernetes-list-type `atomic`.\n3) `map`:\n These lists are like maps in that their elements have a non-index key\n used to identify them. Order is preserved upon merge. The map tag\n must only be used on a list with elements of type object.\nDefaults to atomic for arrays.", - "type": "string" + "type": "array" }, - "x-kubernetes-map-type": { - "description": "x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values:\n\n1) `granular`:\n These maps are actual maps (key-value pairs) and each fields are independent\n from each other (they can each be manipulated by separate actors). This is\n the default behaviour for all maps.\n2) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic maps will be entirely replaced when updated.", + "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" }, - "x-kubernetes-preserve-unknown-fields": { - "description": "x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.", - "type": "boolean" - }, - "x-kubernetes-validations": { - "description": "x-kubernetes-validations describes a list of validation rules written in the CEL expression language.", - "items": { - "$ref": "#/definitions/v1.ValidationRule" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "rule" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "rule", - "x-kubernetes-patch-strategy": "merge" - } - }, - "type": "object" - }, - "v1.SelectableField": { - "description": "SelectableField specifies the JSON path of a field that may be used with field selectors.", - "properties": { - "jsonPath": { - "description": "jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required.", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "jsonPath" + "items" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttachmentList", + "version": "v1" + } + ] }, - "apiextensions.v1.ServiceReference": { - "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "v1.VolumeAttachmentSource": { + "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.", "properties": { - "name": { - "description": "name is the name of the service. Required", - "type": "string" - }, - "namespace": { - "description": "namespace is the namespace of the service. Required", - "type": "string" + "inlineVolumeSpec": { + "$ref": "#/definitions/v1.PersistentVolumeSpec", + "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature." }, - "path": { - "description": "path is an optional URL path at which the webhook will be contacted.", + "persistentVolumeName": { + "description": "persistentVolumeName represents the name of the persistent volume to attach.", "type": "string" - }, - "port": { - "description": "port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.", - "format": "int32", - "type": "integer" } }, - "required": [ - "namespace", - "name" - ], "type": "object" }, - "v1.ValidationRule": { - "description": "ValidationRule describes a validation rule written in the CEL expression language.", + "v1.VolumeAttachmentSpec": { + "description": "VolumeAttachmentSpec is the specification of a VolumeAttachment request.", "properties": { - "fieldPath": { - "description": "fieldPath represents the field path returned when the validation fails. It must be a relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing field currently. Refer to [JSONPath support in Kubernetes](https://kubernetes.io/docs/reference/kubectl/jsonpath/) for more info. Numeric index of array is not supported. For field name which contains special characters, use `['specialName']` to refer the field name. e.g. for attribute `foo.34$` appears in a list `testList`, the fieldPath could be set to `.testList['foo.34$']`", - "type": "string" - }, - "message": { - "description": "Message represents the message displayed when validation fails. The message is required if the Rule 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\"", - "type": "string" - }, - "messageExpression": { - "description": "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 rule, 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 rule; the only difference is the return type. Example: \"x must be less than max (\"+string(self.max)+\")\"", + "attacher": { + "description": "attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().", "type": "string" }, - "optionalOldSelf": { - "description": "optionalOldSelf is used to opt a transition rule into evaluation even when the object is first created, or if the old object is missing the value.\n\nWhen enabled `oldSelf` will be a CEL optional whose value will be `None` if there is no old value, or when the object is initially created.\n\nYou may check for presence of oldSelf using `oldSelf.hasValue()` and unwrap it after checking using `oldSelf.value()`. Check the CEL documentation for Optional types for more information: https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes\n\nMay not be set unless `oldSelf` is used in `rule`.", - "type": "boolean" - }, - "reason": { - "description": "reason provides a machine-readable validation failure reason that is returned to the caller when a request fails this validation rule. The HTTP status code returned to the caller will match the reason of the reason of the first failed validation rule. The currently supported reasons are: \"FieldValueInvalid\", \"FieldValueForbidden\", \"FieldValueRequired\", \"FieldValueDuplicate\". If not set, default to use \"FieldValueInvalid\". All future added reasons must be accepted by clients when reading this value and unknown reasons should be treated as FieldValueInvalid.", + "nodeName": { + "description": "nodeName represents the node that the volume should be attached to.", "type": "string" }, - "rule": { - "description": "Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {\"rule\": \"self.status.actual <= self.spec.maxDesired\"}\n\nIf the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {\"rule\": \"self.components['Widget'].priority < 10\"} - Rule scoped to a list of integers: {\"rule\": \"self.values.all(value, value >= 0 && value < 100)\"} - Rule scoped to a string value: {\"rule\": \"self.startsWith('kube')\"}\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible.\n\nUnknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an \"unknown type\". An \"unknown type\" is recursively defined as:\n - A schema with no type and x-kubernetes-preserve-unknown-fields set to true\n - An array where the items schema is of an \"unknown type\"\n - An object where the additionalProperties schema is of an \"unknown type\"\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 - Rule accessing a property named \"namespace\": {\"rule\": \"self.__namespace__ > 0\"}\n - Rule accessing a property named \"x-prop\": {\"rule\": \"self.x__dash__prop > 0\"}\n - Rule accessing a property named \"redact__d\": {\"rule\": \"self.redact__underscores__d > 0\"}\n\nEquality on arrays with x-kubernetes-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.\n\nIf `rule` makes use of the `oldSelf` variable it is implicitly a `transition rule`.\n\nBy default, the `oldSelf` variable is the same type as `self`. When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional\n variable whose value() is the same type as `self`.\nSee the documentation for the `optionalOldSelf` field for details.\n\nTransition rules by default are applied only on UPDATE requests and are skipped if an old value could not be found. You can opt a transition rule into unconditional evaluation by setting `optionalOldSelf` to true.", - "type": "string" + "source": { + "$ref": "#/definitions/v1.VolumeAttachmentSource", + "description": "source represents the volume that should be attached." } }, "required": [ - "rule" + "attacher", + "source", + "nodeName" ], "type": "object" }, - "apiextensions.v1.WebhookClientConfig": { - "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook.", + "v1.VolumeAttachmentStatus": { + "description": "VolumeAttachmentStatus is the status of a VolumeAttachment request.", "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.", - "format": "byte", - "type": "string" - }, - "service": { - "$ref": "#/definitions/apiextensions.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`." + "attachError": { + "$ref": "#/definitions/v1.VolumeError", + "description": "attachError represents the last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher." }, - "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.", - "type": "string" - } - }, - "type": "object" - }, - "v1.WebhookConversion": { - "description": "WebhookConversion describes how to call a conversion webhook", - "properties": { - "clientConfig": { - "$ref": "#/definitions/apiextensions.v1.WebhookClientConfig", - "description": "clientConfig is the instructions for how to call the webhook if strategy is `Webhook`." + "attached": { + "description": "attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", + "type": "boolean" }, - "conversionReviewVersions": { - "description": "conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. 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.", - "items": { + "attachmentMetadata": { + "additionalProperties": { "type": "string" }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "description": "attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", + "type": "object" + }, + "detachError": { + "$ref": "#/definitions/v1.VolumeError", + "description": "detachError represents the last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher." } }, "required": [ - "conversionReviewVersions" + "attached" ], "type": "object" }, - "v1.APIGroup": { - "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", + "v1.VolumeAttributesClass": { + "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.", "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", + "driverName": { + "description": "driverName is the name of the CSI driver This field is immutable.", "type": "string" }, - "name": { - "description": "name is the name of the group.", + "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" }, - "preferredVersion": { - "$ref": "#/definitions/v1.GroupVersionForDiscovery", - "description": "preferredVersion is the version preferred by the API server, which probably is the storage version." - }, - "serverAddressByClientCIDRs": { - "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", - "items": { - "$ref": "#/definitions/v1.ServerAddressByClientCIDR" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "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" }, - "versions": { - "description": "versions are the versions supported in this group.", - "items": { - "$ref": "#/definitions/v1.GroupVersionForDiscovery" + "parameters": { + "additionalProperties": { + "type": "string" }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "description": "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\n\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.", + "type": "object" } }, "required": [ - "name", - "versions" + "driverName" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "APIGroup", + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", "version": "v1" } ] }, - "v1.APIGroupList": { - "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", + "v1.VolumeAttributesClassList": { + "description": "VolumeAttributesClassList is a collection of VolumeAttributesClass 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", "type": "string" }, - "groups": { - "description": "groups is a list of APIGroup.", + "items": { + "description": "items is the list of VolumeAttributesClass objects.", "items": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/v1.VolumeAttributesClass" }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "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 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } }, "required": [ - "groups" + "items" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "APIGroupList", + "group": "storage.k8s.io", + "kind": "VolumeAttributesClassList", "version": "v1" } ] }, - "v1.APIResource": { - "description": "APIResource specifies the name of a resource and whether it is namespaced.", + "v1.VolumeError": { + "description": "VolumeError captures an error encountered during a volume operation.", "properties": { - "categories": { - "description": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "errorCode": { + "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" }, - "group": { - "description": "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".", + "message": { + "description": "message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.", "type": "string" }, - "kind": { - "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", + "time": { + "description": "time represents the time the error was encountered.", + "format": "date-time", "type": "string" - }, - "name": { - "description": "name is the plural name of the resource.", + } + }, + "type": "object" + }, + "v1.VolumeNodeResources": { + "description": "VolumeNodeResources is a set of resource limits for scheduling of volumes.", + "properties": { + "count": { + "description": "count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "v1.StorageVersionMigration": { + "description": "StorageVersionMigration represents a migration of stored data to the latest storage version.", + "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" }, - "namespaced": { - "description": "namespaced indicates if a resource is namespaced or not.", - "type": "boolean" + "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" }, - "shortNames": { - "description": "shortNames is a list of suggested short names of the resource.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "singularName": { - "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.", - "type": "string" + "spec": { + "$ref": "#/definitions/v1.StorageVersionMigrationSpec", + "description": "Specification of the migration." }, - "storageVersionHash": { - "description": "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.", + "status": { + "$ref": "#/definitions/v1.StorageVersionMigrationStatus", + "description": "Status of the migration." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" + } + ] + }, + "v1.StorageVersionMigrationList": { + "description": "StorageVersionMigrationList is a collection of storage version migrations.", + "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" }, - "verbs": { - "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", + "items": { + "description": "Items is the list of StorageVersionMigration", "items": { - "type": "string" + "$ref": "#/definitions/v1.StorageVersionMigration" }, "type": "array" }, - "version": { - "description": "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".", + "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 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "name", - "singularName", - "namespaced", - "kind", - "verbs" + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigrationList", + "version": "v1" + } + ] + }, + "v1.StorageVersionMigrationSpec": { + "description": "Spec of the storage version migration.", + "properties": { + "resource": { + "$ref": "#/definitions/v1.GroupResource", + "description": "The resource that is being migrated. The migrator sends requests to the endpoint serving the resource. Immutable." + } + }, + "required": [ + "resource" ], "type": "object" }, - "v1.APIResourceList": { - "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.", + "v1.StorageVersionMigrationStatus": { + "description": "Status of the storage version migration.", + "properties": { + "conditions": { + "description": "The latest available observations of the migration's current state.", + "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" + }, + "resourceVersion": { + "description": "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.", + "type": "string" + } + }, + "type": "object" + }, + "v1beta1.StorageVersionMigration": { + "description": "StorageVersionMigration represents a migration of stored data to the latest storage version.", "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" }, - "groupVersion": { - "description": "groupVersion is the group and version this APIResourceList is for.", - "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" }, - "resources": { - "description": "resources contains the name of the resources and if they are namespaced.", + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1beta1.StorageVersionMigrationSpec", + "description": "Specification of the migration." + }, + "status": { + "$ref": "#/definitions/v1beta1.StorageVersionMigrationStatus", + "description": "Status of the migration." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1beta1" + } + ] + }, + "v1beta1.StorageVersionMigrationList": { + "description": "StorageVersionMigrationList is a collection of storage version migrations.", + "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 StorageVersionMigration", "items": { - "$ref": "#/definitions/v1.APIResource" + "$ref": "#/definitions/v1beta1.StorageVersionMigration" }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "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 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "groupVersion", - "resources" + "items" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "APIResourceList", - "version": "v1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigrationList", + "version": "v1beta1" } ] }, - "v1.APIVersions": { - "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.", + "v1beta1.StorageVersionMigrationSpec": { + "description": "Spec of the storage version migration.", + "properties": { + "resource": { + "$ref": "#/definitions/v1.GroupResource", + "description": "The resource that is being migrated. The migrator sends requests to the endpoint serving the resource. Immutable." + } + }, + "required": [ + "resource" + ], + "type": "object" + }, + "v1beta1.StorageVersionMigrationStatus": { + "description": "Status of the storage version migration.", + "properties": { + "conditions": { + "description": "The latest available observations of the migration's current state.", + "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" + }, + "resourceVersion": { + "description": "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.", + "type": "string" + } + }, + "type": "object" + }, + "v1.CustomResourceColumnDefinition": { + "description": "CustomResourceColumnDefinition specifies a column for server side printing.", + "properties": { + "description": { + "description": "description is a human readable description of this column.", + "type": "string" + }, + "format": { + "description": "format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.", + "type": "string" + }, + "jsonPath": { + "description": "jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column.", + "type": "string" + }, + "name": { + "description": "name is a human readable name for the column.", + "type": "string" + }, + "priority": { + "description": "priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0.", + "format": "int32", + "type": "integer" + }, + "type": { + "description": "type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.", + "type": "string" + } + }, + "required": [ + "name", + "type", + "jsonPath" + ], + "type": "object" + }, + "v1.CustomResourceConversion": { + "description": "CustomResourceConversion describes how to convert different versions of a CR.", + "properties": { + "strategy": { + "description": "strategy specifies how custom resources are converted between versions. Allowed values are: - `\"None\"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `\"Webhook\"`: API Server will call to an external webhook to do the conversion. Additional information\n is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.", + "type": "string" + }, + "webhook": { + "$ref": "#/definitions/v1.WebhookConversion", + "description": "webhook describes how to call the conversion webhook. Required when `strategy` is set to `\"Webhook\"`." + } + }, + "required": [ + "strategy" + ], + "type": "object" + }, + "v1.CustomResourceDefinition": { + "description": "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.", "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", @@ -22152,46 +23600,41 @@ "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" }, - "serverAddressByClientCIDRs": { - "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", - "items": { - "$ref": "#/definitions/v1.ServerAddressByClientCIDR" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "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" }, - "versions": { - "description": "versions are the api versions that are available.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "spec": { + "$ref": "#/definitions/v1.CustomResourceDefinitionSpec", + "description": "spec describes how the user wants the resources to appear" + }, + "status": { + "$ref": "#/definitions/v1.CustomResourceDefinitionStatus", + "description": "status indicates the actual state of the CustomResourceDefinition" } }, "required": [ - "versions", - "serverAddressByClientCIDRs" + "spec" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "APIVersions", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } ] }, - "v1.Condition": { - "description": "Condition contains details for one aspect of the current state of this API Resource.", + "v1.CustomResourceDefinitionCondition": { + "description": "CustomResourceDefinitionCondition contains details for the current condition of this pod.", "properties": { "lastTransitionTime": { - "description": "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.", + "description": "lastTransitionTime last time the condition transitioned from one status to another.", "format": "date-time", "type": "string" }, "message": { - "description": "message is a human readable message indicating details about the transition. This may be an empty string.", + "description": "message is a human-readable message indicating details about last transition.", "type": "string" }, "observedGeneration": { @@ -22200,385 +23643,166 @@ "type": "integer" }, "reason": { - "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.", + "description": "reason is a unique, one-word, CamelCase reason for the condition's last transition.", "type": "string" }, "status": { - "description": "status of the condition, one of True, False, Unknown.", + "description": "status is the status of the condition. Can be True, False, Unknown.", "type": "string" }, "type": { - "description": "type of condition in CamelCase or in foo.example.com/CamelCase.", + "description": "type is the type of the condition. Types include Established, NamesAccepted and Terminating.", "type": "string" } }, "required": [ "type", - "status", - "lastTransitionTime", - "reason", - "message" + "status" ], "type": "object" }, - "v1.DeleteOptions": { - "description": "DeleteOptions may be provided when deleting an API object.", + "v1.CustomResourceDefinitionList": { + "description": "CustomResourceDefinitionList is a list of CustomResourceDefinition 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", "type": "string" }, - "dryRun": { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "items": { + "description": "items list individual CustomResourceDefinition objects", "items": { - "type": "string" + "$ref": "#/definitions/v1.CustomResourceDefinition" }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "gracePeriodSeconds": { - "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.", - "format": "int64", - "type": "integer" - }, - "ignoreStoreReadErrorWithClusterBreakingPotential": { - "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": "boolean" + "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" }, - "orphanDependents": { - "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": "boolean" - }, - "preconditions": { - "$ref": "#/definitions/v1.Preconditions", - "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned." - }, - "propagationPolicy": { - "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" + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, + "required": [ + "items" + ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "admission.k8s.io", - "kind": "DeleteOptions", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinitionList", "version": "v1" + } + ] + }, + "v1.CustomResourceDefinitionNames": { + "description": "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition", + "properties": { + "categories": { + "description": "categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - { - "group": "admission.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "admissionregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "kind": { + "description": "kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.", + "type": "string" }, - { - "group": "admissionregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" + "listKind": { + "description": "listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\".", + "type": "string" }, - { - "group": "admissionregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "plural": { + "description": "plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase.", + "type": "string" }, - { - "group": "apiextensions.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "shortNames": { + "description": "shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - { - "group": "apiextensions.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "singular": { + "description": "singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.", + "type": "string" + } + }, + "required": [ + "plural", + "kind" + ], + "type": "object" + }, + "v1.CustomResourceDefinitionSpec": { + "description": "CustomResourceDefinitionSpec describes how a user wants their resource to appear", + "properties": { + "conversion": { + "$ref": "#/definitions/v1.CustomResourceConversion", + "description": "conversion defines conversion settings for the CRD." }, - { - "group": "apiregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "group": { + "description": "group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`).", + "type": "string" }, - { - "group": "apiregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "names": { + "$ref": "#/definitions/v1.CustomResourceDefinitionNames", + "description": "names specify the resource and kind names for the custom resource." }, - { - "group": "apps", - "kind": "DeleteOptions", - "version": "v1" + "preserveUnknownFields": { + "description": "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.", + "type": "boolean" }, - { - "group": "apps", - "kind": "DeleteOptions", - "version": "v1beta1" + "scope": { + "description": "scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`.", + "type": "string" }, - { - "group": "apps", - "kind": "DeleteOptions", - "version": "v1beta2" - }, - { - "group": "authentication.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "authentication.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "authentication.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "autoscaling", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "autoscaling", - "kind": "DeleteOptions", - "version": "v2" - }, - { - "group": "batch", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "batch", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "certificates.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "certificates.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "certificates.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "coordination.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "coordination.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha2" - }, - { - "group": "coordination.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "discovery.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "discovery.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "events.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "events.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "extensions", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta2" - }, - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta3" - }, - { - "group": "imagepolicy.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "internal.apiserver.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "networking.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "networking.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "node.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "node.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "node.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "policy", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "policy", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "rbac.authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "rbac.authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "rbac.authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "resource.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "resource.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha3" - }, - { - "group": "resource.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "resource.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta2" - }, - { - "group": "scheduling.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "scheduling.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha2" - }, - { - "group": "scheduling.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "storage.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "storage.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "storage.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "storagemigration.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "versions": { + "description": "versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.", + "items": { + "$ref": "#/definitions/v1.CustomResourceDefinitionVersion" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } - ] + }, + "required": [ + "group", + "names", + "scope", + "versions" + ], + "type": "object" }, - "v1.FieldSelectorRequirement": { - "description": "FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values.", + "v1.CustomResourceDefinitionStatus": { + "description": "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition", "properties": { - "key": { - "description": "key is the field selector key that the requirement applies to.", - "type": "string" + "acceptedNames": { + "$ref": "#/definitions/v1.CustomResourceDefinitionNames", + "description": "acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec." }, - "operator": { - "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.", - "type": "string" + "conditions": { + "description": "conditions indicate state for particular aspects of a CustomResourceDefinition", + "items": { + "$ref": "#/definitions/v1.CustomResourceDefinitionCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.", + "observedGeneration": { + "description": "The generation observed by the CRD controller.", + "format": "int64", + "type": "integer" + }, + "storedVersions": { + "description": "storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list.", "items": { "type": "string" }, @@ -22586,2554 +23810,2466 @@ "x-kubernetes-list-type": "atomic" } }, - "required": [ - "key", - "operator" - ], "type": "object" }, - "v1.GroupResource": { - "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", + "v1.CustomResourceDefinitionVersion": { + "description": "CustomResourceDefinitionVersion describes a version for CRD.", "properties": { - "group": { + "additionalPrinterColumns": { + "description": "additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used.", + "items": { + "$ref": "#/definitions/v1.CustomResourceColumnDefinition" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "deprecated": { + "description": "deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.", + "type": "boolean" + }, + "deprecationWarning": { + "description": "deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.", "type": "string" }, - "resource": { + "name": { + "description": "name is the version name, e.g. \u201cv1\u201d, \u201cv2beta1\u201d, etc. The custom resources are served under this version at `/apis///...` if `served` is true.", "type": "string" + }, + "schema": { + "$ref": "#/definitions/v1.CustomResourceValidation", + "description": "schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource." + }, + "selectableFields": { + "description": "selectableFields specifies paths to fields that may be used as field selectors. A maximum of 8 selectable fields are allowed. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors", + "items": { + "$ref": "#/definitions/v1.SelectableField" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "served": { + "description": "served is a flag enabling/disabling this version from being served via REST APIs", + "type": "boolean" + }, + "storage": { + "description": "storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.", + "type": "boolean" + }, + "subresources": { + "$ref": "#/definitions/v1.CustomResourceSubresources", + "description": "subresources specify what subresources this version of the defined custom resource have." } }, "required": [ - "group", - "resource" + "name", + "served", + "storage" ], "type": "object" }, - "v1.GroupVersionForDiscovery": { - "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", + "v1.CustomResourceSubresourceScale": { + "description": "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.", "properties": { - "groupVersion": { - "description": "groupVersion specifies the API group and version in the form \"group/version\"", + "labelSelectorPath": { + "description": "labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string.", "type": "string" }, - "version": { - "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", + "specReplicasPath": { + "description": "specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.", + "type": "string" + }, + "statusReplicasPath": { + "description": "statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0.", "type": "string" } }, "required": [ - "groupVersion", - "version" + "specReplicasPath", + "statusReplicasPath" ], "type": "object" }, - "v1.LabelSelector": { - "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.", + "v1.CustomResourceSubresources": { + "description": "CustomResourceSubresources defines the status and scale subresources for CustomResources.", "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "$ref": "#/definitions/v1.LabelSelectorRequirement" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "scale": { + "$ref": "#/definitions/v1.CustomResourceSubresourceScale", + "description": "scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object." }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "status": { + "description": "status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.", "type": "object" } }, - "type": "object", - "x-kubernetes-map-type": "atomic" + "type": "object" }, - "v1.LabelSelectorRequirement": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "v1.CustomResourceValidation": { + "description": "CustomResourceValidation is a list of validation methods for CustomResources.", "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "openAPIV3Schema": { + "$ref": "#/definitions/v1.JSONSchemaProps", + "description": "openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning." } }, - "required": [ - "key", - "operator" - ], "type": "object" }, - "v1.ListMeta": { - "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", + "v1.ExternalDocumentation": { + "description": "ExternalDocumentation allows referencing an external resource for extended documentation.", "properties": { - "continue": { - "description": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.", - "type": "string" - }, - "remainingItemCount": { - "description": "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.", - "format": "int64", - "type": "integer" - }, - "resourceVersion": { - "description": "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", + "description": { "type": "string" }, - "selfLink": { - "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "url": { "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" }, - "v1.ManagedFieldsEntry": { - "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", + "v1.JSONSchemaProps": { + "description": "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).", "properties": { - "apiVersion": { - "description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.", + "$ref": { "type": "string" }, - "fieldsType": { - "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", + "$schema": { "type": "string" }, - "fieldsV1": { - "description": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.", + "additionalItems": { + "description": "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.", "type": "object" }, - "manager": { - "description": "Manager is an identifier of the workflow managing these fields.", - "type": "string" + "additionalProperties": { + "description": "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.", + "type": "object" }, - "operation": { - "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", - "type": "string" + "allOf": { + "items": { + "$ref": "#/definitions/v1.JSONSchemaProps" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "subresource": { - "description": "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.", - "type": "string" + "anyOf": { + "items": { + "$ref": "#/definitions/v1.JSONSchemaProps" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "time": { - "description": "Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over.", - "format": "date-time", - "type": "string" - } - }, - "type": "object" - }, - "v1.ObjectMeta": { - "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", - "properties": { - "annotations": { + "default": { + "description": "default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false.", + "type": "object" + }, + "definitions": { "additionalProperties": { - "type": "string" + "$ref": "#/definitions/v1.JSONSchemaProps" }, - "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations", "type": "object" }, - "creationTimestamp": { - "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "format": "date-time", - "type": "string" - }, - "deletionGracePeriodSeconds": { - "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", - "format": "int64", - "type": "integer" + "dependencies": { + "additionalProperties": { + "description": "JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.", + "type": "object" + }, + "type": "object" }, - "deletionTimestamp": { - "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "format": "date-time", + "description": { "type": "string" }, - "finalizers": { - "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", + "enum": { "items": { - "type": "string" + "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.", + "type": "object" }, "type": "array", - "x-kubernetes-list-type": "set", - "x-kubernetes-patch-strategy": "merge" + "x-kubernetes-list-type": "atomic" }, - "generateName": { - "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", + "example": { + "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.", + "type": "object" + }, + "exclusiveMaximum": { + "type": "boolean" + }, + "exclusiveMinimum": { + "type": "boolean" + }, + "externalDocs": { + "$ref": "#/definitions/v1.ExternalDocumentation" + }, + "format": { + "description": "format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:\n\n- bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like \"0321751043\" or \"978-0321751041\" - isbn10: an ISBN10 number string like \"0321751043\" - isbn13: an ISBN13 number string like \"978-0321751041\" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\\\d{3})\\\\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\\\\d{3}[- ]?\\\\d{2}[- ]?\\\\d{4}$ - hexcolor: an hexadecimal color code like \"#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like \"rgb(255,255,2559\" - byte: base64 encoded binary data - password: any kind of string - date: a date string like \"2006-01-02\" as defined by full-date in RFC3339 - duration: a duration string like \"22 ns\" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like \"2014-12-15T19:30:20.000Z\" as defined by date-time in RFC3339.", "type": "string" }, - "generation": { - "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", + "id": { + "type": "string" + }, + "items": { + "description": "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.", + "type": "object" + }, + "maxItems": { "format": "int64", "type": "integer" }, - "labels": { + "maxLength": { + "format": "int64", + "type": "integer" + }, + "maxProperties": { + "format": "int64", + "type": "integer" + }, + "maximum": { + "format": "double", + "type": "number" + }, + "minItems": { + "format": "int64", + "type": "integer" + }, + "minLength": { + "format": "int64", + "type": "integer" + }, + "minProperties": { + "format": "int64", + "type": "integer" + }, + "minimum": { + "format": "double", + "type": "number" + }, + "multipleOf": { + "format": "double", + "type": "number" + }, + "not": { + "$ref": "#/definitions/v1.JSONSchemaProps" + }, + "nullable": { + "type": "boolean" + }, + "oneOf": { + "items": { + "$ref": "#/definitions/v1.JSONSchemaProps" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "pattern": { + "type": "string" + }, + "patternProperties": { "additionalProperties": { - "type": "string" + "$ref": "#/definitions/v1.JSONSchemaProps" }, - "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels", "type": "object" }, - "managedFields": { - "description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", + "properties": { + "additionalProperties": { + "$ref": "#/definitions/v1.JSONSchemaProps" + }, + "type": "object" + }, + "required": { "items": { - "$ref": "#/definitions/v1.ManagedFieldsEntry" + "type": "string" }, "type": "array", "x-kubernetes-list-type": "atomic" }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", + "title": { "type": "string" }, - "namespace": { - "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces", + "type": { "type": "string" }, - "ownerReferences": { - "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", + "uniqueItems": { + "type": "boolean" + }, + "x-kubernetes-embedded-resource": { + "description": "x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).", + "type": "boolean" + }, + "x-kubernetes-int-or-string": { + "description": "x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:\n\n1) anyOf:\n - type: integer\n - type: string\n2) allOf:\n - anyOf:\n - type: integer\n - type: string\n - ... zero or more", + "type": "boolean" + }, + "x-kubernetes-list-map-keys": { + "description": "x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map.\n\nThis tag MUST only be used on lists that have the \"x-kubernetes-list-type\" extension set to \"map\". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported).\n\nThe properties specified must either be required or have a default value, to ensure those properties are present for all list items.", "items": { - "$ref": "#/definitions/v1.OwnerReference" + "type": "string" }, "type": "array", - "x-kubernetes-list-map-keys": [ - "uid" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "uid", - "x-kubernetes-patch-strategy": "merge" + "x-kubernetes-list-type": "atomic" }, - "resourceVersion": { - "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "x-kubernetes-list-type": { + "description": "x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values:\n\n1) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic lists will be entirely replaced when updated. This extension\n may be used on any type of list (struct, scalar, ...).\n2) `set`:\n Sets are lists that must not have multiple items with the same value. Each\n value must be a scalar, an object with x-kubernetes-map-type `atomic` or an\n array with x-kubernetes-list-type `atomic`.\n3) `map`:\n These lists are like maps in that their elements have a non-index key\n used to identify them. Order is preserved upon merge. The map tag\n must only be used on a list with elements of type object.\nDefaults to atomic for arrays.", "type": "string" }, - "selfLink": { - "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "x-kubernetes-map-type": { + "description": "x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values:\n\n1) `granular`:\n These maps are actual maps (key-value pairs) and each fields are independent\n from each other (they can each be manipulated by separate actors). This is\n the default behaviour for all maps.\n2) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic maps will be entirely replaced when updated.", "type": "string" }, - "uid": { - "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "x-kubernetes-preserve-unknown-fields": { + "description": "x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.", + "type": "boolean" + }, + "x-kubernetes-validations": { + "description": "x-kubernetes-validations describes a list of validation rules written in the CEL expression language.", + "items": { + "$ref": "#/definitions/v1.ValidationRule" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "rule" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "rule", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "v1.SelectableField": { + "description": "SelectableField specifies the JSON path of a field that may be used with field selectors.", + "properties": { + "jsonPath": { + "description": "jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required.", "type": "string" } }, + "required": [ + "jsonPath" + ], "type": "object" }, - "v1.OwnerReference": { - "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.", + "apiextensions.v1.ServiceReference": { + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", "properties": { - "apiVersion": { - "description": "API version of the referent.", + "name": { + "description": "name is the name of the service. Required", "type": "string" }, - "blockOwnerDeletion": { - "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", - "type": "boolean" - }, - "controller": { - "description": "If true, this reference points to the managing controller.", - "type": "boolean" - }, - "kind": { - "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "namespace": { + "description": "namespace is the namespace of the service. Required", "type": "string" }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", + "path": { + "description": "path is an optional URL path at which the webhook will be contacted.", "type": "string" }, - "uid": { - "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", - "type": "string" + "port": { + "description": "port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.", + "format": "int32", + "type": "integer" } }, "required": [ - "apiVersion", - "kind", - "name", - "uid" + "namespace", + "name" ], - "type": "object", - "x-kubernetes-map-type": "atomic" + "type": "object" }, - "v1.Preconditions": { - "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", + "v1.ValidationRule": { + "description": "ValidationRule describes a validation rule written in the CEL expression language.", "properties": { - "resourceVersion": { - "description": "Specifies the target ResourceVersion", + "fieldPath": { + "description": "fieldPath represents the field path returned when the validation fails. It must be a relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing field currently. Refer to [JSONPath support in Kubernetes](https://kubernetes.io/docs/reference/kubectl/jsonpath/) for more info. Numeric index of array is not supported. For field name which contains special characters, use `['specialName']` to refer the field name. e.g. for attribute `foo.34$` appears in a list `testList`, the fieldPath could be set to `.testList['foo.34$']`", "type": "string" }, - "uid": { - "description": "Specifies the target UID.", + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Rule 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\"", + "type": "string" + }, + "messageExpression": { + "description": "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 rule, 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 rule; the only difference is the return type. Example: \"x must be less than max (\"+string(self.max)+\")\"", + "type": "string" + }, + "optionalOldSelf": { + "description": "optionalOldSelf is used to opt a transition rule into evaluation even when the object is first created, or if the old object is missing the value.\n\nWhen enabled `oldSelf` will be a CEL optional whose value will be `None` if there is no old value, or when the object is initially created.\n\nYou may check for presence of oldSelf using `oldSelf.hasValue()` and unwrap it after checking using `oldSelf.value()`. Check the CEL documentation for Optional types for more information: https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes\n\nMay not be set unless `oldSelf` is used in `rule`.", + "type": "boolean" + }, + "reason": { + "description": "reason provides a machine-readable validation failure reason that is returned to the caller when a request fails this validation rule. The HTTP status code returned to the caller will match the reason of the reason of the first failed validation rule. The currently supported reasons are: \"FieldValueInvalid\", \"FieldValueForbidden\", \"FieldValueRequired\", \"FieldValueDuplicate\". If not set, default to use \"FieldValueInvalid\". All future added reasons must be accepted by clients when reading this value and unknown reasons should be treated as FieldValueInvalid.", + "type": "string" + }, + "rule": { + "description": "Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {\"rule\": \"self.status.actual <= self.spec.maxDesired\"}\n\nIf the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {\"rule\": \"self.components['Widget'].priority < 10\"} - Rule scoped to a list of integers: {\"rule\": \"self.values.all(value, value >= 0 && value < 100)\"} - Rule scoped to a string value: {\"rule\": \"self.startsWith('kube')\"}\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible.\n\nUnknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an \"unknown type\". An \"unknown type\" is recursively defined as:\n - A schema with no type and x-kubernetes-preserve-unknown-fields set to true\n - An array where the items schema is of an \"unknown type\"\n - An object where the additionalProperties schema is of an \"unknown type\"\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 - Rule accessing a property named \"namespace\": {\"rule\": \"self.__namespace__ > 0\"}\n - Rule accessing a property named \"x-prop\": {\"rule\": \"self.x__dash__prop > 0\"}\n - Rule accessing a property named \"redact__d\": {\"rule\": \"self.redact__underscores__d > 0\"}\n\nEquality on arrays with x-kubernetes-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.\n\nIf `rule` makes use of the `oldSelf` variable it is implicitly a `transition rule`.\n\nBy default, the `oldSelf` variable is the same type as `self`. When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional\n variable whose value() is the same type as `self`.\nSee the documentation for the `optionalOldSelf` field for details.\n\nTransition rules by default are applied only on UPDATE requests and are skipped if an old value could not be found. You can opt a transition rule into unconditional evaluation by setting `optionalOldSelf` to true.", "type": "string" } }, + "required": [ + "rule" + ], "type": "object" }, - "v1.ServerAddressByClientCIDR": { - "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", + "apiextensions.v1.WebhookClientConfig": { + "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook.", "properties": { - "clientCIDR": { - "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", + "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.", + "format": "byte", "type": "string" }, - "serverAddress": { - "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", + "service": { + "$ref": "#/definitions/apiextensions.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`." + }, + "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.", "type": "string" } }, - "required": [ - "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.", + "v1.WebhookConversion": { + "description": "WebhookConversion describes how to call a conversion webhook", "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" + "clientConfig": { + "$ref": "#/definitions/apiextensions.v1.WebhookClientConfig", + "description": "clientConfig is the instructions for how to call the webhook if strategy is `Webhook`." + }, + "conversionReviewVersions": { + "description": "conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. 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.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "required": [ - "selector" + "conversionReviewVersions" ], "type": "object" }, - "v1.Status": { - "description": "Status is a return value for calls that don't return other objects.", + "v1.APIGroup": { + "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", "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" }, - "code": { - "description": "Suggested HTTP return code for this status, 0 if not set.", - "format": "int32", - "type": "integer" - }, - "details": { - "$ref": "#/definitions/v1.StatusDetails", - "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type." - }, "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" }, - "message": { - "description": "A human-readable description of the status of this operation.", + "name": { + "description": "name is the name of the group.", "type": "string" }, - "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" + "preferredVersion": { + "$ref": "#/definitions/v1.GroupVersionForDiscovery", + "description": "preferredVersion is the version preferred by the API server, which probably is the storage version." }, - "reason": { - "description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.", - "type": "string" + "serverAddressByClientCIDRs": { + "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", + "items": { + "$ref": "#/definitions/v1.ServerAddressByClientCIDR" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "status": { - "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "type": "string" + "versions": { + "description": "versions are the versions supported in this group.", + "items": { + "$ref": "#/definitions/v1.GroupVersionForDiscovery" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, + "required": [ + "name", + "versions" + ], "type": "object", "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "Status", + "kind": "APIGroup", "version": "v1" } ] }, - "v1.StatusCause": { - "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", + "v1.APIGroupList": { + "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", "properties": { - "field": { - "description": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", + "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" }, - "message": { - "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", - "type": "string" + "groups": { + "description": "groups is a list of APIGroup.", + "items": { + "$ref": "#/definitions/v1.APIGroup" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "reason": { - "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", + "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" } }, - "type": "object" + "required": [ + "groups" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIGroupList", + "version": "v1" + } + ] }, - "v1.StatusDetails": { - "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.", + "v1.APIResource": { + "description": "APIResource specifies the name of a resource and whether it is namespaced.", "properties": { - "causes": { - "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", + "categories": { + "description": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", "items": { - "$ref": "#/definitions/v1.StatusCause" + "type": "string" }, "type": "array", "x-kubernetes-list-type": "atomic" }, "group": { - "description": "The group attribute of the resource associated with the status StatusReason.", + "description": "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".", "type": "string" }, "kind": { - "description": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", "type": "string" }, "name": { - "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", + "description": "name is the plural name of the resource.", "type": "string" }, - "retryAfterSeconds": { - "description": "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.", - "format": "int32", - "type": "integer" + "namespaced": { + "description": "namespaced indicates if a resource is namespaced or not.", + "type": "boolean" }, - "uid": { - "description": "UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "shortNames": { + "description": "shortNames is a list of suggested short names of the resource.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "singularName": { + "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.", + "type": "string" + }, + "storageVersionHash": { + "description": "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.", + "type": "string" + }, + "verbs": { + "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", + "items": { + "type": "string" + }, + "type": "array" + }, + "version": { + "description": "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".", "type": "string" } }, + "required": [ + "name", + "singularName", + "namespaced", + "kind", + "verbs" + ], "type": "object" }, - "v1.WatchEvent": { - "description": "Event represents a single event to a watched resource.", + "v1.APIResourceList": { + "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.", "properties": { - "object": { - "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context.", - "type": "object" + "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" }, - "type": { + "groupVersion": { + "description": "groupVersion is the group and version this APIResourceList is for.", + "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" + }, + "resources": { + "description": "resources contains the name of the resources and if they are namespaced.", + "items": { + "$ref": "#/definitions/v1.APIResource" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "required": [ - "type", - "object" + "groupVersion", + "resources" ], "type": "object", "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "WatchEvent", + "kind": "APIResourceList", "version": "v1" + } + ] + }, + "v1.APIVersions": { + "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.", + "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" }, - { - "group": "admission.k8s.io", - "kind": "WatchEvent", - "version": "v1" + "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" }, - { - "group": "admission.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" + "serverAddressByClientCIDRs": { + "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", + "items": { + "$ref": "#/definitions/v1.ServerAddressByClientCIDR" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, + "versions": { + "description": "versions are the api versions that are available.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "versions", + "serverAddressByClientCIDRs" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ { - "group": "admissionregistration.k8s.io", - "kind": "WatchEvent", + "group": "", + "kind": "APIVersions", "version": "v1" + } + ] + }, + "v1.Condition": { + "description": "Condition contains details for one aspect of the current state of this API Resource.", + "properties": { + "lastTransitionTime": { + "description": "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.", + "format": "date-time", + "type": "string" }, - { - "group": "admissionregistration.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" + "message": { + "description": "message is a human readable message indicating details about the transition. This may be an empty string.", + "type": "string" + }, + "observedGeneration": { + "description": "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.", + "format": "int64", + "type": "integer" + }, + "reason": { + "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.", + "type": "string" + }, + "status": { + "description": "status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "type of condition in CamelCase or in foo.example.com/CamelCase.", + "type": "string" + } + }, + "required": [ + "type", + "status", + "lastTransitionTime", + "reason", + "message" + ], + "type": "object" + }, + "v1.DeleteOptions": { + "description": "DeleteOptions may be provided when deleting an API object.", + "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" + }, + "dryRun": { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "gracePeriodSeconds": { + "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.", + "format": "int64", + "type": "integer" + }, + "ignoreStoreReadErrorWithClusterBreakingPotential": { + "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": "boolean" + }, + "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" + }, + "orphanDependents": { + "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": "boolean" + }, + "preconditions": { + "$ref": "#/definitions/v1.Preconditions", + "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned." + }, + "propagationPolicy": { + "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" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" }, { "group": "admissionregistration.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "apiextensions.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "apiextensions.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "apiregistration.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "apiregistration.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "apps", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "apps", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "apps", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta2" }, { "group": "authentication.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "authentication.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1alpha1" }, { "group": "authentication.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "authorization.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "authorization.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "autoscaling", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "autoscaling", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v2" }, { "group": "batch", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "batch", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "certificates.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "certificates.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1alpha1" }, { "group": "certificates.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "coordination.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "coordination.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1alpha2" }, { "group": "coordination.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "discovery.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "discovery.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "events.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "events.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "extensions", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "flowcontrol.apiserver.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "flowcontrol.apiserver.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "flowcontrol.apiserver.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta2" }, { "group": "flowcontrol.apiserver.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta3" }, { "group": "imagepolicy.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1alpha1" }, { "group": "internal.apiserver.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "lifecycle.k8s.io", + "kind": "DeleteOptions", "version": "v1alpha1" }, { "group": "networking.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "networking.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "node.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "node.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1alpha1" }, { "group": "node.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "policy", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "policy", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "rbac.authorization.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "rbac.authorization.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1alpha1" }, { "group": "rbac.authorization.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "resource.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "resource.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1alpha3" }, { "group": "resource.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "resource.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta2" }, { "group": "scheduling.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "scheduling.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha2" + "kind": "DeleteOptions", + "version": "v1alpha3" }, { "group": "scheduling.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "storage.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1" }, { "group": "storage.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1alpha1" }, { "group": "storage.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", "version": "v1beta1" }, { "group": "storagemigration.k8s.io", - "kind": "WatchEvent", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "storagemigration.k8s.io", + "kind": "DeleteOptions", "version": "v1beta1" } ] }, - "version.Info": { - "description": "Info contains versioning information. how we'll want to distribute that information.", + "v1.FieldSelectorRequirement": { + "description": "FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values.", "properties": { - "buildDate": { - "type": "string" - }, - "compiler": { - "type": "string" - }, - "emulationMajor": { - "description": "EmulationMajor is the major version of the emulation version", - "type": "string" - }, - "emulationMinor": { - "description": "EmulationMinor is the minor version of the emulation version", - "type": "string" - }, - "gitCommit": { - "type": "string" - }, - "gitTreeState": { - "type": "string" - }, - "gitVersion": { - "type": "string" - }, - "goVersion": { - "type": "string" - }, - "major": { - "description": "Major is the major version of the binary version", - "type": "string" - }, - "minCompatibilityMajor": { - "description": "MinCompatibilityMajor is the major version of the minimum compatibility version", - "type": "string" - }, - "minCompatibilityMinor": { - "description": "MinCompatibilityMinor is the minor version of the minimum compatibility version", + "key": { + "description": "key is the field selector key that the requirement applies to.", "type": "string" }, - "minor": { - "description": "Minor is the minor version of the binary version", + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.", "type": "string" }, - "platform": { - "type": "string" + "values": { + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "required": [ - "major", - "minor", - "gitVersion", - "gitCommit", - "gitTreeState", - "buildDate", - "goVersion", - "compiler", - "platform" + "key", + "operator" ], "type": "object" }, - "v1.APIService": { - "description": "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".", + "v1.GroupResource": { + "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", "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", + "group": { "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", + "resource": { "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/v1.APIServiceSpec", - "description": "Spec contains information for locating and communicating with a server" - }, - "status": { - "$ref": "#/definitions/v1.APIServiceStatus", - "description": "Status contains derived information about an API server" } }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" - } - ] + "required": [ + "group", + "resource" + ], + "type": "object" }, - "v1.APIServiceCondition": { - "description": "APIServiceCondition describes the state of an APIService at a particular point", + "v1.GroupVersionForDiscovery": { + "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "Human-readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "Unique, one-word, CamelCase reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status is the status of the condition. Can be True, False, Unknown.", + "groupVersion": { + "description": "groupVersion specifies the API group and version in the form \"group/version\"", "type": "string" }, - "type": { - "description": "Type is the type of the condition.", + "version": { + "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", "type": "string" } }, "required": [ - "type", - "status" + "groupVersion", + "version" ], "type": "object" }, - "v1.APIServiceList": { - "description": "APIServiceList is a list of APIService objects.", + "v1.LabelSelector": { + "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.", "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 APIService", + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", "items": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.LabelSelectorRequirement" }, - "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" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object" } }, - "required": [ - "items" - ], "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apiregistration.k8s.io", - "kind": "APIServiceList", - "version": "v1" - } - ] + "x-kubernetes-map-type": "atomic" }, - "v1.APIServiceSpec": { - "description": "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.", + "v1.LabelSelectorRequirement": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", "properties": { - "caBundle": { - "description": "CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.", - "format": "byte", - "type": "string", - "x-kubernetes-list-type": "atomic" - }, - "group": { - "description": "Group is the API group name this server hosts", + "key": { + "description": "key is the label key that the selector applies to.", "type": "string" }, - "groupPriorityMinimum": { - "description": "GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s", - "format": "int32", - "type": "integer" - }, - "insecureSkipTLSVerify": { - "description": "InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.", - "type": "boolean" - }, - "service": { - "$ref": "#/definitions/apiregistration.v1.ServiceReference", - "description": "Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled." - }, - "version": { - "description": "Version is the API version this server hosts. For example, \"v1\"", + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", "type": "string" }, - "versionPriority": { - "description": "VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "groupPriorityMinimum", - "versionPriority" - ], - "type": "object" - }, - "v1.APIServiceStatus": { - "description": "APIServiceStatus contains derived information about an API server", - "properties": { - "conditions": { - "description": "Current service state of apiService.", + "values": { + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", "items": { - "$ref": "#/definitions/v1.APIServiceCondition" + "type": "string" }, "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" + "x-kubernetes-list-type": "atomic" } }, + "required": [ + "key", + "operator" + ], "type": "object" }, - "apiregistration.v1.ServiceReference": { - "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "v1.ListMeta": { + "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", "properties": { - "name": { - "description": "Name is the name of the service", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of the service", + "continue": { + "description": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.", "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).", - "format": "int32", + "remainingItemCount": { + "description": "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.", + "format": "int64", "type": "integer" - } - }, - "type": "object" - }, - "v1.GroupVersionKind": { - "type": "object", - "description": "GroupVersionKind unambiguously identifies a kind.", - "properties": { - "group": { - "type": "string" }, - "version": { + "resourceVersion": { + "description": "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", "type": "string" }, - "kind": { + "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" }, - "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" - } - ], + "v1.ManagedFieldsEntry": { + "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", "properties": { "apiVersion": { + "description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.", "type": "string" }, - "kind": { + "fieldsType": { + "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta" + "fieldsV1": { + "description": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.", + "type": "object" }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/v2beta1.APIGroupDiscovery" - } - } - }, - "required": [ - "items" - ] - }, - "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": { + "manager": { + "description": "Manager is an identifier of the workflow managing these fields.", "type": "string" }, - "kind": { + "operation": { + "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", "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" - ] - } - } - }, - "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" - ] + "subresource": { + "description": "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.", + "type": "string" }, - "freshness": { - "type": "string", - "description": "freshness marks whether a group version's discovery document is up to date." + "time": { + "description": "Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over.", + "format": "date-time", + "type": "string" } }, - "required": [ - "version" - ] + "type": "object" }, - "v2beta1.APIResourceDiscovery": { - "type": "object", - "description": "APIResourceDiscovery provides information about an API resource for discovery.", + "v1.ObjectMeta": { + "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", "properties": { - "resource": { - "type": "string", - "description": "resource is the plural name of the resource." + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations", + "type": "object" }, - "responseKind": { - "$ref": "#/definitions/v1.GroupVersionKind" + "creationTimestamp": { + "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + "format": "date-time", + "type": "string" }, - "scope": { - "type": "string", - "description": "scope indicates the scope of a resource, either Cluster or Namespaced" + "deletionGracePeriodSeconds": { + "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", + "format": "int64", + "type": "integer" }, - "singularResource": { - "type": "string", - "description": "singularResource is the singular name of the resource." + "deletionTimestamp": { + "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + "format": "date-time", + "type": "string" }, - "verbs": { - "type": "array", + "finalizers": { + "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", "items": { "type": "string" }, - "description": "verbs is a list of supported API operation types" - }, - "shortNames": { "type": "array", - "items": { + "x-kubernetes-list-type": "set", + "x-kubernetes-patch-strategy": "merge" + }, + "generateName": { + "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", + "type": "string" + }, + "generation": { + "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", + "format": "int64", + "type": "integer" + }, + "labels": { + "additionalProperties": { "type": "string" }, - "description": "shortNames is a list of suggested short names of the resource." + "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels", + "type": "object" }, - "categories": { - "type": "array", + "managedFields": { + "description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", "items": { - "type": "string" + "$ref": "#/definitions/v1.ManagedFieldsEntry" }, - "description": "categories is a list of the grouped resources this resource belongs to." - }, - "subresources": { "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", + "type": "string" + }, + "namespace": { + "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces", + "type": "string" + }, + "ownerReferences": { + "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", "items": { - "$ref": "#/definitions/v2beta1.APISubresourceDiscovery" - } + "$ref": "#/definitions/v1.OwnerReference" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "uid" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "uid", + "x-kubernetes-patch-strategy": "merge" + }, + "resourceVersion": { + "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": "string" + }, + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "type": "string" + }, + "uid": { + "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": "string" } }, - "required": [ - "resource", - "scope", - "singularResource", - "verbs" - ] + "type": "object" }, - "v2beta1.APISubresourceDiscovery": { - "type": "object", - "description": "APISubresourceDiscovery provides information about an API subresource for discovery.", + "v1.OwnerReference": { + "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.", "properties": { - "subresource": { - "type": "string", - "description": "subresource is the name of the subresource." + "apiVersion": { + "description": "API version of the referent.", + "type": "string" }, - "responseKind": { - "$ref": "#/definitions/v1.GroupVersionKind" + "blockOwnerDeletion": { + "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", + "type": "boolean" }, - "verbs": { - "type": "array", - "items": { - "type": "string" - }, - "description": "verbs is a list of supported API operation types" + "controller": { + "description": "If true, this reference points to the managing controller.", + "type": "boolean" }, - "acceptedTypes": { - "type": "array", - "items": { - "$ref": "#/definitions/v1.GroupVersionKind" - } + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", + "type": "string" + }, + "uid": { + "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": "string" } }, "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" - } + "apiVersion", + "kind", + "name", + "uid" ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1.Preconditions": { + "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", "properties": { - "apiVersion": { + "resourceVersion": { + "description": "Specifies the target ResourceVersion", "type": "string" }, - "kind": { + "uid": { + "description": "Specifies the target UID.", + "type": "string" + } + }, + "type": "object" + }, + "v1.ServerAddressByClientCIDR": { + "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", + "properties": { + "clientCIDR": { + "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/v2.APIGroupDiscovery" - } + "serverAddress": { + "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", + "type": "string" } }, "required": [ - "items" - ] + "clientCIDR", + "serverAddress" + ], + "type": "object" }, - "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" + "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": { "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" }, + "code": { + "description": "Suggested HTTP return code for this status, 0 if not set.", + "format": "int32", + "type": "integer" + }, + "details": { + "$ref": "#/definitions/v1.StatusDetails", + "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type." + }, "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" + }, + "message": { + "description": "A human-readable description of the status of this operation.", "type": "string" }, "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" }, - "versions": { - "type": "array", - "items": { - "$ref": "#/definitions/v2.APIVersionDiscovery" - }, - "x-kubernetes-list-type": "map", - "x-kubernetes-list-map-keys": [ - "version" - ] + "reason": { + "description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.", + "type": "string" + }, + "status": { + "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + "type": "string" } - } - }, - "v2.APIVersionDiscovery": { + }, "type": "object", - "description": "APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Status", + "version": "v1" + } + ] + }, + "v1.StatusCause": { + "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", "properties": { - "version": { - "type": "string", - "description": "version is the name of the version within a group version." + "field": { + "description": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", + "type": "string" }, - "resources": { - "type": "array", - "items": { - "$ref": "#/definitions/v2.APIResourceDiscovery" - }, - "x-kubernetes-list-type": "map", - "x-kubernetes-list-map-keys": [ - "resource" - ] + "message": { + "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", + "type": "string" }, - "freshness": { - "type": "string", - "description": "freshness marks whether a group version's discovery document is up to date." + "reason": { + "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", + "type": "string" } }, - "required": [ - "version" - ] + "type": "object" }, - "v2.APIResourceDiscovery": { - "type": "object", - "description": "APIResourceDiscovery provides information about an API resource for discovery.", + "v1.StatusDetails": { + "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.", "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", + "causes": { + "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", "items": { - "type": "string" + "$ref": "#/definitions/v1.StatusCause" }, - "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" + "x-kubernetes-list-type": "atomic" }, - "categories": { - "type": "array", - "items": { - "type": "string" - }, - "description": "categories is a list of the grouped resources this resource belongs to.", - "x-kubernetes-list-type": "set" + "group": { + "description": "The group attribute of the resource associated with the status StatusReason.", + "type": "string" }, - "subresources": { - "type": "array", - "items": { - "$ref": "#/definitions/v2.APISubresourceDiscovery" - }, - "x-kubernetes-list-type": "map", - "x-kubernetes-list-map-keys": [ - "subresource" - ] + "kind": { + "description": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", + "type": "string" + }, + "retryAfterSeconds": { + "description": "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.", + "format": "int32", + "type": "integer" + }, + "uid": { + "description": "UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": "string" } }, - "required": [ - "resource", - "scope", - "singularResource", - "verbs" - ] + "type": "object" }, - "v2.APISubresourceDiscovery": { - "type": "object", - "description": "APISubresourceDiscovery provides information about an API subresource for discovery.", + "v1.WatchEvent": { + "description": "Event represents a single event to a watched resource.", "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" - ] + "object": { + "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context.", + "type": "object" }, - "verbs": { - "type": "array", - "items": { - "type": "string" - }, - "description": "verbs is a list of supported API operation types", - "x-kubernetes-list-type": "set" + "type": { + "type": "string" } }, "required": [ - "subresource", - "verbs" - ] - } - }, - "info": { - "title": "Kubernetes", - "version": "release-1.36" - }, - "paths": { - "/api/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available API versions", - "operationId": "getAPIVersions", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIVersions" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core" - ] - } - }, - "/api/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "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": [ - "core_v1" - ] - } - }, - "/api/v1/componentstatuses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list objects of kind ComponentStatus", - "operationId": "listComponentStatus", - "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.ComponentStatusList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { + "type", + "object" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { "group": "", - "kind": "ComponentStatus", + "kind": "WatchEvent", "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 + "group": "admission.k8s.io", + "kind": "WatchEvent", + "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 + "group": "admission.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "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 + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" }, { - "description": "If 'true', then the output is 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 + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "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 + "group": "apiextensions.k8s.io", + "kind": "WatchEvent", + "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 + "group": "apiextensions.k8s.io", + "kind": "WatchEvent", + "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 + "group": "apiregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true + "group": "apiregistration.k8s.io", + "kind": "WatchEvent", + "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 + "group": "apps", + "kind": "WatchEvent", + "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 - } - ] - }, - "/api/v1/componentstatuses/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified ComponentStatus", - "operationId": "readComponentStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ComponentStatus" - } - }, - "401": { - "description": "Unauthorized" - } + "group": "apps", + "kind": "WatchEvent", + "version": "v1beta1" }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ComponentStatus", - "version": "v1" - } - }, - "parameters": [ { - "description": "name of the ComponentStatus", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "group": "apps", + "kind": "WatchEvent", + "version": "v1beta2" }, { - "description": "If 'true', then the output is 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 - } - ] - }, - "/api/v1/configmaps": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ConfigMap", - "operationId": "listConfigMapForAllNamespaces", - "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.ConfigMapList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", + "group": "authentication.k8s.io", + "kind": "WatchEvent", "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 + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "group": "authorization.k8s.io", + "kind": "WatchEvent", + "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 + "group": "authorization.k8s.io", + "kind": "WatchEvent", + "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 + "group": "autoscaling", + "kind": "WatchEvent", + "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 + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v2" }, { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that 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 + "group": "batch", + "kind": "WatchEvent", + "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 + "group": "batch", + "kind": "WatchEvent", + "version": "v1beta1" }, { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "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 + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "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 - } - ] - }, - "/api/v1/endpoints": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Endpoints", - "operationId": "listEndpointsForAllNamespaces", - "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.EndpointsList" - } - }, - "401": { - "description": "Unauthorized" - } + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "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 + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "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 + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha2" }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "group": "discovery.k8s.io", + "kind": "WatchEvent", + "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 + "group": "discovery.k8s.io", + "kind": "WatchEvent", + "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 + "group": "events.k8s.io", + "kind": "WatchEvent", + "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 + "group": "events.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that 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 + "group": "extensions", + "kind": "WatchEvent", + "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 + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "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 + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "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 - } - ] - }, - "/api/v1/events": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Event", - "operationId": "listEventForAllNamespaces", - "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/core.v1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta3" }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "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 + "group": "imagepolicy.k8s.io", + "kind": "WatchEvent", + "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 + "group": "internal.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "group": "lifecycle.k8s.io", + "kind": "WatchEvent", + "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 + "group": "networking.k8s.io", + "kind": "WatchEvent", + "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 + "group": "networking.k8s.io", + "kind": "WatchEvent", + "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 + "group": "node.k8s.io", + "kind": "WatchEvent", + "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 + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" }, { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that 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 + "group": "node.k8s.io", + "kind": "WatchEvent", + "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 + "group": "policy", + "kind": "WatchEvent", + "version": "v1" }, { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true + "group": "policy", + "kind": "WatchEvent", + "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 + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "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 - } - ] - }, - "/api/v1/limitranges": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind LimitRange", - "operationId": "listLimitRangeForAllNamespaces", - "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.LimitRangeList" - } - }, - "401": { - "description": "Unauthorized" - } + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "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 + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "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 + "group": "resource.k8s.io", + "kind": "WatchEvent", + "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 + "group": "resource.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha3" }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "group": "resource.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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 + "group": "resource.k8s.io", + "kind": "WatchEvent", + "version": "v1beta2" }, { - "description": "If 'true', then the output is 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 + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "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 + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "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 + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "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 + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1" }, { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "uniqueItems": true + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" }, { - "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 + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" }, { - "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 + "group": "storagemigration.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "storagemigration.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" } ] }, - "/api/v1/namespaces": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Namespace", - "operationId": "listNamespace", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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.NamespaceList" - } - }, - "401": { - "description": "Unauthorized" - } + "version.Info": { + "description": "Info contains versioning information. how we'll want to distribute that information.", + "properties": { + "buildDate": { + "type": "string" }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" + "compiler": { + "type": "string" + }, + "emulationMajor": { + "description": "EmulationMajor is the major version of the emulation version", + "type": "string" + }, + "emulationMinor": { + "description": "EmulationMinor is the minor version of the emulation version", + "type": "string" + }, + "gitCommit": { + "type": "string" + }, + "gitTreeState": { + "type": "string" + }, + "gitVersion": { + "type": "string" + }, + "goVersion": { + "type": "string" + }, + "major": { + "description": "Major is the major version of the binary version", + "type": "string" + }, + "minCompatibilityMajor": { + "description": "MinCompatibilityMajor is the major version of the minimum compatibility version", + "type": "string" + }, + "minCompatibilityMinor": { + "description": "MinCompatibilityMinor is the minor version of the minimum compatibility version", + "type": "string" + }, + "minor": { + "description": "Minor is the minor version of the binary version", + "type": "string" + }, + "platform": { + "type": "string" } }, - "parameters": [ + "required": [ + "major", + "minor", + "gitVersion", + "gitCommit", + "gitTreeState", + "buildDate", + "goVersion", + "compiler", + "platform" + ], + "type": "object" + }, + "v1.APIService": { + "description": "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".", + "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/v1.APIServiceSpec", + "description": "Spec contains information for locating and communicating with a server" + }, + "status": { + "$ref": "#/definitions/v1.APIServiceStatus", + "description": "Status contains derived information about an API server" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ { - "description": "If 'true', then the output is 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 + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a Namespace", - "operationId": "createNamespace", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.Namespace" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } + ] + }, + "v1.APIServiceCondition": { + "description": "APIServiceCondition describes the state of an APIService at a particular point", + "properties": { + "lastTransitionTime": { + "description": "Last time the condition transitioned from one status to another.", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "Human-readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "Status is the status of the condition. Can be True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type is the type of the condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "v1.APIServiceList": { + "description": "APIServiceList is a list of APIService 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", + "type": "string" + }, + "items": { + "description": "Items is the list of APIService", + "items": { + "$ref": "#/definitions/v1.APIService" }, - "401": { - "description": "Unauthorized" - } + "type": "array" }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", + "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 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apiregistration.k8s.io", + "kind": "APIServiceList", "version": "v1" + } + ] + }, + "v1.APIServiceSpec": { + "description": "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.", + "properties": { + "caBundle": { + "description": "CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.", + "format": "byte", + "type": "string", + "x-kubernetes-list-type": "atomic" }, - "x-codegen-request-body-name": "body" + "group": { + "description": "Group is the API group name this server hosts", + "type": "string" + }, + "groupPriorityMinimum": { + "description": "GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s", + "format": "int32", + "type": "integer" + }, + "insecureSkipTLSVerify": { + "description": "InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.", + "type": "boolean" + }, + "service": { + "$ref": "#/definitions/apiregistration.v1.ServiceReference", + "description": "Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled." + }, + "version": { + "description": "Version is the API version this server hosts. For example, \"v1\"", + "type": "string" + }, + "versionPriority": { + "description": "VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "groupPriorityMinimum", + "versionPriority" + ], + "type": "object" + }, + "v1.APIServiceStatus": { + "description": "APIServiceStatus contains derived information about an API server", + "properties": { + "conditions": { + "description": "Current service state of apiService.", + "items": { + "$ref": "#/definitions/v1.APIServiceCondition" + }, + "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" + }, + "apiregistration.v1.ServiceReference": { + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "properties": { + "name": { + "description": "Name is the name of the service", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of the 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).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "v1.GroupVersionKind": { + "type": "object", + "description": "GroupVersionKind unambiguously identifies a kind.", + "properties": { + "group": { + "type": "string" + }, + "version": { + "type": "string" + }, + "kind": { + "type": "string" + } } }, - "/api/v1/namespaces/{namespace}/bindings": { - "parameters": [ + "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": [ { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + "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" + ] + }, + "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": [ { - "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", + "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" + ] + } + } + }, + "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", - "uniqueItems": true + "description": "version is the name of the version within a group version." }, - { - "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", + "resources": { + "type": "array", + "items": { + "$ref": "#/definitions/v2beta1.APIResourceDiscovery" + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-list-map-keys": [ + "resource" + ] + }, + "freshness": { "type": "string", - "uniqueItems": true + "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." }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "responseKind": { + "$ref": "#/definitions/v1.GroupVersionKind" + }, + "scope": { "type": "string", - "uniqueItems": true + "description": "scope indicates the scope of a resource, either Cluster or Namespaced" }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", + "singularResource": { "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a Binding", - "operationId": "createNamespacedBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Binding" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Binding" - } + "description": "singularResource is the singular name of the resource." + }, + "verbs": { + "type": "array", + "items": { + "type": "string" }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Binding" - } + "description": "verbs is a list of supported API operation types" + }, + "shortNames": { + "type": "array", + "items": { + "type": "string" }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Binding" - } + "description": "shortNames is a list of suggested short names of the resource." + }, + "categories": { + "type": "array", + "items": { + "type": "string" }, - "401": { - "description": "Unauthorized" + "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." }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Binding", - "version": "v1" + "responseKind": { + "$ref": "#/definitions/v1.GroupVersionKind" }, - "x-codegen-request-body-name": "body" - } - }, - "/api/v1/namespaces/{namespace}/configmaps": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of ConfigMap", - "operationId": "deleteCollectionNamespacedConfigMap", - "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 + "verbs": { + "type": "array", + "items": { + "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.\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": "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" + ] + }, + "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" }, - { - "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 + "x-kubernetes-list-type": "map", + "x-kubernetes-list-map-keys": [ + "version" + ] + } + } + }, + "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" }, - { - "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 + "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": "resourceVersion sets a constraint 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": "verbs is a list of supported API operation types", + "x-kubernetes-list-type": "set" + }, + "shortNames": { + "type": "array", + "items": { + "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "description": "shortNames is a list of suggested short names of the resource.", + "x-kubernetes-list-type": "set" + }, + "categories": { + "type": "array", + "items": { + "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.\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": "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" }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.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-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" }, - { - "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-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" + ] + } + }, + "info": { + "title": "Kubernetes", + "version": "release-1.37" + }, + "paths": { + "/api/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], + "description": "get available API versions", + "operationId": "getAPIVersions", "produces": [ "application/json", "application/yaml", @@ -25144,7 +26280,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.APIVersions" } }, "401": { @@ -25155,101 +26291,52 @@ "https" ], "tags": [ - "core_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, + "core" + ] + } + }, + "/api/v1/": { "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], - "description": "list or watch objects of kind ConfigMap", - "operationId": "listNamespacedConfigMap", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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": "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" + } }, - { - "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": [ + "core_v1" + ] + } + }, + "/api/v1/componentstatuses": { + "get": { + "consumes": [ + "*/*" ], + "description": "list objects of kind ComponentStatus", + "operationId": "listComponentStatus", "produces": [ "application/json", "application/yaml", @@ -25263,7 +26350,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ConfigMapList" + "$ref": "#/definitions/v1.ComponentStatusList" } }, "401": { @@ -25279,64 +26366,104 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "ConfigMap", + "kind": "ComponentStatus", "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 + }, + { + "description": "resourceVersion sets a constraint 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": { + ] + }, + "/api/v1/componentstatuses/{name}": { + "get": { "consumes": [ "*/*" ], - "description": "create a ConfigMap", - "operationId": "createNamespacedConfigMap", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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": "read the specified ComponentStatus", + "operationId": "readComponentStatus", "produces": [ "application/json", "application/yaml", @@ -25347,19 +26474,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.ConfigMap" + "$ref": "#/definitions/v1.ComponentStatus" } }, "401": { @@ -25372,83 +26487,52 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "", - "kind": "ConfigMap", + "kind": "ComponentStatus", "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ComponentStatus", + "in": "path", + "name": "name", + "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 + } + ] }, - "/api/v1/namespaces/{namespace}/configmaps/{name}": { - "delete": { + "/api/v1/configmaps": { + "get": { "consumes": [ "*/*" ], - "description": "delete a ConfigMap", - "operationId": "deleteNamespacedConfigMap", - "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": "list or watch objects of kind ConfigMap", + "operationId": "listConfigMapForAllNamespaces", "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": { - "type": "object" - } - }, - "202": { - "description": "Accepted", - "schema": { - "type": "object" + "$ref": "#/definitions/v1.ConfigMapList" } }, "401": { @@ -25461,31 +26545,121 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", "kind": "ConfigMap", "version": "v1" - }, - "x-codegen-request-body-name": "body" + } }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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/endpoints": { "get": { "consumes": [ "*/*" ], - "description": "read the specified ConfigMap", - "operationId": "readNamespacedConfigMap", + "description": "list or watch objects of kind Endpoints", + "operationId": "listEndpointsForAllNamespaces", "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.ConfigMap" + "$ref": "#/definitions/v1.EndpointsList" } }, "401": { @@ -25498,104 +26672,121 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "ConfigMap", + "kind": "Endpoints", "version": "v1" } }, "parameters": [ { - "description": "name of the ConfigMap", - "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": { + ] + }, + "/api/v1/events": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified ConfigMap", - "operationId": "patchNamespacedConfigMap", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 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.ConfigMap" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.ConfigMap" + "$ref": "#/definitions/core.v1.EventList" } }, "401": { @@ -25608,68 +26799,121 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "ConfigMap", + "kind": "Event", "version": "v1" - }, - "x-codegen-request-body-name": "body" + } }, - "put": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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/limitranges": { + "get": { "consumes": [ "*/*" ], - "description": "replace the specified ConfigMap", - "operationId": "replaceNamespacedConfigMap", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 LimitRange", + "operationId": "listLimitRangeForAllNamespaces", "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.ConfigMap" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.ConfigMap" + "$ref": "#/definitions/v1.LimitRangeList" } }, "401": { @@ -25682,22 +26926,415 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "ConfigMap", + "kind": "LimitRange", + "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 + } + ] + }, + "/api/v1/namespaces": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Namespace", + "operationId": "listNamespace", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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.NamespaceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Namespace", + "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": [ + "*/*" + ], + "description": "create a Namespace", + "operationId": "createNamespace", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Namespace" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.Namespace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Namespace" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Namespace" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Namespace", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/endpoints": { + "/api/v1/namespaces/{namespace}/bindings": { + "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": "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": [ + "*/*" + ], + "description": "create a Binding", + "operationId": "createNamespacedBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Binding" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Binding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Binding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Binding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Binding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/api/v1/namespaces/{namespace}/configmaps": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Endpoints", - "operationId": "deleteCollectionNamespacedEndpoints", + "description": "delete collection of ConfigMap", + "operationId": "deleteCollectionNamespacedConfigMap", "parameters": [ { "in": "body", @@ -25831,7 +27468,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Endpoints", + "kind": "ConfigMap", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -25840,8 +27477,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind Endpoints", - "operationId": "listNamespacedEndpoints", + "description": "list or watch objects of kind ConfigMap", + "operationId": "listNamespacedConfigMap", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -25934,7 +27571,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointsList" + "$ref": "#/definitions/v1.ConfigMapList" } }, "401": { @@ -25950,7 +27587,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Endpoints", + "kind": "ConfigMap", "version": "v1" } }, @@ -25975,15 +27612,15 @@ "consumes": [ "*/*" ], - "description": "create Endpoints", - "operationId": "createNamespacedEndpoints", + "description": "create a ConfigMap", + "operationId": "createNamespacedConfigMap", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, { @@ -26018,19 +27655,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, "401": { @@ -26046,19 +27683,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Endpoints", + "kind": "ConfigMap", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/endpoints/{name}": { + "/api/v1/namespaces/{namespace}/configmaps/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete Endpoints", - "operationId": "deleteNamespacedEndpoints", + "description": "delete a ConfigMap", + "operationId": "deleteNamespacedConfigMap", "parameters": [ { "in": "body", @@ -26135,7 +27772,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Endpoints", + "kind": "ConfigMap", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -26144,8 +27781,8 @@ "consumes": [ "*/*" ], - "description": "read the specified Endpoints", - "operationId": "readNamespacedEndpoints", + "description": "read the specified ConfigMap", + "operationId": "readNamespacedConfigMap", "produces": [ "application/json", "application/yaml", @@ -26156,7 +27793,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, "401": { @@ -26172,13 +27809,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Endpoints", + "kind": "ConfigMap", "version": "v1" } }, "parameters": [ { - "description": "name of the Endpoints", + "description": "name of the ConfigMap", "in": "path", "name": "name", "required": true, @@ -26209,8 +27846,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified Endpoints", - "operationId": "patchNamespacedEndpoints", + "description": "partially update the specified ConfigMap", + "operationId": "patchNamespacedConfigMap", "parameters": [ { "in": "body", @@ -26260,13 +27897,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, "401": { @@ -26282,7 +27919,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Endpoints", + "kind": "ConfigMap", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -26291,15 +27928,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified Endpoints", - "operationId": "replaceNamespacedEndpoints", + "description": "replace the specified ConfigMap", + "operationId": "replaceNamespacedConfigMap", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, { @@ -26334,13 +27971,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Endpoints" + "$ref": "#/definitions/v1.ConfigMap" } }, "401": { @@ -26356,19 +27993,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Endpoints", + "kind": "ConfigMap", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/events": { + "/api/v1/namespaces/{namespace}/endpoints": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Event", - "operationId": "deleteCollectionNamespacedEvent", + "description": "delete collection of Endpoints", + "operationId": "deleteCollectionNamespacedEndpoints", "parameters": [ { "in": "body", @@ -26502,7 +28139,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Event", + "kind": "Endpoints", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -26511,8 +28148,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind Event", - "operationId": "listNamespacedEvent", + "description": "list or watch objects of kind Endpoints", + "operationId": "listNamespacedEndpoints", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -26605,7 +28242,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/core.v1.EventList" + "$ref": "#/definitions/v1.EndpointsList" } }, "401": { @@ -26621,7 +28258,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Event", + "kind": "Endpoints", "version": "v1" } }, @@ -26646,15 +28283,15 @@ "consumes": [ "*/*" ], - "description": "create an Event", - "operationId": "createNamespacedEvent", + "description": "create Endpoints", + "operationId": "createNamespacedEndpoints", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, { @@ -26689,19 +28326,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, "401": { @@ -26717,19 +28354,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Event", + "kind": "Endpoints", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/events/{name}": { + "/api/v1/namespaces/{namespace}/endpoints/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an Event", - "operationId": "deleteNamespacedEvent", + "description": "delete Endpoints", + "operationId": "deleteNamespacedEndpoints", "parameters": [ { "in": "body", @@ -26806,7 +28443,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Event", + "kind": "Endpoints", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -26815,8 +28452,8 @@ "consumes": [ "*/*" ], - "description": "read the specified Event", - "operationId": "readNamespacedEvent", + "description": "read the specified Endpoints", + "operationId": "readNamespacedEndpoints", "produces": [ "application/json", "application/yaml", @@ -26827,7 +28464,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, "401": { @@ -26843,13 +28480,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Event", + "kind": "Endpoints", "version": "v1" } }, "parameters": [ { - "description": "name of the Event", + "description": "name of the Endpoints", "in": "path", "name": "name", "required": true, @@ -26880,8 +28517,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified Event", - "operationId": "patchNamespacedEvent", + "description": "partially update the specified Endpoints", + "operationId": "patchNamespacedEndpoints", "parameters": [ { "in": "body", @@ -26931,13 +28568,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, "401": { @@ -26953,7 +28590,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Event", + "kind": "Endpoints", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -26962,15 +28599,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified Event", - "operationId": "replaceNamespacedEvent", + "description": "replace the specified Endpoints", + "operationId": "replaceNamespacedEndpoints", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, { @@ -27005,13 +28642,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/core.v1.Event" + "$ref": "#/definitions/v1.Endpoints" } }, "401": { @@ -27027,19 +28664,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Event", + "kind": "Endpoints", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/limitranges": { + "/api/v1/namespaces/{namespace}/events": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of LimitRange", - "operationId": "deleteCollectionNamespacedLimitRange", + "description": "delete collection of Event", + "operationId": "deleteCollectionNamespacedEvent", "parameters": [ { "in": "body", @@ -27173,7 +28810,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "", - "kind": "LimitRange", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -27182,8 +28819,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind LimitRange", - "operationId": "listNamespacedLimitRange", + "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.", @@ -27276,7 +28913,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.LimitRangeList" + "$ref": "#/definitions/core.v1.EventList" } }, "401": { @@ -27292,7 +28929,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "LimitRange", + "kind": "Event", "version": "v1" } }, @@ -27317,15 +28954,15 @@ "consumes": [ "*/*" ], - "description": "create a LimitRange", - "operationId": "createNamespacedLimitRange", + "description": "create an Event", + "operationId": "createNamespacedEvent", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, { @@ -27360,19 +28997,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, "401": { @@ -27388,19 +29025,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "", - "kind": "LimitRange", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/limitranges/{name}": { + "/api/v1/namespaces/{namespace}/events/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a LimitRange", - "operationId": "deleteNamespacedLimitRange", + "description": "delete an Event", + "operationId": "deleteNamespacedEvent", "parameters": [ { "in": "body", @@ -27477,7 +29114,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "", - "kind": "LimitRange", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -27486,8 +29123,8 @@ "consumes": [ "*/*" ], - "description": "read the specified LimitRange", - "operationId": "readNamespacedLimitRange", + "description": "read the specified Event", + "operationId": "readNamespacedEvent", "produces": [ "application/json", "application/yaml", @@ -27498,7 +29135,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, "401": { @@ -27514,13 +29151,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "", - "kind": "LimitRange", + "kind": "Event", "version": "v1" } }, "parameters": [ { - "description": "name of the LimitRange", + "description": "name of the Event", "in": "path", "name": "name", "required": true, @@ -27551,8 +29188,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified LimitRange", - "operationId": "patchNamespacedLimitRange", + "description": "partially update the specified Event", + "operationId": "patchNamespacedEvent", "parameters": [ { "in": "body", @@ -27602,13 +29239,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, "401": { @@ -27624,7 +29261,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "", - "kind": "LimitRange", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -27633,15 +29270,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified LimitRange", - "operationId": "replaceNamespacedLimitRange", + "description": "replace the specified Event", + "operationId": "replaceNamespacedEvent", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, { @@ -27676,13 +29313,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/core.v1.Event" } }, "401": { @@ -27698,19 +29335,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "", - "kind": "LimitRange", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/persistentvolumeclaims": { + "/api/v1/namespaces/{namespace}/limitranges": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of PersistentVolumeClaim", - "operationId": "deleteCollectionNamespacedPersistentVolumeClaim", + "description": "delete collection of LimitRange", + "operationId": "deleteCollectionNamespacedLimitRange", "parameters": [ { "in": "body", @@ -27844,7 +29481,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PersistentVolumeClaim", + "kind": "LimitRange", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -27853,8 +29490,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind PersistentVolumeClaim", - "operationId": "listNamespacedPersistentVolumeClaim", + "description": "list or watch objects of kind LimitRange", + "operationId": "listNamespacedLimitRange", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -27947,7 +29584,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaimList" + "$ref": "#/definitions/v1.LimitRangeList" } }, "401": { @@ -27963,7 +29600,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PersistentVolumeClaim", + "kind": "LimitRange", "version": "v1" } }, @@ -27988,15 +29625,15 @@ "consumes": [ "*/*" ], - "description": "create a PersistentVolumeClaim", - "operationId": "createNamespacedPersistentVolumeClaim", + "description": "create a LimitRange", + "operationId": "createNamespacedLimitRange", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, { @@ -28031,19 +29668,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, "401": { @@ -28059,19 +29696,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PersistentVolumeClaim", + "kind": "LimitRange", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}": { + "/api/v1/namespaces/{namespace}/limitranges/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a PersistentVolumeClaim", - "operationId": "deleteNamespacedPersistentVolumeClaim", + "description": "delete a LimitRange", + "operationId": "deleteNamespacedLimitRange", "parameters": [ { "in": "body", @@ -28126,162 +29763,15 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "type": "object" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified PersistentVolumeClaim", - "operationId": "readNamespacedPersistentVolumeClaim", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the PersistentVolumeClaim", - "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-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified PersistentVolumeClaim", - "operationId": "patchNamespacedPersistentVolumeClaim", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", "type": "object" } }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.PersistentVolumeClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, "401": { "description": "Unauthorized" } @@ -28292,96 +29782,20 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PersistentVolumeClaim", + "kind": "LimitRange", "version": "v1" }, "x-codegen-request-body-name": "body" }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified PersistentVolumeClaim", - "operationId": "replaceNamespacedPersistentVolumeClaim", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.PersistentVolumeClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified PersistentVolumeClaim", - "operationId": "readNamespacedPersistentVolumeClaimStatus", + "description": "read the specified LimitRange", + "operationId": "readNamespacedLimitRange", "produces": [ "application/json", "application/yaml", @@ -28392,7 +29806,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, "401": { @@ -28408,13 +29822,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PersistentVolumeClaim", + "kind": "LimitRange", "version": "v1" } }, "parameters": [ { - "description": "name of the PersistentVolumeClaim", + "description": "name of the LimitRange", "in": "path", "name": "name", "required": true, @@ -28445,8 +29859,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified PersistentVolumeClaim", - "operationId": "patchNamespacedPersistentVolumeClaimStatus", + "description": "partially update the specified LimitRange", + "operationId": "patchNamespacedLimitRange", "parameters": [ { "in": "body", @@ -28496,13 +29910,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, "401": { @@ -28518,7 +29932,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PersistentVolumeClaim", + "kind": "LimitRange", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -28527,15 +29941,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified PersistentVolumeClaim", - "operationId": "replaceNamespacedPersistentVolumeClaimStatus", + "description": "replace the specified LimitRange", + "operationId": "replaceNamespacedLimitRange", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, { @@ -28570,13 +29984,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.LimitRange" } }, "401": { @@ -28592,19 +30006,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PersistentVolumeClaim", + "kind": "LimitRange", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/pods": { + "/api/v1/namespaces/{namespace}/persistentvolumeclaims": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Pod", - "operationId": "deleteCollectionNamespacedPod", + "description": "delete collection of PersistentVolumeClaim", + "operationId": "deleteCollectionNamespacedPersistentVolumeClaim", "parameters": [ { "in": "body", @@ -28738,7 +30152,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PersistentVolumeClaim", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -28747,8 +30161,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind Pod", - "operationId": "listNamespacedPod", + "description": "list or watch objects of kind PersistentVolumeClaim", + "operationId": "listNamespacedPersistentVolumeClaim", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -28841,7 +30255,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodList" + "$ref": "#/definitions/v1.PersistentVolumeClaimList" } }, "401": { @@ -28857,7 +30271,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PersistentVolumeClaim", "version": "v1" } }, @@ -28882,15 +30296,15 @@ "consumes": [ "*/*" ], - "description": "create a Pod", - "operationId": "createNamespacedPod", + "description": "create a PersistentVolumeClaim", + "operationId": "createNamespacedPersistentVolumeClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, { @@ -28925,19 +30339,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "401": { @@ -28953,19 +30367,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PersistentVolumeClaim", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/pods/{name}": { + "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a Pod", - "operationId": "deleteNamespacedPod", + "description": "delete a PersistentVolumeClaim", + "operationId": "deleteNamespacedPersistentVolumeClaim", "parameters": [ { "in": "body", @@ -29020,13 +30434,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "401": { @@ -29042,7 +30456,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PersistentVolumeClaim", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -29051,8 +30465,8 @@ "consumes": [ "*/*" ], - "description": "read the specified Pod", - "operationId": "readNamespacedPod", + "description": "read the specified PersistentVolumeClaim", + "operationId": "readNamespacedPersistentVolumeClaim", "produces": [ "application/json", "application/yaml", @@ -29063,7 +30477,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "401": { @@ -29079,13 +30493,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PersistentVolumeClaim", "version": "v1" } }, "parameters": [ { - "description": "name of the Pod", + "description": "name of the PersistentVolumeClaim", "in": "path", "name": "name", "required": true, @@ -29116,8 +30530,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified Pod", - "operationId": "patchNamespacedPod", + "description": "partially update the specified PersistentVolumeClaim", + "operationId": "patchNamespacedPersistentVolumeClaim", "parameters": [ { "in": "body", @@ -29167,13 +30581,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "401": { @@ -29189,7 +30603,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PersistentVolumeClaim", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -29198,15 +30612,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified Pod", - "operationId": "replaceNamespacedPod", + "description": "replace the specified PersistentVolumeClaim", + "operationId": "replaceNamespacedPersistentVolumeClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, { @@ -29241,13 +30655,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "401": { @@ -29263,247 +30677,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}/attach": { - "get": { - "consumes": [ - "*/*" - ], - "description": "connect GET requests to attach of Pod", - "operationId": "connectGetNamespacedPodAttach", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodAttachOptions", - "version": "v1" - } - }, - "parameters": [ - { - "description": "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", - "in": "query", - "name": "container", - "type": "string", - "uniqueItems": true - }, - { - "description": "name of the PodAttachOptions", - "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": "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", - "in": "query", - "name": "stderr", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", - "in": "query", - "name": "stdin", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", - "in": "query", - "name": "stdout", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false.", - "in": "query", - "name": "tty", - "type": "boolean", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "connect POST requests to attach of Pod", - "operationId": "connectPostNamespacedPodAttach", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodAttachOptions", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}/binding": { - "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": "name of the Binding", - "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 - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create binding of a Pod", - "operationId": "createNamespacedPodBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Binding" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Binding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Binding" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Binding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Binding", + "kind": "PersistentVolumeClaim", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers": { + "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read ephemeralcontainers of the specified Pod", - "operationId": "readNamespacedPodEphemeralcontainers", + "description": "read status of the specified PersistentVolumeClaim", + "operationId": "readNamespacedPersistentVolumeClaimStatus", "produces": [ "application/json", "application/yaml", @@ -29514,7 +30700,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "401": { @@ -29530,13 +30716,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PersistentVolumeClaim", "version": "v1" } }, "parameters": [ { - "description": "name of the Pod", + "description": "name of the PersistentVolumeClaim", "in": "path", "name": "name", "required": true, @@ -29567,8 +30753,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update ephemeralcontainers of the specified Pod", - "operationId": "patchNamespacedPodEphemeralcontainers", + "description": "partially update status of the specified PersistentVolumeClaim", + "operationId": "patchNamespacedPersistentVolumeClaimStatus", "parameters": [ { "in": "body", @@ -29618,13 +30804,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "401": { @@ -29640,7 +30826,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PersistentVolumeClaim", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -29649,15 +30835,15 @@ "consumes": [ "*/*" ], - "description": "replace ephemeralcontainers of the specified Pod", - "operationId": "replaceNamespacedPodEphemeralcontainers", + "description": "replace status of the specified PersistentVolumeClaim", + "operationId": "replaceNamespacedPersistentVolumeClaimStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, { @@ -29692,13 +30878,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.PersistentVolumeClaim" } }, "401": { @@ -29714,73 +30900,124 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PersistentVolumeClaim", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/pods/{name}/eviction": { - "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": "name of the Eviction", - "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 - } - ], - "post": { + "/api/v1/namespaces/{namespace}/pods": { + "delete": { "consumes": [ "*/*" ], - "description": "create eviction of a Pod", - "operationId": "createNamespacedPodEviction", + "description": "delete collection of Pod", + "operationId": "deleteCollectionNamespacedPod", "parameters": [ { "in": "body", "name": "body", - "required": true, "schema": { - "$ref": "#/definitions/v1.Eviction" + "$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": [ @@ -29793,19 +31030,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Eviction" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Eviction" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Eviction" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -29818,30 +31043,113 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "Eviction", + "group": "", + "kind": "Pod", "version": "v1" }, "x-codegen-request-body-name": "body" - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}/exec": { + }, "get": { "consumes": [ "*/*" ], - "description": "connect GET requests to exec of Pod", - "operationId": "connectGetNamespacedPodExec", + "description": "list or watch objects of kind Pod", + "operationId": "listNamespacedPod", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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": { - "type": "string" + "$ref": "#/definitions/v1.PodList" } }, "401": { @@ -29854,40 +31162,14 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodExecOptions", + "kind": "Pod", "version": "v1" } }, "parameters": [ - { - "description": "Command is the remote command to execute. argv array. Not executed within a shell.", - "in": "query", - "name": "command", - "type": "array", - "uniqueItems": true, - "items": { - "type": "string" - }, - "collectionFormat": "multi" - }, - { - "description": "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", - "in": "query", - "name": "container", - "type": "string", - "uniqueItems": true - }, - { - "description": "name of the PodExecOptions", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -29897,31 +31179,10 @@ "uniqueItems": true }, { - "description": "Redirect the standard error stream of the pod for this call.", - "in": "query", - "name": "stderr", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Redirect the standard input stream of the pod for this call. Defaults to false.", - "in": "query", - "name": "stdin", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Redirect the standard output stream of the pod for this call.", - "in": "query", - "name": "stdout", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", - "name": "tty", - "type": "boolean", + "name": "pretty", + "type": "string", "uniqueItems": true } ], @@ -29929,16 +31190,62 @@ "consumes": [ "*/*" ], - "description": "connect POST requests to exec of Pod", - "operationId": "connectPostNamespacedPodExec", + "description": "create a Pod", + "operationId": "createNamespacedPod", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Pod" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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": { - "type": "string" + "$ref": "#/definitions/v1.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Pod" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Pod" } }, "401": { @@ -29951,23 +31258,110 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodExecOptions", + "kind": "Pod", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/pods/{name}/log": { + "/api/v1/namespaces/{namespace}/pods/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a Pod", + "operationId": "deleteNamespacedPod", + "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.Pod" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Pod" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, "get": { "consumes": [ "*/*" ], - "description": "read log of the specified Pod", - "operationId": "readNamespacedPodLog", + "description": "read the specified Pod", + "operationId": "readNamespacedPod", "produces": [ - "text/plain", "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", @@ -29977,7 +31371,7 @@ "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/v1.Pod" } }, "401": { @@ -29999,38 +31393,10 @@ }, "parameters": [ { - "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.", - "in": "query", - "name": "container", - "type": "string", - "uniqueItems": true - }, - { - "description": "Follow the log stream of the pod. Defaults to false.", - "in": "query", - "name": "follow", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet).", - "in": "query", - "name": "insecureSkipTLSVerifyBackend", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", - "in": "query", - "name": "limitBytes", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Pod", - "in": "path", - "name": "name", - "required": true, + "description": "name of the Pod", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, @@ -30048,59 +31414,74 @@ "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "Return previous terminated container logs. Defaults to false.", - "in": "query", - "name": "previous", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", - "in": "query", - "name": "sinceSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".", - "in": "query", - "name": "stream", - "type": "string", - "uniqueItems": true - }, - { - "description": "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".", - "in": "query", - "name": "tailLines", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", - "in": "query", - "name": "timestamps", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/portforward": { - "get": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified Pod", + "operationId": "patchNamespacedPod", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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": "connect GET requests to portforward of Pod", - "operationId": "connectGetNamespacedPodPortforward", "produces": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/v1.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Pod" } }, "401": { @@ -30113,52 +31494,68 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodPortForwardOptions", + "kind": "Pod", "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the PodPortForwardOptions", - "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": "List of ports to forward Required when using WebSockets", - "in": "query", - "name": "ports", - "type": "string", - "uniqueItems": true - } - ], - "post": { + "x-codegen-request-body-name": "body" + }, + "put": { "consumes": [ "*/*" ], - "description": "connect POST requests to portforward of Pod", - "operationId": "connectPostNamespacedPodPortforward", + "description": "replace the specified Pod", + "operationId": "replaceNamespacedPod", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Pod" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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": { - "type": "string" + "$ref": "#/definitions/v1.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Pod" } }, "401": { @@ -30171,21 +31568,22 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodPortForwardOptions", + "kind": "Pod", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/pods/{name}/proxy": { - "delete": { + "/api/v1/namespaces/{namespace}/pods/{name}/attach": { + "get": { "consumes": [ "*/*" ], - "description": "connect DELETE requests to proxy of Pod", - "operationId": "connectDeleteNamespacedPodProxy", + "description": "connect GET requests to attach of Pod", + "operationId": "connectGetNamespacedPodAttach", "produces": [ "*/*" ], @@ -30209,16 +31607,69 @@ "x-kubernetes-action": "connect", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "PodAttachOptions", "version": "v1" } }, - "get": { + "parameters": [ + { + "description": "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", + "in": "query", + "name": "container", + "type": "string", + "uniqueItems": true + }, + { + "description": "name of the PodAttachOptions", + "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": "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", + "in": "query", + "name": "stderr", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", + "in": "query", + "name": "stdin", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", + "in": "query", + "name": "stdout", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false.", + "in": "query", + "name": "tty", + "type": "boolean", + "uniqueItems": true + } + ], + "post": { "consumes": [ "*/*" ], - "description": "connect GET requests to proxy of Pod", - "operationId": "connectGetNamespacedPodProxy", + "description": "connect POST requests to attach of Pod", + "operationId": "connectPostNamespacedPodAttach", "produces": [ "*/*" ], @@ -30242,24 +31693,97 @@ "x-kubernetes-action": "connect", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "PodAttachOptions", "version": "v1" } - }, - "head": { + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/binding": { + "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": "name of the Binding", + "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 + } + ], + "post": { "consumes": [ "*/*" ], - "description": "connect HEAD requests to proxy of Pod", - "operationId": "connectHeadNamespacedPodProxy", + "description": "create binding of a Pod", + "operationId": "createNamespacedPodBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Binding" + } + } + ], "produces": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/v1.Binding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Binding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Binding" } }, "401": { @@ -30272,27 +31796,33 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "Binding", "version": "v1" - } - }, - "options": { + }, + "x-codegen-request-body-name": "body" + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers": { + "get": { "consumes": [ "*/*" ], - "description": "connect OPTIONS requests to proxy of Pod", - "operationId": "connectOptionsNamespacedPodProxy", + "description": "read ephemeralcontainers of the specified Pod", + "operationId": "readNamespacedPodEphemeralcontainers", "produces": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/v1.Pod" } }, "401": { @@ -30305,16 +31835,16 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "Pod", "version": "v1" } }, "parameters": [ { - "description": "name of the PodProxyOptions", + "description": "name of the Pod", "in": "path", "name": "name", "required": true, @@ -30330,60 +31860,79 @@ "uniqueItems": true }, { - "description": "Path is the URL path to use for the current proxy request to pod.", + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", - "name": "path", + "name": "pretty", "type": "string", "uniqueItems": true } ], "patch": { "consumes": [ - "*/*" - ], - "description": "connect PATCH requests to proxy of Pod", - "operationId": "connectPatchNamespacedPodProxy", - "produces": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" ], - "responses": { - "200": { - "description": "OK", + "description": "partially update ephemeralcontainers of the specified Pod", + "operationId": "patchNamespacedPodEphemeralcontainers", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, "schema": { - "type": "string" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, - "401": { - "description": "Unauthorized" + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodProxyOptions", - "version": "v1" - } - }, - "post": { - "consumes": [ - "*/*" ], - "description": "connect POST requests to proxy of Pod", - "operationId": "connectPostNamespacedPodProxy", "produces": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/v1.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Pod" } }, "401": { @@ -30396,27 +31945,68 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "Pod", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "put": { "consumes": [ "*/*" ], - "description": "connect PUT requests to proxy of Pod", - "operationId": "connectPutNamespacedPodProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" + "description": "replace ephemeralcontainers of the specified Pod", + "operationId": "replaceNamespacedPodEphemeralcontainers", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Pod" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.Pod" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Pod" } }, "401": { @@ -30429,29 +32019,101 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "Pod", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" } }, - "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}": { - "delete": { + "/api/v1/namespaces/{namespace}/pods/{name}/eviction": { + "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": "name of the Eviction", + "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 + } + ], + "post": { "consumes": [ "*/*" ], - "description": "connect DELETE requests to proxy of Pod", - "operationId": "connectDeleteNamespacedPodProxyWithPath", + "description": "create eviction of a Pod", + "operationId": "createNamespacedPodEviction", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Eviction" + } + } + ], "produces": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/v1.Eviction" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Eviction" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Eviction" } }, "401": { @@ -30464,19 +32126,22 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodProxyOptions", + "group": "policy", + "kind": "Eviction", "version": "v1" - } - }, + }, + "x-codegen-request-body-name": "body" + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/exec": { "get": { "consumes": [ "*/*" ], - "description": "connect GET requests to proxy of Pod", - "operationId": "connectGetNamespacedPodProxyWithPath", + "description": "connect GET requests to exec of Pod", + "operationId": "connectGetNamespacedPodExec", "produces": [ "*/*" ], @@ -30500,16 +32165,80 @@ "x-kubernetes-action": "connect", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "PodExecOptions", "version": "v1" } }, - "head": { + "parameters": [ + { + "description": "Command is the remote command to execute. argv array. Not executed within a shell.", + "in": "query", + "name": "command", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "description": "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", + "in": "query", + "name": "container", + "type": "string", + "uniqueItems": true + }, + { + "description": "name of the PodExecOptions", + "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": "Redirect the standard error stream of the pod for this call.", + "in": "query", + "name": "stderr", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Redirect the standard input stream of the pod for this call. Defaults to false.", + "in": "query", + "name": "stdin", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Redirect the standard output stream of the pod for this call.", + "in": "query", + "name": "stdout", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", + "in": "query", + "name": "tty", + "type": "boolean", + "uniqueItems": true + } + ], + "post": { "consumes": [ "*/*" ], - "description": "connect HEAD requests to proxy of Pod", - "operationId": "connectHeadNamespacedPodProxyWithPath", + "description": "connect POST requests to exec of Pod", + "operationId": "connectPostNamespacedPodExec", "produces": [ "*/*" ], @@ -30533,18 +32262,24 @@ "x-kubernetes-action": "connect", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "PodExecOptions", "version": "v1" } - }, - "options": { + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/log": { + "get": { "consumes": [ "*/*" ], - "description": "connect OPTIONS requests to proxy of Pod", - "operationId": "connectOptionsNamespacedPodProxyWithPath", + "description": "read log of the specified Pod", + "operationId": "readNamespacedPodLog", "produces": [ - "*/*" + "text/plain", + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -30563,16 +32298,44 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "connect", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "", - "kind": "PodProxyOptions", + "kind": "Pod", "version": "v1" } }, "parameters": [ { - "description": "name of the PodProxyOptions", + "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.", + "in": "query", + "name": "container", + "type": "string", + "uniqueItems": true + }, + { + "description": "Follow the log stream of the pod. Defaults to false.", + "in": "query", + "name": "follow", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet).", + "in": "query", + "name": "insecureSkipTLSVerifyBackend", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", + "in": "query", + "name": "limitBytes", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the Pod", "in": "path", "name": "name", "required": true, @@ -30588,27 +32351,149 @@ "uniqueItems": true }, { - "description": "path to the resource", + "description": "If 'true', then the output is 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": "Return previous terminated container logs. Defaults to false.", + "in": "query", + "name": "previous", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + "in": "query", + "name": "sinceSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".", + "in": "query", + "name": "stream", + "type": "string", + "uniqueItems": true + }, + { + "description": "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".", + "in": "query", + "name": "tailLines", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", + "in": "query", + "name": "timestamps", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/api/v1/namespaces/{namespace}/pods/{name}/portforward": { + "get": { + "consumes": [ + "*/*" + ], + "description": "connect GET requests to portforward of Pod", + "operationId": "connectGetNamespacedPodPortforward", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodPortForwardOptions", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PodPortForwardOptions", "in": "path", - "name": "path", + "name": "name", "required": true, "type": "string", "uniqueItems": true }, { - "description": "Path is the URL path to use for the current proxy request to pod.", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "List of ports to forward Required when using WebSockets", "in": "query", - "name": "path", + "name": "ports", "type": "string", "uniqueItems": true } ], - "patch": { + "post": { "consumes": [ "*/*" ], - "description": "connect PATCH requests to proxy of Pod", - "operationId": "connectPatchNamespacedPodProxyWithPath", + "description": "connect POST requests to portforward of Pod", + "operationId": "connectPostNamespacedPodPortforward", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodPortForwardOptions", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/proxy": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "connect DELETE requests to proxy of Pod", + "operationId": "connectDeleteNamespacedPodProxy", "produces": [ "*/*" ], @@ -30636,12 +32521,12 @@ "version": "v1" } }, - "post": { + "get": { "consumes": [ "*/*" ], - "description": "connect POST requests to proxy of Pod", - "operationId": "connectPostNamespacedPodProxyWithPath", + "description": "connect GET requests to proxy of Pod", + "operationId": "connectGetNamespacedPodProxy", "produces": [ "*/*" ], @@ -30669,12 +32554,12 @@ "version": "v1" } }, - "put": { + "head": { "consumes": [ "*/*" ], - "description": "connect PUT requests to proxy of Pod", - "operationId": "connectPutNamespacedPodProxyWithPath", + "description": "connect HEAD requests to proxy of Pod", + "operationId": "connectHeadNamespacedPodProxy", "produces": [ "*/*" ], @@ -30701,26 +32586,21 @@ "kind": "PodProxyOptions", "version": "v1" } - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}/resize": { - "get": { + }, + "options": { "consumes": [ "*/*" ], - "description": "read resize of the specified Pod", - "operationId": "readNamespacedPodResize", + "description": "connect OPTIONS requests to proxy of Pod", + "operationId": "connectOptionsNamespacedPodProxy", "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" + "*/*" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "type": "string" } }, "401": { @@ -30733,16 +32613,16 @@ "tags": [ "core_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "connect", "x-kubernetes-group-version-kind": { "group": "", - "kind": "Pod", + "kind": "PodProxyOptions", "version": "v1" } }, "parameters": [ { - "description": "name of the Pod", + "description": "name of the PodProxyOptions", "in": "path", "name": "name", "required": true, @@ -30758,73 +32638,501 @@ "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": "Path is the URL path to use for the current proxy request to pod.", "in": "query", - "name": "pretty", + "name": "path", "type": "string", "uniqueItems": true } ], "patch": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update resize of the specified Pod", - "operationId": "patchNamespacedPodResize", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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": "connect PATCH requests to proxy of Pod", + "operationId": "connectPatchNamespacedPodProxy", "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" + "*/*" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Pod" + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "post": { + "consumes": [ + "*/*" + ], + "description": "connect POST requests to proxy of Pod", + "operationId": "connectPostNamespacedPodProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "connect PUT requests to proxy of Pod", + "operationId": "connectPutNamespacedPodProxy", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "connect DELETE requests to proxy of Pod", + "operationId": "connectDeleteNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "connect GET requests to proxy of Pod", + "operationId": "connectGetNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "head": { + "consumes": [ + "*/*" + ], + "description": "connect HEAD requests to proxy of Pod", + "operationId": "connectHeadNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "options": { + "consumes": [ + "*/*" + ], + "description": "connect OPTIONS requests to proxy of Pod", + "operationId": "connectOptionsNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PodProxyOptions", + "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": "path to the resource", + "in": "path", + "name": "path", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "Path is the URL path to use for the current proxy request to pod.", + "in": "query", + "name": "path", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "*/*" + ], + "description": "connect PATCH requests to proxy of Pod", + "operationId": "connectPatchNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "post": { + "consumes": [ + "*/*" + ], + "description": "connect POST requests to proxy of Pod", + "operationId": "connectPostNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "connect PUT requests to proxy of Pod", + "operationId": "connectPutNamespacedPodProxyWithPath", + "produces": [ + "*/*" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "connect", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PodProxyOptions", + "version": "v1" + } + } + }, + "/api/v1/namespaces/{namespace}/pods/{name}/resize": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read resize of the specified Pod", + "operationId": "readNamespacedPodResize", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Pod" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "Pod", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Pod", + "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-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update resize of the specified Pod", + "operationId": "patchNamespacedPodResize", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.Pod" } }, "201": { @@ -44585,14 +46893,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get available API versions", "operationId": "getAPIVersions", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -44618,14 +46928,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -53361,14 +55673,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -54483,14 +56797,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -55605,14 +57921,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -62664,14 +64982,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -62914,14 +65234,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -63354,14 +65676,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -66075,14 +68399,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -68761,14 +71087,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -69909,226 +72237,7 @@ "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 - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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/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", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "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": { + "/apis/certificates.k8s.io/v1/clustertrustbundles": { "delete": { "consumes": [ "*/*" @@ -70263,13 +72372,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -70371,7 +72480,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundleList" + "$ref": "#/definitions/v1.ClusterTrustBundleList" } }, "401": { @@ -70382,13 +72491,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } }, "parameters": [ @@ -70412,7 +72521,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, { @@ -70447,19 +72556,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, "401": { @@ -70470,18 +72579,18 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}": { + "/apis/certificates.k8s.io/v1/clustertrustbundles/{name}": { "delete": { "consumes": [ "*/*" @@ -70559,13 +72668,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -70585,7 +72694,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, "401": { @@ -70596,13 +72705,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" } }, "parameters": [ @@ -70681,13 +72790,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, "401": { @@ -70698,13 +72807,13 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -70720,7 +72829,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, { @@ -70755,13 +72864,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.ClusterTrustBundle" } }, "401": { @@ -70772,243 +72881,24 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "certificates_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/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.", - "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/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.", - "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 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/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "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_v1beta1" - ] - } - }, - "/apis/certificates.k8s.io/v1beta1/clustertrustbundles": { + "/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ClusterTrustBundle", - "operationId": "deleteCollectionClusterTrustBundle", + "description": "delete collection of PodCertificateRequest", + "operationId": "deleteCollectionNamespacedPodCertificateRequest", "parameters": [ { "in": "body", @@ -71137,13 +73027,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": "PodCertificateRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -71151,8 +73041,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ClusterTrustBundle", - "operationId": "listClusterTrustBundle", + "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.", @@ -71245,7 +73135,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundleList" + "$ref": "#/definitions/v1.PodCertificateRequestList" } }, "401": { @@ -71256,16 +73146,24 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "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", @@ -71278,15 +73176,15 @@ "consumes": [ "*/*" ], - "description": "create a ClusterTrustBundle", - "operationId": "createClusterTrustBundle", + "description": "create a PodCertificateRequest", + "operationId": "createNamespacedPodCertificateRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, { @@ -71321,19 +73219,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "401": { @@ -71344,24 +73242,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": "PodCertificateRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}": { + "/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ClusterTrustBundle", - "operationId": "deleteClusterTrustBundle", + "description": "delete a PodCertificateRequest", + "operationId": "deleteNamespacedPodCertificateRequest", "parameters": [ { "in": "body", @@ -71433,13 +73331,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": "PodCertificateRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -71447,8 +73345,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ClusterTrustBundle", - "operationId": "readClusterTrustBundle", + "description": "read the specified PodCertificateRequest", + "operationId": "readNamespacedPodCertificateRequest", "produces": [ "application/json", "application/yaml", @@ -71459,7 +73357,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "401": { @@ -71470,24 +73368,32 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "PodCertificateRequest", + "version": "v1" } }, "parameters": [ { - "description": "name of the ClusterTrustBundle", + "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", @@ -71504,8 +73410,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ClusterTrustBundle", - "operationId": "patchClusterTrustBundle", + "description": "partially update the specified PodCertificateRequest", + "operationId": "patchNamespacedPodCertificateRequest", "parameters": [ { "in": "body", @@ -71555,13 +73461,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "401": { @@ -71572,13 +73478,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": "PodCertificateRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -71586,15 +73492,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ClusterTrustBundle", - "operationId": "replaceClusterTrustBundle", + "description": "replace the specified PodCertificateRequest", + "operationId": "replaceNamespacedPodCertificateRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, { @@ -71629,13 +73535,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "401": { @@ -71646,261 +73552,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": "PodCertificateRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests": { - "delete": { - "consumes": [ - "*/*" - ], - "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" - } - }, - "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/namespaces/{namespace}/podcertificaterequests/{name}/status": { "get": { "consumes": [ "*/*" ], - "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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "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 status of the specified PodCertificateRequest", + "operationId": "readNamespacedPodCertificateRequestStatus", "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.PodCertificateRequest" } }, "401": { @@ -71911,16 +73591,24 @@ "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" + "version": "v1" } }, "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", @@ -71937,19 +73625,24 @@ "uniqueItems": true } ], - "post": { + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" ], - "description": "create a PodCertificateRequest", - "operationId": "createNamespacedPodCertificateRequest", + "description": "partially update status of the specified PodCertificateRequest", + "operationId": "patchNamespacedPodCertificateRequestStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -71960,7 +73653,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", @@ -71972,6 +73665,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": [ @@ -71984,19 +73684,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "401": { @@ -72007,30 +73701,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" + "version": "v1" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}": { - "delete": { + }, + "put": { "consumes": [ "*/*" ], - "description": "delete a PodCertificateRequest", - "operationId": "deleteNamespacedPodCertificateRequest", + "description": "replace status of the specified PodCertificateRequest", + "operationId": "replaceNamespacedPodCertificateRequestStatus", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, { @@ -72041,30 +73734,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 } @@ -72079,13 +73758,13 @@ "200": { "description": "OK", "schema": { - "type": "object" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, - "202": { - "description": "Accepted", + "201": { + "description": "Created", "schema": { - "type": "object" + "$ref": "#/definitions/v1.PodCertificateRequest" } }, "401": { @@ -72096,33 +73775,38 @@ "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" + "version": "v1" }, "x-codegen-request-body-name": "body" - }, + } + }, + "/apis/certificates.k8s.io/v1/podcertificaterequests": { "get": { "consumes": [ "*/*" ], - "description": "read the specified PodCertificateRequest", - "operationId": "readNamespacedPodCertificateRequest", + "description": "list or watch objects of kind PodCertificateRequest", + "operationId": "listPodCertificateRequestForAllNamespaces", "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/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1.PodCertificateRequestList" } }, "401": { @@ -72133,464 +73817,191 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", "kind": "PodCertificateRequest", - "version": "v1beta1" + "version": "v1" } }, "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-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified PodCertificateRequest", - "operationId": "patchNamespacedPodCertificateRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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": [ - "*/*" - ], - "description": "replace the specified PodCertificateRequest", - "operationId": "replaceNamespacedPodCertificateRequest", - "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/namespaces/{namespace}/podcertificaterequests/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "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 - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified PodCertificateRequest", - "operationId": "patchNamespacedPodCertificateRequestStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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" + { + "description": "resourceVersion sets a constraint 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": [ - "*/*" - ], - "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" - } + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that 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_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "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" - } - }, - "/apis/certificates.k8s.io/v1beta1/podcertificaterequests": { - "get": { - "consumes": [ - "*/*" - ], - "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" - } + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.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": [ - "certificates_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "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/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.", @@ -72627,6 +74038,14 @@ "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", @@ -72678,7 +74097,7 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles": { + "/apis/certificates.k8s.io/v1/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.", @@ -72766,7 +74185,7 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles/{name}": { + "/apis/certificates.k8s.io/v1/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.", @@ -72862,7 +74281,7 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests": { + "/apis/certificates.k8s.io/v1/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.", @@ -72958,7 +74377,7 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests/{name}": { + "/apis/certificates.k8s.io/v1/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.", @@ -73062,7 +74481,7 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/podcertificaterequests": { + "/apis/certificates.k8s.io/v1/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.", @@ -73150,40 +74569,7 @@ } ] }, - "/apis/coordination.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "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", @@ -73214,144 +74600,17 @@ "https" ], "tags": [ - "coordination_v1" + "certificates_v1beta1" ] } }, - "/apis/coordination.k8s.io/v1/leases": { - "get": { + "/apis/certificates.k8s.io/v1beta1/clustertrustbundles": { + "delete": { "consumes": [ "*/*" ], - "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": [ - "*/*" - ], - "description": "delete collection of Lease", - "operationId": "deleteCollectionNamespacedLease", + "description": "delete collection of ClusterTrustBundle", + "operationId": "deleteCollectionClusterTrustBundle", "parameters": [ { "in": "body", @@ -73480,13 +74739,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" }, @@ -73494,8 +74753,8 @@ "consumes": [ "*/*" ], - "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.", @@ -73588,7 +74847,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.LeaseList" + "$ref": "#/definitions/v1beta1.ClusterTrustBundleList" } }, "401": { @@ -73599,24 +74858,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", @@ -73629,15 +74880,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -73672,19 +74923,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": { @@ -73695,24 +74946,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": [ "*/*" ], - "description": "delete a Lease", - "operationId": "deleteNamespacedLease", + "description": "delete a ClusterTrustBundle", + "operationId": "deleteClusterTrustBundle", "parameters": [ { "in": "body", @@ -73784,13 +75035,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" }, @@ -73798,8 +75049,8 @@ "consumes": [ "*/*" ], - "description": "read the specified Lease", - "operationId": "readNamespacedLease", + "description": "read the specified ClusterTrustBundle", + "operationId": "readClusterTrustBundle", "produces": [ "application/json", "application/yaml", @@ -73810,7 +75061,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, "401": { @@ -73821,32 +75072,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", @@ -73863,8 +75106,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified Lease", - "operationId": "patchNamespacedLease", + "description": "partially update the specified ClusterTrustBundle", + "operationId": "patchClusterTrustBundle", "parameters": [ { "in": "body", @@ -73914,13 +75157,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": { @@ -73931,13 +75174,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" }, @@ -73945,15 +75188,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -73988,13 +75231,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": { @@ -74005,609 +75248,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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "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 + "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests": { + "delete": { + "consumes": [ + "*/*" + ], + "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": "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/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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "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", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "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": [ - "*/*" - ], - "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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "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": [ - "*/*" - ], - "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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "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" }, @@ -74615,8 +75408,8 @@ "consumes": [ "*/*" ], - "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.", @@ -74709,7 +75502,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidateList" + "$ref": "#/definitions/v1beta1.PodCertificateRequestList" } }, "401": { @@ -74720,13 +75513,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": [ @@ -74750,15 +75543,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -74793,19 +75586,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": { @@ -74816,24 +75609,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": [ "*/*" ], - "description": "delete a LeaseCandidate", - "operationId": "deleteNamespacedLeaseCandidate", + "description": "delete a PodCertificateRequest", + "operationId": "deleteNamespacedPodCertificateRequest", "parameters": [ { "in": "body", @@ -74905,13 +75698,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" }, @@ -74919,8 +75712,8 @@ "consumes": [ "*/*" ], - "description": "read the specified LeaseCandidate", - "operationId": "readNamespacedLeaseCandidate", + "description": "read the specified PodCertificateRequest", + "operationId": "readNamespacedPodCertificateRequest", "produces": [ "application/json", "application/yaml", @@ -74931,7 +75724,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "401": { @@ -74942,18 +75735,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, @@ -74984,8 +75777,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified LeaseCandidate", - "operationId": "patchNamespacedLeaseCandidate", + "description": "partially update the specified PodCertificateRequest", + "operationId": "patchNamespacedPodCertificateRequest", "parameters": [ { "in": "body", @@ -75035,13 +75828,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": { @@ -75052,13 +75845,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" }, @@ -75066,15 +75859,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -75109,13 +75902,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": { @@ -75126,18 +75919,280 @@ "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": [ + "*/*" + ], + "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-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified PodCertificateRequest", + "operationId": "patchNamespacedPodCertificateRequestStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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": [ + "*/*" + ], + "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": [ + "*/*" + ], + "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.", @@ -75225,7 +76280,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.", @@ -75262,14 +76317,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", @@ -75321,7 +76368,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.", @@ -75359,21 +76406,13 @@ "uniqueItems": true }, { - "description": "name of the LeaseCandidate", + "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", @@ -75425,81 +76464,7 @@ } ] }, - "/apis/coordination.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "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": [ - "*/*" - ], - "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": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -75536,6 +76501,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", @@ -75587,91 +76560,480 @@ } ] }, - "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates": { - "delete": { - "consumes": [ - "*/*" - ], - "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 - }, + "/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.", + "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 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 + }, + { + "description": "resourceVersion sets a constraint 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/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", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "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", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "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": [ + "*/*" + ], + "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": [ + "*/*" + ], + "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 + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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", @@ -75722,13 +77084,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" }, @@ -75736,8 +77098,8 @@ "consumes": [ "*/*" ], - "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.", @@ -75830,7 +77192,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidateList" + "$ref": "#/definitions/v1.LeaseList" } }, "401": { @@ -75841,13 +77203,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": [ @@ -75871,15 +77233,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -75914,19 +77276,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": { @@ -75937,24 +77299,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": [ "*/*" ], - "description": "delete a LeaseCandidate", - "operationId": "deleteNamespacedLeaseCandidate", + "description": "delete a Lease", + "operationId": "deleteNamespacedLease", "parameters": [ { "in": "body", @@ -76026,13 +77388,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" }, @@ -76040,8 +77402,8 @@ "consumes": [ "*/*" ], - "description": "read the specified LeaseCandidate", - "operationId": "readNamespacedLeaseCandidate", + "description": "read the specified Lease", + "operationId": "readNamespacedLease", "produces": [ "application/json", "application/yaml", @@ -76052,7 +77414,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, "401": { @@ -76063,18 +77425,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, @@ -76105,8 +77467,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified LeaseCandidate", - "operationId": "patchNamespacedLeaseCandidate", + "description": "partially update the specified Lease", + "operationId": "patchNamespacedLease", "parameters": [ { "in": "body", @@ -76156,13 +77518,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": { @@ -76173,13 +77535,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" }, @@ -76187,15 +77549,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -76230,13 +77592,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": { @@ -76247,18 +77609,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.", @@ -76346,7 +77708,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.", @@ -76442,7 +77804,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.", @@ -76480,7 +77842,7 @@ "uniqueItems": true }, { - "description": "name of the LeaseCandidate", + "description": "name of the Lease", "in": "path", "name": "name", "required": true, @@ -76546,40 +77908,7 @@ } ] }, - "/apis/discovery.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "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", @@ -76610,17 +77939,17 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ] } }, - "/apis/discovery.k8s.io/v1/endpointslices": { + "/apis/coordination.k8s.io/v1alpha2/leasecandidates": { "get": { "consumes": [ "*/*" ], - "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", @@ -76634,7 +77963,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSliceList" + "$ref": "#/definitions/v1alpha2.LeaseCandidateList" } }, "401": { @@ -76645,13 +77974,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": [ @@ -76741,13 +78070,13 @@ } ] }, - "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices": { + "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of EndpointSlice", - "operationId": "deleteCollectionNamespacedEndpointSlice", + "description": "delete collection of LeaseCandidate", + "operationId": "deleteCollectionNamespacedLeaseCandidate", "parameters": [ { "in": "body", @@ -76876,13 +78205,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" }, @@ -76890,8 +78219,8 @@ "consumes": [ "*/*" ], - "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.", @@ -76984,7 +78313,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSliceList" + "$ref": "#/definitions/v1alpha2.LeaseCandidateList" } }, "401": { @@ -76995,13 +78324,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": [ @@ -77025,15 +78354,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -77068,19 +78397,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": { @@ -77091,24 +78420,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": [ "*/*" ], - "description": "delete an EndpointSlice", - "operationId": "deleteNamespacedEndpointSlice", + "description": "delete a LeaseCandidate", + "operationId": "deleteNamespacedLeaseCandidate", "parameters": [ { "in": "body", @@ -77180,13 +78509,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" }, @@ -77194,8 +78523,8 @@ "consumes": [ "*/*" ], - "description": "read the specified EndpointSlice", - "operationId": "readNamespacedEndpointSlice", + "description": "read the specified LeaseCandidate", + "operationId": "readNamespacedLeaseCandidate", "produces": [ "application/json", "application/yaml", @@ -77206,7 +78535,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, "401": { @@ -77217,18 +78546,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, @@ -77259,8 +78588,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified EndpointSlice", - "operationId": "patchNamespacedEndpointSlice", + "description": "partially update the specified LeaseCandidate", + "operationId": "patchNamespacedLeaseCandidate", "parameters": [ { "in": "body", @@ -77310,13 +78639,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": { @@ -77327,13 +78656,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" }, @@ -77341,15 +78670,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -77384,13 +78713,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": { @@ -77401,18 +78730,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.", @@ -77500,7 +78829,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.", @@ -77596,7 +78925,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.", @@ -77634,7 +78963,7 @@ "uniqueItems": true }, { - "description": "name of the EndpointSlice", + "description": "name of the LeaseCandidate", "in": "path", "name": "name", "required": true, @@ -77700,40 +79029,7 @@ } ] }, - "/apis/events.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "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", @@ -77764,17 +79060,17 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ] } }, - "/apis/events.k8s.io/v1/events": { + "/apis/coordination.k8s.io/v1beta1/leasecandidates": { "get": { "consumes": [ "*/*" ], - "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", @@ -77788,7 +79084,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.EventList" + "$ref": "#/definitions/v1beta1.LeaseCandidateList" } }, "401": { @@ -77799,13 +79095,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": [ @@ -77895,13 +79191,13 @@ } ] }, - "/apis/events.k8s.io/v1/namespaces/{namespace}/events": { + "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Event", - "operationId": "deleteCollectionNamespacedEvent", + "description": "delete collection of LeaseCandidate", + "operationId": "deleteCollectionNamespacedLeaseCandidate", "parameters": [ { "in": "body", @@ -78030,13 +79326,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" }, @@ -78044,8 +79340,8 @@ "consumes": [ "*/*" ], - "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.", @@ -78138,7 +79434,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.EventList" + "$ref": "#/definitions/v1beta1.LeaseCandidateList" } }, "401": { @@ -78149,13 +79445,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": [ @@ -78179,15 +79475,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -78222,19 +79518,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": { @@ -78245,24 +79541,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": [ "*/*" ], - "description": "delete an Event", - "operationId": "deleteNamespacedEvent", + "description": "delete a LeaseCandidate", + "operationId": "deleteNamespacedLeaseCandidate", "parameters": [ { "in": "body", @@ -78334,13 +79630,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" }, @@ -78348,8 +79644,8 @@ "consumes": [ "*/*" ], - "description": "read the specified Event", - "operationId": "readNamespacedEvent", + "description": "read the specified LeaseCandidate", + "operationId": "readNamespacedLeaseCandidate", "produces": [ "application/json", "application/yaml", @@ -78360,7 +79656,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, "401": { @@ -78371,18 +79667,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, @@ -78413,8 +79709,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified Event", - "operationId": "patchNamespacedEvent", + "description": "partially update the specified LeaseCandidate", + "operationId": "patchNamespacedLeaseCandidate", "parameters": [ { "in": "body", @@ -78464,13 +79760,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": { @@ -78481,13 +79777,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" }, @@ -78495,15 +79791,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -78538,13 +79834,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": { @@ -78555,18 +79851,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.", @@ -78654,7 +79950,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.", @@ -78750,7 +80046,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.", @@ -78788,7 +80084,7 @@ "uniqueItems": true }, { - "description": "name of the Event", + "description": "name of the LeaseCandidate", "in": "path", "name": "name", "required": true, @@ -78854,19 +80150,21 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/": { + "/apis/discovery.k8s.io/": { "get": { "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -78883,11 +80181,11 @@ "https" ], "tags": [ - "flowcontrolApiserver" + "discovery" ] } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/": { + "/apis/discovery.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -78918,17 +80216,144 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "discovery_v1" ] } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas": { + "/apis/discovery.k8s.io/v1/endpointslices": { + "get": { + "consumes": [ + "*/*" + ], + "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": [ "*/*" ], - "description": "delete collection of FlowSchema", - "operationId": "deleteCollectionFlowSchema", + "description": "delete collection of EndpointSlice", + "operationId": "deleteCollectionNamespacedEndpointSlice", "parameters": [ { "in": "body", @@ -79057,12 +80482,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" @@ -79071,8 +80496,8 @@ "consumes": [ "*/*" ], - "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.", @@ -79165,7 +80590,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchemaList" + "$ref": "#/definitions/v1.EndpointSliceList" } }, "401": { @@ -79176,16 +80601,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", @@ -79198,15 +80631,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -79241,19 +80674,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": { @@ -79264,24 +80697,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": [ "*/*" ], - "description": "delete a FlowSchema", - "operationId": "deleteFlowSchema", + "description": "delete an EndpointSlice", + "operationId": "deleteNamespacedEndpointSlice", "parameters": [ { "in": "body", @@ -79353,12 +80786,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" @@ -79367,8 +80800,8 @@ "consumes": [ "*/*" ], - "description": "read the specified FlowSchema", - "operationId": "readFlowSchema", + "description": "read the specified EndpointSlice", + "operationId": "readNamespacedEndpointSlice", "produces": [ "application/json", "application/yaml", @@ -79379,7 +80812,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, "401": { @@ -79390,24 +80823,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", @@ -79424,8 +80865,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified FlowSchema", - "operationId": "patchFlowSchema", + "description": "partially update the specified EndpointSlice", + "operationId": "patchNamespacedEndpointSlice", "parameters": [ { "in": "body", @@ -79475,13 +80916,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": { @@ -79492,12 +80933,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" @@ -79506,15 +80947,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -79549,13 +80990,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": { @@ -79566,24 +81007,315 @@ "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": { + "/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 + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 + } + ] + }, + "/apis/events.k8s.io/": { "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], - "description": "read status of the specified FlowSchema", - "operationId": "readFlowSchemaStatus", + "description": "get information of a group", + "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", @@ -79594,7 +81326,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -79605,81 +81337,20 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the FlowSchema", - "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": { + "events" + ] + } + }, + "/apis/events.k8s.io/v1/": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified FlowSchema", - "operationId": "patchFlowSchemaStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -79690,13 +81361,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -79707,70 +81372,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": { - "consumes": [ - "*/*" - ], - "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 - } + "events_v1" + ] + } + }, + "/apis/events.k8s.io/v1/events": { + "get": { + "consumes": [ + "*/*" ], + "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": { @@ -79781,24 +81407,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": [ "*/*" ], - "description": "delete collection of PriorityLevelConfiguration", - "operationId": "deleteCollectionPriorityLevelConfiguration", + "description": "delete collection of Event", + "operationId": "deleteCollectionNamespacedEvent", "parameters": [ { "in": "body", @@ -79927,12 +81638,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" @@ -79941,8 +81652,8 @@ "consumes": [ "*/*" ], - "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.", @@ -80035,7 +81746,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfigurationList" + "$ref": "#/definitions/events.v1.EventList" } }, "401": { @@ -80046,16 +81757,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", @@ -80068,15 +81787,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -80111,19 +81830,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": { @@ -80134,24 +81853,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": [ "*/*" ], - "description": "delete a PriorityLevelConfiguration", - "operationId": "deletePriorityLevelConfiguration", + "description": "delete an Event", + "operationId": "deleteNamespacedEvent", "parameters": [ { "in": "body", @@ -80223,12 +81942,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" @@ -80237,8 +81956,8 @@ "consumes": [ "*/*" ], - "description": "read the specified PriorityLevelConfiguration", - "operationId": "readPriorityLevelConfiguration", + "description": "read the specified Event", + "operationId": "readNamespacedEvent", "produces": [ "application/json", "application/yaml", @@ -80249,7 +81968,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, "401": { @@ -80260,24 +81979,32 @@ "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, "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", @@ -80294,8 +82021,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified PriorityLevelConfiguration", - "operationId": "patchPriorityLevelConfiguration", + "description": "partially update the specified Event", + "operationId": "patchNamespacedEvent", "parameters": [ { "in": "body", @@ -80345,13 +82072,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": { @@ -80362,12 +82089,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" @@ -80376,15 +82103,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified PriorityLevelConfiguration", - "operationId": "replacePriorityLevelConfiguration", + "description": "replace the specified Event", + "operationId": "replaceNamespacedEvent", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, { @@ -80419,228 +82146,13 @@ "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": [ - "*/*" - ], - "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", - "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-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified PriorityLevelConfiguration", - "operationId": "patchPriorityLevelConfigurationStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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": [ - "*/*" - ], - "description": "replace status of the specified PriorityLevelConfiguration", - "operationId": "replacePriorityLevelConfigurationStatus", - "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" + "$ref": "#/definitions/events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, "401": { @@ -80651,18 +82163,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.", @@ -80750,7 +82262,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.", @@ -80788,9 +82300,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 @@ -80846,7 +82358,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.", @@ -80884,97 +82396,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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "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 @@ -81030,19 +82462,21 @@ } ] }, - "/apis/internal.apiserver.k8s.io/": { + "/apis/flowcontrol.apiserver.k8s.io/": { "get": { "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -81059,11 +82493,11 @@ "https" ], "tags": [ - "internalApiserver" + "flowcontrolApiserver" ] } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/": { + "/apis/flowcontrol.apiserver.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -81094,17 +82528,17 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "flowcontrolApiserver_v1" ] } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions": { + "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of StorageVersion", - "operationId": "deleteCollectionStorageVersion", + "description": "delete collection of FlowSchema", + "operationId": "deleteCollectionFlowSchema", "parameters": [ { "in": "body", @@ -81233,13 +82667,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" }, @@ -81247,8 +82681,8 @@ "consumes": [ "*/*" ], - "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.", @@ -81341,7 +82775,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersionList" + "$ref": "#/definitions/v1.FlowSchemaList" } }, "401": { @@ -81352,13 +82786,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": [ @@ -81374,15 +82808,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -81417,19 +82851,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": { @@ -81440,24 +82874,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": [ "*/*" ], - "description": "delete a StorageVersion", - "operationId": "deleteStorageVersion", + "description": "delete a FlowSchema", + "operationId": "deleteFlowSchema", "parameters": [ { "in": "body", @@ -81529,13 +82963,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" }, @@ -81543,8 +82977,8 @@ "consumes": [ "*/*" ], - "description": "read the specified StorageVersion", - "operationId": "readStorageVersion", + "description": "read the specified FlowSchema", + "operationId": "readFlowSchema", "produces": [ "application/json", "application/yaml", @@ -81555,7 +82989,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "401": { @@ -81566,18 +83000,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, @@ -81600,8 +83034,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified StorageVersion", - "operationId": "patchStorageVersion", + "description": "partially update the specified FlowSchema", + "operationId": "patchFlowSchema", "parameters": [ { "in": "body", @@ -81651,13 +83085,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": { @@ -81668,13 +83102,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" }, @@ -81682,15 +83116,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -81725,13 +83159,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": { @@ -81742,24 +83176,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": [ "*/*" ], - "description": "read status of the specified StorageVersion", - "operationId": "readStorageVersionStatus", + "description": "read status of the specified FlowSchema", + "operationId": "readFlowSchemaStatus", "produces": [ "application/json", "application/yaml", @@ -81770,7 +83204,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "401": { @@ -81781,18 +83215,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, @@ -81815,8 +83249,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified StorageVersion", - "operationId": "patchStorageVersionStatus", + "description": "partially update status of the specified FlowSchema", + "operationId": "patchFlowSchemaStatus", "parameters": [ { "in": "body", @@ -81866,13 +83300,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": { @@ -81883,13 +83317,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" }, @@ -81897,15 +83331,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -81940,13 +83374,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": { @@ -81957,276 +83391,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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "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", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "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", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "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": [ "*/*" ], - "description": "delete collection of IngressClass", - "operationId": "deleteCollectionIngressClass", + "description": "delete collection of PriorityLevelConfiguration", + "operationId": "deleteCollectionPriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -82355,12 +83537,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" @@ -82369,8 +83551,8 @@ "consumes": [ "*/*" ], - "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.", @@ -82463,7 +83645,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressClassList" + "$ref": "#/definitions/v1.PriorityLevelConfigurationList" } }, "401": { @@ -82474,12 +83656,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" } }, @@ -82496,15 +83678,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -82539,19 +83721,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": { @@ -82562,24 +83744,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": [ "*/*" ], - "description": "delete an IngressClass", - "operationId": "deleteIngressClass", + "description": "delete a PriorityLevelConfiguration", + "operationId": "deletePriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -82651,12 +83833,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" @@ -82665,8 +83847,8 @@ "consumes": [ "*/*" ], - "description": "read the specified IngressClass", - "operationId": "readIngressClass", + "description": "read the specified PriorityLevelConfiguration", + "operationId": "readPriorityLevelConfiguration", "produces": [ "application/json", "application/yaml", @@ -82677,7 +83859,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "401": { @@ -82688,18 +83870,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, @@ -82722,8 +83904,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified IngressClass", - "operationId": "patchIngressClass", + "description": "partially update the specified PriorityLevelConfiguration", + "operationId": "patchPriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -82773,13 +83955,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": { @@ -82790,12 +83972,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" @@ -82804,15 +83986,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -82847,13 +84029,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": { @@ -82864,38 +84046,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": [ "*/*" ], - "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": { @@ -82906,124 +84085,52 @@ "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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "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-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" ], - "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" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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", @@ -83032,88 +84139,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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "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": [ @@ -83126,126 +84170,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "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", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v1.IPAddressList" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "401": { @@ -83256,37 +84187,29 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], - "x-kubernetes-action": "list", + "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" }, - "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": [ "*/*" ], - "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" } }, { @@ -83321,19 +84244,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": { @@ -83344,111 +84261,395 @@ "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": [ - "*/*" - ], - "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": { - "type": "object" - } - }, - "202": { - "description": "Accepted", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" + "/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 }, - "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/watch/flowschemas/{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 FlowSchema", + "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/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", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], - "description": "read the specified IPAddress", - "operationId": "readIPAddress", + "description": "get information of a group", + "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", @@ -83459,7 +84660,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IPAddress" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -83470,81 +84671,20 @@ "https" ], "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" - } - }, - "parameters": [ - { - "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 - } - ], - "patch": { + "internalApiserver" + ] + } + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified IPAddress", - "operationId": "patchIPAddress", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -83555,13 +84695,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IPAddress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.IPAddress" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -83572,31 +84706,32 @@ "https" ], "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { + "internalApiserver_v1alpha1" + ] + } + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions": { + "delete": { "consumes": [ "*/*" ], - "description": "replace the specified IPAddress", - "operationId": "replaceIPAddress", + "description": "delete collection of StorageVersion", + "operationId": "deleteCollectionStorageVersion", "parameters": [ { "in": "body", "name": "body", - "required": true, "schema": { - "$ref": "#/definitions/v1.IPAddress" + "$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", @@ -83605,99 +84740,17 @@ "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 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", - "type": "string", - "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": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses": { - "delete": { - "consumes": [ - "*/*" - ], - "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", + "name": "gracePeriodSeconds", + "type": "integer", "uniqueItems": true }, { @@ -83792,13 +84845,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" }, @@ -83806,8 +84859,8 @@ "consumes": [ "*/*" ], - "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.", @@ -83900,7 +84953,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressList" + "$ref": "#/definitions/v1alpha1.StorageVersionList" } }, "401": { @@ -83911,24 +84964,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", @@ -83941,15 +84986,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -83984,19 +85029,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": { @@ -84007,24 +85052,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": [ "*/*" ], - "description": "delete an Ingress", - "operationId": "deleteNamespacedIngress", + "description": "delete a StorageVersion", + "operationId": "deleteStorageVersion", "parameters": [ { "in": "body", @@ -84096,13 +85141,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" }, @@ -84110,8 +85155,8 @@ "consumes": [ "*/*" ], - "description": "read the specified Ingress", - "operationId": "readNamespacedIngress", + "description": "read the specified StorageVersion", + "operationId": "readStorageVersion", "produces": [ "application/json", "application/yaml", @@ -84122,7 +85167,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -84133,32 +85178,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", @@ -84175,8 +85212,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified Ingress", - "operationId": "patchNamespacedIngress", + "description": "partially update the specified StorageVersion", + "operationId": "patchStorageVersion", "parameters": [ { "in": "body", @@ -84226,13 +85263,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": { @@ -84243,13 +85280,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" }, @@ -84257,15 +85294,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -84300,13 +85337,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": { @@ -84317,24 +85354,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": [ "*/*" ], - "description": "read status of the specified Ingress", - "operationId": "readNamespacedIngressStatus", + "description": "read status of the specified StorageVersion", + "operationId": "readStorageVersionStatus", "produces": [ "application/json", "application/yaml", @@ -84345,7 +85382,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -84356,32 +85393,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", @@ -84398,8 +85427,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified Ingress", - "operationId": "patchNamespacedIngressStatus", + "description": "partially update status of the specified StorageVersion", + "operationId": "patchStorageVersionStatus", "parameters": [ { "in": "body", @@ -84449,13 +85478,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": { @@ -84466,13 +85495,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" }, @@ -84480,15 +85509,15 @@ "consumes": [ "*/*" ], - "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" } }, { @@ -84523,13 +85552,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": { @@ -84540,45 +85569,553 @@ "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": { + "/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/lifecycle.k8s.io/": { + "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], - "description": "delete collection of NetworkPolicy", - "operationId": "deleteCollectionNamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "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 + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "lifecycle" + ] + } + }, + "/apis/lifecycle.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "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" + } }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ] + } + }, + "/apis/lifecycle.k8s.io/v1alpha1/evictionrequests": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind EvictionRequest", + "operationId": "listEvictionRequestForAllNamespaces", + "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.EvictionRequestList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "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", + "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/lifecycle.k8s.io/v1alpha1/evictions": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Eviction", + "operationId": "listEvictionForAllNamespaces", + "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.EvictionList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "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", + "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/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of EvictionRequest", + "operationId": "deleteCollectionNamespacedEvictionRequest", + "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.", @@ -84686,13 +86223,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -84700,8 +86237,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind NetworkPolicy", - "operationId": "listNamespacedNetworkPolicy", + "description": "list or watch objects of kind EvictionRequest", + "operationId": "listNamespacedEvictionRequest", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -84794,7 +86331,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicyList" + "$ref": "#/definitions/v1alpha1.EvictionRequestList" } }, "401": { @@ -84805,13 +86342,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ @@ -84835,15 +86372,15 @@ "consumes": [ "*/*" ], - "description": "create a NetworkPolicy", - "operationId": "createNamespacedNetworkPolicy", + "description": "create an EvictionRequest", + "operationId": "createNamespacedEvictionRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, { @@ -84878,19 +86415,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "401": { @@ -84901,24 +86438,24 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}": { + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a NetworkPolicy", - "operationId": "deleteNamespacedNetworkPolicy", + "description": "delete an EvictionRequest", + "operationId": "deleteNamespacedEvictionRequest", "parameters": [ { "in": "body", @@ -84990,13 +86527,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -85004,8 +86541,8 @@ "consumes": [ "*/*" ], - "description": "read the specified NetworkPolicy", - "operationId": "readNamespacedNetworkPolicy", + "description": "read the specified EvictionRequest", + "operationId": "readNamespacedEvictionRequest", "produces": [ "application/json", "application/yaml", @@ -85016,7 +86553,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "401": { @@ -85027,18 +86564,18 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the NetworkPolicy", + "description": "name of the EvictionRequest", "in": "path", "name": "name", "required": true, @@ -85069,8 +86606,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified NetworkPolicy", - "operationId": "patchNamespacedNetworkPolicy", + "description": "partially update the specified EvictionRequest", + "operationId": "patchNamespacedEvictionRequest", "parameters": [ { "in": "body", @@ -85120,13 +86657,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "401": { @@ -85137,13 +86674,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -85151,15 +86688,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified NetworkPolicy", - "operationId": "replaceNamespacedNetworkPolicy", + "description": "replace the specified EvictionRequest", + "operationId": "replaceNamespacedEvictionRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, { @@ -85194,13 +86731,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "401": { @@ -85211,38 +86748,35 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/networkpolicies": { + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind NetworkPolicy", - "operationId": "listNetworkPolicyForAllNamespaces", + "description": "read status of the specified EvictionRequest", + "operationId": "readNamespacedEvictionRequestStatus", "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.NetworkPolicyList" + "$ref": "#/definitions/v1alpha1.EvictionRequest" } }, "401": { @@ -85253,124 +86787,60 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "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", - "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 EvictionRequest", + "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 - }, - { - "description": "resourceVersion sets a constraint 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/servicecidrs": { - "delete": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" ], - "description": "delete collection of ServiceCIDR", - "operationId": "deleteCollectionServiceCIDR", + "description": "partially update status of the specified EvictionRequest", + "operationId": "patchNamespacedEvictionRequestStatus", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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", @@ -85379,56 +86849,219 @@ "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/v1alpha1.EvictionRequest" + } }, - { - "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 + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.EvictionRequest" + } }, - { - "description": "resourceVersion sets a constraint 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", + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified EvictionRequest", + "operationId": "replaceNamespacedEvictionRequestStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.EvictionRequest" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.EvictionRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.EvictionRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "lifecycle_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "lifecycle.k8s.io", + "kind": "EvictionRequest", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Eviction", + "operationId": "deleteCollectionNamespacedEviction", + "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", @@ -85484,13 +87117,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -85498,8 +87131,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ServiceCIDR", - "operationId": "listServiceCIDR", + "description": "list or watch objects of kind Eviction", + "operationId": "listNamespacedEviction", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -85592,7 +87225,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDRList" + "$ref": "#/definitions/v1alpha1.EvictionList" } }, "401": { @@ -85603,16 +87236,24 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "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", @@ -85625,15 +87266,15 @@ "consumes": [ "*/*" ], - "description": "create a ServiceCIDR", - "operationId": "createServiceCIDR", + "description": "create an Eviction", + "operationId": "createNamespacedEviction", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.Eviction" } }, { @@ -85668,19 +87309,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.Eviction" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.Eviction" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.Eviction" } }, "401": { @@ -85691,24 +87332,24 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/servicecidrs/{name}": { + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ServiceCIDR", - "operationId": "deleteServiceCIDR", + "description": "delete an Eviction", + "operationId": "deleteNamespacedEviction", "parameters": [ { "in": "body", @@ -85780,13 +87421,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -85794,8 +87435,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ServiceCIDR", - "operationId": "readServiceCIDR", + "description": "read the specified Eviction", + "operationId": "readNamespacedEviction", "produces": [ "application/json", "application/yaml", @@ -85806,7 +87447,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.Eviction" } }, "401": { @@ -85817,24 +87458,32 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the ServiceCIDR", + "description": "name of the Eviction", "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", @@ -85851,8 +87500,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ServiceCIDR", - "operationId": "patchServiceCIDR", + "description": "partially update the specified Eviction", + "operationId": "patchNamespacedEviction", "parameters": [ { "in": "body", @@ -85902,13 +87551,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.Eviction" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.Eviction" } }, "401": { @@ -85919,13 +87568,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -85933,15 +87582,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ServiceCIDR", - "operationId": "replaceServiceCIDR", + "description": "replace the specified Eviction", + "operationId": "replaceNamespacedEviction", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.Eviction" } }, { @@ -85976,13 +87625,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.Eviction" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.Eviction" } }, "401": { @@ -85993,24 +87642,24 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/servicecidrs/{name}/status": { + "/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified ServiceCIDR", - "operationId": "readServiceCIDRStatus", + "description": "read status of the specified Eviction", + "operationId": "readNamespacedEvictionStatus", "produces": [ "application/json", "application/yaml", @@ -86021,7 +87670,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.Eviction" } }, "401": { @@ -86032,24 +87681,32 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the ServiceCIDR", + "description": "name of the Eviction", "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", @@ -86066,8 +87723,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified ServiceCIDR", - "operationId": "patchServiceCIDRStatus", + "description": "partially update status of the specified Eviction", + "operationId": "patchNamespacedEvictionStatus", "parameters": [ { "in": "body", @@ -86117,13 +87774,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.Eviction" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.Eviction" } }, "401": { @@ -86134,13 +87791,13 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -86148,15 +87805,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified ServiceCIDR", - "operationId": "replaceServiceCIDRStatus", + "description": "replace status of the specified Eviction", + "operationId": "replaceNamespacedEvictionStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.Eviction" } }, { @@ -86191,13 +87848,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.Eviction" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1alpha1.Eviction" } }, "401": { @@ -86208,290 +87865,18 @@ "https" ], "tags": [ - "networking_v1" + "lifecycle_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1" + "group": "lifecycle.k8s.io", + "kind": "Eviction", + "version": "v1alpha1" }, "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 - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-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/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", - "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", - "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/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", - "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/ipaddresses": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/evictionrequests": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -86579,7 +87964,7 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/ipaddresses/{name}": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/evictions": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -86616,14 +88001,6 @@ "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", @@ -86675,7 +88052,7 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictionrequests": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -86771,7 +88148,7 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictionrequests/{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.", @@ -86809,7 +88186,7 @@ "uniqueItems": true }, { - "description": "name of the Ingress", + "description": "name of the EvictionRequest", "in": "path", "name": "name", "required": true, @@ -86875,7 +88252,7 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictions": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -86971,7 +88348,7 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { + "/apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictions/{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.", @@ -87009,7 +88386,7 @@ "uniqueItems": true }, { - "description": "name of the NetworkPolicy", + "description": "name of the Eviction", "in": "path", "name": "name", "required": true, @@ -87075,279 +88452,42 @@ } ] }, - "/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 + "/apis/networking.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "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" + ] + } }, - "/apis/networking.k8s.io/v1beta1/": { + "/apis/networking.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -87378,17 +88518,17 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ] } }, - "/apis/networking.k8s.io/v1beta1/ipaddresses": { + "/apis/networking.k8s.io/v1/ingressclasses": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of IPAddress", - "operationId": "deleteCollectionIPAddress", + "description": "delete collection of IngressClass", + "operationId": "deleteCollectionIngressClass", "parameters": [ { "in": "body", @@ -87517,13 +88657,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -87531,8 +88671,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind IPAddress", - "operationId": "listIPAddress", + "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.", @@ -87625,7 +88765,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.IPAddressList" + "$ref": "#/definitions/v1.IngressClassList" } }, "401": { @@ -87636,13 +88776,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } }, "parameters": [ @@ -87658,15 +88798,15 @@ "consumes": [ "*/*" ], - "description": "create an IPAddress", - "operationId": "createIPAddress", + "description": "create an IngressClass", + "operationId": "createIngressClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, { @@ -87701,19 +88841,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, "401": { @@ -87724,24 +88864,24 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1beta1/ipaddresses/{name}": { + "/apis/networking.k8s.io/v1/ingressclasses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an IPAddress", - "operationId": "deleteIPAddress", + "description": "delete an IngressClass", + "operationId": "deleteIngressClass", "parameters": [ { "in": "body", @@ -87813,13 +88953,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -87827,8 +88967,8 @@ "consumes": [ "*/*" ], - "description": "read the specified IPAddress", - "operationId": "readIPAddress", + "description": "read the specified IngressClass", + "operationId": "readIngressClass", "produces": [ "application/json", "application/yaml", @@ -87839,7 +88979,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, "401": { @@ -87850,18 +88990,18 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" } }, "parameters": [ { - "description": "name of the IPAddress", + "description": "name of the IngressClass", "in": "path", "name": "name", "required": true, @@ -87884,8 +89024,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified IPAddress", - "operationId": "patchIPAddress", + "description": "partially update the specified IngressClass", + "operationId": "patchIngressClass", "parameters": [ { "in": "body", @@ -87935,13 +89075,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, "401": { @@ -87952,13 +89092,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -87966,15 +89106,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified IPAddress", - "operationId": "replaceIPAddress", + "description": "replace the specified IngressClass", + "operationId": "replaceIngressClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, { @@ -88009,13 +89149,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.IPAddress" + "$ref": "#/definitions/v1.IngressClass" } }, "401": { @@ -88026,142 +89166,38 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1beta1" + "kind": "IngressClass", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1beta1/servicecidrs": { - "delete": { + "/apis/networking.k8s.io/v1/ingresses": { + "get": { "consumes": [ "*/*" ], - "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 - } - ], + "description": "list or watch objects of kind Ingress", + "operationId": "listIngressForAllNamespaces", "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.Status" + "$ref": "#/definitions/v1.IngressList" } }, "401": { @@ -88172,22 +89208,253 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, + "kind": "Ingress", + "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/networking.k8s.io/v1/ipaddresses": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of IPAddress", + "operationId": "deleteCollectionIPAddress", + "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": [ + "networking_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, "get": { "consumes": [ "*/*" ], - "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.", @@ -88280,7 +89547,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDRList" + "$ref": "#/definitions/v1.IPAddressList" } }, "401": { @@ -88291,13 +89558,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" } }, "parameters": [ @@ -88313,15 +89580,15 @@ "consumes": [ "*/*" ], - "description": "create a ServiceCIDR", - "operationId": "createServiceCIDR", + "description": "create an IPAddress", + "operationId": "createIPAddress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, { @@ -88356,19 +89623,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "401": { @@ -88379,24 +89646,24 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}": { + "/apis/networking.k8s.io/v1/ipaddresses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ServiceCIDR", - "operationId": "deleteServiceCIDR", + "description": "delete an IPAddress", + "operationId": "deleteIPAddress", "parameters": [ { "in": "body", @@ -88468,13 +89735,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -88482,8 +89749,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ServiceCIDR", - "operationId": "readServiceCIDR", + "description": "read the specified IPAddress", + "operationId": "readIPAddress", "produces": [ "application/json", "application/yaml", @@ -88494,7 +89761,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "401": { @@ -88505,18 +89772,18 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" } }, "parameters": [ { - "description": "name of the ServiceCIDR", + "description": "name of the IPAddress", "in": "path", "name": "name", "required": true, @@ -88539,8 +89806,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ServiceCIDR", - "operationId": "patchServiceCIDR", + "description": "partially update the specified IPAddress", + "operationId": "patchIPAddress", "parameters": [ { "in": "body", @@ -88590,13 +89857,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "401": { @@ -88607,13 +89874,13 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -88621,15 +89888,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ServiceCIDR", - "operationId": "replaceServiceCIDR", + "description": "replace the specified IPAddress", + "operationId": "replaceIPAddress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, { @@ -88664,13 +89931,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "401": { @@ -88681,91 +89948,39 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "IPAddress", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status": { - "get": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses": { + "delete": { "consumes": [ "*/*" ], - "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/v1beta1.ServiceCIDR" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" - } - }, - "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-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified ServiceCIDR", - "operationId": "patchServiceCIDRStatus", + "description": "delete collection of Ingress", + "operationId": "deleteCollectionNamespacedIngress", "parameters": [ { "in": "body", "name": "body", - "required": true, "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" + "$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", @@ -88774,25 +89989,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": [ @@ -88805,13 +90083,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -88822,73 +90094,118 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" + "kind": "Ingress", + "version": "v1" }, "x-codegen-request-body-name": "body" }, - "put": { + "get": { "consumes": [ "*/*" ], - "description": "replace status of the specified ServiceCIDR", - "operationId": "replaceServiceCIDRStatus", + "description": "list or watch objects of kind Ingress", + "operationId": "listNamespacedIngress", "parameters": [ { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" - } + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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.", + "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 - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.ServiceCIDR" - } }, - "401": { + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.IngressList" + } + }, + "401": { "description": "Unauthorized" } }, @@ -88896,330 +90213,20 @@ "https" ], "tags": [ - "networking_v1beta1" + "networking_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/networking.k8s.io/v1beta1/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 - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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/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 - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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 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 + "kind": "Ingress", + "version": "v1" } - ] - }, - "/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", + "description": "object name and auth scope, such as for teams and projects", "in": "path", - "name": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -89230,94 +90237,45 @@ "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/node.k8s.io/": { - "get": { + ], + "post": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], - "responses": { - "200": { - "description": "OK", + "description": "create an Ingress", + "operationId": "createNamespacedIngress", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/v1.Ingress" } }, - "401": { - "description": "Unauthorized" + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 } - }, - "schemes": [ - "https" - ], - "tags": [ - "node" - ] - } - }, - "/apis/node.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" ], - "description": "get available resources", - "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -89328,7 +90286,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -89339,17 +90309,24 @@ "https" ], "tags": [ - "node_v1" - ] + "networking_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + }, + "x-codegen-request-body-name": "body" } }, - "/apis/node.k8s.io/v1/runtimeclasses": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of RuntimeClass", - "operationId": "deleteCollectionRuntimeClass", + "description": "delete an Ingress", + "operationId": "deleteNamespacedIngress", "parameters": [ { "in": "body", @@ -89358,13 +90335,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", @@ -89372,13 +90342,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", @@ -89393,20 +90356,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", @@ -89420,41 +90369,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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "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": [ @@ -89467,7 +90381,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "type": "object" + } + }, + "202": { + "description": "Accepted", + "schema": { + "type": "object" } }, "401": { @@ -89478,12 +90398,12 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -89492,101 +90412,19 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind RuntimeClass", - "operationId": "listRuntimeClass", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 - } - ], + "description": "read the specified Ingress", + "operationId": "readNamespacedIngress", "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.RuntimeClassList" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -89597,16 +90435,32 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" } }, "parameters": [ + { + "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", @@ -89615,19 +90469,24 @@ "uniqueItems": true } ], - "post": { + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" ], - "description": "create a RuntimeClass", - "operationId": "createRuntimeClass", + "description": "partially update the specified Ingress", + "operationId": "patchNamespacedIngress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -89638,7 +90497,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", @@ -89650,6 +90509,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": [ @@ -89662,19 +90528,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -89685,30 +90545,29 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/node.k8s.io/v1/runtimeclasses/{name}": { - "delete": { + }, + "put": { "consumes": [ "*/*" ], - "description": "delete a RuntimeClass", - "operationId": "deleteRuntimeClass", + "description": "replace the specified Ingress", + "operationId": "replaceNamespacedIngress", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.Ingress" } }, { @@ -89719,30 +90578,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 } @@ -89757,13 +90602,13 @@ "200": { "description": "OK", "schema": { - "type": "object" + "$ref": "#/definitions/v1.Ingress" } }, - "202": { - "description": "Accepted", + "201": { + "description": "Created", "schema": { - "type": "object" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -89774,22 +90619,24 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" }, "x-codegen-request-body-name": "body" - }, + } + }, + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read the specified RuntimeClass", - "operationId": "readRuntimeClass", + "description": "read status of the specified Ingress", + "operationId": "readNamespacedIngressStatus", "produces": [ "application/json", "application/yaml", @@ -89800,7 +90647,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -89811,24 +90658,32 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" } }, "parameters": [ { - "description": "name of the RuntimeClass", + "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", @@ -89845,8 +90700,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified RuntimeClass", - "operationId": "patchRuntimeClass", + "description": "partially update status of the specified Ingress", + "operationId": "patchNamespacedIngressStatus", "parameters": [ { "in": "body", @@ -89896,13 +90751,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -89913,12 +90768,12 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -89927,15 +90782,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified RuntimeClass", - "operationId": "replaceRuntimeClass", + "description": "replace status of the specified Ingress", + "operationId": "replaceNamespacedIngressStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, { @@ -89970,13 +90825,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -89987,410 +90842,158 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/node.k8s.io/v1/watch/runtimeclasses": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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/node.k8s.io/v1/watch/runtimeclasses/{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 RuntimeClass", - "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/policy/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "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": [ - "policy" - ] - } - }, - "/apis/policy/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "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": [ - "policy_v1" - ] - } - }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of PodDisruptionBudget", - "operationId": "deleteCollectionNamespacedPodDisruptionBudget", - "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" - } + "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies": { + "delete": { + "consumes": [ + "*/*" + ], + "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" + } }, "schemes": [ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -90399,8 +91002,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listNamespacedPodDisruptionBudget", + "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.", @@ -90493,7 +91096,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudgetList" + "$ref": "#/definitions/v1.NetworkPolicyList" } }, "401": { @@ -90504,12 +91107,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, @@ -90534,15 +91137,15 @@ "consumes": [ "*/*" ], - "description": "create a PodDisruptionBudget", - "operationId": "createNamespacedPodDisruptionBudget", + "description": "create a NetworkPolicy", + "operationId": "createNamespacedNetworkPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, { @@ -90577,19 +91180,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "401": { @@ -90600,24 +91203,24 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a PodDisruptionBudget", - "operationId": "deleteNamespacedPodDisruptionBudget", + "description": "delete a NetworkPolicy", + "operationId": "deleteNamespacedNetworkPolicy", "parameters": [ { "in": "body", @@ -90689,12 +91292,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -90703,8 +91306,8 @@ "consumes": [ "*/*" ], - "description": "read the specified PodDisruptionBudget", - "operationId": "readNamespacedPodDisruptionBudget", + "description": "read the specified NetworkPolicy", + "operationId": "readNamespacedNetworkPolicy", "produces": [ "application/json", "application/yaml", @@ -90715,7 +91318,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "401": { @@ -90726,18 +91329,18 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, "parameters": [ { - "description": "name of the PodDisruptionBudget", + "description": "name of the NetworkPolicy", "in": "path", "name": "name", "required": true, @@ -90768,8 +91371,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified PodDisruptionBudget", - "operationId": "patchNamespacedPodDisruptionBudget", + "description": "partially update the specified NetworkPolicy", + "operationId": "patchNamespacedNetworkPolicy", "parameters": [ { "in": "body", @@ -90819,13 +91422,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "401": { @@ -90836,12 +91439,12 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -90850,15 +91453,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified PodDisruptionBudget", - "operationId": "replaceNamespacedPodDisruptionBudget", + "description": "replace the specified NetworkPolicy", + "operationId": "replaceNamespacedNetworkPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, { @@ -90893,13 +91496,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "401": { @@ -90910,35 +91513,38 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { + "/apis/networking.k8s.io/v1/networkpolicies": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified PodDisruptionBudget", - "operationId": "readNamespacedPodDisruptionBudgetStatus", + "description": "list or watch objects of kind NetworkPolicy", + "operationId": "listNetworkPolicyForAllNamespaces", "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.PodDisruptionBudget" + "$ref": "#/definitions/v1.NetworkPolicyList" } }, "401": { @@ -90949,60 +91555,124 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "NetworkPolicy", "version": "v1" } }, "parameters": [ { - "description": "name of the PodDisruptionBudget", - "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 - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" + }, + { + "description": "resourceVersion sets a constraint 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/servicecidrs": { + "delete": { + "consumes": [ + "*/*" ], - "description": "partially update status of the specified PodDisruptionBudget", - "operationId": "patchNamespacedPodDisruptionBudgetStatus", + "description": "delete collection of ServiceCIDR", + "operationId": "deleteCollectionServiceCIDR", "parameters": [ { "in": "body", "name": "body", - "required": true, "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" + "$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", @@ -91011,25 +91681,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": [ @@ -91042,13 +91775,126 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.Status" } }, - "201": { - "description": "Created", + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "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.PodDisruptionBudget" + "$ref": "#/definitions/v1.ServiceCIDRList" } }, "401": { @@ -91059,29 +91905,37 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" - }, - "x-codegen-request-body-name": "body" + } }, - "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": [ "*/*" ], - "description": "replace status of the specified PodDisruptionBudget", - "operationId": "replaceNamespacedPodDisruptionBudgetStatus", + "description": "create a ServiceCIDR", + "operationId": "createServiceCIDR", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.ServiceCIDR" } }, { @@ -91116,13 +91970,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.ServiceCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.ServiceCIDR" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.ServiceCIDR" } }, "401": { @@ -91133,38 +91993,122 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/policy/v1/poddisruptionbudgets": { + "/apis/networking.k8s.io/v1/servicecidrs/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "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": { + "type": "object" + } + }, + "202": { + "description": "Accepted", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "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": [ "*/*" ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listPodDisruptionBudgetForAllNamespaces", + "description": "read the specified ServiceCIDR", + "operationId": "readServiceCIDR", "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.PodDisruptionBudgetList" + "$ref": "#/definitions/v1.ServiceCIDR" } }, "401": { @@ -91175,116 +92119,422 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "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 ServiceCIDR", + "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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "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/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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", + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified ServiceCIDR", + "operationId": "patchServiceCIDR", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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": [ + "*/*" + ], + "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": [ + "*/*" + ], + "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-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified ServiceCIDR", + "operationId": "patchServiceCIDRStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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": [ + "*/*" + ], + "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.", + "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 }, { @@ -91308,14 +92558,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", @@ -91367,7 +92609,7 @@ } ] }, - "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{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.", @@ -91405,7 +92647,7 @@ "uniqueItems": true }, { - "description": "name of the PodDisruptionBudget", + "description": "name of the IngressClass", "in": "path", "name": "name", "required": true, @@ -91413,13 +92655,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", @@ -91471,7 +92793,7 @@ } ] }, - "/apis/policy/v1/watch/poddisruptionbudgets": { + "/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.", @@ -91559,25 +92881,7003 @@ } ] }, - "/apis/rbac.authorization.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "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" + "/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 + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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 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/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.", + "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}/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/node.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node" + ] + } + }, + "/apis/node.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "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": [ + "node_v1" + ] + } + }, + "/apis/node.k8s.io/v1/runtimeclasses": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of RuntimeClass", + "operationId": "deleteCollectionRuntimeClass", + "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": [ + "node_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind RuntimeClass", + "operationId": "listRuntimeClass", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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.RuntimeClassList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "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": [ + "*/*" + ], + "description": "create a RuntimeClass", + "operationId": "createRuntimeClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.RuntimeClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/node.k8s.io/v1/runtimeclasses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a RuntimeClass", + "operationId": "deleteRuntimeClass", + "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": { + "type": "object" + } + }, + "202": { + "description": "Accepted", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified RuntimeClass", + "operationId": "readRuntimeClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the RuntimeClass", + "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-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified RuntimeClass", + "operationId": "patchRuntimeClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.RuntimeClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified RuntimeClass", + "operationId": "replaceRuntimeClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.RuntimeClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/node.k8s.io/v1/watch/runtimeclasses": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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/node.k8s.io/v1/watch/runtimeclasses/{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 RuntimeClass", + "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/policy/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy" + ] + } + }, + "/apis/policy/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "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": [ + "policy_v1" + ] + } + }, + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PodDisruptionBudget", + "operationId": "deleteCollectionNamespacedPodDisruptionBudget", + "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": [ + "policy_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodDisruptionBudget", + "operationId": "listNamespacedPodDisruptionBudget", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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.PodDisruptionBudgetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "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", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a PodDisruptionBudget", + "operationId": "createNamespacedPodDisruptionBudget", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a PodDisruptionBudget", + "operationId": "deleteNamespacedPodDisruptionBudget", + "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": { + "type": "object" + } + }, + "202": { + "description": "Accepted", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified PodDisruptionBudget", + "operationId": "readNamespacedPodDisruptionBudget", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PodDisruptionBudget", + "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-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified PodDisruptionBudget", + "operationId": "patchNamespacedPodDisruptionBudget", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PodDisruptionBudget", + "operationId": "replaceNamespacedPodDisruptionBudget", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified PodDisruptionBudget", + "operationId": "readNamespacedPodDisruptionBudgetStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the PodDisruptionBudget", + "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-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified PodDisruptionBudget", + "operationId": "patchNamespacedPodDisruptionBudgetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PodDisruptionBudget", + "operationId": "replaceNamespacedPodDisruptionBudgetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.PodDisruptionBudget" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/policy/v1/poddisruptionbudgets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodDisruptionBudget", + "operationId": "listPodDisruptionBudgetForAllNamespaces", + "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.PodDisruptionBudgetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "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/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{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 PodDisruptionBudget", + "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/policy/v1/watch/poddisruptionbudgets": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization" + ] + } + }, + "/apis/rbac.authorization.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "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": [ + "rbacAuthorization_v1" + ] + } + }, + "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ClusterRoleBinding", + "operationId": "deleteCollectionClusterRoleBinding", + "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": [ + "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" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ClusterRoleBinding", + "operationId": "listClusterRoleBinding", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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.ClusterRoleBindingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "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": [ + "*/*" + ], + "description": "create a ClusterRoleBinding", + "operationId": "createClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ClusterRoleBinding", + "operationId": "deleteClusterRoleBinding", + "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": { + "type": "object" + } + }, + "202": { + "description": "Accepted", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ClusterRoleBinding", + "operationId": "readClusterRoleBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "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 + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified ClusterRoleBinding", + "operationId": "patchClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ClusterRoleBinding", + "operationId": "replaceClusterRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/rbac.authorization.k8s.io/v1/clusterroles": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ClusterRole", + "operationId": "deleteCollectionClusterRole", + "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": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ClusterRole", + "operationId": "listClusterRole", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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.ClusterRoleList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "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": [ + "*/*" + ], + "description": "create a ClusterRole", + "operationId": "createClusterRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ClusterRole" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ClusterRole" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.ClusterRole" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ClusterRole", + "operationId": "deleteClusterRole", + "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": { + "type": "object" + } + }, + "202": { + "description": "Accepted", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ClusterRole", + "operationId": "readClusterRole", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ClusterRole" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ClusterRole", + "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-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified ClusterRole", + "operationId": "patchClusterRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ClusterRole" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ClusterRole", + "operationId": "replaceClusterRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ClusterRole" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ClusterRole" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of RoleBinding", + "operationId": "deleteCollectionNamespacedRoleBinding", + "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": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind RoleBinding", + "operationId": "listNamespacedRoleBinding", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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.RoleBindingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "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", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a RoleBinding", + "operationId": "createNamespacedRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a RoleBinding", + "operationId": "deleteNamespacedRoleBinding", + "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": { + "type": "object" + } + }, + "202": { + "description": "Accepted", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified RoleBinding", + "operationId": "readNamespacedRoleBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the RoleBinding", + "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-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified RoleBinding", + "operationId": "patchNamespacedRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified RoleBinding", + "operationId": "replaceNamespacedRoleBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.RoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Role", + "operationId": "deleteCollectionNamespacedRole", + "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": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Role", + "operationId": "listNamespacedRole", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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.RoleList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "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", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a Role", + "operationId": "createNamespacedRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Role" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Role" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a Role", + "operationId": "deleteNamespacedRole", + "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": { + "type": "object" + } + }, + "202": { + "description": "Accepted", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified Role", + "operationId": "readNamespacedRole", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Role", + "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-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified Role", + "operationId": "patchNamespacedRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Role", + "operationId": "replaceNamespacedRole", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Role" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/rbac.authorization.k8s.io/v1/rolebindings": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind RoleBinding", + "operationId": "listRoleBindingForAllNamespaces", + "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.RoleBindingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "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/rbac.authorization.k8s.io/v1/roles": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Role", + "operationId": "listRoleForAllNamespaces", + "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.RoleList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "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/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": "shardSelector", + "type": "string", + "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/{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 ClusterRole", + "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/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", + "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/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{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 RoleBinding", + "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/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{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 Role", + "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/rbac.authorization.k8s.io/v1/watch/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", + "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/roles": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -91588,11 +99888,11 @@ "https" ], "tags": [ - "rbacAuthorization" + "resource" ] } }, - "/apis/rbac.authorization.k8s.io/v1/": { + "/apis/resource.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -91623,17 +99923,17 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1" ] } }, - "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings": { + "/apis/resource.k8s.io/v1/deviceclasses": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ClusterRoleBinding", - "operationId": "deleteCollectionClusterRoleBinding", + "description": "delete collection of DeviceClass", + "operationId": "deleteCollectionDeviceClass", "parameters": [ { "in": "body", @@ -91762,12 +100062,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "resource.k8s.io", + "kind": "DeviceClass", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -91776,8 +100076,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ClusterRoleBinding", - "operationId": "listClusterRoleBinding", + "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.", @@ -91870,7 +100170,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBindingList" + "$ref": "#/definitions/v1.DeviceClassList" } }, "401": { @@ -91881,12 +100181,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "resource.k8s.io", + "kind": "DeviceClass", "version": "v1" } }, @@ -91903,15 +100203,15 @@ "consumes": [ "*/*" ], - "description": "create a ClusterRoleBinding", - "operationId": "createClusterRoleBinding", + "description": "create a DeviceClass", + "operationId": "createDeviceClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.DeviceClass" } }, { @@ -91946,19 +100246,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.DeviceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.DeviceClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.DeviceClass" } }, "401": { @@ -91969,24 +100269,24 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "resource.k8s.io", + "kind": "DeviceClass", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}": { + "/apis/resource.k8s.io/v1/deviceclasses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ClusterRoleBinding", - "operationId": "deleteClusterRoleBinding", + "description": "delete a DeviceClass", + "operationId": "deleteDeviceClass", "parameters": [ { "in": "body", @@ -92041,13 +100341,13 @@ "200": { "description": "OK", "schema": { - "type": "object" + "$ref": "#/definitions/v1.DeviceClass" } }, "202": { "description": "Accepted", "schema": { - "type": "object" + "$ref": "#/definitions/v1.DeviceClass" } }, "401": { @@ -92058,12 +100358,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "resource.k8s.io", + "kind": "DeviceClass", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -92072,8 +100372,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ClusterRoleBinding", - "operationId": "readClusterRoleBinding", + "description": "read the specified DeviceClass", + "operationId": "readDeviceClass", "produces": [ "application/json", "application/yaml", @@ -92084,7 +100384,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.DeviceClass" } }, "401": { @@ -92095,18 +100395,18 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "resource.k8s.io", + "kind": "DeviceClass", "version": "v1" } }, "parameters": [ { - "description": "name of the ClusterRoleBinding", + "description": "name of the DeviceClass", "in": "path", "name": "name", "required": true, @@ -92129,8 +100429,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ClusterRoleBinding", - "operationId": "patchClusterRoleBinding", + "description": "partially update the specified DeviceClass", + "operationId": "patchDeviceClass", "parameters": [ { "in": "body", @@ -92180,13 +100480,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.DeviceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.DeviceClass" } }, "401": { @@ -92197,12 +100497,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "resource.k8s.io", + "kind": "DeviceClass", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -92211,15 +100511,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ClusterRoleBinding", - "operationId": "replaceClusterRoleBinding", + "description": "replace the specified DeviceClass", + "operationId": "replaceDeviceClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.DeviceClass" } }, { @@ -92254,13 +100554,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.DeviceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" + "$ref": "#/definitions/v1.DeviceClass" } }, "401": { @@ -92271,24 +100571,24 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "resource.k8s.io", + "kind": "DeviceClass", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/rbac.authorization.k8s.io/v1/clusterroles": { + "/apis/resource.k8s.io/v1/devicetaintrules": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ClusterRole", - "operationId": "deleteCollectionClusterRole", + "description": "delete collection of DeviceTaintRule", + "operationId": "deleteCollectionDeviceTaintRule", "parameters": [ { "in": "body", @@ -92417,12 +100717,12 @@ "https" ], "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": "DeviceTaintRule", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -92431,8 +100731,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ClusterRole", - "operationId": "listClusterRole", + "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.", @@ -92525,7 +100825,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRoleList" + "$ref": "#/definitions/v1.DeviceTaintRuleList" } }, "401": { @@ -92536,12 +100836,12 @@ "https" ], "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": "DeviceTaintRule", "version": "v1" } }, @@ -92558,15 +100858,15 @@ "consumes": [ "*/*" ], - "description": "create a ClusterRole", - "operationId": "createClusterRole", + "description": "create a DeviceTaintRule", + "operationId": "createDeviceTaintRule", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1.DeviceTaintRule" } }, { @@ -92601,19 +100901,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1.DeviceTaintRule" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1.DeviceTaintRule" } }, "401": { @@ -92624,24 +100924,24 @@ "https" ], "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": "DeviceTaintRule", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}": { + "/apis/resource.k8s.io/v1/devicetaintrules/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ClusterRole", - "operationId": "deleteClusterRole", + "description": "delete a DeviceTaintRule", + "operationId": "deleteDeviceTaintRule", "parameters": [ { "in": "body", @@ -92713,12 +101013,12 @@ "https" ], "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": "DeviceTaintRule", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -92727,8 +101027,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ClusterRole", - "operationId": "readClusterRole", + "description": "read the specified DeviceTaintRule", + "operationId": "readDeviceTaintRule", "produces": [ "application/json", "application/yaml", @@ -92739,7 +101039,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1.DeviceTaintRule" } }, "401": { @@ -92750,18 +101050,18 @@ "https" ], "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": "DeviceTaintRule", "version": "v1" } }, "parameters": [ { - "description": "name of the ClusterRole", + "description": "name of the DeviceTaintRule", "in": "path", "name": "name", "required": true, @@ -92784,8 +101084,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ClusterRole", - "operationId": "patchClusterRole", + "description": "partially update the specified DeviceTaintRule", + "operationId": "patchDeviceTaintRule", "parameters": [ { "in": "body", @@ -92835,13 +101135,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1.DeviceTaintRule" } }, "401": { @@ -92852,12 +101152,12 @@ "https" ], "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": "DeviceTaintRule", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -92866,15 +101166,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ClusterRole", - "operationId": "replaceClusterRole", + "description": "replace the specified DeviceTaintRule", + "operationId": "replaceDeviceTaintRule", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1.DeviceTaintRule" } }, { @@ -92909,13 +101209,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ClusterRole" + "$ref": "#/definitions/v1.DeviceTaintRule" } }, "401": { @@ -92926,24 +101226,239 @@ "https" ], "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": "DeviceTaintRule", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings": { + "/apis/resource.k8s.io/v1/devicetaintrules/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "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/v1.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1" + } + }, + "parameters": [ + { + "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 + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified DeviceTaintRule", + "operationId": "patchDeviceTaintRuleStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified DeviceTaintRule", + "operationId": "replaceDeviceTaintRuleStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.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/v1.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of RoleBinding", - "operationId": "deleteCollectionNamespacedRoleBinding", + "description": "delete collection of ResourceClaim", + "operationId": "deleteCollectionNamespacedResourceClaim", "parameters": [ { "in": "body", @@ -93072,12 +101587,12 @@ "https" ], "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" @@ -93086,8 +101601,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind RoleBinding", - "operationId": "listNamespacedRoleBinding", + "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.", @@ -93180,7 +101695,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RoleBindingList" + "$ref": "#/definitions/v1.ResourceClaimList" } }, "401": { @@ -93191,12 +101706,12 @@ "https" ], "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" } }, @@ -93221,15 +101736,15 @@ "consumes": [ "*/*" ], - "description": "create a RoleBinding", - "operationId": "createNamespacedRoleBinding", + "description": "create a ResourceClaim", + "operationId": "createNamespacedResourceClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.RoleBinding" + "$ref": "#/definitions/resource.v1.ResourceClaim" } }, { @@ -93264,19 +101779,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RoleBinding" + "$ref": "#/definitions/resource.v1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.RoleBinding" + "$ref": "#/definitions/resource.v1.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.RoleBinding" + "$ref": "#/definitions/resource.v1.ResourceClaim" } }, "401": { @@ -93287,24 +101802,24 @@ "https" ], "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" } }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}": { + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a RoleBinding", - "operationId": "deleteNamespacedRoleBinding", + "description": "delete a ResourceClaim", + "operationId": "deleteNamespacedResourceClaim", "parameters": [ { "in": "body", @@ -93359,13 +101874,13 @@ "200": { "description": "OK", "schema": { - "type": "object" + "$ref": "#/definitions/resource.v1.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "type": "object" + "$ref": "#/definitions/resource.v1.ResourceClaim" } }, "401": { @@ -93376,12 +101891,12 @@ "https" ], "tags": [ - "rbacAuthorization_v1" + "resource_v1" ], "x-kubernetes-action": "delete", "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" @@ -93390,8 +101905,8 @@ "consumes": [ "*/*" ], - "description": "read the specified RoleBinding", - "operationId": "readNamespacedRoleBinding", + "description": "read the specified ResourceClaim", + "operationId": "readNamespacedResourceClaim", "produces": [ "application/json", "application/yaml", @@ -93402,7 +101917,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RoleBinding" + "$ref": "#/definitions/resource.v1.ResourceClaim" } }, "401": { @@ -93413,18 +101928,18 @@ "https" ], "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" } }, "parameters": [ { - "description": "name of the RoleBinding", + "description": "name of the ResourceClaim", "in": "path", "name": "name", "required": true, @@ -93455,8 +101970,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified RoleBinding", - "operationId": "patchNamespacedRoleBinding", + "description": "partially update the specified ResourceClaim", + "operationId": "patchNamespacedResourceClaim", "parameters": [ { "in": "body", @@ -93506,13 +102021,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RoleBinding" + "$ref": "#/definitions/resource.v1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.RoleBinding" + "$ref": "#/definitions/resource.v1.ResourceClaim" } }, "401": { @@ -93523,12 +102038,12 @@ "https" ], "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" @@ -93537,15 +102052,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified RoleBinding", - "operationId": "replaceNamespacedRoleBinding", + "description": "replace the specified ResourceClaim", + "operationId": "replaceNamespacedResourceClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.RoleBinding" + "$ref": "#/definitions/resource.v1.ResourceClaim" } }, { @@ -93580,13 +102095,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RoleBinding" + "$ref": "#/definitions/resource.v1.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.RoleBinding" + "$ref": "#/definitions/resource.v1.ResourceClaim" } }, "401": { @@ -93597,24 +102112,247 @@ "https" ], "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" } }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles": { + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "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/resource.v1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1" + } + }, + "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-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified ResourceClaim", + "operationId": "patchNamespacedResourceClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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/resource.v1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "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" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified ResourceClaim", + "operationId": "replaceNamespacedResourceClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/resource.v1.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/resource.v1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/resource.v1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Role", - "operationId": "deleteCollectionNamespacedRole", + "description": "delete collection of ResourceClaimTemplate", + "operationId": "deleteCollectionNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", @@ -93743,12 +102481,12 @@ "https" ], "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" @@ -93757,8 +102495,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind Role", - "operationId": "listNamespacedRole", + "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.", @@ -93851,7 +102589,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RoleList" + "$ref": "#/definitions/v1.ResourceClaimTemplateList" } }, "401": { @@ -93862,12 +102600,12 @@ "https" ], "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" } }, @@ -93892,15 +102630,15 @@ "consumes": [ "*/*" ], - "description": "create a Role", - "operationId": "createNamespacedRole", + "description": "create a ResourceClaimTemplate", + "operationId": "createNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1.ResourceClaimTemplate" } }, { @@ -93935,19 +102673,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1.ResourceClaimTemplate" } }, "401": { @@ -93958,24 +102696,24 @@ "https" ], "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" } }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}": { + "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a Role", - "operationId": "deleteNamespacedRole", + "description": "delete a ResourceClaimTemplate", + "operationId": "deleteNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", @@ -94030,13 +102768,13 @@ "200": { "description": "OK", "schema": { - "type": "object" + "$ref": "#/definitions/v1.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "type": "object" + "$ref": "#/definitions/v1.ResourceClaimTemplate" } }, "401": { @@ -94047,12 +102785,12 @@ "https" ], "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" @@ -94061,8 +102799,8 @@ "consumes": [ "*/*" ], - "description": "read the specified Role", - "operationId": "readNamespacedRole", + "description": "read the specified ResourceClaimTemplate", + "operationId": "readNamespacedResourceClaimTemplate", "produces": [ "application/json", "application/yaml", @@ -94073,7 +102811,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1.ResourceClaimTemplate" } }, "401": { @@ -94084,18 +102822,18 @@ "https" ], "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" } }, "parameters": [ { - "description": "name of the Role", + "description": "name of the ResourceClaimTemplate", "in": "path", "name": "name", "required": true, @@ -94125,9 +102863,9 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml", "application/apply-patch+cbor" - ], - "description": "partially update the specified Role", - "operationId": "patchNamespacedRole", + ], + "description": "partially update the specified ResourceClaimTemplate", + "operationId": "patchNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", @@ -94177,13 +102915,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1.ResourceClaimTemplate" } }, "401": { @@ -94194,12 +102932,12 @@ "https" ], "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" @@ -94208,15 +102946,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified Role", - "operationId": "replaceNamespacedRole", + "description": "replace the specified ResourceClaimTemplate", + "operationId": "replaceNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1.ResourceClaimTemplate" } }, { @@ -94251,13 +102989,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Role" + "$ref": "#/definitions/v1.ResourceClaimTemplate" } }, "401": { @@ -94268,24 +103006,24 @@ "https" ], "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" } }, - "/apis/rbac.authorization.k8s.io/v1/rolebindings": { + "/apis/resource.k8s.io/v1/resourceclaims": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind RoleBinding", - "operationId": "listRoleBindingForAllNamespaces", + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceClaimForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -94299,7 +103037,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RoleBindingList" + "$ref": "#/definitions/v1.ResourceClaimList" } }, "401": { @@ -94310,12 +103048,12 @@ "https" ], "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" } }, @@ -94406,13 +103144,13 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/roles": { + "/apis/resource.k8s.io/v1/resourceclaimtemplates": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Role", - "operationId": "listRoleForAllNamespaces", + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceClaimTemplateForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -94426,7 +103164,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RoleList" + "$ref": "#/definitions/v1.ResourceClaimTemplateList" } }, "401": { @@ -94437,471 +103175,15 @@ "https" ], "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "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/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": "shardSelector", - "type": "string", - "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/{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 ClusterRole", - "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 + "resource_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1" } - ] - }, - "/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.", @@ -94938,14 +103220,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", @@ -94997,111 +103271,662 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{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 + "/apis/resource.k8s.io/v1/resourceslices": { + "delete": { + "consumes": [ + "*/*" + ], + "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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "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": [ + "resource_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "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": [ + "*/*" + ], + "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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "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.ResourceSliceList" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1" + } + }, + "parameters": [ { - "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 + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ResourceSlice", + "operationId": "createResourceSlice", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.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/v1.ResourceSlice" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ResourceSlice" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.ResourceSlice" + } + }, + "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_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1/resourceslices/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "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/v1.ResourceSlice" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.ResourceSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "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/v1.ResourceSlice" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1" + } + }, + "parameters": [ { - "description": "name of the RoleBinding", + "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", "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified ResourceSlice", + "operationId": "patchResourceSlice", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.ResourceSlice" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ResourceSlice" + } + }, + "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 + "schemes": [ + "https" + ], + "tags": [ + "resource_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1" }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.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" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceSlice", + "operationId": "replaceResourceSlice", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.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/v1.ResourceSlice" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ResourceSlice" + } + }, + "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": [ + "resource_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "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/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles": { + "/apis/resource.k8s.io/v1/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.", @@ -95138,14 +103963,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", @@ -95197,7 +104014,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}": { + "/apis/resource.k8s.io/v1/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.", @@ -95235,21 +104052,13 @@ "uniqueItems": true }, { - "description": "name of the Role", + "description": "name of the DeviceClass", "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", @@ -95301,7 +104110,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/rolebindings": { + "/apis/resource.k8s.io/v1/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.", @@ -95389,7 +104198,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/roles": { + "/apis/resource.k8s.io/v1/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.", @@ -95399,1071 +104208,433 @@ "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/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "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": [ - "resource" - ] - } - }, - "/apis/resource.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "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_v1" - ] - } - }, - "/apis/resource.k8s.io/v1/deviceclasses": { - "delete": { - "consumes": [ - "*/*" - ], - "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" - } + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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": [ - "resource_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "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": [ - "*/*" - ], - "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/v1.DeviceClassList" - } - }, - "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": [ - "resource_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "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 + }, + { + "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 + }, + { + "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/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": [ - "*/*" - ], - "description": "create a DeviceClass", - "operationId": "createDeviceClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.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/v1.DeviceClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.DeviceClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.DeviceClass" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "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" - } + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that 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/deviceclasses/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "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/v1.DeviceClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.DeviceClass" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/resource.k8s.io/v1/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 }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "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": [ - "*/*" - ], - "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/v1.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 + }, + { + "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": [ - "resource_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1" - } - }, - "parameters": [ { - "description": "name of the DeviceClass", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified DeviceClass", - "operationId": "patchDeviceClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.DeviceClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.DeviceClass" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "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": { - "consumes": [ - "*/*" - ], - "description": "replace the specified DeviceClass", - "operationId": "replaceDeviceClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.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/v1.DeviceClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.DeviceClass" - } - }, - "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_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "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" - } + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "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/namespaces/{namespace}/resourceclaims": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of ResourceClaim", - "operationId": "deleteCollectionNamespacedResourceClaim", - "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" - } + "/apis/resource.k8s.io/v1/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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "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": [ - "*/*" - ], - "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.", - "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.ResourceClaimList" - } - }, - "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": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1" + { + "description": "If 'true', then the output is 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/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", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -96478,449 +104649,356 @@ "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": [ - "*/*" - ], - "description": "create a ResourceClaim", - "operationId": "createNamespacedResourceClaim", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/resource.v1.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/resource.v1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" - } - }, - "401": { - "description": "Unauthorized" - } + ] + }, + "/apis/resource.k8s.io/v1/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 }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "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" - } + { + "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/namespaces/{namespace}/resourceclaims/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a ResourceClaim", - "operationId": "deleteNamespacedResourceClaim", - "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/resource.v1.ResourceClaim" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" - } - }, - "401": { - "description": "Unauthorized" - } + "/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 }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "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": [ - "*/*" - ], - "description": "read the specified ResourceClaim", - "operationId": "readNamespacedResourceClaim", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" - } - }, - "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_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "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/resource.k8s.io/v1/watch/resourceslices": { "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 - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified ResourceClaim", - "operationId": "patchNamespacedResourceClaim", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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/resource.v1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "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": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ResourceClaim", - "operationId": "replaceNamespacedResourceClaim", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/resource.v1.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/resource.v1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" - } - }, - "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_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "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/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "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/resource.v1.ResourceClaim" - } - }, - "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_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "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/resource.k8s.io/v1/watch/resourceslices/{name}": { "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", + "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": "namespace", + "name": "name", "required": true, "type": "string", "uniqueItems": true @@ -96931,131 +105009,61 @@ "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/v1alpha3/": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified ResourceClaim", - "operationId": "patchNamespacedResourceClaimStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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/resource.v1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "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" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified ResourceClaim", - "operationId": "replaceNamespacedResourceClaimStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/resource.v1.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 - } - ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -97066,13 +105074,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/resource.v1.ResourceClaim" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -97083,24 +105085,17 @@ "https" ], "tags": [ - "resource_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1" - }, - "x-codegen-request-body-name": "body" + "resource_v1alpha3" + ] } }, - "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1alpha3/devicetaintrules": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceClaimTemplate", - "operationId": "deleteCollectionNamespacedResourceClaimTemplate", + "description": "delete collection of DeviceTaintRule", + "operationId": "deleteCollectionDeviceTaintRule", "parameters": [ { "in": "body", @@ -97229,13 +105224,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1alpha3" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" }, @@ -97243,8 +105238,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listNamespacedResourceClaimTemplate", + "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.", @@ -97337,7 +105332,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplateList" + "$ref": "#/definitions/v1alpha3.DeviceTaintRuleList" } }, "401": { @@ -97348,24 +105343,16 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1alpha3" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, "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", @@ -97378,15 +105365,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceClaimTemplate", - "operationId": "createNamespacedResourceClaimTemplate", + "description": "create a DeviceTaintRule", + "operationId": "createDeviceTaintRule", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" } }, { @@ -97421,19 +105408,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" } }, "401": { @@ -97444,24 +105431,24 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1alpha3" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceClaimTemplate", - "operationId": "deleteNamespacedResourceClaimTemplate", + "description": "delete a DeviceTaintRule", + "operationId": "deleteDeviceTaintRule", "parameters": [ { "in": "body", @@ -97516,13 +105503,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" } }, "401": { @@ -97533,13 +105520,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1alpha3" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" }, @@ -97547,8 +105534,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ResourceClaimTemplate", - "operationId": "readNamespacedResourceClaimTemplate", + "description": "read the specified DeviceTaintRule", + "operationId": "readDeviceTaintRule", "produces": [ "application/json", "application/yaml", @@ -97559,7 +105546,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" } }, "401": { @@ -97570,32 +105557,24 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1alpha3" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" } }, "parameters": [ { - "description": "name of the ResourceClaimTemplate", + "description": "name of the DeviceTaintRule", "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", @@ -97612,8 +105591,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourceClaimTemplate", - "operationId": "patchNamespacedResourceClaimTemplate", + "description": "partially update the specified DeviceTaintRule", + "operationId": "patchDeviceTaintRule", "parameters": [ { "in": "body", @@ -97663,13 +105642,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" } }, "401": { @@ -97680,13 +105659,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1alpha3" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" }, @@ -97694,15 +105673,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ResourceClaimTemplate", - "operationId": "replaceNamespacedResourceClaimTemplate", + "description": "replace the specified DeviceTaintRule", + "operationId": "replaceDeviceTaintRule", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" } }, { @@ -97737,13 +105716,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" } }, "401": { @@ -97754,38 +105733,35 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1alpha3" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1" + "kind": "DeviceTaintRule", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1/resourceclaims": { + "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listResourceClaimForAllNamespaces", + "description": "read status of the specified DeviceTaintRule", + "operationId": "readDeviceTaintRuleStatus", "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.ResourceClaimList" + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" } }, "401": { @@ -97796,123 +105772,98 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1alpha3" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1" + "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 - }, - { - "description": "resourceVersion sets a constraint 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/resourceclaimtemplates": { - "get": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified DeviceTaintRule", + "operationId": "patchDeviceTaintRuleStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceClaimTemplateList" + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" } }, "401": { @@ -97923,109 +105874,98 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1alpha3" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "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 + "kind": "DeviceTaintRule", + "version": "v1alpha3" }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.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" + }, + "put": { + "consumes": [ + "*/*" + ], + "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", + "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": "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": "put", + "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 - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/resource.k8s.io/v1/resourceslices": { + "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceSlice", - "operationId": "deleteCollectionResourceSlice", + "description": "delete collection of ResourcePoolStatusRequest", + "operationId": "deleteCollectionResourcePoolStatusRequest", "parameters": [ { "in": "body", @@ -98154,13 +106094,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1alpha3" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" }, @@ -98168,8 +106108,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceSlice", - "operationId": "listResourceSlice", + "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.", @@ -98262,7 +106202,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceSliceList" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequestList" } }, "401": { @@ -98273,13 +106213,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1alpha3" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, "parameters": [ @@ -98295,15 +106235,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceSlice", - "operationId": "createResourceSlice", + "description": "create a ResourcePoolStatusRequest", + "operationId": "createResourcePoolStatusRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, { @@ -98338,19 +106278,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -98361,24 +106301,24 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1alpha3" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1/resourceslices/{name}": { + "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceSlice", - "operationId": "deleteResourceSlice", + "description": "delete a ResourcePoolStatusRequest", + "operationId": "deleteResourcePoolStatusRequest", "parameters": [ { "in": "body", @@ -98433,13 +106373,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -98450,13 +106390,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1alpha3" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" }, @@ -98464,8 +106404,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ResourceSlice", - "operationId": "readResourceSlice", + "description": "read the specified ResourcePoolStatusRequest", + "operationId": "readResourcePoolStatusRequest", "produces": [ "application/json", "application/yaml", @@ -98476,7 +106416,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -98487,18 +106427,18 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1alpha3" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" } }, "parameters": [ { - "description": "name of the ResourceSlice", + "description": "name of the ResourcePoolStatusRequest", "in": "path", "name": "name", "required": true, @@ -98521,8 +106461,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourceSlice", - "operationId": "patchResourceSlice", + "description": "partially update the specified ResourcePoolStatusRequest", + "operationId": "patchResourcePoolStatusRequest", "parameters": [ { "in": "body", @@ -98572,13 +106512,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -98589,13 +106529,13 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1alpha3" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" }, @@ -98603,15 +106543,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ResourceSlice", - "operationId": "replaceResourceSlice", + "description": "replace the specified ResourcePoolStatusRequest", + "operationId": "replaceResourcePoolStatusRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, { @@ -98646,13 +106586,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ResourceSlice" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -98663,144 +106603,57 @@ "https" ], "tags": [ - "resource_v1" + "resource_v1alpha3" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1" + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1/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 + "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified ResourcePoolStatusRequest", + "operationId": "readResourcePoolStatusRequestStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + "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": "ResourcePoolStatusRequest", + "version": "v1alpha3" } - ] - }, - "/apis/resource.k8s.io/v1/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", + "description": "name of the ResourcePoolStatusRequest", "in": "path", "name": "name", "required": true, @@ -98813,52 +106666,170 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified ResourcePoolStatusRequest", + "operationId": "patchResourcePoolStatusRequestStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.ResourcePoolStatusRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + "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 + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.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" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified ResourcePoolStatusRequest", + "operationId": "replaceResourcePoolStatusRequestStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.ResourcePoolStatusRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + } + }, + "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": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourcePoolStatusRequest", + "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 - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims": { + "/apis/resource.k8s.io/v1alpha3/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.", @@ -98895,14 +106866,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", @@ -98954,7 +106917,7 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/resource.k8s.io/v1alpha3/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.", @@ -98992,21 +106955,13 @@ "uniqueItems": true }, { - "description": "name of the ResourceClaim", + "description": "name of the DeviceTaintRule", "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", @@ -99058,7 +107013,7 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates": { + "/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.", @@ -99095,14 +107050,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", @@ -99154,7 +107101,7 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/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.", @@ -99192,21 +107139,13 @@ "uniqueItems": true }, { - "description": "name of the ResourceClaimTemplate", + "description": "name of the ResourcePoolStatusRequest", "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", @@ -99258,311 +107197,1417 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/resourceclaims": { + "/apis/resource.k8s.io/v1beta1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "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_v1beta1" + ] + } + }, + "/apis/resource.k8s.io/v1beta1/deviceclasses": { + "delete": { + "consumes": [ + "*/*" + ], + "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_v1beta1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "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/v1beta1.DeviceClassList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "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.", + "description": "If 'true', then the output 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", - "type": "boolean", + "name": "pretty", + "type": "string", "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a DeviceClass", + "operationId": "createDeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.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/v1beta1.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.DeviceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta1.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1beta1/deviceclasses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "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/v1beta1.DeviceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta1.DeviceClass" + } + }, + "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": [ + "resource_v1beta1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "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": [ + "*/*" + ], + "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/v1beta1.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta1" + } + }, + "parameters": [ { - "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, "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-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified DeviceClass", + "operationId": "patchDeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.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_v1beta1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta1" }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that 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": [ + "*/*" + ], + "description": "replace the specified DeviceClass", + "operationId": "replaceDeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.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/v1beta1.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.DeviceClass" + } + }, + "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_v1beta1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta1" }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.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" + } + }, + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ResourceClaim", + "operationId": "deleteCollectionNamespacedResourceClaim", + "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": "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_v1beta1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "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.", + "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.ResourceClaimList" + } + }, + "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_v1beta1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta1" } - ] - }, - "/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", + "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": [ + "*/*" + ], + "description": "create a ResourceClaim", + "operationId": "createNamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.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/v1beta1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.ResourceClaim" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta1.ResourceClaim" + } + }, + "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": [ + "resource_v1beta1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "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" + } + }, + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ResourceClaim", + "operationId": "deleteNamespacedResourceClaim", + "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/v1beta1.ResourceClaim" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta1.ResourceClaim" + } + }, + "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_v1beta1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "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 + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceClaim", + "operationId": "readNamespacedResourceClaim", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.ResourceClaim" + } + }, + "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_v1beta1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta1" } - ] - }, - "/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", + "description": "name of the ResourceClaim", + "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-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified ResourceClaim", + "operationId": "patchNamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.ResourceClaim" + } + }, + "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": [ + "resource_v1beta1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "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" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceClaim", + "operationId": "replaceNamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.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/v1beta1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.ResourceClaim" + } + }, + "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_v1beta1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "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 + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "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/v1beta1.ResourceClaim" + } + }, + "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_v1beta1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta1" } - ] - }, - "/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", + "description": "name of the ResourceClaim", + "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 ResourceSlice", + "description": "object name and auth scope, such as for teams and projects", "in": "path", - "name": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -99573,61 +108618,131 @@ "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/": { - "get": { + ], + "patch": { "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified ResourceClaim", + "operationId": "patchNamespacedResourceClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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" ], - "description": "get available resources", - "operationId": "getAPIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "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" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified ResourceClaim", + "operationId": "replaceNamespacedResourceClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.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", @@ -99638,7 +108753,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1beta1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.ResourceClaim" } }, "401": { @@ -99649,17 +108770,24 @@ "https" ], "tags": [ - "resource_v1alpha3" - ] + "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" } }, - "/apis/resource.k8s.io/v1alpha3/devicetaintrules": { + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of DeviceTaintRule", - "operationId": "deleteCollectionDeviceTaintRule", + "description": "delete collection of ResourceClaimTemplate", + "operationId": "deleteCollectionNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", @@ -99788,13 +108916,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -99802,8 +108930,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind DeviceTaintRule", - "operationId": "listDeviceTaintRule", + "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.", @@ -99896,7 +109024,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRuleList" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplateList" } }, "401": { @@ -99907,16 +109035,24 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + "kind": "ResourceClaimTemplate", + "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", @@ -99929,15 +109065,15 @@ "consumes": [ "*/*" ], - "description": "create a DeviceTaintRule", - "operationId": "createDeviceTaintRule", + "description": "create a ResourceClaimTemplate", + "operationId": "createNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, { @@ -99972,19 +109108,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "401": { @@ -99995,24 +109131,24 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}": { + "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a DeviceTaintRule", - "operationId": "deleteDeviceTaintRule", + "description": "delete a ResourceClaimTemplate", + "operationId": "deleteNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", @@ -100067,13 +109203,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "401": { @@ -100084,13 +109220,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -100098,8 +109234,8 @@ "consumes": [ "*/*" ], - "description": "read the specified DeviceTaintRule", - "operationId": "readDeviceTaintRule", + "description": "read the specified ResourceClaimTemplate", + "operationId": "readNamespacedResourceClaimTemplate", "produces": [ "application/json", "application/yaml", @@ -100110,7 +109246,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "401": { @@ -100121,24 +109257,32 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the DeviceTaintRule", + "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", @@ -100155,8 +109299,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified DeviceTaintRule", - "operationId": "patchDeviceTaintRule", + "description": "partially update the specified ResourceClaimTemplate", + "operationId": "patchNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", @@ -100206,13 +109350,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "401": { @@ -100223,13 +109367,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -100237,15 +109381,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified DeviceTaintRule", - "operationId": "replaceDeviceTaintRule", + "description": "replace the specified ResourceClaimTemplate", + "operationId": "replaceNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, { @@ -100280,13 +109424,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" } }, "401": { @@ -100297,137 +109441,38 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + "kind": "ResourceClaimTemplate", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status": { + "/apis/resource.k8s.io/v1beta1/resourceclaims": { "get": { "consumes": [ "*/*" ], - "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" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" - } - }, - "parameters": [ - { - "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 - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified DeviceTaintRule", - "operationId": "patchDeviceTaintRuleStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 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/v1alpha3.DeviceTaintRule" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1beta1.ResourceClaimList" } }, "401": { @@ -100438,70 +109483,123 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1beta1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" - }, - "x-codegen-request-body-name": "body" + "kind": "ResourceClaim", + "version": "v1beta1" + } }, - "put": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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/resourceclaimtemplates": { + "get": { "consumes": [ "*/*" ], - "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 - } - ], + "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/v1alpha3.DeviceTaintRule" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1beta1.ResourceClaimTemplateList" } }, "401": { @@ -100512,24 +109610,109 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1beta1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "version": "v1alpha3" + "kind": "ResourceClaimTemplate", + "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.", + "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/resource.k8s.io/v1alpha3/resourcepoolstatusrequests": { + "/apis/resource.k8s.io/v1beta1/resourceslices": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourcePoolStatusRequest", - "operationId": "deleteCollectionResourcePoolStatusRequest", + "description": "delete collection of ResourceSlice", + "operationId": "deleteCollectionResourceSlice", "parameters": [ { "in": "body", @@ -100658,13 +109841,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceSlice", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -100672,8 +109855,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourcePoolStatusRequest", - "operationId": "listResourcePoolStatusRequest", + "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.", @@ -100766,7 +109949,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequestList" + "$ref": "#/definitions/v1beta1.ResourceSliceList" } }, "401": { @@ -100777,13 +109960,13 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceSlice", + "version": "v1beta1" } }, "parameters": [ @@ -100799,15 +109982,242 @@ "consumes": [ "*/*" ], - "description": "create a ResourcePoolStatusRequest", - "operationId": "createResourcePoolStatusRequest", + "description": "create a ResourceSlice", + "operationId": "createResourceSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/v1beta1.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/v1beta1.ResourceSlice" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.ResourceSlice" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta1.ResourceSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1beta1/resourceslices/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "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/v1beta1.ResourceSlice" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta1.ResourceSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "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/v1beta1.ResourceSlice" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta1" + } + }, + "parameters": [ + { + "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 + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified ResourceSlice", + "operationId": "patchResourceSlice", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -100818,7 +110228,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", @@ -100830,6 +110240,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": [ @@ -100842,19 +110259,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/v1beta1.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/v1beta1.ResourceSlice" } }, "401": { @@ -100865,30 +110276,29 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1beta1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceSlice", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}": { - "delete": { + }, + "put": { "consumes": [ "*/*" ], - "description": "delete a ResourcePoolStatusRequest", - "operationId": "deleteResourcePoolStatusRequest", + "description": "replace the specified ResourceSlice", + "operationId": "replaceResourceSlice", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1beta1.ResourceSlice" } }, { @@ -100899,30 +110309,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 } @@ -100937,13 +110333,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/v1beta1.ResourceSlice" } }, - "202": { - "description": "Accepted", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + "$ref": "#/definitions/v1beta1.ResourceSlice" } }, "401": { @@ -100954,57 +110350,442 @@ "https" ], "tags": [ - "resource_v1alpha3" + "resource_v1beta1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + "kind": "ResourceSlice", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified ResourcePoolStatusRequest", - "operationId": "readResourcePoolStatusRequest", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - "401": { - "description": "Unauthorized" - } + } + }, + "/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 + }, + { + "description": "If 'true', then the output is 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}/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 }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" - } - }, - "parameters": [ { - "description": "name of the ResourcePoolStatusRequest", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -101015,385 +110796,156 @@ "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified ResourcePoolStatusRequest", - "operationId": "patchResourcePoolStatusRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.ResourcePoolStatusRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + { + "description": "resourceVersion sets a constraint 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": [ - "*/*" - ], - "description": "replace the specified ResourcePoolStatusRequest", - "operationId": "replaceResourcePoolStatusRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.ResourcePoolStatusRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - "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_v1alpha3" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-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/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified ResourcePoolStatusRequest", - "operationId": "readResourcePoolStatusRequestStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - "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_v1alpha3" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "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 + }, + { + "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}/resourceclaimtemplates/{name}": { "parameters": [ { - "description": "name of the ResourcePoolStatusRequest", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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", "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-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified ResourcePoolStatusRequest", - "operationId": "patchResourcePoolStatusRequestStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.ResourcePoolStatusRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1alpha3" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + { + "description": "resourceVersion sets a constraint 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": [ - "*/*" - ], - "description": "replace status of the specified ResourcePoolStatusRequest", - "operationId": "replaceResourcePoolStatusRequestStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.ResourcePoolStatusRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" - } - }, - "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_v1alpha3" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourcePoolStatusRequest", - "version": "v1alpha3" + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-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/resource.k8s.io/v1alpha3/watch/devicetaintrules": { + "/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.", @@ -101481,7 +111033,7 @@ } ] }, - "/apis/resource.k8s.io/v1alpha3/watch/devicetaintrules/{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.", @@ -101518,14 +111070,6 @@ "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", @@ -101577,7 +111121,7 @@ } ] }, - "/apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests": { + "/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.", @@ -101665,7 +111209,7 @@ } ] }, - "/apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests/{name}": { + "/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.", @@ -101703,7 +111247,7 @@ "uniqueItems": true }, { - "description": "name of the ResourcePoolStatusRequest", + "description": "name of the ResourceSlice", "in": "path", "name": "name", "required": true, @@ -101761,7 +111305,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/": { + "/apis/resource.k8s.io/v1beta2/": { "get": { "consumes": [ "application/json", @@ -101792,11 +111336,11 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ] } }, - "/apis/resource.k8s.io/v1beta1/deviceclasses": { + "/apis/resource.k8s.io/v1beta2/deviceclasses": { "delete": { "consumes": [ "*/*" @@ -101931,13 +111475,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -102039,7 +111583,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClassList" + "$ref": "#/definitions/v1beta2.DeviceClassList" } }, "401": { @@ -102050,13 +111594,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -102080,7 +111624,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceClass" } }, { @@ -102115,19 +111659,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceClass" } }, "401": { @@ -102138,18 +111682,18 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta1/deviceclasses/{name}": { + "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}": { "delete": { "consumes": [ "*/*" @@ -102210,13 +111754,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceClass" } }, "401": { @@ -102227,13 +111771,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -102253,7 +111797,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceClass" } }, "401": { @@ -102264,13 +111808,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta1" + "version": "v1beta2" } }, "parameters": [ @@ -102349,13 +111893,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceClass" } }, "401": { @@ -102366,13 +111910,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -102388,7 +111932,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceClass" } }, { @@ -102423,13 +111967,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.DeviceClass" + "$ref": "#/definitions/v1beta2.DeviceClass" } }, "401": { @@ -102440,24 +111984,24 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1beta1" + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims": { + "/apis/resource.k8s.io/v1beta2/devicetaintrules": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceClaim", - "operationId": "deleteCollectionNamespacedResourceClaim", + "description": "delete collection of DeviceTaintRule", + "operationId": "deleteCollectionDeviceTaintRule", "parameters": [ { "in": "body", @@ -102586,13 +112130,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -102600,8 +112144,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listNamespacedResourceClaim", + "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.", @@ -102694,7 +112238,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimList" + "$ref": "#/definitions/v1beta2.DeviceTaintRuleList" } }, "401": { @@ -102705,24 +112249,16 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "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", @@ -102735,15 +112271,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceClaim", - "operationId": "createNamespacedResourceClaim", + "description": "create a DeviceTaintRule", + "operationId": "createDeviceTaintRule", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, { @@ -102778,19 +112314,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "401": { @@ -102801,24 +112337,24 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceClaim", - "operationId": "deleteNamespacedResourceClaim", + "description": "delete a DeviceTaintRule", + "operationId": "deleteDeviceTaintRule", "parameters": [ { "in": "body", @@ -102873,13 +112409,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "401": { @@ -102890,13 +112426,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -102904,8 +112440,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ResourceClaim", - "operationId": "readNamespacedResourceClaim", + "description": "read the specified DeviceTaintRule", + "operationId": "readDeviceTaintRule", "produces": [ "application/json", "application/yaml", @@ -102916,7 +112452,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "401": { @@ -102927,32 +112463,24 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1beta2" } }, "parameters": [ { - "description": "name of the ResourceClaim", + "description": "name of the DeviceTaintRule", "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", @@ -102969,8 +112497,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourceClaim", - "operationId": "patchNamespacedResourceClaim", + "description": "partially update the specified DeviceTaintRule", + "operationId": "patchDeviceTaintRule", "parameters": [ { "in": "body", @@ -103020,13 +112548,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "401": { @@ -103037,13 +112565,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -103051,15 +112579,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ResourceClaim", - "operationId": "replaceNamespacedResourceClaim", + "description": "replace the specified DeviceTaintRule", + "operationId": "replaceDeviceTaintRule", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, { @@ -103094,13 +112622,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "401": { @@ -103111,24 +112639,24 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status": { + "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified ResourceClaim", - "operationId": "readNamespacedResourceClaimStatus", + "description": "read status of the specified DeviceTaintRule", + "operationId": "readDeviceTaintRuleStatus", "produces": [ "application/json", "application/yaml", @@ -103139,7 +112667,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "401": { @@ -103150,32 +112678,24 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1beta2" } }, "parameters": [ { - "description": "name of the ResourceClaim", + "description": "name of the DeviceTaintRule", "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", @@ -103192,8 +112712,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update status of the specified ResourceClaim", - "operationId": "patchNamespacedResourceClaimStatus", + "description": "partially update status of the specified DeviceTaintRule", + "operationId": "patchDeviceTaintRuleStatus", "parameters": [ { "in": "body", @@ -103243,13 +112763,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "401": { @@ -103260,13 +112780,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -103274,15 +112794,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified ResourceClaim", - "operationId": "replaceNamespacedResourceClaimStatus", + "description": "replace status of the specified DeviceTaintRule", + "operationId": "replaceDeviceTaintRuleStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, { @@ -103317,13 +112837,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaim" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "401": { @@ -103334,24 +112854,24 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta1" + "kind": "DeviceTaintRule", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceClaimTemplate", - "operationId": "deleteCollectionNamespacedResourceClaimTemplate", + "description": "delete collection of ResourceClaim", + "operationId": "deleteCollectionNamespacedResourceClaim", "parameters": [ { "in": "body", @@ -103480,13 +113000,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "ResourceClaim", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -103494,8 +113014,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listNamespacedResourceClaimTemplate", + "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.", @@ -103588,7 +113108,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplateList" + "$ref": "#/definitions/v1beta2.ResourceClaimList" } }, "401": { @@ -103599,13 +113119,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "ResourceClaim", + "version": "v1beta2" } }, "parameters": [ @@ -103629,15 +113149,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceClaimTemplate", - "operationId": "createNamespacedResourceClaimTemplate", + "description": "create a ResourceClaim", + "operationId": "createNamespacedResourceClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, { @@ -103672,19 +113192,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -103695,24 +113215,24 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "ResourceClaim", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceClaimTemplate", - "operationId": "deleteNamespacedResourceClaimTemplate", + "description": "delete a ResourceClaim", + "operationId": "deleteNamespacedResourceClaim", "parameters": [ { "in": "body", @@ -103767,13 +113287,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -103784,13 +113304,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "ResourceClaim", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -103798,8 +113318,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ResourceClaimTemplate", - "operationId": "readNamespacedResourceClaimTemplate", + "description": "read the specified ResourceClaim", + "operationId": "readNamespacedResourceClaim", "produces": [ "application/json", "application/yaml", @@ -103810,7 +113330,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -103821,18 +113341,18 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "ResourceClaim", + "version": "v1beta2" } }, "parameters": [ { - "description": "name of the ResourceClaimTemplate", + "description": "name of the ResourceClaim", "in": "path", "name": "name", "required": true, @@ -103863,8 +113383,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourceClaimTemplate", - "operationId": "patchNamespacedResourceClaimTemplate", + "description": "partially update the specified ResourceClaim", + "operationId": "patchNamespacedResourceClaim", "parameters": [ { "in": "body", @@ -103914,13 +113434,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -103931,13 +113451,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "ResourceClaim", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -103945,15 +113465,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ResourceClaimTemplate", - "operationId": "replaceNamespacedResourceClaimTemplate", + "description": "replace the specified ResourceClaim", + "operationId": "replaceNamespacedResourceClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, { @@ -103988,13 +113508,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -104005,38 +113525,35 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta1" + "kind": "ResourceClaim", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta1/resourceclaims": { + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listResourceClaimForAllNamespaces", + "description": "read status of the specified ResourceClaim", + "operationId": "readNamespacedResourceClaimStatus", "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.ResourceClaimList" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -104047,123 +113564,180 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", - "version": "v1beta1" + "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.", - "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 ResourceClaim", + "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-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified ResourceClaim", + "operationId": "patchNamespacedResourceClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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" + } }, - { - "description": "resourceVersion sets a constraint 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": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "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/v1beta1/resourceclaimtemplates": { - "get": { + "x-codegen-request-body-name": "body" + }, + "put": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listResourceClaimTemplateForAllNamespaces", + "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", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceClaimTemplateList" + "$ref": "#/definitions/v1beta2.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -104174,109 +113748,24 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "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.", - "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 + "kind": "ResourceClaim", + "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 - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/resource.k8s.io/v1beta1/resourceslices": { + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceSlice", - "operationId": "deleteCollectionResourceSlice", + "description": "delete collection of ResourceClaimTemplate", + "operationId": "deleteCollectionNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", @@ -104405,13 +113894,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourceClaimTemplate", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -104419,8 +113908,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceSlice", - "operationId": "listResourceSlice", + "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.", @@ -104513,7 +114002,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSliceList" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplateList" } }, "401": { @@ -104524,16 +114013,24 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourceClaimTemplate", + "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", @@ -104546,15 +114043,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceSlice", - "operationId": "createResourceSlice", + "description": "create a ResourceClaimTemplate", + "operationId": "createNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, { @@ -104589,19 +114086,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "401": { @@ -104612,24 +114109,24 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourceClaimTemplate", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta1/resourceslices/{name}": { + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceSlice", - "operationId": "deleteResourceSlice", + "description": "delete a ResourceClaimTemplate", + "operationId": "deleteNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", @@ -104684,13 +114181,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "401": { @@ -104701,13 +114198,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourceClaimTemplate", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -104715,8 +114212,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ResourceSlice", - "operationId": "readResourceSlice", + "description": "read the specified ResourceClaimTemplate", + "operationId": "readNamespacedResourceClaimTemplate", "produces": [ "application/json", "application/yaml", @@ -104727,7 +114224,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "401": { @@ -104738,24 +114235,32 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourceClaimTemplate", + "version": "v1beta2" } }, "parameters": [ { - "description": "name of the ResourceSlice", + "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", @@ -104772,8 +114277,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourceSlice", - "operationId": "patchResourceSlice", + "description": "partially update the specified ResourceClaimTemplate", + "operationId": "patchNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", @@ -104823,13 +114328,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "401": { @@ -104840,13 +114345,13 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourceClaimTemplate", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -104854,15 +114359,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ResourceSlice", - "operationId": "replaceResourceSlice", + "description": "replace the specified ResourceClaimTemplate", + "operationId": "replaceNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, { @@ -104897,13 +114402,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ResourceSlice" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "401": { @@ -104914,298 +114419,57 @@ "https" ], "tags": [ - "resource_v1beta1" + "resource_v1beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "kind": "ResourceClaimTemplate", + "version": "v1beta2" }, "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 + "/apis/resource.k8s.io/v1beta2/resourceclaims": { + "get": { + "consumes": [ + "*/*" + ], + "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" + } }, - { - "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": "ResourceClaim", + "version": "v1beta2" } - ] - }, - "/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.", @@ -105242,22 +114506,6 @@ "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", @@ -105309,7 +114557,46 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1beta2/resourceclaimtemplates": { + "get": { + "consumes": [ + "*/*" + ], + "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" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "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.", @@ -105346,14 +114633,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", @@ -105405,111 +114684,662 @@ } ] }, - "/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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true + "/apis/resource.k8s.io/v1beta2/resourceslices": { + "delete": { + "consumes": [ + "*/*" + ], + "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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "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": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta2" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "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" + } }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta2" + } + }, + "parameters": [ { - "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", "type": "string", "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "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" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1beta2/resourceslices/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "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": "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": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta2" }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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": [ + "*/*" + ], + "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" + } }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "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", "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified ResourceSlice", + "operationId": "patchResourceSlice", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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" + } }, - { - "description": "resourceVersion sets a constraint 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 + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "patch", + "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" + }, + "put": { + "consumes": [ + "*/*" + ], + "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": "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": "put", + "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 - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/resource.k8s.io/v1beta1/watch/resourceclaims": { + "/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.", @@ -105597,7 +115427,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/resourceclaimtemplates": { + "/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.", @@ -105634,6 +115464,14 @@ "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", @@ -105685,7 +115523,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/resourceslices": { + "/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.", @@ -105773,7 +115611,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/resourceslices/{name}": { + "/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.", @@ -105811,7 +115649,7 @@ "uniqueItems": true }, { - "description": "name of the ResourceSlice", + "description": "name of the DeviceTaintRule", "in": "path", "name": "name", "required": true, @@ -105832,560 +115670,284 @@ "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/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "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": [ - "*/*" - ], - "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" - } + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that 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": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "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": [ - "*/*" - ], - "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" - } + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.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": "list", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "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": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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": [ - "*/*" - ], - "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" - } }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "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" - } + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that 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/deviceclasses/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "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" - } + "/apis/resource.k8s.io/v1beta2/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 }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "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": [ - "*/*" - ], - "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" - } + { + "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 + }, + { + "description": "resourceVersion sets a constraint 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 }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "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 + }, + { + "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}/resourceclaimtemplates": { "parameters": [ { - "description": "name of the DeviceClass", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -106396,864 +115958,458 @@ "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified DeviceClass", - "operationId": "patchDeviceClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceClass", - "version": "v1beta2" }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "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" - } + { + "description": "resourceVersion sets a constraint 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": "put", - "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" - } - }, - "/apis/resource.k8s.io/v1beta2/devicetaintrules": { - "delete": { - "consumes": [ - "*/*" - ], - "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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.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" - }, - "get": { - "consumes": [ - "*/*" - ], - "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": "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": "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/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", + "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 } - ], - "post": { - "consumes": [ - "*/*" - ], - "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" - } + ] + }, + "/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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "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": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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/devicetaintrules/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "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" - } + "/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.", + "in": "query", + "name": "allowWatchBookmarks", + "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": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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": [ - "*/*" - ], - "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": "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": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "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 + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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/watch/resourceslices": { "parameters": [ { - "description": "name of the DeviceTaintRule", - "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-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified DeviceTaintRule", - "operationId": "patchDeviceTaintRule", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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" - } }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "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": [ - "*/*" - ], - "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": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that 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": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "DeviceTaintRule", - "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" - } - }, - "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.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": "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 + }, + { + "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": "name of the DeviceTaintRule", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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", "in": "path", "name": "name", "required": true, @@ -107266,57 +116422,61 @@ "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/scheduling.k8s.io/": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified DeviceTaintRule", - "operationId": "patchDeviceTaintRuleStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], + "description": "get information of a group", + "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", @@ -107327,13 +116487,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -107344,53 +116498,20 @@ "https" ], "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" - }, - "put": { + "scheduling" + ] + } + }, + "/apis/scheduling.k8s.io/v1/": { + "get": { "consumes": [ - "*/*" - ], - "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 - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -107401,13 +116522,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.DeviceTaintRule" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -107418,24 +116533,17 @@ "https" ], "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" + "scheduling_v1" + ] } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims": { + "/apis/scheduling.k8s.io/v1/priorityclasses": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceClaim", - "operationId": "deleteCollectionNamespacedResourceClaim", + "description": "delete collection of PriorityClass", + "operationId": "deleteCollectionPriorityClass", "parameters": [ { "in": "body", @@ -107564,13 +116672,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -107578,8 +116686,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listNamespacedResourceClaim", + "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.", @@ -107672,7 +116780,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimList" + "$ref": "#/definitions/v1.PriorityClassList" } }, "401": { @@ -107683,24 +116791,16 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "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", @@ -107713,15 +116813,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceClaim", - "operationId": "createNamespacedResourceClaim", + "description": "create a PriorityClass", + "operationId": "createPriorityClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, { @@ -107756,19 +116856,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, "401": { @@ -107779,24 +116879,24 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/scheduling.k8s.io/v1/priorityclasses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceClaim", - "operationId": "deleteNamespacedResourceClaim", + "description": "delete a PriorityClass", + "operationId": "deletePriorityClass", "parameters": [ { "in": "body", @@ -107851,13 +116951,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "type": "object" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "type": "object" } }, "401": { @@ -107868,13 +116968,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -107882,8 +116982,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ResourceClaim", - "operationId": "readNamespacedResourceClaim", + "description": "read the specified PriorityClass", + "operationId": "readPriorityClass", "produces": [ "application/json", "application/yaml", @@ -107894,7 +116994,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, "401": { @@ -107905,32 +117005,24 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" } }, "parameters": [ { - "description": "name of the ResourceClaim", + "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", @@ -107947,8 +117039,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourceClaim", - "operationId": "patchNamespacedResourceClaim", + "description": "partially update the specified PriorityClass", + "operationId": "patchPriorityClass", "parameters": [ { "in": "body", @@ -107998,13 +117090,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, "401": { @@ -108015,13 +117107,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -108029,15 +117121,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ResourceClaim", - "operationId": "replaceNamespacedResourceClaim", + "description": "replace the specified PriorityClass", + "operationId": "replacePriorityClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, { @@ -108072,13 +117164,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.PriorityClass" } }, "401": { @@ -108089,67 +117181,146 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "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" - } + "/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 }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "get", - "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 + }, + { + "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/v1/watch/priorityclasses/{name}": { "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", + "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 PriorityClass", "in": "path", - "name": "namespace", + "name": "name", "required": true, "type": "string", "uniqueItems": true @@ -108160,57 +117331,61 @@ "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/scheduling.k8s.io/v1alpha3/": { + "get": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update status of the specified ResourceClaim", - "operationId": "patchNamespacedResourceClaimStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -108221,13 +117396,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -108238,70 +117407,31 @@ "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": { + "scheduling_v1alpha3" + ] + } + }, + "/apis/scheduling.k8s.io/v1alpha3/compositepodgroups": { + "get": { "consumes": [ "*/*" ], - "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 - } - ], + "description": "list or watch objects of kind CompositePodGroup", + "operationId": "listCompositePodGroupForAllNamespaces", "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/v1alpha3.CompositePodGroupList" } }, "401": { @@ -108312,24 +117442,109 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "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 }, - "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/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceClaimTemplate", - "operationId": "deleteCollectionNamespacedResourceClaimTemplate", + "description": "delete collection of CompositePodGroup", + "operationId": "deleteCollectionNamespacedCompositePodGroup", "parameters": [ { "in": "body", @@ -108458,13 +117673,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" }, @@ -108472,8 +117687,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listNamespacedResourceClaimTemplate", + "description": "list or watch objects of kind CompositePodGroup", + "operationId": "listNamespacedCompositePodGroup", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -108566,7 +117781,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplateList" + "$ref": "#/definitions/v1alpha3.CompositePodGroupList" } }, "401": { @@ -108577,13 +117792,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" } }, "parameters": [ @@ -108607,15 +117822,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceClaimTemplate", - "operationId": "createNamespacedResourceClaimTemplate", + "description": "create a CompositePodGroup", + "operationId": "createNamespacedCompositePodGroup", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, { @@ -108650,19 +117865,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "401": { @@ -108673,24 +117888,24 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceClaimTemplate", - "operationId": "deleteNamespacedResourceClaimTemplate", + "description": "delete a CompositePodGroup", + "operationId": "deleteNamespacedCompositePodGroup", "parameters": [ { "in": "body", @@ -108745,13 +117960,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "type": "object" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "type": "object" } }, "401": { @@ -108762,13 +117977,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" }, @@ -108776,8 +117991,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ResourceClaimTemplate", - "operationId": "readNamespacedResourceClaimTemplate", + "description": "read the specified CompositePodGroup", + "operationId": "readNamespacedCompositePodGroup", "produces": [ "application/json", "application/yaml", @@ -108788,7 +118003,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "401": { @@ -108799,18 +118014,18 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" } }, "parameters": [ { - "description": "name of the ResourceClaimTemplate", + "description": "name of the CompositePodGroup", "in": "path", "name": "name", "required": true, @@ -108841,8 +118056,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourceClaimTemplate", - "operationId": "patchNamespacedResourceClaimTemplate", + "description": "partially update the specified CompositePodGroup", + "operationId": "patchNamespacedCompositePodGroup", "parameters": [ { "in": "body", @@ -108892,13 +118107,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "401": { @@ -108909,13 +118124,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" }, @@ -108923,15 +118138,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified ResourceClaimTemplate", - "operationId": "replaceNamespacedResourceClaimTemplate", + "description": "replace the specified CompositePodGroup", + "operationId": "replaceNamespacedCompositePodGroup", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, { @@ -108966,13 +118181,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "401": { @@ -108983,38 +118198,35 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta2/resourceclaims": { + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listResourceClaimForAllNamespaces", + "description": "read status of the specified CompositePodGroup", + "operationId": "readNamespacedCompositePodGroupStatus", "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/v1beta2.ResourceClaimList" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "401": { @@ -109025,123 +118237,106 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "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", + "description": "name of the CompositePodGroup", + "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 - }, - { - "description": "resourceVersion sets a constraint 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/resourceclaimtemplates": { - "get": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified CompositePodGroup", + "operationId": "patchNamespacedCompositePodGroupStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplateList" + "$ref": "#/definitions/v1alpha3.CompositePodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.CompositePodGroup" } }, "401": { @@ -109152,109 +118347,98 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "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.", - "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 + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "version": "v1alpha3" }, - { - "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.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" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified CompositePodGroup", + "operationId": "replaceNamespacedCompositePodGroupStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha3.CompositePodGroup" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.CompositePodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.CompositePodGroup" + } + }, + "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_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "CompositePodGroup", + "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 - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/resource.k8s.io/v1beta2/resourceslices": { + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of ResourceSlice", - "operationId": "deleteCollectionResourceSlice", + "description": "delete collection of PodGroup", + "operationId": "deleteCollectionNamespacedPodGroup", "parameters": [ { "in": "body", @@ -109383,13 +118567,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" }, @@ -109397,8 +118581,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind ResourceSlice", - "operationId": "listResourceSlice", + "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.", @@ -109491,7 +118675,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSliceList" + "$ref": "#/definitions/v1alpha3.PodGroupList" } }, "401": { @@ -109502,16 +118686,24 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" } }, "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", @@ -109524,15 +118716,15 @@ "consumes": [ "*/*" ], - "description": "create a ResourceSlice", - "operationId": "createResourceSlice", + "description": "create a PodGroup", + "operationId": "createNamespacedPodGroup", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1alpha3.PodGroup" } }, { @@ -109567,19 +118759,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1alpha3.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1alpha3.PodGroup" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1alpha3.PodGroup" } }, "401": { @@ -109590,24 +118782,24 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta2/resourceslices/{name}": { + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a ResourceSlice", - "operationId": "deleteResourceSlice", + "description": "delete a PodGroup", + "operationId": "deleteNamespacedPodGroup", "parameters": [ { "in": "body", @@ -109662,13 +118854,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "type": "object" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "type": "object" } }, "401": { @@ -109679,13 +118871,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" }, @@ -109693,8 +118885,8 @@ "consumes": [ "*/*" ], - "description": "read the specified ResourceSlice", - "operationId": "readResourceSlice", + "description": "read the specified PodGroup", + "operationId": "readNamespacedPodGroup", "produces": [ "application/json", "application/yaml", @@ -109705,7 +118897,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1alpha3.PodGroup" } }, "401": { @@ -109716,24 +118908,32 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" } }, "parameters": [ { - "description": "name of the ResourceSlice", + "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", @@ -109750,8 +118950,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified ResourceSlice", - "operationId": "patchResourceSlice", + "description": "partially update the specified PodGroup", + "operationId": "patchNamespacedPodGroup", "parameters": [ { "in": "body", @@ -109801,13 +119001,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1alpha3.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1alpha3.PodGroup" } }, "401": { @@ -109818,13 +119018,13 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" }, @@ -109832,15 +119032,238 @@ "consumes": [ "*/*" ], - "description": "replace the specified ResourceSlice", - "operationId": "replaceResourceSlice", + "description": "replace the specified PodGroup", + "operationId": "replaceNamespacedPodGroup", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1alpha3.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", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.PodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "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/v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "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 + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified PodGroup", + "operationId": "patchNamespacedPodGroupStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.PodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PodGroup", + "operationId": "replaceNamespacedPodGroupStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha3.PodGroup" } }, { @@ -109875,13 +119298,159 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" + "$ref": "#/definitions/v1alpha3.PodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of Workload", + "operationId": "deleteCollectionNamespacedWorkload", + "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": { @@ -109892,422 +119461,135 @@ "https" ], "tags": [ - "resource_v1beta2" + "scheduling_v1alpha3" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" }, "x-codegen-request-body-name": "body" - } - }, - "/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.", - "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/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 - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.", - "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/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 - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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 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 - }, - { - "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 + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Workload", + "operationId": "listNamespacedWorkload", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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.WorkloadList" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" + } + }, + "parameters": [ { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -110322,90 +119604,216 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a Workload", + "operationId": "createNamespacedWorkload", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha3.Workload" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.Workload" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.Workload" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha3.Workload" + } + }, + "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_v1alpha3" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-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/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a Workload", + "operationId": "deleteNamespacedWorkload", + "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": { + "type": "object" + } + }, + "202": { + "description": "Accepted", + "schema": { + "type": "object" + } + }, + "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": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "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" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified Workload", + "operationId": "readNamespacedWorkload", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.Workload" + } + }, + "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_v1alpha3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" } - ] - }, - "/apis/resource.k8s.io/v1beta2/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", + "description": "name of the Workload", "in": "path", "name": "name", "required": true, @@ -110426,52 +119834,209 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update the specified Workload", + "operationId": "patchNamespacedWorkload", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.Workload" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.Workload" + } + }, + "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_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "version": "v1alpha3" }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-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": [ + "*/*" + ], + "description": "replace the specified Workload", + "operationId": "replaceNamespacedWorkload", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha3.Workload" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.Workload" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.Workload" + } + }, + "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": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "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/scheduling.k8s.io/v1alpha3/podgroups": { + "get": { + "consumes": [ + "*/*" + ], + "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/v1alpha3.PodGroupList" + } + }, + "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_v1alpha3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha3" } - ] - }, - "/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.", @@ -110508,14 +120073,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", @@ -110567,7 +120124,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/scheduling.k8s.io/v1alpha3/watch/compositepodgroups": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -110604,22 +120161,6 @@ "type": "integer", "uniqueItems": true }, - { - "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", @@ -110671,7 +120212,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/resourceclaims": { + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/compositepodgroups": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -110708,6 +120249,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", @@ -110759,7 +120308,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/resourceclaimtemplates": { + "/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/compositepodgroups/{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.", @@ -110797,93 +120346,21 @@ "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/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", + "description": "name of the CompositePodGroup", + "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", @@ -110935,7 +120412,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/resourceslices/{name}": { + "/apis/scheduling.k8s.io/v1alpha3/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.", @@ -110973,788 +120450,169 @@ "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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", - "in": "query", - "name": "shardSelector", - "type": "string", - "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", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "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", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "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": [ - "*/*" - ], - "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": [ - "*/*" - ], - "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" - } + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true }, - "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": [ - "*/*" - ], - "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": "resourceVersion sets a constraint 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/scheduling.k8s.io/v1/priorityclasses/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "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": { - "type": "object" - } - }, - "202": { - "description": "Accepted", - "schema": { - "type": "object" - } - }, - "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": [ - "scheduling_v1" - ], - "x-kubernetes-action": "delete", - "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" - }, - "get": { - "consumes": [ - "*/*" - ], - "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": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.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": [ - "scheduling_v1" - ], - "x-kubernetes-action": "get", - "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 + }, + { + "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/v1alpha3/watch/namespaces/{namespace}/podgroups/{name}": { "parameters": [ { - "description": "name of the PriorityClass", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, 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 - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml", - "application/apply-patch+cbor" - ], - "description": "partially update the specified PriorityClass", - "operationId": "patchPriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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" - } }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "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": { - "consumes": [ - "*/*" - ], - "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": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that 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": "put", - "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" - } + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "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/v1/watch/priorityclasses": { + "/apis/scheduling.k8s.io/v1alpha3/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.", @@ -111791,6 +120649,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", @@ -111842,7 +120708,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}": { + "/apis/scheduling.k8s.io/v1alpha3/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.", @@ -111880,13 +120746,324 @@ "uniqueItems": true }, { - "description": "name of the PriorityClass", + "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", + "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/v1alpha3/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", + "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/v1alpha3/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", + "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/v1alpha3/workloads": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Workload", + "operationId": "listWorkloadForAllNamespaces", + "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.WorkloadList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "Workload", + "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", + "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", @@ -111938,7 +121115,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/": { + "/apis/scheduling.k8s.io/v1beta1/": { "get": { "consumes": [ "application/json", @@ -111969,11 +121146,11 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ] } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups": { "delete": { "consumes": [ "*/*" @@ -112108,13 +121285,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -112216,7 +121393,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroupList" + "$ref": "#/definitions/v1beta1.PodGroupList" } }, "401": { @@ -112227,13 +121404,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -112265,7 +121442,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, { @@ -112300,19 +121477,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "401": { @@ -112323,18 +121500,18 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}": { "delete": { "consumes": [ "*/*" @@ -112412,13 +121589,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -112438,7 +121615,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "401": { @@ -112449,13 +121626,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -112542,13 +121719,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "401": { @@ -112559,13 +121736,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -112581,7 +121758,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, { @@ -112616,13 +121793,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "401": { @@ -112633,18 +121810,18 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status": { "get": { "consumes": [ "*/*" @@ -112661,7 +121838,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "401": { @@ -112672,13 +121849,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -112765,13 +121942,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "401": { @@ -112782,13 +121959,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -112804,7 +121981,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, { @@ -112839,13 +122016,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroup" + "$ref": "#/definitions/v1beta1.PodGroup" } }, "401": { @@ -112856,18 +122033,18 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads": { "delete": { "consumes": [ "*/*" @@ -113002,13 +122179,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -113110,7 +122287,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.WorkloadList" + "$ref": "#/definitions/v1beta1.WorkloadList" } }, "401": { @@ -113121,13 +122298,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -113159,7 +122336,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, { @@ -113194,19 +122371,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, "401": { @@ -113217,18 +122394,18 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}": { + "/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name}": { "delete": { "consumes": [ "*/*" @@ -113306,13 +122483,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -113332,7 +122509,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, "401": { @@ -113343,13 +122520,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -113436,13 +122613,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, "401": { @@ -113453,13 +122630,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -113475,7 +122652,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, { @@ -113510,13 +122687,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.Workload" + "$ref": "#/definitions/v1beta1.Workload" } }, "401": { @@ -113527,18 +122704,18 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/scheduling.k8s.io/v1alpha2/podgroups": { + "/apis/scheduling.k8s.io/v1beta1/podgroups": { "get": { "consumes": [ "*/*" @@ -113558,7 +122735,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.PodGroupList" + "$ref": "#/definitions/v1beta1.PodGroupList" } }, "401": { @@ -113569,13 +122746,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PodGroup", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -113665,7 +122842,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/podgroups": { + "/apis/scheduling.k8s.io/v1beta1/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.", @@ -113761,7 +122938,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/podgroups/{name}": { + "/apis/scheduling.k8s.io/v1beta1/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.", @@ -113865,7 +123042,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/workloads": { + "/apis/scheduling.k8s.io/v1beta1/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.", @@ -113961,7 +123138,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/workloads/{name}": { + "/apis/scheduling.k8s.io/v1beta1/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.", @@ -114065,7 +123242,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/podgroups": { + "/apis/scheduling.k8s.io/v1beta1/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.", @@ -114153,7 +123330,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/watch/workloads": { + "/apis/scheduling.k8s.io/v1beta1/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.", @@ -114241,7 +123418,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha2/workloads": { + "/apis/scheduling.k8s.io/v1beta1/workloads": { "get": { "consumes": [ "*/*" @@ -114261,7 +123438,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.WorkloadList" + "$ref": "#/definitions/v1beta1.WorkloadList" } }, "401": { @@ -114272,13 +123449,13 @@ "https" ], "tags": [ - "scheduling_v1alpha2" + "scheduling_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha2" + "version": "v1beta1" } }, "parameters": [ @@ -114373,14 +123550,16 @@ "consumes": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "description": "get information of a group", "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { @@ -115746,6 +124925,221 @@ "x-codegen-request-body-name": "body" } }, + "/apis/storage.k8s.io/v1/csinodes/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified CSINode", + "operationId": "readCSINodeStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.CSINode" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the CSINode", + "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-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified CSINode", + "operationId": "patchCSINodeStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.CSINode" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.CSINode" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified CSINode", + "operationId": "replaceCSINodeStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.CSINode" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.CSINode" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.CSINode" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, "/apis/storage.k8s.io/v1/csistoragecapacities": { "get": { "consumes": [ @@ -119932,7 +129326,42 @@ } ] }, - "/apis/storage.k8s.io/v1beta1/": { + "/apis/storagemigration.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storagemigration" + ] + } + }, + "/apis/storagemigration.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -119963,17 +129392,17 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ] } }, - "/apis/storage.k8s.io/v1beta1/volumeattributesclasses": { + "/apis/storagemigration.k8s.io/v1/storageversionmigrations": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of VolumeAttributesClass", - "operationId": "deleteCollectionVolumeAttributesClass", + "description": "delete collection of StorageVersionMigration", + "operationId": "deleteCollectionStorageVersionMigration", "parameters": [ { "in": "body", @@ -120102,13 +129531,13 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -120116,8 +129545,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind VolumeAttributesClass", - "operationId": "listVolumeAttributesClass", + "description": "list or watch objects of kind StorageVersionMigration", + "operationId": "listStorageVersionMigration", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -120210,7 +129639,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClassList" + "$ref": "#/definitions/v1.StorageVersionMigrationList" } }, "401": { @@ -120221,13 +129650,13 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } }, "parameters": [ @@ -120243,15 +129672,15 @@ "consumes": [ "*/*" ], - "description": "create a VolumeAttributesClass", - "operationId": "createVolumeAttributesClass", + "description": "create a StorageVersionMigration", + "operationId": "createStorageVersionMigration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, { @@ -120286,19 +129715,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, "401": { @@ -120309,24 +129738,24 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}": { + "/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a VolumeAttributesClass", - "operationId": "deleteVolumeAttributesClass", + "description": "delete a StorageVersionMigration", + "operationId": "deleteStorageVersionMigration", "parameters": [ { "in": "body", @@ -120381,13 +129810,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "type": "object" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "type": "object" } }, "401": { @@ -120398,13 +129827,13 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -120412,8 +129841,8 @@ "consumes": [ "*/*" ], - "description": "read the specified VolumeAttributesClass", - "operationId": "readVolumeAttributesClass", + "description": "read the specified StorageVersionMigration", + "operationId": "readStorageVersionMigration", "produces": [ "application/json", "application/yaml", @@ -120424,7 +129853,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, "401": { @@ -120435,18 +129864,18 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" } }, "parameters": [ { - "description": "name of the VolumeAttributesClass", + "description": "name of the StorageVersionMigration", "in": "path", "name": "name", "required": true, @@ -120469,8 +129898,8 @@ "application/apply-patch+yaml", "application/apply-patch+cbor" ], - "description": "partially update the specified VolumeAttributesClass", - "operationId": "patchVolumeAttributesClass", + "description": "partially update the specified StorageVersionMigration", + "operationId": "patchStorageVersionMigration", "parameters": [ { "in": "body", @@ -120520,13 +129949,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, "401": { @@ -120537,13 +129966,13 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -120551,15 +129980,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified VolumeAttributesClass", - "operationId": "replaceVolumeAttributesClass", + "description": "replace the specified StorageVersionMigration", + "operationId": "replaceStorageVersionMigration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, { @@ -120594,13 +130023,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.VolumeAttributesClass" + "$ref": "#/definitions/v1.StorageVersionMigration" } }, "401": { @@ -120611,18 +130040,233 @@ "https" ], "tags": [ - "storage_v1beta1" + "storagemigration_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttributesClass", - "version": "v1beta1" + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified StorageVersionMigration", + "operationId": "readStorageVersionMigrationStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StorageVersionMigration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storagemigration_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the StorageVersionMigration", + "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-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml", + "application/apply-patch+cbor" + ], + "description": "partially update status of the specified StorageVersionMigration", + "operationId": "patchStorageVersionMigrationStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.StorageVersionMigration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.StorageVersionMigration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storagemigration_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified StorageVersionMigration", + "operationId": "replaceStorageVersionMigrationStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.StorageVersionMigration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.StorageVersionMigration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.StorageVersionMigration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "storagemigration_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/storage.k8s.io/v1beta1/watch/volumeattributesclasses": { + "/apis/storagemigration.k8s.io/v1/watch/storageversionmigrations": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -120710,7 +130354,7 @@ } ] }, - "/apis/storage.k8s.io/v1beta1/watch/volumeattributesclasses/{name}": { + "/apis/storagemigration.k8s.io/v1/watch/storageversionmigrations/{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.", @@ -120748,7 +130392,7 @@ "uniqueItems": true }, { - "description": "name of the VolumeAttributesClass", + "description": "name of the StorageVersionMigration", "in": "path", "name": "name", "required": true, @@ -120806,39 +130450,6 @@ } ] }, - "/apis/storagemigration.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "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": [ - "storagemigration" - ] - } - }, "/apis/storagemigration.k8s.io/v1beta1/": { "get": { "consumes": [ From a8abda2bb0f1295e95079a3e4a605785aefb7b5a Mon Sep 17 00:00:00 2001 From: yliao Date: Fri, 28 Aug 2026 21:41:26 +0000 Subject: [PATCH 5/6] generated client change --- kubernetes/.openapi-generator/FILES | 304 +++++++++--- .../swagger.json-default.sha256 | 2 +- kubernetes/README.md | 318 ++++++++---- kubernetes/__init__.py | 2 +- kubernetes/aio/.openapi-generator/FILES | 304 +++++++++--- .../swagger.json-default.sha256 | 2 +- kubernetes/aio/README.md | 318 ++++++++---- kubernetes/aio/__init__.py | 2 +- kubernetes/aio/client/__init__.py | 460 +++++++++++++----- kubernetes/aio/client/api_client.py | 4 +- kubernetes/aio/client/configuration.py | 6 +- kubernetes/aio/client/exceptions.py | 2 +- kubernetes/aio/client/rest.py | 2 +- kubernetes/client/__init__.py | 460 +++++++++++++----- kubernetes/client/api_client.py | 4 +- kubernetes/client/configuration.py | 6 +- kubernetes/client/exceptions.py | 2 +- kubernetes/client/rest.py | 2 +- setup-asyncio.py | 2 +- setup-release.py | 2 +- setup.py | 2 +- 21 files changed, 1633 insertions(+), 573 deletions(-) diff --git a/kubernetes/.openapi-generator/FILES b/kubernetes/.openapi-generator/FILES index 1706d341f9..f94c156fe4 100644 --- a/kubernetes/.openapi-generator/FILES +++ b/kubernetes/.openapi-generator/FILES @@ -23,7 +23,6 @@ client/api/batch_api.py client/api/batch_v1_api.py client/api/certificates_api.py client/api/certificates_v1_api.py -client/api/certificates_v1alpha1_api.py client/api/certificates_v1beta1_api.py client/api/coordination_api.py client/api/coordination_v1_api.py @@ -40,10 +39,11 @@ client/api/flowcontrol_apiserver_api.py client/api/flowcontrol_apiserver_v1_api.py client/api/internal_apiserver_api.py client/api/internal_apiserver_v1alpha1_api.py +client/api/lifecycle_api.py +client/api/lifecycle_v1alpha1_api.py client/api/logs_api.py client/api/networking_api.py client/api/networking_v1_api.py -client/api/networking_v1beta1_api.py client/api/node_api.py client/api/node_v1_api.py client/api/openid_api.py @@ -58,11 +58,12 @@ client/api/resource_v1beta1_api.py client/api/resource_v1beta2_api.py client/api/scheduling_api.py client/api/scheduling_v1_api.py -client/api/scheduling_v1alpha2_api.py +client/api/scheduling_v1alpha3_api.py +client/api/scheduling_v1beta1_api.py client/api/storage_api.py client/api/storage_v1_api.py -client/api/storage_v1beta1_api.py client/api/storagemigration_api.py +client/api/storagemigration_v1_api.py client/api/storagemigration_v1beta1_api.py client/api/version_api.py client/api/well_known_api.py @@ -133,7 +134,10 @@ client/models/v1_cluster_role.py client/models/v1_cluster_role_binding.py client/models/v1_cluster_role_binding_list.py client/models/v1_cluster_role_list.py +client/models/v1_cluster_trust_bundle.py +client/models/v1_cluster_trust_bundle_list.py client/models/v1_cluster_trust_bundle_projection.py +client/models/v1_cluster_trust_bundle_spec.py client/models/v1_component_condition.py client/models/v1_component_status.py client/models/v1_component_status_list.py @@ -174,6 +178,7 @@ client/models/v1_csi_node.py client/models/v1_csi_node_driver.py client/models/v1_csi_node_list.py client/models/v1_csi_node_spec.py +client/models/v1_csi_node_status.py client/models/v1_csi_persistent_volume_source.py client/models/v1_csi_storage_capacity.py client/models/v1_csi_storage_capacity_list.py @@ -217,11 +222,17 @@ client/models/v1_device_class_list.py client/models/v1_device_class_spec.py client/models/v1_device_constraint.py client/models/v1_device_counter_consumption.py +client/models/v1_device_derived_attribute.py client/models/v1_device_request.py client/models/v1_device_request_allocation_result.py client/models/v1_device_selector.py client/models/v1_device_sub_request.py client/models/v1_device_taint.py +client/models/v1_device_taint_rule.py +client/models/v1_device_taint_rule_list.py +client/models/v1_device_taint_rule_spec.py +client/models/v1_device_taint_rule_status.py +client/models/v1_device_taint_selector.py client/models/v1_device_toleration.py client/models/v1_downward_api_projection.py client/models/v1_downward_api_volume_file.py @@ -243,6 +254,7 @@ client/models/v1_ephemeral_container.py client/models/v1_ephemeral_volume_source.py client/models/v1_event_source.py client/models/v1_eviction.py +client/models/v1_eviction_responder.py client/models/v1_exact_device_request.py client/models/v1_exec_action.py client/models/v1_exempt_priority_level_configuration.py @@ -309,6 +321,7 @@ client/models/v1_iscsi_volume_source.py client/models/v1_job.py client/models/v1_job_condition.py client/models/v1_job_list.py +client/models/v1_job_scheduling_configuration.py client/models/v1_job_spec.py client/models/v1_job_status.py client/models/v1_job_template_spec.py @@ -368,14 +381,19 @@ client/models/v1_nfs_volume_source.py client/models/v1_node.py client/models/v1_node_address.py client/models/v1_node_affinity.py +client/models/v1_node_allocatable_mapped_resources.py +client/models/v1_node_allocatable_mapping.py +client/models/v1_node_allocatable_overhead.py +client/models/v1_node_allocatable_overhead_resources.py +client/models/v1_node_allocatable_resource.py client/models/v1_node_allocatable_resource_claim_status.py -client/models/v1_node_allocatable_resource_mapping.py client/models/v1_node_condition.py client/models/v1_node_config_source.py client/models/v1_node_config_status.py client/models/v1_node_daemon_endpoints.py client/models/v1_node_features.py client/models/v1_node_list.py +client/models/v1_node_pod_preemption_policy.py client/models/v1_node_runtime_handler.py client/models/v1_node_runtime_handler_features.py client/models/v1_node_selector.py @@ -414,6 +432,10 @@ client/models/v1_pod_affinity.py client/models/v1_pod_affinity_term.py client/models/v1_pod_anti_affinity.py client/models/v1_pod_certificate_projection.py +client/models/v1_pod_certificate_request.py +client/models/v1_pod_certificate_request_list.py +client/models/v1_pod_certificate_request_spec.py +client/models/v1_pod_certificate_request_status.py client/models/v1_pod_condition.py client/models/v1_pod_disruption_budget.py client/models/v1_pod_disruption_budget_list.py @@ -440,6 +462,7 @@ client/models/v1_pod_status.py client/models/v1_pod_template.py client/models/v1_pod_template_list.py client/models/v1_pod_template_spec.py +client/models/v1_pod_volume_health.py client/models/v1_policy_rule.py client/models/v1_policy_rules_with_subjects.py client/models/v1_port_status.py @@ -559,8 +582,14 @@ client/models/v1_status_cause.py client/models/v1_status_details.py client/models/v1_storage_class.py client/models/v1_storage_class_list.py +client/models/v1_storage_health.py +client/models/v1_storage_health_condition.py client/models/v1_storage_os_persistent_volume_source.py client/models/v1_storage_os_volume_source.py +client/models/v1_storage_version_migration.py +client/models/v1_storage_version_migration_list.py +client/models/v1_storage_version_migration_spec.py +client/models/v1_storage_version_migration_status.py client/models/v1_subject_access_review.py client/models/v1_subject_access_review_spec.py client/models/v1_subject_access_review_status.py @@ -608,6 +637,8 @@ client/models/v1_volume_attributes_class.py client/models/v1_volume_attributes_class_list.py client/models/v1_volume_device.py client/models/v1_volume_error.py +client/models/v1_volume_health_condition.py +client/models/v1_volume_health_status.py client/models/v1_volume_mount.py client/models/v1_volume_mount_status.py client/models/v1_volume_node_affinity.py @@ -621,9 +652,18 @@ client/models/v1_webhook_conversion.py client/models/v1_weighted_pod_affinity_term.py client/models/v1_windows_security_context_options.py client/models/v1alpha1_apply_configuration.py -client/models/v1alpha1_cluster_trust_bundle.py -client/models/v1alpha1_cluster_trust_bundle_list.py -client/models/v1alpha1_cluster_trust_bundle_spec.py +client/models/v1alpha1_eviction.py +client/models/v1alpha1_eviction_list.py +client/models/v1alpha1_eviction_pod_reference.py +client/models/v1alpha1_eviction_request.py +client/models/v1alpha1_eviction_request_list.py +client/models/v1alpha1_eviction_request_pod_reference.py +client/models/v1alpha1_eviction_request_spec.py +client/models/v1alpha1_eviction_request_status.py +client/models/v1alpha1_eviction_request_target.py +client/models/v1alpha1_eviction_spec.py +client/models/v1alpha1_eviction_status.py +client/models/v1alpha1_eviction_target.py client/models/v1alpha1_json_patch.py client/models/v1alpha1_match_condition.py client/models/v1alpha1_match_resources.py @@ -637,43 +677,63 @@ client/models/v1alpha1_mutation.py client/models/v1alpha1_named_rule_with_operations.py client/models/v1alpha1_param_kind.py client/models/v1alpha1_param_ref.py +client/models/v1alpha1_requester.py +client/models/v1alpha1_responder_status.py client/models/v1alpha1_server_storage_version.py client/models/v1alpha1_storage_version.py client/models/v1alpha1_storage_version_condition.py client/models/v1alpha1_storage_version_list.py client/models/v1alpha1_storage_version_status.py +client/models/v1alpha1_target_responder.py client/models/v1alpha1_variable.py -client/models/v1alpha2_gang_scheduling_policy.py client/models/v1alpha2_lease_candidate.py client/models/v1alpha2_lease_candidate_list.py client/models/v1alpha2_lease_candidate_spec.py -client/models/v1alpha2_pod_group.py -client/models/v1alpha2_pod_group_list.py -client/models/v1alpha2_pod_group_resource_claim.py -client/models/v1alpha2_pod_group_resource_claim_status.py -client/models/v1alpha2_pod_group_scheduling_constraints.py -client/models/v1alpha2_pod_group_scheduling_policy.py -client/models/v1alpha2_pod_group_spec.py -client/models/v1alpha2_pod_group_status.py -client/models/v1alpha2_pod_group_template.py -client/models/v1alpha2_pod_group_template_reference.py -client/models/v1alpha2_topology_constraint.py -client/models/v1alpha2_typed_local_object_reference.py -client/models/v1alpha2_workload.py -client/models/v1alpha2_workload_list.py -client/models/v1alpha2_workload_pod_group_template_reference.py -client/models/v1alpha2_workload_spec.py +client/models/v1alpha3_composite_disruption_mode.py +client/models/v1alpha3_composite_gang_scheduling_policy.py +client/models/v1alpha3_composite_pod_group.py +client/models/v1alpha3_composite_pod_group_list.py +client/models/v1alpha3_composite_pod_group_scheduling_constraints.py +client/models/v1alpha3_composite_pod_group_scheduling_policy.py +client/models/v1alpha3_composite_pod_group_spec.py +client/models/v1alpha3_composite_pod_group_status.py +client/models/v1alpha3_composite_pod_group_template.py client/models/v1alpha3_device_taint.py client/models/v1alpha3_device_taint_rule.py client/models/v1alpha3_device_taint_rule_list.py client/models/v1alpha3_device_taint_rule_spec.py client/models/v1alpha3_device_taint_rule_status.py client/models/v1alpha3_device_taint_selector.py +client/models/v1alpha3_disruption_mode.py +client/models/v1alpha3_gang_scheduling_policy.py +client/models/v1alpha3_partition_type_status.py +client/models/v1alpha3_pod_group.py +client/models/v1alpha3_pod_group_list.py +client/models/v1alpha3_pod_group_resource_claim.py +client/models/v1alpha3_pod_group_resource_claim_status.py +client/models/v1alpha3_pod_group_scheduling_constraints.py +client/models/v1alpha3_pod_group_scheduling_policy.py +client/models/v1alpha3_pod_group_spec.py +client/models/v1alpha3_pod_group_status.py +client/models/v1alpha3_pod_group_template.py client/models/v1alpha3_pool_status.py client/models/v1alpha3_resource_pool_status_request.py client/models/v1alpha3_resource_pool_status_request_list.py client/models/v1alpha3_resource_pool_status_request_spec.py client/models/v1alpha3_resource_pool_status_request_status.py +client/models/v1alpha3_shareable_capacity_status.py +client/models/v1alpha3_shareable_summary_status.py +client/models/v1alpha3_topology_constraint.py +client/models/v1alpha3_typed_local_object_reference.py +client/models/v1alpha3_workload.py +client/models/v1alpha3_workload_list.py +client/models/v1alpha3_workload_pod_group_disruption_mode.py +client/models/v1alpha3_workload_pod_group_gang_scheduling_policy.py +client/models/v1alpha3_workload_pod_group_resource_claim.py +client/models/v1alpha3_workload_pod_group_scheduling_constraints.py +client/models/v1alpha3_workload_pod_group_scheduling_policy.py +client/models/v1alpha3_workload_reference.py +client/models/v1alpha3_workload_spec.py client/models/v1beta1_allocated_device_status.py client/models/v1beta1_allocation_result.py client/models/v1beta1_apply_configuration.py @@ -685,6 +745,11 @@ client/models/v1beta1_cel_device_selector.py client/models/v1beta1_cluster_trust_bundle.py client/models/v1beta1_cluster_trust_bundle_list.py client/models/v1beta1_cluster_trust_bundle_spec.py +client/models/v1beta1_composite_disruption_mode.py +client/models/v1beta1_composite_gang_scheduling_policy.py +client/models/v1beta1_composite_pod_group_scheduling_constraints.py +client/models/v1beta1_composite_pod_group_scheduling_policy.py +client/models/v1beta1_composite_pod_group_template.py client/models/v1beta1_counter.py client/models/v1beta1_counter_set.py client/models/v1beta1_device.py @@ -700,15 +765,15 @@ client/models/v1beta1_device_class_list.py client/models/v1beta1_device_class_spec.py client/models/v1beta1_device_constraint.py client/models/v1beta1_device_counter_consumption.py +client/models/v1beta1_device_derived_attribute.py client/models/v1beta1_device_request.py client/models/v1beta1_device_request_allocation_result.py client/models/v1beta1_device_selector.py client/models/v1beta1_device_sub_request.py client/models/v1beta1_device_taint.py client/models/v1beta1_device_toleration.py -client/models/v1beta1_ip_address.py -client/models/v1beta1_ip_address_list.py -client/models/v1beta1_ip_address_spec.py +client/models/v1beta1_disruption_mode.py +client/models/v1beta1_gang_scheduling_policy.py client/models/v1beta1_json_patch.py client/models/v1beta1_lease_candidate.py client/models/v1beta1_lease_candidate_list.py @@ -724,15 +789,25 @@ client/models/v1beta1_mutating_admission_policy_spec.py client/models/v1beta1_mutation.py client/models/v1beta1_named_rule_with_operations.py client/models/v1beta1_network_device_data.py -client/models/v1beta1_node_allocatable_resource_mapping.py +client/models/v1beta1_node_allocatable_mapping.py +client/models/v1beta1_node_allocatable_overhead.py +client/models/v1beta1_node_allocatable_resource.py client/models/v1beta1_opaque_device_configuration.py client/models/v1beta1_param_kind.py client/models/v1beta1_param_ref.py -client/models/v1beta1_parent_reference.py client/models/v1beta1_pod_certificate_request.py client/models/v1beta1_pod_certificate_request_list.py client/models/v1beta1_pod_certificate_request_spec.py client/models/v1beta1_pod_certificate_request_status.py +client/models/v1beta1_pod_group.py +client/models/v1beta1_pod_group_list.py +client/models/v1beta1_pod_group_resource_claim.py +client/models/v1beta1_pod_group_resource_claim_status.py +client/models/v1beta1_pod_group_scheduling_constraints.py +client/models/v1beta1_pod_group_scheduling_policy.py +client/models/v1beta1_pod_group_spec.py +client/models/v1beta1_pod_group_status.py +client/models/v1beta1_pod_group_template.py client/models/v1beta1_resource_claim.py client/models/v1beta1_resource_claim_consumer_reference.py client/models/v1beta1_resource_claim_list.py @@ -745,17 +820,17 @@ client/models/v1beta1_resource_pool.py client/models/v1beta1_resource_slice.py client/models/v1beta1_resource_slice_list.py client/models/v1beta1_resource_slice_spec.py -client/models/v1beta1_service_cidr.py -client/models/v1beta1_service_cidr_list.py -client/models/v1beta1_service_cidr_spec.py -client/models/v1beta1_service_cidr_status.py client/models/v1beta1_storage_version_migration.py client/models/v1beta1_storage_version_migration_list.py client/models/v1beta1_storage_version_migration_spec.py client/models/v1beta1_storage_version_migration_status.py +client/models/v1beta1_topology_constraint.py +client/models/v1beta1_typed_local_object_reference.py client/models/v1beta1_variable.py -client/models/v1beta1_volume_attributes_class.py -client/models/v1beta1_volume_attributes_class_list.py +client/models/v1beta1_workload.py +client/models/v1beta1_workload_list.py +client/models/v1beta1_workload_reference.py +client/models/v1beta1_workload_spec.py client/models/v1beta2_allocated_device_status.py client/models/v1beta2_allocation_result.py client/models/v1beta2_capacity_request_policy.py @@ -777,6 +852,7 @@ client/models/v1beta2_device_class_list.py client/models/v1beta2_device_class_spec.py client/models/v1beta2_device_constraint.py client/models/v1beta2_device_counter_consumption.py +client/models/v1beta2_device_derived_attribute.py client/models/v1beta2_device_request.py client/models/v1beta2_device_request_allocation_result.py client/models/v1beta2_device_selector.py @@ -790,7 +866,9 @@ client/models/v1beta2_device_taint_selector.py client/models/v1beta2_device_toleration.py client/models/v1beta2_exact_device_request.py client/models/v1beta2_network_device_data.py -client/models/v1beta2_node_allocatable_resource_mapping.py +client/models/v1beta2_node_allocatable_mapping.py +client/models/v1beta2_node_allocatable_overhead.py +client/models/v1beta2_node_allocatable_resource.py client/models/v1beta2_opaque_device_configuration.py client/models/v1beta2_resource_claim.py client/models/v1beta2_resource_claim_consumer_reference.py @@ -869,7 +947,6 @@ docs/BatchApi.md docs/BatchV1Api.md docs/CertificatesApi.md docs/CertificatesV1Api.md -docs/CertificatesV1alpha1Api.md docs/CertificatesV1beta1Api.md docs/CoordinationApi.md docs/CoordinationV1Api.md @@ -896,10 +973,11 @@ docs/FlowcontrolApiserverV1Api.md docs/FlowcontrolV1Subject.md docs/InternalApiserverApi.md docs/InternalApiserverV1alpha1Api.md +docs/LifecycleApi.md +docs/LifecycleV1alpha1Api.md docs/LogsApi.md docs/NetworkingApi.md docs/NetworkingV1Api.md -docs/NetworkingV1beta1Api.md docs/NodeApi.md docs/NodeV1Api.md docs/OpenidApi.md @@ -916,12 +994,13 @@ docs/ResourceV1beta1Api.md docs/ResourceV1beta2Api.md docs/SchedulingApi.md docs/SchedulingV1Api.md -docs/SchedulingV1alpha2Api.md +docs/SchedulingV1alpha3Api.md +docs/SchedulingV1beta1Api.md docs/StorageApi.md docs/StorageV1Api.md docs/StorageV1TokenRequest.md -docs/StorageV1beta1Api.md docs/StoragemigrationApi.md +docs/StoragemigrationV1Api.md docs/StoragemigrationV1beta1Api.md docs/V1APIGroup.md docs/V1APIGroupList.md @@ -955,6 +1034,7 @@ docs/V1CSINode.md docs/V1CSINodeDriver.md docs/V1CSINodeList.md docs/V1CSINodeSpec.md +docs/V1CSINodeStatus.md docs/V1CSIPersistentVolumeSource.md docs/V1CSIStorageCapacity.md docs/V1CSIStorageCapacityList.md @@ -977,7 +1057,10 @@ docs/V1ClusterRole.md docs/V1ClusterRoleBinding.md docs/V1ClusterRoleBindingList.md docs/V1ClusterRoleList.md +docs/V1ClusterTrustBundle.md +docs/V1ClusterTrustBundleList.md docs/V1ClusterTrustBundleProjection.md +docs/V1ClusterTrustBundleSpec.md docs/V1ComponentCondition.md docs/V1ComponentStatus.md docs/V1ComponentStatusList.md @@ -1050,11 +1133,17 @@ docs/V1DeviceClassList.md docs/V1DeviceClassSpec.md docs/V1DeviceConstraint.md docs/V1DeviceCounterConsumption.md +docs/V1DeviceDerivedAttribute.md docs/V1DeviceRequest.md docs/V1DeviceRequestAllocationResult.md docs/V1DeviceSelector.md docs/V1DeviceSubRequest.md docs/V1DeviceTaint.md +docs/V1DeviceTaintRule.md +docs/V1DeviceTaintRuleList.md +docs/V1DeviceTaintRuleSpec.md +docs/V1DeviceTaintRuleStatus.md +docs/V1DeviceTaintSelector.md docs/V1DeviceToleration.md docs/V1DownwardAPIProjection.md docs/V1DownwardAPIVolumeFile.md @@ -1076,6 +1165,7 @@ docs/V1EphemeralContainer.md docs/V1EphemeralVolumeSource.md docs/V1EventSource.md docs/V1Eviction.md +docs/V1EvictionResponder.md docs/V1ExactDeviceRequest.md docs/V1ExecAction.md docs/V1ExemptPriorityLevelConfiguration.md @@ -1144,6 +1234,7 @@ docs/V1JSONSchemaProps.md docs/V1Job.md docs/V1JobCondition.md docs/V1JobList.md +docs/V1JobSchedulingConfiguration.md docs/V1JobSpec.md docs/V1JobStatus.md docs/V1JobTemplateSpec.md @@ -1201,14 +1292,19 @@ docs/V1NetworkPolicySpec.md docs/V1Node.md docs/V1NodeAddress.md docs/V1NodeAffinity.md +docs/V1NodeAllocatableMappedResources.md +docs/V1NodeAllocatableMapping.md +docs/V1NodeAllocatableOverhead.md +docs/V1NodeAllocatableOverheadResources.md +docs/V1NodeAllocatableResource.md docs/V1NodeAllocatableResourceClaimStatus.md -docs/V1NodeAllocatableResourceMapping.md docs/V1NodeCondition.md docs/V1NodeConfigSource.md docs/V1NodeConfigStatus.md docs/V1NodeDaemonEndpoints.md docs/V1NodeFeatures.md docs/V1NodeList.md +docs/V1NodePodPreemptionPolicy.md docs/V1NodeRuntimeHandler.md docs/V1NodeRuntimeHandlerFeatures.md docs/V1NodeSelector.md @@ -1247,6 +1343,10 @@ docs/V1PodAffinity.md docs/V1PodAffinityTerm.md docs/V1PodAntiAffinity.md docs/V1PodCertificateProjection.md +docs/V1PodCertificateRequest.md +docs/V1PodCertificateRequestList.md +docs/V1PodCertificateRequestSpec.md +docs/V1PodCertificateRequestStatus.md docs/V1PodCondition.md docs/V1PodDNSConfig.md docs/V1PodDNSConfigOption.md @@ -1273,6 +1373,7 @@ docs/V1PodStatus.md docs/V1PodTemplate.md docs/V1PodTemplateList.md docs/V1PodTemplateSpec.md +docs/V1PodVolumeHealth.md docs/V1PolicyRule.md docs/V1PolicyRulesWithSubjects.md docs/V1PortStatus.md @@ -1392,8 +1493,14 @@ docs/V1StatusCause.md docs/V1StatusDetails.md docs/V1StorageClass.md docs/V1StorageClassList.md +docs/V1StorageHealth.md +docs/V1StorageHealthCondition.md docs/V1StorageOSPersistentVolumeSource.md docs/V1StorageOSVolumeSource.md +docs/V1StorageVersionMigration.md +docs/V1StorageVersionMigrationList.md +docs/V1StorageVersionMigrationSpec.md +docs/V1StorageVersionMigrationStatus.md docs/V1SubjectAccessReview.md docs/V1SubjectAccessReviewSpec.md docs/V1SubjectAccessReviewStatus.md @@ -1441,6 +1548,8 @@ docs/V1VolumeAttributesClass.md docs/V1VolumeAttributesClassList.md docs/V1VolumeDevice.md docs/V1VolumeError.md +docs/V1VolumeHealthCondition.md +docs/V1VolumeHealthStatus.md docs/V1VolumeMount.md docs/V1VolumeMountStatus.md docs/V1VolumeNodeAffinity.md @@ -1454,9 +1563,18 @@ docs/V1WebhookConversion.md docs/V1WeightedPodAffinityTerm.md docs/V1WindowsSecurityContextOptions.md docs/V1alpha1ApplyConfiguration.md -docs/V1alpha1ClusterTrustBundle.md -docs/V1alpha1ClusterTrustBundleList.md -docs/V1alpha1ClusterTrustBundleSpec.md +docs/V1alpha1Eviction.md +docs/V1alpha1EvictionList.md +docs/V1alpha1EvictionPodReference.md +docs/V1alpha1EvictionRequest.md +docs/V1alpha1EvictionRequestList.md +docs/V1alpha1EvictionRequestPodReference.md +docs/V1alpha1EvictionRequestSpec.md +docs/V1alpha1EvictionRequestStatus.md +docs/V1alpha1EvictionRequestTarget.md +docs/V1alpha1EvictionSpec.md +docs/V1alpha1EvictionStatus.md +docs/V1alpha1EvictionTarget.md docs/V1alpha1JSONPatch.md docs/V1alpha1MatchCondition.md docs/V1alpha1MatchResources.md @@ -1470,43 +1588,63 @@ docs/V1alpha1Mutation.md docs/V1alpha1NamedRuleWithOperations.md docs/V1alpha1ParamKind.md docs/V1alpha1ParamRef.md +docs/V1alpha1Requester.md +docs/V1alpha1ResponderStatus.md docs/V1alpha1ServerStorageVersion.md docs/V1alpha1StorageVersion.md docs/V1alpha1StorageVersionCondition.md docs/V1alpha1StorageVersionList.md docs/V1alpha1StorageVersionStatus.md +docs/V1alpha1TargetResponder.md docs/V1alpha1Variable.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/V1alpha3CompositeDisruptionMode.md +docs/V1alpha3CompositeGangSchedulingPolicy.md +docs/V1alpha3CompositePodGroup.md +docs/V1alpha3CompositePodGroupList.md +docs/V1alpha3CompositePodGroupSchedulingConstraints.md +docs/V1alpha3CompositePodGroupSchedulingPolicy.md +docs/V1alpha3CompositePodGroupSpec.md +docs/V1alpha3CompositePodGroupStatus.md +docs/V1alpha3CompositePodGroupTemplate.md docs/V1alpha3DeviceTaint.md docs/V1alpha3DeviceTaintRule.md docs/V1alpha3DeviceTaintRuleList.md docs/V1alpha3DeviceTaintRuleSpec.md docs/V1alpha3DeviceTaintRuleStatus.md docs/V1alpha3DeviceTaintSelector.md +docs/V1alpha3DisruptionMode.md +docs/V1alpha3GangSchedulingPolicy.md +docs/V1alpha3PartitionTypeStatus.md +docs/V1alpha3PodGroup.md +docs/V1alpha3PodGroupList.md +docs/V1alpha3PodGroupResourceClaim.md +docs/V1alpha3PodGroupResourceClaimStatus.md +docs/V1alpha3PodGroupSchedulingConstraints.md +docs/V1alpha3PodGroupSchedulingPolicy.md +docs/V1alpha3PodGroupSpec.md +docs/V1alpha3PodGroupStatus.md +docs/V1alpha3PodGroupTemplate.md docs/V1alpha3PoolStatus.md docs/V1alpha3ResourcePoolStatusRequest.md docs/V1alpha3ResourcePoolStatusRequestList.md docs/V1alpha3ResourcePoolStatusRequestSpec.md docs/V1alpha3ResourcePoolStatusRequestStatus.md +docs/V1alpha3ShareableCapacityStatus.md +docs/V1alpha3ShareableSummaryStatus.md +docs/V1alpha3TopologyConstraint.md +docs/V1alpha3TypedLocalObjectReference.md +docs/V1alpha3Workload.md +docs/V1alpha3WorkloadList.md +docs/V1alpha3WorkloadPodGroupDisruptionMode.md +docs/V1alpha3WorkloadPodGroupGangSchedulingPolicy.md +docs/V1alpha3WorkloadPodGroupResourceClaim.md +docs/V1alpha3WorkloadPodGroupSchedulingConstraints.md +docs/V1alpha3WorkloadPodGroupSchedulingPolicy.md +docs/V1alpha3WorkloadReference.md +docs/V1alpha3WorkloadSpec.md docs/V1beta1AllocatedDeviceStatus.md docs/V1beta1AllocationResult.md docs/V1beta1ApplyConfiguration.md @@ -1518,6 +1656,11 @@ docs/V1beta1CapacityRequirements.md docs/V1beta1ClusterTrustBundle.md docs/V1beta1ClusterTrustBundleList.md docs/V1beta1ClusterTrustBundleSpec.md +docs/V1beta1CompositeDisruptionMode.md +docs/V1beta1CompositeGangSchedulingPolicy.md +docs/V1beta1CompositePodGroupSchedulingConstraints.md +docs/V1beta1CompositePodGroupSchedulingPolicy.md +docs/V1beta1CompositePodGroupTemplate.md docs/V1beta1Counter.md docs/V1beta1CounterSet.md docs/V1beta1Device.md @@ -1533,15 +1676,15 @@ docs/V1beta1DeviceClassList.md docs/V1beta1DeviceClassSpec.md docs/V1beta1DeviceConstraint.md docs/V1beta1DeviceCounterConsumption.md +docs/V1beta1DeviceDerivedAttribute.md docs/V1beta1DeviceRequest.md docs/V1beta1DeviceRequestAllocationResult.md docs/V1beta1DeviceSelector.md docs/V1beta1DeviceSubRequest.md docs/V1beta1DeviceTaint.md docs/V1beta1DeviceToleration.md -docs/V1beta1IPAddress.md -docs/V1beta1IPAddressList.md -docs/V1beta1IPAddressSpec.md +docs/V1beta1DisruptionMode.md +docs/V1beta1GangSchedulingPolicy.md docs/V1beta1JSONPatch.md docs/V1beta1LeaseCandidate.md docs/V1beta1LeaseCandidateList.md @@ -1557,15 +1700,25 @@ docs/V1beta1MutatingAdmissionPolicySpec.md docs/V1beta1Mutation.md docs/V1beta1NamedRuleWithOperations.md docs/V1beta1NetworkDeviceData.md -docs/V1beta1NodeAllocatableResourceMapping.md +docs/V1beta1NodeAllocatableMapping.md +docs/V1beta1NodeAllocatableOverhead.md +docs/V1beta1NodeAllocatableResource.md docs/V1beta1OpaqueDeviceConfiguration.md docs/V1beta1ParamKind.md docs/V1beta1ParamRef.md -docs/V1beta1ParentReference.md docs/V1beta1PodCertificateRequest.md docs/V1beta1PodCertificateRequestList.md docs/V1beta1PodCertificateRequestSpec.md docs/V1beta1PodCertificateRequestStatus.md +docs/V1beta1PodGroup.md +docs/V1beta1PodGroupList.md +docs/V1beta1PodGroupResourceClaim.md +docs/V1beta1PodGroupResourceClaimStatus.md +docs/V1beta1PodGroupSchedulingConstraints.md +docs/V1beta1PodGroupSchedulingPolicy.md +docs/V1beta1PodGroupSpec.md +docs/V1beta1PodGroupStatus.md +docs/V1beta1PodGroupTemplate.md docs/V1beta1ResourceClaim.md docs/V1beta1ResourceClaimConsumerReference.md docs/V1beta1ResourceClaimList.md @@ -1578,17 +1731,17 @@ docs/V1beta1ResourcePool.md docs/V1beta1ResourceSlice.md docs/V1beta1ResourceSliceList.md docs/V1beta1ResourceSliceSpec.md -docs/V1beta1ServiceCIDR.md -docs/V1beta1ServiceCIDRList.md -docs/V1beta1ServiceCIDRSpec.md -docs/V1beta1ServiceCIDRStatus.md docs/V1beta1StorageVersionMigration.md docs/V1beta1StorageVersionMigrationList.md docs/V1beta1StorageVersionMigrationSpec.md docs/V1beta1StorageVersionMigrationStatus.md +docs/V1beta1TopologyConstraint.md +docs/V1beta1TypedLocalObjectReference.md docs/V1beta1Variable.md -docs/V1beta1VolumeAttributesClass.md -docs/V1beta1VolumeAttributesClassList.md +docs/V1beta1Workload.md +docs/V1beta1WorkloadList.md +docs/V1beta1WorkloadReference.md +docs/V1beta1WorkloadSpec.md docs/V1beta2AllocatedDeviceStatus.md docs/V1beta2AllocationResult.md docs/V1beta2CELDeviceSelector.md @@ -1610,6 +1763,7 @@ docs/V1beta2DeviceClassList.md docs/V1beta2DeviceClassSpec.md docs/V1beta2DeviceConstraint.md docs/V1beta2DeviceCounterConsumption.md +docs/V1beta2DeviceDerivedAttribute.md docs/V1beta2DeviceRequest.md docs/V1beta2DeviceRequestAllocationResult.md docs/V1beta2DeviceSelector.md @@ -1623,7 +1777,9 @@ docs/V1beta2DeviceTaintSelector.md docs/V1beta2DeviceToleration.md docs/V1beta2ExactDeviceRequest.md docs/V1beta2NetworkDeviceData.md -docs/V1beta2NodeAllocatableResourceMapping.md +docs/V1beta2NodeAllocatableMapping.md +docs/V1beta2NodeAllocatableOverhead.md +docs/V1beta2NodeAllocatableResource.md docs/V1beta2OpaqueDeviceConfiguration.md docs/V1beta2ResourceClaim.md docs/V1beta2ResourceClaimConsumerReference.md diff --git a/kubernetes/.openapi-generator/swagger.json-default.sha256 b/kubernetes/.openapi-generator/swagger.json-default.sha256 index 40ab00a4c4..23f1f6c0a8 100644 --- a/kubernetes/.openapi-generator/swagger.json-default.sha256 +++ b/kubernetes/.openapi-generator/swagger.json-default.sha256 @@ -1 +1 @@ -6a2f3ba25f88cbea9998b2da0b80a96d72fd29e892ffde2357f980dbb48ec22b \ No newline at end of file +c96f8f26a26b65b52e6ee9bd77b8c2887903b62ece1dc9c38c95032ede8c53f6 \ No newline at end of file diff --git a/kubernetes/README.md b/kubernetes/README.md index bb9c00b7b3..4e12cd8550 100644 --- a/kubernetes/README.md +++ b/kubernetes/README.md @@ -3,8 +3,8 @@ No description provided (generated by Openapi Generator https://github.com/opena This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: release-1.36 -- Package version: 36.0.0+snapshot +- API version: release-1.37 +- Package version: 37.0.0+snapshot - Generator version: 7.25.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -343,27 +343,37 @@ Class | Method | HTTP request | Description *BatchV1Api* | [**replace_namespaced_job_status**](docs/BatchV1Api.md#replace_namespaced_job_status) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | *CertificatesApi* | [**get_api_group**](docs/CertificatesApi.md#get_api_group) | **GET** /apis/certificates.k8s.io/ | *CertificatesV1Api* | [**create_certificate_signing_request**](docs/CertificatesV1Api.md#create_certificate_signing_request) | **POST** /apis/certificates.k8s.io/v1/certificatesigningrequests | +*CertificatesV1Api* | [**create_cluster_trust_bundle**](docs/CertificatesV1Api.md#create_cluster_trust_bundle) | **POST** /apis/certificates.k8s.io/v1/clustertrustbundles | +*CertificatesV1Api* | [**create_namespaced_pod_certificate_request**](docs/CertificatesV1Api.md#create_namespaced_pod_certificate_request) | **POST** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests | *CertificatesV1Api* | [**delete_certificate_signing_request**](docs/CertificatesV1Api.md#delete_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | +*CertificatesV1Api* | [**delete_cluster_trust_bundle**](docs/CertificatesV1Api.md#delete_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1/clustertrustbundles/{name} | *CertificatesV1Api* | [**delete_collection_certificate_signing_request**](docs/CertificatesV1Api.md#delete_collection_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1/certificatesigningrequests | +*CertificatesV1Api* | [**delete_collection_cluster_trust_bundle**](docs/CertificatesV1Api.md#delete_collection_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1/clustertrustbundles | +*CertificatesV1Api* | [**delete_collection_namespaced_pod_certificate_request**](docs/CertificatesV1Api.md#delete_collection_namespaced_pod_certificate_request) | **DELETE** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests | +*CertificatesV1Api* | [**delete_namespaced_pod_certificate_request**](docs/CertificatesV1Api.md#delete_namespaced_pod_certificate_request) | **DELETE** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name} | *CertificatesV1Api* | [**get_api_resources**](docs/CertificatesV1Api.md#get_api_resources) | **GET** /apis/certificates.k8s.io/v1/ | *CertificatesV1Api* | [**list_certificate_signing_request**](docs/CertificatesV1Api.md#list_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests | +*CertificatesV1Api* | [**list_cluster_trust_bundle**](docs/CertificatesV1Api.md#list_cluster_trust_bundle) | **GET** /apis/certificates.k8s.io/v1/clustertrustbundles | +*CertificatesV1Api* | [**list_namespaced_pod_certificate_request**](docs/CertificatesV1Api.md#list_namespaced_pod_certificate_request) | **GET** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests | +*CertificatesV1Api* | [**list_pod_certificate_request_for_all_namespaces**](docs/CertificatesV1Api.md#list_pod_certificate_request_for_all_namespaces) | **GET** /apis/certificates.k8s.io/v1/podcertificaterequests | *CertificatesV1Api* | [**patch_certificate_signing_request**](docs/CertificatesV1Api.md#patch_certificate_signing_request) | **PATCH** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | *CertificatesV1Api* | [**patch_certificate_signing_request_approval**](docs/CertificatesV1Api.md#patch_certificate_signing_request_approval) | **PATCH** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval | *CertificatesV1Api* | [**patch_certificate_signing_request_status**](docs/CertificatesV1Api.md#patch_certificate_signing_request_status) | **PATCH** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status | +*CertificatesV1Api* | [**patch_cluster_trust_bundle**](docs/CertificatesV1Api.md#patch_cluster_trust_bundle) | **PATCH** /apis/certificates.k8s.io/v1/clustertrustbundles/{name} | +*CertificatesV1Api* | [**patch_namespaced_pod_certificate_request**](docs/CertificatesV1Api.md#patch_namespaced_pod_certificate_request) | **PATCH** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name} | +*CertificatesV1Api* | [**patch_namespaced_pod_certificate_request_status**](docs/CertificatesV1Api.md#patch_namespaced_pod_certificate_request_status) | **PATCH** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status | *CertificatesV1Api* | [**read_certificate_signing_request**](docs/CertificatesV1Api.md#read_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | *CertificatesV1Api* | [**read_certificate_signing_request_approval**](docs/CertificatesV1Api.md#read_certificate_signing_request_approval) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval | *CertificatesV1Api* | [**read_certificate_signing_request_status**](docs/CertificatesV1Api.md#read_certificate_signing_request_status) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status | +*CertificatesV1Api* | [**read_cluster_trust_bundle**](docs/CertificatesV1Api.md#read_cluster_trust_bundle) | **GET** /apis/certificates.k8s.io/v1/clustertrustbundles/{name} | +*CertificatesV1Api* | [**read_namespaced_pod_certificate_request**](docs/CertificatesV1Api.md#read_namespaced_pod_certificate_request) | **GET** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name} | +*CertificatesV1Api* | [**read_namespaced_pod_certificate_request_status**](docs/CertificatesV1Api.md#read_namespaced_pod_certificate_request_status) | **GET** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status | *CertificatesV1Api* | [**replace_certificate_signing_request**](docs/CertificatesV1Api.md#replace_certificate_signing_request) | **PUT** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | *CertificatesV1Api* | [**replace_certificate_signing_request_approval**](docs/CertificatesV1Api.md#replace_certificate_signing_request_approval) | **PUT** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval | *CertificatesV1Api* | [**replace_certificate_signing_request_status**](docs/CertificatesV1Api.md#replace_certificate_signing_request_status) | **PUT** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status | -*CertificatesV1alpha1Api* | [**create_cluster_trust_bundle**](docs/CertificatesV1alpha1Api.md#create_cluster_trust_bundle) | **POST** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | -*CertificatesV1alpha1Api* | [**delete_cluster_trust_bundle**](docs/CertificatesV1alpha1Api.md#delete_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | -*CertificatesV1alpha1Api* | [**delete_collection_cluster_trust_bundle**](docs/CertificatesV1alpha1Api.md#delete_collection_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | -*CertificatesV1alpha1Api* | [**get_api_resources**](docs/CertificatesV1alpha1Api.md#get_api_resources) | **GET** /apis/certificates.k8s.io/v1alpha1/ | -*CertificatesV1alpha1Api* | [**list_cluster_trust_bundle**](docs/CertificatesV1alpha1Api.md#list_cluster_trust_bundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | -*CertificatesV1alpha1Api* | [**patch_cluster_trust_bundle**](docs/CertificatesV1alpha1Api.md#patch_cluster_trust_bundle) | **PATCH** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | -*CertificatesV1alpha1Api* | [**read_cluster_trust_bundle**](docs/CertificatesV1alpha1Api.md#read_cluster_trust_bundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | -*CertificatesV1alpha1Api* | [**replace_cluster_trust_bundle**](docs/CertificatesV1alpha1Api.md#replace_cluster_trust_bundle) | **PUT** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | +*CertificatesV1Api* | [**replace_cluster_trust_bundle**](docs/CertificatesV1Api.md#replace_cluster_trust_bundle) | **PUT** /apis/certificates.k8s.io/v1/clustertrustbundles/{name} | +*CertificatesV1Api* | [**replace_namespaced_pod_certificate_request**](docs/CertificatesV1Api.md#replace_namespaced_pod_certificate_request) | **PUT** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name} | +*CertificatesV1Api* | [**replace_namespaced_pod_certificate_request_status**](docs/CertificatesV1Api.md#replace_namespaced_pod_certificate_request_status) | **PUT** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status | *CertificatesV1beta1Api* | [**create_cluster_trust_bundle**](docs/CertificatesV1beta1Api.md#create_cluster_trust_bundle) | **POST** /apis/certificates.k8s.io/v1beta1/clustertrustbundles | *CertificatesV1beta1Api* | [**create_namespaced_pod_certificate_request**](docs/CertificatesV1beta1Api.md#create_namespaced_pod_certificate_request) | **POST** /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests | *CertificatesV1beta1Api* | [**delete_cluster_trust_bundle**](docs/CertificatesV1beta1Api.md#delete_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | @@ -700,6 +710,30 @@ Class | Method | HTTP request | Description *InternalApiserverV1alpha1Api* | [**read_storage_version_status**](docs/InternalApiserverV1alpha1Api.md#read_storage_version_status) | **GET** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status | *InternalApiserverV1alpha1Api* | [**replace_storage_version**](docs/InternalApiserverV1alpha1Api.md#replace_storage_version) | **PUT** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name} | *InternalApiserverV1alpha1Api* | [**replace_storage_version_status**](docs/InternalApiserverV1alpha1Api.md#replace_storage_version_status) | **PUT** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status | +*LifecycleApi* | [**get_api_group**](docs/LifecycleApi.md#get_api_group) | **GET** /apis/lifecycle.k8s.io/ | +*LifecycleV1alpha1Api* | [**create_namespaced_eviction**](docs/LifecycleV1alpha1Api.md#create_namespaced_eviction) | **POST** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions | +*LifecycleV1alpha1Api* | [**create_namespaced_eviction_request**](docs/LifecycleV1alpha1Api.md#create_namespaced_eviction_request) | **POST** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests | +*LifecycleV1alpha1Api* | [**delete_collection_namespaced_eviction**](docs/LifecycleV1alpha1Api.md#delete_collection_namespaced_eviction) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions | +*LifecycleV1alpha1Api* | [**delete_collection_namespaced_eviction_request**](docs/LifecycleV1alpha1Api.md#delete_collection_namespaced_eviction_request) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests | +*LifecycleV1alpha1Api* | [**delete_namespaced_eviction**](docs/LifecycleV1alpha1Api.md#delete_namespaced_eviction) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | +*LifecycleV1alpha1Api* | [**delete_namespaced_eviction_request**](docs/LifecycleV1alpha1Api.md#delete_namespaced_eviction_request) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | +*LifecycleV1alpha1Api* | [**get_api_resources**](docs/LifecycleV1alpha1Api.md#get_api_resources) | **GET** /apis/lifecycle.k8s.io/v1alpha1/ | +*LifecycleV1alpha1Api* | [**list_eviction_for_all_namespaces**](docs/LifecycleV1alpha1Api.md#list_eviction_for_all_namespaces) | **GET** /apis/lifecycle.k8s.io/v1alpha1/evictions | +*LifecycleV1alpha1Api* | [**list_eviction_request_for_all_namespaces**](docs/LifecycleV1alpha1Api.md#list_eviction_request_for_all_namespaces) | **GET** /apis/lifecycle.k8s.io/v1alpha1/evictionrequests | +*LifecycleV1alpha1Api* | [**list_namespaced_eviction**](docs/LifecycleV1alpha1Api.md#list_namespaced_eviction) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions | +*LifecycleV1alpha1Api* | [**list_namespaced_eviction_request**](docs/LifecycleV1alpha1Api.md#list_namespaced_eviction_request) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests | +*LifecycleV1alpha1Api* | [**patch_namespaced_eviction**](docs/LifecycleV1alpha1Api.md#patch_namespaced_eviction) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | +*LifecycleV1alpha1Api* | [**patch_namespaced_eviction_request**](docs/LifecycleV1alpha1Api.md#patch_namespaced_eviction_request) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | +*LifecycleV1alpha1Api* | [**patch_namespaced_eviction_request_status**](docs/LifecycleV1alpha1Api.md#patch_namespaced_eviction_request_status) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status | +*LifecycleV1alpha1Api* | [**patch_namespaced_eviction_status**](docs/LifecycleV1alpha1Api.md#patch_namespaced_eviction_status) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status | +*LifecycleV1alpha1Api* | [**read_namespaced_eviction**](docs/LifecycleV1alpha1Api.md#read_namespaced_eviction) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | +*LifecycleV1alpha1Api* | [**read_namespaced_eviction_request**](docs/LifecycleV1alpha1Api.md#read_namespaced_eviction_request) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | +*LifecycleV1alpha1Api* | [**read_namespaced_eviction_request_status**](docs/LifecycleV1alpha1Api.md#read_namespaced_eviction_request_status) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status | +*LifecycleV1alpha1Api* | [**read_namespaced_eviction_status**](docs/LifecycleV1alpha1Api.md#read_namespaced_eviction_status) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status | +*LifecycleV1alpha1Api* | [**replace_namespaced_eviction**](docs/LifecycleV1alpha1Api.md#replace_namespaced_eviction) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | +*LifecycleV1alpha1Api* | [**replace_namespaced_eviction_request**](docs/LifecycleV1alpha1Api.md#replace_namespaced_eviction_request) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | +*LifecycleV1alpha1Api* | [**replace_namespaced_eviction_request_status**](docs/LifecycleV1alpha1Api.md#replace_namespaced_eviction_request_status) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status | +*LifecycleV1alpha1Api* | [**replace_namespaced_eviction_status**](docs/LifecycleV1alpha1Api.md#replace_namespaced_eviction_status) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status | *LogsApi* | [**log_file_handler**](docs/LogsApi.md#log_file_handler) | **GET** /logs/{logpath} | *LogsApi* | [**log_file_list_handler**](docs/LogsApi.md#log_file_list_handler) | **GET** /logs/ | *NetworkingApi* | [**get_api_group**](docs/NetworkingApi.md#get_api_group) | **GET** /apis/networking.k8s.io/ | @@ -747,24 +781,6 @@ Class | Method | HTTP request | Description *NetworkingV1Api* | [**replace_namespaced_network_policy**](docs/NetworkingV1Api.md#replace_namespaced_network_policy) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} | *NetworkingV1Api* | [**replace_service_cidr**](docs/NetworkingV1Api.md#replace_service_cidr) | **PUT** /apis/networking.k8s.io/v1/servicecidrs/{name} | *NetworkingV1Api* | [**replace_service_cidr_status**](docs/NetworkingV1Api.md#replace_service_cidr_status) | **PUT** /apis/networking.k8s.io/v1/servicecidrs/{name}/status | -*NetworkingV1beta1Api* | [**create_ip_address**](docs/NetworkingV1beta1Api.md#create_ip_address) | **POST** /apis/networking.k8s.io/v1beta1/ipaddresses | -*NetworkingV1beta1Api* | [**create_service_cidr**](docs/NetworkingV1beta1Api.md#create_service_cidr) | **POST** /apis/networking.k8s.io/v1beta1/servicecidrs | -*NetworkingV1beta1Api* | [**delete_collection_ip_address**](docs/NetworkingV1beta1Api.md#delete_collection_ip_address) | **DELETE** /apis/networking.k8s.io/v1beta1/ipaddresses | -*NetworkingV1beta1Api* | [**delete_collection_service_cidr**](docs/NetworkingV1beta1Api.md#delete_collection_service_cidr) | **DELETE** /apis/networking.k8s.io/v1beta1/servicecidrs | -*NetworkingV1beta1Api* | [**delete_ip_address**](docs/NetworkingV1beta1Api.md#delete_ip_address) | **DELETE** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | -*NetworkingV1beta1Api* | [**delete_service_cidr**](docs/NetworkingV1beta1Api.md#delete_service_cidr) | **DELETE** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | -*NetworkingV1beta1Api* | [**get_api_resources**](docs/NetworkingV1beta1Api.md#get_api_resources) | **GET** /apis/networking.k8s.io/v1beta1/ | -*NetworkingV1beta1Api* | [**list_ip_address**](docs/NetworkingV1beta1Api.md#list_ip_address) | **GET** /apis/networking.k8s.io/v1beta1/ipaddresses | -*NetworkingV1beta1Api* | [**list_service_cidr**](docs/NetworkingV1beta1Api.md#list_service_cidr) | **GET** /apis/networking.k8s.io/v1beta1/servicecidrs | -*NetworkingV1beta1Api* | [**patch_ip_address**](docs/NetworkingV1beta1Api.md#patch_ip_address) | **PATCH** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | -*NetworkingV1beta1Api* | [**patch_service_cidr**](docs/NetworkingV1beta1Api.md#patch_service_cidr) | **PATCH** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | -*NetworkingV1beta1Api* | [**patch_service_cidr_status**](docs/NetworkingV1beta1Api.md#patch_service_cidr_status) | **PATCH** /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status | -*NetworkingV1beta1Api* | [**read_ip_address**](docs/NetworkingV1beta1Api.md#read_ip_address) | **GET** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | -*NetworkingV1beta1Api* | [**read_service_cidr**](docs/NetworkingV1beta1Api.md#read_service_cidr) | **GET** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | -*NetworkingV1beta1Api* | [**read_service_cidr_status**](docs/NetworkingV1beta1Api.md#read_service_cidr_status) | **GET** /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status | -*NetworkingV1beta1Api* | [**replace_ip_address**](docs/NetworkingV1beta1Api.md#replace_ip_address) | **PUT** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | -*NetworkingV1beta1Api* | [**replace_service_cidr**](docs/NetworkingV1beta1Api.md#replace_service_cidr) | **PUT** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | -*NetworkingV1beta1Api* | [**replace_service_cidr_status**](docs/NetworkingV1beta1Api.md#replace_service_cidr_status) | **PUT** /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status | *NodeApi* | [**get_api_group**](docs/NodeApi.md#get_api_group) | **GET** /apis/node.k8s.io/ | *NodeV1Api* | [**create_runtime_class**](docs/NodeV1Api.md#create_runtime_class) | **POST** /apis/node.k8s.io/v1/runtimeclasses | *NodeV1Api* | [**delete_collection_runtime_class**](docs/NodeV1Api.md#delete_collection_runtime_class) | **DELETE** /apis/node.k8s.io/v1/runtimeclasses | @@ -822,35 +838,45 @@ Class | Method | HTTP request | Description *RbacAuthorizationV1Api* | [**replace_namespaced_role_binding**](docs/RbacAuthorizationV1Api.md#replace_namespaced_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name} | *ResourceApi* | [**get_api_group**](docs/ResourceApi.md#get_api_group) | **GET** /apis/resource.k8s.io/ | *ResourceV1Api* | [**create_device_class**](docs/ResourceV1Api.md#create_device_class) | **POST** /apis/resource.k8s.io/v1/deviceclasses | +*ResourceV1Api* | [**create_device_taint_rule**](docs/ResourceV1Api.md#create_device_taint_rule) | **POST** /apis/resource.k8s.io/v1/devicetaintrules | *ResourceV1Api* | [**create_namespaced_resource_claim**](docs/ResourceV1Api.md#create_namespaced_resource_claim) | **POST** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | *ResourceV1Api* | [**create_namespaced_resource_claim_template**](docs/ResourceV1Api.md#create_namespaced_resource_claim_template) | **POST** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | *ResourceV1Api* | [**create_resource_slice**](docs/ResourceV1Api.md#create_resource_slice) | **POST** /apis/resource.k8s.io/v1/resourceslices | *ResourceV1Api* | [**delete_collection_device_class**](docs/ResourceV1Api.md#delete_collection_device_class) | **DELETE** /apis/resource.k8s.io/v1/deviceclasses | +*ResourceV1Api* | [**delete_collection_device_taint_rule**](docs/ResourceV1Api.md#delete_collection_device_taint_rule) | **DELETE** /apis/resource.k8s.io/v1/devicetaintrules | *ResourceV1Api* | [**delete_collection_namespaced_resource_claim**](docs/ResourceV1Api.md#delete_collection_namespaced_resource_claim) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | *ResourceV1Api* | [**delete_collection_namespaced_resource_claim_template**](docs/ResourceV1Api.md#delete_collection_namespaced_resource_claim_template) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | *ResourceV1Api* | [**delete_collection_resource_slice**](docs/ResourceV1Api.md#delete_collection_resource_slice) | **DELETE** /apis/resource.k8s.io/v1/resourceslices | *ResourceV1Api* | [**delete_device_class**](docs/ResourceV1Api.md#delete_device_class) | **DELETE** /apis/resource.k8s.io/v1/deviceclasses/{name} | +*ResourceV1Api* | [**delete_device_taint_rule**](docs/ResourceV1Api.md#delete_device_taint_rule) | **DELETE** /apis/resource.k8s.io/v1/devicetaintrules/{name} | *ResourceV1Api* | [**delete_namespaced_resource_claim**](docs/ResourceV1Api.md#delete_namespaced_resource_claim) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | *ResourceV1Api* | [**delete_namespaced_resource_claim_template**](docs/ResourceV1Api.md#delete_namespaced_resource_claim_template) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | *ResourceV1Api* | [**delete_resource_slice**](docs/ResourceV1Api.md#delete_resource_slice) | **DELETE** /apis/resource.k8s.io/v1/resourceslices/{name} | *ResourceV1Api* | [**get_api_resources**](docs/ResourceV1Api.md#get_api_resources) | **GET** /apis/resource.k8s.io/v1/ | *ResourceV1Api* | [**list_device_class**](docs/ResourceV1Api.md#list_device_class) | **GET** /apis/resource.k8s.io/v1/deviceclasses | +*ResourceV1Api* | [**list_device_taint_rule**](docs/ResourceV1Api.md#list_device_taint_rule) | **GET** /apis/resource.k8s.io/v1/devicetaintrules | *ResourceV1Api* | [**list_namespaced_resource_claim**](docs/ResourceV1Api.md#list_namespaced_resource_claim) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | *ResourceV1Api* | [**list_namespaced_resource_claim_template**](docs/ResourceV1Api.md#list_namespaced_resource_claim_template) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | *ResourceV1Api* | [**list_resource_claim_for_all_namespaces**](docs/ResourceV1Api.md#list_resource_claim_for_all_namespaces) | **GET** /apis/resource.k8s.io/v1/resourceclaims | *ResourceV1Api* | [**list_resource_claim_template_for_all_namespaces**](docs/ResourceV1Api.md#list_resource_claim_template_for_all_namespaces) | **GET** /apis/resource.k8s.io/v1/resourceclaimtemplates | *ResourceV1Api* | [**list_resource_slice**](docs/ResourceV1Api.md#list_resource_slice) | **GET** /apis/resource.k8s.io/v1/resourceslices | *ResourceV1Api* | [**patch_device_class**](docs/ResourceV1Api.md#patch_device_class) | **PATCH** /apis/resource.k8s.io/v1/deviceclasses/{name} | +*ResourceV1Api* | [**patch_device_taint_rule**](docs/ResourceV1Api.md#patch_device_taint_rule) | **PATCH** /apis/resource.k8s.io/v1/devicetaintrules/{name} | +*ResourceV1Api* | [**patch_device_taint_rule_status**](docs/ResourceV1Api.md#patch_device_taint_rule_status) | **PATCH** /apis/resource.k8s.io/v1/devicetaintrules/{name}/status | *ResourceV1Api* | [**patch_namespaced_resource_claim**](docs/ResourceV1Api.md#patch_namespaced_resource_claim) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | *ResourceV1Api* | [**patch_namespaced_resource_claim_status**](docs/ResourceV1Api.md#patch_namespaced_resource_claim_status) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | *ResourceV1Api* | [**patch_namespaced_resource_claim_template**](docs/ResourceV1Api.md#patch_namespaced_resource_claim_template) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | *ResourceV1Api* | [**patch_resource_slice**](docs/ResourceV1Api.md#patch_resource_slice) | **PATCH** /apis/resource.k8s.io/v1/resourceslices/{name} | *ResourceV1Api* | [**read_device_class**](docs/ResourceV1Api.md#read_device_class) | **GET** /apis/resource.k8s.io/v1/deviceclasses/{name} | +*ResourceV1Api* | [**read_device_taint_rule**](docs/ResourceV1Api.md#read_device_taint_rule) | **GET** /apis/resource.k8s.io/v1/devicetaintrules/{name} | +*ResourceV1Api* | [**read_device_taint_rule_status**](docs/ResourceV1Api.md#read_device_taint_rule_status) | **GET** /apis/resource.k8s.io/v1/devicetaintrules/{name}/status | *ResourceV1Api* | [**read_namespaced_resource_claim**](docs/ResourceV1Api.md#read_namespaced_resource_claim) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | *ResourceV1Api* | [**read_namespaced_resource_claim_status**](docs/ResourceV1Api.md#read_namespaced_resource_claim_status) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | *ResourceV1Api* | [**read_namespaced_resource_claim_template**](docs/ResourceV1Api.md#read_namespaced_resource_claim_template) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | *ResourceV1Api* | [**read_resource_slice**](docs/ResourceV1Api.md#read_resource_slice) | **GET** /apis/resource.k8s.io/v1/resourceslices/{name} | *ResourceV1Api* | [**replace_device_class**](docs/ResourceV1Api.md#replace_device_class) | **PUT** /apis/resource.k8s.io/v1/deviceclasses/{name} | +*ResourceV1Api* | [**replace_device_taint_rule**](docs/ResourceV1Api.md#replace_device_taint_rule) | **PUT** /apis/resource.k8s.io/v1/devicetaintrules/{name} | +*ResourceV1Api* | [**replace_device_taint_rule_status**](docs/ResourceV1Api.md#replace_device_taint_rule_status) | **PUT** /apis/resource.k8s.io/v1/devicetaintrules/{name}/status | *ResourceV1Api* | [**replace_namespaced_resource_claim**](docs/ResourceV1Api.md#replace_namespaced_resource_claim) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | *ResourceV1Api* | [**replace_namespaced_resource_claim_status**](docs/ResourceV1Api.md#replace_namespaced_resource_claim_status) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | *ResourceV1Api* | [**replace_namespaced_resource_claim_template**](docs/ResourceV1Api.md#replace_namespaced_resource_claim_template) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | @@ -963,26 +989,57 @@ Class | Method | HTTP request | Description *SchedulingV1Api* | [**patch_priority_class**](docs/SchedulingV1Api.md#patch_priority_class) | **PATCH** /apis/scheduling.k8s.io/v1/priorityclasses/{name} | *SchedulingV1Api* | [**read_priority_class**](docs/SchedulingV1Api.md#read_priority_class) | **GET** /apis/scheduling.k8s.io/v1/priorityclasses/{name} | *SchedulingV1Api* | [**replace_priority_class**](docs/SchedulingV1Api.md#replace_priority_class) | **PUT** /apis/scheduling.k8s.io/v1/priorityclasses/{name} | -*SchedulingV1alpha2Api* | [**create_namespaced_pod_group**](docs/SchedulingV1alpha2Api.md#create_namespaced_pod_group) | **POST** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups | -*SchedulingV1alpha2Api* | [**create_namespaced_workload**](docs/SchedulingV1alpha2Api.md#create_namespaced_workload) | **POST** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads | -*SchedulingV1alpha2Api* | [**delete_collection_namespaced_pod_group**](docs/SchedulingV1alpha2Api.md#delete_collection_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups | -*SchedulingV1alpha2Api* | [**delete_collection_namespaced_workload**](docs/SchedulingV1alpha2Api.md#delete_collection_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads | -*SchedulingV1alpha2Api* | [**delete_namespaced_pod_group**](docs/SchedulingV1alpha2Api.md#delete_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | -*SchedulingV1alpha2Api* | [**delete_namespaced_workload**](docs/SchedulingV1alpha2Api.md#delete_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | -*SchedulingV1alpha2Api* | [**get_api_resources**](docs/SchedulingV1alpha2Api.md#get_api_resources) | **GET** /apis/scheduling.k8s.io/v1alpha2/ | -*SchedulingV1alpha2Api* | [**list_namespaced_pod_group**](docs/SchedulingV1alpha2Api.md#list_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups | -*SchedulingV1alpha2Api* | [**list_namespaced_workload**](docs/SchedulingV1alpha2Api.md#list_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads | -*SchedulingV1alpha2Api* | [**list_pod_group_for_all_namespaces**](docs/SchedulingV1alpha2Api.md#list_pod_group_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha2/podgroups | -*SchedulingV1alpha2Api* | [**list_workload_for_all_namespaces**](docs/SchedulingV1alpha2Api.md#list_workload_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha2/workloads | -*SchedulingV1alpha2Api* | [**patch_namespaced_pod_group**](docs/SchedulingV1alpha2Api.md#patch_namespaced_pod_group) | **PATCH** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | -*SchedulingV1alpha2Api* | [**patch_namespaced_pod_group_status**](docs/SchedulingV1alpha2Api.md#patch_namespaced_pod_group_status) | **PATCH** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status | -*SchedulingV1alpha2Api* | [**patch_namespaced_workload**](docs/SchedulingV1alpha2Api.md#patch_namespaced_workload) | **PATCH** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | -*SchedulingV1alpha2Api* | [**read_namespaced_pod_group**](docs/SchedulingV1alpha2Api.md#read_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | -*SchedulingV1alpha2Api* | [**read_namespaced_pod_group_status**](docs/SchedulingV1alpha2Api.md#read_namespaced_pod_group_status) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status | -*SchedulingV1alpha2Api* | [**read_namespaced_workload**](docs/SchedulingV1alpha2Api.md#read_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | -*SchedulingV1alpha2Api* | [**replace_namespaced_pod_group**](docs/SchedulingV1alpha2Api.md#replace_namespaced_pod_group) | **PUT** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | -*SchedulingV1alpha2Api* | [**replace_namespaced_pod_group_status**](docs/SchedulingV1alpha2Api.md#replace_namespaced_pod_group_status) | **PUT** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status | -*SchedulingV1alpha2Api* | [**replace_namespaced_workload**](docs/SchedulingV1alpha2Api.md#replace_namespaced_workload) | **PUT** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | +*SchedulingV1alpha3Api* | [**create_namespaced_composite_pod_group**](docs/SchedulingV1alpha3Api.md#create_namespaced_composite_pod_group) | **POST** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups | +*SchedulingV1alpha3Api* | [**create_namespaced_pod_group**](docs/SchedulingV1alpha3Api.md#create_namespaced_pod_group) | **POST** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups | +*SchedulingV1alpha3Api* | [**create_namespaced_workload**](docs/SchedulingV1alpha3Api.md#create_namespaced_workload) | **POST** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads | +*SchedulingV1alpha3Api* | [**delete_collection_namespaced_composite_pod_group**](docs/SchedulingV1alpha3Api.md#delete_collection_namespaced_composite_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups | +*SchedulingV1alpha3Api* | [**delete_collection_namespaced_pod_group**](docs/SchedulingV1alpha3Api.md#delete_collection_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups | +*SchedulingV1alpha3Api* | [**delete_collection_namespaced_workload**](docs/SchedulingV1alpha3Api.md#delete_collection_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads | +*SchedulingV1alpha3Api* | [**delete_namespaced_composite_pod_group**](docs/SchedulingV1alpha3Api.md#delete_namespaced_composite_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | +*SchedulingV1alpha3Api* | [**delete_namespaced_pod_group**](docs/SchedulingV1alpha3Api.md#delete_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | +*SchedulingV1alpha3Api* | [**delete_namespaced_workload**](docs/SchedulingV1alpha3Api.md#delete_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | +*SchedulingV1alpha3Api* | [**get_api_resources**](docs/SchedulingV1alpha3Api.md#get_api_resources) | **GET** /apis/scheduling.k8s.io/v1alpha3/ | +*SchedulingV1alpha3Api* | [**list_composite_pod_group_for_all_namespaces**](docs/SchedulingV1alpha3Api.md#list_composite_pod_group_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha3/compositepodgroups | +*SchedulingV1alpha3Api* | [**list_namespaced_composite_pod_group**](docs/SchedulingV1alpha3Api.md#list_namespaced_composite_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups | +*SchedulingV1alpha3Api* | [**list_namespaced_pod_group**](docs/SchedulingV1alpha3Api.md#list_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups | +*SchedulingV1alpha3Api* | [**list_namespaced_workload**](docs/SchedulingV1alpha3Api.md#list_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads | +*SchedulingV1alpha3Api* | [**list_pod_group_for_all_namespaces**](docs/SchedulingV1alpha3Api.md#list_pod_group_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha3/podgroups | +*SchedulingV1alpha3Api* | [**list_workload_for_all_namespaces**](docs/SchedulingV1alpha3Api.md#list_workload_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha3/workloads | +*SchedulingV1alpha3Api* | [**patch_namespaced_composite_pod_group**](docs/SchedulingV1alpha3Api.md#patch_namespaced_composite_pod_group) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | +*SchedulingV1alpha3Api* | [**patch_namespaced_composite_pod_group_status**](docs/SchedulingV1alpha3Api.md#patch_namespaced_composite_pod_group_status) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status | +*SchedulingV1alpha3Api* | [**patch_namespaced_pod_group**](docs/SchedulingV1alpha3Api.md#patch_namespaced_pod_group) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | +*SchedulingV1alpha3Api* | [**patch_namespaced_pod_group_status**](docs/SchedulingV1alpha3Api.md#patch_namespaced_pod_group_status) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status | +*SchedulingV1alpha3Api* | [**patch_namespaced_workload**](docs/SchedulingV1alpha3Api.md#patch_namespaced_workload) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | +*SchedulingV1alpha3Api* | [**read_namespaced_composite_pod_group**](docs/SchedulingV1alpha3Api.md#read_namespaced_composite_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | +*SchedulingV1alpha3Api* | [**read_namespaced_composite_pod_group_status**](docs/SchedulingV1alpha3Api.md#read_namespaced_composite_pod_group_status) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status | +*SchedulingV1alpha3Api* | [**read_namespaced_pod_group**](docs/SchedulingV1alpha3Api.md#read_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | +*SchedulingV1alpha3Api* | [**read_namespaced_pod_group_status**](docs/SchedulingV1alpha3Api.md#read_namespaced_pod_group_status) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status | +*SchedulingV1alpha3Api* | [**read_namespaced_workload**](docs/SchedulingV1alpha3Api.md#read_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | +*SchedulingV1alpha3Api* | [**replace_namespaced_composite_pod_group**](docs/SchedulingV1alpha3Api.md#replace_namespaced_composite_pod_group) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | +*SchedulingV1alpha3Api* | [**replace_namespaced_composite_pod_group_status**](docs/SchedulingV1alpha3Api.md#replace_namespaced_composite_pod_group_status) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status | +*SchedulingV1alpha3Api* | [**replace_namespaced_pod_group**](docs/SchedulingV1alpha3Api.md#replace_namespaced_pod_group) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | +*SchedulingV1alpha3Api* | [**replace_namespaced_pod_group_status**](docs/SchedulingV1alpha3Api.md#replace_namespaced_pod_group_status) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status | +*SchedulingV1alpha3Api* | [**replace_namespaced_workload**](docs/SchedulingV1alpha3Api.md#replace_namespaced_workload) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | +*SchedulingV1beta1Api* | [**create_namespaced_pod_group**](docs/SchedulingV1beta1Api.md#create_namespaced_pod_group) | **POST** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups | +*SchedulingV1beta1Api* | [**create_namespaced_workload**](docs/SchedulingV1beta1Api.md#create_namespaced_workload) | **POST** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads | +*SchedulingV1beta1Api* | [**delete_collection_namespaced_pod_group**](docs/SchedulingV1beta1Api.md#delete_collection_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups | +*SchedulingV1beta1Api* | [**delete_collection_namespaced_workload**](docs/SchedulingV1beta1Api.md#delete_collection_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads | +*SchedulingV1beta1Api* | [**delete_namespaced_pod_group**](docs/SchedulingV1beta1Api.md#delete_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | +*SchedulingV1beta1Api* | [**delete_namespaced_workload**](docs/SchedulingV1beta1Api.md#delete_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | +*SchedulingV1beta1Api* | [**get_api_resources**](docs/SchedulingV1beta1Api.md#get_api_resources) | **GET** /apis/scheduling.k8s.io/v1beta1/ | +*SchedulingV1beta1Api* | [**list_namespaced_pod_group**](docs/SchedulingV1beta1Api.md#list_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups | +*SchedulingV1beta1Api* | [**list_namespaced_workload**](docs/SchedulingV1beta1Api.md#list_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads | +*SchedulingV1beta1Api* | [**list_pod_group_for_all_namespaces**](docs/SchedulingV1beta1Api.md#list_pod_group_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1beta1/podgroups | +*SchedulingV1beta1Api* | [**list_workload_for_all_namespaces**](docs/SchedulingV1beta1Api.md#list_workload_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1beta1/workloads | +*SchedulingV1beta1Api* | [**patch_namespaced_pod_group**](docs/SchedulingV1beta1Api.md#patch_namespaced_pod_group) | **PATCH** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | +*SchedulingV1beta1Api* | [**patch_namespaced_pod_group_status**](docs/SchedulingV1beta1Api.md#patch_namespaced_pod_group_status) | **PATCH** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status | +*SchedulingV1beta1Api* | [**patch_namespaced_workload**](docs/SchedulingV1beta1Api.md#patch_namespaced_workload) | **PATCH** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | +*SchedulingV1beta1Api* | [**read_namespaced_pod_group**](docs/SchedulingV1beta1Api.md#read_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | +*SchedulingV1beta1Api* | [**read_namespaced_pod_group_status**](docs/SchedulingV1beta1Api.md#read_namespaced_pod_group_status) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status | +*SchedulingV1beta1Api* | [**read_namespaced_workload**](docs/SchedulingV1beta1Api.md#read_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | +*SchedulingV1beta1Api* | [**replace_namespaced_pod_group**](docs/SchedulingV1beta1Api.md#replace_namespaced_pod_group) | **PUT** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | +*SchedulingV1beta1Api* | [**replace_namespaced_pod_group_status**](docs/SchedulingV1beta1Api.md#replace_namespaced_pod_group_status) | **PUT** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status | +*SchedulingV1beta1Api* | [**replace_namespaced_workload**](docs/SchedulingV1beta1Api.md#replace_namespaced_workload) | **PUT** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | *StorageApi* | [**get_api_group**](docs/StorageApi.md#get_api_group) | **GET** /apis/storage.k8s.io/ | *StorageV1Api* | [**create_csi_driver**](docs/StorageV1Api.md#create_csi_driver) | **POST** /apis/storage.k8s.io/v1/csidrivers | *StorageV1Api* | [**create_csi_node**](docs/StorageV1Api.md#create_csi_node) | **POST** /apis/storage.k8s.io/v1/csinodes | @@ -1012,6 +1069,7 @@ Class | Method | HTTP request | Description *StorageV1Api* | [**list_volume_attributes_class**](docs/StorageV1Api.md#list_volume_attributes_class) | **GET** /apis/storage.k8s.io/v1/volumeattributesclasses | *StorageV1Api* | [**patch_csi_driver**](docs/StorageV1Api.md#patch_csi_driver) | **PATCH** /apis/storage.k8s.io/v1/csidrivers/{name} | *StorageV1Api* | [**patch_csi_node**](docs/StorageV1Api.md#patch_csi_node) | **PATCH** /apis/storage.k8s.io/v1/csinodes/{name} | +*StorageV1Api* | [**patch_csi_node_status**](docs/StorageV1Api.md#patch_csi_node_status) | **PATCH** /apis/storage.k8s.io/v1/csinodes/{name}/status | *StorageV1Api* | [**patch_namespaced_csi_storage_capacity**](docs/StorageV1Api.md#patch_namespaced_csi_storage_capacity) | **PATCH** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | *StorageV1Api* | [**patch_storage_class**](docs/StorageV1Api.md#patch_storage_class) | **PATCH** /apis/storage.k8s.io/v1/storageclasses/{name} | *StorageV1Api* | [**patch_volume_attachment**](docs/StorageV1Api.md#patch_volume_attachment) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name} | @@ -1019,6 +1077,7 @@ Class | Method | HTTP request | Description *StorageV1Api* | [**patch_volume_attributes_class**](docs/StorageV1Api.md#patch_volume_attributes_class) | **PATCH** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | *StorageV1Api* | [**read_csi_driver**](docs/StorageV1Api.md#read_csi_driver) | **GET** /apis/storage.k8s.io/v1/csidrivers/{name} | *StorageV1Api* | [**read_csi_node**](docs/StorageV1Api.md#read_csi_node) | **GET** /apis/storage.k8s.io/v1/csinodes/{name} | +*StorageV1Api* | [**read_csi_node_status**](docs/StorageV1Api.md#read_csi_node_status) | **GET** /apis/storage.k8s.io/v1/csinodes/{name}/status | *StorageV1Api* | [**read_namespaced_csi_storage_capacity**](docs/StorageV1Api.md#read_namespaced_csi_storage_capacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | *StorageV1Api* | [**read_storage_class**](docs/StorageV1Api.md#read_storage_class) | **GET** /apis/storage.k8s.io/v1/storageclasses/{name} | *StorageV1Api* | [**read_volume_attachment**](docs/StorageV1Api.md#read_volume_attachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name} | @@ -1026,20 +1085,24 @@ Class | Method | HTTP request | Description *StorageV1Api* | [**read_volume_attributes_class**](docs/StorageV1Api.md#read_volume_attributes_class) | **GET** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | *StorageV1Api* | [**replace_csi_driver**](docs/StorageV1Api.md#replace_csi_driver) | **PUT** /apis/storage.k8s.io/v1/csidrivers/{name} | *StorageV1Api* | [**replace_csi_node**](docs/StorageV1Api.md#replace_csi_node) | **PUT** /apis/storage.k8s.io/v1/csinodes/{name} | +*StorageV1Api* | [**replace_csi_node_status**](docs/StorageV1Api.md#replace_csi_node_status) | **PUT** /apis/storage.k8s.io/v1/csinodes/{name}/status | *StorageV1Api* | [**replace_namespaced_csi_storage_capacity**](docs/StorageV1Api.md#replace_namespaced_csi_storage_capacity) | **PUT** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | *StorageV1Api* | [**replace_storage_class**](docs/StorageV1Api.md#replace_storage_class) | **PUT** /apis/storage.k8s.io/v1/storageclasses/{name} | *StorageV1Api* | [**replace_volume_attachment**](docs/StorageV1Api.md#replace_volume_attachment) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name} | *StorageV1Api* | [**replace_volume_attachment_status**](docs/StorageV1Api.md#replace_volume_attachment_status) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | *StorageV1Api* | [**replace_volume_attributes_class**](docs/StorageV1Api.md#replace_volume_attributes_class) | **PUT** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | -*StorageV1beta1Api* | [**create_volume_attributes_class**](docs/StorageV1beta1Api.md#create_volume_attributes_class) | **POST** /apis/storage.k8s.io/v1beta1/volumeattributesclasses | -*StorageV1beta1Api* | [**delete_collection_volume_attributes_class**](docs/StorageV1beta1Api.md#delete_collection_volume_attributes_class) | **DELETE** /apis/storage.k8s.io/v1beta1/volumeattributesclasses | -*StorageV1beta1Api* | [**delete_volume_attributes_class**](docs/StorageV1beta1Api.md#delete_volume_attributes_class) | **DELETE** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | -*StorageV1beta1Api* | [**get_api_resources**](docs/StorageV1beta1Api.md#get_api_resources) | **GET** /apis/storage.k8s.io/v1beta1/ | -*StorageV1beta1Api* | [**list_volume_attributes_class**](docs/StorageV1beta1Api.md#list_volume_attributes_class) | **GET** /apis/storage.k8s.io/v1beta1/volumeattributesclasses | -*StorageV1beta1Api* | [**patch_volume_attributes_class**](docs/StorageV1beta1Api.md#patch_volume_attributes_class) | **PATCH** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | -*StorageV1beta1Api* | [**read_volume_attributes_class**](docs/StorageV1beta1Api.md#read_volume_attributes_class) | **GET** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | -*StorageV1beta1Api* | [**replace_volume_attributes_class**](docs/StorageV1beta1Api.md#replace_volume_attributes_class) | **PUT** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | *StoragemigrationApi* | [**get_api_group**](docs/StoragemigrationApi.md#get_api_group) | **GET** /apis/storagemigration.k8s.io/ | +*StoragemigrationV1Api* | [**create_storage_version_migration**](docs/StoragemigrationV1Api.md#create_storage_version_migration) | **POST** /apis/storagemigration.k8s.io/v1/storageversionmigrations | +*StoragemigrationV1Api* | [**delete_collection_storage_version_migration**](docs/StoragemigrationV1Api.md#delete_collection_storage_version_migration) | **DELETE** /apis/storagemigration.k8s.io/v1/storageversionmigrations | +*StoragemigrationV1Api* | [**delete_storage_version_migration**](docs/StoragemigrationV1Api.md#delete_storage_version_migration) | **DELETE** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | +*StoragemigrationV1Api* | [**get_api_resources**](docs/StoragemigrationV1Api.md#get_api_resources) | **GET** /apis/storagemigration.k8s.io/v1/ | +*StoragemigrationV1Api* | [**list_storage_version_migration**](docs/StoragemigrationV1Api.md#list_storage_version_migration) | **GET** /apis/storagemigration.k8s.io/v1/storageversionmigrations | +*StoragemigrationV1Api* | [**patch_storage_version_migration**](docs/StoragemigrationV1Api.md#patch_storage_version_migration) | **PATCH** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | +*StoragemigrationV1Api* | [**patch_storage_version_migration_status**](docs/StoragemigrationV1Api.md#patch_storage_version_migration_status) | **PATCH** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status | +*StoragemigrationV1Api* | [**read_storage_version_migration**](docs/StoragemigrationV1Api.md#read_storage_version_migration) | **GET** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | +*StoragemigrationV1Api* | [**read_storage_version_migration_status**](docs/StoragemigrationV1Api.md#read_storage_version_migration_status) | **GET** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status | +*StoragemigrationV1Api* | [**replace_storage_version_migration**](docs/StoragemigrationV1Api.md#replace_storage_version_migration) | **PUT** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | +*StoragemigrationV1Api* | [**replace_storage_version_migration_status**](docs/StoragemigrationV1Api.md#replace_storage_version_migration_status) | **PUT** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status | *StoragemigrationV1beta1Api* | [**create_storage_version_migration**](docs/StoragemigrationV1beta1Api.md#create_storage_version_migration) | **POST** /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations | *StoragemigrationV1beta1Api* | [**delete_collection_storage_version_migration**](docs/StoragemigrationV1beta1Api.md#delete_collection_storage_version_migration) | **DELETE** /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations | *StoragemigrationV1beta1Api* | [**delete_storage_version_migration**](docs/StoragemigrationV1beta1Api.md#delete_storage_version_migration) | **DELETE** /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations/{name} | @@ -1107,6 +1170,7 @@ Class | Method | HTTP request | Description - [V1CSINodeDriver](docs/V1CSINodeDriver.md) - [V1CSINodeList](docs/V1CSINodeList.md) - [V1CSINodeSpec](docs/V1CSINodeSpec.md) + - [V1CSINodeStatus](docs/V1CSINodeStatus.md) - [V1CSIPersistentVolumeSource](docs/V1CSIPersistentVolumeSource.md) - [V1CSIStorageCapacity](docs/V1CSIStorageCapacity.md) - [V1CSIStorageCapacityList](docs/V1CSIStorageCapacityList.md) @@ -1129,7 +1193,10 @@ Class | Method | HTTP request | Description - [V1ClusterRoleBinding](docs/V1ClusterRoleBinding.md) - [V1ClusterRoleBindingList](docs/V1ClusterRoleBindingList.md) - [V1ClusterRoleList](docs/V1ClusterRoleList.md) + - [V1ClusterTrustBundle](docs/V1ClusterTrustBundle.md) + - [V1ClusterTrustBundleList](docs/V1ClusterTrustBundleList.md) - [V1ClusterTrustBundleProjection](docs/V1ClusterTrustBundleProjection.md) + - [V1ClusterTrustBundleSpec](docs/V1ClusterTrustBundleSpec.md) - [V1ComponentCondition](docs/V1ComponentCondition.md) - [V1ComponentStatus](docs/V1ComponentStatus.md) - [V1ComponentStatusList](docs/V1ComponentStatusList.md) @@ -1202,11 +1269,17 @@ Class | Method | HTTP request | Description - [V1DeviceClassSpec](docs/V1DeviceClassSpec.md) - [V1DeviceConstraint](docs/V1DeviceConstraint.md) - [V1DeviceCounterConsumption](docs/V1DeviceCounterConsumption.md) + - [V1DeviceDerivedAttribute](docs/V1DeviceDerivedAttribute.md) - [V1DeviceRequest](docs/V1DeviceRequest.md) - [V1DeviceRequestAllocationResult](docs/V1DeviceRequestAllocationResult.md) - [V1DeviceSelector](docs/V1DeviceSelector.md) - [V1DeviceSubRequest](docs/V1DeviceSubRequest.md) - [V1DeviceTaint](docs/V1DeviceTaint.md) + - [V1DeviceTaintRule](docs/V1DeviceTaintRule.md) + - [V1DeviceTaintRuleList](docs/V1DeviceTaintRuleList.md) + - [V1DeviceTaintRuleSpec](docs/V1DeviceTaintRuleSpec.md) + - [V1DeviceTaintRuleStatus](docs/V1DeviceTaintRuleStatus.md) + - [V1DeviceTaintSelector](docs/V1DeviceTaintSelector.md) - [V1DeviceToleration](docs/V1DeviceToleration.md) - [V1DownwardAPIProjection](docs/V1DownwardAPIProjection.md) - [V1DownwardAPIVolumeFile](docs/V1DownwardAPIVolumeFile.md) @@ -1228,6 +1301,7 @@ Class | Method | HTTP request | Description - [V1EphemeralVolumeSource](docs/V1EphemeralVolumeSource.md) - [V1EventSource](docs/V1EventSource.md) - [V1Eviction](docs/V1Eviction.md) + - [V1EvictionResponder](docs/V1EvictionResponder.md) - [V1ExactDeviceRequest](docs/V1ExactDeviceRequest.md) - [V1ExecAction](docs/V1ExecAction.md) - [V1ExemptPriorityLevelConfiguration](docs/V1ExemptPriorityLevelConfiguration.md) @@ -1296,6 +1370,7 @@ Class | Method | HTTP request | Description - [V1Job](docs/V1Job.md) - [V1JobCondition](docs/V1JobCondition.md) - [V1JobList](docs/V1JobList.md) + - [V1JobSchedulingConfiguration](docs/V1JobSchedulingConfiguration.md) - [V1JobSpec](docs/V1JobSpec.md) - [V1JobStatus](docs/V1JobStatus.md) - [V1JobTemplateSpec](docs/V1JobTemplateSpec.md) @@ -1353,14 +1428,19 @@ Class | Method | HTTP request | Description - [V1Node](docs/V1Node.md) - [V1NodeAddress](docs/V1NodeAddress.md) - [V1NodeAffinity](docs/V1NodeAffinity.md) + - [V1NodeAllocatableMappedResources](docs/V1NodeAllocatableMappedResources.md) + - [V1NodeAllocatableMapping](docs/V1NodeAllocatableMapping.md) + - [V1NodeAllocatableOverhead](docs/V1NodeAllocatableOverhead.md) + - [V1NodeAllocatableOverheadResources](docs/V1NodeAllocatableOverheadResources.md) + - [V1NodeAllocatableResource](docs/V1NodeAllocatableResource.md) - [V1NodeAllocatableResourceClaimStatus](docs/V1NodeAllocatableResourceClaimStatus.md) - - [V1NodeAllocatableResourceMapping](docs/V1NodeAllocatableResourceMapping.md) - [V1NodeCondition](docs/V1NodeCondition.md) - [V1NodeConfigSource](docs/V1NodeConfigSource.md) - [V1NodeConfigStatus](docs/V1NodeConfigStatus.md) - [V1NodeDaemonEndpoints](docs/V1NodeDaemonEndpoints.md) - [V1NodeFeatures](docs/V1NodeFeatures.md) - [V1NodeList](docs/V1NodeList.md) + - [V1NodePodPreemptionPolicy](docs/V1NodePodPreemptionPolicy.md) - [V1NodeRuntimeHandler](docs/V1NodeRuntimeHandler.md) - [V1NodeRuntimeHandlerFeatures](docs/V1NodeRuntimeHandlerFeatures.md) - [V1NodeSelector](docs/V1NodeSelector.md) @@ -1399,6 +1479,10 @@ Class | Method | HTTP request | Description - [V1PodAffinityTerm](docs/V1PodAffinityTerm.md) - [V1PodAntiAffinity](docs/V1PodAntiAffinity.md) - [V1PodCertificateProjection](docs/V1PodCertificateProjection.md) + - [V1PodCertificateRequest](docs/V1PodCertificateRequest.md) + - [V1PodCertificateRequestList](docs/V1PodCertificateRequestList.md) + - [V1PodCertificateRequestSpec](docs/V1PodCertificateRequestSpec.md) + - [V1PodCertificateRequestStatus](docs/V1PodCertificateRequestStatus.md) - [V1PodCondition](docs/V1PodCondition.md) - [V1PodDNSConfig](docs/V1PodDNSConfig.md) - [V1PodDNSConfigOption](docs/V1PodDNSConfigOption.md) @@ -1425,6 +1509,7 @@ Class | Method | HTTP request | Description - [V1PodTemplate](docs/V1PodTemplate.md) - [V1PodTemplateList](docs/V1PodTemplateList.md) - [V1PodTemplateSpec](docs/V1PodTemplateSpec.md) + - [V1PodVolumeHealth](docs/V1PodVolumeHealth.md) - [V1PolicyRule](docs/V1PolicyRule.md) - [V1PolicyRulesWithSubjects](docs/V1PolicyRulesWithSubjects.md) - [V1PortStatus](docs/V1PortStatus.md) @@ -1544,8 +1629,14 @@ Class | Method | HTTP request | Description - [V1StatusDetails](docs/V1StatusDetails.md) - [V1StorageClass](docs/V1StorageClass.md) - [V1StorageClassList](docs/V1StorageClassList.md) + - [V1StorageHealth](docs/V1StorageHealth.md) + - [V1StorageHealthCondition](docs/V1StorageHealthCondition.md) - [V1StorageOSPersistentVolumeSource](docs/V1StorageOSPersistentVolumeSource.md) - [V1StorageOSVolumeSource](docs/V1StorageOSVolumeSource.md) + - [V1StorageVersionMigration](docs/V1StorageVersionMigration.md) + - [V1StorageVersionMigrationList](docs/V1StorageVersionMigrationList.md) + - [V1StorageVersionMigrationSpec](docs/V1StorageVersionMigrationSpec.md) + - [V1StorageVersionMigrationStatus](docs/V1StorageVersionMigrationStatus.md) - [V1SubjectAccessReview](docs/V1SubjectAccessReview.md) - [V1SubjectAccessReviewSpec](docs/V1SubjectAccessReviewSpec.md) - [V1SubjectAccessReviewStatus](docs/V1SubjectAccessReviewStatus.md) @@ -1593,6 +1684,8 @@ Class | Method | HTTP request | Description - [V1VolumeAttributesClassList](docs/V1VolumeAttributesClassList.md) - [V1VolumeDevice](docs/V1VolumeDevice.md) - [V1VolumeError](docs/V1VolumeError.md) + - [V1VolumeHealthCondition](docs/V1VolumeHealthCondition.md) + - [V1VolumeHealthStatus](docs/V1VolumeHealthStatus.md) - [V1VolumeMount](docs/V1VolumeMount.md) - [V1VolumeMountStatus](docs/V1VolumeMountStatus.md) - [V1VolumeNodeAffinity](docs/V1VolumeNodeAffinity.md) @@ -1606,9 +1699,18 @@ Class | Method | HTTP request | Description - [V1WeightedPodAffinityTerm](docs/V1WeightedPodAffinityTerm.md) - [V1WindowsSecurityContextOptions](docs/V1WindowsSecurityContextOptions.md) - [V1alpha1ApplyConfiguration](docs/V1alpha1ApplyConfiguration.md) - - [V1alpha1ClusterTrustBundle](docs/V1alpha1ClusterTrustBundle.md) - - [V1alpha1ClusterTrustBundleList](docs/V1alpha1ClusterTrustBundleList.md) - - [V1alpha1ClusterTrustBundleSpec](docs/V1alpha1ClusterTrustBundleSpec.md) + - [V1alpha1Eviction](docs/V1alpha1Eviction.md) + - [V1alpha1EvictionList](docs/V1alpha1EvictionList.md) + - [V1alpha1EvictionPodReference](docs/V1alpha1EvictionPodReference.md) + - [V1alpha1EvictionRequest](docs/V1alpha1EvictionRequest.md) + - [V1alpha1EvictionRequestList](docs/V1alpha1EvictionRequestList.md) + - [V1alpha1EvictionRequestPodReference](docs/V1alpha1EvictionRequestPodReference.md) + - [V1alpha1EvictionRequestSpec](docs/V1alpha1EvictionRequestSpec.md) + - [V1alpha1EvictionRequestStatus](docs/V1alpha1EvictionRequestStatus.md) + - [V1alpha1EvictionRequestTarget](docs/V1alpha1EvictionRequestTarget.md) + - [V1alpha1EvictionSpec](docs/V1alpha1EvictionSpec.md) + - [V1alpha1EvictionStatus](docs/V1alpha1EvictionStatus.md) + - [V1alpha1EvictionTarget](docs/V1alpha1EvictionTarget.md) - [V1alpha1JSONPatch](docs/V1alpha1JSONPatch.md) - [V1alpha1MatchCondition](docs/V1alpha1MatchCondition.md) - [V1alpha1MatchResources](docs/V1alpha1MatchResources.md) @@ -1622,43 +1724,63 @@ Class | Method | HTTP request | Description - [V1alpha1NamedRuleWithOperations](docs/V1alpha1NamedRuleWithOperations.md) - [V1alpha1ParamKind](docs/V1alpha1ParamKind.md) - [V1alpha1ParamRef](docs/V1alpha1ParamRef.md) + - [V1alpha1Requester](docs/V1alpha1Requester.md) + - [V1alpha1ResponderStatus](docs/V1alpha1ResponderStatus.md) - [V1alpha1ServerStorageVersion](docs/V1alpha1ServerStorageVersion.md) - [V1alpha1StorageVersion](docs/V1alpha1StorageVersion.md) - [V1alpha1StorageVersionCondition](docs/V1alpha1StorageVersionCondition.md) - [V1alpha1StorageVersionList](docs/V1alpha1StorageVersionList.md) - [V1alpha1StorageVersionStatus](docs/V1alpha1StorageVersionStatus.md) + - [V1alpha1TargetResponder](docs/V1alpha1TargetResponder.md) - [V1alpha1Variable](docs/V1alpha1Variable.md) - - [V1alpha2GangSchedulingPolicy](docs/V1alpha2GangSchedulingPolicy.md) - [V1alpha2LeaseCandidate](docs/V1alpha2LeaseCandidate.md) - [V1alpha2LeaseCandidateList](docs/V1alpha2LeaseCandidateList.md) - [V1alpha2LeaseCandidateSpec](docs/V1alpha2LeaseCandidateSpec.md) - - [V1alpha2PodGroup](docs/V1alpha2PodGroup.md) - - [V1alpha2PodGroupList](docs/V1alpha2PodGroupList.md) - - [V1alpha2PodGroupResourceClaim](docs/V1alpha2PodGroupResourceClaim.md) - - [V1alpha2PodGroupResourceClaimStatus](docs/V1alpha2PodGroupResourceClaimStatus.md) - - [V1alpha2PodGroupSchedulingConstraints](docs/V1alpha2PodGroupSchedulingConstraints.md) - - [V1alpha2PodGroupSchedulingPolicy](docs/V1alpha2PodGroupSchedulingPolicy.md) - - [V1alpha2PodGroupSpec](docs/V1alpha2PodGroupSpec.md) - - [V1alpha2PodGroupStatus](docs/V1alpha2PodGroupStatus.md) - - [V1alpha2PodGroupTemplate](docs/V1alpha2PodGroupTemplate.md) - - [V1alpha2PodGroupTemplateReference](docs/V1alpha2PodGroupTemplateReference.md) - - [V1alpha2TopologyConstraint](docs/V1alpha2TopologyConstraint.md) - - [V1alpha2TypedLocalObjectReference](docs/V1alpha2TypedLocalObjectReference.md) - - [V1alpha2Workload](docs/V1alpha2Workload.md) - - [V1alpha2WorkloadList](docs/V1alpha2WorkloadList.md) - - [V1alpha2WorkloadPodGroupTemplateReference](docs/V1alpha2WorkloadPodGroupTemplateReference.md) - - [V1alpha2WorkloadSpec](docs/V1alpha2WorkloadSpec.md) + - [V1alpha3CompositeDisruptionMode](docs/V1alpha3CompositeDisruptionMode.md) + - [V1alpha3CompositeGangSchedulingPolicy](docs/V1alpha3CompositeGangSchedulingPolicy.md) + - [V1alpha3CompositePodGroup](docs/V1alpha3CompositePodGroup.md) + - [V1alpha3CompositePodGroupList](docs/V1alpha3CompositePodGroupList.md) + - [V1alpha3CompositePodGroupSchedulingConstraints](docs/V1alpha3CompositePodGroupSchedulingConstraints.md) + - [V1alpha3CompositePodGroupSchedulingPolicy](docs/V1alpha3CompositePodGroupSchedulingPolicy.md) + - [V1alpha3CompositePodGroupSpec](docs/V1alpha3CompositePodGroupSpec.md) + - [V1alpha3CompositePodGroupStatus](docs/V1alpha3CompositePodGroupStatus.md) + - [V1alpha3CompositePodGroupTemplate](docs/V1alpha3CompositePodGroupTemplate.md) - [V1alpha3DeviceTaint](docs/V1alpha3DeviceTaint.md) - [V1alpha3DeviceTaintRule](docs/V1alpha3DeviceTaintRule.md) - [V1alpha3DeviceTaintRuleList](docs/V1alpha3DeviceTaintRuleList.md) - [V1alpha3DeviceTaintRuleSpec](docs/V1alpha3DeviceTaintRuleSpec.md) - [V1alpha3DeviceTaintRuleStatus](docs/V1alpha3DeviceTaintRuleStatus.md) - [V1alpha3DeviceTaintSelector](docs/V1alpha3DeviceTaintSelector.md) + - [V1alpha3DisruptionMode](docs/V1alpha3DisruptionMode.md) + - [V1alpha3GangSchedulingPolicy](docs/V1alpha3GangSchedulingPolicy.md) + - [V1alpha3PartitionTypeStatus](docs/V1alpha3PartitionTypeStatus.md) + - [V1alpha3PodGroup](docs/V1alpha3PodGroup.md) + - [V1alpha3PodGroupList](docs/V1alpha3PodGroupList.md) + - [V1alpha3PodGroupResourceClaim](docs/V1alpha3PodGroupResourceClaim.md) + - [V1alpha3PodGroupResourceClaimStatus](docs/V1alpha3PodGroupResourceClaimStatus.md) + - [V1alpha3PodGroupSchedulingConstraints](docs/V1alpha3PodGroupSchedulingConstraints.md) + - [V1alpha3PodGroupSchedulingPolicy](docs/V1alpha3PodGroupSchedulingPolicy.md) + - [V1alpha3PodGroupSpec](docs/V1alpha3PodGroupSpec.md) + - [V1alpha3PodGroupStatus](docs/V1alpha3PodGroupStatus.md) + - [V1alpha3PodGroupTemplate](docs/V1alpha3PodGroupTemplate.md) - [V1alpha3PoolStatus](docs/V1alpha3PoolStatus.md) - [V1alpha3ResourcePoolStatusRequest](docs/V1alpha3ResourcePoolStatusRequest.md) - [V1alpha3ResourcePoolStatusRequestList](docs/V1alpha3ResourcePoolStatusRequestList.md) - [V1alpha3ResourcePoolStatusRequestSpec](docs/V1alpha3ResourcePoolStatusRequestSpec.md) - [V1alpha3ResourcePoolStatusRequestStatus](docs/V1alpha3ResourcePoolStatusRequestStatus.md) + - [V1alpha3ShareableCapacityStatus](docs/V1alpha3ShareableCapacityStatus.md) + - [V1alpha3ShareableSummaryStatus](docs/V1alpha3ShareableSummaryStatus.md) + - [V1alpha3TopologyConstraint](docs/V1alpha3TopologyConstraint.md) + - [V1alpha3TypedLocalObjectReference](docs/V1alpha3TypedLocalObjectReference.md) + - [V1alpha3Workload](docs/V1alpha3Workload.md) + - [V1alpha3WorkloadList](docs/V1alpha3WorkloadList.md) + - [V1alpha3WorkloadPodGroupDisruptionMode](docs/V1alpha3WorkloadPodGroupDisruptionMode.md) + - [V1alpha3WorkloadPodGroupGangSchedulingPolicy](docs/V1alpha3WorkloadPodGroupGangSchedulingPolicy.md) + - [V1alpha3WorkloadPodGroupResourceClaim](docs/V1alpha3WorkloadPodGroupResourceClaim.md) + - [V1alpha3WorkloadPodGroupSchedulingConstraints](docs/V1alpha3WorkloadPodGroupSchedulingConstraints.md) + - [V1alpha3WorkloadPodGroupSchedulingPolicy](docs/V1alpha3WorkloadPodGroupSchedulingPolicy.md) + - [V1alpha3WorkloadReference](docs/V1alpha3WorkloadReference.md) + - [V1alpha3WorkloadSpec](docs/V1alpha3WorkloadSpec.md) - [V1beta1AllocatedDeviceStatus](docs/V1beta1AllocatedDeviceStatus.md) - [V1beta1AllocationResult](docs/V1beta1AllocationResult.md) - [V1beta1ApplyConfiguration](docs/V1beta1ApplyConfiguration.md) @@ -1670,6 +1792,11 @@ Class | Method | HTTP request | Description - [V1beta1ClusterTrustBundle](docs/V1beta1ClusterTrustBundle.md) - [V1beta1ClusterTrustBundleList](docs/V1beta1ClusterTrustBundleList.md) - [V1beta1ClusterTrustBundleSpec](docs/V1beta1ClusterTrustBundleSpec.md) + - [V1beta1CompositeDisruptionMode](docs/V1beta1CompositeDisruptionMode.md) + - [V1beta1CompositeGangSchedulingPolicy](docs/V1beta1CompositeGangSchedulingPolicy.md) + - [V1beta1CompositePodGroupSchedulingConstraints](docs/V1beta1CompositePodGroupSchedulingConstraints.md) + - [V1beta1CompositePodGroupSchedulingPolicy](docs/V1beta1CompositePodGroupSchedulingPolicy.md) + - [V1beta1CompositePodGroupTemplate](docs/V1beta1CompositePodGroupTemplate.md) - [V1beta1Counter](docs/V1beta1Counter.md) - [V1beta1CounterSet](docs/V1beta1CounterSet.md) - [V1beta1Device](docs/V1beta1Device.md) @@ -1685,15 +1812,15 @@ Class | Method | HTTP request | Description - [V1beta1DeviceClassSpec](docs/V1beta1DeviceClassSpec.md) - [V1beta1DeviceConstraint](docs/V1beta1DeviceConstraint.md) - [V1beta1DeviceCounterConsumption](docs/V1beta1DeviceCounterConsumption.md) + - [V1beta1DeviceDerivedAttribute](docs/V1beta1DeviceDerivedAttribute.md) - [V1beta1DeviceRequest](docs/V1beta1DeviceRequest.md) - [V1beta1DeviceRequestAllocationResult](docs/V1beta1DeviceRequestAllocationResult.md) - [V1beta1DeviceSelector](docs/V1beta1DeviceSelector.md) - [V1beta1DeviceSubRequest](docs/V1beta1DeviceSubRequest.md) - [V1beta1DeviceTaint](docs/V1beta1DeviceTaint.md) - [V1beta1DeviceToleration](docs/V1beta1DeviceToleration.md) - - [V1beta1IPAddress](docs/V1beta1IPAddress.md) - - [V1beta1IPAddressList](docs/V1beta1IPAddressList.md) - - [V1beta1IPAddressSpec](docs/V1beta1IPAddressSpec.md) + - [V1beta1DisruptionMode](docs/V1beta1DisruptionMode.md) + - [V1beta1GangSchedulingPolicy](docs/V1beta1GangSchedulingPolicy.md) - [V1beta1JSONPatch](docs/V1beta1JSONPatch.md) - [V1beta1LeaseCandidate](docs/V1beta1LeaseCandidate.md) - [V1beta1LeaseCandidateList](docs/V1beta1LeaseCandidateList.md) @@ -1709,15 +1836,25 @@ Class | Method | HTTP request | Description - [V1beta1Mutation](docs/V1beta1Mutation.md) - [V1beta1NamedRuleWithOperations](docs/V1beta1NamedRuleWithOperations.md) - [V1beta1NetworkDeviceData](docs/V1beta1NetworkDeviceData.md) - - [V1beta1NodeAllocatableResourceMapping](docs/V1beta1NodeAllocatableResourceMapping.md) + - [V1beta1NodeAllocatableMapping](docs/V1beta1NodeAllocatableMapping.md) + - [V1beta1NodeAllocatableOverhead](docs/V1beta1NodeAllocatableOverhead.md) + - [V1beta1NodeAllocatableResource](docs/V1beta1NodeAllocatableResource.md) - [V1beta1OpaqueDeviceConfiguration](docs/V1beta1OpaqueDeviceConfiguration.md) - [V1beta1ParamKind](docs/V1beta1ParamKind.md) - [V1beta1ParamRef](docs/V1beta1ParamRef.md) - - [V1beta1ParentReference](docs/V1beta1ParentReference.md) - [V1beta1PodCertificateRequest](docs/V1beta1PodCertificateRequest.md) - [V1beta1PodCertificateRequestList](docs/V1beta1PodCertificateRequestList.md) - [V1beta1PodCertificateRequestSpec](docs/V1beta1PodCertificateRequestSpec.md) - [V1beta1PodCertificateRequestStatus](docs/V1beta1PodCertificateRequestStatus.md) + - [V1beta1PodGroup](docs/V1beta1PodGroup.md) + - [V1beta1PodGroupList](docs/V1beta1PodGroupList.md) + - [V1beta1PodGroupResourceClaim](docs/V1beta1PodGroupResourceClaim.md) + - [V1beta1PodGroupResourceClaimStatus](docs/V1beta1PodGroupResourceClaimStatus.md) + - [V1beta1PodGroupSchedulingConstraints](docs/V1beta1PodGroupSchedulingConstraints.md) + - [V1beta1PodGroupSchedulingPolicy](docs/V1beta1PodGroupSchedulingPolicy.md) + - [V1beta1PodGroupSpec](docs/V1beta1PodGroupSpec.md) + - [V1beta1PodGroupStatus](docs/V1beta1PodGroupStatus.md) + - [V1beta1PodGroupTemplate](docs/V1beta1PodGroupTemplate.md) - [V1beta1ResourceClaim](docs/V1beta1ResourceClaim.md) - [V1beta1ResourceClaimConsumerReference](docs/V1beta1ResourceClaimConsumerReference.md) - [V1beta1ResourceClaimList](docs/V1beta1ResourceClaimList.md) @@ -1730,17 +1867,17 @@ Class | Method | HTTP request | Description - [V1beta1ResourceSlice](docs/V1beta1ResourceSlice.md) - [V1beta1ResourceSliceList](docs/V1beta1ResourceSliceList.md) - [V1beta1ResourceSliceSpec](docs/V1beta1ResourceSliceSpec.md) - - [V1beta1ServiceCIDR](docs/V1beta1ServiceCIDR.md) - - [V1beta1ServiceCIDRList](docs/V1beta1ServiceCIDRList.md) - - [V1beta1ServiceCIDRSpec](docs/V1beta1ServiceCIDRSpec.md) - - [V1beta1ServiceCIDRStatus](docs/V1beta1ServiceCIDRStatus.md) - [V1beta1StorageVersionMigration](docs/V1beta1StorageVersionMigration.md) - [V1beta1StorageVersionMigrationList](docs/V1beta1StorageVersionMigrationList.md) - [V1beta1StorageVersionMigrationSpec](docs/V1beta1StorageVersionMigrationSpec.md) - [V1beta1StorageVersionMigrationStatus](docs/V1beta1StorageVersionMigrationStatus.md) + - [V1beta1TopologyConstraint](docs/V1beta1TopologyConstraint.md) + - [V1beta1TypedLocalObjectReference](docs/V1beta1TypedLocalObjectReference.md) - [V1beta1Variable](docs/V1beta1Variable.md) - - [V1beta1VolumeAttributesClass](docs/V1beta1VolumeAttributesClass.md) - - [V1beta1VolumeAttributesClassList](docs/V1beta1VolumeAttributesClassList.md) + - [V1beta1Workload](docs/V1beta1Workload.md) + - [V1beta1WorkloadList](docs/V1beta1WorkloadList.md) + - [V1beta1WorkloadReference](docs/V1beta1WorkloadReference.md) + - [V1beta1WorkloadSpec](docs/V1beta1WorkloadSpec.md) - [V1beta2AllocatedDeviceStatus](docs/V1beta2AllocatedDeviceStatus.md) - [V1beta2AllocationResult](docs/V1beta2AllocationResult.md) - [V1beta2CELDeviceSelector](docs/V1beta2CELDeviceSelector.md) @@ -1762,6 +1899,7 @@ Class | Method | HTTP request | Description - [V1beta2DeviceClassSpec](docs/V1beta2DeviceClassSpec.md) - [V1beta2DeviceConstraint](docs/V1beta2DeviceConstraint.md) - [V1beta2DeviceCounterConsumption](docs/V1beta2DeviceCounterConsumption.md) + - [V1beta2DeviceDerivedAttribute](docs/V1beta2DeviceDerivedAttribute.md) - [V1beta2DeviceRequest](docs/V1beta2DeviceRequest.md) - [V1beta2DeviceRequestAllocationResult](docs/V1beta2DeviceRequestAllocationResult.md) - [V1beta2DeviceSelector](docs/V1beta2DeviceSelector.md) @@ -1775,7 +1913,9 @@ Class | Method | HTTP request | Description - [V1beta2DeviceToleration](docs/V1beta2DeviceToleration.md) - [V1beta2ExactDeviceRequest](docs/V1beta2ExactDeviceRequest.md) - [V1beta2NetworkDeviceData](docs/V1beta2NetworkDeviceData.md) - - [V1beta2NodeAllocatableResourceMapping](docs/V1beta2NodeAllocatableResourceMapping.md) + - [V1beta2NodeAllocatableMapping](docs/V1beta2NodeAllocatableMapping.md) + - [V1beta2NodeAllocatableOverhead](docs/V1beta2NodeAllocatableOverhead.md) + - [V1beta2NodeAllocatableResource](docs/V1beta2NodeAllocatableResource.md) - [V1beta2OpaqueDeviceConfiguration](docs/V1beta2OpaqueDeviceConfiguration.md) - [V1beta2ResourceClaim](docs/V1beta2ResourceClaim.md) - [V1beta2ResourceClaimConsumerReference](docs/V1beta2ResourceClaimConsumerReference.md) diff --git a/kubernetes/__init__.py b/kubernetes/__init__.py index 7fd995f5d6..2f91a4ecf6 100644 --- a/kubernetes/__init__.py +++ b/kubernetes/__init__.py @@ -14,7 +14,7 @@ __project__ = 'kubernetes' # The version is auto-updated. Please do not edit. -__version__ = "36.0.0+snapshot" +__version__ = "37.0.0+snapshot" from . import client from . import config diff --git a/kubernetes/aio/.openapi-generator/FILES b/kubernetes/aio/.openapi-generator/FILES index 1706d341f9..f94c156fe4 100644 --- a/kubernetes/aio/.openapi-generator/FILES +++ b/kubernetes/aio/.openapi-generator/FILES @@ -23,7 +23,6 @@ client/api/batch_api.py client/api/batch_v1_api.py client/api/certificates_api.py client/api/certificates_v1_api.py -client/api/certificates_v1alpha1_api.py client/api/certificates_v1beta1_api.py client/api/coordination_api.py client/api/coordination_v1_api.py @@ -40,10 +39,11 @@ client/api/flowcontrol_apiserver_api.py client/api/flowcontrol_apiserver_v1_api.py client/api/internal_apiserver_api.py client/api/internal_apiserver_v1alpha1_api.py +client/api/lifecycle_api.py +client/api/lifecycle_v1alpha1_api.py client/api/logs_api.py client/api/networking_api.py client/api/networking_v1_api.py -client/api/networking_v1beta1_api.py client/api/node_api.py client/api/node_v1_api.py client/api/openid_api.py @@ -58,11 +58,12 @@ client/api/resource_v1beta1_api.py client/api/resource_v1beta2_api.py client/api/scheduling_api.py client/api/scheduling_v1_api.py -client/api/scheduling_v1alpha2_api.py +client/api/scheduling_v1alpha3_api.py +client/api/scheduling_v1beta1_api.py client/api/storage_api.py client/api/storage_v1_api.py -client/api/storage_v1beta1_api.py client/api/storagemigration_api.py +client/api/storagemigration_v1_api.py client/api/storagemigration_v1beta1_api.py client/api/version_api.py client/api/well_known_api.py @@ -133,7 +134,10 @@ client/models/v1_cluster_role.py client/models/v1_cluster_role_binding.py client/models/v1_cluster_role_binding_list.py client/models/v1_cluster_role_list.py +client/models/v1_cluster_trust_bundle.py +client/models/v1_cluster_trust_bundle_list.py client/models/v1_cluster_trust_bundle_projection.py +client/models/v1_cluster_trust_bundle_spec.py client/models/v1_component_condition.py client/models/v1_component_status.py client/models/v1_component_status_list.py @@ -174,6 +178,7 @@ client/models/v1_csi_node.py client/models/v1_csi_node_driver.py client/models/v1_csi_node_list.py client/models/v1_csi_node_spec.py +client/models/v1_csi_node_status.py client/models/v1_csi_persistent_volume_source.py client/models/v1_csi_storage_capacity.py client/models/v1_csi_storage_capacity_list.py @@ -217,11 +222,17 @@ client/models/v1_device_class_list.py client/models/v1_device_class_spec.py client/models/v1_device_constraint.py client/models/v1_device_counter_consumption.py +client/models/v1_device_derived_attribute.py client/models/v1_device_request.py client/models/v1_device_request_allocation_result.py client/models/v1_device_selector.py client/models/v1_device_sub_request.py client/models/v1_device_taint.py +client/models/v1_device_taint_rule.py +client/models/v1_device_taint_rule_list.py +client/models/v1_device_taint_rule_spec.py +client/models/v1_device_taint_rule_status.py +client/models/v1_device_taint_selector.py client/models/v1_device_toleration.py client/models/v1_downward_api_projection.py client/models/v1_downward_api_volume_file.py @@ -243,6 +254,7 @@ client/models/v1_ephemeral_container.py client/models/v1_ephemeral_volume_source.py client/models/v1_event_source.py client/models/v1_eviction.py +client/models/v1_eviction_responder.py client/models/v1_exact_device_request.py client/models/v1_exec_action.py client/models/v1_exempt_priority_level_configuration.py @@ -309,6 +321,7 @@ client/models/v1_iscsi_volume_source.py client/models/v1_job.py client/models/v1_job_condition.py client/models/v1_job_list.py +client/models/v1_job_scheduling_configuration.py client/models/v1_job_spec.py client/models/v1_job_status.py client/models/v1_job_template_spec.py @@ -368,14 +381,19 @@ client/models/v1_nfs_volume_source.py client/models/v1_node.py client/models/v1_node_address.py client/models/v1_node_affinity.py +client/models/v1_node_allocatable_mapped_resources.py +client/models/v1_node_allocatable_mapping.py +client/models/v1_node_allocatable_overhead.py +client/models/v1_node_allocatable_overhead_resources.py +client/models/v1_node_allocatable_resource.py client/models/v1_node_allocatable_resource_claim_status.py -client/models/v1_node_allocatable_resource_mapping.py client/models/v1_node_condition.py client/models/v1_node_config_source.py client/models/v1_node_config_status.py client/models/v1_node_daemon_endpoints.py client/models/v1_node_features.py client/models/v1_node_list.py +client/models/v1_node_pod_preemption_policy.py client/models/v1_node_runtime_handler.py client/models/v1_node_runtime_handler_features.py client/models/v1_node_selector.py @@ -414,6 +432,10 @@ client/models/v1_pod_affinity.py client/models/v1_pod_affinity_term.py client/models/v1_pod_anti_affinity.py client/models/v1_pod_certificate_projection.py +client/models/v1_pod_certificate_request.py +client/models/v1_pod_certificate_request_list.py +client/models/v1_pod_certificate_request_spec.py +client/models/v1_pod_certificate_request_status.py client/models/v1_pod_condition.py client/models/v1_pod_disruption_budget.py client/models/v1_pod_disruption_budget_list.py @@ -440,6 +462,7 @@ client/models/v1_pod_status.py client/models/v1_pod_template.py client/models/v1_pod_template_list.py client/models/v1_pod_template_spec.py +client/models/v1_pod_volume_health.py client/models/v1_policy_rule.py client/models/v1_policy_rules_with_subjects.py client/models/v1_port_status.py @@ -559,8 +582,14 @@ client/models/v1_status_cause.py client/models/v1_status_details.py client/models/v1_storage_class.py client/models/v1_storage_class_list.py +client/models/v1_storage_health.py +client/models/v1_storage_health_condition.py client/models/v1_storage_os_persistent_volume_source.py client/models/v1_storage_os_volume_source.py +client/models/v1_storage_version_migration.py +client/models/v1_storage_version_migration_list.py +client/models/v1_storage_version_migration_spec.py +client/models/v1_storage_version_migration_status.py client/models/v1_subject_access_review.py client/models/v1_subject_access_review_spec.py client/models/v1_subject_access_review_status.py @@ -608,6 +637,8 @@ client/models/v1_volume_attributes_class.py client/models/v1_volume_attributes_class_list.py client/models/v1_volume_device.py client/models/v1_volume_error.py +client/models/v1_volume_health_condition.py +client/models/v1_volume_health_status.py client/models/v1_volume_mount.py client/models/v1_volume_mount_status.py client/models/v1_volume_node_affinity.py @@ -621,9 +652,18 @@ client/models/v1_webhook_conversion.py client/models/v1_weighted_pod_affinity_term.py client/models/v1_windows_security_context_options.py client/models/v1alpha1_apply_configuration.py -client/models/v1alpha1_cluster_trust_bundle.py -client/models/v1alpha1_cluster_trust_bundle_list.py -client/models/v1alpha1_cluster_trust_bundle_spec.py +client/models/v1alpha1_eviction.py +client/models/v1alpha1_eviction_list.py +client/models/v1alpha1_eviction_pod_reference.py +client/models/v1alpha1_eviction_request.py +client/models/v1alpha1_eviction_request_list.py +client/models/v1alpha1_eviction_request_pod_reference.py +client/models/v1alpha1_eviction_request_spec.py +client/models/v1alpha1_eviction_request_status.py +client/models/v1alpha1_eviction_request_target.py +client/models/v1alpha1_eviction_spec.py +client/models/v1alpha1_eviction_status.py +client/models/v1alpha1_eviction_target.py client/models/v1alpha1_json_patch.py client/models/v1alpha1_match_condition.py client/models/v1alpha1_match_resources.py @@ -637,43 +677,63 @@ client/models/v1alpha1_mutation.py client/models/v1alpha1_named_rule_with_operations.py client/models/v1alpha1_param_kind.py client/models/v1alpha1_param_ref.py +client/models/v1alpha1_requester.py +client/models/v1alpha1_responder_status.py client/models/v1alpha1_server_storage_version.py client/models/v1alpha1_storage_version.py client/models/v1alpha1_storage_version_condition.py client/models/v1alpha1_storage_version_list.py client/models/v1alpha1_storage_version_status.py +client/models/v1alpha1_target_responder.py client/models/v1alpha1_variable.py -client/models/v1alpha2_gang_scheduling_policy.py client/models/v1alpha2_lease_candidate.py client/models/v1alpha2_lease_candidate_list.py client/models/v1alpha2_lease_candidate_spec.py -client/models/v1alpha2_pod_group.py -client/models/v1alpha2_pod_group_list.py -client/models/v1alpha2_pod_group_resource_claim.py -client/models/v1alpha2_pod_group_resource_claim_status.py -client/models/v1alpha2_pod_group_scheduling_constraints.py -client/models/v1alpha2_pod_group_scheduling_policy.py -client/models/v1alpha2_pod_group_spec.py -client/models/v1alpha2_pod_group_status.py -client/models/v1alpha2_pod_group_template.py -client/models/v1alpha2_pod_group_template_reference.py -client/models/v1alpha2_topology_constraint.py -client/models/v1alpha2_typed_local_object_reference.py -client/models/v1alpha2_workload.py -client/models/v1alpha2_workload_list.py -client/models/v1alpha2_workload_pod_group_template_reference.py -client/models/v1alpha2_workload_spec.py +client/models/v1alpha3_composite_disruption_mode.py +client/models/v1alpha3_composite_gang_scheduling_policy.py +client/models/v1alpha3_composite_pod_group.py +client/models/v1alpha3_composite_pod_group_list.py +client/models/v1alpha3_composite_pod_group_scheduling_constraints.py +client/models/v1alpha3_composite_pod_group_scheduling_policy.py +client/models/v1alpha3_composite_pod_group_spec.py +client/models/v1alpha3_composite_pod_group_status.py +client/models/v1alpha3_composite_pod_group_template.py client/models/v1alpha3_device_taint.py client/models/v1alpha3_device_taint_rule.py client/models/v1alpha3_device_taint_rule_list.py client/models/v1alpha3_device_taint_rule_spec.py client/models/v1alpha3_device_taint_rule_status.py client/models/v1alpha3_device_taint_selector.py +client/models/v1alpha3_disruption_mode.py +client/models/v1alpha3_gang_scheduling_policy.py +client/models/v1alpha3_partition_type_status.py +client/models/v1alpha3_pod_group.py +client/models/v1alpha3_pod_group_list.py +client/models/v1alpha3_pod_group_resource_claim.py +client/models/v1alpha3_pod_group_resource_claim_status.py +client/models/v1alpha3_pod_group_scheduling_constraints.py +client/models/v1alpha3_pod_group_scheduling_policy.py +client/models/v1alpha3_pod_group_spec.py +client/models/v1alpha3_pod_group_status.py +client/models/v1alpha3_pod_group_template.py client/models/v1alpha3_pool_status.py client/models/v1alpha3_resource_pool_status_request.py client/models/v1alpha3_resource_pool_status_request_list.py client/models/v1alpha3_resource_pool_status_request_spec.py client/models/v1alpha3_resource_pool_status_request_status.py +client/models/v1alpha3_shareable_capacity_status.py +client/models/v1alpha3_shareable_summary_status.py +client/models/v1alpha3_topology_constraint.py +client/models/v1alpha3_typed_local_object_reference.py +client/models/v1alpha3_workload.py +client/models/v1alpha3_workload_list.py +client/models/v1alpha3_workload_pod_group_disruption_mode.py +client/models/v1alpha3_workload_pod_group_gang_scheduling_policy.py +client/models/v1alpha3_workload_pod_group_resource_claim.py +client/models/v1alpha3_workload_pod_group_scheduling_constraints.py +client/models/v1alpha3_workload_pod_group_scheduling_policy.py +client/models/v1alpha3_workload_reference.py +client/models/v1alpha3_workload_spec.py client/models/v1beta1_allocated_device_status.py client/models/v1beta1_allocation_result.py client/models/v1beta1_apply_configuration.py @@ -685,6 +745,11 @@ client/models/v1beta1_cel_device_selector.py client/models/v1beta1_cluster_trust_bundle.py client/models/v1beta1_cluster_trust_bundle_list.py client/models/v1beta1_cluster_trust_bundle_spec.py +client/models/v1beta1_composite_disruption_mode.py +client/models/v1beta1_composite_gang_scheduling_policy.py +client/models/v1beta1_composite_pod_group_scheduling_constraints.py +client/models/v1beta1_composite_pod_group_scheduling_policy.py +client/models/v1beta1_composite_pod_group_template.py client/models/v1beta1_counter.py client/models/v1beta1_counter_set.py client/models/v1beta1_device.py @@ -700,15 +765,15 @@ client/models/v1beta1_device_class_list.py client/models/v1beta1_device_class_spec.py client/models/v1beta1_device_constraint.py client/models/v1beta1_device_counter_consumption.py +client/models/v1beta1_device_derived_attribute.py client/models/v1beta1_device_request.py client/models/v1beta1_device_request_allocation_result.py client/models/v1beta1_device_selector.py client/models/v1beta1_device_sub_request.py client/models/v1beta1_device_taint.py client/models/v1beta1_device_toleration.py -client/models/v1beta1_ip_address.py -client/models/v1beta1_ip_address_list.py -client/models/v1beta1_ip_address_spec.py +client/models/v1beta1_disruption_mode.py +client/models/v1beta1_gang_scheduling_policy.py client/models/v1beta1_json_patch.py client/models/v1beta1_lease_candidate.py client/models/v1beta1_lease_candidate_list.py @@ -724,15 +789,25 @@ client/models/v1beta1_mutating_admission_policy_spec.py client/models/v1beta1_mutation.py client/models/v1beta1_named_rule_with_operations.py client/models/v1beta1_network_device_data.py -client/models/v1beta1_node_allocatable_resource_mapping.py +client/models/v1beta1_node_allocatable_mapping.py +client/models/v1beta1_node_allocatable_overhead.py +client/models/v1beta1_node_allocatable_resource.py client/models/v1beta1_opaque_device_configuration.py client/models/v1beta1_param_kind.py client/models/v1beta1_param_ref.py -client/models/v1beta1_parent_reference.py client/models/v1beta1_pod_certificate_request.py client/models/v1beta1_pod_certificate_request_list.py client/models/v1beta1_pod_certificate_request_spec.py client/models/v1beta1_pod_certificate_request_status.py +client/models/v1beta1_pod_group.py +client/models/v1beta1_pod_group_list.py +client/models/v1beta1_pod_group_resource_claim.py +client/models/v1beta1_pod_group_resource_claim_status.py +client/models/v1beta1_pod_group_scheduling_constraints.py +client/models/v1beta1_pod_group_scheduling_policy.py +client/models/v1beta1_pod_group_spec.py +client/models/v1beta1_pod_group_status.py +client/models/v1beta1_pod_group_template.py client/models/v1beta1_resource_claim.py client/models/v1beta1_resource_claim_consumer_reference.py client/models/v1beta1_resource_claim_list.py @@ -745,17 +820,17 @@ client/models/v1beta1_resource_pool.py client/models/v1beta1_resource_slice.py client/models/v1beta1_resource_slice_list.py client/models/v1beta1_resource_slice_spec.py -client/models/v1beta1_service_cidr.py -client/models/v1beta1_service_cidr_list.py -client/models/v1beta1_service_cidr_spec.py -client/models/v1beta1_service_cidr_status.py client/models/v1beta1_storage_version_migration.py client/models/v1beta1_storage_version_migration_list.py client/models/v1beta1_storage_version_migration_spec.py client/models/v1beta1_storage_version_migration_status.py +client/models/v1beta1_topology_constraint.py +client/models/v1beta1_typed_local_object_reference.py client/models/v1beta1_variable.py -client/models/v1beta1_volume_attributes_class.py -client/models/v1beta1_volume_attributes_class_list.py +client/models/v1beta1_workload.py +client/models/v1beta1_workload_list.py +client/models/v1beta1_workload_reference.py +client/models/v1beta1_workload_spec.py client/models/v1beta2_allocated_device_status.py client/models/v1beta2_allocation_result.py client/models/v1beta2_capacity_request_policy.py @@ -777,6 +852,7 @@ client/models/v1beta2_device_class_list.py client/models/v1beta2_device_class_spec.py client/models/v1beta2_device_constraint.py client/models/v1beta2_device_counter_consumption.py +client/models/v1beta2_device_derived_attribute.py client/models/v1beta2_device_request.py client/models/v1beta2_device_request_allocation_result.py client/models/v1beta2_device_selector.py @@ -790,7 +866,9 @@ client/models/v1beta2_device_taint_selector.py client/models/v1beta2_device_toleration.py client/models/v1beta2_exact_device_request.py client/models/v1beta2_network_device_data.py -client/models/v1beta2_node_allocatable_resource_mapping.py +client/models/v1beta2_node_allocatable_mapping.py +client/models/v1beta2_node_allocatable_overhead.py +client/models/v1beta2_node_allocatable_resource.py client/models/v1beta2_opaque_device_configuration.py client/models/v1beta2_resource_claim.py client/models/v1beta2_resource_claim_consumer_reference.py @@ -869,7 +947,6 @@ docs/BatchApi.md docs/BatchV1Api.md docs/CertificatesApi.md docs/CertificatesV1Api.md -docs/CertificatesV1alpha1Api.md docs/CertificatesV1beta1Api.md docs/CoordinationApi.md docs/CoordinationV1Api.md @@ -896,10 +973,11 @@ docs/FlowcontrolApiserverV1Api.md docs/FlowcontrolV1Subject.md docs/InternalApiserverApi.md docs/InternalApiserverV1alpha1Api.md +docs/LifecycleApi.md +docs/LifecycleV1alpha1Api.md docs/LogsApi.md docs/NetworkingApi.md docs/NetworkingV1Api.md -docs/NetworkingV1beta1Api.md docs/NodeApi.md docs/NodeV1Api.md docs/OpenidApi.md @@ -916,12 +994,13 @@ docs/ResourceV1beta1Api.md docs/ResourceV1beta2Api.md docs/SchedulingApi.md docs/SchedulingV1Api.md -docs/SchedulingV1alpha2Api.md +docs/SchedulingV1alpha3Api.md +docs/SchedulingV1beta1Api.md docs/StorageApi.md docs/StorageV1Api.md docs/StorageV1TokenRequest.md -docs/StorageV1beta1Api.md docs/StoragemigrationApi.md +docs/StoragemigrationV1Api.md docs/StoragemigrationV1beta1Api.md docs/V1APIGroup.md docs/V1APIGroupList.md @@ -955,6 +1034,7 @@ docs/V1CSINode.md docs/V1CSINodeDriver.md docs/V1CSINodeList.md docs/V1CSINodeSpec.md +docs/V1CSINodeStatus.md docs/V1CSIPersistentVolumeSource.md docs/V1CSIStorageCapacity.md docs/V1CSIStorageCapacityList.md @@ -977,7 +1057,10 @@ docs/V1ClusterRole.md docs/V1ClusterRoleBinding.md docs/V1ClusterRoleBindingList.md docs/V1ClusterRoleList.md +docs/V1ClusterTrustBundle.md +docs/V1ClusterTrustBundleList.md docs/V1ClusterTrustBundleProjection.md +docs/V1ClusterTrustBundleSpec.md docs/V1ComponentCondition.md docs/V1ComponentStatus.md docs/V1ComponentStatusList.md @@ -1050,11 +1133,17 @@ docs/V1DeviceClassList.md docs/V1DeviceClassSpec.md docs/V1DeviceConstraint.md docs/V1DeviceCounterConsumption.md +docs/V1DeviceDerivedAttribute.md docs/V1DeviceRequest.md docs/V1DeviceRequestAllocationResult.md docs/V1DeviceSelector.md docs/V1DeviceSubRequest.md docs/V1DeviceTaint.md +docs/V1DeviceTaintRule.md +docs/V1DeviceTaintRuleList.md +docs/V1DeviceTaintRuleSpec.md +docs/V1DeviceTaintRuleStatus.md +docs/V1DeviceTaintSelector.md docs/V1DeviceToleration.md docs/V1DownwardAPIProjection.md docs/V1DownwardAPIVolumeFile.md @@ -1076,6 +1165,7 @@ docs/V1EphemeralContainer.md docs/V1EphemeralVolumeSource.md docs/V1EventSource.md docs/V1Eviction.md +docs/V1EvictionResponder.md docs/V1ExactDeviceRequest.md docs/V1ExecAction.md docs/V1ExemptPriorityLevelConfiguration.md @@ -1144,6 +1234,7 @@ docs/V1JSONSchemaProps.md docs/V1Job.md docs/V1JobCondition.md docs/V1JobList.md +docs/V1JobSchedulingConfiguration.md docs/V1JobSpec.md docs/V1JobStatus.md docs/V1JobTemplateSpec.md @@ -1201,14 +1292,19 @@ docs/V1NetworkPolicySpec.md docs/V1Node.md docs/V1NodeAddress.md docs/V1NodeAffinity.md +docs/V1NodeAllocatableMappedResources.md +docs/V1NodeAllocatableMapping.md +docs/V1NodeAllocatableOverhead.md +docs/V1NodeAllocatableOverheadResources.md +docs/V1NodeAllocatableResource.md docs/V1NodeAllocatableResourceClaimStatus.md -docs/V1NodeAllocatableResourceMapping.md docs/V1NodeCondition.md docs/V1NodeConfigSource.md docs/V1NodeConfigStatus.md docs/V1NodeDaemonEndpoints.md docs/V1NodeFeatures.md docs/V1NodeList.md +docs/V1NodePodPreemptionPolicy.md docs/V1NodeRuntimeHandler.md docs/V1NodeRuntimeHandlerFeatures.md docs/V1NodeSelector.md @@ -1247,6 +1343,10 @@ docs/V1PodAffinity.md docs/V1PodAffinityTerm.md docs/V1PodAntiAffinity.md docs/V1PodCertificateProjection.md +docs/V1PodCertificateRequest.md +docs/V1PodCertificateRequestList.md +docs/V1PodCertificateRequestSpec.md +docs/V1PodCertificateRequestStatus.md docs/V1PodCondition.md docs/V1PodDNSConfig.md docs/V1PodDNSConfigOption.md @@ -1273,6 +1373,7 @@ docs/V1PodStatus.md docs/V1PodTemplate.md docs/V1PodTemplateList.md docs/V1PodTemplateSpec.md +docs/V1PodVolumeHealth.md docs/V1PolicyRule.md docs/V1PolicyRulesWithSubjects.md docs/V1PortStatus.md @@ -1392,8 +1493,14 @@ docs/V1StatusCause.md docs/V1StatusDetails.md docs/V1StorageClass.md docs/V1StorageClassList.md +docs/V1StorageHealth.md +docs/V1StorageHealthCondition.md docs/V1StorageOSPersistentVolumeSource.md docs/V1StorageOSVolumeSource.md +docs/V1StorageVersionMigration.md +docs/V1StorageVersionMigrationList.md +docs/V1StorageVersionMigrationSpec.md +docs/V1StorageVersionMigrationStatus.md docs/V1SubjectAccessReview.md docs/V1SubjectAccessReviewSpec.md docs/V1SubjectAccessReviewStatus.md @@ -1441,6 +1548,8 @@ docs/V1VolumeAttributesClass.md docs/V1VolumeAttributesClassList.md docs/V1VolumeDevice.md docs/V1VolumeError.md +docs/V1VolumeHealthCondition.md +docs/V1VolumeHealthStatus.md docs/V1VolumeMount.md docs/V1VolumeMountStatus.md docs/V1VolumeNodeAffinity.md @@ -1454,9 +1563,18 @@ docs/V1WebhookConversion.md docs/V1WeightedPodAffinityTerm.md docs/V1WindowsSecurityContextOptions.md docs/V1alpha1ApplyConfiguration.md -docs/V1alpha1ClusterTrustBundle.md -docs/V1alpha1ClusterTrustBundleList.md -docs/V1alpha1ClusterTrustBundleSpec.md +docs/V1alpha1Eviction.md +docs/V1alpha1EvictionList.md +docs/V1alpha1EvictionPodReference.md +docs/V1alpha1EvictionRequest.md +docs/V1alpha1EvictionRequestList.md +docs/V1alpha1EvictionRequestPodReference.md +docs/V1alpha1EvictionRequestSpec.md +docs/V1alpha1EvictionRequestStatus.md +docs/V1alpha1EvictionRequestTarget.md +docs/V1alpha1EvictionSpec.md +docs/V1alpha1EvictionStatus.md +docs/V1alpha1EvictionTarget.md docs/V1alpha1JSONPatch.md docs/V1alpha1MatchCondition.md docs/V1alpha1MatchResources.md @@ -1470,43 +1588,63 @@ docs/V1alpha1Mutation.md docs/V1alpha1NamedRuleWithOperations.md docs/V1alpha1ParamKind.md docs/V1alpha1ParamRef.md +docs/V1alpha1Requester.md +docs/V1alpha1ResponderStatus.md docs/V1alpha1ServerStorageVersion.md docs/V1alpha1StorageVersion.md docs/V1alpha1StorageVersionCondition.md docs/V1alpha1StorageVersionList.md docs/V1alpha1StorageVersionStatus.md +docs/V1alpha1TargetResponder.md docs/V1alpha1Variable.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/V1alpha3CompositeDisruptionMode.md +docs/V1alpha3CompositeGangSchedulingPolicy.md +docs/V1alpha3CompositePodGroup.md +docs/V1alpha3CompositePodGroupList.md +docs/V1alpha3CompositePodGroupSchedulingConstraints.md +docs/V1alpha3CompositePodGroupSchedulingPolicy.md +docs/V1alpha3CompositePodGroupSpec.md +docs/V1alpha3CompositePodGroupStatus.md +docs/V1alpha3CompositePodGroupTemplate.md docs/V1alpha3DeviceTaint.md docs/V1alpha3DeviceTaintRule.md docs/V1alpha3DeviceTaintRuleList.md docs/V1alpha3DeviceTaintRuleSpec.md docs/V1alpha3DeviceTaintRuleStatus.md docs/V1alpha3DeviceTaintSelector.md +docs/V1alpha3DisruptionMode.md +docs/V1alpha3GangSchedulingPolicy.md +docs/V1alpha3PartitionTypeStatus.md +docs/V1alpha3PodGroup.md +docs/V1alpha3PodGroupList.md +docs/V1alpha3PodGroupResourceClaim.md +docs/V1alpha3PodGroupResourceClaimStatus.md +docs/V1alpha3PodGroupSchedulingConstraints.md +docs/V1alpha3PodGroupSchedulingPolicy.md +docs/V1alpha3PodGroupSpec.md +docs/V1alpha3PodGroupStatus.md +docs/V1alpha3PodGroupTemplate.md docs/V1alpha3PoolStatus.md docs/V1alpha3ResourcePoolStatusRequest.md docs/V1alpha3ResourcePoolStatusRequestList.md docs/V1alpha3ResourcePoolStatusRequestSpec.md docs/V1alpha3ResourcePoolStatusRequestStatus.md +docs/V1alpha3ShareableCapacityStatus.md +docs/V1alpha3ShareableSummaryStatus.md +docs/V1alpha3TopologyConstraint.md +docs/V1alpha3TypedLocalObjectReference.md +docs/V1alpha3Workload.md +docs/V1alpha3WorkloadList.md +docs/V1alpha3WorkloadPodGroupDisruptionMode.md +docs/V1alpha3WorkloadPodGroupGangSchedulingPolicy.md +docs/V1alpha3WorkloadPodGroupResourceClaim.md +docs/V1alpha3WorkloadPodGroupSchedulingConstraints.md +docs/V1alpha3WorkloadPodGroupSchedulingPolicy.md +docs/V1alpha3WorkloadReference.md +docs/V1alpha3WorkloadSpec.md docs/V1beta1AllocatedDeviceStatus.md docs/V1beta1AllocationResult.md docs/V1beta1ApplyConfiguration.md @@ -1518,6 +1656,11 @@ docs/V1beta1CapacityRequirements.md docs/V1beta1ClusterTrustBundle.md docs/V1beta1ClusterTrustBundleList.md docs/V1beta1ClusterTrustBundleSpec.md +docs/V1beta1CompositeDisruptionMode.md +docs/V1beta1CompositeGangSchedulingPolicy.md +docs/V1beta1CompositePodGroupSchedulingConstraints.md +docs/V1beta1CompositePodGroupSchedulingPolicy.md +docs/V1beta1CompositePodGroupTemplate.md docs/V1beta1Counter.md docs/V1beta1CounterSet.md docs/V1beta1Device.md @@ -1533,15 +1676,15 @@ docs/V1beta1DeviceClassList.md docs/V1beta1DeviceClassSpec.md docs/V1beta1DeviceConstraint.md docs/V1beta1DeviceCounterConsumption.md +docs/V1beta1DeviceDerivedAttribute.md docs/V1beta1DeviceRequest.md docs/V1beta1DeviceRequestAllocationResult.md docs/V1beta1DeviceSelector.md docs/V1beta1DeviceSubRequest.md docs/V1beta1DeviceTaint.md docs/V1beta1DeviceToleration.md -docs/V1beta1IPAddress.md -docs/V1beta1IPAddressList.md -docs/V1beta1IPAddressSpec.md +docs/V1beta1DisruptionMode.md +docs/V1beta1GangSchedulingPolicy.md docs/V1beta1JSONPatch.md docs/V1beta1LeaseCandidate.md docs/V1beta1LeaseCandidateList.md @@ -1557,15 +1700,25 @@ docs/V1beta1MutatingAdmissionPolicySpec.md docs/V1beta1Mutation.md docs/V1beta1NamedRuleWithOperations.md docs/V1beta1NetworkDeviceData.md -docs/V1beta1NodeAllocatableResourceMapping.md +docs/V1beta1NodeAllocatableMapping.md +docs/V1beta1NodeAllocatableOverhead.md +docs/V1beta1NodeAllocatableResource.md docs/V1beta1OpaqueDeviceConfiguration.md docs/V1beta1ParamKind.md docs/V1beta1ParamRef.md -docs/V1beta1ParentReference.md docs/V1beta1PodCertificateRequest.md docs/V1beta1PodCertificateRequestList.md docs/V1beta1PodCertificateRequestSpec.md docs/V1beta1PodCertificateRequestStatus.md +docs/V1beta1PodGroup.md +docs/V1beta1PodGroupList.md +docs/V1beta1PodGroupResourceClaim.md +docs/V1beta1PodGroupResourceClaimStatus.md +docs/V1beta1PodGroupSchedulingConstraints.md +docs/V1beta1PodGroupSchedulingPolicy.md +docs/V1beta1PodGroupSpec.md +docs/V1beta1PodGroupStatus.md +docs/V1beta1PodGroupTemplate.md docs/V1beta1ResourceClaim.md docs/V1beta1ResourceClaimConsumerReference.md docs/V1beta1ResourceClaimList.md @@ -1578,17 +1731,17 @@ docs/V1beta1ResourcePool.md docs/V1beta1ResourceSlice.md docs/V1beta1ResourceSliceList.md docs/V1beta1ResourceSliceSpec.md -docs/V1beta1ServiceCIDR.md -docs/V1beta1ServiceCIDRList.md -docs/V1beta1ServiceCIDRSpec.md -docs/V1beta1ServiceCIDRStatus.md docs/V1beta1StorageVersionMigration.md docs/V1beta1StorageVersionMigrationList.md docs/V1beta1StorageVersionMigrationSpec.md docs/V1beta1StorageVersionMigrationStatus.md +docs/V1beta1TopologyConstraint.md +docs/V1beta1TypedLocalObjectReference.md docs/V1beta1Variable.md -docs/V1beta1VolumeAttributesClass.md -docs/V1beta1VolumeAttributesClassList.md +docs/V1beta1Workload.md +docs/V1beta1WorkloadList.md +docs/V1beta1WorkloadReference.md +docs/V1beta1WorkloadSpec.md docs/V1beta2AllocatedDeviceStatus.md docs/V1beta2AllocationResult.md docs/V1beta2CELDeviceSelector.md @@ -1610,6 +1763,7 @@ docs/V1beta2DeviceClassList.md docs/V1beta2DeviceClassSpec.md docs/V1beta2DeviceConstraint.md docs/V1beta2DeviceCounterConsumption.md +docs/V1beta2DeviceDerivedAttribute.md docs/V1beta2DeviceRequest.md docs/V1beta2DeviceRequestAllocationResult.md docs/V1beta2DeviceSelector.md @@ -1623,7 +1777,9 @@ docs/V1beta2DeviceTaintSelector.md docs/V1beta2DeviceToleration.md docs/V1beta2ExactDeviceRequest.md docs/V1beta2NetworkDeviceData.md -docs/V1beta2NodeAllocatableResourceMapping.md +docs/V1beta2NodeAllocatableMapping.md +docs/V1beta2NodeAllocatableOverhead.md +docs/V1beta2NodeAllocatableResource.md docs/V1beta2OpaqueDeviceConfiguration.md docs/V1beta2ResourceClaim.md docs/V1beta2ResourceClaimConsumerReference.md diff --git a/kubernetes/aio/.openapi-generator/swagger.json-default.sha256 b/kubernetes/aio/.openapi-generator/swagger.json-default.sha256 index 40ab00a4c4..23f1f6c0a8 100644 --- a/kubernetes/aio/.openapi-generator/swagger.json-default.sha256 +++ b/kubernetes/aio/.openapi-generator/swagger.json-default.sha256 @@ -1 +1 @@ -6a2f3ba25f88cbea9998b2da0b80a96d72fd29e892ffde2357f980dbb48ec22b \ No newline at end of file +c96f8f26a26b65b52e6ee9bd77b8c2887903b62ece1dc9c38c95032ede8c53f6 \ No newline at end of file diff --git a/kubernetes/aio/README.md b/kubernetes/aio/README.md index 2da32e4197..a6a28e0a64 100644 --- a/kubernetes/aio/README.md +++ b/kubernetes/aio/README.md @@ -3,8 +3,8 @@ No description provided (generated by Openapi Generator https://github.com/opena This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: release-1.36 -- Package version: 36.0.0+snapshot +- API version: release-1.37 +- Package version: 37.0.0+snapshot - Generator version: 7.25.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -343,27 +343,37 @@ Class | Method | HTTP request | Description *BatchV1Api* | [**replace_namespaced_job_status**](docs/BatchV1Api.md#replace_namespaced_job_status) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | *CertificatesApi* | [**get_api_group**](docs/CertificatesApi.md#get_api_group) | **GET** /apis/certificates.k8s.io/ | *CertificatesV1Api* | [**create_certificate_signing_request**](docs/CertificatesV1Api.md#create_certificate_signing_request) | **POST** /apis/certificates.k8s.io/v1/certificatesigningrequests | +*CertificatesV1Api* | [**create_cluster_trust_bundle**](docs/CertificatesV1Api.md#create_cluster_trust_bundle) | **POST** /apis/certificates.k8s.io/v1/clustertrustbundles | +*CertificatesV1Api* | [**create_namespaced_pod_certificate_request**](docs/CertificatesV1Api.md#create_namespaced_pod_certificate_request) | **POST** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests | *CertificatesV1Api* | [**delete_certificate_signing_request**](docs/CertificatesV1Api.md#delete_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | +*CertificatesV1Api* | [**delete_cluster_trust_bundle**](docs/CertificatesV1Api.md#delete_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1/clustertrustbundles/{name} | *CertificatesV1Api* | [**delete_collection_certificate_signing_request**](docs/CertificatesV1Api.md#delete_collection_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1/certificatesigningrequests | +*CertificatesV1Api* | [**delete_collection_cluster_trust_bundle**](docs/CertificatesV1Api.md#delete_collection_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1/clustertrustbundles | +*CertificatesV1Api* | [**delete_collection_namespaced_pod_certificate_request**](docs/CertificatesV1Api.md#delete_collection_namespaced_pod_certificate_request) | **DELETE** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests | +*CertificatesV1Api* | [**delete_namespaced_pod_certificate_request**](docs/CertificatesV1Api.md#delete_namespaced_pod_certificate_request) | **DELETE** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name} | *CertificatesV1Api* | [**get_api_resources**](docs/CertificatesV1Api.md#get_api_resources) | **GET** /apis/certificates.k8s.io/v1/ | *CertificatesV1Api* | [**list_certificate_signing_request**](docs/CertificatesV1Api.md#list_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests | +*CertificatesV1Api* | [**list_cluster_trust_bundle**](docs/CertificatesV1Api.md#list_cluster_trust_bundle) | **GET** /apis/certificates.k8s.io/v1/clustertrustbundles | +*CertificatesV1Api* | [**list_namespaced_pod_certificate_request**](docs/CertificatesV1Api.md#list_namespaced_pod_certificate_request) | **GET** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests | +*CertificatesV1Api* | [**list_pod_certificate_request_for_all_namespaces**](docs/CertificatesV1Api.md#list_pod_certificate_request_for_all_namespaces) | **GET** /apis/certificates.k8s.io/v1/podcertificaterequests | *CertificatesV1Api* | [**patch_certificate_signing_request**](docs/CertificatesV1Api.md#patch_certificate_signing_request) | **PATCH** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | *CertificatesV1Api* | [**patch_certificate_signing_request_approval**](docs/CertificatesV1Api.md#patch_certificate_signing_request_approval) | **PATCH** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval | *CertificatesV1Api* | [**patch_certificate_signing_request_status**](docs/CertificatesV1Api.md#patch_certificate_signing_request_status) | **PATCH** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status | +*CertificatesV1Api* | [**patch_cluster_trust_bundle**](docs/CertificatesV1Api.md#patch_cluster_trust_bundle) | **PATCH** /apis/certificates.k8s.io/v1/clustertrustbundles/{name} | +*CertificatesV1Api* | [**patch_namespaced_pod_certificate_request**](docs/CertificatesV1Api.md#patch_namespaced_pod_certificate_request) | **PATCH** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name} | +*CertificatesV1Api* | [**patch_namespaced_pod_certificate_request_status**](docs/CertificatesV1Api.md#patch_namespaced_pod_certificate_request_status) | **PATCH** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status | *CertificatesV1Api* | [**read_certificate_signing_request**](docs/CertificatesV1Api.md#read_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | *CertificatesV1Api* | [**read_certificate_signing_request_approval**](docs/CertificatesV1Api.md#read_certificate_signing_request_approval) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval | *CertificatesV1Api* | [**read_certificate_signing_request_status**](docs/CertificatesV1Api.md#read_certificate_signing_request_status) | **GET** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status | +*CertificatesV1Api* | [**read_cluster_trust_bundle**](docs/CertificatesV1Api.md#read_cluster_trust_bundle) | **GET** /apis/certificates.k8s.io/v1/clustertrustbundles/{name} | +*CertificatesV1Api* | [**read_namespaced_pod_certificate_request**](docs/CertificatesV1Api.md#read_namespaced_pod_certificate_request) | **GET** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name} | +*CertificatesV1Api* | [**read_namespaced_pod_certificate_request_status**](docs/CertificatesV1Api.md#read_namespaced_pod_certificate_request_status) | **GET** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status | *CertificatesV1Api* | [**replace_certificate_signing_request**](docs/CertificatesV1Api.md#replace_certificate_signing_request) | **PUT** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} | *CertificatesV1Api* | [**replace_certificate_signing_request_approval**](docs/CertificatesV1Api.md#replace_certificate_signing_request_approval) | **PUT** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval | *CertificatesV1Api* | [**replace_certificate_signing_request_status**](docs/CertificatesV1Api.md#replace_certificate_signing_request_status) | **PUT** /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status | -*CertificatesV1alpha1Api* | [**create_cluster_trust_bundle**](docs/CertificatesV1alpha1Api.md#create_cluster_trust_bundle) | **POST** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | -*CertificatesV1alpha1Api* | [**delete_cluster_trust_bundle**](docs/CertificatesV1alpha1Api.md#delete_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | -*CertificatesV1alpha1Api* | [**delete_collection_cluster_trust_bundle**](docs/CertificatesV1alpha1Api.md#delete_collection_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | -*CertificatesV1alpha1Api* | [**get_api_resources**](docs/CertificatesV1alpha1Api.md#get_api_resources) | **GET** /apis/certificates.k8s.io/v1alpha1/ | -*CertificatesV1alpha1Api* | [**list_cluster_trust_bundle**](docs/CertificatesV1alpha1Api.md#list_cluster_trust_bundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | -*CertificatesV1alpha1Api* | [**patch_cluster_trust_bundle**](docs/CertificatesV1alpha1Api.md#patch_cluster_trust_bundle) | **PATCH** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | -*CertificatesV1alpha1Api* | [**read_cluster_trust_bundle**](docs/CertificatesV1alpha1Api.md#read_cluster_trust_bundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | -*CertificatesV1alpha1Api* | [**replace_cluster_trust_bundle**](docs/CertificatesV1alpha1Api.md#replace_cluster_trust_bundle) | **PUT** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | +*CertificatesV1Api* | [**replace_cluster_trust_bundle**](docs/CertificatesV1Api.md#replace_cluster_trust_bundle) | **PUT** /apis/certificates.k8s.io/v1/clustertrustbundles/{name} | +*CertificatesV1Api* | [**replace_namespaced_pod_certificate_request**](docs/CertificatesV1Api.md#replace_namespaced_pod_certificate_request) | **PUT** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name} | +*CertificatesV1Api* | [**replace_namespaced_pod_certificate_request_status**](docs/CertificatesV1Api.md#replace_namespaced_pod_certificate_request_status) | **PUT** /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status | *CertificatesV1beta1Api* | [**create_cluster_trust_bundle**](docs/CertificatesV1beta1Api.md#create_cluster_trust_bundle) | **POST** /apis/certificates.k8s.io/v1beta1/clustertrustbundles | *CertificatesV1beta1Api* | [**create_namespaced_pod_certificate_request**](docs/CertificatesV1beta1Api.md#create_namespaced_pod_certificate_request) | **POST** /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests | *CertificatesV1beta1Api* | [**delete_cluster_trust_bundle**](docs/CertificatesV1beta1Api.md#delete_cluster_trust_bundle) | **DELETE** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | @@ -700,6 +710,30 @@ Class | Method | HTTP request | Description *InternalApiserverV1alpha1Api* | [**read_storage_version_status**](docs/InternalApiserverV1alpha1Api.md#read_storage_version_status) | **GET** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status | *InternalApiserverV1alpha1Api* | [**replace_storage_version**](docs/InternalApiserverV1alpha1Api.md#replace_storage_version) | **PUT** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name} | *InternalApiserverV1alpha1Api* | [**replace_storage_version_status**](docs/InternalApiserverV1alpha1Api.md#replace_storage_version_status) | **PUT** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status | +*LifecycleApi* | [**get_api_group**](docs/LifecycleApi.md#get_api_group) | **GET** /apis/lifecycle.k8s.io/ | +*LifecycleV1alpha1Api* | [**create_namespaced_eviction**](docs/LifecycleV1alpha1Api.md#create_namespaced_eviction) | **POST** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions | +*LifecycleV1alpha1Api* | [**create_namespaced_eviction_request**](docs/LifecycleV1alpha1Api.md#create_namespaced_eviction_request) | **POST** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests | +*LifecycleV1alpha1Api* | [**delete_collection_namespaced_eviction**](docs/LifecycleV1alpha1Api.md#delete_collection_namespaced_eviction) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions | +*LifecycleV1alpha1Api* | [**delete_collection_namespaced_eviction_request**](docs/LifecycleV1alpha1Api.md#delete_collection_namespaced_eviction_request) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests | +*LifecycleV1alpha1Api* | [**delete_namespaced_eviction**](docs/LifecycleV1alpha1Api.md#delete_namespaced_eviction) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | +*LifecycleV1alpha1Api* | [**delete_namespaced_eviction_request**](docs/LifecycleV1alpha1Api.md#delete_namespaced_eviction_request) | **DELETE** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | +*LifecycleV1alpha1Api* | [**get_api_resources**](docs/LifecycleV1alpha1Api.md#get_api_resources) | **GET** /apis/lifecycle.k8s.io/v1alpha1/ | +*LifecycleV1alpha1Api* | [**list_eviction_for_all_namespaces**](docs/LifecycleV1alpha1Api.md#list_eviction_for_all_namespaces) | **GET** /apis/lifecycle.k8s.io/v1alpha1/evictions | +*LifecycleV1alpha1Api* | [**list_eviction_request_for_all_namespaces**](docs/LifecycleV1alpha1Api.md#list_eviction_request_for_all_namespaces) | **GET** /apis/lifecycle.k8s.io/v1alpha1/evictionrequests | +*LifecycleV1alpha1Api* | [**list_namespaced_eviction**](docs/LifecycleV1alpha1Api.md#list_namespaced_eviction) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions | +*LifecycleV1alpha1Api* | [**list_namespaced_eviction_request**](docs/LifecycleV1alpha1Api.md#list_namespaced_eviction_request) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests | +*LifecycleV1alpha1Api* | [**patch_namespaced_eviction**](docs/LifecycleV1alpha1Api.md#patch_namespaced_eviction) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | +*LifecycleV1alpha1Api* | [**patch_namespaced_eviction_request**](docs/LifecycleV1alpha1Api.md#patch_namespaced_eviction_request) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | +*LifecycleV1alpha1Api* | [**patch_namespaced_eviction_request_status**](docs/LifecycleV1alpha1Api.md#patch_namespaced_eviction_request_status) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status | +*LifecycleV1alpha1Api* | [**patch_namespaced_eviction_status**](docs/LifecycleV1alpha1Api.md#patch_namespaced_eviction_status) | **PATCH** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status | +*LifecycleV1alpha1Api* | [**read_namespaced_eviction**](docs/LifecycleV1alpha1Api.md#read_namespaced_eviction) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | +*LifecycleV1alpha1Api* | [**read_namespaced_eviction_request**](docs/LifecycleV1alpha1Api.md#read_namespaced_eviction_request) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | +*LifecycleV1alpha1Api* | [**read_namespaced_eviction_request_status**](docs/LifecycleV1alpha1Api.md#read_namespaced_eviction_request_status) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status | +*LifecycleV1alpha1Api* | [**read_namespaced_eviction_status**](docs/LifecycleV1alpha1Api.md#read_namespaced_eviction_status) | **GET** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status | +*LifecycleV1alpha1Api* | [**replace_namespaced_eviction**](docs/LifecycleV1alpha1Api.md#replace_namespaced_eviction) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} | +*LifecycleV1alpha1Api* | [**replace_namespaced_eviction_request**](docs/LifecycleV1alpha1Api.md#replace_namespaced_eviction_request) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} | +*LifecycleV1alpha1Api* | [**replace_namespaced_eviction_request_status**](docs/LifecycleV1alpha1Api.md#replace_namespaced_eviction_request_status) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}/status | +*LifecycleV1alpha1Api* | [**replace_namespaced_eviction_status**](docs/LifecycleV1alpha1Api.md#replace_namespaced_eviction_status) | **PUT** /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status | *LogsApi* | [**log_file_handler**](docs/LogsApi.md#log_file_handler) | **GET** /logs/{logpath} | *LogsApi* | [**log_file_list_handler**](docs/LogsApi.md#log_file_list_handler) | **GET** /logs/ | *NetworkingApi* | [**get_api_group**](docs/NetworkingApi.md#get_api_group) | **GET** /apis/networking.k8s.io/ | @@ -747,24 +781,6 @@ Class | Method | HTTP request | Description *NetworkingV1Api* | [**replace_namespaced_network_policy**](docs/NetworkingV1Api.md#replace_namespaced_network_policy) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} | *NetworkingV1Api* | [**replace_service_cidr**](docs/NetworkingV1Api.md#replace_service_cidr) | **PUT** /apis/networking.k8s.io/v1/servicecidrs/{name} | *NetworkingV1Api* | [**replace_service_cidr_status**](docs/NetworkingV1Api.md#replace_service_cidr_status) | **PUT** /apis/networking.k8s.io/v1/servicecidrs/{name}/status | -*NetworkingV1beta1Api* | [**create_ip_address**](docs/NetworkingV1beta1Api.md#create_ip_address) | **POST** /apis/networking.k8s.io/v1beta1/ipaddresses | -*NetworkingV1beta1Api* | [**create_service_cidr**](docs/NetworkingV1beta1Api.md#create_service_cidr) | **POST** /apis/networking.k8s.io/v1beta1/servicecidrs | -*NetworkingV1beta1Api* | [**delete_collection_ip_address**](docs/NetworkingV1beta1Api.md#delete_collection_ip_address) | **DELETE** /apis/networking.k8s.io/v1beta1/ipaddresses | -*NetworkingV1beta1Api* | [**delete_collection_service_cidr**](docs/NetworkingV1beta1Api.md#delete_collection_service_cidr) | **DELETE** /apis/networking.k8s.io/v1beta1/servicecidrs | -*NetworkingV1beta1Api* | [**delete_ip_address**](docs/NetworkingV1beta1Api.md#delete_ip_address) | **DELETE** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | -*NetworkingV1beta1Api* | [**delete_service_cidr**](docs/NetworkingV1beta1Api.md#delete_service_cidr) | **DELETE** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | -*NetworkingV1beta1Api* | [**get_api_resources**](docs/NetworkingV1beta1Api.md#get_api_resources) | **GET** /apis/networking.k8s.io/v1beta1/ | -*NetworkingV1beta1Api* | [**list_ip_address**](docs/NetworkingV1beta1Api.md#list_ip_address) | **GET** /apis/networking.k8s.io/v1beta1/ipaddresses | -*NetworkingV1beta1Api* | [**list_service_cidr**](docs/NetworkingV1beta1Api.md#list_service_cidr) | **GET** /apis/networking.k8s.io/v1beta1/servicecidrs | -*NetworkingV1beta1Api* | [**patch_ip_address**](docs/NetworkingV1beta1Api.md#patch_ip_address) | **PATCH** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | -*NetworkingV1beta1Api* | [**patch_service_cidr**](docs/NetworkingV1beta1Api.md#patch_service_cidr) | **PATCH** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | -*NetworkingV1beta1Api* | [**patch_service_cidr_status**](docs/NetworkingV1beta1Api.md#patch_service_cidr_status) | **PATCH** /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status | -*NetworkingV1beta1Api* | [**read_ip_address**](docs/NetworkingV1beta1Api.md#read_ip_address) | **GET** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | -*NetworkingV1beta1Api* | [**read_service_cidr**](docs/NetworkingV1beta1Api.md#read_service_cidr) | **GET** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | -*NetworkingV1beta1Api* | [**read_service_cidr_status**](docs/NetworkingV1beta1Api.md#read_service_cidr_status) | **GET** /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status | -*NetworkingV1beta1Api* | [**replace_ip_address**](docs/NetworkingV1beta1Api.md#replace_ip_address) | **PUT** /apis/networking.k8s.io/v1beta1/ipaddresses/{name} | -*NetworkingV1beta1Api* | [**replace_service_cidr**](docs/NetworkingV1beta1Api.md#replace_service_cidr) | **PUT** /apis/networking.k8s.io/v1beta1/servicecidrs/{name} | -*NetworkingV1beta1Api* | [**replace_service_cidr_status**](docs/NetworkingV1beta1Api.md#replace_service_cidr_status) | **PUT** /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status | *NodeApi* | [**get_api_group**](docs/NodeApi.md#get_api_group) | **GET** /apis/node.k8s.io/ | *NodeV1Api* | [**create_runtime_class**](docs/NodeV1Api.md#create_runtime_class) | **POST** /apis/node.k8s.io/v1/runtimeclasses | *NodeV1Api* | [**delete_collection_runtime_class**](docs/NodeV1Api.md#delete_collection_runtime_class) | **DELETE** /apis/node.k8s.io/v1/runtimeclasses | @@ -822,35 +838,45 @@ Class | Method | HTTP request | Description *RbacAuthorizationV1Api* | [**replace_namespaced_role_binding**](docs/RbacAuthorizationV1Api.md#replace_namespaced_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name} | *ResourceApi* | [**get_api_group**](docs/ResourceApi.md#get_api_group) | **GET** /apis/resource.k8s.io/ | *ResourceV1Api* | [**create_device_class**](docs/ResourceV1Api.md#create_device_class) | **POST** /apis/resource.k8s.io/v1/deviceclasses | +*ResourceV1Api* | [**create_device_taint_rule**](docs/ResourceV1Api.md#create_device_taint_rule) | **POST** /apis/resource.k8s.io/v1/devicetaintrules | *ResourceV1Api* | [**create_namespaced_resource_claim**](docs/ResourceV1Api.md#create_namespaced_resource_claim) | **POST** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | *ResourceV1Api* | [**create_namespaced_resource_claim_template**](docs/ResourceV1Api.md#create_namespaced_resource_claim_template) | **POST** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | *ResourceV1Api* | [**create_resource_slice**](docs/ResourceV1Api.md#create_resource_slice) | **POST** /apis/resource.k8s.io/v1/resourceslices | *ResourceV1Api* | [**delete_collection_device_class**](docs/ResourceV1Api.md#delete_collection_device_class) | **DELETE** /apis/resource.k8s.io/v1/deviceclasses | +*ResourceV1Api* | [**delete_collection_device_taint_rule**](docs/ResourceV1Api.md#delete_collection_device_taint_rule) | **DELETE** /apis/resource.k8s.io/v1/devicetaintrules | *ResourceV1Api* | [**delete_collection_namespaced_resource_claim**](docs/ResourceV1Api.md#delete_collection_namespaced_resource_claim) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | *ResourceV1Api* | [**delete_collection_namespaced_resource_claim_template**](docs/ResourceV1Api.md#delete_collection_namespaced_resource_claim_template) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | *ResourceV1Api* | [**delete_collection_resource_slice**](docs/ResourceV1Api.md#delete_collection_resource_slice) | **DELETE** /apis/resource.k8s.io/v1/resourceslices | *ResourceV1Api* | [**delete_device_class**](docs/ResourceV1Api.md#delete_device_class) | **DELETE** /apis/resource.k8s.io/v1/deviceclasses/{name} | +*ResourceV1Api* | [**delete_device_taint_rule**](docs/ResourceV1Api.md#delete_device_taint_rule) | **DELETE** /apis/resource.k8s.io/v1/devicetaintrules/{name} | *ResourceV1Api* | [**delete_namespaced_resource_claim**](docs/ResourceV1Api.md#delete_namespaced_resource_claim) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | *ResourceV1Api* | [**delete_namespaced_resource_claim_template**](docs/ResourceV1Api.md#delete_namespaced_resource_claim_template) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | *ResourceV1Api* | [**delete_resource_slice**](docs/ResourceV1Api.md#delete_resource_slice) | **DELETE** /apis/resource.k8s.io/v1/resourceslices/{name} | *ResourceV1Api* | [**get_api_resources**](docs/ResourceV1Api.md#get_api_resources) | **GET** /apis/resource.k8s.io/v1/ | *ResourceV1Api* | [**list_device_class**](docs/ResourceV1Api.md#list_device_class) | **GET** /apis/resource.k8s.io/v1/deviceclasses | +*ResourceV1Api* | [**list_device_taint_rule**](docs/ResourceV1Api.md#list_device_taint_rule) | **GET** /apis/resource.k8s.io/v1/devicetaintrules | *ResourceV1Api* | [**list_namespaced_resource_claim**](docs/ResourceV1Api.md#list_namespaced_resource_claim) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | *ResourceV1Api* | [**list_namespaced_resource_claim_template**](docs/ResourceV1Api.md#list_namespaced_resource_claim_template) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | *ResourceV1Api* | [**list_resource_claim_for_all_namespaces**](docs/ResourceV1Api.md#list_resource_claim_for_all_namespaces) | **GET** /apis/resource.k8s.io/v1/resourceclaims | *ResourceV1Api* | [**list_resource_claim_template_for_all_namespaces**](docs/ResourceV1Api.md#list_resource_claim_template_for_all_namespaces) | **GET** /apis/resource.k8s.io/v1/resourceclaimtemplates | *ResourceV1Api* | [**list_resource_slice**](docs/ResourceV1Api.md#list_resource_slice) | **GET** /apis/resource.k8s.io/v1/resourceslices | *ResourceV1Api* | [**patch_device_class**](docs/ResourceV1Api.md#patch_device_class) | **PATCH** /apis/resource.k8s.io/v1/deviceclasses/{name} | +*ResourceV1Api* | [**patch_device_taint_rule**](docs/ResourceV1Api.md#patch_device_taint_rule) | **PATCH** /apis/resource.k8s.io/v1/devicetaintrules/{name} | +*ResourceV1Api* | [**patch_device_taint_rule_status**](docs/ResourceV1Api.md#patch_device_taint_rule_status) | **PATCH** /apis/resource.k8s.io/v1/devicetaintrules/{name}/status | *ResourceV1Api* | [**patch_namespaced_resource_claim**](docs/ResourceV1Api.md#patch_namespaced_resource_claim) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | *ResourceV1Api* | [**patch_namespaced_resource_claim_status**](docs/ResourceV1Api.md#patch_namespaced_resource_claim_status) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | *ResourceV1Api* | [**patch_namespaced_resource_claim_template**](docs/ResourceV1Api.md#patch_namespaced_resource_claim_template) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | *ResourceV1Api* | [**patch_resource_slice**](docs/ResourceV1Api.md#patch_resource_slice) | **PATCH** /apis/resource.k8s.io/v1/resourceslices/{name} | *ResourceV1Api* | [**read_device_class**](docs/ResourceV1Api.md#read_device_class) | **GET** /apis/resource.k8s.io/v1/deviceclasses/{name} | +*ResourceV1Api* | [**read_device_taint_rule**](docs/ResourceV1Api.md#read_device_taint_rule) | **GET** /apis/resource.k8s.io/v1/devicetaintrules/{name} | +*ResourceV1Api* | [**read_device_taint_rule_status**](docs/ResourceV1Api.md#read_device_taint_rule_status) | **GET** /apis/resource.k8s.io/v1/devicetaintrules/{name}/status | *ResourceV1Api* | [**read_namespaced_resource_claim**](docs/ResourceV1Api.md#read_namespaced_resource_claim) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | *ResourceV1Api* | [**read_namespaced_resource_claim_status**](docs/ResourceV1Api.md#read_namespaced_resource_claim_status) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | *ResourceV1Api* | [**read_namespaced_resource_claim_template**](docs/ResourceV1Api.md#read_namespaced_resource_claim_template) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | *ResourceV1Api* | [**read_resource_slice**](docs/ResourceV1Api.md#read_resource_slice) | **GET** /apis/resource.k8s.io/v1/resourceslices/{name} | *ResourceV1Api* | [**replace_device_class**](docs/ResourceV1Api.md#replace_device_class) | **PUT** /apis/resource.k8s.io/v1/deviceclasses/{name} | +*ResourceV1Api* | [**replace_device_taint_rule**](docs/ResourceV1Api.md#replace_device_taint_rule) | **PUT** /apis/resource.k8s.io/v1/devicetaintrules/{name} | +*ResourceV1Api* | [**replace_device_taint_rule_status**](docs/ResourceV1Api.md#replace_device_taint_rule_status) | **PUT** /apis/resource.k8s.io/v1/devicetaintrules/{name}/status | *ResourceV1Api* | [**replace_namespaced_resource_claim**](docs/ResourceV1Api.md#replace_namespaced_resource_claim) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | *ResourceV1Api* | [**replace_namespaced_resource_claim_status**](docs/ResourceV1Api.md#replace_namespaced_resource_claim_status) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | *ResourceV1Api* | [**replace_namespaced_resource_claim_template**](docs/ResourceV1Api.md#replace_namespaced_resource_claim_template) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | @@ -963,26 +989,57 @@ Class | Method | HTTP request | Description *SchedulingV1Api* | [**patch_priority_class**](docs/SchedulingV1Api.md#patch_priority_class) | **PATCH** /apis/scheduling.k8s.io/v1/priorityclasses/{name} | *SchedulingV1Api* | [**read_priority_class**](docs/SchedulingV1Api.md#read_priority_class) | **GET** /apis/scheduling.k8s.io/v1/priorityclasses/{name} | *SchedulingV1Api* | [**replace_priority_class**](docs/SchedulingV1Api.md#replace_priority_class) | **PUT** /apis/scheduling.k8s.io/v1/priorityclasses/{name} | -*SchedulingV1alpha2Api* | [**create_namespaced_pod_group**](docs/SchedulingV1alpha2Api.md#create_namespaced_pod_group) | **POST** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups | -*SchedulingV1alpha2Api* | [**create_namespaced_workload**](docs/SchedulingV1alpha2Api.md#create_namespaced_workload) | **POST** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads | -*SchedulingV1alpha2Api* | [**delete_collection_namespaced_pod_group**](docs/SchedulingV1alpha2Api.md#delete_collection_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups | -*SchedulingV1alpha2Api* | [**delete_collection_namespaced_workload**](docs/SchedulingV1alpha2Api.md#delete_collection_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads | -*SchedulingV1alpha2Api* | [**delete_namespaced_pod_group**](docs/SchedulingV1alpha2Api.md#delete_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | -*SchedulingV1alpha2Api* | [**delete_namespaced_workload**](docs/SchedulingV1alpha2Api.md#delete_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | -*SchedulingV1alpha2Api* | [**get_api_resources**](docs/SchedulingV1alpha2Api.md#get_api_resources) | **GET** /apis/scheduling.k8s.io/v1alpha2/ | -*SchedulingV1alpha2Api* | [**list_namespaced_pod_group**](docs/SchedulingV1alpha2Api.md#list_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups | -*SchedulingV1alpha2Api* | [**list_namespaced_workload**](docs/SchedulingV1alpha2Api.md#list_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads | -*SchedulingV1alpha2Api* | [**list_pod_group_for_all_namespaces**](docs/SchedulingV1alpha2Api.md#list_pod_group_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha2/podgroups | -*SchedulingV1alpha2Api* | [**list_workload_for_all_namespaces**](docs/SchedulingV1alpha2Api.md#list_workload_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha2/workloads | -*SchedulingV1alpha2Api* | [**patch_namespaced_pod_group**](docs/SchedulingV1alpha2Api.md#patch_namespaced_pod_group) | **PATCH** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | -*SchedulingV1alpha2Api* | [**patch_namespaced_pod_group_status**](docs/SchedulingV1alpha2Api.md#patch_namespaced_pod_group_status) | **PATCH** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status | -*SchedulingV1alpha2Api* | [**patch_namespaced_workload**](docs/SchedulingV1alpha2Api.md#patch_namespaced_workload) | **PATCH** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | -*SchedulingV1alpha2Api* | [**read_namespaced_pod_group**](docs/SchedulingV1alpha2Api.md#read_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | -*SchedulingV1alpha2Api* | [**read_namespaced_pod_group_status**](docs/SchedulingV1alpha2Api.md#read_namespaced_pod_group_status) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status | -*SchedulingV1alpha2Api* | [**read_namespaced_workload**](docs/SchedulingV1alpha2Api.md#read_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | -*SchedulingV1alpha2Api* | [**replace_namespaced_pod_group**](docs/SchedulingV1alpha2Api.md#replace_namespaced_pod_group) | **PUT** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | -*SchedulingV1alpha2Api* | [**replace_namespaced_pod_group_status**](docs/SchedulingV1alpha2Api.md#replace_namespaced_pod_group_status) | **PUT** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status | -*SchedulingV1alpha2Api* | [**replace_namespaced_workload**](docs/SchedulingV1alpha2Api.md#replace_namespaced_workload) | **PUT** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | +*SchedulingV1alpha3Api* | [**create_namespaced_composite_pod_group**](docs/SchedulingV1alpha3Api.md#create_namespaced_composite_pod_group) | **POST** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups | +*SchedulingV1alpha3Api* | [**create_namespaced_pod_group**](docs/SchedulingV1alpha3Api.md#create_namespaced_pod_group) | **POST** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups | +*SchedulingV1alpha3Api* | [**create_namespaced_workload**](docs/SchedulingV1alpha3Api.md#create_namespaced_workload) | **POST** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads | +*SchedulingV1alpha3Api* | [**delete_collection_namespaced_composite_pod_group**](docs/SchedulingV1alpha3Api.md#delete_collection_namespaced_composite_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups | +*SchedulingV1alpha3Api* | [**delete_collection_namespaced_pod_group**](docs/SchedulingV1alpha3Api.md#delete_collection_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups | +*SchedulingV1alpha3Api* | [**delete_collection_namespaced_workload**](docs/SchedulingV1alpha3Api.md#delete_collection_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads | +*SchedulingV1alpha3Api* | [**delete_namespaced_composite_pod_group**](docs/SchedulingV1alpha3Api.md#delete_namespaced_composite_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | +*SchedulingV1alpha3Api* | [**delete_namespaced_pod_group**](docs/SchedulingV1alpha3Api.md#delete_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | +*SchedulingV1alpha3Api* | [**delete_namespaced_workload**](docs/SchedulingV1alpha3Api.md#delete_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | +*SchedulingV1alpha3Api* | [**get_api_resources**](docs/SchedulingV1alpha3Api.md#get_api_resources) | **GET** /apis/scheduling.k8s.io/v1alpha3/ | +*SchedulingV1alpha3Api* | [**list_composite_pod_group_for_all_namespaces**](docs/SchedulingV1alpha3Api.md#list_composite_pod_group_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha3/compositepodgroups | +*SchedulingV1alpha3Api* | [**list_namespaced_composite_pod_group**](docs/SchedulingV1alpha3Api.md#list_namespaced_composite_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups | +*SchedulingV1alpha3Api* | [**list_namespaced_pod_group**](docs/SchedulingV1alpha3Api.md#list_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups | +*SchedulingV1alpha3Api* | [**list_namespaced_workload**](docs/SchedulingV1alpha3Api.md#list_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads | +*SchedulingV1alpha3Api* | [**list_pod_group_for_all_namespaces**](docs/SchedulingV1alpha3Api.md#list_pod_group_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha3/podgroups | +*SchedulingV1alpha3Api* | [**list_workload_for_all_namespaces**](docs/SchedulingV1alpha3Api.md#list_workload_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1alpha3/workloads | +*SchedulingV1alpha3Api* | [**patch_namespaced_composite_pod_group**](docs/SchedulingV1alpha3Api.md#patch_namespaced_composite_pod_group) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | +*SchedulingV1alpha3Api* | [**patch_namespaced_composite_pod_group_status**](docs/SchedulingV1alpha3Api.md#patch_namespaced_composite_pod_group_status) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status | +*SchedulingV1alpha3Api* | [**patch_namespaced_pod_group**](docs/SchedulingV1alpha3Api.md#patch_namespaced_pod_group) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | +*SchedulingV1alpha3Api* | [**patch_namespaced_pod_group_status**](docs/SchedulingV1alpha3Api.md#patch_namespaced_pod_group_status) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status | +*SchedulingV1alpha3Api* | [**patch_namespaced_workload**](docs/SchedulingV1alpha3Api.md#patch_namespaced_workload) | **PATCH** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | +*SchedulingV1alpha3Api* | [**read_namespaced_composite_pod_group**](docs/SchedulingV1alpha3Api.md#read_namespaced_composite_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | +*SchedulingV1alpha3Api* | [**read_namespaced_composite_pod_group_status**](docs/SchedulingV1alpha3Api.md#read_namespaced_composite_pod_group_status) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status | +*SchedulingV1alpha3Api* | [**read_namespaced_pod_group**](docs/SchedulingV1alpha3Api.md#read_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | +*SchedulingV1alpha3Api* | [**read_namespaced_pod_group_status**](docs/SchedulingV1alpha3Api.md#read_namespaced_pod_group_status) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status | +*SchedulingV1alpha3Api* | [**read_namespaced_workload**](docs/SchedulingV1alpha3Api.md#read_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | +*SchedulingV1alpha3Api* | [**replace_namespaced_composite_pod_group**](docs/SchedulingV1alpha3Api.md#replace_namespaced_composite_pod_group) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} | +*SchedulingV1alpha3Api* | [**replace_namespaced_composite_pod_group_status**](docs/SchedulingV1alpha3Api.md#replace_namespaced_composite_pod_group_status) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status | +*SchedulingV1alpha3Api* | [**replace_namespaced_pod_group**](docs/SchedulingV1alpha3Api.md#replace_namespaced_pod_group) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} | +*SchedulingV1alpha3Api* | [**replace_namespaced_pod_group_status**](docs/SchedulingV1alpha3Api.md#replace_namespaced_pod_group_status) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}/status | +*SchedulingV1alpha3Api* | [**replace_namespaced_workload**](docs/SchedulingV1alpha3Api.md#replace_namespaced_workload) | **PUT** /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/workloads/{name} | +*SchedulingV1beta1Api* | [**create_namespaced_pod_group**](docs/SchedulingV1beta1Api.md#create_namespaced_pod_group) | **POST** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups | +*SchedulingV1beta1Api* | [**create_namespaced_workload**](docs/SchedulingV1beta1Api.md#create_namespaced_workload) | **POST** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads | +*SchedulingV1beta1Api* | [**delete_collection_namespaced_pod_group**](docs/SchedulingV1beta1Api.md#delete_collection_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups | +*SchedulingV1beta1Api* | [**delete_collection_namespaced_workload**](docs/SchedulingV1beta1Api.md#delete_collection_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads | +*SchedulingV1beta1Api* | [**delete_namespaced_pod_group**](docs/SchedulingV1beta1Api.md#delete_namespaced_pod_group) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | +*SchedulingV1beta1Api* | [**delete_namespaced_workload**](docs/SchedulingV1beta1Api.md#delete_namespaced_workload) | **DELETE** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | +*SchedulingV1beta1Api* | [**get_api_resources**](docs/SchedulingV1beta1Api.md#get_api_resources) | **GET** /apis/scheduling.k8s.io/v1beta1/ | +*SchedulingV1beta1Api* | [**list_namespaced_pod_group**](docs/SchedulingV1beta1Api.md#list_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups | +*SchedulingV1beta1Api* | [**list_namespaced_workload**](docs/SchedulingV1beta1Api.md#list_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads | +*SchedulingV1beta1Api* | [**list_pod_group_for_all_namespaces**](docs/SchedulingV1beta1Api.md#list_pod_group_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1beta1/podgroups | +*SchedulingV1beta1Api* | [**list_workload_for_all_namespaces**](docs/SchedulingV1beta1Api.md#list_workload_for_all_namespaces) | **GET** /apis/scheduling.k8s.io/v1beta1/workloads | +*SchedulingV1beta1Api* | [**patch_namespaced_pod_group**](docs/SchedulingV1beta1Api.md#patch_namespaced_pod_group) | **PATCH** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | +*SchedulingV1beta1Api* | [**patch_namespaced_pod_group_status**](docs/SchedulingV1beta1Api.md#patch_namespaced_pod_group_status) | **PATCH** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status | +*SchedulingV1beta1Api* | [**patch_namespaced_workload**](docs/SchedulingV1beta1Api.md#patch_namespaced_workload) | **PATCH** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | +*SchedulingV1beta1Api* | [**read_namespaced_pod_group**](docs/SchedulingV1beta1Api.md#read_namespaced_pod_group) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | +*SchedulingV1beta1Api* | [**read_namespaced_pod_group_status**](docs/SchedulingV1beta1Api.md#read_namespaced_pod_group_status) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status | +*SchedulingV1beta1Api* | [**read_namespaced_workload**](docs/SchedulingV1beta1Api.md#read_namespaced_workload) | **GET** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | +*SchedulingV1beta1Api* | [**replace_namespaced_pod_group**](docs/SchedulingV1beta1Api.md#replace_namespaced_pod_group) | **PUT** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} | +*SchedulingV1beta1Api* | [**replace_namespaced_pod_group_status**](docs/SchedulingV1beta1Api.md#replace_namespaced_pod_group_status) | **PUT** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status | +*SchedulingV1beta1Api* | [**replace_namespaced_workload**](docs/SchedulingV1beta1Api.md#replace_namespaced_workload) | **PUT** /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} | *StorageApi* | [**get_api_group**](docs/StorageApi.md#get_api_group) | **GET** /apis/storage.k8s.io/ | *StorageV1Api* | [**create_csi_driver**](docs/StorageV1Api.md#create_csi_driver) | **POST** /apis/storage.k8s.io/v1/csidrivers | *StorageV1Api* | [**create_csi_node**](docs/StorageV1Api.md#create_csi_node) | **POST** /apis/storage.k8s.io/v1/csinodes | @@ -1012,6 +1069,7 @@ Class | Method | HTTP request | Description *StorageV1Api* | [**list_volume_attributes_class**](docs/StorageV1Api.md#list_volume_attributes_class) | **GET** /apis/storage.k8s.io/v1/volumeattributesclasses | *StorageV1Api* | [**patch_csi_driver**](docs/StorageV1Api.md#patch_csi_driver) | **PATCH** /apis/storage.k8s.io/v1/csidrivers/{name} | *StorageV1Api* | [**patch_csi_node**](docs/StorageV1Api.md#patch_csi_node) | **PATCH** /apis/storage.k8s.io/v1/csinodes/{name} | +*StorageV1Api* | [**patch_csi_node_status**](docs/StorageV1Api.md#patch_csi_node_status) | **PATCH** /apis/storage.k8s.io/v1/csinodes/{name}/status | *StorageV1Api* | [**patch_namespaced_csi_storage_capacity**](docs/StorageV1Api.md#patch_namespaced_csi_storage_capacity) | **PATCH** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | *StorageV1Api* | [**patch_storage_class**](docs/StorageV1Api.md#patch_storage_class) | **PATCH** /apis/storage.k8s.io/v1/storageclasses/{name} | *StorageV1Api* | [**patch_volume_attachment**](docs/StorageV1Api.md#patch_volume_attachment) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name} | @@ -1019,6 +1077,7 @@ Class | Method | HTTP request | Description *StorageV1Api* | [**patch_volume_attributes_class**](docs/StorageV1Api.md#patch_volume_attributes_class) | **PATCH** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | *StorageV1Api* | [**read_csi_driver**](docs/StorageV1Api.md#read_csi_driver) | **GET** /apis/storage.k8s.io/v1/csidrivers/{name} | *StorageV1Api* | [**read_csi_node**](docs/StorageV1Api.md#read_csi_node) | **GET** /apis/storage.k8s.io/v1/csinodes/{name} | +*StorageV1Api* | [**read_csi_node_status**](docs/StorageV1Api.md#read_csi_node_status) | **GET** /apis/storage.k8s.io/v1/csinodes/{name}/status | *StorageV1Api* | [**read_namespaced_csi_storage_capacity**](docs/StorageV1Api.md#read_namespaced_csi_storage_capacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | *StorageV1Api* | [**read_storage_class**](docs/StorageV1Api.md#read_storage_class) | **GET** /apis/storage.k8s.io/v1/storageclasses/{name} | *StorageV1Api* | [**read_volume_attachment**](docs/StorageV1Api.md#read_volume_attachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name} | @@ -1026,20 +1085,24 @@ Class | Method | HTTP request | Description *StorageV1Api* | [**read_volume_attributes_class**](docs/StorageV1Api.md#read_volume_attributes_class) | **GET** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | *StorageV1Api* | [**replace_csi_driver**](docs/StorageV1Api.md#replace_csi_driver) | **PUT** /apis/storage.k8s.io/v1/csidrivers/{name} | *StorageV1Api* | [**replace_csi_node**](docs/StorageV1Api.md#replace_csi_node) | **PUT** /apis/storage.k8s.io/v1/csinodes/{name} | +*StorageV1Api* | [**replace_csi_node_status**](docs/StorageV1Api.md#replace_csi_node_status) | **PUT** /apis/storage.k8s.io/v1/csinodes/{name}/status | *StorageV1Api* | [**replace_namespaced_csi_storage_capacity**](docs/StorageV1Api.md#replace_namespaced_csi_storage_capacity) | **PUT** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | *StorageV1Api* | [**replace_storage_class**](docs/StorageV1Api.md#replace_storage_class) | **PUT** /apis/storage.k8s.io/v1/storageclasses/{name} | *StorageV1Api* | [**replace_volume_attachment**](docs/StorageV1Api.md#replace_volume_attachment) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name} | *StorageV1Api* | [**replace_volume_attachment_status**](docs/StorageV1Api.md#replace_volume_attachment_status) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | *StorageV1Api* | [**replace_volume_attributes_class**](docs/StorageV1Api.md#replace_volume_attributes_class) | **PUT** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | -*StorageV1beta1Api* | [**create_volume_attributes_class**](docs/StorageV1beta1Api.md#create_volume_attributes_class) | **POST** /apis/storage.k8s.io/v1beta1/volumeattributesclasses | -*StorageV1beta1Api* | [**delete_collection_volume_attributes_class**](docs/StorageV1beta1Api.md#delete_collection_volume_attributes_class) | **DELETE** /apis/storage.k8s.io/v1beta1/volumeattributesclasses | -*StorageV1beta1Api* | [**delete_volume_attributes_class**](docs/StorageV1beta1Api.md#delete_volume_attributes_class) | **DELETE** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | -*StorageV1beta1Api* | [**get_api_resources**](docs/StorageV1beta1Api.md#get_api_resources) | **GET** /apis/storage.k8s.io/v1beta1/ | -*StorageV1beta1Api* | [**list_volume_attributes_class**](docs/StorageV1beta1Api.md#list_volume_attributes_class) | **GET** /apis/storage.k8s.io/v1beta1/volumeattributesclasses | -*StorageV1beta1Api* | [**patch_volume_attributes_class**](docs/StorageV1beta1Api.md#patch_volume_attributes_class) | **PATCH** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | -*StorageV1beta1Api* | [**read_volume_attributes_class**](docs/StorageV1beta1Api.md#read_volume_attributes_class) | **GET** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | -*StorageV1beta1Api* | [**replace_volume_attributes_class**](docs/StorageV1beta1Api.md#replace_volume_attributes_class) | **PUT** /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name} | *StoragemigrationApi* | [**get_api_group**](docs/StoragemigrationApi.md#get_api_group) | **GET** /apis/storagemigration.k8s.io/ | +*StoragemigrationV1Api* | [**create_storage_version_migration**](docs/StoragemigrationV1Api.md#create_storage_version_migration) | **POST** /apis/storagemigration.k8s.io/v1/storageversionmigrations | +*StoragemigrationV1Api* | [**delete_collection_storage_version_migration**](docs/StoragemigrationV1Api.md#delete_collection_storage_version_migration) | **DELETE** /apis/storagemigration.k8s.io/v1/storageversionmigrations | +*StoragemigrationV1Api* | [**delete_storage_version_migration**](docs/StoragemigrationV1Api.md#delete_storage_version_migration) | **DELETE** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | +*StoragemigrationV1Api* | [**get_api_resources**](docs/StoragemigrationV1Api.md#get_api_resources) | **GET** /apis/storagemigration.k8s.io/v1/ | +*StoragemigrationV1Api* | [**list_storage_version_migration**](docs/StoragemigrationV1Api.md#list_storage_version_migration) | **GET** /apis/storagemigration.k8s.io/v1/storageversionmigrations | +*StoragemigrationV1Api* | [**patch_storage_version_migration**](docs/StoragemigrationV1Api.md#patch_storage_version_migration) | **PATCH** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | +*StoragemigrationV1Api* | [**patch_storage_version_migration_status**](docs/StoragemigrationV1Api.md#patch_storage_version_migration_status) | **PATCH** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status | +*StoragemigrationV1Api* | [**read_storage_version_migration**](docs/StoragemigrationV1Api.md#read_storage_version_migration) | **GET** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | +*StoragemigrationV1Api* | [**read_storage_version_migration_status**](docs/StoragemigrationV1Api.md#read_storage_version_migration_status) | **GET** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status | +*StoragemigrationV1Api* | [**replace_storage_version_migration**](docs/StoragemigrationV1Api.md#replace_storage_version_migration) | **PUT** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name} | +*StoragemigrationV1Api* | [**replace_storage_version_migration_status**](docs/StoragemigrationV1Api.md#replace_storage_version_migration_status) | **PUT** /apis/storagemigration.k8s.io/v1/storageversionmigrations/{name}/status | *StoragemigrationV1beta1Api* | [**create_storage_version_migration**](docs/StoragemigrationV1beta1Api.md#create_storage_version_migration) | **POST** /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations | *StoragemigrationV1beta1Api* | [**delete_collection_storage_version_migration**](docs/StoragemigrationV1beta1Api.md#delete_collection_storage_version_migration) | **DELETE** /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations | *StoragemigrationV1beta1Api* | [**delete_storage_version_migration**](docs/StoragemigrationV1beta1Api.md#delete_storage_version_migration) | **DELETE** /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations/{name} | @@ -1107,6 +1170,7 @@ Class | Method | HTTP request | Description - [V1CSINodeDriver](docs/V1CSINodeDriver.md) - [V1CSINodeList](docs/V1CSINodeList.md) - [V1CSINodeSpec](docs/V1CSINodeSpec.md) + - [V1CSINodeStatus](docs/V1CSINodeStatus.md) - [V1CSIPersistentVolumeSource](docs/V1CSIPersistentVolumeSource.md) - [V1CSIStorageCapacity](docs/V1CSIStorageCapacity.md) - [V1CSIStorageCapacityList](docs/V1CSIStorageCapacityList.md) @@ -1129,7 +1193,10 @@ Class | Method | HTTP request | Description - [V1ClusterRoleBinding](docs/V1ClusterRoleBinding.md) - [V1ClusterRoleBindingList](docs/V1ClusterRoleBindingList.md) - [V1ClusterRoleList](docs/V1ClusterRoleList.md) + - [V1ClusterTrustBundle](docs/V1ClusterTrustBundle.md) + - [V1ClusterTrustBundleList](docs/V1ClusterTrustBundleList.md) - [V1ClusterTrustBundleProjection](docs/V1ClusterTrustBundleProjection.md) + - [V1ClusterTrustBundleSpec](docs/V1ClusterTrustBundleSpec.md) - [V1ComponentCondition](docs/V1ComponentCondition.md) - [V1ComponentStatus](docs/V1ComponentStatus.md) - [V1ComponentStatusList](docs/V1ComponentStatusList.md) @@ -1202,11 +1269,17 @@ Class | Method | HTTP request | Description - [V1DeviceClassSpec](docs/V1DeviceClassSpec.md) - [V1DeviceConstraint](docs/V1DeviceConstraint.md) - [V1DeviceCounterConsumption](docs/V1DeviceCounterConsumption.md) + - [V1DeviceDerivedAttribute](docs/V1DeviceDerivedAttribute.md) - [V1DeviceRequest](docs/V1DeviceRequest.md) - [V1DeviceRequestAllocationResult](docs/V1DeviceRequestAllocationResult.md) - [V1DeviceSelector](docs/V1DeviceSelector.md) - [V1DeviceSubRequest](docs/V1DeviceSubRequest.md) - [V1DeviceTaint](docs/V1DeviceTaint.md) + - [V1DeviceTaintRule](docs/V1DeviceTaintRule.md) + - [V1DeviceTaintRuleList](docs/V1DeviceTaintRuleList.md) + - [V1DeviceTaintRuleSpec](docs/V1DeviceTaintRuleSpec.md) + - [V1DeviceTaintRuleStatus](docs/V1DeviceTaintRuleStatus.md) + - [V1DeviceTaintSelector](docs/V1DeviceTaintSelector.md) - [V1DeviceToleration](docs/V1DeviceToleration.md) - [V1DownwardAPIProjection](docs/V1DownwardAPIProjection.md) - [V1DownwardAPIVolumeFile](docs/V1DownwardAPIVolumeFile.md) @@ -1228,6 +1301,7 @@ Class | Method | HTTP request | Description - [V1EphemeralVolumeSource](docs/V1EphemeralVolumeSource.md) - [V1EventSource](docs/V1EventSource.md) - [V1Eviction](docs/V1Eviction.md) + - [V1EvictionResponder](docs/V1EvictionResponder.md) - [V1ExactDeviceRequest](docs/V1ExactDeviceRequest.md) - [V1ExecAction](docs/V1ExecAction.md) - [V1ExemptPriorityLevelConfiguration](docs/V1ExemptPriorityLevelConfiguration.md) @@ -1296,6 +1370,7 @@ Class | Method | HTTP request | Description - [V1Job](docs/V1Job.md) - [V1JobCondition](docs/V1JobCondition.md) - [V1JobList](docs/V1JobList.md) + - [V1JobSchedulingConfiguration](docs/V1JobSchedulingConfiguration.md) - [V1JobSpec](docs/V1JobSpec.md) - [V1JobStatus](docs/V1JobStatus.md) - [V1JobTemplateSpec](docs/V1JobTemplateSpec.md) @@ -1353,14 +1428,19 @@ Class | Method | HTTP request | Description - [V1Node](docs/V1Node.md) - [V1NodeAddress](docs/V1NodeAddress.md) - [V1NodeAffinity](docs/V1NodeAffinity.md) + - [V1NodeAllocatableMappedResources](docs/V1NodeAllocatableMappedResources.md) + - [V1NodeAllocatableMapping](docs/V1NodeAllocatableMapping.md) + - [V1NodeAllocatableOverhead](docs/V1NodeAllocatableOverhead.md) + - [V1NodeAllocatableOverheadResources](docs/V1NodeAllocatableOverheadResources.md) + - [V1NodeAllocatableResource](docs/V1NodeAllocatableResource.md) - [V1NodeAllocatableResourceClaimStatus](docs/V1NodeAllocatableResourceClaimStatus.md) - - [V1NodeAllocatableResourceMapping](docs/V1NodeAllocatableResourceMapping.md) - [V1NodeCondition](docs/V1NodeCondition.md) - [V1NodeConfigSource](docs/V1NodeConfigSource.md) - [V1NodeConfigStatus](docs/V1NodeConfigStatus.md) - [V1NodeDaemonEndpoints](docs/V1NodeDaemonEndpoints.md) - [V1NodeFeatures](docs/V1NodeFeatures.md) - [V1NodeList](docs/V1NodeList.md) + - [V1NodePodPreemptionPolicy](docs/V1NodePodPreemptionPolicy.md) - [V1NodeRuntimeHandler](docs/V1NodeRuntimeHandler.md) - [V1NodeRuntimeHandlerFeatures](docs/V1NodeRuntimeHandlerFeatures.md) - [V1NodeSelector](docs/V1NodeSelector.md) @@ -1399,6 +1479,10 @@ Class | Method | HTTP request | Description - [V1PodAffinityTerm](docs/V1PodAffinityTerm.md) - [V1PodAntiAffinity](docs/V1PodAntiAffinity.md) - [V1PodCertificateProjection](docs/V1PodCertificateProjection.md) + - [V1PodCertificateRequest](docs/V1PodCertificateRequest.md) + - [V1PodCertificateRequestList](docs/V1PodCertificateRequestList.md) + - [V1PodCertificateRequestSpec](docs/V1PodCertificateRequestSpec.md) + - [V1PodCertificateRequestStatus](docs/V1PodCertificateRequestStatus.md) - [V1PodCondition](docs/V1PodCondition.md) - [V1PodDNSConfig](docs/V1PodDNSConfig.md) - [V1PodDNSConfigOption](docs/V1PodDNSConfigOption.md) @@ -1425,6 +1509,7 @@ Class | Method | HTTP request | Description - [V1PodTemplate](docs/V1PodTemplate.md) - [V1PodTemplateList](docs/V1PodTemplateList.md) - [V1PodTemplateSpec](docs/V1PodTemplateSpec.md) + - [V1PodVolumeHealth](docs/V1PodVolumeHealth.md) - [V1PolicyRule](docs/V1PolicyRule.md) - [V1PolicyRulesWithSubjects](docs/V1PolicyRulesWithSubjects.md) - [V1PortStatus](docs/V1PortStatus.md) @@ -1544,8 +1629,14 @@ Class | Method | HTTP request | Description - [V1StatusDetails](docs/V1StatusDetails.md) - [V1StorageClass](docs/V1StorageClass.md) - [V1StorageClassList](docs/V1StorageClassList.md) + - [V1StorageHealth](docs/V1StorageHealth.md) + - [V1StorageHealthCondition](docs/V1StorageHealthCondition.md) - [V1StorageOSPersistentVolumeSource](docs/V1StorageOSPersistentVolumeSource.md) - [V1StorageOSVolumeSource](docs/V1StorageOSVolumeSource.md) + - [V1StorageVersionMigration](docs/V1StorageVersionMigration.md) + - [V1StorageVersionMigrationList](docs/V1StorageVersionMigrationList.md) + - [V1StorageVersionMigrationSpec](docs/V1StorageVersionMigrationSpec.md) + - [V1StorageVersionMigrationStatus](docs/V1StorageVersionMigrationStatus.md) - [V1SubjectAccessReview](docs/V1SubjectAccessReview.md) - [V1SubjectAccessReviewSpec](docs/V1SubjectAccessReviewSpec.md) - [V1SubjectAccessReviewStatus](docs/V1SubjectAccessReviewStatus.md) @@ -1593,6 +1684,8 @@ Class | Method | HTTP request | Description - [V1VolumeAttributesClassList](docs/V1VolumeAttributesClassList.md) - [V1VolumeDevice](docs/V1VolumeDevice.md) - [V1VolumeError](docs/V1VolumeError.md) + - [V1VolumeHealthCondition](docs/V1VolumeHealthCondition.md) + - [V1VolumeHealthStatus](docs/V1VolumeHealthStatus.md) - [V1VolumeMount](docs/V1VolumeMount.md) - [V1VolumeMountStatus](docs/V1VolumeMountStatus.md) - [V1VolumeNodeAffinity](docs/V1VolumeNodeAffinity.md) @@ -1606,9 +1699,18 @@ Class | Method | HTTP request | Description - [V1WeightedPodAffinityTerm](docs/V1WeightedPodAffinityTerm.md) - [V1WindowsSecurityContextOptions](docs/V1WindowsSecurityContextOptions.md) - [V1alpha1ApplyConfiguration](docs/V1alpha1ApplyConfiguration.md) - - [V1alpha1ClusterTrustBundle](docs/V1alpha1ClusterTrustBundle.md) - - [V1alpha1ClusterTrustBundleList](docs/V1alpha1ClusterTrustBundleList.md) - - [V1alpha1ClusterTrustBundleSpec](docs/V1alpha1ClusterTrustBundleSpec.md) + - [V1alpha1Eviction](docs/V1alpha1Eviction.md) + - [V1alpha1EvictionList](docs/V1alpha1EvictionList.md) + - [V1alpha1EvictionPodReference](docs/V1alpha1EvictionPodReference.md) + - [V1alpha1EvictionRequest](docs/V1alpha1EvictionRequest.md) + - [V1alpha1EvictionRequestList](docs/V1alpha1EvictionRequestList.md) + - [V1alpha1EvictionRequestPodReference](docs/V1alpha1EvictionRequestPodReference.md) + - [V1alpha1EvictionRequestSpec](docs/V1alpha1EvictionRequestSpec.md) + - [V1alpha1EvictionRequestStatus](docs/V1alpha1EvictionRequestStatus.md) + - [V1alpha1EvictionRequestTarget](docs/V1alpha1EvictionRequestTarget.md) + - [V1alpha1EvictionSpec](docs/V1alpha1EvictionSpec.md) + - [V1alpha1EvictionStatus](docs/V1alpha1EvictionStatus.md) + - [V1alpha1EvictionTarget](docs/V1alpha1EvictionTarget.md) - [V1alpha1JSONPatch](docs/V1alpha1JSONPatch.md) - [V1alpha1MatchCondition](docs/V1alpha1MatchCondition.md) - [V1alpha1MatchResources](docs/V1alpha1MatchResources.md) @@ -1622,43 +1724,63 @@ Class | Method | HTTP request | Description - [V1alpha1NamedRuleWithOperations](docs/V1alpha1NamedRuleWithOperations.md) - [V1alpha1ParamKind](docs/V1alpha1ParamKind.md) - [V1alpha1ParamRef](docs/V1alpha1ParamRef.md) + - [V1alpha1Requester](docs/V1alpha1Requester.md) + - [V1alpha1ResponderStatus](docs/V1alpha1ResponderStatus.md) - [V1alpha1ServerStorageVersion](docs/V1alpha1ServerStorageVersion.md) - [V1alpha1StorageVersion](docs/V1alpha1StorageVersion.md) - [V1alpha1StorageVersionCondition](docs/V1alpha1StorageVersionCondition.md) - [V1alpha1StorageVersionList](docs/V1alpha1StorageVersionList.md) - [V1alpha1StorageVersionStatus](docs/V1alpha1StorageVersionStatus.md) + - [V1alpha1TargetResponder](docs/V1alpha1TargetResponder.md) - [V1alpha1Variable](docs/V1alpha1Variable.md) - - [V1alpha2GangSchedulingPolicy](docs/V1alpha2GangSchedulingPolicy.md) - [V1alpha2LeaseCandidate](docs/V1alpha2LeaseCandidate.md) - [V1alpha2LeaseCandidateList](docs/V1alpha2LeaseCandidateList.md) - [V1alpha2LeaseCandidateSpec](docs/V1alpha2LeaseCandidateSpec.md) - - [V1alpha2PodGroup](docs/V1alpha2PodGroup.md) - - [V1alpha2PodGroupList](docs/V1alpha2PodGroupList.md) - - [V1alpha2PodGroupResourceClaim](docs/V1alpha2PodGroupResourceClaim.md) - - [V1alpha2PodGroupResourceClaimStatus](docs/V1alpha2PodGroupResourceClaimStatus.md) - - [V1alpha2PodGroupSchedulingConstraints](docs/V1alpha2PodGroupSchedulingConstraints.md) - - [V1alpha2PodGroupSchedulingPolicy](docs/V1alpha2PodGroupSchedulingPolicy.md) - - [V1alpha2PodGroupSpec](docs/V1alpha2PodGroupSpec.md) - - [V1alpha2PodGroupStatus](docs/V1alpha2PodGroupStatus.md) - - [V1alpha2PodGroupTemplate](docs/V1alpha2PodGroupTemplate.md) - - [V1alpha2PodGroupTemplateReference](docs/V1alpha2PodGroupTemplateReference.md) - - [V1alpha2TopologyConstraint](docs/V1alpha2TopologyConstraint.md) - - [V1alpha2TypedLocalObjectReference](docs/V1alpha2TypedLocalObjectReference.md) - - [V1alpha2Workload](docs/V1alpha2Workload.md) - - [V1alpha2WorkloadList](docs/V1alpha2WorkloadList.md) - - [V1alpha2WorkloadPodGroupTemplateReference](docs/V1alpha2WorkloadPodGroupTemplateReference.md) - - [V1alpha2WorkloadSpec](docs/V1alpha2WorkloadSpec.md) + - [V1alpha3CompositeDisruptionMode](docs/V1alpha3CompositeDisruptionMode.md) + - [V1alpha3CompositeGangSchedulingPolicy](docs/V1alpha3CompositeGangSchedulingPolicy.md) + - [V1alpha3CompositePodGroup](docs/V1alpha3CompositePodGroup.md) + - [V1alpha3CompositePodGroupList](docs/V1alpha3CompositePodGroupList.md) + - [V1alpha3CompositePodGroupSchedulingConstraints](docs/V1alpha3CompositePodGroupSchedulingConstraints.md) + - [V1alpha3CompositePodGroupSchedulingPolicy](docs/V1alpha3CompositePodGroupSchedulingPolicy.md) + - [V1alpha3CompositePodGroupSpec](docs/V1alpha3CompositePodGroupSpec.md) + - [V1alpha3CompositePodGroupStatus](docs/V1alpha3CompositePodGroupStatus.md) + - [V1alpha3CompositePodGroupTemplate](docs/V1alpha3CompositePodGroupTemplate.md) - [V1alpha3DeviceTaint](docs/V1alpha3DeviceTaint.md) - [V1alpha3DeviceTaintRule](docs/V1alpha3DeviceTaintRule.md) - [V1alpha3DeviceTaintRuleList](docs/V1alpha3DeviceTaintRuleList.md) - [V1alpha3DeviceTaintRuleSpec](docs/V1alpha3DeviceTaintRuleSpec.md) - [V1alpha3DeviceTaintRuleStatus](docs/V1alpha3DeviceTaintRuleStatus.md) - [V1alpha3DeviceTaintSelector](docs/V1alpha3DeviceTaintSelector.md) + - [V1alpha3DisruptionMode](docs/V1alpha3DisruptionMode.md) + - [V1alpha3GangSchedulingPolicy](docs/V1alpha3GangSchedulingPolicy.md) + - [V1alpha3PartitionTypeStatus](docs/V1alpha3PartitionTypeStatus.md) + - [V1alpha3PodGroup](docs/V1alpha3PodGroup.md) + - [V1alpha3PodGroupList](docs/V1alpha3PodGroupList.md) + - [V1alpha3PodGroupResourceClaim](docs/V1alpha3PodGroupResourceClaim.md) + - [V1alpha3PodGroupResourceClaimStatus](docs/V1alpha3PodGroupResourceClaimStatus.md) + - [V1alpha3PodGroupSchedulingConstraints](docs/V1alpha3PodGroupSchedulingConstraints.md) + - [V1alpha3PodGroupSchedulingPolicy](docs/V1alpha3PodGroupSchedulingPolicy.md) + - [V1alpha3PodGroupSpec](docs/V1alpha3PodGroupSpec.md) + - [V1alpha3PodGroupStatus](docs/V1alpha3PodGroupStatus.md) + - [V1alpha3PodGroupTemplate](docs/V1alpha3PodGroupTemplate.md) - [V1alpha3PoolStatus](docs/V1alpha3PoolStatus.md) - [V1alpha3ResourcePoolStatusRequest](docs/V1alpha3ResourcePoolStatusRequest.md) - [V1alpha3ResourcePoolStatusRequestList](docs/V1alpha3ResourcePoolStatusRequestList.md) - [V1alpha3ResourcePoolStatusRequestSpec](docs/V1alpha3ResourcePoolStatusRequestSpec.md) - [V1alpha3ResourcePoolStatusRequestStatus](docs/V1alpha3ResourcePoolStatusRequestStatus.md) + - [V1alpha3ShareableCapacityStatus](docs/V1alpha3ShareableCapacityStatus.md) + - [V1alpha3ShareableSummaryStatus](docs/V1alpha3ShareableSummaryStatus.md) + - [V1alpha3TopologyConstraint](docs/V1alpha3TopologyConstraint.md) + - [V1alpha3TypedLocalObjectReference](docs/V1alpha3TypedLocalObjectReference.md) + - [V1alpha3Workload](docs/V1alpha3Workload.md) + - [V1alpha3WorkloadList](docs/V1alpha3WorkloadList.md) + - [V1alpha3WorkloadPodGroupDisruptionMode](docs/V1alpha3WorkloadPodGroupDisruptionMode.md) + - [V1alpha3WorkloadPodGroupGangSchedulingPolicy](docs/V1alpha3WorkloadPodGroupGangSchedulingPolicy.md) + - [V1alpha3WorkloadPodGroupResourceClaim](docs/V1alpha3WorkloadPodGroupResourceClaim.md) + - [V1alpha3WorkloadPodGroupSchedulingConstraints](docs/V1alpha3WorkloadPodGroupSchedulingConstraints.md) + - [V1alpha3WorkloadPodGroupSchedulingPolicy](docs/V1alpha3WorkloadPodGroupSchedulingPolicy.md) + - [V1alpha3WorkloadReference](docs/V1alpha3WorkloadReference.md) + - [V1alpha3WorkloadSpec](docs/V1alpha3WorkloadSpec.md) - [V1beta1AllocatedDeviceStatus](docs/V1beta1AllocatedDeviceStatus.md) - [V1beta1AllocationResult](docs/V1beta1AllocationResult.md) - [V1beta1ApplyConfiguration](docs/V1beta1ApplyConfiguration.md) @@ -1670,6 +1792,11 @@ Class | Method | HTTP request | Description - [V1beta1ClusterTrustBundle](docs/V1beta1ClusterTrustBundle.md) - [V1beta1ClusterTrustBundleList](docs/V1beta1ClusterTrustBundleList.md) - [V1beta1ClusterTrustBundleSpec](docs/V1beta1ClusterTrustBundleSpec.md) + - [V1beta1CompositeDisruptionMode](docs/V1beta1CompositeDisruptionMode.md) + - [V1beta1CompositeGangSchedulingPolicy](docs/V1beta1CompositeGangSchedulingPolicy.md) + - [V1beta1CompositePodGroupSchedulingConstraints](docs/V1beta1CompositePodGroupSchedulingConstraints.md) + - [V1beta1CompositePodGroupSchedulingPolicy](docs/V1beta1CompositePodGroupSchedulingPolicy.md) + - [V1beta1CompositePodGroupTemplate](docs/V1beta1CompositePodGroupTemplate.md) - [V1beta1Counter](docs/V1beta1Counter.md) - [V1beta1CounterSet](docs/V1beta1CounterSet.md) - [V1beta1Device](docs/V1beta1Device.md) @@ -1685,15 +1812,15 @@ Class | Method | HTTP request | Description - [V1beta1DeviceClassSpec](docs/V1beta1DeviceClassSpec.md) - [V1beta1DeviceConstraint](docs/V1beta1DeviceConstraint.md) - [V1beta1DeviceCounterConsumption](docs/V1beta1DeviceCounterConsumption.md) + - [V1beta1DeviceDerivedAttribute](docs/V1beta1DeviceDerivedAttribute.md) - [V1beta1DeviceRequest](docs/V1beta1DeviceRequest.md) - [V1beta1DeviceRequestAllocationResult](docs/V1beta1DeviceRequestAllocationResult.md) - [V1beta1DeviceSelector](docs/V1beta1DeviceSelector.md) - [V1beta1DeviceSubRequest](docs/V1beta1DeviceSubRequest.md) - [V1beta1DeviceTaint](docs/V1beta1DeviceTaint.md) - [V1beta1DeviceToleration](docs/V1beta1DeviceToleration.md) - - [V1beta1IPAddress](docs/V1beta1IPAddress.md) - - [V1beta1IPAddressList](docs/V1beta1IPAddressList.md) - - [V1beta1IPAddressSpec](docs/V1beta1IPAddressSpec.md) + - [V1beta1DisruptionMode](docs/V1beta1DisruptionMode.md) + - [V1beta1GangSchedulingPolicy](docs/V1beta1GangSchedulingPolicy.md) - [V1beta1JSONPatch](docs/V1beta1JSONPatch.md) - [V1beta1LeaseCandidate](docs/V1beta1LeaseCandidate.md) - [V1beta1LeaseCandidateList](docs/V1beta1LeaseCandidateList.md) @@ -1709,15 +1836,25 @@ Class | Method | HTTP request | Description - [V1beta1Mutation](docs/V1beta1Mutation.md) - [V1beta1NamedRuleWithOperations](docs/V1beta1NamedRuleWithOperations.md) - [V1beta1NetworkDeviceData](docs/V1beta1NetworkDeviceData.md) - - [V1beta1NodeAllocatableResourceMapping](docs/V1beta1NodeAllocatableResourceMapping.md) + - [V1beta1NodeAllocatableMapping](docs/V1beta1NodeAllocatableMapping.md) + - [V1beta1NodeAllocatableOverhead](docs/V1beta1NodeAllocatableOverhead.md) + - [V1beta1NodeAllocatableResource](docs/V1beta1NodeAllocatableResource.md) - [V1beta1OpaqueDeviceConfiguration](docs/V1beta1OpaqueDeviceConfiguration.md) - [V1beta1ParamKind](docs/V1beta1ParamKind.md) - [V1beta1ParamRef](docs/V1beta1ParamRef.md) - - [V1beta1ParentReference](docs/V1beta1ParentReference.md) - [V1beta1PodCertificateRequest](docs/V1beta1PodCertificateRequest.md) - [V1beta1PodCertificateRequestList](docs/V1beta1PodCertificateRequestList.md) - [V1beta1PodCertificateRequestSpec](docs/V1beta1PodCertificateRequestSpec.md) - [V1beta1PodCertificateRequestStatus](docs/V1beta1PodCertificateRequestStatus.md) + - [V1beta1PodGroup](docs/V1beta1PodGroup.md) + - [V1beta1PodGroupList](docs/V1beta1PodGroupList.md) + - [V1beta1PodGroupResourceClaim](docs/V1beta1PodGroupResourceClaim.md) + - [V1beta1PodGroupResourceClaimStatus](docs/V1beta1PodGroupResourceClaimStatus.md) + - [V1beta1PodGroupSchedulingConstraints](docs/V1beta1PodGroupSchedulingConstraints.md) + - [V1beta1PodGroupSchedulingPolicy](docs/V1beta1PodGroupSchedulingPolicy.md) + - [V1beta1PodGroupSpec](docs/V1beta1PodGroupSpec.md) + - [V1beta1PodGroupStatus](docs/V1beta1PodGroupStatus.md) + - [V1beta1PodGroupTemplate](docs/V1beta1PodGroupTemplate.md) - [V1beta1ResourceClaim](docs/V1beta1ResourceClaim.md) - [V1beta1ResourceClaimConsumerReference](docs/V1beta1ResourceClaimConsumerReference.md) - [V1beta1ResourceClaimList](docs/V1beta1ResourceClaimList.md) @@ -1730,17 +1867,17 @@ Class | Method | HTTP request | Description - [V1beta1ResourceSlice](docs/V1beta1ResourceSlice.md) - [V1beta1ResourceSliceList](docs/V1beta1ResourceSliceList.md) - [V1beta1ResourceSliceSpec](docs/V1beta1ResourceSliceSpec.md) - - [V1beta1ServiceCIDR](docs/V1beta1ServiceCIDR.md) - - [V1beta1ServiceCIDRList](docs/V1beta1ServiceCIDRList.md) - - [V1beta1ServiceCIDRSpec](docs/V1beta1ServiceCIDRSpec.md) - - [V1beta1ServiceCIDRStatus](docs/V1beta1ServiceCIDRStatus.md) - [V1beta1StorageVersionMigration](docs/V1beta1StorageVersionMigration.md) - [V1beta1StorageVersionMigrationList](docs/V1beta1StorageVersionMigrationList.md) - [V1beta1StorageVersionMigrationSpec](docs/V1beta1StorageVersionMigrationSpec.md) - [V1beta1StorageVersionMigrationStatus](docs/V1beta1StorageVersionMigrationStatus.md) + - [V1beta1TopologyConstraint](docs/V1beta1TopologyConstraint.md) + - [V1beta1TypedLocalObjectReference](docs/V1beta1TypedLocalObjectReference.md) - [V1beta1Variable](docs/V1beta1Variable.md) - - [V1beta1VolumeAttributesClass](docs/V1beta1VolumeAttributesClass.md) - - [V1beta1VolumeAttributesClassList](docs/V1beta1VolumeAttributesClassList.md) + - [V1beta1Workload](docs/V1beta1Workload.md) + - [V1beta1WorkloadList](docs/V1beta1WorkloadList.md) + - [V1beta1WorkloadReference](docs/V1beta1WorkloadReference.md) + - [V1beta1WorkloadSpec](docs/V1beta1WorkloadSpec.md) - [V1beta2AllocatedDeviceStatus](docs/V1beta2AllocatedDeviceStatus.md) - [V1beta2AllocationResult](docs/V1beta2AllocationResult.md) - [V1beta2CELDeviceSelector](docs/V1beta2CELDeviceSelector.md) @@ -1762,6 +1899,7 @@ Class | Method | HTTP request | Description - [V1beta2DeviceClassSpec](docs/V1beta2DeviceClassSpec.md) - [V1beta2DeviceConstraint](docs/V1beta2DeviceConstraint.md) - [V1beta2DeviceCounterConsumption](docs/V1beta2DeviceCounterConsumption.md) + - [V1beta2DeviceDerivedAttribute](docs/V1beta2DeviceDerivedAttribute.md) - [V1beta2DeviceRequest](docs/V1beta2DeviceRequest.md) - [V1beta2DeviceRequestAllocationResult](docs/V1beta2DeviceRequestAllocationResult.md) - [V1beta2DeviceSelector](docs/V1beta2DeviceSelector.md) @@ -1775,7 +1913,9 @@ Class | Method | HTTP request | Description - [V1beta2DeviceToleration](docs/V1beta2DeviceToleration.md) - [V1beta2ExactDeviceRequest](docs/V1beta2ExactDeviceRequest.md) - [V1beta2NetworkDeviceData](docs/V1beta2NetworkDeviceData.md) - - [V1beta2NodeAllocatableResourceMapping](docs/V1beta2NodeAllocatableResourceMapping.md) + - [V1beta2NodeAllocatableMapping](docs/V1beta2NodeAllocatableMapping.md) + - [V1beta2NodeAllocatableOverhead](docs/V1beta2NodeAllocatableOverhead.md) + - [V1beta2NodeAllocatableResource](docs/V1beta2NodeAllocatableResource.md) - [V1beta2OpaqueDeviceConfiguration](docs/V1beta2OpaqueDeviceConfiguration.md) - [V1beta2ResourceClaim](docs/V1beta2ResourceClaim.md) - [V1beta2ResourceClaimConsumerReference](docs/V1beta2ResourceClaimConsumerReference.md) diff --git a/kubernetes/aio/__init__.py b/kubernetes/aio/__init__.py index 97c5f2e383..690cecfb3c 100644 --- a/kubernetes/aio/__init__.py +++ b/kubernetes/aio/__init__.py @@ -14,7 +14,7 @@ __project__ = "kubernetes_aio" # The version is auto-updated. Please do not edit. -__version__ = "36.0.0+snapshot" +__version__ = "37.0.0+snapshot" import kubernetes.aio.client as client import kubernetes.aio.config as config diff --git a/kubernetes/aio/client/__init__.py b/kubernetes/aio/client/__init__.py index 06d03cfb71..f1b7fbcd06 100644 --- a/kubernetes/aio/client/__init__.py +++ b/kubernetes/aio/client/__init__.py @@ -7,14 +7,14 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 -__version__ = "36.0.0+snapshot" +__version__ = "37.0.0+snapshot" # Define package exports __all__ = [ @@ -41,7 +41,6 @@ "BatchV1Api", "CertificatesApi", "CertificatesV1Api", - "CertificatesV1alpha1Api", "CertificatesV1beta1Api", "CoordinationApi", "CoordinationV1Api", @@ -58,10 +57,11 @@ "FlowcontrolApiserverV1Api", "InternalApiserverApi", "InternalApiserverV1alpha1Api", + "LifecycleApi", + "LifecycleV1alpha1Api", "LogsApi", "NetworkingApi", "NetworkingV1Api", - "NetworkingV1beta1Api", "NodeApi", "NodeV1Api", "OpenidApi", @@ -76,11 +76,12 @@ "ResourceV1beta2Api", "SchedulingApi", "SchedulingV1Api", - "SchedulingV1alpha2Api", + "SchedulingV1alpha3Api", + "SchedulingV1beta1Api", "StorageApi", "StorageV1Api", - "StorageV1beta1Api", "StoragemigrationApi", + "StoragemigrationV1Api", "StoragemigrationV1beta1Api", "VersionApi", "ApiResponse", @@ -143,6 +144,7 @@ "V1CSINodeDriver", "V1CSINodeList", "V1CSINodeSpec", + "V1CSINodeStatus", "V1CSIPersistentVolumeSource", "V1CSIStorageCapacity", "V1CSIStorageCapacityList", @@ -165,7 +167,10 @@ "V1ClusterRoleBinding", "V1ClusterRoleBindingList", "V1ClusterRoleList", + "V1ClusterTrustBundle", + "V1ClusterTrustBundleList", "V1ClusterTrustBundleProjection", + "V1ClusterTrustBundleSpec", "V1ComponentCondition", "V1ComponentStatus", "V1ComponentStatusList", @@ -238,11 +243,17 @@ "V1DeviceClassSpec", "V1DeviceConstraint", "V1DeviceCounterConsumption", + "V1DeviceDerivedAttribute", "V1DeviceRequest", "V1DeviceRequestAllocationResult", "V1DeviceSelector", "V1DeviceSubRequest", "V1DeviceTaint", + "V1DeviceTaintRule", + "V1DeviceTaintRuleList", + "V1DeviceTaintRuleSpec", + "V1DeviceTaintRuleStatus", + "V1DeviceTaintSelector", "V1DeviceToleration", "V1DownwardAPIProjection", "V1DownwardAPIVolumeFile", @@ -264,6 +275,7 @@ "V1EphemeralVolumeSource", "V1EventSource", "V1Eviction", + "V1EvictionResponder", "V1ExactDeviceRequest", "V1ExecAction", "V1ExemptPriorityLevelConfiguration", @@ -332,6 +344,7 @@ "V1Job", "V1JobCondition", "V1JobList", + "V1JobSchedulingConfiguration", "V1JobSpec", "V1JobStatus", "V1JobTemplateSpec", @@ -389,14 +402,19 @@ "V1Node", "V1NodeAddress", "V1NodeAffinity", + "V1NodeAllocatableMappedResources", + "V1NodeAllocatableMapping", + "V1NodeAllocatableOverhead", + "V1NodeAllocatableOverheadResources", + "V1NodeAllocatableResource", "V1NodeAllocatableResourceClaimStatus", - "V1NodeAllocatableResourceMapping", "V1NodeCondition", "V1NodeConfigSource", "V1NodeConfigStatus", "V1NodeDaemonEndpoints", "V1NodeFeatures", "V1NodeList", + "V1NodePodPreemptionPolicy", "V1NodeRuntimeHandler", "V1NodeRuntimeHandlerFeatures", "V1NodeSelector", @@ -435,6 +453,10 @@ "V1PodAffinityTerm", "V1PodAntiAffinity", "V1PodCertificateProjection", + "V1PodCertificateRequest", + "V1PodCertificateRequestList", + "V1PodCertificateRequestSpec", + "V1PodCertificateRequestStatus", "V1PodCondition", "V1PodDNSConfig", "V1PodDNSConfigOption", @@ -461,6 +483,7 @@ "V1PodTemplate", "V1PodTemplateList", "V1PodTemplateSpec", + "V1PodVolumeHealth", "V1PolicyRule", "V1PolicyRulesWithSubjects", "V1PortStatus", @@ -580,8 +603,14 @@ "V1StatusDetails", "V1StorageClass", "V1StorageClassList", + "V1StorageHealth", + "V1StorageHealthCondition", "V1StorageOSPersistentVolumeSource", "V1StorageOSVolumeSource", + "V1StorageVersionMigration", + "V1StorageVersionMigrationList", + "V1StorageVersionMigrationSpec", + "V1StorageVersionMigrationStatus", "V1SubjectAccessReview", "V1SubjectAccessReviewSpec", "V1SubjectAccessReviewStatus", @@ -629,6 +658,8 @@ "V1VolumeAttributesClassList", "V1VolumeDevice", "V1VolumeError", + "V1VolumeHealthCondition", + "V1VolumeHealthStatus", "V1VolumeMount", "V1VolumeMountStatus", "V1VolumeNodeAffinity", @@ -642,9 +673,18 @@ "V1WeightedPodAffinityTerm", "V1WindowsSecurityContextOptions", "V1alpha1ApplyConfiguration", - "V1alpha1ClusterTrustBundle", - "V1alpha1ClusterTrustBundleList", - "V1alpha1ClusterTrustBundleSpec", + "V1alpha1Eviction", + "V1alpha1EvictionList", + "V1alpha1EvictionPodReference", + "V1alpha1EvictionRequest", + "V1alpha1EvictionRequestList", + "V1alpha1EvictionRequestPodReference", + "V1alpha1EvictionRequestSpec", + "V1alpha1EvictionRequestStatus", + "V1alpha1EvictionRequestTarget", + "V1alpha1EvictionSpec", + "V1alpha1EvictionStatus", + "V1alpha1EvictionTarget", "V1alpha1JSONPatch", "V1alpha1MatchCondition", "V1alpha1MatchResources", @@ -658,43 +698,63 @@ "V1alpha1NamedRuleWithOperations", "V1alpha1ParamKind", "V1alpha1ParamRef", + "V1alpha1Requester", + "V1alpha1ResponderStatus", "V1alpha1ServerStorageVersion", "V1alpha1StorageVersion", "V1alpha1StorageVersionCondition", "V1alpha1StorageVersionList", "V1alpha1StorageVersionStatus", + "V1alpha1TargetResponder", "V1alpha1Variable", - "V1alpha2GangSchedulingPolicy", "V1alpha2LeaseCandidate", "V1alpha2LeaseCandidateList", "V1alpha2LeaseCandidateSpec", - "V1alpha2PodGroup", - "V1alpha2PodGroupList", - "V1alpha2PodGroupResourceClaim", - "V1alpha2PodGroupResourceClaimStatus", - "V1alpha2PodGroupSchedulingConstraints", - "V1alpha2PodGroupSchedulingPolicy", - "V1alpha2PodGroupSpec", - "V1alpha2PodGroupStatus", - "V1alpha2PodGroupTemplate", - "V1alpha2PodGroupTemplateReference", - "V1alpha2TopologyConstraint", - "V1alpha2TypedLocalObjectReference", - "V1alpha2Workload", - "V1alpha2WorkloadList", - "V1alpha2WorkloadPodGroupTemplateReference", - "V1alpha2WorkloadSpec", + "V1alpha3CompositeDisruptionMode", + "V1alpha3CompositeGangSchedulingPolicy", + "V1alpha3CompositePodGroup", + "V1alpha3CompositePodGroupList", + "V1alpha3CompositePodGroupSchedulingConstraints", + "V1alpha3CompositePodGroupSchedulingPolicy", + "V1alpha3CompositePodGroupSpec", + "V1alpha3CompositePodGroupStatus", + "V1alpha3CompositePodGroupTemplate", "V1alpha3DeviceTaint", "V1alpha3DeviceTaintRule", "V1alpha3DeviceTaintRuleList", "V1alpha3DeviceTaintRuleSpec", "V1alpha3DeviceTaintRuleStatus", "V1alpha3DeviceTaintSelector", + "V1alpha3DisruptionMode", + "V1alpha3GangSchedulingPolicy", + "V1alpha3PartitionTypeStatus", + "V1alpha3PodGroup", + "V1alpha3PodGroupList", + "V1alpha3PodGroupResourceClaim", + "V1alpha3PodGroupResourceClaimStatus", + "V1alpha3PodGroupSchedulingConstraints", + "V1alpha3PodGroupSchedulingPolicy", + "V1alpha3PodGroupSpec", + "V1alpha3PodGroupStatus", + "V1alpha3PodGroupTemplate", "V1alpha3PoolStatus", "V1alpha3ResourcePoolStatusRequest", "V1alpha3ResourcePoolStatusRequestList", "V1alpha3ResourcePoolStatusRequestSpec", "V1alpha3ResourcePoolStatusRequestStatus", + "V1alpha3ShareableCapacityStatus", + "V1alpha3ShareableSummaryStatus", + "V1alpha3TopologyConstraint", + "V1alpha3TypedLocalObjectReference", + "V1alpha3Workload", + "V1alpha3WorkloadList", + "V1alpha3WorkloadPodGroupDisruptionMode", + "V1alpha3WorkloadPodGroupGangSchedulingPolicy", + "V1alpha3WorkloadPodGroupResourceClaim", + "V1alpha3WorkloadPodGroupSchedulingConstraints", + "V1alpha3WorkloadPodGroupSchedulingPolicy", + "V1alpha3WorkloadReference", + "V1alpha3WorkloadSpec", "V1beta1AllocatedDeviceStatus", "V1beta1AllocationResult", "V1beta1ApplyConfiguration", @@ -706,6 +766,11 @@ "V1beta1ClusterTrustBundle", "V1beta1ClusterTrustBundleList", "V1beta1ClusterTrustBundleSpec", + "V1beta1CompositeDisruptionMode", + "V1beta1CompositeGangSchedulingPolicy", + "V1beta1CompositePodGroupSchedulingConstraints", + "V1beta1CompositePodGroupSchedulingPolicy", + "V1beta1CompositePodGroupTemplate", "V1beta1Counter", "V1beta1CounterSet", "V1beta1Device", @@ -721,15 +786,15 @@ "V1beta1DeviceClassSpec", "V1beta1DeviceConstraint", "V1beta1DeviceCounterConsumption", + "V1beta1DeviceDerivedAttribute", "V1beta1DeviceRequest", "V1beta1DeviceRequestAllocationResult", "V1beta1DeviceSelector", "V1beta1DeviceSubRequest", "V1beta1DeviceTaint", "V1beta1DeviceToleration", - "V1beta1IPAddress", - "V1beta1IPAddressList", - "V1beta1IPAddressSpec", + "V1beta1DisruptionMode", + "V1beta1GangSchedulingPolicy", "V1beta1JSONPatch", "V1beta1LeaseCandidate", "V1beta1LeaseCandidateList", @@ -745,15 +810,25 @@ "V1beta1Mutation", "V1beta1NamedRuleWithOperations", "V1beta1NetworkDeviceData", - "V1beta1NodeAllocatableResourceMapping", + "V1beta1NodeAllocatableMapping", + "V1beta1NodeAllocatableOverhead", + "V1beta1NodeAllocatableResource", "V1beta1OpaqueDeviceConfiguration", "V1beta1ParamKind", "V1beta1ParamRef", - "V1beta1ParentReference", "V1beta1PodCertificateRequest", "V1beta1PodCertificateRequestList", "V1beta1PodCertificateRequestSpec", "V1beta1PodCertificateRequestStatus", + "V1beta1PodGroup", + "V1beta1PodGroupList", + "V1beta1PodGroupResourceClaim", + "V1beta1PodGroupResourceClaimStatus", + "V1beta1PodGroupSchedulingConstraints", + "V1beta1PodGroupSchedulingPolicy", + "V1beta1PodGroupSpec", + "V1beta1PodGroupStatus", + "V1beta1PodGroupTemplate", "V1beta1ResourceClaim", "V1beta1ResourceClaimConsumerReference", "V1beta1ResourceClaimList", @@ -766,17 +841,17 @@ "V1beta1ResourceSlice", "V1beta1ResourceSliceList", "V1beta1ResourceSliceSpec", - "V1beta1ServiceCIDR", - "V1beta1ServiceCIDRList", - "V1beta1ServiceCIDRSpec", - "V1beta1ServiceCIDRStatus", "V1beta1StorageVersionMigration", "V1beta1StorageVersionMigrationList", "V1beta1StorageVersionMigrationSpec", "V1beta1StorageVersionMigrationStatus", + "V1beta1TopologyConstraint", + "V1beta1TypedLocalObjectReference", "V1beta1Variable", - "V1beta1VolumeAttributesClass", - "V1beta1VolumeAttributesClassList", + "V1beta1Workload", + "V1beta1WorkloadList", + "V1beta1WorkloadReference", + "V1beta1WorkloadSpec", "V1beta2AllocatedDeviceStatus", "V1beta2AllocationResult", "V1beta2CELDeviceSelector", @@ -798,6 +873,7 @@ "V1beta2DeviceClassSpec", "V1beta2DeviceConstraint", "V1beta2DeviceCounterConsumption", + "V1beta2DeviceDerivedAttribute", "V1beta2DeviceRequest", "V1beta2DeviceRequestAllocationResult", "V1beta2DeviceSelector", @@ -811,7 +887,9 @@ "V1beta2DeviceToleration", "V1beta2ExactDeviceRequest", "V1beta2NetworkDeviceData", - "V1beta2NodeAllocatableResourceMapping", + "V1beta2NodeAllocatableMapping", + "V1beta2NodeAllocatableOverhead", + "V1beta2NodeAllocatableResource", "V1beta2OpaqueDeviceConfiguration", "V1beta2ResourceClaim", "V1beta2ResourceClaimConsumerReference", @@ -889,7 +967,6 @@ from kubernetes.aio.client.api.batch_v1_api import BatchV1Api as BatchV1Api from kubernetes.aio.client.api.certificates_api import CertificatesApi as CertificatesApi from kubernetes.aio.client.api.certificates_v1_api import CertificatesV1Api as CertificatesV1Api - from kubernetes.aio.client.api.certificates_v1alpha1_api import CertificatesV1alpha1Api as CertificatesV1alpha1Api from kubernetes.aio.client.api.certificates_v1beta1_api import CertificatesV1beta1Api as CertificatesV1beta1Api from kubernetes.aio.client.api.coordination_api import CoordinationApi as CoordinationApi from kubernetes.aio.client.api.coordination_v1_api import CoordinationV1Api as CoordinationV1Api @@ -906,10 +983,11 @@ from kubernetes.aio.client.api.flowcontrol_apiserver_v1_api import FlowcontrolApiserverV1Api as FlowcontrolApiserverV1Api from kubernetes.aio.client.api.internal_apiserver_api import InternalApiserverApi as InternalApiserverApi from kubernetes.aio.client.api.internal_apiserver_v1alpha1_api import InternalApiserverV1alpha1Api as InternalApiserverV1alpha1Api + from kubernetes.aio.client.api.lifecycle_api import LifecycleApi as LifecycleApi + from kubernetes.aio.client.api.lifecycle_v1alpha1_api import LifecycleV1alpha1Api as LifecycleV1alpha1Api from kubernetes.aio.client.api.logs_api import LogsApi as LogsApi from kubernetes.aio.client.api.networking_api import NetworkingApi as NetworkingApi from kubernetes.aio.client.api.networking_v1_api import NetworkingV1Api as NetworkingV1Api - from kubernetes.aio.client.api.networking_v1beta1_api import NetworkingV1beta1Api as NetworkingV1beta1Api from kubernetes.aio.client.api.node_api import NodeApi as NodeApi from kubernetes.aio.client.api.node_v1_api import NodeV1Api as NodeV1Api from kubernetes.aio.client.api.openid_api import OpenidApi as OpenidApi @@ -924,11 +1002,12 @@ from kubernetes.aio.client.api.resource_v1beta2_api import ResourceV1beta2Api as ResourceV1beta2Api from kubernetes.aio.client.api.scheduling_api import SchedulingApi as SchedulingApi from kubernetes.aio.client.api.scheduling_v1_api import SchedulingV1Api as SchedulingV1Api - from kubernetes.aio.client.api.scheduling_v1alpha2_api import SchedulingV1alpha2Api as SchedulingV1alpha2Api + from kubernetes.aio.client.api.scheduling_v1alpha3_api import SchedulingV1alpha3Api as SchedulingV1alpha3Api + from kubernetes.aio.client.api.scheduling_v1beta1_api import SchedulingV1beta1Api as SchedulingV1beta1Api from kubernetes.aio.client.api.storage_api import StorageApi as StorageApi from kubernetes.aio.client.api.storage_v1_api import StorageV1Api as StorageV1Api - from kubernetes.aio.client.api.storage_v1beta1_api import StorageV1beta1Api as StorageV1beta1Api from kubernetes.aio.client.api.storagemigration_api import StoragemigrationApi as StoragemigrationApi + from kubernetes.aio.client.api.storagemigration_v1_api import StoragemigrationV1Api as StoragemigrationV1Api from kubernetes.aio.client.api.storagemigration_v1beta1_api import StoragemigrationV1beta1Api as StoragemigrationV1beta1Api from kubernetes.aio.client.api.version_api import VersionApi as VersionApi @@ -995,6 +1074,7 @@ from kubernetes.aio.client.models.v1_csi_node_driver import V1CSINodeDriver as V1CSINodeDriver from kubernetes.aio.client.models.v1_csi_node_list import V1CSINodeList as V1CSINodeList from kubernetes.aio.client.models.v1_csi_node_spec import V1CSINodeSpec as V1CSINodeSpec + from kubernetes.aio.client.models.v1_csi_node_status import V1CSINodeStatus as V1CSINodeStatus from kubernetes.aio.client.models.v1_csi_persistent_volume_source import V1CSIPersistentVolumeSource as V1CSIPersistentVolumeSource from kubernetes.aio.client.models.v1_csi_storage_capacity import V1CSIStorageCapacity as V1CSIStorageCapacity from kubernetes.aio.client.models.v1_csi_storage_capacity_list import V1CSIStorageCapacityList as V1CSIStorageCapacityList @@ -1017,7 +1097,10 @@ from kubernetes.aio.client.models.v1_cluster_role_binding import V1ClusterRoleBinding as V1ClusterRoleBinding from kubernetes.aio.client.models.v1_cluster_role_binding_list import V1ClusterRoleBindingList as V1ClusterRoleBindingList from kubernetes.aio.client.models.v1_cluster_role_list import V1ClusterRoleList as V1ClusterRoleList + from kubernetes.aio.client.models.v1_cluster_trust_bundle import V1ClusterTrustBundle as V1ClusterTrustBundle + from kubernetes.aio.client.models.v1_cluster_trust_bundle_list import V1ClusterTrustBundleList as V1ClusterTrustBundleList from kubernetes.aio.client.models.v1_cluster_trust_bundle_projection import V1ClusterTrustBundleProjection as V1ClusterTrustBundleProjection + from kubernetes.aio.client.models.v1_cluster_trust_bundle_spec import V1ClusterTrustBundleSpec as V1ClusterTrustBundleSpec from kubernetes.aio.client.models.v1_component_condition import V1ComponentCondition as V1ComponentCondition from kubernetes.aio.client.models.v1_component_status import V1ComponentStatus as V1ComponentStatus from kubernetes.aio.client.models.v1_component_status_list import V1ComponentStatusList as V1ComponentStatusList @@ -1090,11 +1173,17 @@ from kubernetes.aio.client.models.v1_device_class_spec import V1DeviceClassSpec as V1DeviceClassSpec from kubernetes.aio.client.models.v1_device_constraint import V1DeviceConstraint as V1DeviceConstraint from kubernetes.aio.client.models.v1_device_counter_consumption import V1DeviceCounterConsumption as V1DeviceCounterConsumption + from kubernetes.aio.client.models.v1_device_derived_attribute import V1DeviceDerivedAttribute as V1DeviceDerivedAttribute from kubernetes.aio.client.models.v1_device_request import V1DeviceRequest as V1DeviceRequest from kubernetes.aio.client.models.v1_device_request_allocation_result import V1DeviceRequestAllocationResult as V1DeviceRequestAllocationResult from kubernetes.aio.client.models.v1_device_selector import V1DeviceSelector as V1DeviceSelector from kubernetes.aio.client.models.v1_device_sub_request import V1DeviceSubRequest as V1DeviceSubRequest from kubernetes.aio.client.models.v1_device_taint import V1DeviceTaint as V1DeviceTaint + from kubernetes.aio.client.models.v1_device_taint_rule import V1DeviceTaintRule as V1DeviceTaintRule + from kubernetes.aio.client.models.v1_device_taint_rule_list import V1DeviceTaintRuleList as V1DeviceTaintRuleList + from kubernetes.aio.client.models.v1_device_taint_rule_spec import V1DeviceTaintRuleSpec as V1DeviceTaintRuleSpec + from kubernetes.aio.client.models.v1_device_taint_rule_status import V1DeviceTaintRuleStatus as V1DeviceTaintRuleStatus + from kubernetes.aio.client.models.v1_device_taint_selector import V1DeviceTaintSelector as V1DeviceTaintSelector from kubernetes.aio.client.models.v1_device_toleration import V1DeviceToleration as V1DeviceToleration from kubernetes.aio.client.models.v1_downward_api_projection import V1DownwardAPIProjection as V1DownwardAPIProjection from kubernetes.aio.client.models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile as V1DownwardAPIVolumeFile @@ -1116,6 +1205,7 @@ from kubernetes.aio.client.models.v1_ephemeral_volume_source import V1EphemeralVolumeSource as V1EphemeralVolumeSource from kubernetes.aio.client.models.v1_event_source import V1EventSource as V1EventSource from kubernetes.aio.client.models.v1_eviction import V1Eviction as V1Eviction + from kubernetes.aio.client.models.v1_eviction_responder import V1EvictionResponder as V1EvictionResponder from kubernetes.aio.client.models.v1_exact_device_request import V1ExactDeviceRequest as V1ExactDeviceRequest from kubernetes.aio.client.models.v1_exec_action import V1ExecAction as V1ExecAction from kubernetes.aio.client.models.v1_exempt_priority_level_configuration import V1ExemptPriorityLevelConfiguration as V1ExemptPriorityLevelConfiguration @@ -1184,6 +1274,7 @@ from kubernetes.aio.client.models.v1_job import V1Job as V1Job from kubernetes.aio.client.models.v1_job_condition import V1JobCondition as V1JobCondition from kubernetes.aio.client.models.v1_job_list import V1JobList as V1JobList + from kubernetes.aio.client.models.v1_job_scheduling_configuration import V1JobSchedulingConfiguration as V1JobSchedulingConfiguration from kubernetes.aio.client.models.v1_job_spec import V1JobSpec as V1JobSpec from kubernetes.aio.client.models.v1_job_status import V1JobStatus as V1JobStatus from kubernetes.aio.client.models.v1_job_template_spec import V1JobTemplateSpec as V1JobTemplateSpec @@ -1241,14 +1332,19 @@ from kubernetes.aio.client.models.v1_node import V1Node as V1Node from kubernetes.aio.client.models.v1_node_address import V1NodeAddress as V1NodeAddress from kubernetes.aio.client.models.v1_node_affinity import V1NodeAffinity as V1NodeAffinity + from kubernetes.aio.client.models.v1_node_allocatable_mapped_resources import V1NodeAllocatableMappedResources as V1NodeAllocatableMappedResources + from kubernetes.aio.client.models.v1_node_allocatable_mapping import V1NodeAllocatableMapping as V1NodeAllocatableMapping + from kubernetes.aio.client.models.v1_node_allocatable_overhead import V1NodeAllocatableOverhead as V1NodeAllocatableOverhead + from kubernetes.aio.client.models.v1_node_allocatable_overhead_resources import V1NodeAllocatableOverheadResources as V1NodeAllocatableOverheadResources + from kubernetes.aio.client.models.v1_node_allocatable_resource import V1NodeAllocatableResource as V1NodeAllocatableResource from kubernetes.aio.client.models.v1_node_allocatable_resource_claim_status import V1NodeAllocatableResourceClaimStatus as V1NodeAllocatableResourceClaimStatus - from kubernetes.aio.client.models.v1_node_allocatable_resource_mapping import V1NodeAllocatableResourceMapping as V1NodeAllocatableResourceMapping from kubernetes.aio.client.models.v1_node_condition import V1NodeCondition as V1NodeCondition from kubernetes.aio.client.models.v1_node_config_source import V1NodeConfigSource as V1NodeConfigSource from kubernetes.aio.client.models.v1_node_config_status import V1NodeConfigStatus as V1NodeConfigStatus from kubernetes.aio.client.models.v1_node_daemon_endpoints import V1NodeDaemonEndpoints as V1NodeDaemonEndpoints from kubernetes.aio.client.models.v1_node_features import V1NodeFeatures as V1NodeFeatures from kubernetes.aio.client.models.v1_node_list import V1NodeList as V1NodeList + from kubernetes.aio.client.models.v1_node_pod_preemption_policy import V1NodePodPreemptionPolicy as V1NodePodPreemptionPolicy from kubernetes.aio.client.models.v1_node_runtime_handler import V1NodeRuntimeHandler as V1NodeRuntimeHandler from kubernetes.aio.client.models.v1_node_runtime_handler_features import V1NodeRuntimeHandlerFeatures as V1NodeRuntimeHandlerFeatures from kubernetes.aio.client.models.v1_node_selector import V1NodeSelector as V1NodeSelector @@ -1287,6 +1383,10 @@ from kubernetes.aio.client.models.v1_pod_affinity_term import V1PodAffinityTerm as V1PodAffinityTerm from kubernetes.aio.client.models.v1_pod_anti_affinity import V1PodAntiAffinity as V1PodAntiAffinity from kubernetes.aio.client.models.v1_pod_certificate_projection import V1PodCertificateProjection as V1PodCertificateProjection + from kubernetes.aio.client.models.v1_pod_certificate_request import V1PodCertificateRequest as V1PodCertificateRequest + from kubernetes.aio.client.models.v1_pod_certificate_request_list import V1PodCertificateRequestList as V1PodCertificateRequestList + from kubernetes.aio.client.models.v1_pod_certificate_request_spec import V1PodCertificateRequestSpec as V1PodCertificateRequestSpec + from kubernetes.aio.client.models.v1_pod_certificate_request_status import V1PodCertificateRequestStatus as V1PodCertificateRequestStatus from kubernetes.aio.client.models.v1_pod_condition import V1PodCondition as V1PodCondition from kubernetes.aio.client.models.v1_pod_dns_config import V1PodDNSConfig as V1PodDNSConfig from kubernetes.aio.client.models.v1_pod_dns_config_option import V1PodDNSConfigOption as V1PodDNSConfigOption @@ -1313,6 +1413,7 @@ from kubernetes.aio.client.models.v1_pod_template import V1PodTemplate as V1PodTemplate from kubernetes.aio.client.models.v1_pod_template_list import V1PodTemplateList as V1PodTemplateList from kubernetes.aio.client.models.v1_pod_template_spec import V1PodTemplateSpec as V1PodTemplateSpec + from kubernetes.aio.client.models.v1_pod_volume_health import V1PodVolumeHealth as V1PodVolumeHealth from kubernetes.aio.client.models.v1_policy_rule import V1PolicyRule as V1PolicyRule from kubernetes.aio.client.models.v1_policy_rules_with_subjects import V1PolicyRulesWithSubjects as V1PolicyRulesWithSubjects from kubernetes.aio.client.models.v1_port_status import V1PortStatus as V1PortStatus @@ -1432,8 +1533,14 @@ from kubernetes.aio.client.models.v1_status_details import V1StatusDetails as V1StatusDetails from kubernetes.aio.client.models.v1_storage_class import V1StorageClass as V1StorageClass from kubernetes.aio.client.models.v1_storage_class_list import V1StorageClassList as V1StorageClassList + from kubernetes.aio.client.models.v1_storage_health import V1StorageHealth as V1StorageHealth + from kubernetes.aio.client.models.v1_storage_health_condition import V1StorageHealthCondition as V1StorageHealthCondition from kubernetes.aio.client.models.v1_storage_os_persistent_volume_source import V1StorageOSPersistentVolumeSource as V1StorageOSPersistentVolumeSource from kubernetes.aio.client.models.v1_storage_os_volume_source import V1StorageOSVolumeSource as V1StorageOSVolumeSource + from kubernetes.aio.client.models.v1_storage_version_migration import V1StorageVersionMigration as V1StorageVersionMigration + from kubernetes.aio.client.models.v1_storage_version_migration_list import V1StorageVersionMigrationList as V1StorageVersionMigrationList + from kubernetes.aio.client.models.v1_storage_version_migration_spec import V1StorageVersionMigrationSpec as V1StorageVersionMigrationSpec + from kubernetes.aio.client.models.v1_storage_version_migration_status import V1StorageVersionMigrationStatus as V1StorageVersionMigrationStatus from kubernetes.aio.client.models.v1_subject_access_review import V1SubjectAccessReview as V1SubjectAccessReview from kubernetes.aio.client.models.v1_subject_access_review_spec import V1SubjectAccessReviewSpec as V1SubjectAccessReviewSpec from kubernetes.aio.client.models.v1_subject_access_review_status import V1SubjectAccessReviewStatus as V1SubjectAccessReviewStatus @@ -1481,6 +1588,8 @@ from kubernetes.aio.client.models.v1_volume_attributes_class_list import V1VolumeAttributesClassList as V1VolumeAttributesClassList from kubernetes.aio.client.models.v1_volume_device import V1VolumeDevice as V1VolumeDevice from kubernetes.aio.client.models.v1_volume_error import V1VolumeError as V1VolumeError + from kubernetes.aio.client.models.v1_volume_health_condition import V1VolumeHealthCondition as V1VolumeHealthCondition + from kubernetes.aio.client.models.v1_volume_health_status import V1VolumeHealthStatus as V1VolumeHealthStatus from kubernetes.aio.client.models.v1_volume_mount import V1VolumeMount as V1VolumeMount from kubernetes.aio.client.models.v1_volume_mount_status import V1VolumeMountStatus as V1VolumeMountStatus from kubernetes.aio.client.models.v1_volume_node_affinity import V1VolumeNodeAffinity as V1VolumeNodeAffinity @@ -1494,9 +1603,18 @@ from kubernetes.aio.client.models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm as V1WeightedPodAffinityTerm from kubernetes.aio.client.models.v1_windows_security_context_options import V1WindowsSecurityContextOptions as V1WindowsSecurityContextOptions from kubernetes.aio.client.models.v1alpha1_apply_configuration import V1alpha1ApplyConfiguration as V1alpha1ApplyConfiguration - from kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle as V1alpha1ClusterTrustBundle - from kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_list import V1alpha1ClusterTrustBundleList as V1alpha1ClusterTrustBundleList - from kubernetes.aio.client.models.v1alpha1_cluster_trust_bundle_spec import V1alpha1ClusterTrustBundleSpec as V1alpha1ClusterTrustBundleSpec + from kubernetes.aio.client.models.v1alpha1_eviction import V1alpha1Eviction as V1alpha1Eviction + from kubernetes.aio.client.models.v1alpha1_eviction_list import V1alpha1EvictionList as V1alpha1EvictionList + from kubernetes.aio.client.models.v1alpha1_eviction_pod_reference import V1alpha1EvictionPodReference as V1alpha1EvictionPodReference + from kubernetes.aio.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest as V1alpha1EvictionRequest + from kubernetes.aio.client.models.v1alpha1_eviction_request_list import V1alpha1EvictionRequestList as V1alpha1EvictionRequestList + from kubernetes.aio.client.models.v1alpha1_eviction_request_pod_reference import V1alpha1EvictionRequestPodReference as V1alpha1EvictionRequestPodReference + from kubernetes.aio.client.models.v1alpha1_eviction_request_spec import V1alpha1EvictionRequestSpec as V1alpha1EvictionRequestSpec + from kubernetes.aio.client.models.v1alpha1_eviction_request_status import V1alpha1EvictionRequestStatus as V1alpha1EvictionRequestStatus + from kubernetes.aio.client.models.v1alpha1_eviction_request_target import V1alpha1EvictionRequestTarget as V1alpha1EvictionRequestTarget + from kubernetes.aio.client.models.v1alpha1_eviction_spec import V1alpha1EvictionSpec as V1alpha1EvictionSpec + from kubernetes.aio.client.models.v1alpha1_eviction_status import V1alpha1EvictionStatus as V1alpha1EvictionStatus + from kubernetes.aio.client.models.v1alpha1_eviction_target import V1alpha1EvictionTarget as V1alpha1EvictionTarget from kubernetes.aio.client.models.v1alpha1_json_patch import V1alpha1JSONPatch as V1alpha1JSONPatch from kubernetes.aio.client.models.v1alpha1_match_condition import V1alpha1MatchCondition as V1alpha1MatchCondition from kubernetes.aio.client.models.v1alpha1_match_resources import V1alpha1MatchResources as V1alpha1MatchResources @@ -1510,43 +1628,63 @@ from kubernetes.aio.client.models.v1alpha1_named_rule_with_operations import V1alpha1NamedRuleWithOperations as V1alpha1NamedRuleWithOperations from kubernetes.aio.client.models.v1alpha1_param_kind import V1alpha1ParamKind as V1alpha1ParamKind from kubernetes.aio.client.models.v1alpha1_param_ref import V1alpha1ParamRef as V1alpha1ParamRef + from kubernetes.aio.client.models.v1alpha1_requester import V1alpha1Requester as V1alpha1Requester + from kubernetes.aio.client.models.v1alpha1_responder_status import V1alpha1ResponderStatus as V1alpha1ResponderStatus from kubernetes.aio.client.models.v1alpha1_server_storage_version import V1alpha1ServerStorageVersion as V1alpha1ServerStorageVersion from kubernetes.aio.client.models.v1alpha1_storage_version import V1alpha1StorageVersion as V1alpha1StorageVersion from kubernetes.aio.client.models.v1alpha1_storage_version_condition import V1alpha1StorageVersionCondition as V1alpha1StorageVersionCondition from kubernetes.aio.client.models.v1alpha1_storage_version_list import V1alpha1StorageVersionList as V1alpha1StorageVersionList from kubernetes.aio.client.models.v1alpha1_storage_version_status import V1alpha1StorageVersionStatus as V1alpha1StorageVersionStatus + from kubernetes.aio.client.models.v1alpha1_target_responder import V1alpha1TargetResponder as V1alpha1TargetResponder from kubernetes.aio.client.models.v1alpha1_variable import V1alpha1Variable as V1alpha1Variable - from kubernetes.aio.client.models.v1alpha2_gang_scheduling_policy import V1alpha2GangSchedulingPolicy as V1alpha2GangSchedulingPolicy from kubernetes.aio.client.models.v1alpha2_lease_candidate import V1alpha2LeaseCandidate as V1alpha2LeaseCandidate from kubernetes.aio.client.models.v1alpha2_lease_candidate_list import V1alpha2LeaseCandidateList as V1alpha2LeaseCandidateList from kubernetes.aio.client.models.v1alpha2_lease_candidate_spec import V1alpha2LeaseCandidateSpec as V1alpha2LeaseCandidateSpec - from kubernetes.aio.client.models.v1alpha2_pod_group import V1alpha2PodGroup as V1alpha2PodGroup - from kubernetes.aio.client.models.v1alpha2_pod_group_list import V1alpha2PodGroupList as V1alpha2PodGroupList - from kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim import V1alpha2PodGroupResourceClaim as V1alpha2PodGroupResourceClaim - from kubernetes.aio.client.models.v1alpha2_pod_group_resource_claim_status import V1alpha2PodGroupResourceClaimStatus as V1alpha2PodGroupResourceClaimStatus - from kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_constraints import V1alpha2PodGroupSchedulingConstraints as V1alpha2PodGroupSchedulingConstraints - from kubernetes.aio.client.models.v1alpha2_pod_group_scheduling_policy import V1alpha2PodGroupSchedulingPolicy as V1alpha2PodGroupSchedulingPolicy - from kubernetes.aio.client.models.v1alpha2_pod_group_spec import V1alpha2PodGroupSpec as V1alpha2PodGroupSpec - from kubernetes.aio.client.models.v1alpha2_pod_group_status import V1alpha2PodGroupStatus as V1alpha2PodGroupStatus - from kubernetes.aio.client.models.v1alpha2_pod_group_template import V1alpha2PodGroupTemplate as V1alpha2PodGroupTemplate - from kubernetes.aio.client.models.v1alpha2_pod_group_template_reference import V1alpha2PodGroupTemplateReference as V1alpha2PodGroupTemplateReference - from kubernetes.aio.client.models.v1alpha2_topology_constraint import V1alpha2TopologyConstraint as V1alpha2TopologyConstraint - from kubernetes.aio.client.models.v1alpha2_typed_local_object_reference import V1alpha2TypedLocalObjectReference as V1alpha2TypedLocalObjectReference - from kubernetes.aio.client.models.v1alpha2_workload import V1alpha2Workload as V1alpha2Workload - from kubernetes.aio.client.models.v1alpha2_workload_list import V1alpha2WorkloadList as V1alpha2WorkloadList - from kubernetes.aio.client.models.v1alpha2_workload_pod_group_template_reference import V1alpha2WorkloadPodGroupTemplateReference as V1alpha2WorkloadPodGroupTemplateReference - from kubernetes.aio.client.models.v1alpha2_workload_spec import V1alpha2WorkloadSpec as V1alpha2WorkloadSpec + from kubernetes.aio.client.models.v1alpha3_composite_disruption_mode import V1alpha3CompositeDisruptionMode as V1alpha3CompositeDisruptionMode + from kubernetes.aio.client.models.v1alpha3_composite_gang_scheduling_policy import V1alpha3CompositeGangSchedulingPolicy as V1alpha3CompositeGangSchedulingPolicy + from kubernetes.aio.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup as V1alpha3CompositePodGroup + from kubernetes.aio.client.models.v1alpha3_composite_pod_group_list import V1alpha3CompositePodGroupList as V1alpha3CompositePodGroupList + from kubernetes.aio.client.models.v1alpha3_composite_pod_group_scheduling_constraints import V1alpha3CompositePodGroupSchedulingConstraints as V1alpha3CompositePodGroupSchedulingConstraints + from kubernetes.aio.client.models.v1alpha3_composite_pod_group_scheduling_policy import V1alpha3CompositePodGroupSchedulingPolicy as V1alpha3CompositePodGroupSchedulingPolicy + from kubernetes.aio.client.models.v1alpha3_composite_pod_group_spec import V1alpha3CompositePodGroupSpec as V1alpha3CompositePodGroupSpec + from kubernetes.aio.client.models.v1alpha3_composite_pod_group_status import V1alpha3CompositePodGroupStatus as V1alpha3CompositePodGroupStatus + from kubernetes.aio.client.models.v1alpha3_composite_pod_group_template import V1alpha3CompositePodGroupTemplate as V1alpha3CompositePodGroupTemplate from kubernetes.aio.client.models.v1alpha3_device_taint import V1alpha3DeviceTaint as V1alpha3DeviceTaint from kubernetes.aio.client.models.v1alpha3_device_taint_rule import V1alpha3DeviceTaintRule as V1alpha3DeviceTaintRule from kubernetes.aio.client.models.v1alpha3_device_taint_rule_list import V1alpha3DeviceTaintRuleList as V1alpha3DeviceTaintRuleList from kubernetes.aio.client.models.v1alpha3_device_taint_rule_spec import V1alpha3DeviceTaintRuleSpec as V1alpha3DeviceTaintRuleSpec from kubernetes.aio.client.models.v1alpha3_device_taint_rule_status import V1alpha3DeviceTaintRuleStatus as V1alpha3DeviceTaintRuleStatus from kubernetes.aio.client.models.v1alpha3_device_taint_selector import V1alpha3DeviceTaintSelector as V1alpha3DeviceTaintSelector + from kubernetes.aio.client.models.v1alpha3_disruption_mode import V1alpha3DisruptionMode as V1alpha3DisruptionMode + from kubernetes.aio.client.models.v1alpha3_gang_scheduling_policy import V1alpha3GangSchedulingPolicy as V1alpha3GangSchedulingPolicy + from kubernetes.aio.client.models.v1alpha3_partition_type_status import V1alpha3PartitionTypeStatus as V1alpha3PartitionTypeStatus + from kubernetes.aio.client.models.v1alpha3_pod_group import V1alpha3PodGroup as V1alpha3PodGroup + from kubernetes.aio.client.models.v1alpha3_pod_group_list import V1alpha3PodGroupList as V1alpha3PodGroupList + from kubernetes.aio.client.models.v1alpha3_pod_group_resource_claim import V1alpha3PodGroupResourceClaim as V1alpha3PodGroupResourceClaim + from kubernetes.aio.client.models.v1alpha3_pod_group_resource_claim_status import V1alpha3PodGroupResourceClaimStatus as V1alpha3PodGroupResourceClaimStatus + from kubernetes.aio.client.models.v1alpha3_pod_group_scheduling_constraints import V1alpha3PodGroupSchedulingConstraints as V1alpha3PodGroupSchedulingConstraints + from kubernetes.aio.client.models.v1alpha3_pod_group_scheduling_policy import V1alpha3PodGroupSchedulingPolicy as V1alpha3PodGroupSchedulingPolicy + from kubernetes.aio.client.models.v1alpha3_pod_group_spec import V1alpha3PodGroupSpec as V1alpha3PodGroupSpec + from kubernetes.aio.client.models.v1alpha3_pod_group_status import V1alpha3PodGroupStatus as V1alpha3PodGroupStatus + from kubernetes.aio.client.models.v1alpha3_pod_group_template import V1alpha3PodGroupTemplate as V1alpha3PodGroupTemplate from kubernetes.aio.client.models.v1alpha3_pool_status import V1alpha3PoolStatus as V1alpha3PoolStatus from kubernetes.aio.client.models.v1alpha3_resource_pool_status_request import V1alpha3ResourcePoolStatusRequest as V1alpha3ResourcePoolStatusRequest from kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_list import V1alpha3ResourcePoolStatusRequestList as V1alpha3ResourcePoolStatusRequestList from kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_spec import V1alpha3ResourcePoolStatusRequestSpec as V1alpha3ResourcePoolStatusRequestSpec from kubernetes.aio.client.models.v1alpha3_resource_pool_status_request_status import V1alpha3ResourcePoolStatusRequestStatus as V1alpha3ResourcePoolStatusRequestStatus + from kubernetes.aio.client.models.v1alpha3_shareable_capacity_status import V1alpha3ShareableCapacityStatus as V1alpha3ShareableCapacityStatus + from kubernetes.aio.client.models.v1alpha3_shareable_summary_status import V1alpha3ShareableSummaryStatus as V1alpha3ShareableSummaryStatus + from kubernetes.aio.client.models.v1alpha3_topology_constraint import V1alpha3TopologyConstraint as V1alpha3TopologyConstraint + from kubernetes.aio.client.models.v1alpha3_typed_local_object_reference import V1alpha3TypedLocalObjectReference as V1alpha3TypedLocalObjectReference + from kubernetes.aio.client.models.v1alpha3_workload import V1alpha3Workload as V1alpha3Workload + from kubernetes.aio.client.models.v1alpha3_workload_list import V1alpha3WorkloadList as V1alpha3WorkloadList + from kubernetes.aio.client.models.v1alpha3_workload_pod_group_disruption_mode import V1alpha3WorkloadPodGroupDisruptionMode as V1alpha3WorkloadPodGroupDisruptionMode + from kubernetes.aio.client.models.v1alpha3_workload_pod_group_gang_scheduling_policy import V1alpha3WorkloadPodGroupGangSchedulingPolicy as V1alpha3WorkloadPodGroupGangSchedulingPolicy + from kubernetes.aio.client.models.v1alpha3_workload_pod_group_resource_claim import V1alpha3WorkloadPodGroupResourceClaim as V1alpha3WorkloadPodGroupResourceClaim + from kubernetes.aio.client.models.v1alpha3_workload_pod_group_scheduling_constraints import V1alpha3WorkloadPodGroupSchedulingConstraints as V1alpha3WorkloadPodGroupSchedulingConstraints + from kubernetes.aio.client.models.v1alpha3_workload_pod_group_scheduling_policy import V1alpha3WorkloadPodGroupSchedulingPolicy as V1alpha3WorkloadPodGroupSchedulingPolicy + from kubernetes.aio.client.models.v1alpha3_workload_reference import V1alpha3WorkloadReference as V1alpha3WorkloadReference + from kubernetes.aio.client.models.v1alpha3_workload_spec import V1alpha3WorkloadSpec as V1alpha3WorkloadSpec from kubernetes.aio.client.models.v1beta1_allocated_device_status import V1beta1AllocatedDeviceStatus as V1beta1AllocatedDeviceStatus from kubernetes.aio.client.models.v1beta1_allocation_result import V1beta1AllocationResult as V1beta1AllocationResult from kubernetes.aio.client.models.v1beta1_apply_configuration import V1beta1ApplyConfiguration as V1beta1ApplyConfiguration @@ -1558,6 +1696,11 @@ from kubernetes.aio.client.models.v1beta1_cluster_trust_bundle import V1beta1ClusterTrustBundle as V1beta1ClusterTrustBundle from kubernetes.aio.client.models.v1beta1_cluster_trust_bundle_list import V1beta1ClusterTrustBundleList as V1beta1ClusterTrustBundleList from kubernetes.aio.client.models.v1beta1_cluster_trust_bundle_spec import V1beta1ClusterTrustBundleSpec as V1beta1ClusterTrustBundleSpec + from kubernetes.aio.client.models.v1beta1_composite_disruption_mode import V1beta1CompositeDisruptionMode as V1beta1CompositeDisruptionMode + from kubernetes.aio.client.models.v1beta1_composite_gang_scheduling_policy import V1beta1CompositeGangSchedulingPolicy as V1beta1CompositeGangSchedulingPolicy + from kubernetes.aio.client.models.v1beta1_composite_pod_group_scheduling_constraints import V1beta1CompositePodGroupSchedulingConstraints as V1beta1CompositePodGroupSchedulingConstraints + from kubernetes.aio.client.models.v1beta1_composite_pod_group_scheduling_policy import V1beta1CompositePodGroupSchedulingPolicy as V1beta1CompositePodGroupSchedulingPolicy + from kubernetes.aio.client.models.v1beta1_composite_pod_group_template import V1beta1CompositePodGroupTemplate as V1beta1CompositePodGroupTemplate from kubernetes.aio.client.models.v1beta1_counter import V1beta1Counter as V1beta1Counter from kubernetes.aio.client.models.v1beta1_counter_set import V1beta1CounterSet as V1beta1CounterSet from kubernetes.aio.client.models.v1beta1_device import V1beta1Device as V1beta1Device @@ -1573,15 +1716,15 @@ from kubernetes.aio.client.models.v1beta1_device_class_spec import V1beta1DeviceClassSpec as V1beta1DeviceClassSpec from kubernetes.aio.client.models.v1beta1_device_constraint import V1beta1DeviceConstraint as V1beta1DeviceConstraint from kubernetes.aio.client.models.v1beta1_device_counter_consumption import V1beta1DeviceCounterConsumption as V1beta1DeviceCounterConsumption + from kubernetes.aio.client.models.v1beta1_device_derived_attribute import V1beta1DeviceDerivedAttribute as V1beta1DeviceDerivedAttribute from kubernetes.aio.client.models.v1beta1_device_request import V1beta1DeviceRequest as V1beta1DeviceRequest from kubernetes.aio.client.models.v1beta1_device_request_allocation_result import V1beta1DeviceRequestAllocationResult as V1beta1DeviceRequestAllocationResult from kubernetes.aio.client.models.v1beta1_device_selector import V1beta1DeviceSelector as V1beta1DeviceSelector from kubernetes.aio.client.models.v1beta1_device_sub_request import V1beta1DeviceSubRequest as V1beta1DeviceSubRequest from kubernetes.aio.client.models.v1beta1_device_taint import V1beta1DeviceTaint as V1beta1DeviceTaint from kubernetes.aio.client.models.v1beta1_device_toleration import V1beta1DeviceToleration as V1beta1DeviceToleration - from kubernetes.aio.client.models.v1beta1_ip_address import V1beta1IPAddress as V1beta1IPAddress - from kubernetes.aio.client.models.v1beta1_ip_address_list import V1beta1IPAddressList as V1beta1IPAddressList - from kubernetes.aio.client.models.v1beta1_ip_address_spec import V1beta1IPAddressSpec as V1beta1IPAddressSpec + from kubernetes.aio.client.models.v1beta1_disruption_mode import V1beta1DisruptionMode as V1beta1DisruptionMode + from kubernetes.aio.client.models.v1beta1_gang_scheduling_policy import V1beta1GangSchedulingPolicy as V1beta1GangSchedulingPolicy from kubernetes.aio.client.models.v1beta1_json_patch import V1beta1JSONPatch as V1beta1JSONPatch from kubernetes.aio.client.models.v1beta1_lease_candidate import V1beta1LeaseCandidate as V1beta1LeaseCandidate from kubernetes.aio.client.models.v1beta1_lease_candidate_list import V1beta1LeaseCandidateList as V1beta1LeaseCandidateList @@ -1597,15 +1740,25 @@ from kubernetes.aio.client.models.v1beta1_mutation import V1beta1Mutation as V1beta1Mutation from kubernetes.aio.client.models.v1beta1_named_rule_with_operations import V1beta1NamedRuleWithOperations as V1beta1NamedRuleWithOperations from kubernetes.aio.client.models.v1beta1_network_device_data import V1beta1NetworkDeviceData as V1beta1NetworkDeviceData - from kubernetes.aio.client.models.v1beta1_node_allocatable_resource_mapping import V1beta1NodeAllocatableResourceMapping as V1beta1NodeAllocatableResourceMapping + from kubernetes.aio.client.models.v1beta1_node_allocatable_mapping import V1beta1NodeAllocatableMapping as V1beta1NodeAllocatableMapping + from kubernetes.aio.client.models.v1beta1_node_allocatable_overhead import V1beta1NodeAllocatableOverhead as V1beta1NodeAllocatableOverhead + from kubernetes.aio.client.models.v1beta1_node_allocatable_resource import V1beta1NodeAllocatableResource as V1beta1NodeAllocatableResource from kubernetes.aio.client.models.v1beta1_opaque_device_configuration import V1beta1OpaqueDeviceConfiguration as V1beta1OpaqueDeviceConfiguration from kubernetes.aio.client.models.v1beta1_param_kind import V1beta1ParamKind as V1beta1ParamKind from kubernetes.aio.client.models.v1beta1_param_ref import V1beta1ParamRef as V1beta1ParamRef - from kubernetes.aio.client.models.v1beta1_parent_reference import V1beta1ParentReference as V1beta1ParentReference from kubernetes.aio.client.models.v1beta1_pod_certificate_request import V1beta1PodCertificateRequest as V1beta1PodCertificateRequest from kubernetes.aio.client.models.v1beta1_pod_certificate_request_list import V1beta1PodCertificateRequestList as V1beta1PodCertificateRequestList from kubernetes.aio.client.models.v1beta1_pod_certificate_request_spec import V1beta1PodCertificateRequestSpec as V1beta1PodCertificateRequestSpec from kubernetes.aio.client.models.v1beta1_pod_certificate_request_status import V1beta1PodCertificateRequestStatus as V1beta1PodCertificateRequestStatus + from kubernetes.aio.client.models.v1beta1_pod_group import V1beta1PodGroup as V1beta1PodGroup + from kubernetes.aio.client.models.v1beta1_pod_group_list import V1beta1PodGroupList as V1beta1PodGroupList + from kubernetes.aio.client.models.v1beta1_pod_group_resource_claim import V1beta1PodGroupResourceClaim as V1beta1PodGroupResourceClaim + from kubernetes.aio.client.models.v1beta1_pod_group_resource_claim_status import V1beta1PodGroupResourceClaimStatus as V1beta1PodGroupResourceClaimStatus + from kubernetes.aio.client.models.v1beta1_pod_group_scheduling_constraints import V1beta1PodGroupSchedulingConstraints as V1beta1PodGroupSchedulingConstraints + from kubernetes.aio.client.models.v1beta1_pod_group_scheduling_policy import V1beta1PodGroupSchedulingPolicy as V1beta1PodGroupSchedulingPolicy + from kubernetes.aio.client.models.v1beta1_pod_group_spec import V1beta1PodGroupSpec as V1beta1PodGroupSpec + from kubernetes.aio.client.models.v1beta1_pod_group_status import V1beta1PodGroupStatus as V1beta1PodGroupStatus + from kubernetes.aio.client.models.v1beta1_pod_group_template import V1beta1PodGroupTemplate as V1beta1PodGroupTemplate from kubernetes.aio.client.models.v1beta1_resource_claim import V1beta1ResourceClaim as V1beta1ResourceClaim from kubernetes.aio.client.models.v1beta1_resource_claim_consumer_reference import V1beta1ResourceClaimConsumerReference as V1beta1ResourceClaimConsumerReference from kubernetes.aio.client.models.v1beta1_resource_claim_list import V1beta1ResourceClaimList as V1beta1ResourceClaimList @@ -1618,17 +1771,17 @@ from kubernetes.aio.client.models.v1beta1_resource_slice import V1beta1ResourceSlice as V1beta1ResourceSlice from kubernetes.aio.client.models.v1beta1_resource_slice_list import V1beta1ResourceSliceList as V1beta1ResourceSliceList from kubernetes.aio.client.models.v1beta1_resource_slice_spec import V1beta1ResourceSliceSpec as V1beta1ResourceSliceSpec - from kubernetes.aio.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR as V1beta1ServiceCIDR - from kubernetes.aio.client.models.v1beta1_service_cidr_list import V1beta1ServiceCIDRList as V1beta1ServiceCIDRList - from kubernetes.aio.client.models.v1beta1_service_cidr_spec import V1beta1ServiceCIDRSpec as V1beta1ServiceCIDRSpec - from kubernetes.aio.client.models.v1beta1_service_cidr_status import V1beta1ServiceCIDRStatus as V1beta1ServiceCIDRStatus from kubernetes.aio.client.models.v1beta1_storage_version_migration import V1beta1StorageVersionMigration as V1beta1StorageVersionMigration from kubernetes.aio.client.models.v1beta1_storage_version_migration_list import V1beta1StorageVersionMigrationList as V1beta1StorageVersionMigrationList from kubernetes.aio.client.models.v1beta1_storage_version_migration_spec import V1beta1StorageVersionMigrationSpec as V1beta1StorageVersionMigrationSpec from kubernetes.aio.client.models.v1beta1_storage_version_migration_status import V1beta1StorageVersionMigrationStatus as V1beta1StorageVersionMigrationStatus + from kubernetes.aio.client.models.v1beta1_topology_constraint import V1beta1TopologyConstraint as V1beta1TopologyConstraint + from kubernetes.aio.client.models.v1beta1_typed_local_object_reference import V1beta1TypedLocalObjectReference as V1beta1TypedLocalObjectReference from kubernetes.aio.client.models.v1beta1_variable import V1beta1Variable as V1beta1Variable - from kubernetes.aio.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass as V1beta1VolumeAttributesClass - from kubernetes.aio.client.models.v1beta1_volume_attributes_class_list import V1beta1VolumeAttributesClassList as V1beta1VolumeAttributesClassList + from kubernetes.aio.client.models.v1beta1_workload import V1beta1Workload as V1beta1Workload + from kubernetes.aio.client.models.v1beta1_workload_list import V1beta1WorkloadList as V1beta1WorkloadList + from kubernetes.aio.client.models.v1beta1_workload_reference import V1beta1WorkloadReference as V1beta1WorkloadReference + from kubernetes.aio.client.models.v1beta1_workload_spec import V1beta1WorkloadSpec as V1beta1WorkloadSpec from kubernetes.aio.client.models.v1beta2_allocated_device_status import V1beta2AllocatedDeviceStatus as V1beta2AllocatedDeviceStatus from kubernetes.aio.client.models.v1beta2_allocation_result import V1beta2AllocationResult as V1beta2AllocationResult from kubernetes.aio.client.models.v1beta2_cel_device_selector import V1beta2CELDeviceSelector as V1beta2CELDeviceSelector @@ -1650,6 +1803,7 @@ from kubernetes.aio.client.models.v1beta2_device_class_spec import V1beta2DeviceClassSpec as V1beta2DeviceClassSpec from kubernetes.aio.client.models.v1beta2_device_constraint import V1beta2DeviceConstraint as V1beta2DeviceConstraint from kubernetes.aio.client.models.v1beta2_device_counter_consumption import V1beta2DeviceCounterConsumption as V1beta2DeviceCounterConsumption + from kubernetes.aio.client.models.v1beta2_device_derived_attribute import V1beta2DeviceDerivedAttribute as V1beta2DeviceDerivedAttribute from kubernetes.aio.client.models.v1beta2_device_request import V1beta2DeviceRequest as V1beta2DeviceRequest from kubernetes.aio.client.models.v1beta2_device_request_allocation_result import V1beta2DeviceRequestAllocationResult as V1beta2DeviceRequestAllocationResult from kubernetes.aio.client.models.v1beta2_device_selector import V1beta2DeviceSelector as V1beta2DeviceSelector @@ -1663,7 +1817,9 @@ from kubernetes.aio.client.models.v1beta2_device_toleration import V1beta2DeviceToleration as V1beta2DeviceToleration from kubernetes.aio.client.models.v1beta2_exact_device_request import V1beta2ExactDeviceRequest as V1beta2ExactDeviceRequest from kubernetes.aio.client.models.v1beta2_network_device_data import V1beta2NetworkDeviceData as V1beta2NetworkDeviceData - from kubernetes.aio.client.models.v1beta2_node_allocatable_resource_mapping import V1beta2NodeAllocatableResourceMapping as V1beta2NodeAllocatableResourceMapping + from kubernetes.aio.client.models.v1beta2_node_allocatable_mapping import V1beta2NodeAllocatableMapping as V1beta2NodeAllocatableMapping + from kubernetes.aio.client.models.v1beta2_node_allocatable_overhead import V1beta2NodeAllocatableOverhead as V1beta2NodeAllocatableOverhead + from kubernetes.aio.client.models.v1beta2_node_allocatable_resource import V1beta2NodeAllocatableResource as V1beta2NodeAllocatableResource from kubernetes.aio.client.models.v1beta2_opaque_device_configuration import V1beta2OpaqueDeviceConfiguration as V1beta2OpaqueDeviceConfiguration from kubernetes.aio.client.models.v1beta2_resource_claim import V1beta2ResourceClaim as V1beta2ResourceClaim from kubernetes.aio.client.models.v1beta2_resource_claim_consumer_reference import V1beta2ResourceClaimConsumerReference as V1beta2ResourceClaimConsumerReference @@ -1740,7 +1896,6 @@ "BatchV1Api": ".api.batch_v1_api", "CertificatesApi": ".api.certificates_api", "CertificatesV1Api": ".api.certificates_v1_api", - "CertificatesV1alpha1Api": ".api.certificates_v1alpha1_api", "CertificatesV1beta1Api": ".api.certificates_v1beta1_api", "CoordinationApi": ".api.coordination_api", "CoordinationV1Api": ".api.coordination_v1_api", @@ -1757,10 +1912,11 @@ "FlowcontrolApiserverV1Api": ".api.flowcontrol_apiserver_v1_api", "InternalApiserverApi": ".api.internal_apiserver_api", "InternalApiserverV1alpha1Api": ".api.internal_apiserver_v1alpha1_api", + "LifecycleApi": ".api.lifecycle_api", + "LifecycleV1alpha1Api": ".api.lifecycle_v1alpha1_api", "LogsApi": ".api.logs_api", "NetworkingApi": ".api.networking_api", "NetworkingV1Api": ".api.networking_v1_api", - "NetworkingV1beta1Api": ".api.networking_v1beta1_api", "NodeApi": ".api.node_api", "NodeV1Api": ".api.node_v1_api", "OpenidApi": ".api.openid_api", @@ -1775,11 +1931,12 @@ "ResourceV1beta2Api": ".api.resource_v1beta2_api", "SchedulingApi": ".api.scheduling_api", "SchedulingV1Api": ".api.scheduling_v1_api", - "SchedulingV1alpha2Api": ".api.scheduling_v1alpha2_api", + "SchedulingV1alpha3Api": ".api.scheduling_v1alpha3_api", + "SchedulingV1beta1Api": ".api.scheduling_v1beta1_api", "StorageApi": ".api.storage_api", "StorageV1Api": ".api.storage_v1_api", - "StorageV1beta1Api": ".api.storage_v1beta1_api", "StoragemigrationApi": ".api.storagemigration_api", + "StoragemigrationV1Api": ".api.storagemigration_v1_api", "StoragemigrationV1beta1Api": ".api.storagemigration_v1beta1_api", "VersionApi": ".api.version_api", "ApiResponse": ".api_response", @@ -1842,6 +1999,7 @@ "V1CSINodeDriver": ".models.v1_csi_node_driver", "V1CSINodeList": ".models.v1_csi_node_list", "V1CSINodeSpec": ".models.v1_csi_node_spec", + "V1CSINodeStatus": ".models.v1_csi_node_status", "V1CSIPersistentVolumeSource": ".models.v1_csi_persistent_volume_source", "V1CSIStorageCapacity": ".models.v1_csi_storage_capacity", "V1CSIStorageCapacityList": ".models.v1_csi_storage_capacity_list", @@ -1864,7 +2022,10 @@ "V1ClusterRoleBinding": ".models.v1_cluster_role_binding", "V1ClusterRoleBindingList": ".models.v1_cluster_role_binding_list", "V1ClusterRoleList": ".models.v1_cluster_role_list", + "V1ClusterTrustBundle": ".models.v1_cluster_trust_bundle", + "V1ClusterTrustBundleList": ".models.v1_cluster_trust_bundle_list", "V1ClusterTrustBundleProjection": ".models.v1_cluster_trust_bundle_projection", + "V1ClusterTrustBundleSpec": ".models.v1_cluster_trust_bundle_spec", "V1ComponentCondition": ".models.v1_component_condition", "V1ComponentStatus": ".models.v1_component_status", "V1ComponentStatusList": ".models.v1_component_status_list", @@ -1937,11 +2098,17 @@ "V1DeviceClassSpec": ".models.v1_device_class_spec", "V1DeviceConstraint": ".models.v1_device_constraint", "V1DeviceCounterConsumption": ".models.v1_device_counter_consumption", + "V1DeviceDerivedAttribute": ".models.v1_device_derived_attribute", "V1DeviceRequest": ".models.v1_device_request", "V1DeviceRequestAllocationResult": ".models.v1_device_request_allocation_result", "V1DeviceSelector": ".models.v1_device_selector", "V1DeviceSubRequest": ".models.v1_device_sub_request", "V1DeviceTaint": ".models.v1_device_taint", + "V1DeviceTaintRule": ".models.v1_device_taint_rule", + "V1DeviceTaintRuleList": ".models.v1_device_taint_rule_list", + "V1DeviceTaintRuleSpec": ".models.v1_device_taint_rule_spec", + "V1DeviceTaintRuleStatus": ".models.v1_device_taint_rule_status", + "V1DeviceTaintSelector": ".models.v1_device_taint_selector", "V1DeviceToleration": ".models.v1_device_toleration", "V1DownwardAPIProjection": ".models.v1_downward_api_projection", "V1DownwardAPIVolumeFile": ".models.v1_downward_api_volume_file", @@ -1963,6 +2130,7 @@ "V1EphemeralVolumeSource": ".models.v1_ephemeral_volume_source", "V1EventSource": ".models.v1_event_source", "V1Eviction": ".models.v1_eviction", + "V1EvictionResponder": ".models.v1_eviction_responder", "V1ExactDeviceRequest": ".models.v1_exact_device_request", "V1ExecAction": ".models.v1_exec_action", "V1ExemptPriorityLevelConfiguration": ".models.v1_exempt_priority_level_configuration", @@ -2031,6 +2199,7 @@ "V1Job": ".models.v1_job", "V1JobCondition": ".models.v1_job_condition", "V1JobList": ".models.v1_job_list", + "V1JobSchedulingConfiguration": ".models.v1_job_scheduling_configuration", "V1JobSpec": ".models.v1_job_spec", "V1JobStatus": ".models.v1_job_status", "V1JobTemplateSpec": ".models.v1_job_template_spec", @@ -2088,14 +2257,19 @@ "V1Node": ".models.v1_node", "V1NodeAddress": ".models.v1_node_address", "V1NodeAffinity": ".models.v1_node_affinity", + "V1NodeAllocatableMappedResources": ".models.v1_node_allocatable_mapped_resources", + "V1NodeAllocatableMapping": ".models.v1_node_allocatable_mapping", + "V1NodeAllocatableOverhead": ".models.v1_node_allocatable_overhead", + "V1NodeAllocatableOverheadResources": ".models.v1_node_allocatable_overhead_resources", + "V1NodeAllocatableResource": ".models.v1_node_allocatable_resource", "V1NodeAllocatableResourceClaimStatus": ".models.v1_node_allocatable_resource_claim_status", - "V1NodeAllocatableResourceMapping": ".models.v1_node_allocatable_resource_mapping", "V1NodeCondition": ".models.v1_node_condition", "V1NodeConfigSource": ".models.v1_node_config_source", "V1NodeConfigStatus": ".models.v1_node_config_status", "V1NodeDaemonEndpoints": ".models.v1_node_daemon_endpoints", "V1NodeFeatures": ".models.v1_node_features", "V1NodeList": ".models.v1_node_list", + "V1NodePodPreemptionPolicy": ".models.v1_node_pod_preemption_policy", "V1NodeRuntimeHandler": ".models.v1_node_runtime_handler", "V1NodeRuntimeHandlerFeatures": ".models.v1_node_runtime_handler_features", "V1NodeSelector": ".models.v1_node_selector", @@ -2134,6 +2308,10 @@ "V1PodAffinityTerm": ".models.v1_pod_affinity_term", "V1PodAntiAffinity": ".models.v1_pod_anti_affinity", "V1PodCertificateProjection": ".models.v1_pod_certificate_projection", + "V1PodCertificateRequest": ".models.v1_pod_certificate_request", + "V1PodCertificateRequestList": ".models.v1_pod_certificate_request_list", + "V1PodCertificateRequestSpec": ".models.v1_pod_certificate_request_spec", + "V1PodCertificateRequestStatus": ".models.v1_pod_certificate_request_status", "V1PodCondition": ".models.v1_pod_condition", "V1PodDNSConfig": ".models.v1_pod_dns_config", "V1PodDNSConfigOption": ".models.v1_pod_dns_config_option", @@ -2160,6 +2338,7 @@ "V1PodTemplate": ".models.v1_pod_template", "V1PodTemplateList": ".models.v1_pod_template_list", "V1PodTemplateSpec": ".models.v1_pod_template_spec", + "V1PodVolumeHealth": ".models.v1_pod_volume_health", "V1PolicyRule": ".models.v1_policy_rule", "V1PolicyRulesWithSubjects": ".models.v1_policy_rules_with_subjects", "V1PortStatus": ".models.v1_port_status", @@ -2279,8 +2458,14 @@ "V1StatusDetails": ".models.v1_status_details", "V1StorageClass": ".models.v1_storage_class", "V1StorageClassList": ".models.v1_storage_class_list", + "V1StorageHealth": ".models.v1_storage_health", + "V1StorageHealthCondition": ".models.v1_storage_health_condition", "V1StorageOSPersistentVolumeSource": ".models.v1_storage_os_persistent_volume_source", "V1StorageOSVolumeSource": ".models.v1_storage_os_volume_source", + "V1StorageVersionMigration": ".models.v1_storage_version_migration", + "V1StorageVersionMigrationList": ".models.v1_storage_version_migration_list", + "V1StorageVersionMigrationSpec": ".models.v1_storage_version_migration_spec", + "V1StorageVersionMigrationStatus": ".models.v1_storage_version_migration_status", "V1SubjectAccessReview": ".models.v1_subject_access_review", "V1SubjectAccessReviewSpec": ".models.v1_subject_access_review_spec", "V1SubjectAccessReviewStatus": ".models.v1_subject_access_review_status", @@ -2328,6 +2513,8 @@ "V1VolumeAttributesClassList": ".models.v1_volume_attributes_class_list", "V1VolumeDevice": ".models.v1_volume_device", "V1VolumeError": ".models.v1_volume_error", + "V1VolumeHealthCondition": ".models.v1_volume_health_condition", + "V1VolumeHealthStatus": ".models.v1_volume_health_status", "V1VolumeMount": ".models.v1_volume_mount", "V1VolumeMountStatus": ".models.v1_volume_mount_status", "V1VolumeNodeAffinity": ".models.v1_volume_node_affinity", @@ -2341,9 +2528,18 @@ "V1WeightedPodAffinityTerm": ".models.v1_weighted_pod_affinity_term", "V1WindowsSecurityContextOptions": ".models.v1_windows_security_context_options", "V1alpha1ApplyConfiguration": ".models.v1alpha1_apply_configuration", - "V1alpha1ClusterTrustBundle": ".models.v1alpha1_cluster_trust_bundle", - "V1alpha1ClusterTrustBundleList": ".models.v1alpha1_cluster_trust_bundle_list", - "V1alpha1ClusterTrustBundleSpec": ".models.v1alpha1_cluster_trust_bundle_spec", + "V1alpha1Eviction": ".models.v1alpha1_eviction", + "V1alpha1EvictionList": ".models.v1alpha1_eviction_list", + "V1alpha1EvictionPodReference": ".models.v1alpha1_eviction_pod_reference", + "V1alpha1EvictionRequest": ".models.v1alpha1_eviction_request", + "V1alpha1EvictionRequestList": ".models.v1alpha1_eviction_request_list", + "V1alpha1EvictionRequestPodReference": ".models.v1alpha1_eviction_request_pod_reference", + "V1alpha1EvictionRequestSpec": ".models.v1alpha1_eviction_request_spec", + "V1alpha1EvictionRequestStatus": ".models.v1alpha1_eviction_request_status", + "V1alpha1EvictionRequestTarget": ".models.v1alpha1_eviction_request_target", + "V1alpha1EvictionSpec": ".models.v1alpha1_eviction_spec", + "V1alpha1EvictionStatus": ".models.v1alpha1_eviction_status", + "V1alpha1EvictionTarget": ".models.v1alpha1_eviction_target", "V1alpha1JSONPatch": ".models.v1alpha1_json_patch", "V1alpha1MatchCondition": ".models.v1alpha1_match_condition", "V1alpha1MatchResources": ".models.v1alpha1_match_resources", @@ -2357,43 +2553,63 @@ "V1alpha1NamedRuleWithOperations": ".models.v1alpha1_named_rule_with_operations", "V1alpha1ParamKind": ".models.v1alpha1_param_kind", "V1alpha1ParamRef": ".models.v1alpha1_param_ref", + "V1alpha1Requester": ".models.v1alpha1_requester", + "V1alpha1ResponderStatus": ".models.v1alpha1_responder_status", "V1alpha1ServerStorageVersion": ".models.v1alpha1_server_storage_version", "V1alpha1StorageVersion": ".models.v1alpha1_storage_version", "V1alpha1StorageVersionCondition": ".models.v1alpha1_storage_version_condition", "V1alpha1StorageVersionList": ".models.v1alpha1_storage_version_list", "V1alpha1StorageVersionStatus": ".models.v1alpha1_storage_version_status", + "V1alpha1TargetResponder": ".models.v1alpha1_target_responder", "V1alpha1Variable": ".models.v1alpha1_variable", - "V1alpha2GangSchedulingPolicy": ".models.v1alpha2_gang_scheduling_policy", "V1alpha2LeaseCandidate": ".models.v1alpha2_lease_candidate", "V1alpha2LeaseCandidateList": ".models.v1alpha2_lease_candidate_list", "V1alpha2LeaseCandidateSpec": ".models.v1alpha2_lease_candidate_spec", - "V1alpha2PodGroup": ".models.v1alpha2_pod_group", - "V1alpha2PodGroupList": ".models.v1alpha2_pod_group_list", - "V1alpha2PodGroupResourceClaim": ".models.v1alpha2_pod_group_resource_claim", - "V1alpha2PodGroupResourceClaimStatus": ".models.v1alpha2_pod_group_resource_claim_status", - "V1alpha2PodGroupSchedulingConstraints": ".models.v1alpha2_pod_group_scheduling_constraints", - "V1alpha2PodGroupSchedulingPolicy": ".models.v1alpha2_pod_group_scheduling_policy", - "V1alpha2PodGroupSpec": ".models.v1alpha2_pod_group_spec", - "V1alpha2PodGroupStatus": ".models.v1alpha2_pod_group_status", - "V1alpha2PodGroupTemplate": ".models.v1alpha2_pod_group_template", - "V1alpha2PodGroupTemplateReference": ".models.v1alpha2_pod_group_template_reference", - "V1alpha2TopologyConstraint": ".models.v1alpha2_topology_constraint", - "V1alpha2TypedLocalObjectReference": ".models.v1alpha2_typed_local_object_reference", - "V1alpha2Workload": ".models.v1alpha2_workload", - "V1alpha2WorkloadList": ".models.v1alpha2_workload_list", - "V1alpha2WorkloadPodGroupTemplateReference": ".models.v1alpha2_workload_pod_group_template_reference", - "V1alpha2WorkloadSpec": ".models.v1alpha2_workload_spec", + "V1alpha3CompositeDisruptionMode": ".models.v1alpha3_composite_disruption_mode", + "V1alpha3CompositeGangSchedulingPolicy": ".models.v1alpha3_composite_gang_scheduling_policy", + "V1alpha3CompositePodGroup": ".models.v1alpha3_composite_pod_group", + "V1alpha3CompositePodGroupList": ".models.v1alpha3_composite_pod_group_list", + "V1alpha3CompositePodGroupSchedulingConstraints": ".models.v1alpha3_composite_pod_group_scheduling_constraints", + "V1alpha3CompositePodGroupSchedulingPolicy": ".models.v1alpha3_composite_pod_group_scheduling_policy", + "V1alpha3CompositePodGroupSpec": ".models.v1alpha3_composite_pod_group_spec", + "V1alpha3CompositePodGroupStatus": ".models.v1alpha3_composite_pod_group_status", + "V1alpha3CompositePodGroupTemplate": ".models.v1alpha3_composite_pod_group_template", "V1alpha3DeviceTaint": ".models.v1alpha3_device_taint", "V1alpha3DeviceTaintRule": ".models.v1alpha3_device_taint_rule", "V1alpha3DeviceTaintRuleList": ".models.v1alpha3_device_taint_rule_list", "V1alpha3DeviceTaintRuleSpec": ".models.v1alpha3_device_taint_rule_spec", "V1alpha3DeviceTaintRuleStatus": ".models.v1alpha3_device_taint_rule_status", "V1alpha3DeviceTaintSelector": ".models.v1alpha3_device_taint_selector", + "V1alpha3DisruptionMode": ".models.v1alpha3_disruption_mode", + "V1alpha3GangSchedulingPolicy": ".models.v1alpha3_gang_scheduling_policy", + "V1alpha3PartitionTypeStatus": ".models.v1alpha3_partition_type_status", + "V1alpha3PodGroup": ".models.v1alpha3_pod_group", + "V1alpha3PodGroupList": ".models.v1alpha3_pod_group_list", + "V1alpha3PodGroupResourceClaim": ".models.v1alpha3_pod_group_resource_claim", + "V1alpha3PodGroupResourceClaimStatus": ".models.v1alpha3_pod_group_resource_claim_status", + "V1alpha3PodGroupSchedulingConstraints": ".models.v1alpha3_pod_group_scheduling_constraints", + "V1alpha3PodGroupSchedulingPolicy": ".models.v1alpha3_pod_group_scheduling_policy", + "V1alpha3PodGroupSpec": ".models.v1alpha3_pod_group_spec", + "V1alpha3PodGroupStatus": ".models.v1alpha3_pod_group_status", + "V1alpha3PodGroupTemplate": ".models.v1alpha3_pod_group_template", "V1alpha3PoolStatus": ".models.v1alpha3_pool_status", "V1alpha3ResourcePoolStatusRequest": ".models.v1alpha3_resource_pool_status_request", "V1alpha3ResourcePoolStatusRequestList": ".models.v1alpha3_resource_pool_status_request_list", "V1alpha3ResourcePoolStatusRequestSpec": ".models.v1alpha3_resource_pool_status_request_spec", "V1alpha3ResourcePoolStatusRequestStatus": ".models.v1alpha3_resource_pool_status_request_status", + "V1alpha3ShareableCapacityStatus": ".models.v1alpha3_shareable_capacity_status", + "V1alpha3ShareableSummaryStatus": ".models.v1alpha3_shareable_summary_status", + "V1alpha3TopologyConstraint": ".models.v1alpha3_topology_constraint", + "V1alpha3TypedLocalObjectReference": ".models.v1alpha3_typed_local_object_reference", + "V1alpha3Workload": ".models.v1alpha3_workload", + "V1alpha3WorkloadList": ".models.v1alpha3_workload_list", + "V1alpha3WorkloadPodGroupDisruptionMode": ".models.v1alpha3_workload_pod_group_disruption_mode", + "V1alpha3WorkloadPodGroupGangSchedulingPolicy": ".models.v1alpha3_workload_pod_group_gang_scheduling_policy", + "V1alpha3WorkloadPodGroupResourceClaim": ".models.v1alpha3_workload_pod_group_resource_claim", + "V1alpha3WorkloadPodGroupSchedulingConstraints": ".models.v1alpha3_workload_pod_group_scheduling_constraints", + "V1alpha3WorkloadPodGroupSchedulingPolicy": ".models.v1alpha3_workload_pod_group_scheduling_policy", + "V1alpha3WorkloadReference": ".models.v1alpha3_workload_reference", + "V1alpha3WorkloadSpec": ".models.v1alpha3_workload_spec", "V1beta1AllocatedDeviceStatus": ".models.v1beta1_allocated_device_status", "V1beta1AllocationResult": ".models.v1beta1_allocation_result", "V1beta1ApplyConfiguration": ".models.v1beta1_apply_configuration", @@ -2405,6 +2621,11 @@ "V1beta1ClusterTrustBundle": ".models.v1beta1_cluster_trust_bundle", "V1beta1ClusterTrustBundleList": ".models.v1beta1_cluster_trust_bundle_list", "V1beta1ClusterTrustBundleSpec": ".models.v1beta1_cluster_trust_bundle_spec", + "V1beta1CompositeDisruptionMode": ".models.v1beta1_composite_disruption_mode", + "V1beta1CompositeGangSchedulingPolicy": ".models.v1beta1_composite_gang_scheduling_policy", + "V1beta1CompositePodGroupSchedulingConstraints": ".models.v1beta1_composite_pod_group_scheduling_constraints", + "V1beta1CompositePodGroupSchedulingPolicy": ".models.v1beta1_composite_pod_group_scheduling_policy", + "V1beta1CompositePodGroupTemplate": ".models.v1beta1_composite_pod_group_template", "V1beta1Counter": ".models.v1beta1_counter", "V1beta1CounterSet": ".models.v1beta1_counter_set", "V1beta1Device": ".models.v1beta1_device", @@ -2420,15 +2641,15 @@ "V1beta1DeviceClassSpec": ".models.v1beta1_device_class_spec", "V1beta1DeviceConstraint": ".models.v1beta1_device_constraint", "V1beta1DeviceCounterConsumption": ".models.v1beta1_device_counter_consumption", + "V1beta1DeviceDerivedAttribute": ".models.v1beta1_device_derived_attribute", "V1beta1DeviceRequest": ".models.v1beta1_device_request", "V1beta1DeviceRequestAllocationResult": ".models.v1beta1_device_request_allocation_result", "V1beta1DeviceSelector": ".models.v1beta1_device_selector", "V1beta1DeviceSubRequest": ".models.v1beta1_device_sub_request", "V1beta1DeviceTaint": ".models.v1beta1_device_taint", "V1beta1DeviceToleration": ".models.v1beta1_device_toleration", - "V1beta1IPAddress": ".models.v1beta1_ip_address", - "V1beta1IPAddressList": ".models.v1beta1_ip_address_list", - "V1beta1IPAddressSpec": ".models.v1beta1_ip_address_spec", + "V1beta1DisruptionMode": ".models.v1beta1_disruption_mode", + "V1beta1GangSchedulingPolicy": ".models.v1beta1_gang_scheduling_policy", "V1beta1JSONPatch": ".models.v1beta1_json_patch", "V1beta1LeaseCandidate": ".models.v1beta1_lease_candidate", "V1beta1LeaseCandidateList": ".models.v1beta1_lease_candidate_list", @@ -2444,15 +2665,25 @@ "V1beta1Mutation": ".models.v1beta1_mutation", "V1beta1NamedRuleWithOperations": ".models.v1beta1_named_rule_with_operations", "V1beta1NetworkDeviceData": ".models.v1beta1_network_device_data", - "V1beta1NodeAllocatableResourceMapping": ".models.v1beta1_node_allocatable_resource_mapping", + "V1beta1NodeAllocatableMapping": ".models.v1beta1_node_allocatable_mapping", + "V1beta1NodeAllocatableOverhead": ".models.v1beta1_node_allocatable_overhead", + "V1beta1NodeAllocatableResource": ".models.v1beta1_node_allocatable_resource", "V1beta1OpaqueDeviceConfiguration": ".models.v1beta1_opaque_device_configuration", "V1beta1ParamKind": ".models.v1beta1_param_kind", "V1beta1ParamRef": ".models.v1beta1_param_ref", - "V1beta1ParentReference": ".models.v1beta1_parent_reference", "V1beta1PodCertificateRequest": ".models.v1beta1_pod_certificate_request", "V1beta1PodCertificateRequestList": ".models.v1beta1_pod_certificate_request_list", "V1beta1PodCertificateRequestSpec": ".models.v1beta1_pod_certificate_request_spec", "V1beta1PodCertificateRequestStatus": ".models.v1beta1_pod_certificate_request_status", + "V1beta1PodGroup": ".models.v1beta1_pod_group", + "V1beta1PodGroupList": ".models.v1beta1_pod_group_list", + "V1beta1PodGroupResourceClaim": ".models.v1beta1_pod_group_resource_claim", + "V1beta1PodGroupResourceClaimStatus": ".models.v1beta1_pod_group_resource_claim_status", + "V1beta1PodGroupSchedulingConstraints": ".models.v1beta1_pod_group_scheduling_constraints", + "V1beta1PodGroupSchedulingPolicy": ".models.v1beta1_pod_group_scheduling_policy", + "V1beta1PodGroupSpec": ".models.v1beta1_pod_group_spec", + "V1beta1PodGroupStatus": ".models.v1beta1_pod_group_status", + "V1beta1PodGroupTemplate": ".models.v1beta1_pod_group_template", "V1beta1ResourceClaim": ".models.v1beta1_resource_claim", "V1beta1ResourceClaimConsumerReference": ".models.v1beta1_resource_claim_consumer_reference", "V1beta1ResourceClaimList": ".models.v1beta1_resource_claim_list", @@ -2465,17 +2696,17 @@ "V1beta1ResourceSlice": ".models.v1beta1_resource_slice", "V1beta1ResourceSliceList": ".models.v1beta1_resource_slice_list", "V1beta1ResourceSliceSpec": ".models.v1beta1_resource_slice_spec", - "V1beta1ServiceCIDR": ".models.v1beta1_service_cidr", - "V1beta1ServiceCIDRList": ".models.v1beta1_service_cidr_list", - "V1beta1ServiceCIDRSpec": ".models.v1beta1_service_cidr_spec", - "V1beta1ServiceCIDRStatus": ".models.v1beta1_service_cidr_status", "V1beta1StorageVersionMigration": ".models.v1beta1_storage_version_migration", "V1beta1StorageVersionMigrationList": ".models.v1beta1_storage_version_migration_list", "V1beta1StorageVersionMigrationSpec": ".models.v1beta1_storage_version_migration_spec", "V1beta1StorageVersionMigrationStatus": ".models.v1beta1_storage_version_migration_status", + "V1beta1TopologyConstraint": ".models.v1beta1_topology_constraint", + "V1beta1TypedLocalObjectReference": ".models.v1beta1_typed_local_object_reference", "V1beta1Variable": ".models.v1beta1_variable", - "V1beta1VolumeAttributesClass": ".models.v1beta1_volume_attributes_class", - "V1beta1VolumeAttributesClassList": ".models.v1beta1_volume_attributes_class_list", + "V1beta1Workload": ".models.v1beta1_workload", + "V1beta1WorkloadList": ".models.v1beta1_workload_list", + "V1beta1WorkloadReference": ".models.v1beta1_workload_reference", + "V1beta1WorkloadSpec": ".models.v1beta1_workload_spec", "V1beta2AllocatedDeviceStatus": ".models.v1beta2_allocated_device_status", "V1beta2AllocationResult": ".models.v1beta2_allocation_result", "V1beta2CELDeviceSelector": ".models.v1beta2_cel_device_selector", @@ -2497,6 +2728,7 @@ "V1beta2DeviceClassSpec": ".models.v1beta2_device_class_spec", "V1beta2DeviceConstraint": ".models.v1beta2_device_constraint", "V1beta2DeviceCounterConsumption": ".models.v1beta2_device_counter_consumption", + "V1beta2DeviceDerivedAttribute": ".models.v1beta2_device_derived_attribute", "V1beta2DeviceRequest": ".models.v1beta2_device_request", "V1beta2DeviceRequestAllocationResult": ".models.v1beta2_device_request_allocation_result", "V1beta2DeviceSelector": ".models.v1beta2_device_selector", @@ -2510,7 +2742,9 @@ "V1beta2DeviceToleration": ".models.v1beta2_device_toleration", "V1beta2ExactDeviceRequest": ".models.v1beta2_exact_device_request", "V1beta2NetworkDeviceData": ".models.v1beta2_network_device_data", - "V1beta2NodeAllocatableResourceMapping": ".models.v1beta2_node_allocatable_resource_mapping", + "V1beta2NodeAllocatableMapping": ".models.v1beta2_node_allocatable_mapping", + "V1beta2NodeAllocatableOverhead": ".models.v1beta2_node_allocatable_overhead", + "V1beta2NodeAllocatableResource": ".models.v1beta2_node_allocatable_resource", "V1beta2OpaqueDeviceConfiguration": ".models.v1beta2_opaque_device_configuration", "V1beta2ResourceClaim": ".models.v1beta2_resource_claim", "V1beta2ResourceClaimConsumerReference": ".models.v1beta2_resource_claim_consumer_reference", diff --git a/kubernetes/aio/client/api_client.py b/kubernetes/aio/client/api_client.py index 8d16f933a2..3595abd6bb 100644 --- a/kubernetes/aio/client/api_client.py +++ b/kubernetes/aio/client/api_client.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -122,7 +122,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/36.0.0+snapshot/python' + self.user_agent = 'OpenAPI-Generator/37.0.0+snapshot/python' self.client_side_validation = configuration.client_side_validation async def __aenter__(self): diff --git a/kubernetes/aio/client/configuration.py b/kubernetes/aio/client/configuration.py index c26bac633e..0564e4fc29 100644 --- a/kubernetes/aio/client/configuration.py +++ b/kubernetes/aio/client/configuration.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -611,8 +611,8 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: release-1.36\n"\ - "SDK Package Version: 36.0.0+snapshot".\ + "Version of the API: release-1.37\n"\ + "SDK Package Version: 37.0.0+snapshot".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/kubernetes/aio/client/exceptions.py b/kubernetes/aio/client/exceptions.py index 29fa5db711..819e2062ca 100644 --- a/kubernetes/aio/client/exceptions.py +++ b/kubernetes/aio/client/exceptions.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/aio/client/rest.py b/kubernetes/aio/client/rest.py index 3b42378ad3..4c07faa125 100644 --- a/kubernetes/aio/client/rest.py +++ b/kubernetes/aio/client/rest.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/__init__.py b/kubernetes/client/__init__.py index 4d39dd9a6f..9eb960dd90 100644 --- a/kubernetes/client/__init__.py +++ b/kubernetes/client/__init__.py @@ -7,14 +7,14 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 -__version__ = "36.0.0+snapshot" +__version__ = "37.0.0+snapshot" # Define package exports __all__ = [ @@ -41,7 +41,6 @@ "BatchV1Api", "CertificatesApi", "CertificatesV1Api", - "CertificatesV1alpha1Api", "CertificatesV1beta1Api", "CoordinationApi", "CoordinationV1Api", @@ -58,10 +57,11 @@ "FlowcontrolApiserverV1Api", "InternalApiserverApi", "InternalApiserverV1alpha1Api", + "LifecycleApi", + "LifecycleV1alpha1Api", "LogsApi", "NetworkingApi", "NetworkingV1Api", - "NetworkingV1beta1Api", "NodeApi", "NodeV1Api", "OpenidApi", @@ -76,11 +76,12 @@ "ResourceV1beta2Api", "SchedulingApi", "SchedulingV1Api", - "SchedulingV1alpha2Api", + "SchedulingV1alpha3Api", + "SchedulingV1beta1Api", "StorageApi", "StorageV1Api", - "StorageV1beta1Api", "StoragemigrationApi", + "StoragemigrationV1Api", "StoragemigrationV1beta1Api", "VersionApi", "ApiResponse", @@ -143,6 +144,7 @@ "V1CSINodeDriver", "V1CSINodeList", "V1CSINodeSpec", + "V1CSINodeStatus", "V1CSIPersistentVolumeSource", "V1CSIStorageCapacity", "V1CSIStorageCapacityList", @@ -165,7 +167,10 @@ "V1ClusterRoleBinding", "V1ClusterRoleBindingList", "V1ClusterRoleList", + "V1ClusterTrustBundle", + "V1ClusterTrustBundleList", "V1ClusterTrustBundleProjection", + "V1ClusterTrustBundleSpec", "V1ComponentCondition", "V1ComponentStatus", "V1ComponentStatusList", @@ -238,11 +243,17 @@ "V1DeviceClassSpec", "V1DeviceConstraint", "V1DeviceCounterConsumption", + "V1DeviceDerivedAttribute", "V1DeviceRequest", "V1DeviceRequestAllocationResult", "V1DeviceSelector", "V1DeviceSubRequest", "V1DeviceTaint", + "V1DeviceTaintRule", + "V1DeviceTaintRuleList", + "V1DeviceTaintRuleSpec", + "V1DeviceTaintRuleStatus", + "V1DeviceTaintSelector", "V1DeviceToleration", "V1DownwardAPIProjection", "V1DownwardAPIVolumeFile", @@ -264,6 +275,7 @@ "V1EphemeralVolumeSource", "V1EventSource", "V1Eviction", + "V1EvictionResponder", "V1ExactDeviceRequest", "V1ExecAction", "V1ExemptPriorityLevelConfiguration", @@ -332,6 +344,7 @@ "V1Job", "V1JobCondition", "V1JobList", + "V1JobSchedulingConfiguration", "V1JobSpec", "V1JobStatus", "V1JobTemplateSpec", @@ -389,14 +402,19 @@ "V1Node", "V1NodeAddress", "V1NodeAffinity", + "V1NodeAllocatableMappedResources", + "V1NodeAllocatableMapping", + "V1NodeAllocatableOverhead", + "V1NodeAllocatableOverheadResources", + "V1NodeAllocatableResource", "V1NodeAllocatableResourceClaimStatus", - "V1NodeAllocatableResourceMapping", "V1NodeCondition", "V1NodeConfigSource", "V1NodeConfigStatus", "V1NodeDaemonEndpoints", "V1NodeFeatures", "V1NodeList", + "V1NodePodPreemptionPolicy", "V1NodeRuntimeHandler", "V1NodeRuntimeHandlerFeatures", "V1NodeSelector", @@ -435,6 +453,10 @@ "V1PodAffinityTerm", "V1PodAntiAffinity", "V1PodCertificateProjection", + "V1PodCertificateRequest", + "V1PodCertificateRequestList", + "V1PodCertificateRequestSpec", + "V1PodCertificateRequestStatus", "V1PodCondition", "V1PodDNSConfig", "V1PodDNSConfigOption", @@ -461,6 +483,7 @@ "V1PodTemplate", "V1PodTemplateList", "V1PodTemplateSpec", + "V1PodVolumeHealth", "V1PolicyRule", "V1PolicyRulesWithSubjects", "V1PortStatus", @@ -580,8 +603,14 @@ "V1StatusDetails", "V1StorageClass", "V1StorageClassList", + "V1StorageHealth", + "V1StorageHealthCondition", "V1StorageOSPersistentVolumeSource", "V1StorageOSVolumeSource", + "V1StorageVersionMigration", + "V1StorageVersionMigrationList", + "V1StorageVersionMigrationSpec", + "V1StorageVersionMigrationStatus", "V1SubjectAccessReview", "V1SubjectAccessReviewSpec", "V1SubjectAccessReviewStatus", @@ -629,6 +658,8 @@ "V1VolumeAttributesClassList", "V1VolumeDevice", "V1VolumeError", + "V1VolumeHealthCondition", + "V1VolumeHealthStatus", "V1VolumeMount", "V1VolumeMountStatus", "V1VolumeNodeAffinity", @@ -642,9 +673,18 @@ "V1WeightedPodAffinityTerm", "V1WindowsSecurityContextOptions", "V1alpha1ApplyConfiguration", - "V1alpha1ClusterTrustBundle", - "V1alpha1ClusterTrustBundleList", - "V1alpha1ClusterTrustBundleSpec", + "V1alpha1Eviction", + "V1alpha1EvictionList", + "V1alpha1EvictionPodReference", + "V1alpha1EvictionRequest", + "V1alpha1EvictionRequestList", + "V1alpha1EvictionRequestPodReference", + "V1alpha1EvictionRequestSpec", + "V1alpha1EvictionRequestStatus", + "V1alpha1EvictionRequestTarget", + "V1alpha1EvictionSpec", + "V1alpha1EvictionStatus", + "V1alpha1EvictionTarget", "V1alpha1JSONPatch", "V1alpha1MatchCondition", "V1alpha1MatchResources", @@ -658,43 +698,63 @@ "V1alpha1NamedRuleWithOperations", "V1alpha1ParamKind", "V1alpha1ParamRef", + "V1alpha1Requester", + "V1alpha1ResponderStatus", "V1alpha1ServerStorageVersion", "V1alpha1StorageVersion", "V1alpha1StorageVersionCondition", "V1alpha1StorageVersionList", "V1alpha1StorageVersionStatus", + "V1alpha1TargetResponder", "V1alpha1Variable", - "V1alpha2GangSchedulingPolicy", "V1alpha2LeaseCandidate", "V1alpha2LeaseCandidateList", "V1alpha2LeaseCandidateSpec", - "V1alpha2PodGroup", - "V1alpha2PodGroupList", - "V1alpha2PodGroupResourceClaim", - "V1alpha2PodGroupResourceClaimStatus", - "V1alpha2PodGroupSchedulingConstraints", - "V1alpha2PodGroupSchedulingPolicy", - "V1alpha2PodGroupSpec", - "V1alpha2PodGroupStatus", - "V1alpha2PodGroupTemplate", - "V1alpha2PodGroupTemplateReference", - "V1alpha2TopologyConstraint", - "V1alpha2TypedLocalObjectReference", - "V1alpha2Workload", - "V1alpha2WorkloadList", - "V1alpha2WorkloadPodGroupTemplateReference", - "V1alpha2WorkloadSpec", + "V1alpha3CompositeDisruptionMode", + "V1alpha3CompositeGangSchedulingPolicy", + "V1alpha3CompositePodGroup", + "V1alpha3CompositePodGroupList", + "V1alpha3CompositePodGroupSchedulingConstraints", + "V1alpha3CompositePodGroupSchedulingPolicy", + "V1alpha3CompositePodGroupSpec", + "V1alpha3CompositePodGroupStatus", + "V1alpha3CompositePodGroupTemplate", "V1alpha3DeviceTaint", "V1alpha3DeviceTaintRule", "V1alpha3DeviceTaintRuleList", "V1alpha3DeviceTaintRuleSpec", "V1alpha3DeviceTaintRuleStatus", "V1alpha3DeviceTaintSelector", + "V1alpha3DisruptionMode", + "V1alpha3GangSchedulingPolicy", + "V1alpha3PartitionTypeStatus", + "V1alpha3PodGroup", + "V1alpha3PodGroupList", + "V1alpha3PodGroupResourceClaim", + "V1alpha3PodGroupResourceClaimStatus", + "V1alpha3PodGroupSchedulingConstraints", + "V1alpha3PodGroupSchedulingPolicy", + "V1alpha3PodGroupSpec", + "V1alpha3PodGroupStatus", + "V1alpha3PodGroupTemplate", "V1alpha3PoolStatus", "V1alpha3ResourcePoolStatusRequest", "V1alpha3ResourcePoolStatusRequestList", "V1alpha3ResourcePoolStatusRequestSpec", "V1alpha3ResourcePoolStatusRequestStatus", + "V1alpha3ShareableCapacityStatus", + "V1alpha3ShareableSummaryStatus", + "V1alpha3TopologyConstraint", + "V1alpha3TypedLocalObjectReference", + "V1alpha3Workload", + "V1alpha3WorkloadList", + "V1alpha3WorkloadPodGroupDisruptionMode", + "V1alpha3WorkloadPodGroupGangSchedulingPolicy", + "V1alpha3WorkloadPodGroupResourceClaim", + "V1alpha3WorkloadPodGroupSchedulingConstraints", + "V1alpha3WorkloadPodGroupSchedulingPolicy", + "V1alpha3WorkloadReference", + "V1alpha3WorkloadSpec", "V1beta1AllocatedDeviceStatus", "V1beta1AllocationResult", "V1beta1ApplyConfiguration", @@ -706,6 +766,11 @@ "V1beta1ClusterTrustBundle", "V1beta1ClusterTrustBundleList", "V1beta1ClusterTrustBundleSpec", + "V1beta1CompositeDisruptionMode", + "V1beta1CompositeGangSchedulingPolicy", + "V1beta1CompositePodGroupSchedulingConstraints", + "V1beta1CompositePodGroupSchedulingPolicy", + "V1beta1CompositePodGroupTemplate", "V1beta1Counter", "V1beta1CounterSet", "V1beta1Device", @@ -721,15 +786,15 @@ "V1beta1DeviceClassSpec", "V1beta1DeviceConstraint", "V1beta1DeviceCounterConsumption", + "V1beta1DeviceDerivedAttribute", "V1beta1DeviceRequest", "V1beta1DeviceRequestAllocationResult", "V1beta1DeviceSelector", "V1beta1DeviceSubRequest", "V1beta1DeviceTaint", "V1beta1DeviceToleration", - "V1beta1IPAddress", - "V1beta1IPAddressList", - "V1beta1IPAddressSpec", + "V1beta1DisruptionMode", + "V1beta1GangSchedulingPolicy", "V1beta1JSONPatch", "V1beta1LeaseCandidate", "V1beta1LeaseCandidateList", @@ -745,15 +810,25 @@ "V1beta1Mutation", "V1beta1NamedRuleWithOperations", "V1beta1NetworkDeviceData", - "V1beta1NodeAllocatableResourceMapping", + "V1beta1NodeAllocatableMapping", + "V1beta1NodeAllocatableOverhead", + "V1beta1NodeAllocatableResource", "V1beta1OpaqueDeviceConfiguration", "V1beta1ParamKind", "V1beta1ParamRef", - "V1beta1ParentReference", "V1beta1PodCertificateRequest", "V1beta1PodCertificateRequestList", "V1beta1PodCertificateRequestSpec", "V1beta1PodCertificateRequestStatus", + "V1beta1PodGroup", + "V1beta1PodGroupList", + "V1beta1PodGroupResourceClaim", + "V1beta1PodGroupResourceClaimStatus", + "V1beta1PodGroupSchedulingConstraints", + "V1beta1PodGroupSchedulingPolicy", + "V1beta1PodGroupSpec", + "V1beta1PodGroupStatus", + "V1beta1PodGroupTemplate", "V1beta1ResourceClaim", "V1beta1ResourceClaimConsumerReference", "V1beta1ResourceClaimList", @@ -766,17 +841,17 @@ "V1beta1ResourceSlice", "V1beta1ResourceSliceList", "V1beta1ResourceSliceSpec", - "V1beta1ServiceCIDR", - "V1beta1ServiceCIDRList", - "V1beta1ServiceCIDRSpec", - "V1beta1ServiceCIDRStatus", "V1beta1StorageVersionMigration", "V1beta1StorageVersionMigrationList", "V1beta1StorageVersionMigrationSpec", "V1beta1StorageVersionMigrationStatus", + "V1beta1TopologyConstraint", + "V1beta1TypedLocalObjectReference", "V1beta1Variable", - "V1beta1VolumeAttributesClass", - "V1beta1VolumeAttributesClassList", + "V1beta1Workload", + "V1beta1WorkloadList", + "V1beta1WorkloadReference", + "V1beta1WorkloadSpec", "V1beta2AllocatedDeviceStatus", "V1beta2AllocationResult", "V1beta2CELDeviceSelector", @@ -798,6 +873,7 @@ "V1beta2DeviceClassSpec", "V1beta2DeviceConstraint", "V1beta2DeviceCounterConsumption", + "V1beta2DeviceDerivedAttribute", "V1beta2DeviceRequest", "V1beta2DeviceRequestAllocationResult", "V1beta2DeviceSelector", @@ -811,7 +887,9 @@ "V1beta2DeviceToleration", "V1beta2ExactDeviceRequest", "V1beta2NetworkDeviceData", - "V1beta2NodeAllocatableResourceMapping", + "V1beta2NodeAllocatableMapping", + "V1beta2NodeAllocatableOverhead", + "V1beta2NodeAllocatableResource", "V1beta2OpaqueDeviceConfiguration", "V1beta2ResourceClaim", "V1beta2ResourceClaimConsumerReference", @@ -889,7 +967,6 @@ from kubernetes.client.api.batch_v1_api import BatchV1Api as BatchV1Api from kubernetes.client.api.certificates_api import CertificatesApi as CertificatesApi from kubernetes.client.api.certificates_v1_api import CertificatesV1Api as CertificatesV1Api - from kubernetes.client.api.certificates_v1alpha1_api import CertificatesV1alpha1Api as CertificatesV1alpha1Api from kubernetes.client.api.certificates_v1beta1_api import CertificatesV1beta1Api as CertificatesV1beta1Api from kubernetes.client.api.coordination_api import CoordinationApi as CoordinationApi from kubernetes.client.api.coordination_v1_api import CoordinationV1Api as CoordinationV1Api @@ -906,10 +983,11 @@ from kubernetes.client.api.flowcontrol_apiserver_v1_api import FlowcontrolApiserverV1Api as FlowcontrolApiserverV1Api from kubernetes.client.api.internal_apiserver_api import InternalApiserverApi as InternalApiserverApi from kubernetes.client.api.internal_apiserver_v1alpha1_api import InternalApiserverV1alpha1Api as InternalApiserverV1alpha1Api + from kubernetes.client.api.lifecycle_api import LifecycleApi as LifecycleApi + from kubernetes.client.api.lifecycle_v1alpha1_api import LifecycleV1alpha1Api as LifecycleV1alpha1Api from kubernetes.client.api.logs_api import LogsApi as LogsApi from kubernetes.client.api.networking_api import NetworkingApi as NetworkingApi from kubernetes.client.api.networking_v1_api import NetworkingV1Api as NetworkingV1Api - from kubernetes.client.api.networking_v1beta1_api import NetworkingV1beta1Api as NetworkingV1beta1Api from kubernetes.client.api.node_api import NodeApi as NodeApi from kubernetes.client.api.node_v1_api import NodeV1Api as NodeV1Api from kubernetes.client.api.openid_api import OpenidApi as OpenidApi @@ -924,11 +1002,12 @@ from kubernetes.client.api.resource_v1beta2_api import ResourceV1beta2Api as ResourceV1beta2Api from kubernetes.client.api.scheduling_api import SchedulingApi as SchedulingApi from kubernetes.client.api.scheduling_v1_api import SchedulingV1Api as SchedulingV1Api - from kubernetes.client.api.scheduling_v1alpha2_api import SchedulingV1alpha2Api as SchedulingV1alpha2Api + from kubernetes.client.api.scheduling_v1alpha3_api import SchedulingV1alpha3Api as SchedulingV1alpha3Api + from kubernetes.client.api.scheduling_v1beta1_api import SchedulingV1beta1Api as SchedulingV1beta1Api from kubernetes.client.api.storage_api import StorageApi as StorageApi from kubernetes.client.api.storage_v1_api import StorageV1Api as StorageV1Api - from kubernetes.client.api.storage_v1beta1_api import StorageV1beta1Api as StorageV1beta1Api from kubernetes.client.api.storagemigration_api import StoragemigrationApi as StoragemigrationApi + from kubernetes.client.api.storagemigration_v1_api import StoragemigrationV1Api as StoragemigrationV1Api from kubernetes.client.api.storagemigration_v1beta1_api import StoragemigrationV1beta1Api as StoragemigrationV1beta1Api from kubernetes.client.api.version_api import VersionApi as VersionApi @@ -995,6 +1074,7 @@ from kubernetes.client.models.v1_csi_node_driver import V1CSINodeDriver as V1CSINodeDriver from kubernetes.client.models.v1_csi_node_list import V1CSINodeList as V1CSINodeList from kubernetes.client.models.v1_csi_node_spec import V1CSINodeSpec as V1CSINodeSpec + from kubernetes.client.models.v1_csi_node_status import V1CSINodeStatus as V1CSINodeStatus from kubernetes.client.models.v1_csi_persistent_volume_source import V1CSIPersistentVolumeSource as V1CSIPersistentVolumeSource from kubernetes.client.models.v1_csi_storage_capacity import V1CSIStorageCapacity as V1CSIStorageCapacity from kubernetes.client.models.v1_csi_storage_capacity_list import V1CSIStorageCapacityList as V1CSIStorageCapacityList @@ -1017,7 +1097,10 @@ from kubernetes.client.models.v1_cluster_role_binding import V1ClusterRoleBinding as V1ClusterRoleBinding from kubernetes.client.models.v1_cluster_role_binding_list import V1ClusterRoleBindingList as V1ClusterRoleBindingList from kubernetes.client.models.v1_cluster_role_list import V1ClusterRoleList as V1ClusterRoleList + from kubernetes.client.models.v1_cluster_trust_bundle import V1ClusterTrustBundle as V1ClusterTrustBundle + from kubernetes.client.models.v1_cluster_trust_bundle_list import V1ClusterTrustBundleList as V1ClusterTrustBundleList from kubernetes.client.models.v1_cluster_trust_bundle_projection import V1ClusterTrustBundleProjection as V1ClusterTrustBundleProjection + from kubernetes.client.models.v1_cluster_trust_bundle_spec import V1ClusterTrustBundleSpec as V1ClusterTrustBundleSpec from kubernetes.client.models.v1_component_condition import V1ComponentCondition as V1ComponentCondition from kubernetes.client.models.v1_component_status import V1ComponentStatus as V1ComponentStatus from kubernetes.client.models.v1_component_status_list import V1ComponentStatusList as V1ComponentStatusList @@ -1090,11 +1173,17 @@ from kubernetes.client.models.v1_device_class_spec import V1DeviceClassSpec as V1DeviceClassSpec from kubernetes.client.models.v1_device_constraint import V1DeviceConstraint as V1DeviceConstraint from kubernetes.client.models.v1_device_counter_consumption import V1DeviceCounterConsumption as V1DeviceCounterConsumption + from kubernetes.client.models.v1_device_derived_attribute import V1DeviceDerivedAttribute as V1DeviceDerivedAttribute from kubernetes.client.models.v1_device_request import V1DeviceRequest as V1DeviceRequest from kubernetes.client.models.v1_device_request_allocation_result import V1DeviceRequestAllocationResult as V1DeviceRequestAllocationResult from kubernetes.client.models.v1_device_selector import V1DeviceSelector as V1DeviceSelector from kubernetes.client.models.v1_device_sub_request import V1DeviceSubRequest as V1DeviceSubRequest from kubernetes.client.models.v1_device_taint import V1DeviceTaint as V1DeviceTaint + from kubernetes.client.models.v1_device_taint_rule import V1DeviceTaintRule as V1DeviceTaintRule + from kubernetes.client.models.v1_device_taint_rule_list import V1DeviceTaintRuleList as V1DeviceTaintRuleList + from kubernetes.client.models.v1_device_taint_rule_spec import V1DeviceTaintRuleSpec as V1DeviceTaintRuleSpec + from kubernetes.client.models.v1_device_taint_rule_status import V1DeviceTaintRuleStatus as V1DeviceTaintRuleStatus + from kubernetes.client.models.v1_device_taint_selector import V1DeviceTaintSelector as V1DeviceTaintSelector from kubernetes.client.models.v1_device_toleration import V1DeviceToleration as V1DeviceToleration from kubernetes.client.models.v1_downward_api_projection import V1DownwardAPIProjection as V1DownwardAPIProjection from kubernetes.client.models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile as V1DownwardAPIVolumeFile @@ -1116,6 +1205,7 @@ from kubernetes.client.models.v1_ephemeral_volume_source import V1EphemeralVolumeSource as V1EphemeralVolumeSource from kubernetes.client.models.v1_event_source import V1EventSource as V1EventSource from kubernetes.client.models.v1_eviction import V1Eviction as V1Eviction + from kubernetes.client.models.v1_eviction_responder import V1EvictionResponder as V1EvictionResponder from kubernetes.client.models.v1_exact_device_request import V1ExactDeviceRequest as V1ExactDeviceRequest from kubernetes.client.models.v1_exec_action import V1ExecAction as V1ExecAction from kubernetes.client.models.v1_exempt_priority_level_configuration import V1ExemptPriorityLevelConfiguration as V1ExemptPriorityLevelConfiguration @@ -1184,6 +1274,7 @@ from kubernetes.client.models.v1_job import V1Job as V1Job from kubernetes.client.models.v1_job_condition import V1JobCondition as V1JobCondition from kubernetes.client.models.v1_job_list import V1JobList as V1JobList + from kubernetes.client.models.v1_job_scheduling_configuration import V1JobSchedulingConfiguration as V1JobSchedulingConfiguration from kubernetes.client.models.v1_job_spec import V1JobSpec as V1JobSpec from kubernetes.client.models.v1_job_status import V1JobStatus as V1JobStatus from kubernetes.client.models.v1_job_template_spec import V1JobTemplateSpec as V1JobTemplateSpec @@ -1241,14 +1332,19 @@ from kubernetes.client.models.v1_node import V1Node as V1Node from kubernetes.client.models.v1_node_address import V1NodeAddress as V1NodeAddress from kubernetes.client.models.v1_node_affinity import V1NodeAffinity as V1NodeAffinity + from kubernetes.client.models.v1_node_allocatable_mapped_resources import V1NodeAllocatableMappedResources as V1NodeAllocatableMappedResources + from kubernetes.client.models.v1_node_allocatable_mapping import V1NodeAllocatableMapping as V1NodeAllocatableMapping + from kubernetes.client.models.v1_node_allocatable_overhead import V1NodeAllocatableOverhead as V1NodeAllocatableOverhead + from kubernetes.client.models.v1_node_allocatable_overhead_resources import V1NodeAllocatableOverheadResources as V1NodeAllocatableOverheadResources + from kubernetes.client.models.v1_node_allocatable_resource import V1NodeAllocatableResource as V1NodeAllocatableResource from kubernetes.client.models.v1_node_allocatable_resource_claim_status import V1NodeAllocatableResourceClaimStatus as V1NodeAllocatableResourceClaimStatus - from kubernetes.client.models.v1_node_allocatable_resource_mapping import V1NodeAllocatableResourceMapping as V1NodeAllocatableResourceMapping from kubernetes.client.models.v1_node_condition import V1NodeCondition as V1NodeCondition from kubernetes.client.models.v1_node_config_source import V1NodeConfigSource as V1NodeConfigSource from kubernetes.client.models.v1_node_config_status import V1NodeConfigStatus as V1NodeConfigStatus from kubernetes.client.models.v1_node_daemon_endpoints import V1NodeDaemonEndpoints as V1NodeDaemonEndpoints from kubernetes.client.models.v1_node_features import V1NodeFeatures as V1NodeFeatures from kubernetes.client.models.v1_node_list import V1NodeList as V1NodeList + from kubernetes.client.models.v1_node_pod_preemption_policy import V1NodePodPreemptionPolicy as V1NodePodPreemptionPolicy from kubernetes.client.models.v1_node_runtime_handler import V1NodeRuntimeHandler as V1NodeRuntimeHandler from kubernetes.client.models.v1_node_runtime_handler_features import V1NodeRuntimeHandlerFeatures as V1NodeRuntimeHandlerFeatures from kubernetes.client.models.v1_node_selector import V1NodeSelector as V1NodeSelector @@ -1287,6 +1383,10 @@ from kubernetes.client.models.v1_pod_affinity_term import V1PodAffinityTerm as V1PodAffinityTerm from kubernetes.client.models.v1_pod_anti_affinity import V1PodAntiAffinity as V1PodAntiAffinity from kubernetes.client.models.v1_pod_certificate_projection import V1PodCertificateProjection as V1PodCertificateProjection + from kubernetes.client.models.v1_pod_certificate_request import V1PodCertificateRequest as V1PodCertificateRequest + from kubernetes.client.models.v1_pod_certificate_request_list import V1PodCertificateRequestList as V1PodCertificateRequestList + from kubernetes.client.models.v1_pod_certificate_request_spec import V1PodCertificateRequestSpec as V1PodCertificateRequestSpec + from kubernetes.client.models.v1_pod_certificate_request_status import V1PodCertificateRequestStatus as V1PodCertificateRequestStatus from kubernetes.client.models.v1_pod_condition import V1PodCondition as V1PodCondition from kubernetes.client.models.v1_pod_dns_config import V1PodDNSConfig as V1PodDNSConfig from kubernetes.client.models.v1_pod_dns_config_option import V1PodDNSConfigOption as V1PodDNSConfigOption @@ -1313,6 +1413,7 @@ from kubernetes.client.models.v1_pod_template import V1PodTemplate as V1PodTemplate from kubernetes.client.models.v1_pod_template_list import V1PodTemplateList as V1PodTemplateList from kubernetes.client.models.v1_pod_template_spec import V1PodTemplateSpec as V1PodTemplateSpec + from kubernetes.client.models.v1_pod_volume_health import V1PodVolumeHealth as V1PodVolumeHealth from kubernetes.client.models.v1_policy_rule import V1PolicyRule as V1PolicyRule from kubernetes.client.models.v1_policy_rules_with_subjects import V1PolicyRulesWithSubjects as V1PolicyRulesWithSubjects from kubernetes.client.models.v1_port_status import V1PortStatus as V1PortStatus @@ -1432,8 +1533,14 @@ from kubernetes.client.models.v1_status_details import V1StatusDetails as V1StatusDetails from kubernetes.client.models.v1_storage_class import V1StorageClass as V1StorageClass from kubernetes.client.models.v1_storage_class_list import V1StorageClassList as V1StorageClassList + from kubernetes.client.models.v1_storage_health import V1StorageHealth as V1StorageHealth + from kubernetes.client.models.v1_storage_health_condition import V1StorageHealthCondition as V1StorageHealthCondition from kubernetes.client.models.v1_storage_os_persistent_volume_source import V1StorageOSPersistentVolumeSource as V1StorageOSPersistentVolumeSource from kubernetes.client.models.v1_storage_os_volume_source import V1StorageOSVolumeSource as V1StorageOSVolumeSource + from kubernetes.client.models.v1_storage_version_migration import V1StorageVersionMigration as V1StorageVersionMigration + from kubernetes.client.models.v1_storage_version_migration_list import V1StorageVersionMigrationList as V1StorageVersionMigrationList + from kubernetes.client.models.v1_storage_version_migration_spec import V1StorageVersionMigrationSpec as V1StorageVersionMigrationSpec + from kubernetes.client.models.v1_storage_version_migration_status import V1StorageVersionMigrationStatus as V1StorageVersionMigrationStatus from kubernetes.client.models.v1_subject_access_review import V1SubjectAccessReview as V1SubjectAccessReview from kubernetes.client.models.v1_subject_access_review_spec import V1SubjectAccessReviewSpec as V1SubjectAccessReviewSpec from kubernetes.client.models.v1_subject_access_review_status import V1SubjectAccessReviewStatus as V1SubjectAccessReviewStatus @@ -1481,6 +1588,8 @@ from kubernetes.client.models.v1_volume_attributes_class_list import V1VolumeAttributesClassList as V1VolumeAttributesClassList from kubernetes.client.models.v1_volume_device import V1VolumeDevice as V1VolumeDevice from kubernetes.client.models.v1_volume_error import V1VolumeError as V1VolumeError + from kubernetes.client.models.v1_volume_health_condition import V1VolumeHealthCondition as V1VolumeHealthCondition + from kubernetes.client.models.v1_volume_health_status import V1VolumeHealthStatus as V1VolumeHealthStatus from kubernetes.client.models.v1_volume_mount import V1VolumeMount as V1VolumeMount from kubernetes.client.models.v1_volume_mount_status import V1VolumeMountStatus as V1VolumeMountStatus from kubernetes.client.models.v1_volume_node_affinity import V1VolumeNodeAffinity as V1VolumeNodeAffinity @@ -1494,9 +1603,18 @@ from kubernetes.client.models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm as V1WeightedPodAffinityTerm from kubernetes.client.models.v1_windows_security_context_options import V1WindowsSecurityContextOptions as V1WindowsSecurityContextOptions from kubernetes.client.models.v1alpha1_apply_configuration import V1alpha1ApplyConfiguration as V1alpha1ApplyConfiguration - from kubernetes.client.models.v1alpha1_cluster_trust_bundle import V1alpha1ClusterTrustBundle as V1alpha1ClusterTrustBundle - from kubernetes.client.models.v1alpha1_cluster_trust_bundle_list import V1alpha1ClusterTrustBundleList as V1alpha1ClusterTrustBundleList - from kubernetes.client.models.v1alpha1_cluster_trust_bundle_spec import V1alpha1ClusterTrustBundleSpec as V1alpha1ClusterTrustBundleSpec + from kubernetes.client.models.v1alpha1_eviction import V1alpha1Eviction as V1alpha1Eviction + from kubernetes.client.models.v1alpha1_eviction_list import V1alpha1EvictionList as V1alpha1EvictionList + from kubernetes.client.models.v1alpha1_eviction_pod_reference import V1alpha1EvictionPodReference as V1alpha1EvictionPodReference + from kubernetes.client.models.v1alpha1_eviction_request import V1alpha1EvictionRequest as V1alpha1EvictionRequest + from kubernetes.client.models.v1alpha1_eviction_request_list import V1alpha1EvictionRequestList as V1alpha1EvictionRequestList + from kubernetes.client.models.v1alpha1_eviction_request_pod_reference import V1alpha1EvictionRequestPodReference as V1alpha1EvictionRequestPodReference + from kubernetes.client.models.v1alpha1_eviction_request_spec import V1alpha1EvictionRequestSpec as V1alpha1EvictionRequestSpec + from kubernetes.client.models.v1alpha1_eviction_request_status import V1alpha1EvictionRequestStatus as V1alpha1EvictionRequestStatus + from kubernetes.client.models.v1alpha1_eviction_request_target import V1alpha1EvictionRequestTarget as V1alpha1EvictionRequestTarget + from kubernetes.client.models.v1alpha1_eviction_spec import V1alpha1EvictionSpec as V1alpha1EvictionSpec + from kubernetes.client.models.v1alpha1_eviction_status import V1alpha1EvictionStatus as V1alpha1EvictionStatus + from kubernetes.client.models.v1alpha1_eviction_target import V1alpha1EvictionTarget as V1alpha1EvictionTarget from kubernetes.client.models.v1alpha1_json_patch import V1alpha1JSONPatch as V1alpha1JSONPatch from kubernetes.client.models.v1alpha1_match_condition import V1alpha1MatchCondition as V1alpha1MatchCondition from kubernetes.client.models.v1alpha1_match_resources import V1alpha1MatchResources as V1alpha1MatchResources @@ -1510,43 +1628,63 @@ from kubernetes.client.models.v1alpha1_named_rule_with_operations import V1alpha1NamedRuleWithOperations as V1alpha1NamedRuleWithOperations from kubernetes.client.models.v1alpha1_param_kind import V1alpha1ParamKind as V1alpha1ParamKind from kubernetes.client.models.v1alpha1_param_ref import V1alpha1ParamRef as V1alpha1ParamRef + from kubernetes.client.models.v1alpha1_requester import V1alpha1Requester as V1alpha1Requester + from kubernetes.client.models.v1alpha1_responder_status import V1alpha1ResponderStatus as V1alpha1ResponderStatus from kubernetes.client.models.v1alpha1_server_storage_version import V1alpha1ServerStorageVersion as V1alpha1ServerStorageVersion from kubernetes.client.models.v1alpha1_storage_version import V1alpha1StorageVersion as V1alpha1StorageVersion from kubernetes.client.models.v1alpha1_storage_version_condition import V1alpha1StorageVersionCondition as V1alpha1StorageVersionCondition from kubernetes.client.models.v1alpha1_storage_version_list import V1alpha1StorageVersionList as V1alpha1StorageVersionList from kubernetes.client.models.v1alpha1_storage_version_status import V1alpha1StorageVersionStatus as V1alpha1StorageVersionStatus + from kubernetes.client.models.v1alpha1_target_responder import V1alpha1TargetResponder as V1alpha1TargetResponder from kubernetes.client.models.v1alpha1_variable import V1alpha1Variable as V1alpha1Variable - from kubernetes.client.models.v1alpha2_gang_scheduling_policy import V1alpha2GangSchedulingPolicy as V1alpha2GangSchedulingPolicy from kubernetes.client.models.v1alpha2_lease_candidate import V1alpha2LeaseCandidate as V1alpha2LeaseCandidate from kubernetes.client.models.v1alpha2_lease_candidate_list import V1alpha2LeaseCandidateList as V1alpha2LeaseCandidateList from kubernetes.client.models.v1alpha2_lease_candidate_spec import V1alpha2LeaseCandidateSpec as V1alpha2LeaseCandidateSpec - from kubernetes.client.models.v1alpha2_pod_group import V1alpha2PodGroup as V1alpha2PodGroup - from kubernetes.client.models.v1alpha2_pod_group_list import V1alpha2PodGroupList as V1alpha2PodGroupList - from kubernetes.client.models.v1alpha2_pod_group_resource_claim import V1alpha2PodGroupResourceClaim as V1alpha2PodGroupResourceClaim - from kubernetes.client.models.v1alpha2_pod_group_resource_claim_status import V1alpha2PodGroupResourceClaimStatus as V1alpha2PodGroupResourceClaimStatus - from kubernetes.client.models.v1alpha2_pod_group_scheduling_constraints import V1alpha2PodGroupSchedulingConstraints as V1alpha2PodGroupSchedulingConstraints - from kubernetes.client.models.v1alpha2_pod_group_scheduling_policy import V1alpha2PodGroupSchedulingPolicy as V1alpha2PodGroupSchedulingPolicy - from kubernetes.client.models.v1alpha2_pod_group_spec import V1alpha2PodGroupSpec as V1alpha2PodGroupSpec - from kubernetes.client.models.v1alpha2_pod_group_status import V1alpha2PodGroupStatus as V1alpha2PodGroupStatus - from kubernetes.client.models.v1alpha2_pod_group_template import V1alpha2PodGroupTemplate as V1alpha2PodGroupTemplate - from kubernetes.client.models.v1alpha2_pod_group_template_reference import V1alpha2PodGroupTemplateReference as V1alpha2PodGroupTemplateReference - from kubernetes.client.models.v1alpha2_topology_constraint import V1alpha2TopologyConstraint as V1alpha2TopologyConstraint - from kubernetes.client.models.v1alpha2_typed_local_object_reference import V1alpha2TypedLocalObjectReference as V1alpha2TypedLocalObjectReference - from kubernetes.client.models.v1alpha2_workload import V1alpha2Workload as V1alpha2Workload - from kubernetes.client.models.v1alpha2_workload_list import V1alpha2WorkloadList as V1alpha2WorkloadList - from kubernetes.client.models.v1alpha2_workload_pod_group_template_reference import V1alpha2WorkloadPodGroupTemplateReference as V1alpha2WorkloadPodGroupTemplateReference - from kubernetes.client.models.v1alpha2_workload_spec import V1alpha2WorkloadSpec as V1alpha2WorkloadSpec + from kubernetes.client.models.v1alpha3_composite_disruption_mode import V1alpha3CompositeDisruptionMode as V1alpha3CompositeDisruptionMode + from kubernetes.client.models.v1alpha3_composite_gang_scheduling_policy import V1alpha3CompositeGangSchedulingPolicy as V1alpha3CompositeGangSchedulingPolicy + from kubernetes.client.models.v1alpha3_composite_pod_group import V1alpha3CompositePodGroup as V1alpha3CompositePodGroup + from kubernetes.client.models.v1alpha3_composite_pod_group_list import V1alpha3CompositePodGroupList as V1alpha3CompositePodGroupList + from kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_constraints import V1alpha3CompositePodGroupSchedulingConstraints as V1alpha3CompositePodGroupSchedulingConstraints + from kubernetes.client.models.v1alpha3_composite_pod_group_scheduling_policy import V1alpha3CompositePodGroupSchedulingPolicy as V1alpha3CompositePodGroupSchedulingPolicy + from kubernetes.client.models.v1alpha3_composite_pod_group_spec import V1alpha3CompositePodGroupSpec as V1alpha3CompositePodGroupSpec + from kubernetes.client.models.v1alpha3_composite_pod_group_status import V1alpha3CompositePodGroupStatus as V1alpha3CompositePodGroupStatus + from kubernetes.client.models.v1alpha3_composite_pod_group_template import V1alpha3CompositePodGroupTemplate as V1alpha3CompositePodGroupTemplate from kubernetes.client.models.v1alpha3_device_taint import V1alpha3DeviceTaint as V1alpha3DeviceTaint from kubernetes.client.models.v1alpha3_device_taint_rule import V1alpha3DeviceTaintRule as V1alpha3DeviceTaintRule from kubernetes.client.models.v1alpha3_device_taint_rule_list import V1alpha3DeviceTaintRuleList as V1alpha3DeviceTaintRuleList from kubernetes.client.models.v1alpha3_device_taint_rule_spec import V1alpha3DeviceTaintRuleSpec as V1alpha3DeviceTaintRuleSpec from kubernetes.client.models.v1alpha3_device_taint_rule_status import V1alpha3DeviceTaintRuleStatus as V1alpha3DeviceTaintRuleStatus from kubernetes.client.models.v1alpha3_device_taint_selector import V1alpha3DeviceTaintSelector as V1alpha3DeviceTaintSelector + from kubernetes.client.models.v1alpha3_disruption_mode import V1alpha3DisruptionMode as V1alpha3DisruptionMode + from kubernetes.client.models.v1alpha3_gang_scheduling_policy import V1alpha3GangSchedulingPolicy as V1alpha3GangSchedulingPolicy + from kubernetes.client.models.v1alpha3_partition_type_status import V1alpha3PartitionTypeStatus as V1alpha3PartitionTypeStatus + from kubernetes.client.models.v1alpha3_pod_group import V1alpha3PodGroup as V1alpha3PodGroup + from kubernetes.client.models.v1alpha3_pod_group_list import V1alpha3PodGroupList as V1alpha3PodGroupList + from kubernetes.client.models.v1alpha3_pod_group_resource_claim import V1alpha3PodGroupResourceClaim as V1alpha3PodGroupResourceClaim + from kubernetes.client.models.v1alpha3_pod_group_resource_claim_status import V1alpha3PodGroupResourceClaimStatus as V1alpha3PodGroupResourceClaimStatus + from kubernetes.client.models.v1alpha3_pod_group_scheduling_constraints import V1alpha3PodGroupSchedulingConstraints as V1alpha3PodGroupSchedulingConstraints + from kubernetes.client.models.v1alpha3_pod_group_scheduling_policy import V1alpha3PodGroupSchedulingPolicy as V1alpha3PodGroupSchedulingPolicy + from kubernetes.client.models.v1alpha3_pod_group_spec import V1alpha3PodGroupSpec as V1alpha3PodGroupSpec + from kubernetes.client.models.v1alpha3_pod_group_status import V1alpha3PodGroupStatus as V1alpha3PodGroupStatus + from kubernetes.client.models.v1alpha3_pod_group_template import V1alpha3PodGroupTemplate as V1alpha3PodGroupTemplate from kubernetes.client.models.v1alpha3_pool_status import V1alpha3PoolStatus as V1alpha3PoolStatus from kubernetes.client.models.v1alpha3_resource_pool_status_request import V1alpha3ResourcePoolStatusRequest as V1alpha3ResourcePoolStatusRequest from kubernetes.client.models.v1alpha3_resource_pool_status_request_list import V1alpha3ResourcePoolStatusRequestList as V1alpha3ResourcePoolStatusRequestList from kubernetes.client.models.v1alpha3_resource_pool_status_request_spec import V1alpha3ResourcePoolStatusRequestSpec as V1alpha3ResourcePoolStatusRequestSpec from kubernetes.client.models.v1alpha3_resource_pool_status_request_status import V1alpha3ResourcePoolStatusRequestStatus as V1alpha3ResourcePoolStatusRequestStatus + from kubernetes.client.models.v1alpha3_shareable_capacity_status import V1alpha3ShareableCapacityStatus as V1alpha3ShareableCapacityStatus + from kubernetes.client.models.v1alpha3_shareable_summary_status import V1alpha3ShareableSummaryStatus as V1alpha3ShareableSummaryStatus + from kubernetes.client.models.v1alpha3_topology_constraint import V1alpha3TopologyConstraint as V1alpha3TopologyConstraint + from kubernetes.client.models.v1alpha3_typed_local_object_reference import V1alpha3TypedLocalObjectReference as V1alpha3TypedLocalObjectReference + from kubernetes.client.models.v1alpha3_workload import V1alpha3Workload as V1alpha3Workload + from kubernetes.client.models.v1alpha3_workload_list import V1alpha3WorkloadList as V1alpha3WorkloadList + from kubernetes.client.models.v1alpha3_workload_pod_group_disruption_mode import V1alpha3WorkloadPodGroupDisruptionMode as V1alpha3WorkloadPodGroupDisruptionMode + from kubernetes.client.models.v1alpha3_workload_pod_group_gang_scheduling_policy import V1alpha3WorkloadPodGroupGangSchedulingPolicy as V1alpha3WorkloadPodGroupGangSchedulingPolicy + from kubernetes.client.models.v1alpha3_workload_pod_group_resource_claim import V1alpha3WorkloadPodGroupResourceClaim as V1alpha3WorkloadPodGroupResourceClaim + from kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_constraints import V1alpha3WorkloadPodGroupSchedulingConstraints as V1alpha3WorkloadPodGroupSchedulingConstraints + from kubernetes.client.models.v1alpha3_workload_pod_group_scheduling_policy import V1alpha3WorkloadPodGroupSchedulingPolicy as V1alpha3WorkloadPodGroupSchedulingPolicy + from kubernetes.client.models.v1alpha3_workload_reference import V1alpha3WorkloadReference as V1alpha3WorkloadReference + from kubernetes.client.models.v1alpha3_workload_spec import V1alpha3WorkloadSpec as V1alpha3WorkloadSpec from kubernetes.client.models.v1beta1_allocated_device_status import V1beta1AllocatedDeviceStatus as V1beta1AllocatedDeviceStatus from kubernetes.client.models.v1beta1_allocation_result import V1beta1AllocationResult as V1beta1AllocationResult from kubernetes.client.models.v1beta1_apply_configuration import V1beta1ApplyConfiguration as V1beta1ApplyConfiguration @@ -1558,6 +1696,11 @@ from kubernetes.client.models.v1beta1_cluster_trust_bundle import V1beta1ClusterTrustBundle as V1beta1ClusterTrustBundle from kubernetes.client.models.v1beta1_cluster_trust_bundle_list import V1beta1ClusterTrustBundleList as V1beta1ClusterTrustBundleList from kubernetes.client.models.v1beta1_cluster_trust_bundle_spec import V1beta1ClusterTrustBundleSpec as V1beta1ClusterTrustBundleSpec + from kubernetes.client.models.v1beta1_composite_disruption_mode import V1beta1CompositeDisruptionMode as V1beta1CompositeDisruptionMode + from kubernetes.client.models.v1beta1_composite_gang_scheduling_policy import V1beta1CompositeGangSchedulingPolicy as V1beta1CompositeGangSchedulingPolicy + from kubernetes.client.models.v1beta1_composite_pod_group_scheduling_constraints import V1beta1CompositePodGroupSchedulingConstraints as V1beta1CompositePodGroupSchedulingConstraints + from kubernetes.client.models.v1beta1_composite_pod_group_scheduling_policy import V1beta1CompositePodGroupSchedulingPolicy as V1beta1CompositePodGroupSchedulingPolicy + from kubernetes.client.models.v1beta1_composite_pod_group_template import V1beta1CompositePodGroupTemplate as V1beta1CompositePodGroupTemplate from kubernetes.client.models.v1beta1_counter import V1beta1Counter as V1beta1Counter from kubernetes.client.models.v1beta1_counter_set import V1beta1CounterSet as V1beta1CounterSet from kubernetes.client.models.v1beta1_device import V1beta1Device as V1beta1Device @@ -1573,15 +1716,15 @@ from kubernetes.client.models.v1beta1_device_class_spec import V1beta1DeviceClassSpec as V1beta1DeviceClassSpec from kubernetes.client.models.v1beta1_device_constraint import V1beta1DeviceConstraint as V1beta1DeviceConstraint from kubernetes.client.models.v1beta1_device_counter_consumption import V1beta1DeviceCounterConsumption as V1beta1DeviceCounterConsumption + from kubernetes.client.models.v1beta1_device_derived_attribute import V1beta1DeviceDerivedAttribute as V1beta1DeviceDerivedAttribute from kubernetes.client.models.v1beta1_device_request import V1beta1DeviceRequest as V1beta1DeviceRequest from kubernetes.client.models.v1beta1_device_request_allocation_result import V1beta1DeviceRequestAllocationResult as V1beta1DeviceRequestAllocationResult from kubernetes.client.models.v1beta1_device_selector import V1beta1DeviceSelector as V1beta1DeviceSelector from kubernetes.client.models.v1beta1_device_sub_request import V1beta1DeviceSubRequest as V1beta1DeviceSubRequest from kubernetes.client.models.v1beta1_device_taint import V1beta1DeviceTaint as V1beta1DeviceTaint from kubernetes.client.models.v1beta1_device_toleration import V1beta1DeviceToleration as V1beta1DeviceToleration - from kubernetes.client.models.v1beta1_ip_address import V1beta1IPAddress as V1beta1IPAddress - from kubernetes.client.models.v1beta1_ip_address_list import V1beta1IPAddressList as V1beta1IPAddressList - from kubernetes.client.models.v1beta1_ip_address_spec import V1beta1IPAddressSpec as V1beta1IPAddressSpec + from kubernetes.client.models.v1beta1_disruption_mode import V1beta1DisruptionMode as V1beta1DisruptionMode + from kubernetes.client.models.v1beta1_gang_scheduling_policy import V1beta1GangSchedulingPolicy as V1beta1GangSchedulingPolicy from kubernetes.client.models.v1beta1_json_patch import V1beta1JSONPatch as V1beta1JSONPatch from kubernetes.client.models.v1beta1_lease_candidate import V1beta1LeaseCandidate as V1beta1LeaseCandidate from kubernetes.client.models.v1beta1_lease_candidate_list import V1beta1LeaseCandidateList as V1beta1LeaseCandidateList @@ -1597,15 +1740,25 @@ from kubernetes.client.models.v1beta1_mutation import V1beta1Mutation as V1beta1Mutation from kubernetes.client.models.v1beta1_named_rule_with_operations import V1beta1NamedRuleWithOperations as V1beta1NamedRuleWithOperations from kubernetes.client.models.v1beta1_network_device_data import V1beta1NetworkDeviceData as V1beta1NetworkDeviceData - from kubernetes.client.models.v1beta1_node_allocatable_resource_mapping import V1beta1NodeAllocatableResourceMapping as V1beta1NodeAllocatableResourceMapping + from kubernetes.client.models.v1beta1_node_allocatable_mapping import V1beta1NodeAllocatableMapping as V1beta1NodeAllocatableMapping + from kubernetes.client.models.v1beta1_node_allocatable_overhead import V1beta1NodeAllocatableOverhead as V1beta1NodeAllocatableOverhead + from kubernetes.client.models.v1beta1_node_allocatable_resource import V1beta1NodeAllocatableResource as V1beta1NodeAllocatableResource from kubernetes.client.models.v1beta1_opaque_device_configuration import V1beta1OpaqueDeviceConfiguration as V1beta1OpaqueDeviceConfiguration from kubernetes.client.models.v1beta1_param_kind import V1beta1ParamKind as V1beta1ParamKind from kubernetes.client.models.v1beta1_param_ref import V1beta1ParamRef as V1beta1ParamRef - from kubernetes.client.models.v1beta1_parent_reference import V1beta1ParentReference as V1beta1ParentReference from kubernetes.client.models.v1beta1_pod_certificate_request import V1beta1PodCertificateRequest as V1beta1PodCertificateRequest from kubernetes.client.models.v1beta1_pod_certificate_request_list import V1beta1PodCertificateRequestList as V1beta1PodCertificateRequestList from kubernetes.client.models.v1beta1_pod_certificate_request_spec import V1beta1PodCertificateRequestSpec as V1beta1PodCertificateRequestSpec from kubernetes.client.models.v1beta1_pod_certificate_request_status import V1beta1PodCertificateRequestStatus as V1beta1PodCertificateRequestStatus + from kubernetes.client.models.v1beta1_pod_group import V1beta1PodGroup as V1beta1PodGroup + from kubernetes.client.models.v1beta1_pod_group_list import V1beta1PodGroupList as V1beta1PodGroupList + from kubernetes.client.models.v1beta1_pod_group_resource_claim import V1beta1PodGroupResourceClaim as V1beta1PodGroupResourceClaim + from kubernetes.client.models.v1beta1_pod_group_resource_claim_status import V1beta1PodGroupResourceClaimStatus as V1beta1PodGroupResourceClaimStatus + from kubernetes.client.models.v1beta1_pod_group_scheduling_constraints import V1beta1PodGroupSchedulingConstraints as V1beta1PodGroupSchedulingConstraints + from kubernetes.client.models.v1beta1_pod_group_scheduling_policy import V1beta1PodGroupSchedulingPolicy as V1beta1PodGroupSchedulingPolicy + from kubernetes.client.models.v1beta1_pod_group_spec import V1beta1PodGroupSpec as V1beta1PodGroupSpec + from kubernetes.client.models.v1beta1_pod_group_status import V1beta1PodGroupStatus as V1beta1PodGroupStatus + from kubernetes.client.models.v1beta1_pod_group_template import V1beta1PodGroupTemplate as V1beta1PodGroupTemplate from kubernetes.client.models.v1beta1_resource_claim import V1beta1ResourceClaim as V1beta1ResourceClaim from kubernetes.client.models.v1beta1_resource_claim_consumer_reference import V1beta1ResourceClaimConsumerReference as V1beta1ResourceClaimConsumerReference from kubernetes.client.models.v1beta1_resource_claim_list import V1beta1ResourceClaimList as V1beta1ResourceClaimList @@ -1618,17 +1771,17 @@ from kubernetes.client.models.v1beta1_resource_slice import V1beta1ResourceSlice as V1beta1ResourceSlice from kubernetes.client.models.v1beta1_resource_slice_list import V1beta1ResourceSliceList as V1beta1ResourceSliceList from kubernetes.client.models.v1beta1_resource_slice_spec import V1beta1ResourceSliceSpec as V1beta1ResourceSliceSpec - from kubernetes.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR as V1beta1ServiceCIDR - from kubernetes.client.models.v1beta1_service_cidr_list import V1beta1ServiceCIDRList as V1beta1ServiceCIDRList - from kubernetes.client.models.v1beta1_service_cidr_spec import V1beta1ServiceCIDRSpec as V1beta1ServiceCIDRSpec - from kubernetes.client.models.v1beta1_service_cidr_status import V1beta1ServiceCIDRStatus as V1beta1ServiceCIDRStatus from kubernetes.client.models.v1beta1_storage_version_migration import V1beta1StorageVersionMigration as V1beta1StorageVersionMigration from kubernetes.client.models.v1beta1_storage_version_migration_list import V1beta1StorageVersionMigrationList as V1beta1StorageVersionMigrationList from kubernetes.client.models.v1beta1_storage_version_migration_spec import V1beta1StorageVersionMigrationSpec as V1beta1StorageVersionMigrationSpec from kubernetes.client.models.v1beta1_storage_version_migration_status import V1beta1StorageVersionMigrationStatus as V1beta1StorageVersionMigrationStatus + from kubernetes.client.models.v1beta1_topology_constraint import V1beta1TopologyConstraint as V1beta1TopologyConstraint + from kubernetes.client.models.v1beta1_typed_local_object_reference import V1beta1TypedLocalObjectReference as V1beta1TypedLocalObjectReference from kubernetes.client.models.v1beta1_variable import V1beta1Variable as V1beta1Variable - from kubernetes.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass as V1beta1VolumeAttributesClass - from kubernetes.client.models.v1beta1_volume_attributes_class_list import V1beta1VolumeAttributesClassList as V1beta1VolumeAttributesClassList + from kubernetes.client.models.v1beta1_workload import V1beta1Workload as V1beta1Workload + from kubernetes.client.models.v1beta1_workload_list import V1beta1WorkloadList as V1beta1WorkloadList + from kubernetes.client.models.v1beta1_workload_reference import V1beta1WorkloadReference as V1beta1WorkloadReference + from kubernetes.client.models.v1beta1_workload_spec import V1beta1WorkloadSpec as V1beta1WorkloadSpec from kubernetes.client.models.v1beta2_allocated_device_status import V1beta2AllocatedDeviceStatus as V1beta2AllocatedDeviceStatus from kubernetes.client.models.v1beta2_allocation_result import V1beta2AllocationResult as V1beta2AllocationResult from kubernetes.client.models.v1beta2_cel_device_selector import V1beta2CELDeviceSelector as V1beta2CELDeviceSelector @@ -1650,6 +1803,7 @@ from kubernetes.client.models.v1beta2_device_class_spec import V1beta2DeviceClassSpec as V1beta2DeviceClassSpec from kubernetes.client.models.v1beta2_device_constraint import V1beta2DeviceConstraint as V1beta2DeviceConstraint from kubernetes.client.models.v1beta2_device_counter_consumption import V1beta2DeviceCounterConsumption as V1beta2DeviceCounterConsumption + from kubernetes.client.models.v1beta2_device_derived_attribute import V1beta2DeviceDerivedAttribute as V1beta2DeviceDerivedAttribute from kubernetes.client.models.v1beta2_device_request import V1beta2DeviceRequest as V1beta2DeviceRequest from kubernetes.client.models.v1beta2_device_request_allocation_result import V1beta2DeviceRequestAllocationResult as V1beta2DeviceRequestAllocationResult from kubernetes.client.models.v1beta2_device_selector import V1beta2DeviceSelector as V1beta2DeviceSelector @@ -1663,7 +1817,9 @@ from kubernetes.client.models.v1beta2_device_toleration import V1beta2DeviceToleration as V1beta2DeviceToleration from kubernetes.client.models.v1beta2_exact_device_request import V1beta2ExactDeviceRequest as V1beta2ExactDeviceRequest from kubernetes.client.models.v1beta2_network_device_data import V1beta2NetworkDeviceData as V1beta2NetworkDeviceData - from kubernetes.client.models.v1beta2_node_allocatable_resource_mapping import V1beta2NodeAllocatableResourceMapping as V1beta2NodeAllocatableResourceMapping + from kubernetes.client.models.v1beta2_node_allocatable_mapping import V1beta2NodeAllocatableMapping as V1beta2NodeAllocatableMapping + from kubernetes.client.models.v1beta2_node_allocatable_overhead import V1beta2NodeAllocatableOverhead as V1beta2NodeAllocatableOverhead + from kubernetes.client.models.v1beta2_node_allocatable_resource import V1beta2NodeAllocatableResource as V1beta2NodeAllocatableResource from kubernetes.client.models.v1beta2_opaque_device_configuration import V1beta2OpaqueDeviceConfiguration as V1beta2OpaqueDeviceConfiguration from kubernetes.client.models.v1beta2_resource_claim import V1beta2ResourceClaim as V1beta2ResourceClaim from kubernetes.client.models.v1beta2_resource_claim_consumer_reference import V1beta2ResourceClaimConsumerReference as V1beta2ResourceClaimConsumerReference @@ -1740,7 +1896,6 @@ "BatchV1Api": ".api.batch_v1_api", "CertificatesApi": ".api.certificates_api", "CertificatesV1Api": ".api.certificates_v1_api", - "CertificatesV1alpha1Api": ".api.certificates_v1alpha1_api", "CertificatesV1beta1Api": ".api.certificates_v1beta1_api", "CoordinationApi": ".api.coordination_api", "CoordinationV1Api": ".api.coordination_v1_api", @@ -1757,10 +1912,11 @@ "FlowcontrolApiserverV1Api": ".api.flowcontrol_apiserver_v1_api", "InternalApiserverApi": ".api.internal_apiserver_api", "InternalApiserverV1alpha1Api": ".api.internal_apiserver_v1alpha1_api", + "LifecycleApi": ".api.lifecycle_api", + "LifecycleV1alpha1Api": ".api.lifecycle_v1alpha1_api", "LogsApi": ".api.logs_api", "NetworkingApi": ".api.networking_api", "NetworkingV1Api": ".api.networking_v1_api", - "NetworkingV1beta1Api": ".api.networking_v1beta1_api", "NodeApi": ".api.node_api", "NodeV1Api": ".api.node_v1_api", "OpenidApi": ".api.openid_api", @@ -1775,11 +1931,12 @@ "ResourceV1beta2Api": ".api.resource_v1beta2_api", "SchedulingApi": ".api.scheduling_api", "SchedulingV1Api": ".api.scheduling_v1_api", - "SchedulingV1alpha2Api": ".api.scheduling_v1alpha2_api", + "SchedulingV1alpha3Api": ".api.scheduling_v1alpha3_api", + "SchedulingV1beta1Api": ".api.scheduling_v1beta1_api", "StorageApi": ".api.storage_api", "StorageV1Api": ".api.storage_v1_api", - "StorageV1beta1Api": ".api.storage_v1beta1_api", "StoragemigrationApi": ".api.storagemigration_api", + "StoragemigrationV1Api": ".api.storagemigration_v1_api", "StoragemigrationV1beta1Api": ".api.storagemigration_v1beta1_api", "VersionApi": ".api.version_api", "ApiResponse": ".api_response", @@ -1842,6 +1999,7 @@ "V1CSINodeDriver": ".models.v1_csi_node_driver", "V1CSINodeList": ".models.v1_csi_node_list", "V1CSINodeSpec": ".models.v1_csi_node_spec", + "V1CSINodeStatus": ".models.v1_csi_node_status", "V1CSIPersistentVolumeSource": ".models.v1_csi_persistent_volume_source", "V1CSIStorageCapacity": ".models.v1_csi_storage_capacity", "V1CSIStorageCapacityList": ".models.v1_csi_storage_capacity_list", @@ -1864,7 +2022,10 @@ "V1ClusterRoleBinding": ".models.v1_cluster_role_binding", "V1ClusterRoleBindingList": ".models.v1_cluster_role_binding_list", "V1ClusterRoleList": ".models.v1_cluster_role_list", + "V1ClusterTrustBundle": ".models.v1_cluster_trust_bundle", + "V1ClusterTrustBundleList": ".models.v1_cluster_trust_bundle_list", "V1ClusterTrustBundleProjection": ".models.v1_cluster_trust_bundle_projection", + "V1ClusterTrustBundleSpec": ".models.v1_cluster_trust_bundle_spec", "V1ComponentCondition": ".models.v1_component_condition", "V1ComponentStatus": ".models.v1_component_status", "V1ComponentStatusList": ".models.v1_component_status_list", @@ -1937,11 +2098,17 @@ "V1DeviceClassSpec": ".models.v1_device_class_spec", "V1DeviceConstraint": ".models.v1_device_constraint", "V1DeviceCounterConsumption": ".models.v1_device_counter_consumption", + "V1DeviceDerivedAttribute": ".models.v1_device_derived_attribute", "V1DeviceRequest": ".models.v1_device_request", "V1DeviceRequestAllocationResult": ".models.v1_device_request_allocation_result", "V1DeviceSelector": ".models.v1_device_selector", "V1DeviceSubRequest": ".models.v1_device_sub_request", "V1DeviceTaint": ".models.v1_device_taint", + "V1DeviceTaintRule": ".models.v1_device_taint_rule", + "V1DeviceTaintRuleList": ".models.v1_device_taint_rule_list", + "V1DeviceTaintRuleSpec": ".models.v1_device_taint_rule_spec", + "V1DeviceTaintRuleStatus": ".models.v1_device_taint_rule_status", + "V1DeviceTaintSelector": ".models.v1_device_taint_selector", "V1DeviceToleration": ".models.v1_device_toleration", "V1DownwardAPIProjection": ".models.v1_downward_api_projection", "V1DownwardAPIVolumeFile": ".models.v1_downward_api_volume_file", @@ -1963,6 +2130,7 @@ "V1EphemeralVolumeSource": ".models.v1_ephemeral_volume_source", "V1EventSource": ".models.v1_event_source", "V1Eviction": ".models.v1_eviction", + "V1EvictionResponder": ".models.v1_eviction_responder", "V1ExactDeviceRequest": ".models.v1_exact_device_request", "V1ExecAction": ".models.v1_exec_action", "V1ExemptPriorityLevelConfiguration": ".models.v1_exempt_priority_level_configuration", @@ -2031,6 +2199,7 @@ "V1Job": ".models.v1_job", "V1JobCondition": ".models.v1_job_condition", "V1JobList": ".models.v1_job_list", + "V1JobSchedulingConfiguration": ".models.v1_job_scheduling_configuration", "V1JobSpec": ".models.v1_job_spec", "V1JobStatus": ".models.v1_job_status", "V1JobTemplateSpec": ".models.v1_job_template_spec", @@ -2088,14 +2257,19 @@ "V1Node": ".models.v1_node", "V1NodeAddress": ".models.v1_node_address", "V1NodeAffinity": ".models.v1_node_affinity", + "V1NodeAllocatableMappedResources": ".models.v1_node_allocatable_mapped_resources", + "V1NodeAllocatableMapping": ".models.v1_node_allocatable_mapping", + "V1NodeAllocatableOverhead": ".models.v1_node_allocatable_overhead", + "V1NodeAllocatableOverheadResources": ".models.v1_node_allocatable_overhead_resources", + "V1NodeAllocatableResource": ".models.v1_node_allocatable_resource", "V1NodeAllocatableResourceClaimStatus": ".models.v1_node_allocatable_resource_claim_status", - "V1NodeAllocatableResourceMapping": ".models.v1_node_allocatable_resource_mapping", "V1NodeCondition": ".models.v1_node_condition", "V1NodeConfigSource": ".models.v1_node_config_source", "V1NodeConfigStatus": ".models.v1_node_config_status", "V1NodeDaemonEndpoints": ".models.v1_node_daemon_endpoints", "V1NodeFeatures": ".models.v1_node_features", "V1NodeList": ".models.v1_node_list", + "V1NodePodPreemptionPolicy": ".models.v1_node_pod_preemption_policy", "V1NodeRuntimeHandler": ".models.v1_node_runtime_handler", "V1NodeRuntimeHandlerFeatures": ".models.v1_node_runtime_handler_features", "V1NodeSelector": ".models.v1_node_selector", @@ -2134,6 +2308,10 @@ "V1PodAffinityTerm": ".models.v1_pod_affinity_term", "V1PodAntiAffinity": ".models.v1_pod_anti_affinity", "V1PodCertificateProjection": ".models.v1_pod_certificate_projection", + "V1PodCertificateRequest": ".models.v1_pod_certificate_request", + "V1PodCertificateRequestList": ".models.v1_pod_certificate_request_list", + "V1PodCertificateRequestSpec": ".models.v1_pod_certificate_request_spec", + "V1PodCertificateRequestStatus": ".models.v1_pod_certificate_request_status", "V1PodCondition": ".models.v1_pod_condition", "V1PodDNSConfig": ".models.v1_pod_dns_config", "V1PodDNSConfigOption": ".models.v1_pod_dns_config_option", @@ -2160,6 +2338,7 @@ "V1PodTemplate": ".models.v1_pod_template", "V1PodTemplateList": ".models.v1_pod_template_list", "V1PodTemplateSpec": ".models.v1_pod_template_spec", + "V1PodVolumeHealth": ".models.v1_pod_volume_health", "V1PolicyRule": ".models.v1_policy_rule", "V1PolicyRulesWithSubjects": ".models.v1_policy_rules_with_subjects", "V1PortStatus": ".models.v1_port_status", @@ -2279,8 +2458,14 @@ "V1StatusDetails": ".models.v1_status_details", "V1StorageClass": ".models.v1_storage_class", "V1StorageClassList": ".models.v1_storage_class_list", + "V1StorageHealth": ".models.v1_storage_health", + "V1StorageHealthCondition": ".models.v1_storage_health_condition", "V1StorageOSPersistentVolumeSource": ".models.v1_storage_os_persistent_volume_source", "V1StorageOSVolumeSource": ".models.v1_storage_os_volume_source", + "V1StorageVersionMigration": ".models.v1_storage_version_migration", + "V1StorageVersionMigrationList": ".models.v1_storage_version_migration_list", + "V1StorageVersionMigrationSpec": ".models.v1_storage_version_migration_spec", + "V1StorageVersionMigrationStatus": ".models.v1_storage_version_migration_status", "V1SubjectAccessReview": ".models.v1_subject_access_review", "V1SubjectAccessReviewSpec": ".models.v1_subject_access_review_spec", "V1SubjectAccessReviewStatus": ".models.v1_subject_access_review_status", @@ -2328,6 +2513,8 @@ "V1VolumeAttributesClassList": ".models.v1_volume_attributes_class_list", "V1VolumeDevice": ".models.v1_volume_device", "V1VolumeError": ".models.v1_volume_error", + "V1VolumeHealthCondition": ".models.v1_volume_health_condition", + "V1VolumeHealthStatus": ".models.v1_volume_health_status", "V1VolumeMount": ".models.v1_volume_mount", "V1VolumeMountStatus": ".models.v1_volume_mount_status", "V1VolumeNodeAffinity": ".models.v1_volume_node_affinity", @@ -2341,9 +2528,18 @@ "V1WeightedPodAffinityTerm": ".models.v1_weighted_pod_affinity_term", "V1WindowsSecurityContextOptions": ".models.v1_windows_security_context_options", "V1alpha1ApplyConfiguration": ".models.v1alpha1_apply_configuration", - "V1alpha1ClusterTrustBundle": ".models.v1alpha1_cluster_trust_bundle", - "V1alpha1ClusterTrustBundleList": ".models.v1alpha1_cluster_trust_bundle_list", - "V1alpha1ClusterTrustBundleSpec": ".models.v1alpha1_cluster_trust_bundle_spec", + "V1alpha1Eviction": ".models.v1alpha1_eviction", + "V1alpha1EvictionList": ".models.v1alpha1_eviction_list", + "V1alpha1EvictionPodReference": ".models.v1alpha1_eviction_pod_reference", + "V1alpha1EvictionRequest": ".models.v1alpha1_eviction_request", + "V1alpha1EvictionRequestList": ".models.v1alpha1_eviction_request_list", + "V1alpha1EvictionRequestPodReference": ".models.v1alpha1_eviction_request_pod_reference", + "V1alpha1EvictionRequestSpec": ".models.v1alpha1_eviction_request_spec", + "V1alpha1EvictionRequestStatus": ".models.v1alpha1_eviction_request_status", + "V1alpha1EvictionRequestTarget": ".models.v1alpha1_eviction_request_target", + "V1alpha1EvictionSpec": ".models.v1alpha1_eviction_spec", + "V1alpha1EvictionStatus": ".models.v1alpha1_eviction_status", + "V1alpha1EvictionTarget": ".models.v1alpha1_eviction_target", "V1alpha1JSONPatch": ".models.v1alpha1_json_patch", "V1alpha1MatchCondition": ".models.v1alpha1_match_condition", "V1alpha1MatchResources": ".models.v1alpha1_match_resources", @@ -2357,43 +2553,63 @@ "V1alpha1NamedRuleWithOperations": ".models.v1alpha1_named_rule_with_operations", "V1alpha1ParamKind": ".models.v1alpha1_param_kind", "V1alpha1ParamRef": ".models.v1alpha1_param_ref", + "V1alpha1Requester": ".models.v1alpha1_requester", + "V1alpha1ResponderStatus": ".models.v1alpha1_responder_status", "V1alpha1ServerStorageVersion": ".models.v1alpha1_server_storage_version", "V1alpha1StorageVersion": ".models.v1alpha1_storage_version", "V1alpha1StorageVersionCondition": ".models.v1alpha1_storage_version_condition", "V1alpha1StorageVersionList": ".models.v1alpha1_storage_version_list", "V1alpha1StorageVersionStatus": ".models.v1alpha1_storage_version_status", + "V1alpha1TargetResponder": ".models.v1alpha1_target_responder", "V1alpha1Variable": ".models.v1alpha1_variable", - "V1alpha2GangSchedulingPolicy": ".models.v1alpha2_gang_scheduling_policy", "V1alpha2LeaseCandidate": ".models.v1alpha2_lease_candidate", "V1alpha2LeaseCandidateList": ".models.v1alpha2_lease_candidate_list", "V1alpha2LeaseCandidateSpec": ".models.v1alpha2_lease_candidate_spec", - "V1alpha2PodGroup": ".models.v1alpha2_pod_group", - "V1alpha2PodGroupList": ".models.v1alpha2_pod_group_list", - "V1alpha2PodGroupResourceClaim": ".models.v1alpha2_pod_group_resource_claim", - "V1alpha2PodGroupResourceClaimStatus": ".models.v1alpha2_pod_group_resource_claim_status", - "V1alpha2PodGroupSchedulingConstraints": ".models.v1alpha2_pod_group_scheduling_constraints", - "V1alpha2PodGroupSchedulingPolicy": ".models.v1alpha2_pod_group_scheduling_policy", - "V1alpha2PodGroupSpec": ".models.v1alpha2_pod_group_spec", - "V1alpha2PodGroupStatus": ".models.v1alpha2_pod_group_status", - "V1alpha2PodGroupTemplate": ".models.v1alpha2_pod_group_template", - "V1alpha2PodGroupTemplateReference": ".models.v1alpha2_pod_group_template_reference", - "V1alpha2TopologyConstraint": ".models.v1alpha2_topology_constraint", - "V1alpha2TypedLocalObjectReference": ".models.v1alpha2_typed_local_object_reference", - "V1alpha2Workload": ".models.v1alpha2_workload", - "V1alpha2WorkloadList": ".models.v1alpha2_workload_list", - "V1alpha2WorkloadPodGroupTemplateReference": ".models.v1alpha2_workload_pod_group_template_reference", - "V1alpha2WorkloadSpec": ".models.v1alpha2_workload_spec", + "V1alpha3CompositeDisruptionMode": ".models.v1alpha3_composite_disruption_mode", + "V1alpha3CompositeGangSchedulingPolicy": ".models.v1alpha3_composite_gang_scheduling_policy", + "V1alpha3CompositePodGroup": ".models.v1alpha3_composite_pod_group", + "V1alpha3CompositePodGroupList": ".models.v1alpha3_composite_pod_group_list", + "V1alpha3CompositePodGroupSchedulingConstraints": ".models.v1alpha3_composite_pod_group_scheduling_constraints", + "V1alpha3CompositePodGroupSchedulingPolicy": ".models.v1alpha3_composite_pod_group_scheduling_policy", + "V1alpha3CompositePodGroupSpec": ".models.v1alpha3_composite_pod_group_spec", + "V1alpha3CompositePodGroupStatus": ".models.v1alpha3_composite_pod_group_status", + "V1alpha3CompositePodGroupTemplate": ".models.v1alpha3_composite_pod_group_template", "V1alpha3DeviceTaint": ".models.v1alpha3_device_taint", "V1alpha3DeviceTaintRule": ".models.v1alpha3_device_taint_rule", "V1alpha3DeviceTaintRuleList": ".models.v1alpha3_device_taint_rule_list", "V1alpha3DeviceTaintRuleSpec": ".models.v1alpha3_device_taint_rule_spec", "V1alpha3DeviceTaintRuleStatus": ".models.v1alpha3_device_taint_rule_status", "V1alpha3DeviceTaintSelector": ".models.v1alpha3_device_taint_selector", + "V1alpha3DisruptionMode": ".models.v1alpha3_disruption_mode", + "V1alpha3GangSchedulingPolicy": ".models.v1alpha3_gang_scheduling_policy", + "V1alpha3PartitionTypeStatus": ".models.v1alpha3_partition_type_status", + "V1alpha3PodGroup": ".models.v1alpha3_pod_group", + "V1alpha3PodGroupList": ".models.v1alpha3_pod_group_list", + "V1alpha3PodGroupResourceClaim": ".models.v1alpha3_pod_group_resource_claim", + "V1alpha3PodGroupResourceClaimStatus": ".models.v1alpha3_pod_group_resource_claim_status", + "V1alpha3PodGroupSchedulingConstraints": ".models.v1alpha3_pod_group_scheduling_constraints", + "V1alpha3PodGroupSchedulingPolicy": ".models.v1alpha3_pod_group_scheduling_policy", + "V1alpha3PodGroupSpec": ".models.v1alpha3_pod_group_spec", + "V1alpha3PodGroupStatus": ".models.v1alpha3_pod_group_status", + "V1alpha3PodGroupTemplate": ".models.v1alpha3_pod_group_template", "V1alpha3PoolStatus": ".models.v1alpha3_pool_status", "V1alpha3ResourcePoolStatusRequest": ".models.v1alpha3_resource_pool_status_request", "V1alpha3ResourcePoolStatusRequestList": ".models.v1alpha3_resource_pool_status_request_list", "V1alpha3ResourcePoolStatusRequestSpec": ".models.v1alpha3_resource_pool_status_request_spec", "V1alpha3ResourcePoolStatusRequestStatus": ".models.v1alpha3_resource_pool_status_request_status", + "V1alpha3ShareableCapacityStatus": ".models.v1alpha3_shareable_capacity_status", + "V1alpha3ShareableSummaryStatus": ".models.v1alpha3_shareable_summary_status", + "V1alpha3TopologyConstraint": ".models.v1alpha3_topology_constraint", + "V1alpha3TypedLocalObjectReference": ".models.v1alpha3_typed_local_object_reference", + "V1alpha3Workload": ".models.v1alpha3_workload", + "V1alpha3WorkloadList": ".models.v1alpha3_workload_list", + "V1alpha3WorkloadPodGroupDisruptionMode": ".models.v1alpha3_workload_pod_group_disruption_mode", + "V1alpha3WorkloadPodGroupGangSchedulingPolicy": ".models.v1alpha3_workload_pod_group_gang_scheduling_policy", + "V1alpha3WorkloadPodGroupResourceClaim": ".models.v1alpha3_workload_pod_group_resource_claim", + "V1alpha3WorkloadPodGroupSchedulingConstraints": ".models.v1alpha3_workload_pod_group_scheduling_constraints", + "V1alpha3WorkloadPodGroupSchedulingPolicy": ".models.v1alpha3_workload_pod_group_scheduling_policy", + "V1alpha3WorkloadReference": ".models.v1alpha3_workload_reference", + "V1alpha3WorkloadSpec": ".models.v1alpha3_workload_spec", "V1beta1AllocatedDeviceStatus": ".models.v1beta1_allocated_device_status", "V1beta1AllocationResult": ".models.v1beta1_allocation_result", "V1beta1ApplyConfiguration": ".models.v1beta1_apply_configuration", @@ -2405,6 +2621,11 @@ "V1beta1ClusterTrustBundle": ".models.v1beta1_cluster_trust_bundle", "V1beta1ClusterTrustBundleList": ".models.v1beta1_cluster_trust_bundle_list", "V1beta1ClusterTrustBundleSpec": ".models.v1beta1_cluster_trust_bundle_spec", + "V1beta1CompositeDisruptionMode": ".models.v1beta1_composite_disruption_mode", + "V1beta1CompositeGangSchedulingPolicy": ".models.v1beta1_composite_gang_scheduling_policy", + "V1beta1CompositePodGroupSchedulingConstraints": ".models.v1beta1_composite_pod_group_scheduling_constraints", + "V1beta1CompositePodGroupSchedulingPolicy": ".models.v1beta1_composite_pod_group_scheduling_policy", + "V1beta1CompositePodGroupTemplate": ".models.v1beta1_composite_pod_group_template", "V1beta1Counter": ".models.v1beta1_counter", "V1beta1CounterSet": ".models.v1beta1_counter_set", "V1beta1Device": ".models.v1beta1_device", @@ -2420,15 +2641,15 @@ "V1beta1DeviceClassSpec": ".models.v1beta1_device_class_spec", "V1beta1DeviceConstraint": ".models.v1beta1_device_constraint", "V1beta1DeviceCounterConsumption": ".models.v1beta1_device_counter_consumption", + "V1beta1DeviceDerivedAttribute": ".models.v1beta1_device_derived_attribute", "V1beta1DeviceRequest": ".models.v1beta1_device_request", "V1beta1DeviceRequestAllocationResult": ".models.v1beta1_device_request_allocation_result", "V1beta1DeviceSelector": ".models.v1beta1_device_selector", "V1beta1DeviceSubRequest": ".models.v1beta1_device_sub_request", "V1beta1DeviceTaint": ".models.v1beta1_device_taint", "V1beta1DeviceToleration": ".models.v1beta1_device_toleration", - "V1beta1IPAddress": ".models.v1beta1_ip_address", - "V1beta1IPAddressList": ".models.v1beta1_ip_address_list", - "V1beta1IPAddressSpec": ".models.v1beta1_ip_address_spec", + "V1beta1DisruptionMode": ".models.v1beta1_disruption_mode", + "V1beta1GangSchedulingPolicy": ".models.v1beta1_gang_scheduling_policy", "V1beta1JSONPatch": ".models.v1beta1_json_patch", "V1beta1LeaseCandidate": ".models.v1beta1_lease_candidate", "V1beta1LeaseCandidateList": ".models.v1beta1_lease_candidate_list", @@ -2444,15 +2665,25 @@ "V1beta1Mutation": ".models.v1beta1_mutation", "V1beta1NamedRuleWithOperations": ".models.v1beta1_named_rule_with_operations", "V1beta1NetworkDeviceData": ".models.v1beta1_network_device_data", - "V1beta1NodeAllocatableResourceMapping": ".models.v1beta1_node_allocatable_resource_mapping", + "V1beta1NodeAllocatableMapping": ".models.v1beta1_node_allocatable_mapping", + "V1beta1NodeAllocatableOverhead": ".models.v1beta1_node_allocatable_overhead", + "V1beta1NodeAllocatableResource": ".models.v1beta1_node_allocatable_resource", "V1beta1OpaqueDeviceConfiguration": ".models.v1beta1_opaque_device_configuration", "V1beta1ParamKind": ".models.v1beta1_param_kind", "V1beta1ParamRef": ".models.v1beta1_param_ref", - "V1beta1ParentReference": ".models.v1beta1_parent_reference", "V1beta1PodCertificateRequest": ".models.v1beta1_pod_certificate_request", "V1beta1PodCertificateRequestList": ".models.v1beta1_pod_certificate_request_list", "V1beta1PodCertificateRequestSpec": ".models.v1beta1_pod_certificate_request_spec", "V1beta1PodCertificateRequestStatus": ".models.v1beta1_pod_certificate_request_status", + "V1beta1PodGroup": ".models.v1beta1_pod_group", + "V1beta1PodGroupList": ".models.v1beta1_pod_group_list", + "V1beta1PodGroupResourceClaim": ".models.v1beta1_pod_group_resource_claim", + "V1beta1PodGroupResourceClaimStatus": ".models.v1beta1_pod_group_resource_claim_status", + "V1beta1PodGroupSchedulingConstraints": ".models.v1beta1_pod_group_scheduling_constraints", + "V1beta1PodGroupSchedulingPolicy": ".models.v1beta1_pod_group_scheduling_policy", + "V1beta1PodGroupSpec": ".models.v1beta1_pod_group_spec", + "V1beta1PodGroupStatus": ".models.v1beta1_pod_group_status", + "V1beta1PodGroupTemplate": ".models.v1beta1_pod_group_template", "V1beta1ResourceClaim": ".models.v1beta1_resource_claim", "V1beta1ResourceClaimConsumerReference": ".models.v1beta1_resource_claim_consumer_reference", "V1beta1ResourceClaimList": ".models.v1beta1_resource_claim_list", @@ -2465,17 +2696,17 @@ "V1beta1ResourceSlice": ".models.v1beta1_resource_slice", "V1beta1ResourceSliceList": ".models.v1beta1_resource_slice_list", "V1beta1ResourceSliceSpec": ".models.v1beta1_resource_slice_spec", - "V1beta1ServiceCIDR": ".models.v1beta1_service_cidr", - "V1beta1ServiceCIDRList": ".models.v1beta1_service_cidr_list", - "V1beta1ServiceCIDRSpec": ".models.v1beta1_service_cidr_spec", - "V1beta1ServiceCIDRStatus": ".models.v1beta1_service_cidr_status", "V1beta1StorageVersionMigration": ".models.v1beta1_storage_version_migration", "V1beta1StorageVersionMigrationList": ".models.v1beta1_storage_version_migration_list", "V1beta1StorageVersionMigrationSpec": ".models.v1beta1_storage_version_migration_spec", "V1beta1StorageVersionMigrationStatus": ".models.v1beta1_storage_version_migration_status", + "V1beta1TopologyConstraint": ".models.v1beta1_topology_constraint", + "V1beta1TypedLocalObjectReference": ".models.v1beta1_typed_local_object_reference", "V1beta1Variable": ".models.v1beta1_variable", - "V1beta1VolumeAttributesClass": ".models.v1beta1_volume_attributes_class", - "V1beta1VolumeAttributesClassList": ".models.v1beta1_volume_attributes_class_list", + "V1beta1Workload": ".models.v1beta1_workload", + "V1beta1WorkloadList": ".models.v1beta1_workload_list", + "V1beta1WorkloadReference": ".models.v1beta1_workload_reference", + "V1beta1WorkloadSpec": ".models.v1beta1_workload_spec", "V1beta2AllocatedDeviceStatus": ".models.v1beta2_allocated_device_status", "V1beta2AllocationResult": ".models.v1beta2_allocation_result", "V1beta2CELDeviceSelector": ".models.v1beta2_cel_device_selector", @@ -2497,6 +2728,7 @@ "V1beta2DeviceClassSpec": ".models.v1beta2_device_class_spec", "V1beta2DeviceConstraint": ".models.v1beta2_device_constraint", "V1beta2DeviceCounterConsumption": ".models.v1beta2_device_counter_consumption", + "V1beta2DeviceDerivedAttribute": ".models.v1beta2_device_derived_attribute", "V1beta2DeviceRequest": ".models.v1beta2_device_request", "V1beta2DeviceRequestAllocationResult": ".models.v1beta2_device_request_allocation_result", "V1beta2DeviceSelector": ".models.v1beta2_device_selector", @@ -2510,7 +2742,9 @@ "V1beta2DeviceToleration": ".models.v1beta2_device_toleration", "V1beta2ExactDeviceRequest": ".models.v1beta2_exact_device_request", "V1beta2NetworkDeviceData": ".models.v1beta2_network_device_data", - "V1beta2NodeAllocatableResourceMapping": ".models.v1beta2_node_allocatable_resource_mapping", + "V1beta2NodeAllocatableMapping": ".models.v1beta2_node_allocatable_mapping", + "V1beta2NodeAllocatableOverhead": ".models.v1beta2_node_allocatable_overhead", + "V1beta2NodeAllocatableResource": ".models.v1beta2_node_allocatable_resource", "V1beta2OpaqueDeviceConfiguration": ".models.v1beta2_opaque_device_configuration", "V1beta2ResourceClaim": ".models.v1beta2_resource_claim", "V1beta2ResourceClaimConsumerReference": ".models.v1beta2_resource_claim_consumer_reference", diff --git a/kubernetes/client/api_client.py b/kubernetes/client/api_client.py index c4630736db..40eaa6ea65 100644 --- a/kubernetes/client/api_client.py +++ b/kubernetes/client/api_client.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -129,7 +129,7 @@ def __init__( self.pool_threads = pool_threads self._pool_lock = Lock() # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/36.0.0+snapshot/python' + self.user_agent = 'OpenAPI-Generator/37.0.0+snapshot/python' self.client_side_validation = configuration.client_side_validation def close(self): diff --git a/kubernetes/client/configuration.py b/kubernetes/client/configuration.py index 9d67b322b3..85cf8f2952 100644 --- a/kubernetes/client/configuration.py +++ b/kubernetes/client/configuration.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -603,8 +603,8 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: release-1.36\n"\ - "SDK Package Version: 36.0.0+snapshot".\ + "Version of the API: release-1.37\n"\ + "SDK Package Version: 37.0.0+snapshot".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/kubernetes/client/exceptions.py b/kubernetes/client/exceptions.py index 29fa5db711..819e2062ca 100644 --- a/kubernetes/client/exceptions.py +++ b/kubernetes/client/exceptions.py @@ -3,7 +3,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/kubernetes/client/rest.py b/kubernetes/client/rest.py index 736c33f3cb..78d79207e7 100644 --- a/kubernetes/client/rest.py +++ b/kubernetes/client/rest.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - The version of the OpenAPI document: release-1.36 + The version of the OpenAPI document: release-1.37 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/setup-asyncio.py b/setup-asyncio.py index 8dafbc0d4d..9d11b0da46 100644 --- a/setup-asyncio.py +++ b/setup-asyncio.py @@ -16,7 +16,7 @@ # Do not edit these constants. They will be updated automatically # by scripts/update-client-asyncio.sh. -CLIENT_VERSION = "36.0.0+snapshot" +CLIENT_VERSION = "37.0.0+snapshot" PACKAGE_NAME = "kubernetes.aio" DEVELOPMENT_STATUS = "3 - Alpha" diff --git a/setup-release.py b/setup-release.py index 0db9e2c728..17db721752 100644 --- a/setup-release.py +++ b/setup-release.py @@ -16,7 +16,7 @@ # Do not edit these constants. They will be updated automatically # by scripts/update-client.sh. -CLIENT_VERSION = "36.0.0+snapshot" +CLIENT_VERSION = "37.0.0+snapshot" PACKAGE_NAME = "kubernetes" DEVELOPMENT_STATUS = "3 - Alpha" diff --git a/setup.py b/setup.py index a18468c285..fab651f1ef 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ # Do not edit these constants. They will be updated automatically # by scripts/update-client.sh. -CLIENT_VERSION = "36.0.0+snapshot" +CLIENT_VERSION = "37.0.0+snapshot" PACKAGE_NAME = "kubernetes" DEVELOPMENT_STATUS = "3 - Alpha" From 5f3bb4a337828e0fe942b3e7321c68a7e10f01dd Mon Sep 17 00:00:00 2001 From: yliao Date: Fri, 28 Aug 2026 22:19:00 +0000 Subject: [PATCH 6/6] removed the tests under kubernetes/aio/test/, generated by 1.36 --- .../test/test_admissionregistration_api.py | 39 - .../test/test_admissionregistration_v1_api.py | 309 ---- ...test_admissionregistration_v1alpha1_api.py | 123 -- .../test_admissionregistration_v1beta1_api.py | 123 -- kubernetes/aio/test/test_apiextensions_api.py | 39 - .../aio/test/test_apiextensions_v1_api.py | 99 -- .../aio/test/test_apiregistration_api.py | 39 - .../aio/test/test_apiregistration_v1_api.py | 99 -- kubernetes/aio/test/test_apis_api.py | 39 - kubernetes/aio/test/test_apps_api.py | 39 - kubernetes/aio/test/test_apps_v1_api.py | 405 ------ .../aio/test/test_authentication_api.py | 39 - .../aio/test/test_authentication_v1_api.py | 51 - kubernetes/aio/test/test_authorization_api.py | 39 - .../aio/test/test_authorization_v1_api.py | 63 - kubernetes/aio/test/test_autoscaling_api.py | 39 - .../aio/test/test_autoscaling_v1_api.py | 105 -- .../aio/test/test_autoscaling_v2_api.py | 105 -- kubernetes/aio/test/test_batch_api.py | 39 - kubernetes/aio/test/test_batch_v1_api.py | 171 --- kubernetes/aio/test/test_certificates_api.py | 39 - .../aio/test/test_certificates_v1_api.py | 117 -- .../test/test_certificates_v1alpha1_api.py | 81 -- .../aio/test/test_certificates_v1beta1_api.py | 147 -- kubernetes/aio/test/test_coordination_api.py | 39 - .../aio/test/test_coordination_v1_api.py | 87 -- .../test/test_coordination_v1alpha2_api.py | 87 -- .../aio/test/test_coordination_v1beta1_api.py | 87 -- kubernetes/aio/test/test_core_api.py | 39 - kubernetes/aio/test/test_core_v1_api.py | 1269 ----------------- .../aio/test/test_custom_objects_api.py | 201 --- kubernetes/aio/test/test_discovery_api.py | 39 - kubernetes/aio/test/test_discovery_v1_api.py | 87 -- kubernetes/aio/test/test_events_api.py | 39 - kubernetes/aio/test/test_events_v1_api.py | 87 -- .../test/test_flowcontrol_apiserver_api.py | 39 - .../test/test_flowcontrol_apiserver_v1_api.py | 159 --- .../aio/test/test_internal_apiserver_api.py | 39 - .../test_internal_apiserver_v1alpha1_api.py | 99 -- kubernetes/aio/test/test_logs_api.py | 45 - kubernetes/aio/test/test_networking_api.py | 39 - kubernetes/aio/test/test_networking_v1_api.py | 297 ---- .../aio/test/test_networking_v1beta1_api.py | 141 -- kubernetes/aio/test/test_node_api.py | 39 - kubernetes/aio/test/test_node_v1_api.py | 81 -- kubernetes/aio/test/test_openid_api.py | 39 - kubernetes/aio/test/test_policy_api.py | 39 - kubernetes/aio/test/test_policy_v1_api.py | 105 -- .../aio/test/test_rbac_authorization_api.py | 39 - .../test/test_rbac_authorization_v1_api.py | 219 --- kubernetes/aio/test/test_resource_api.py | 39 - kubernetes/aio/test/test_resource_v1_api.py | 237 --- .../aio/test/test_resource_v1alpha3_api.py | 159 --- .../aio/test/test_resource_v1beta1_api.py | 237 --- .../aio/test/test_resource_v1beta2_api.py | 297 ---- kubernetes/aio/test/test_scheduling_api.py | 39 - kubernetes/aio/test/test_scheduling_v1_api.py | 81 -- .../aio/test/test_scheduling_v1alpha2_api.py | 153 -- kubernetes/aio/test/test_storage_api.py | 39 - kubernetes/aio/test/test_storage_v1_api.py | 315 ---- .../aio/test/test_storage_v1beta1_api.py | 81 -- .../aio/test/test_storagemigration_api.py | 39 - .../test/test_storagemigration_v1beta1_api.py | 99 -- kubernetes/aio/test/test_version_api.py | 39 - kubernetes/aio/test/test_well_known_api.py | 39 - 65 files changed, 7761 deletions(-) delete mode 100644 kubernetes/aio/test/test_admissionregistration_api.py delete mode 100644 kubernetes/aio/test/test_admissionregistration_v1_api.py delete mode 100644 kubernetes/aio/test/test_admissionregistration_v1alpha1_api.py delete mode 100644 kubernetes/aio/test/test_admissionregistration_v1beta1_api.py delete mode 100644 kubernetes/aio/test/test_apiextensions_api.py delete mode 100644 kubernetes/aio/test/test_apiextensions_v1_api.py delete mode 100644 kubernetes/aio/test/test_apiregistration_api.py delete mode 100644 kubernetes/aio/test/test_apiregistration_v1_api.py delete mode 100644 kubernetes/aio/test/test_apis_api.py delete mode 100644 kubernetes/aio/test/test_apps_api.py delete mode 100644 kubernetes/aio/test/test_apps_v1_api.py delete mode 100644 kubernetes/aio/test/test_authentication_api.py delete mode 100644 kubernetes/aio/test/test_authentication_v1_api.py delete mode 100644 kubernetes/aio/test/test_authorization_api.py delete mode 100644 kubernetes/aio/test/test_authorization_v1_api.py delete mode 100644 kubernetes/aio/test/test_autoscaling_api.py delete mode 100644 kubernetes/aio/test/test_autoscaling_v1_api.py delete mode 100644 kubernetes/aio/test/test_autoscaling_v2_api.py delete mode 100644 kubernetes/aio/test/test_batch_api.py delete mode 100644 kubernetes/aio/test/test_batch_v1_api.py delete mode 100644 kubernetes/aio/test/test_certificates_api.py delete mode 100644 kubernetes/aio/test/test_certificates_v1_api.py delete mode 100644 kubernetes/aio/test/test_certificates_v1alpha1_api.py delete mode 100644 kubernetes/aio/test/test_certificates_v1beta1_api.py delete mode 100644 kubernetes/aio/test/test_coordination_api.py delete mode 100644 kubernetes/aio/test/test_coordination_v1_api.py delete mode 100644 kubernetes/aio/test/test_coordination_v1alpha2_api.py delete mode 100644 kubernetes/aio/test/test_coordination_v1beta1_api.py delete mode 100644 kubernetes/aio/test/test_core_api.py delete mode 100644 kubernetes/aio/test/test_core_v1_api.py delete mode 100644 kubernetes/aio/test/test_custom_objects_api.py delete mode 100644 kubernetes/aio/test/test_discovery_api.py delete mode 100644 kubernetes/aio/test/test_discovery_v1_api.py delete mode 100644 kubernetes/aio/test/test_events_api.py delete mode 100644 kubernetes/aio/test/test_events_v1_api.py delete mode 100644 kubernetes/aio/test/test_flowcontrol_apiserver_api.py delete mode 100644 kubernetes/aio/test/test_flowcontrol_apiserver_v1_api.py delete mode 100644 kubernetes/aio/test/test_internal_apiserver_api.py delete mode 100644 kubernetes/aio/test/test_internal_apiserver_v1alpha1_api.py delete mode 100644 kubernetes/aio/test/test_logs_api.py delete mode 100644 kubernetes/aio/test/test_networking_api.py delete mode 100644 kubernetes/aio/test/test_networking_v1_api.py delete mode 100644 kubernetes/aio/test/test_networking_v1beta1_api.py delete mode 100644 kubernetes/aio/test/test_node_api.py delete mode 100644 kubernetes/aio/test/test_node_v1_api.py delete mode 100644 kubernetes/aio/test/test_openid_api.py delete mode 100644 kubernetes/aio/test/test_policy_api.py delete mode 100644 kubernetes/aio/test/test_policy_v1_api.py delete mode 100644 kubernetes/aio/test/test_rbac_authorization_api.py delete mode 100644 kubernetes/aio/test/test_rbac_authorization_v1_api.py delete mode 100644 kubernetes/aio/test/test_resource_api.py delete mode 100644 kubernetes/aio/test/test_resource_v1_api.py delete mode 100644 kubernetes/aio/test/test_resource_v1alpha3_api.py delete mode 100644 kubernetes/aio/test/test_resource_v1beta1_api.py delete mode 100644 kubernetes/aio/test/test_resource_v1beta2_api.py delete mode 100644 kubernetes/aio/test/test_scheduling_api.py delete mode 100644 kubernetes/aio/test/test_scheduling_v1_api.py delete mode 100644 kubernetes/aio/test/test_scheduling_v1alpha2_api.py delete mode 100644 kubernetes/aio/test/test_storage_api.py delete mode 100644 kubernetes/aio/test/test_storage_v1_api.py delete mode 100644 kubernetes/aio/test/test_storage_v1beta1_api.py delete mode 100644 kubernetes/aio/test/test_storagemigration_api.py delete mode 100644 kubernetes/aio/test/test_storagemigration_v1beta1_api.py delete mode 100644 kubernetes/aio/test/test_version_api.py delete mode 100644 kubernetes/aio/test/test_well_known_api.py diff --git a/kubernetes/aio/test/test_admissionregistration_api.py b/kubernetes/aio/test/test_admissionregistration_api.py deleted file mode 100644 index 3730b58437..0000000000 --- a/kubernetes/aio/test/test_admissionregistration_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.admissionregistration_api import AdmissionregistrationApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestAdmissionregistrationApi(unittest.IsolatedAsyncioTestCase): - """AdmissionregistrationApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.admissionregistration_api.AdmissionregistrationApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_admissionregistration_v1_api.py b/kubernetes/aio/test/test_admissionregistration_v1_api.py deleted file mode 100644 index 36410ef13f..0000000000 --- a/kubernetes/aio/test/test_admissionregistration_v1_api.py +++ /dev/null @@ -1,309 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.admissionregistration_v1_api import AdmissionregistrationV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestAdmissionregistrationV1Api(unittest.IsolatedAsyncioTestCase): - """AdmissionregistrationV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.admissionregistration_v1_api.AdmissionregistrationV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_mutating_admission_policy(self): - """Test case for create_mutating_admission_policy - - """ - pass - - def test_create_mutating_admission_policy_binding(self): - """Test case for create_mutating_admission_policy_binding - - """ - pass - - def test_create_mutating_webhook_configuration(self): - """Test case for create_mutating_webhook_configuration - - """ - pass - - def test_create_validating_admission_policy(self): - """Test case for create_validating_admission_policy - - """ - pass - - def test_create_validating_admission_policy_binding(self): - """Test case for create_validating_admission_policy_binding - - """ - pass - - def test_create_validating_webhook_configuration(self): - """Test case for create_validating_webhook_configuration - - """ - pass - - def test_delete_collection_mutating_admission_policy(self): - """Test case for delete_collection_mutating_admission_policy - - """ - pass - - def test_delete_collection_mutating_admission_policy_binding(self): - """Test case for delete_collection_mutating_admission_policy_binding - - """ - pass - - def test_delete_collection_mutating_webhook_configuration(self): - """Test case for delete_collection_mutating_webhook_configuration - - """ - pass - - def test_delete_collection_validating_admission_policy(self): - """Test case for delete_collection_validating_admission_policy - - """ - pass - - def test_delete_collection_validating_admission_policy_binding(self): - """Test case for delete_collection_validating_admission_policy_binding - - """ - pass - - def test_delete_collection_validating_webhook_configuration(self): - """Test case for delete_collection_validating_webhook_configuration - - """ - pass - - def test_delete_mutating_admission_policy(self): - """Test case for delete_mutating_admission_policy - - """ - pass - - def test_delete_mutating_admission_policy_binding(self): - """Test case for delete_mutating_admission_policy_binding - - """ - pass - - def test_delete_mutating_webhook_configuration(self): - """Test case for delete_mutating_webhook_configuration - - """ - pass - - def test_delete_validating_admission_policy(self): - """Test case for delete_validating_admission_policy - - """ - pass - - def test_delete_validating_admission_policy_binding(self): - """Test case for delete_validating_admission_policy_binding - - """ - pass - - def test_delete_validating_webhook_configuration(self): - """Test case for delete_validating_webhook_configuration - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_mutating_admission_policy(self): - """Test case for list_mutating_admission_policy - - """ - pass - - def test_list_mutating_admission_policy_binding(self): - """Test case for list_mutating_admission_policy_binding - - """ - pass - - def test_list_mutating_webhook_configuration(self): - """Test case for list_mutating_webhook_configuration - - """ - pass - - def test_list_validating_admission_policy(self): - """Test case for list_validating_admission_policy - - """ - pass - - def test_list_validating_admission_policy_binding(self): - """Test case for list_validating_admission_policy_binding - - """ - pass - - def test_list_validating_webhook_configuration(self): - """Test case for list_validating_webhook_configuration - - """ - pass - - def test_patch_mutating_admission_policy(self): - """Test case for patch_mutating_admission_policy - - """ - pass - - def test_patch_mutating_admission_policy_binding(self): - """Test case for patch_mutating_admission_policy_binding - - """ - pass - - def test_patch_mutating_webhook_configuration(self): - """Test case for patch_mutating_webhook_configuration - - """ - pass - - def test_patch_validating_admission_policy(self): - """Test case for patch_validating_admission_policy - - """ - pass - - def test_patch_validating_admission_policy_binding(self): - """Test case for patch_validating_admission_policy_binding - - """ - pass - - def test_patch_validating_admission_policy_status(self): - """Test case for patch_validating_admission_policy_status - - """ - pass - - def test_patch_validating_webhook_configuration(self): - """Test case for patch_validating_webhook_configuration - - """ - pass - - def test_read_mutating_admission_policy(self): - """Test case for read_mutating_admission_policy - - """ - pass - - def test_read_mutating_admission_policy_binding(self): - """Test case for read_mutating_admission_policy_binding - - """ - pass - - def test_read_mutating_webhook_configuration(self): - """Test case for read_mutating_webhook_configuration - - """ - pass - - def test_read_validating_admission_policy(self): - """Test case for read_validating_admission_policy - - """ - pass - - def test_read_validating_admission_policy_binding(self): - """Test case for read_validating_admission_policy_binding - - """ - pass - - def test_read_validating_admission_policy_status(self): - """Test case for read_validating_admission_policy_status - - """ - pass - - def test_read_validating_webhook_configuration(self): - """Test case for read_validating_webhook_configuration - - """ - pass - - def test_replace_mutating_admission_policy(self): - """Test case for replace_mutating_admission_policy - - """ - pass - - def test_replace_mutating_admission_policy_binding(self): - """Test case for replace_mutating_admission_policy_binding - - """ - pass - - def test_replace_mutating_webhook_configuration(self): - """Test case for replace_mutating_webhook_configuration - - """ - pass - - def test_replace_validating_admission_policy(self): - """Test case for replace_validating_admission_policy - - """ - pass - - def test_replace_validating_admission_policy_binding(self): - """Test case for replace_validating_admission_policy_binding - - """ - pass - - def test_replace_validating_admission_policy_status(self): - """Test case for replace_validating_admission_policy_status - - """ - pass - - def test_replace_validating_webhook_configuration(self): - """Test case for replace_validating_webhook_configuration - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_admissionregistration_v1alpha1_api.py b/kubernetes/aio/test/test_admissionregistration_v1alpha1_api.py deleted file mode 100644 index 0f836e122c..0000000000 --- a/kubernetes/aio/test/test_admissionregistration_v1alpha1_api.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.admissionregistration_v1alpha1_api import AdmissionregistrationV1alpha1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestAdmissionregistrationV1alpha1Api(unittest.IsolatedAsyncioTestCase): - """AdmissionregistrationV1alpha1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.admissionregistration_v1alpha1_api.AdmissionregistrationV1alpha1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_mutating_admission_policy(self): - """Test case for create_mutating_admission_policy - - """ - pass - - def test_create_mutating_admission_policy_binding(self): - """Test case for create_mutating_admission_policy_binding - - """ - pass - - def test_delete_collection_mutating_admission_policy(self): - """Test case for delete_collection_mutating_admission_policy - - """ - pass - - def test_delete_collection_mutating_admission_policy_binding(self): - """Test case for delete_collection_mutating_admission_policy_binding - - """ - pass - - def test_delete_mutating_admission_policy(self): - """Test case for delete_mutating_admission_policy - - """ - pass - - def test_delete_mutating_admission_policy_binding(self): - """Test case for delete_mutating_admission_policy_binding - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_mutating_admission_policy(self): - """Test case for list_mutating_admission_policy - - """ - pass - - def test_list_mutating_admission_policy_binding(self): - """Test case for list_mutating_admission_policy_binding - - """ - pass - - def test_patch_mutating_admission_policy(self): - """Test case for patch_mutating_admission_policy - - """ - pass - - def test_patch_mutating_admission_policy_binding(self): - """Test case for patch_mutating_admission_policy_binding - - """ - pass - - def test_read_mutating_admission_policy(self): - """Test case for read_mutating_admission_policy - - """ - pass - - def test_read_mutating_admission_policy_binding(self): - """Test case for read_mutating_admission_policy_binding - - """ - pass - - def test_replace_mutating_admission_policy(self): - """Test case for replace_mutating_admission_policy - - """ - pass - - def test_replace_mutating_admission_policy_binding(self): - """Test case for replace_mutating_admission_policy_binding - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_admissionregistration_v1beta1_api.py b/kubernetes/aio/test/test_admissionregistration_v1beta1_api.py deleted file mode 100644 index 0a1a939c4d..0000000000 --- a/kubernetes/aio/test/test_admissionregistration_v1beta1_api.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.admissionregistration_v1beta1_api import AdmissionregistrationV1beta1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestAdmissionregistrationV1beta1Api(unittest.IsolatedAsyncioTestCase): - """AdmissionregistrationV1beta1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.admissionregistration_v1beta1_api.AdmissionregistrationV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_mutating_admission_policy(self): - """Test case for create_mutating_admission_policy - - """ - pass - - def test_create_mutating_admission_policy_binding(self): - """Test case for create_mutating_admission_policy_binding - - """ - pass - - def test_delete_collection_mutating_admission_policy(self): - """Test case for delete_collection_mutating_admission_policy - - """ - pass - - def test_delete_collection_mutating_admission_policy_binding(self): - """Test case for delete_collection_mutating_admission_policy_binding - - """ - pass - - def test_delete_mutating_admission_policy(self): - """Test case for delete_mutating_admission_policy - - """ - pass - - def test_delete_mutating_admission_policy_binding(self): - """Test case for delete_mutating_admission_policy_binding - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_mutating_admission_policy(self): - """Test case for list_mutating_admission_policy - - """ - pass - - def test_list_mutating_admission_policy_binding(self): - """Test case for list_mutating_admission_policy_binding - - """ - pass - - def test_patch_mutating_admission_policy(self): - """Test case for patch_mutating_admission_policy - - """ - pass - - def test_patch_mutating_admission_policy_binding(self): - """Test case for patch_mutating_admission_policy_binding - - """ - pass - - def test_read_mutating_admission_policy(self): - """Test case for read_mutating_admission_policy - - """ - pass - - def test_read_mutating_admission_policy_binding(self): - """Test case for read_mutating_admission_policy_binding - - """ - pass - - def test_replace_mutating_admission_policy(self): - """Test case for replace_mutating_admission_policy - - """ - pass - - def test_replace_mutating_admission_policy_binding(self): - """Test case for replace_mutating_admission_policy_binding - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_apiextensions_api.py b/kubernetes/aio/test/test_apiextensions_api.py deleted file mode 100644 index 713160da72..0000000000 --- a/kubernetes/aio/test/test_apiextensions_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.apiextensions_api import ApiextensionsApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestApiextensionsApi(unittest.IsolatedAsyncioTestCase): - """ApiextensionsApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.apiextensions_api.ApiextensionsApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_apiextensions_v1_api.py b/kubernetes/aio/test/test_apiextensions_v1_api.py deleted file mode 100644 index d4920de1b3..0000000000 --- a/kubernetes/aio/test/test_apiextensions_v1_api.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.apiextensions_v1_api import ApiextensionsV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestApiextensionsV1Api(unittest.IsolatedAsyncioTestCase): - """ApiextensionsV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.apiextensions_v1_api.ApiextensionsV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_custom_resource_definition(self): - """Test case for create_custom_resource_definition - - """ - pass - - def test_delete_collection_custom_resource_definition(self): - """Test case for delete_collection_custom_resource_definition - - """ - pass - - def test_delete_custom_resource_definition(self): - """Test case for delete_custom_resource_definition - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_custom_resource_definition(self): - """Test case for list_custom_resource_definition - - """ - pass - - def test_patch_custom_resource_definition(self): - """Test case for patch_custom_resource_definition - - """ - pass - - def test_patch_custom_resource_definition_status(self): - """Test case for patch_custom_resource_definition_status - - """ - pass - - def test_read_custom_resource_definition(self): - """Test case for read_custom_resource_definition - - """ - pass - - def test_read_custom_resource_definition_status(self): - """Test case for read_custom_resource_definition_status - - """ - pass - - def test_replace_custom_resource_definition(self): - """Test case for replace_custom_resource_definition - - """ - pass - - def test_replace_custom_resource_definition_status(self): - """Test case for replace_custom_resource_definition_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_apiregistration_api.py b/kubernetes/aio/test/test_apiregistration_api.py deleted file mode 100644 index f70dd69a4c..0000000000 --- a/kubernetes/aio/test/test_apiregistration_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.apiregistration_api import ApiregistrationApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestApiregistrationApi(unittest.IsolatedAsyncioTestCase): - """ApiregistrationApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.apiregistration_api.ApiregistrationApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_apiregistration_v1_api.py b/kubernetes/aio/test/test_apiregistration_v1_api.py deleted file mode 100644 index 482f990d57..0000000000 --- a/kubernetes/aio/test/test_apiregistration_v1_api.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.apiregistration_v1_api import ApiregistrationV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestApiregistrationV1Api(unittest.IsolatedAsyncioTestCase): - """ApiregistrationV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.apiregistration_v1_api.ApiregistrationV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_api_service(self): - """Test case for create_api_service - - """ - pass - - def test_delete_api_service(self): - """Test case for delete_api_service - - """ - pass - - def test_delete_collection_api_service(self): - """Test case for delete_collection_api_service - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_api_service(self): - """Test case for list_api_service - - """ - pass - - def test_patch_api_service(self): - """Test case for patch_api_service - - """ - pass - - def test_patch_api_service_status(self): - """Test case for patch_api_service_status - - """ - pass - - def test_read_api_service(self): - """Test case for read_api_service - - """ - pass - - def test_read_api_service_status(self): - """Test case for read_api_service_status - - """ - pass - - def test_replace_api_service(self): - """Test case for replace_api_service - - """ - pass - - def test_replace_api_service_status(self): - """Test case for replace_api_service_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_apis_api.py b/kubernetes/aio/test/test_apis_api.py deleted file mode 100644 index 6942bca465..0000000000 --- a/kubernetes/aio/test/test_apis_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.apis_api import ApisApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestApisApi(unittest.IsolatedAsyncioTestCase): - """ApisApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.apis_api.ApisApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_versions(self): - """Test case for get_api_versions - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_apps_api.py b/kubernetes/aio/test/test_apps_api.py deleted file mode 100644 index 70c98c4f07..0000000000 --- a/kubernetes/aio/test/test_apps_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.apps_api import AppsApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestAppsApi(unittest.IsolatedAsyncioTestCase): - """AppsApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.apps_api.AppsApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_apps_v1_api.py b/kubernetes/aio/test/test_apps_v1_api.py deleted file mode 100644 index 058b22f64e..0000000000 --- a/kubernetes/aio/test/test_apps_v1_api.py +++ /dev/null @@ -1,405 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.apps_v1_api import AppsV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestAppsV1Api(unittest.IsolatedAsyncioTestCase): - """AppsV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.apps_v1_api.AppsV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_controller_revision(self): - """Test case for create_namespaced_controller_revision - - """ - pass - - def test_create_namespaced_daemon_set(self): - """Test case for create_namespaced_daemon_set - - """ - pass - - def test_create_namespaced_deployment(self): - """Test case for create_namespaced_deployment - - """ - pass - - def test_create_namespaced_replica_set(self): - """Test case for create_namespaced_replica_set - - """ - pass - - def test_create_namespaced_stateful_set(self): - """Test case for create_namespaced_stateful_set - - """ - pass - - def test_delete_collection_namespaced_controller_revision(self): - """Test case for delete_collection_namespaced_controller_revision - - """ - pass - - def test_delete_collection_namespaced_daemon_set(self): - """Test case for delete_collection_namespaced_daemon_set - - """ - pass - - def test_delete_collection_namespaced_deployment(self): - """Test case for delete_collection_namespaced_deployment - - """ - pass - - def test_delete_collection_namespaced_replica_set(self): - """Test case for delete_collection_namespaced_replica_set - - """ - pass - - def test_delete_collection_namespaced_stateful_set(self): - """Test case for delete_collection_namespaced_stateful_set - - """ - pass - - def test_delete_namespaced_controller_revision(self): - """Test case for delete_namespaced_controller_revision - - """ - pass - - def test_delete_namespaced_daemon_set(self): - """Test case for delete_namespaced_daemon_set - - """ - pass - - def test_delete_namespaced_deployment(self): - """Test case for delete_namespaced_deployment - - """ - pass - - def test_delete_namespaced_replica_set(self): - """Test case for delete_namespaced_replica_set - - """ - pass - - def test_delete_namespaced_stateful_set(self): - """Test case for delete_namespaced_stateful_set - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_controller_revision_for_all_namespaces(self): - """Test case for list_controller_revision_for_all_namespaces - - """ - pass - - def test_list_daemon_set_for_all_namespaces(self): - """Test case for list_daemon_set_for_all_namespaces - - """ - pass - - def test_list_deployment_for_all_namespaces(self): - """Test case for list_deployment_for_all_namespaces - - """ - pass - - def test_list_namespaced_controller_revision(self): - """Test case for list_namespaced_controller_revision - - """ - pass - - def test_list_namespaced_daemon_set(self): - """Test case for list_namespaced_daemon_set - - """ - pass - - def test_list_namespaced_deployment(self): - """Test case for list_namespaced_deployment - - """ - pass - - def test_list_namespaced_replica_set(self): - """Test case for list_namespaced_replica_set - - """ - pass - - def test_list_namespaced_stateful_set(self): - """Test case for list_namespaced_stateful_set - - """ - pass - - def test_list_replica_set_for_all_namespaces(self): - """Test case for list_replica_set_for_all_namespaces - - """ - pass - - def test_list_stateful_set_for_all_namespaces(self): - """Test case for list_stateful_set_for_all_namespaces - - """ - pass - - def test_patch_namespaced_controller_revision(self): - """Test case for patch_namespaced_controller_revision - - """ - pass - - def test_patch_namespaced_daemon_set(self): - """Test case for patch_namespaced_daemon_set - - """ - pass - - def test_patch_namespaced_daemon_set_status(self): - """Test case for patch_namespaced_daemon_set_status - - """ - pass - - def test_patch_namespaced_deployment(self): - """Test case for patch_namespaced_deployment - - """ - pass - - def test_patch_namespaced_deployment_scale(self): - """Test case for patch_namespaced_deployment_scale - - """ - pass - - def test_patch_namespaced_deployment_status(self): - """Test case for patch_namespaced_deployment_status - - """ - pass - - def test_patch_namespaced_replica_set(self): - """Test case for patch_namespaced_replica_set - - """ - pass - - def test_patch_namespaced_replica_set_scale(self): - """Test case for patch_namespaced_replica_set_scale - - """ - pass - - def test_patch_namespaced_replica_set_status(self): - """Test case for patch_namespaced_replica_set_status - - """ - pass - - def test_patch_namespaced_stateful_set(self): - """Test case for patch_namespaced_stateful_set - - """ - pass - - def test_patch_namespaced_stateful_set_scale(self): - """Test case for patch_namespaced_stateful_set_scale - - """ - pass - - def test_patch_namespaced_stateful_set_status(self): - """Test case for patch_namespaced_stateful_set_status - - """ - pass - - def test_read_namespaced_controller_revision(self): - """Test case for read_namespaced_controller_revision - - """ - pass - - def test_read_namespaced_daemon_set(self): - """Test case for read_namespaced_daemon_set - - """ - pass - - def test_read_namespaced_daemon_set_status(self): - """Test case for read_namespaced_daemon_set_status - - """ - pass - - def test_read_namespaced_deployment(self): - """Test case for read_namespaced_deployment - - """ - pass - - def test_read_namespaced_deployment_scale(self): - """Test case for read_namespaced_deployment_scale - - """ - pass - - def test_read_namespaced_deployment_status(self): - """Test case for read_namespaced_deployment_status - - """ - pass - - def test_read_namespaced_replica_set(self): - """Test case for read_namespaced_replica_set - - """ - pass - - def test_read_namespaced_replica_set_scale(self): - """Test case for read_namespaced_replica_set_scale - - """ - pass - - def test_read_namespaced_replica_set_status(self): - """Test case for read_namespaced_replica_set_status - - """ - pass - - def test_read_namespaced_stateful_set(self): - """Test case for read_namespaced_stateful_set - - """ - pass - - def test_read_namespaced_stateful_set_scale(self): - """Test case for read_namespaced_stateful_set_scale - - """ - pass - - def test_read_namespaced_stateful_set_status(self): - """Test case for read_namespaced_stateful_set_status - - """ - pass - - def test_replace_namespaced_controller_revision(self): - """Test case for replace_namespaced_controller_revision - - """ - pass - - def test_replace_namespaced_daemon_set(self): - """Test case for replace_namespaced_daemon_set - - """ - pass - - def test_replace_namespaced_daemon_set_status(self): - """Test case for replace_namespaced_daemon_set_status - - """ - pass - - def test_replace_namespaced_deployment(self): - """Test case for replace_namespaced_deployment - - """ - pass - - def test_replace_namespaced_deployment_scale(self): - """Test case for replace_namespaced_deployment_scale - - """ - pass - - def test_replace_namespaced_deployment_status(self): - """Test case for replace_namespaced_deployment_status - - """ - pass - - def test_replace_namespaced_replica_set(self): - """Test case for replace_namespaced_replica_set - - """ - pass - - def test_replace_namespaced_replica_set_scale(self): - """Test case for replace_namespaced_replica_set_scale - - """ - pass - - def test_replace_namespaced_replica_set_status(self): - """Test case for replace_namespaced_replica_set_status - - """ - pass - - def test_replace_namespaced_stateful_set(self): - """Test case for replace_namespaced_stateful_set - - """ - pass - - def test_replace_namespaced_stateful_set_scale(self): - """Test case for replace_namespaced_stateful_set_scale - - """ - pass - - def test_replace_namespaced_stateful_set_status(self): - """Test case for replace_namespaced_stateful_set_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_authentication_api.py b/kubernetes/aio/test/test_authentication_api.py deleted file mode 100644 index 9642f26ba3..0000000000 --- a/kubernetes/aio/test/test_authentication_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.authentication_api import AuthenticationApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestAuthenticationApi(unittest.IsolatedAsyncioTestCase): - """AuthenticationApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.authentication_api.AuthenticationApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_authentication_v1_api.py b/kubernetes/aio/test/test_authentication_v1_api.py deleted file mode 100644 index 3eb00faef7..0000000000 --- a/kubernetes/aio/test/test_authentication_v1_api.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.authentication_v1_api import AuthenticationV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestAuthenticationV1Api(unittest.IsolatedAsyncioTestCase): - """AuthenticationV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.authentication_v1_api.AuthenticationV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_self_subject_review(self): - """Test case for create_self_subject_review - - """ - pass - - def test_create_token_review(self): - """Test case for create_token_review - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_authorization_api.py b/kubernetes/aio/test/test_authorization_api.py deleted file mode 100644 index ff4b3c23c4..0000000000 --- a/kubernetes/aio/test/test_authorization_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.authorization_api import AuthorizationApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestAuthorizationApi(unittest.IsolatedAsyncioTestCase): - """AuthorizationApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.authorization_api.AuthorizationApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_authorization_v1_api.py b/kubernetes/aio/test/test_authorization_v1_api.py deleted file mode 100644 index 593359213c..0000000000 --- a/kubernetes/aio/test/test_authorization_v1_api.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.authorization_v1_api import AuthorizationV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestAuthorizationV1Api(unittest.IsolatedAsyncioTestCase): - """AuthorizationV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.authorization_v1_api.AuthorizationV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_local_subject_access_review(self): - """Test case for create_namespaced_local_subject_access_review - - """ - pass - - def test_create_self_subject_access_review(self): - """Test case for create_self_subject_access_review - - """ - pass - - def test_create_self_subject_rules_review(self): - """Test case for create_self_subject_rules_review - - """ - pass - - def test_create_subject_access_review(self): - """Test case for create_subject_access_review - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_autoscaling_api.py b/kubernetes/aio/test/test_autoscaling_api.py deleted file mode 100644 index 6b085d1e70..0000000000 --- a/kubernetes/aio/test/test_autoscaling_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.autoscaling_api import AutoscalingApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestAutoscalingApi(unittest.IsolatedAsyncioTestCase): - """AutoscalingApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.autoscaling_api.AutoscalingApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_autoscaling_v1_api.py b/kubernetes/aio/test/test_autoscaling_v1_api.py deleted file mode 100644 index 0f85672fc2..0000000000 --- a/kubernetes/aio/test/test_autoscaling_v1_api.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.autoscaling_v1_api import AutoscalingV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestAutoscalingV1Api(unittest.IsolatedAsyncioTestCase): - """AutoscalingV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.autoscaling_v1_api.AutoscalingV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_horizontal_pod_autoscaler(self): - """Test case for create_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_delete_collection_namespaced_horizontal_pod_autoscaler(self): - """Test case for delete_collection_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_delete_namespaced_horizontal_pod_autoscaler(self): - """Test case for delete_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_horizontal_pod_autoscaler_for_all_namespaces(self): - """Test case for list_horizontal_pod_autoscaler_for_all_namespaces - - """ - pass - - def test_list_namespaced_horizontal_pod_autoscaler(self): - """Test case for list_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_patch_namespaced_horizontal_pod_autoscaler(self): - """Test case for patch_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_patch_namespaced_horizontal_pod_autoscaler_status(self): - """Test case for patch_namespaced_horizontal_pod_autoscaler_status - - """ - pass - - def test_read_namespaced_horizontal_pod_autoscaler(self): - """Test case for read_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_read_namespaced_horizontal_pod_autoscaler_status(self): - """Test case for read_namespaced_horizontal_pod_autoscaler_status - - """ - pass - - def test_replace_namespaced_horizontal_pod_autoscaler(self): - """Test case for replace_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_replace_namespaced_horizontal_pod_autoscaler_status(self): - """Test case for replace_namespaced_horizontal_pod_autoscaler_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_autoscaling_v2_api.py b/kubernetes/aio/test/test_autoscaling_v2_api.py deleted file mode 100644 index 45bd695564..0000000000 --- a/kubernetes/aio/test/test_autoscaling_v2_api.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.autoscaling_v2_api import AutoscalingV2Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestAutoscalingV2Api(unittest.IsolatedAsyncioTestCase): - """AutoscalingV2Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.autoscaling_v2_api.AutoscalingV2Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_horizontal_pod_autoscaler(self): - """Test case for create_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_delete_collection_namespaced_horizontal_pod_autoscaler(self): - """Test case for delete_collection_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_delete_namespaced_horizontal_pod_autoscaler(self): - """Test case for delete_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_horizontal_pod_autoscaler_for_all_namespaces(self): - """Test case for list_horizontal_pod_autoscaler_for_all_namespaces - - """ - pass - - def test_list_namespaced_horizontal_pod_autoscaler(self): - """Test case for list_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_patch_namespaced_horizontal_pod_autoscaler(self): - """Test case for patch_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_patch_namespaced_horizontal_pod_autoscaler_status(self): - """Test case for patch_namespaced_horizontal_pod_autoscaler_status - - """ - pass - - def test_read_namespaced_horizontal_pod_autoscaler(self): - """Test case for read_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_read_namespaced_horizontal_pod_autoscaler_status(self): - """Test case for read_namespaced_horizontal_pod_autoscaler_status - - """ - pass - - def test_replace_namespaced_horizontal_pod_autoscaler(self): - """Test case for replace_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_replace_namespaced_horizontal_pod_autoscaler_status(self): - """Test case for replace_namespaced_horizontal_pod_autoscaler_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_batch_api.py b/kubernetes/aio/test/test_batch_api.py deleted file mode 100644 index ba22a1fa93..0000000000 --- a/kubernetes/aio/test/test_batch_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.batch_api import BatchApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestBatchApi(unittest.IsolatedAsyncioTestCase): - """BatchApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.batch_api.BatchApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_batch_v1_api.py b/kubernetes/aio/test/test_batch_v1_api.py deleted file mode 100644 index 0dfb1c0a5d..0000000000 --- a/kubernetes/aio/test/test_batch_v1_api.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.batch_v1_api import BatchV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestBatchV1Api(unittest.IsolatedAsyncioTestCase): - """BatchV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.batch_v1_api.BatchV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_cron_job(self): - """Test case for create_namespaced_cron_job - - """ - pass - - def test_create_namespaced_job(self): - """Test case for create_namespaced_job - - """ - pass - - def test_delete_collection_namespaced_cron_job(self): - """Test case for delete_collection_namespaced_cron_job - - """ - pass - - def test_delete_collection_namespaced_job(self): - """Test case for delete_collection_namespaced_job - - """ - pass - - def test_delete_namespaced_cron_job(self): - """Test case for delete_namespaced_cron_job - - """ - pass - - def test_delete_namespaced_job(self): - """Test case for delete_namespaced_job - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_cron_job_for_all_namespaces(self): - """Test case for list_cron_job_for_all_namespaces - - """ - pass - - def test_list_job_for_all_namespaces(self): - """Test case for list_job_for_all_namespaces - - """ - pass - - def test_list_namespaced_cron_job(self): - """Test case for list_namespaced_cron_job - - """ - pass - - def test_list_namespaced_job(self): - """Test case for list_namespaced_job - - """ - pass - - def test_patch_namespaced_cron_job(self): - """Test case for patch_namespaced_cron_job - - """ - pass - - def test_patch_namespaced_cron_job_status(self): - """Test case for patch_namespaced_cron_job_status - - """ - pass - - def test_patch_namespaced_job(self): - """Test case for patch_namespaced_job - - """ - pass - - def test_patch_namespaced_job_status(self): - """Test case for patch_namespaced_job_status - - """ - pass - - def test_read_namespaced_cron_job(self): - """Test case for read_namespaced_cron_job - - """ - pass - - def test_read_namespaced_cron_job_status(self): - """Test case for read_namespaced_cron_job_status - - """ - pass - - def test_read_namespaced_job(self): - """Test case for read_namespaced_job - - """ - pass - - def test_read_namespaced_job_status(self): - """Test case for read_namespaced_job_status - - """ - pass - - def test_replace_namespaced_cron_job(self): - """Test case for replace_namespaced_cron_job - - """ - pass - - def test_replace_namespaced_cron_job_status(self): - """Test case for replace_namespaced_cron_job_status - - """ - pass - - def test_replace_namespaced_job(self): - """Test case for replace_namespaced_job - - """ - pass - - def test_replace_namespaced_job_status(self): - """Test case for replace_namespaced_job_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_certificates_api.py b/kubernetes/aio/test/test_certificates_api.py deleted file mode 100644 index d55f036f64..0000000000 --- a/kubernetes/aio/test/test_certificates_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.certificates_api import CertificatesApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestCertificatesApi(unittest.IsolatedAsyncioTestCase): - """CertificatesApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.certificates_api.CertificatesApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_certificates_v1_api.py b/kubernetes/aio/test/test_certificates_v1_api.py deleted file mode 100644 index d351a26691..0000000000 --- a/kubernetes/aio/test/test_certificates_v1_api.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.certificates_v1_api import CertificatesV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestCertificatesV1Api(unittest.IsolatedAsyncioTestCase): - """CertificatesV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.certificates_v1_api.CertificatesV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_certificate_signing_request(self): - """Test case for create_certificate_signing_request - - """ - pass - - def test_delete_certificate_signing_request(self): - """Test case for delete_certificate_signing_request - - """ - pass - - def test_delete_collection_certificate_signing_request(self): - """Test case for delete_collection_certificate_signing_request - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_certificate_signing_request(self): - """Test case for list_certificate_signing_request - - """ - pass - - def test_patch_certificate_signing_request(self): - """Test case for patch_certificate_signing_request - - """ - pass - - def test_patch_certificate_signing_request_approval(self): - """Test case for patch_certificate_signing_request_approval - - """ - pass - - def test_patch_certificate_signing_request_status(self): - """Test case for patch_certificate_signing_request_status - - """ - pass - - def test_read_certificate_signing_request(self): - """Test case for read_certificate_signing_request - - """ - pass - - def test_read_certificate_signing_request_approval(self): - """Test case for read_certificate_signing_request_approval - - """ - pass - - def test_read_certificate_signing_request_status(self): - """Test case for read_certificate_signing_request_status - - """ - pass - - def test_replace_certificate_signing_request(self): - """Test case for replace_certificate_signing_request - - """ - pass - - def test_replace_certificate_signing_request_approval(self): - """Test case for replace_certificate_signing_request_approval - - """ - pass - - def test_replace_certificate_signing_request_status(self): - """Test case for replace_certificate_signing_request_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_certificates_v1alpha1_api.py b/kubernetes/aio/test/test_certificates_v1alpha1_api.py deleted file mode 100644 index f0c4f26e5f..0000000000 --- a/kubernetes/aio/test/test_certificates_v1alpha1_api.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.certificates_v1alpha1_api import CertificatesV1alpha1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestCertificatesV1alpha1Api(unittest.IsolatedAsyncioTestCase): - """CertificatesV1alpha1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.certificates_v1alpha1_api.CertificatesV1alpha1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_cluster_trust_bundle(self): - """Test case for create_cluster_trust_bundle - - """ - pass - - def test_delete_cluster_trust_bundle(self): - """Test case for delete_cluster_trust_bundle - - """ - pass - - def test_delete_collection_cluster_trust_bundle(self): - """Test case for delete_collection_cluster_trust_bundle - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_cluster_trust_bundle(self): - """Test case for list_cluster_trust_bundle - - """ - pass - - def test_patch_cluster_trust_bundle(self): - """Test case for patch_cluster_trust_bundle - - """ - pass - - def test_read_cluster_trust_bundle(self): - """Test case for read_cluster_trust_bundle - - """ - pass - - def test_replace_cluster_trust_bundle(self): - """Test case for replace_cluster_trust_bundle - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_certificates_v1beta1_api.py b/kubernetes/aio/test/test_certificates_v1beta1_api.py deleted file mode 100644 index efb8ac2c76..0000000000 --- a/kubernetes/aio/test/test_certificates_v1beta1_api.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.certificates_v1beta1_api import CertificatesV1beta1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestCertificatesV1beta1Api(unittest.IsolatedAsyncioTestCase): - """CertificatesV1beta1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.certificates_v1beta1_api.CertificatesV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_cluster_trust_bundle(self): - """Test case for create_cluster_trust_bundle - - """ - pass - - def test_create_namespaced_pod_certificate_request(self): - """Test case for create_namespaced_pod_certificate_request - - """ - pass - - def test_delete_cluster_trust_bundle(self): - """Test case for delete_cluster_trust_bundle - - """ - pass - - def test_delete_collection_cluster_trust_bundle(self): - """Test case for delete_collection_cluster_trust_bundle - - """ - pass - - def test_delete_collection_namespaced_pod_certificate_request(self): - """Test case for delete_collection_namespaced_pod_certificate_request - - """ - pass - - def test_delete_namespaced_pod_certificate_request(self): - """Test case for delete_namespaced_pod_certificate_request - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_cluster_trust_bundle(self): - """Test case for list_cluster_trust_bundle - - """ - pass - - def test_list_namespaced_pod_certificate_request(self): - """Test case for list_namespaced_pod_certificate_request - - """ - pass - - def test_list_pod_certificate_request_for_all_namespaces(self): - """Test case for list_pod_certificate_request_for_all_namespaces - - """ - pass - - def test_patch_cluster_trust_bundle(self): - """Test case for patch_cluster_trust_bundle - - """ - pass - - def test_patch_namespaced_pod_certificate_request(self): - """Test case for patch_namespaced_pod_certificate_request - - """ - pass - - def test_patch_namespaced_pod_certificate_request_status(self): - """Test case for patch_namespaced_pod_certificate_request_status - - """ - pass - - def test_read_cluster_trust_bundle(self): - """Test case for read_cluster_trust_bundle - - """ - pass - - def test_read_namespaced_pod_certificate_request(self): - """Test case for read_namespaced_pod_certificate_request - - """ - pass - - def test_read_namespaced_pod_certificate_request_status(self): - """Test case for read_namespaced_pod_certificate_request_status - - """ - pass - - def test_replace_cluster_trust_bundle(self): - """Test case for replace_cluster_trust_bundle - - """ - pass - - def test_replace_namespaced_pod_certificate_request(self): - """Test case for replace_namespaced_pod_certificate_request - - """ - pass - - def test_replace_namespaced_pod_certificate_request_status(self): - """Test case for replace_namespaced_pod_certificate_request_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_coordination_api.py b/kubernetes/aio/test/test_coordination_api.py deleted file mode 100644 index 1e80ee0a0a..0000000000 --- a/kubernetes/aio/test/test_coordination_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.coordination_api import CoordinationApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestCoordinationApi(unittest.IsolatedAsyncioTestCase): - """CoordinationApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.coordination_api.CoordinationApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_coordination_v1_api.py b/kubernetes/aio/test/test_coordination_v1_api.py deleted file mode 100644 index 793624ed10..0000000000 --- a/kubernetes/aio/test/test_coordination_v1_api.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.coordination_v1_api import CoordinationV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestCoordinationV1Api(unittest.IsolatedAsyncioTestCase): - """CoordinationV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.coordination_v1_api.CoordinationV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_lease(self): - """Test case for create_namespaced_lease - - """ - pass - - def test_delete_collection_namespaced_lease(self): - """Test case for delete_collection_namespaced_lease - - """ - pass - - def test_delete_namespaced_lease(self): - """Test case for delete_namespaced_lease - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_lease_for_all_namespaces(self): - """Test case for list_lease_for_all_namespaces - - """ - pass - - def test_list_namespaced_lease(self): - """Test case for list_namespaced_lease - - """ - pass - - def test_patch_namespaced_lease(self): - """Test case for patch_namespaced_lease - - """ - pass - - def test_read_namespaced_lease(self): - """Test case for read_namespaced_lease - - """ - pass - - def test_replace_namespaced_lease(self): - """Test case for replace_namespaced_lease - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_coordination_v1alpha2_api.py b/kubernetes/aio/test/test_coordination_v1alpha2_api.py deleted file mode 100644 index ecadf06c18..0000000000 --- a/kubernetes/aio/test/test_coordination_v1alpha2_api.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.coordination_v1alpha2_api import CoordinationV1alpha2Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestCoordinationV1alpha2Api(unittest.IsolatedAsyncioTestCase): - """CoordinationV1alpha2Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.coordination_v1alpha2_api.CoordinationV1alpha2Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_lease_candidate(self): - """Test case for create_namespaced_lease_candidate - - """ - pass - - def test_delete_collection_namespaced_lease_candidate(self): - """Test case for delete_collection_namespaced_lease_candidate - - """ - pass - - def test_delete_namespaced_lease_candidate(self): - """Test case for delete_namespaced_lease_candidate - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_lease_candidate_for_all_namespaces(self): - """Test case for list_lease_candidate_for_all_namespaces - - """ - pass - - def test_list_namespaced_lease_candidate(self): - """Test case for list_namespaced_lease_candidate - - """ - pass - - def test_patch_namespaced_lease_candidate(self): - """Test case for patch_namespaced_lease_candidate - - """ - pass - - def test_read_namespaced_lease_candidate(self): - """Test case for read_namespaced_lease_candidate - - """ - pass - - def test_replace_namespaced_lease_candidate(self): - """Test case for replace_namespaced_lease_candidate - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_coordination_v1beta1_api.py b/kubernetes/aio/test/test_coordination_v1beta1_api.py deleted file mode 100644 index 6b4fba2a82..0000000000 --- a/kubernetes/aio/test/test_coordination_v1beta1_api.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.coordination_v1beta1_api import CoordinationV1beta1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestCoordinationV1beta1Api(unittest.IsolatedAsyncioTestCase): - """CoordinationV1beta1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.coordination_v1beta1_api.CoordinationV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_lease_candidate(self): - """Test case for create_namespaced_lease_candidate - - """ - pass - - def test_delete_collection_namespaced_lease_candidate(self): - """Test case for delete_collection_namespaced_lease_candidate - - """ - pass - - def test_delete_namespaced_lease_candidate(self): - """Test case for delete_namespaced_lease_candidate - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_lease_candidate_for_all_namespaces(self): - """Test case for list_lease_candidate_for_all_namespaces - - """ - pass - - def test_list_namespaced_lease_candidate(self): - """Test case for list_namespaced_lease_candidate - - """ - pass - - def test_patch_namespaced_lease_candidate(self): - """Test case for patch_namespaced_lease_candidate - - """ - pass - - def test_read_namespaced_lease_candidate(self): - """Test case for read_namespaced_lease_candidate - - """ - pass - - def test_replace_namespaced_lease_candidate(self): - """Test case for replace_namespaced_lease_candidate - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_core_api.py b/kubernetes/aio/test/test_core_api.py deleted file mode 100644 index 0e83af1453..0000000000 --- a/kubernetes/aio/test/test_core_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.core_api import CoreApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestCoreApi(unittest.IsolatedAsyncioTestCase): - """CoreApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.core_api.CoreApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_versions(self): - """Test case for get_api_versions - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_core_v1_api.py b/kubernetes/aio/test/test_core_v1_api.py deleted file mode 100644 index a82ae41b32..0000000000 --- a/kubernetes/aio/test/test_core_v1_api.py +++ /dev/null @@ -1,1269 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.core_v1_api import CoreV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestCoreV1Api(unittest.IsolatedAsyncioTestCase): - """CoreV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.core_v1_api.CoreV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_connect_delete_namespaced_pod_proxy(self): - """Test case for connect_delete_namespaced_pod_proxy - - """ - pass - - def test_connect_delete_namespaced_pod_proxy_with_path(self): - """Test case for connect_delete_namespaced_pod_proxy_with_path - - """ - pass - - def test_connect_delete_namespaced_service_proxy(self): - """Test case for connect_delete_namespaced_service_proxy - - """ - pass - - def test_connect_delete_namespaced_service_proxy_with_path(self): - """Test case for connect_delete_namespaced_service_proxy_with_path - - """ - pass - - def test_connect_delete_node_proxy(self): - """Test case for connect_delete_node_proxy - - """ - pass - - def test_connect_delete_node_proxy_with_path(self): - """Test case for connect_delete_node_proxy_with_path - - """ - pass - - def test_connect_get_namespaced_pod_attach(self): - """Test case for connect_get_namespaced_pod_attach - - """ - pass - - def test_connect_get_namespaced_pod_exec(self): - """Test case for connect_get_namespaced_pod_exec - - """ - pass - - def test_connect_get_namespaced_pod_portforward(self): - """Test case for connect_get_namespaced_pod_portforward - - """ - pass - - def test_connect_get_namespaced_pod_proxy(self): - """Test case for connect_get_namespaced_pod_proxy - - """ - pass - - def test_connect_get_namespaced_pod_proxy_with_path(self): - """Test case for connect_get_namespaced_pod_proxy_with_path - - """ - pass - - def test_connect_get_namespaced_service_proxy(self): - """Test case for connect_get_namespaced_service_proxy - - """ - pass - - def test_connect_get_namespaced_service_proxy_with_path(self): - """Test case for connect_get_namespaced_service_proxy_with_path - - """ - pass - - def test_connect_get_node_proxy(self): - """Test case for connect_get_node_proxy - - """ - pass - - def test_connect_get_node_proxy_with_path(self): - """Test case for connect_get_node_proxy_with_path - - """ - pass - - def test_connect_head_namespaced_pod_proxy(self): - """Test case for connect_head_namespaced_pod_proxy - - """ - pass - - def test_connect_head_namespaced_pod_proxy_with_path(self): - """Test case for connect_head_namespaced_pod_proxy_with_path - - """ - pass - - def test_connect_head_namespaced_service_proxy(self): - """Test case for connect_head_namespaced_service_proxy - - """ - pass - - def test_connect_head_namespaced_service_proxy_with_path(self): - """Test case for connect_head_namespaced_service_proxy_with_path - - """ - pass - - def test_connect_head_node_proxy(self): - """Test case for connect_head_node_proxy - - """ - pass - - def test_connect_head_node_proxy_with_path(self): - """Test case for connect_head_node_proxy_with_path - - """ - pass - - def test_connect_options_namespaced_pod_proxy(self): - """Test case for connect_options_namespaced_pod_proxy - - """ - pass - - def test_connect_options_namespaced_pod_proxy_with_path(self): - """Test case for connect_options_namespaced_pod_proxy_with_path - - """ - pass - - def test_connect_options_namespaced_service_proxy(self): - """Test case for connect_options_namespaced_service_proxy - - """ - pass - - def test_connect_options_namespaced_service_proxy_with_path(self): - """Test case for connect_options_namespaced_service_proxy_with_path - - """ - pass - - def test_connect_options_node_proxy(self): - """Test case for connect_options_node_proxy - - """ - pass - - def test_connect_options_node_proxy_with_path(self): - """Test case for connect_options_node_proxy_with_path - - """ - pass - - def test_connect_patch_namespaced_pod_proxy(self): - """Test case for connect_patch_namespaced_pod_proxy - - """ - pass - - def test_connect_patch_namespaced_pod_proxy_with_path(self): - """Test case for connect_patch_namespaced_pod_proxy_with_path - - """ - pass - - def test_connect_patch_namespaced_service_proxy(self): - """Test case for connect_patch_namespaced_service_proxy - - """ - pass - - def test_connect_patch_namespaced_service_proxy_with_path(self): - """Test case for connect_patch_namespaced_service_proxy_with_path - - """ - pass - - def test_connect_patch_node_proxy(self): - """Test case for connect_patch_node_proxy - - """ - pass - - def test_connect_patch_node_proxy_with_path(self): - """Test case for connect_patch_node_proxy_with_path - - """ - pass - - def test_connect_post_namespaced_pod_attach(self): - """Test case for connect_post_namespaced_pod_attach - - """ - pass - - def test_connect_post_namespaced_pod_exec(self): - """Test case for connect_post_namespaced_pod_exec - - """ - pass - - def test_connect_post_namespaced_pod_portforward(self): - """Test case for connect_post_namespaced_pod_portforward - - """ - pass - - def test_connect_post_namespaced_pod_proxy(self): - """Test case for connect_post_namespaced_pod_proxy - - """ - pass - - def test_connect_post_namespaced_pod_proxy_with_path(self): - """Test case for connect_post_namespaced_pod_proxy_with_path - - """ - pass - - def test_connect_post_namespaced_service_proxy(self): - """Test case for connect_post_namespaced_service_proxy - - """ - pass - - def test_connect_post_namespaced_service_proxy_with_path(self): - """Test case for connect_post_namespaced_service_proxy_with_path - - """ - pass - - def test_connect_post_node_proxy(self): - """Test case for connect_post_node_proxy - - """ - pass - - def test_connect_post_node_proxy_with_path(self): - """Test case for connect_post_node_proxy_with_path - - """ - pass - - def test_connect_put_namespaced_pod_proxy(self): - """Test case for connect_put_namespaced_pod_proxy - - """ - pass - - def test_connect_put_namespaced_pod_proxy_with_path(self): - """Test case for connect_put_namespaced_pod_proxy_with_path - - """ - pass - - def test_connect_put_namespaced_service_proxy(self): - """Test case for connect_put_namespaced_service_proxy - - """ - pass - - def test_connect_put_namespaced_service_proxy_with_path(self): - """Test case for connect_put_namespaced_service_proxy_with_path - - """ - pass - - def test_connect_put_node_proxy(self): - """Test case for connect_put_node_proxy - - """ - pass - - def test_connect_put_node_proxy_with_path(self): - """Test case for connect_put_node_proxy_with_path - - """ - pass - - def test_create_namespace(self): - """Test case for create_namespace - - """ - pass - - def test_create_namespaced_binding(self): - """Test case for create_namespaced_binding - - """ - pass - - def test_create_namespaced_config_map(self): - """Test case for create_namespaced_config_map - - """ - pass - - def test_create_namespaced_endpoints(self): - """Test case for create_namespaced_endpoints - - """ - pass - - def test_create_namespaced_event(self): - """Test case for create_namespaced_event - - """ - pass - - def test_create_namespaced_limit_range(self): - """Test case for create_namespaced_limit_range - - """ - pass - - def test_create_namespaced_persistent_volume_claim(self): - """Test case for create_namespaced_persistent_volume_claim - - """ - pass - - def test_create_namespaced_pod(self): - """Test case for create_namespaced_pod - - """ - pass - - def test_create_namespaced_pod_binding(self): - """Test case for create_namespaced_pod_binding - - """ - pass - - def test_create_namespaced_pod_eviction(self): - """Test case for create_namespaced_pod_eviction - - """ - pass - - def test_create_namespaced_pod_template(self): - """Test case for create_namespaced_pod_template - - """ - pass - - def test_create_namespaced_replication_controller(self): - """Test case for create_namespaced_replication_controller - - """ - pass - - def test_create_namespaced_resource_quota(self): - """Test case for create_namespaced_resource_quota - - """ - pass - - def test_create_namespaced_secret(self): - """Test case for create_namespaced_secret - - """ - pass - - def test_create_namespaced_service(self): - """Test case for create_namespaced_service - - """ - pass - - def test_create_namespaced_service_account(self): - """Test case for create_namespaced_service_account - - """ - pass - - def test_create_namespaced_service_account_token(self): - """Test case for create_namespaced_service_account_token - - """ - pass - - def test_create_node(self): - """Test case for create_node - - """ - pass - - def test_create_persistent_volume(self): - """Test case for create_persistent_volume - - """ - pass - - def test_delete_collection_namespaced_config_map(self): - """Test case for delete_collection_namespaced_config_map - - """ - pass - - def test_delete_collection_namespaced_endpoints(self): - """Test case for delete_collection_namespaced_endpoints - - """ - pass - - def test_delete_collection_namespaced_event(self): - """Test case for delete_collection_namespaced_event - - """ - pass - - def test_delete_collection_namespaced_limit_range(self): - """Test case for delete_collection_namespaced_limit_range - - """ - pass - - def test_delete_collection_namespaced_persistent_volume_claim(self): - """Test case for delete_collection_namespaced_persistent_volume_claim - - """ - pass - - def test_delete_collection_namespaced_pod(self): - """Test case for delete_collection_namespaced_pod - - """ - pass - - def test_delete_collection_namespaced_pod_template(self): - """Test case for delete_collection_namespaced_pod_template - - """ - pass - - def test_delete_collection_namespaced_replication_controller(self): - """Test case for delete_collection_namespaced_replication_controller - - """ - pass - - def test_delete_collection_namespaced_resource_quota(self): - """Test case for delete_collection_namespaced_resource_quota - - """ - pass - - def test_delete_collection_namespaced_secret(self): - """Test case for delete_collection_namespaced_secret - - """ - pass - - def test_delete_collection_namespaced_service(self): - """Test case for delete_collection_namespaced_service - - """ - pass - - def test_delete_collection_namespaced_service_account(self): - """Test case for delete_collection_namespaced_service_account - - """ - pass - - def test_delete_collection_node(self): - """Test case for delete_collection_node - - """ - pass - - def test_delete_collection_persistent_volume(self): - """Test case for delete_collection_persistent_volume - - """ - pass - - def test_delete_namespace(self): - """Test case for delete_namespace - - """ - pass - - def test_delete_namespaced_config_map(self): - """Test case for delete_namespaced_config_map - - """ - pass - - def test_delete_namespaced_endpoints(self): - """Test case for delete_namespaced_endpoints - - """ - pass - - def test_delete_namespaced_event(self): - """Test case for delete_namespaced_event - - """ - pass - - def test_delete_namespaced_limit_range(self): - """Test case for delete_namespaced_limit_range - - """ - pass - - def test_delete_namespaced_persistent_volume_claim(self): - """Test case for delete_namespaced_persistent_volume_claim - - """ - pass - - def test_delete_namespaced_pod(self): - """Test case for delete_namespaced_pod - - """ - pass - - def test_delete_namespaced_pod_template(self): - """Test case for delete_namespaced_pod_template - - """ - pass - - def test_delete_namespaced_replication_controller(self): - """Test case for delete_namespaced_replication_controller - - """ - pass - - def test_delete_namespaced_resource_quota(self): - """Test case for delete_namespaced_resource_quota - - """ - pass - - def test_delete_namespaced_secret(self): - """Test case for delete_namespaced_secret - - """ - pass - - def test_delete_namespaced_service(self): - """Test case for delete_namespaced_service - - """ - pass - - def test_delete_namespaced_service_account(self): - """Test case for delete_namespaced_service_account - - """ - pass - - def test_delete_node(self): - """Test case for delete_node - - """ - pass - - def test_delete_persistent_volume(self): - """Test case for delete_persistent_volume - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_component_status(self): - """Test case for list_component_status - - """ - pass - - def test_list_config_map_for_all_namespaces(self): - """Test case for list_config_map_for_all_namespaces - - """ - pass - - def test_list_endpoints_for_all_namespaces(self): - """Test case for list_endpoints_for_all_namespaces - - """ - pass - - def test_list_event_for_all_namespaces(self): - """Test case for list_event_for_all_namespaces - - """ - pass - - def test_list_limit_range_for_all_namespaces(self): - """Test case for list_limit_range_for_all_namespaces - - """ - pass - - def test_list_namespace(self): - """Test case for list_namespace - - """ - pass - - def test_list_namespaced_config_map(self): - """Test case for list_namespaced_config_map - - """ - pass - - def test_list_namespaced_endpoints(self): - """Test case for list_namespaced_endpoints - - """ - pass - - def test_list_namespaced_event(self): - """Test case for list_namespaced_event - - """ - pass - - def test_list_namespaced_limit_range(self): - """Test case for list_namespaced_limit_range - - """ - pass - - def test_list_namespaced_persistent_volume_claim(self): - """Test case for list_namespaced_persistent_volume_claim - - """ - pass - - def test_list_namespaced_pod(self): - """Test case for list_namespaced_pod - - """ - pass - - def test_list_namespaced_pod_template(self): - """Test case for list_namespaced_pod_template - - """ - pass - - def test_list_namespaced_replication_controller(self): - """Test case for list_namespaced_replication_controller - - """ - pass - - def test_list_namespaced_resource_quota(self): - """Test case for list_namespaced_resource_quota - - """ - pass - - def test_list_namespaced_secret(self): - """Test case for list_namespaced_secret - - """ - pass - - def test_list_namespaced_service(self): - """Test case for list_namespaced_service - - """ - pass - - def test_list_namespaced_service_account(self): - """Test case for list_namespaced_service_account - - """ - pass - - def test_list_node(self): - """Test case for list_node - - """ - pass - - def test_list_persistent_volume(self): - """Test case for list_persistent_volume - - """ - pass - - def test_list_persistent_volume_claim_for_all_namespaces(self): - """Test case for list_persistent_volume_claim_for_all_namespaces - - """ - pass - - def test_list_pod_for_all_namespaces(self): - """Test case for list_pod_for_all_namespaces - - """ - pass - - def test_list_pod_template_for_all_namespaces(self): - """Test case for list_pod_template_for_all_namespaces - - """ - pass - - def test_list_replication_controller_for_all_namespaces(self): - """Test case for list_replication_controller_for_all_namespaces - - """ - pass - - def test_list_resource_quota_for_all_namespaces(self): - """Test case for list_resource_quota_for_all_namespaces - - """ - pass - - def test_list_secret_for_all_namespaces(self): - """Test case for list_secret_for_all_namespaces - - """ - pass - - def test_list_service_account_for_all_namespaces(self): - """Test case for list_service_account_for_all_namespaces - - """ - pass - - def test_list_service_for_all_namespaces(self): - """Test case for list_service_for_all_namespaces - - """ - pass - - def test_patch_namespace(self): - """Test case for patch_namespace - - """ - pass - - def test_patch_namespace_status(self): - """Test case for patch_namespace_status - - """ - pass - - def test_patch_namespaced_config_map(self): - """Test case for patch_namespaced_config_map - - """ - pass - - def test_patch_namespaced_endpoints(self): - """Test case for patch_namespaced_endpoints - - """ - pass - - def test_patch_namespaced_event(self): - """Test case for patch_namespaced_event - - """ - pass - - def test_patch_namespaced_limit_range(self): - """Test case for patch_namespaced_limit_range - - """ - pass - - def test_patch_namespaced_persistent_volume_claim(self): - """Test case for patch_namespaced_persistent_volume_claim - - """ - pass - - def test_patch_namespaced_persistent_volume_claim_status(self): - """Test case for patch_namespaced_persistent_volume_claim_status - - """ - pass - - def test_patch_namespaced_pod(self): - """Test case for patch_namespaced_pod - - """ - pass - - def test_patch_namespaced_pod_ephemeralcontainers(self): - """Test case for patch_namespaced_pod_ephemeralcontainers - - """ - pass - - def test_patch_namespaced_pod_resize(self): - """Test case for patch_namespaced_pod_resize - - """ - pass - - def test_patch_namespaced_pod_status(self): - """Test case for patch_namespaced_pod_status - - """ - pass - - def test_patch_namespaced_pod_template(self): - """Test case for patch_namespaced_pod_template - - """ - pass - - def test_patch_namespaced_replication_controller(self): - """Test case for patch_namespaced_replication_controller - - """ - pass - - def test_patch_namespaced_replication_controller_scale(self): - """Test case for patch_namespaced_replication_controller_scale - - """ - pass - - def test_patch_namespaced_replication_controller_status(self): - """Test case for patch_namespaced_replication_controller_status - - """ - pass - - def test_patch_namespaced_resource_quota(self): - """Test case for patch_namespaced_resource_quota - - """ - pass - - def test_patch_namespaced_resource_quota_status(self): - """Test case for patch_namespaced_resource_quota_status - - """ - pass - - def test_patch_namespaced_secret(self): - """Test case for patch_namespaced_secret - - """ - pass - - def test_patch_namespaced_service(self): - """Test case for patch_namespaced_service - - """ - pass - - def test_patch_namespaced_service_account(self): - """Test case for patch_namespaced_service_account - - """ - pass - - def test_patch_namespaced_service_status(self): - """Test case for patch_namespaced_service_status - - """ - pass - - def test_patch_node(self): - """Test case for patch_node - - """ - pass - - def test_patch_node_status(self): - """Test case for patch_node_status - - """ - pass - - def test_patch_persistent_volume(self): - """Test case for patch_persistent_volume - - """ - pass - - def test_patch_persistent_volume_status(self): - """Test case for patch_persistent_volume_status - - """ - pass - - def test_read_component_status(self): - """Test case for read_component_status - - """ - pass - - def test_read_namespace(self): - """Test case for read_namespace - - """ - pass - - def test_read_namespace_status(self): - """Test case for read_namespace_status - - """ - pass - - def test_read_namespaced_config_map(self): - """Test case for read_namespaced_config_map - - """ - pass - - def test_read_namespaced_endpoints(self): - """Test case for read_namespaced_endpoints - - """ - pass - - def test_read_namespaced_event(self): - """Test case for read_namespaced_event - - """ - pass - - def test_read_namespaced_limit_range(self): - """Test case for read_namespaced_limit_range - - """ - pass - - def test_read_namespaced_persistent_volume_claim(self): - """Test case for read_namespaced_persistent_volume_claim - - """ - pass - - def test_read_namespaced_persistent_volume_claim_status(self): - """Test case for read_namespaced_persistent_volume_claim_status - - """ - pass - - def test_read_namespaced_pod(self): - """Test case for read_namespaced_pod - - """ - pass - - def test_read_namespaced_pod_ephemeralcontainers(self): - """Test case for read_namespaced_pod_ephemeralcontainers - - """ - pass - - def test_read_namespaced_pod_log(self): - """Test case for read_namespaced_pod_log - - """ - pass - - def test_read_namespaced_pod_resize(self): - """Test case for read_namespaced_pod_resize - - """ - pass - - def test_read_namespaced_pod_status(self): - """Test case for read_namespaced_pod_status - - """ - pass - - def test_read_namespaced_pod_template(self): - """Test case for read_namespaced_pod_template - - """ - pass - - def test_read_namespaced_replication_controller(self): - """Test case for read_namespaced_replication_controller - - """ - pass - - def test_read_namespaced_replication_controller_scale(self): - """Test case for read_namespaced_replication_controller_scale - - """ - pass - - def test_read_namespaced_replication_controller_status(self): - """Test case for read_namespaced_replication_controller_status - - """ - pass - - def test_read_namespaced_resource_quota(self): - """Test case for read_namespaced_resource_quota - - """ - pass - - def test_read_namespaced_resource_quota_status(self): - """Test case for read_namespaced_resource_quota_status - - """ - pass - - def test_read_namespaced_secret(self): - """Test case for read_namespaced_secret - - """ - pass - - def test_read_namespaced_service(self): - """Test case for read_namespaced_service - - """ - pass - - def test_read_namespaced_service_account(self): - """Test case for read_namespaced_service_account - - """ - pass - - def test_read_namespaced_service_status(self): - """Test case for read_namespaced_service_status - - """ - pass - - def test_read_node(self): - """Test case for read_node - - """ - pass - - def test_read_node_status(self): - """Test case for read_node_status - - """ - pass - - def test_read_persistent_volume(self): - """Test case for read_persistent_volume - - """ - pass - - def test_read_persistent_volume_status(self): - """Test case for read_persistent_volume_status - - """ - pass - - def test_replace_namespace(self): - """Test case for replace_namespace - - """ - pass - - def test_replace_namespace_finalize(self): - """Test case for replace_namespace_finalize - - """ - pass - - def test_replace_namespace_status(self): - """Test case for replace_namespace_status - - """ - pass - - def test_replace_namespaced_config_map(self): - """Test case for replace_namespaced_config_map - - """ - pass - - def test_replace_namespaced_endpoints(self): - """Test case for replace_namespaced_endpoints - - """ - pass - - def test_replace_namespaced_event(self): - """Test case for replace_namespaced_event - - """ - pass - - def test_replace_namespaced_limit_range(self): - """Test case for replace_namespaced_limit_range - - """ - pass - - def test_replace_namespaced_persistent_volume_claim(self): - """Test case for replace_namespaced_persistent_volume_claim - - """ - pass - - def test_replace_namespaced_persistent_volume_claim_status(self): - """Test case for replace_namespaced_persistent_volume_claim_status - - """ - pass - - def test_replace_namespaced_pod(self): - """Test case for replace_namespaced_pod - - """ - pass - - def test_replace_namespaced_pod_ephemeralcontainers(self): - """Test case for replace_namespaced_pod_ephemeralcontainers - - """ - pass - - def test_replace_namespaced_pod_resize(self): - """Test case for replace_namespaced_pod_resize - - """ - pass - - def test_replace_namespaced_pod_status(self): - """Test case for replace_namespaced_pod_status - - """ - pass - - def test_replace_namespaced_pod_template(self): - """Test case for replace_namespaced_pod_template - - """ - pass - - def test_replace_namespaced_replication_controller(self): - """Test case for replace_namespaced_replication_controller - - """ - pass - - def test_replace_namespaced_replication_controller_scale(self): - """Test case for replace_namespaced_replication_controller_scale - - """ - pass - - def test_replace_namespaced_replication_controller_status(self): - """Test case for replace_namespaced_replication_controller_status - - """ - pass - - def test_replace_namespaced_resource_quota(self): - """Test case for replace_namespaced_resource_quota - - """ - pass - - def test_replace_namespaced_resource_quota_status(self): - """Test case for replace_namespaced_resource_quota_status - - """ - pass - - def test_replace_namespaced_secret(self): - """Test case for replace_namespaced_secret - - """ - pass - - def test_replace_namespaced_service(self): - """Test case for replace_namespaced_service - - """ - pass - - def test_replace_namespaced_service_account(self): - """Test case for replace_namespaced_service_account - - """ - pass - - def test_replace_namespaced_service_status(self): - """Test case for replace_namespaced_service_status - - """ - pass - - def test_replace_node(self): - """Test case for replace_node - - """ - pass - - def test_replace_node_status(self): - """Test case for replace_node_status - - """ - pass - - def test_replace_persistent_volume(self): - """Test case for replace_persistent_volume - - """ - pass - - def test_replace_persistent_volume_status(self): - """Test case for replace_persistent_volume_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_custom_objects_api.py b/kubernetes/aio/test/test_custom_objects_api.py deleted file mode 100644 index e720bfe5cd..0000000000 --- a/kubernetes/aio/test/test_custom_objects_api.py +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.custom_objects_api import CustomObjectsApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestCustomObjectsApi(unittest.IsolatedAsyncioTestCase): - """CustomObjectsApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.custom_objects_api.CustomObjectsApi() # noqa: E501 - - def tearDown(self): - pass - - def test_create_cluster_custom_object(self): - """Test case for create_cluster_custom_object - - """ - pass - - def test_create_namespaced_custom_object(self): - """Test case for create_namespaced_custom_object - - """ - pass - - def test_delete_cluster_custom_object(self): - """Test case for delete_cluster_custom_object - - """ - pass - - def test_delete_collection_cluster_custom_object(self): - """Test case for delete_collection_cluster_custom_object - - """ - pass - - def test_delete_collection_namespaced_custom_object(self): - """Test case for delete_collection_namespaced_custom_object - - """ - pass - - def test_delete_namespaced_custom_object(self): - """Test case for delete_namespaced_custom_object - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_get_cluster_custom_object(self): - """Test case for get_cluster_custom_object - - """ - pass - - def test_get_cluster_custom_object_scale(self): - """Test case for get_cluster_custom_object_scale - - """ - pass - - def test_get_cluster_custom_object_status(self): - """Test case for get_cluster_custom_object_status - - """ - pass - - def test_get_namespaced_custom_object(self): - """Test case for get_namespaced_custom_object - - """ - pass - - def test_get_namespaced_custom_object_scale(self): - """Test case for get_namespaced_custom_object_scale - - """ - pass - - def test_get_namespaced_custom_object_status(self): - """Test case for get_namespaced_custom_object_status - - """ - pass - - def test_list_cluster_custom_object(self): - """Test case for list_cluster_custom_object - - """ - pass - - def test_list_custom_object_for_all_namespaces(self): - """Test case for list_custom_object_for_all_namespaces - - """ - pass - - def test_list_namespaced_custom_object(self): - """Test case for list_namespaced_custom_object - - """ - pass - - def test_patch_cluster_custom_object(self): - """Test case for patch_cluster_custom_object - - """ - pass - - def test_patch_cluster_custom_object_scale(self): - """Test case for patch_cluster_custom_object_scale - - """ - pass - - def test_patch_cluster_custom_object_status(self): - """Test case for patch_cluster_custom_object_status - - """ - pass - - def test_patch_namespaced_custom_object(self): - """Test case for patch_namespaced_custom_object - - """ - pass - - def test_patch_namespaced_custom_object_scale(self): - """Test case for patch_namespaced_custom_object_scale - - """ - pass - - def test_patch_namespaced_custom_object_status(self): - """Test case for patch_namespaced_custom_object_status - - """ - pass - - def test_replace_cluster_custom_object(self): - """Test case for replace_cluster_custom_object - - """ - pass - - def test_replace_cluster_custom_object_scale(self): - """Test case for replace_cluster_custom_object_scale - - """ - pass - - def test_replace_cluster_custom_object_status(self): - """Test case for replace_cluster_custom_object_status - - """ - pass - - def test_replace_namespaced_custom_object(self): - """Test case for replace_namespaced_custom_object - - """ - pass - - def test_replace_namespaced_custom_object_scale(self): - """Test case for replace_namespaced_custom_object_scale - - """ - pass - - def test_replace_namespaced_custom_object_status(self): - """Test case for replace_namespaced_custom_object_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_discovery_api.py b/kubernetes/aio/test/test_discovery_api.py deleted file mode 100644 index f39d42376d..0000000000 --- a/kubernetes/aio/test/test_discovery_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.discovery_api import DiscoveryApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestDiscoveryApi(unittest.IsolatedAsyncioTestCase): - """DiscoveryApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.discovery_api.DiscoveryApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_discovery_v1_api.py b/kubernetes/aio/test/test_discovery_v1_api.py deleted file mode 100644 index 15823100fd..0000000000 --- a/kubernetes/aio/test/test_discovery_v1_api.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.discovery_v1_api import DiscoveryV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestDiscoveryV1Api(unittest.IsolatedAsyncioTestCase): - """DiscoveryV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.discovery_v1_api.DiscoveryV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_endpoint_slice(self): - """Test case for create_namespaced_endpoint_slice - - """ - pass - - def test_delete_collection_namespaced_endpoint_slice(self): - """Test case for delete_collection_namespaced_endpoint_slice - - """ - pass - - def test_delete_namespaced_endpoint_slice(self): - """Test case for delete_namespaced_endpoint_slice - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_endpoint_slice_for_all_namespaces(self): - """Test case for list_endpoint_slice_for_all_namespaces - - """ - pass - - def test_list_namespaced_endpoint_slice(self): - """Test case for list_namespaced_endpoint_slice - - """ - pass - - def test_patch_namespaced_endpoint_slice(self): - """Test case for patch_namespaced_endpoint_slice - - """ - pass - - def test_read_namespaced_endpoint_slice(self): - """Test case for read_namespaced_endpoint_slice - - """ - pass - - def test_replace_namespaced_endpoint_slice(self): - """Test case for replace_namespaced_endpoint_slice - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_events_api.py b/kubernetes/aio/test/test_events_api.py deleted file mode 100644 index 95ada2f1e8..0000000000 --- a/kubernetes/aio/test/test_events_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.events_api import EventsApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestEventsApi(unittest.IsolatedAsyncioTestCase): - """EventsApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.events_api.EventsApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_events_v1_api.py b/kubernetes/aio/test/test_events_v1_api.py deleted file mode 100644 index 3035043575..0000000000 --- a/kubernetes/aio/test/test_events_v1_api.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.events_v1_api import EventsV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestEventsV1Api(unittest.IsolatedAsyncioTestCase): - """EventsV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.events_v1_api.EventsV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_event(self): - """Test case for create_namespaced_event - - """ - pass - - def test_delete_collection_namespaced_event(self): - """Test case for delete_collection_namespaced_event - - """ - pass - - def test_delete_namespaced_event(self): - """Test case for delete_namespaced_event - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_event_for_all_namespaces(self): - """Test case for list_event_for_all_namespaces - - """ - pass - - def test_list_namespaced_event(self): - """Test case for list_namespaced_event - - """ - pass - - def test_patch_namespaced_event(self): - """Test case for patch_namespaced_event - - """ - pass - - def test_read_namespaced_event(self): - """Test case for read_namespaced_event - - """ - pass - - def test_replace_namespaced_event(self): - """Test case for replace_namespaced_event - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_flowcontrol_apiserver_api.py b/kubernetes/aio/test/test_flowcontrol_apiserver_api.py deleted file mode 100644 index f67135f712..0000000000 --- a/kubernetes/aio/test/test_flowcontrol_apiserver_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.flowcontrol_apiserver_api import FlowcontrolApiserverApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestFlowcontrolApiserverApi(unittest.IsolatedAsyncioTestCase): - """FlowcontrolApiserverApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.flowcontrol_apiserver_api.FlowcontrolApiserverApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_flowcontrol_apiserver_v1_api.py b/kubernetes/aio/test/test_flowcontrol_apiserver_v1_api.py deleted file mode 100644 index eadd8ba9ee..0000000000 --- a/kubernetes/aio/test/test_flowcontrol_apiserver_v1_api.py +++ /dev/null @@ -1,159 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.flowcontrol_apiserver_v1_api import FlowcontrolApiserverV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestFlowcontrolApiserverV1Api(unittest.IsolatedAsyncioTestCase): - """FlowcontrolApiserverV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.flowcontrol_apiserver_v1_api.FlowcontrolApiserverV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_flow_schema(self): - """Test case for create_flow_schema - - """ - pass - - def test_create_priority_level_configuration(self): - """Test case for create_priority_level_configuration - - """ - pass - - def test_delete_collection_flow_schema(self): - """Test case for delete_collection_flow_schema - - """ - pass - - def test_delete_collection_priority_level_configuration(self): - """Test case for delete_collection_priority_level_configuration - - """ - pass - - def test_delete_flow_schema(self): - """Test case for delete_flow_schema - - """ - pass - - def test_delete_priority_level_configuration(self): - """Test case for delete_priority_level_configuration - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_flow_schema(self): - """Test case for list_flow_schema - - """ - pass - - def test_list_priority_level_configuration(self): - """Test case for list_priority_level_configuration - - """ - pass - - def test_patch_flow_schema(self): - """Test case for patch_flow_schema - - """ - pass - - def test_patch_flow_schema_status(self): - """Test case for patch_flow_schema_status - - """ - pass - - def test_patch_priority_level_configuration(self): - """Test case for patch_priority_level_configuration - - """ - pass - - def test_patch_priority_level_configuration_status(self): - """Test case for patch_priority_level_configuration_status - - """ - pass - - def test_read_flow_schema(self): - """Test case for read_flow_schema - - """ - pass - - def test_read_flow_schema_status(self): - """Test case for read_flow_schema_status - - """ - pass - - def test_read_priority_level_configuration(self): - """Test case for read_priority_level_configuration - - """ - pass - - def test_read_priority_level_configuration_status(self): - """Test case for read_priority_level_configuration_status - - """ - pass - - def test_replace_flow_schema(self): - """Test case for replace_flow_schema - - """ - pass - - def test_replace_flow_schema_status(self): - """Test case for replace_flow_schema_status - - """ - pass - - def test_replace_priority_level_configuration(self): - """Test case for replace_priority_level_configuration - - """ - pass - - def test_replace_priority_level_configuration_status(self): - """Test case for replace_priority_level_configuration_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_internal_apiserver_api.py b/kubernetes/aio/test/test_internal_apiserver_api.py deleted file mode 100644 index aa5323d3db..0000000000 --- a/kubernetes/aio/test/test_internal_apiserver_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.internal_apiserver_api import InternalApiserverApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestInternalApiserverApi(unittest.IsolatedAsyncioTestCase): - """InternalApiserverApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.internal_apiserver_api.InternalApiserverApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_internal_apiserver_v1alpha1_api.py b/kubernetes/aio/test/test_internal_apiserver_v1alpha1_api.py deleted file mode 100644 index dfdd90c83e..0000000000 --- a/kubernetes/aio/test/test_internal_apiserver_v1alpha1_api.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.internal_apiserver_v1alpha1_api import InternalApiserverV1alpha1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestInternalApiserverV1alpha1Api(unittest.IsolatedAsyncioTestCase): - """InternalApiserverV1alpha1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.internal_apiserver_v1alpha1_api.InternalApiserverV1alpha1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_storage_version(self): - """Test case for create_storage_version - - """ - pass - - def test_delete_collection_storage_version(self): - """Test case for delete_collection_storage_version - - """ - pass - - def test_delete_storage_version(self): - """Test case for delete_storage_version - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_storage_version(self): - """Test case for list_storage_version - - """ - pass - - def test_patch_storage_version(self): - """Test case for patch_storage_version - - """ - pass - - def test_patch_storage_version_status(self): - """Test case for patch_storage_version_status - - """ - pass - - def test_read_storage_version(self): - """Test case for read_storage_version - - """ - pass - - def test_read_storage_version_status(self): - """Test case for read_storage_version_status - - """ - pass - - def test_replace_storage_version(self): - """Test case for replace_storage_version - - """ - pass - - def test_replace_storage_version_status(self): - """Test case for replace_storage_version_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_logs_api.py b/kubernetes/aio/test/test_logs_api.py deleted file mode 100644 index 805b103919..0000000000 --- a/kubernetes/aio/test/test_logs_api.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.logs_api import LogsApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestLogsApi(unittest.IsolatedAsyncioTestCase): - """LogsApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.logs_api.LogsApi() # noqa: E501 - - def tearDown(self): - pass - - def test_log_file_handler(self): - """Test case for log_file_handler - - """ - pass - - def test_log_file_list_handler(self): - """Test case for log_file_list_handler - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_networking_api.py b/kubernetes/aio/test/test_networking_api.py deleted file mode 100644 index 25170c0382..0000000000 --- a/kubernetes/aio/test/test_networking_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.networking_api import NetworkingApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestNetworkingApi(unittest.IsolatedAsyncioTestCase): - """NetworkingApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.networking_api.NetworkingApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_networking_v1_api.py b/kubernetes/aio/test/test_networking_v1_api.py deleted file mode 100644 index 617c380c48..0000000000 --- a/kubernetes/aio/test/test_networking_v1_api.py +++ /dev/null @@ -1,297 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.networking_v1_api import NetworkingV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestNetworkingV1Api(unittest.IsolatedAsyncioTestCase): - """NetworkingV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.networking_v1_api.NetworkingV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_ingress_class(self): - """Test case for create_ingress_class - - """ - pass - - def test_create_ip_address(self): - """Test case for create_ip_address - - """ - pass - - def test_create_namespaced_ingress(self): - """Test case for create_namespaced_ingress - - """ - pass - - def test_create_namespaced_network_policy(self): - """Test case for create_namespaced_network_policy - - """ - pass - - def test_create_service_cidr(self): - """Test case for create_service_cidr - - """ - pass - - def test_delete_collection_ingress_class(self): - """Test case for delete_collection_ingress_class - - """ - pass - - def test_delete_collection_ip_address(self): - """Test case for delete_collection_ip_address - - """ - pass - - def test_delete_collection_namespaced_ingress(self): - """Test case for delete_collection_namespaced_ingress - - """ - pass - - def test_delete_collection_namespaced_network_policy(self): - """Test case for delete_collection_namespaced_network_policy - - """ - pass - - def test_delete_collection_service_cidr(self): - """Test case for delete_collection_service_cidr - - """ - pass - - def test_delete_ingress_class(self): - """Test case for delete_ingress_class - - """ - pass - - def test_delete_ip_address(self): - """Test case for delete_ip_address - - """ - pass - - def test_delete_namespaced_ingress(self): - """Test case for delete_namespaced_ingress - - """ - pass - - def test_delete_namespaced_network_policy(self): - """Test case for delete_namespaced_network_policy - - """ - pass - - def test_delete_service_cidr(self): - """Test case for delete_service_cidr - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_ingress_class(self): - """Test case for list_ingress_class - - """ - pass - - def test_list_ingress_for_all_namespaces(self): - """Test case for list_ingress_for_all_namespaces - - """ - pass - - def test_list_ip_address(self): - """Test case for list_ip_address - - """ - pass - - def test_list_namespaced_ingress(self): - """Test case for list_namespaced_ingress - - """ - pass - - def test_list_namespaced_network_policy(self): - """Test case for list_namespaced_network_policy - - """ - pass - - def test_list_network_policy_for_all_namespaces(self): - """Test case for list_network_policy_for_all_namespaces - - """ - pass - - def test_list_service_cidr(self): - """Test case for list_service_cidr - - """ - pass - - def test_patch_ingress_class(self): - """Test case for patch_ingress_class - - """ - pass - - def test_patch_ip_address(self): - """Test case for patch_ip_address - - """ - pass - - def test_patch_namespaced_ingress(self): - """Test case for patch_namespaced_ingress - - """ - pass - - def test_patch_namespaced_ingress_status(self): - """Test case for patch_namespaced_ingress_status - - """ - pass - - def test_patch_namespaced_network_policy(self): - """Test case for patch_namespaced_network_policy - - """ - pass - - def test_patch_service_cidr(self): - """Test case for patch_service_cidr - - """ - pass - - def test_patch_service_cidr_status(self): - """Test case for patch_service_cidr_status - - """ - pass - - def test_read_ingress_class(self): - """Test case for read_ingress_class - - """ - pass - - def test_read_ip_address(self): - """Test case for read_ip_address - - """ - pass - - def test_read_namespaced_ingress(self): - """Test case for read_namespaced_ingress - - """ - pass - - def test_read_namespaced_ingress_status(self): - """Test case for read_namespaced_ingress_status - - """ - pass - - def test_read_namespaced_network_policy(self): - """Test case for read_namespaced_network_policy - - """ - pass - - def test_read_service_cidr(self): - """Test case for read_service_cidr - - """ - pass - - def test_read_service_cidr_status(self): - """Test case for read_service_cidr_status - - """ - pass - - def test_replace_ingress_class(self): - """Test case for replace_ingress_class - - """ - pass - - def test_replace_ip_address(self): - """Test case for replace_ip_address - - """ - pass - - def test_replace_namespaced_ingress(self): - """Test case for replace_namespaced_ingress - - """ - pass - - def test_replace_namespaced_ingress_status(self): - """Test case for replace_namespaced_ingress_status - - """ - pass - - def test_replace_namespaced_network_policy(self): - """Test case for replace_namespaced_network_policy - - """ - pass - - def test_replace_service_cidr(self): - """Test case for replace_service_cidr - - """ - pass - - def test_replace_service_cidr_status(self): - """Test case for replace_service_cidr_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_networking_v1beta1_api.py b/kubernetes/aio/test/test_networking_v1beta1_api.py deleted file mode 100644 index bdbdaa933d..0000000000 --- a/kubernetes/aio/test/test_networking_v1beta1_api.py +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.networking_v1beta1_api import NetworkingV1beta1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestNetworkingV1beta1Api(unittest.IsolatedAsyncioTestCase): - """NetworkingV1beta1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.networking_v1beta1_api.NetworkingV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_ip_address(self): - """Test case for create_ip_address - - """ - pass - - def test_create_service_cidr(self): - """Test case for create_service_cidr - - """ - pass - - def test_delete_collection_ip_address(self): - """Test case for delete_collection_ip_address - - """ - pass - - def test_delete_collection_service_cidr(self): - """Test case for delete_collection_service_cidr - - """ - pass - - def test_delete_ip_address(self): - """Test case for delete_ip_address - - """ - pass - - def test_delete_service_cidr(self): - """Test case for delete_service_cidr - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_ip_address(self): - """Test case for list_ip_address - - """ - pass - - def test_list_service_cidr(self): - """Test case for list_service_cidr - - """ - pass - - def test_patch_ip_address(self): - """Test case for patch_ip_address - - """ - pass - - def test_patch_service_cidr(self): - """Test case for patch_service_cidr - - """ - pass - - def test_patch_service_cidr_status(self): - """Test case for patch_service_cidr_status - - """ - pass - - def test_read_ip_address(self): - """Test case for read_ip_address - - """ - pass - - def test_read_service_cidr(self): - """Test case for read_service_cidr - - """ - pass - - def test_read_service_cidr_status(self): - """Test case for read_service_cidr_status - - """ - pass - - def test_replace_ip_address(self): - """Test case for replace_ip_address - - """ - pass - - def test_replace_service_cidr(self): - """Test case for replace_service_cidr - - """ - pass - - def test_replace_service_cidr_status(self): - """Test case for replace_service_cidr_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_node_api.py b/kubernetes/aio/test/test_node_api.py deleted file mode 100644 index c5f3279eeb..0000000000 --- a/kubernetes/aio/test/test_node_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.node_api import NodeApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestNodeApi(unittest.IsolatedAsyncioTestCase): - """NodeApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.node_api.NodeApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_node_v1_api.py b/kubernetes/aio/test/test_node_v1_api.py deleted file mode 100644 index 43ccd2109e..0000000000 --- a/kubernetes/aio/test/test_node_v1_api.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.node_v1_api import NodeV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestNodeV1Api(unittest.IsolatedAsyncioTestCase): - """NodeV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.node_v1_api.NodeV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_runtime_class(self): - """Test case for create_runtime_class - - """ - pass - - def test_delete_collection_runtime_class(self): - """Test case for delete_collection_runtime_class - - """ - pass - - def test_delete_runtime_class(self): - """Test case for delete_runtime_class - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_runtime_class(self): - """Test case for list_runtime_class - - """ - pass - - def test_patch_runtime_class(self): - """Test case for patch_runtime_class - - """ - pass - - def test_read_runtime_class(self): - """Test case for read_runtime_class - - """ - pass - - def test_replace_runtime_class(self): - """Test case for replace_runtime_class - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_openid_api.py b/kubernetes/aio/test/test_openid_api.py deleted file mode 100644 index c313750117..0000000000 --- a/kubernetes/aio/test/test_openid_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.openid_api import OpenidApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestOpenidApi(unittest.IsolatedAsyncioTestCase): - """OpenidApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.openid_api.OpenidApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_service_account_issuer_open_id_keyset(self): - """Test case for get_service_account_issuer_open_id_keyset - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_policy_api.py b/kubernetes/aio/test/test_policy_api.py deleted file mode 100644 index 12104fdadb..0000000000 --- a/kubernetes/aio/test/test_policy_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.policy_api import PolicyApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestPolicyApi(unittest.IsolatedAsyncioTestCase): - """PolicyApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.policy_api.PolicyApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_policy_v1_api.py b/kubernetes/aio/test/test_policy_v1_api.py deleted file mode 100644 index 6899d63eb4..0000000000 --- a/kubernetes/aio/test/test_policy_v1_api.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.policy_v1_api import PolicyV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestPolicyV1Api(unittest.IsolatedAsyncioTestCase): - """PolicyV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.policy_v1_api.PolicyV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_pod_disruption_budget(self): - """Test case for create_namespaced_pod_disruption_budget - - """ - pass - - def test_delete_collection_namespaced_pod_disruption_budget(self): - """Test case for delete_collection_namespaced_pod_disruption_budget - - """ - pass - - def test_delete_namespaced_pod_disruption_budget(self): - """Test case for delete_namespaced_pod_disruption_budget - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_namespaced_pod_disruption_budget(self): - """Test case for list_namespaced_pod_disruption_budget - - """ - pass - - def test_list_pod_disruption_budget_for_all_namespaces(self): - """Test case for list_pod_disruption_budget_for_all_namespaces - - """ - pass - - def test_patch_namespaced_pod_disruption_budget(self): - """Test case for patch_namespaced_pod_disruption_budget - - """ - pass - - def test_patch_namespaced_pod_disruption_budget_status(self): - """Test case for patch_namespaced_pod_disruption_budget_status - - """ - pass - - def test_read_namespaced_pod_disruption_budget(self): - """Test case for read_namespaced_pod_disruption_budget - - """ - pass - - def test_read_namespaced_pod_disruption_budget_status(self): - """Test case for read_namespaced_pod_disruption_budget_status - - """ - pass - - def test_replace_namespaced_pod_disruption_budget(self): - """Test case for replace_namespaced_pod_disruption_budget - - """ - pass - - def test_replace_namespaced_pod_disruption_budget_status(self): - """Test case for replace_namespaced_pod_disruption_budget_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_rbac_authorization_api.py b/kubernetes/aio/test/test_rbac_authorization_api.py deleted file mode 100644 index 20c10da42c..0000000000 --- a/kubernetes/aio/test/test_rbac_authorization_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.rbac_authorization_api import RbacAuthorizationApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestRbacAuthorizationApi(unittest.IsolatedAsyncioTestCase): - """RbacAuthorizationApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.rbac_authorization_api.RbacAuthorizationApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_rbac_authorization_v1_api.py b/kubernetes/aio/test/test_rbac_authorization_v1_api.py deleted file mode 100644 index 9d1e7758b0..0000000000 --- a/kubernetes/aio/test/test_rbac_authorization_v1_api.py +++ /dev/null @@ -1,219 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.rbac_authorization_v1_api import RbacAuthorizationV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestRbacAuthorizationV1Api(unittest.IsolatedAsyncioTestCase): - """RbacAuthorizationV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.rbac_authorization_v1_api.RbacAuthorizationV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_cluster_role(self): - """Test case for create_cluster_role - - """ - pass - - def test_create_cluster_role_binding(self): - """Test case for create_cluster_role_binding - - """ - pass - - def test_create_namespaced_role(self): - """Test case for create_namespaced_role - - """ - pass - - def test_create_namespaced_role_binding(self): - """Test case for create_namespaced_role_binding - - """ - pass - - def test_delete_cluster_role(self): - """Test case for delete_cluster_role - - """ - pass - - def test_delete_cluster_role_binding(self): - """Test case for delete_cluster_role_binding - - """ - pass - - def test_delete_collection_cluster_role(self): - """Test case for delete_collection_cluster_role - - """ - pass - - def test_delete_collection_cluster_role_binding(self): - """Test case for delete_collection_cluster_role_binding - - """ - pass - - def test_delete_collection_namespaced_role(self): - """Test case for delete_collection_namespaced_role - - """ - pass - - def test_delete_collection_namespaced_role_binding(self): - """Test case for delete_collection_namespaced_role_binding - - """ - pass - - def test_delete_namespaced_role(self): - """Test case for delete_namespaced_role - - """ - pass - - def test_delete_namespaced_role_binding(self): - """Test case for delete_namespaced_role_binding - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_cluster_role(self): - """Test case for list_cluster_role - - """ - pass - - def test_list_cluster_role_binding(self): - """Test case for list_cluster_role_binding - - """ - pass - - def test_list_namespaced_role(self): - """Test case for list_namespaced_role - - """ - pass - - def test_list_namespaced_role_binding(self): - """Test case for list_namespaced_role_binding - - """ - pass - - def test_list_role_binding_for_all_namespaces(self): - """Test case for list_role_binding_for_all_namespaces - - """ - pass - - def test_list_role_for_all_namespaces(self): - """Test case for list_role_for_all_namespaces - - """ - pass - - def test_patch_cluster_role(self): - """Test case for patch_cluster_role - - """ - pass - - def test_patch_cluster_role_binding(self): - """Test case for patch_cluster_role_binding - - """ - pass - - def test_patch_namespaced_role(self): - """Test case for patch_namespaced_role - - """ - pass - - def test_patch_namespaced_role_binding(self): - """Test case for patch_namespaced_role_binding - - """ - pass - - def test_read_cluster_role(self): - """Test case for read_cluster_role - - """ - pass - - def test_read_cluster_role_binding(self): - """Test case for read_cluster_role_binding - - """ - pass - - def test_read_namespaced_role(self): - """Test case for read_namespaced_role - - """ - pass - - def test_read_namespaced_role_binding(self): - """Test case for read_namespaced_role_binding - - """ - pass - - def test_replace_cluster_role(self): - """Test case for replace_cluster_role - - """ - pass - - def test_replace_cluster_role_binding(self): - """Test case for replace_cluster_role_binding - - """ - pass - - def test_replace_namespaced_role(self): - """Test case for replace_namespaced_role - - """ - pass - - def test_replace_namespaced_role_binding(self): - """Test case for replace_namespaced_role_binding - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_resource_api.py b/kubernetes/aio/test/test_resource_api.py deleted file mode 100644 index e9d9fe4af8..0000000000 --- a/kubernetes/aio/test/test_resource_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.resource_api import ResourceApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestResourceApi(unittest.IsolatedAsyncioTestCase): - """ResourceApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.resource_api.ResourceApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_resource_v1_api.py b/kubernetes/aio/test/test_resource_v1_api.py deleted file mode 100644 index ecd2610ea4..0000000000 --- a/kubernetes/aio/test/test_resource_v1_api.py +++ /dev/null @@ -1,237 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.resource_v1_api import ResourceV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestResourceV1Api(unittest.IsolatedAsyncioTestCase): - """ResourceV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.resource_v1_api.ResourceV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_device_class(self): - """Test case for create_device_class - - """ - pass - - def test_create_namespaced_resource_claim(self): - """Test case for create_namespaced_resource_claim - - """ - pass - - def test_create_namespaced_resource_claim_template(self): - """Test case for create_namespaced_resource_claim_template - - """ - pass - - def test_create_resource_slice(self): - """Test case for create_resource_slice - - """ - pass - - def test_delete_collection_device_class(self): - """Test case for delete_collection_device_class - - """ - pass - - def test_delete_collection_namespaced_resource_claim(self): - """Test case for delete_collection_namespaced_resource_claim - - """ - pass - - def test_delete_collection_namespaced_resource_claim_template(self): - """Test case for delete_collection_namespaced_resource_claim_template - - """ - pass - - def test_delete_collection_resource_slice(self): - """Test case for delete_collection_resource_slice - - """ - pass - - def test_delete_device_class(self): - """Test case for delete_device_class - - """ - pass - - def test_delete_namespaced_resource_claim(self): - """Test case for delete_namespaced_resource_claim - - """ - pass - - def test_delete_namespaced_resource_claim_template(self): - """Test case for delete_namespaced_resource_claim_template - - """ - pass - - def test_delete_resource_slice(self): - """Test case for delete_resource_slice - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_device_class(self): - """Test case for list_device_class - - """ - pass - - def test_list_namespaced_resource_claim(self): - """Test case for list_namespaced_resource_claim - - """ - pass - - def test_list_namespaced_resource_claim_template(self): - """Test case for list_namespaced_resource_claim_template - - """ - pass - - def test_list_resource_claim_for_all_namespaces(self): - """Test case for list_resource_claim_for_all_namespaces - - """ - pass - - def test_list_resource_claim_template_for_all_namespaces(self): - """Test case for list_resource_claim_template_for_all_namespaces - - """ - pass - - def test_list_resource_slice(self): - """Test case for list_resource_slice - - """ - pass - - def test_patch_device_class(self): - """Test case for patch_device_class - - """ - pass - - def test_patch_namespaced_resource_claim(self): - """Test case for patch_namespaced_resource_claim - - """ - pass - - def test_patch_namespaced_resource_claim_status(self): - """Test case for patch_namespaced_resource_claim_status - - """ - pass - - def test_patch_namespaced_resource_claim_template(self): - """Test case for patch_namespaced_resource_claim_template - - """ - pass - - def test_patch_resource_slice(self): - """Test case for patch_resource_slice - - """ - pass - - def test_read_device_class(self): - """Test case for read_device_class - - """ - pass - - def test_read_namespaced_resource_claim(self): - """Test case for read_namespaced_resource_claim - - """ - pass - - def test_read_namespaced_resource_claim_status(self): - """Test case for read_namespaced_resource_claim_status - - """ - pass - - def test_read_namespaced_resource_claim_template(self): - """Test case for read_namespaced_resource_claim_template - - """ - pass - - def test_read_resource_slice(self): - """Test case for read_resource_slice - - """ - pass - - def test_replace_device_class(self): - """Test case for replace_device_class - - """ - pass - - def test_replace_namespaced_resource_claim(self): - """Test case for replace_namespaced_resource_claim - - """ - pass - - def test_replace_namespaced_resource_claim_status(self): - """Test case for replace_namespaced_resource_claim_status - - """ - pass - - def test_replace_namespaced_resource_claim_template(self): - """Test case for replace_namespaced_resource_claim_template - - """ - pass - - def test_replace_resource_slice(self): - """Test case for replace_resource_slice - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_resource_v1alpha3_api.py b/kubernetes/aio/test/test_resource_v1alpha3_api.py deleted file mode 100644 index 8594e412d8..0000000000 --- a/kubernetes/aio/test/test_resource_v1alpha3_api.py +++ /dev/null @@ -1,159 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.resource_v1alpha3_api import ResourceV1alpha3Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestResourceV1alpha3Api(unittest.IsolatedAsyncioTestCase): - """ResourceV1alpha3Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.resource_v1alpha3_api.ResourceV1alpha3Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_device_taint_rule(self): - """Test case for create_device_taint_rule - - """ - pass - - def test_create_resource_pool_status_request(self): - """Test case for create_resource_pool_status_request - - """ - pass - - def test_delete_collection_device_taint_rule(self): - """Test case for delete_collection_device_taint_rule - - """ - pass - - def test_delete_collection_resource_pool_status_request(self): - """Test case for delete_collection_resource_pool_status_request - - """ - pass - - def test_delete_device_taint_rule(self): - """Test case for delete_device_taint_rule - - """ - pass - - def test_delete_resource_pool_status_request(self): - """Test case for delete_resource_pool_status_request - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_device_taint_rule(self): - """Test case for list_device_taint_rule - - """ - pass - - def test_list_resource_pool_status_request(self): - """Test case for list_resource_pool_status_request - - """ - pass - - def test_patch_device_taint_rule(self): - """Test case for patch_device_taint_rule - - """ - pass - - def test_patch_device_taint_rule_status(self): - """Test case for patch_device_taint_rule_status - - """ - pass - - def test_patch_resource_pool_status_request(self): - """Test case for patch_resource_pool_status_request - - """ - pass - - def test_patch_resource_pool_status_request_status(self): - """Test case for patch_resource_pool_status_request_status - - """ - pass - - def test_read_device_taint_rule(self): - """Test case for read_device_taint_rule - - """ - pass - - def test_read_device_taint_rule_status(self): - """Test case for read_device_taint_rule_status - - """ - pass - - def test_read_resource_pool_status_request(self): - """Test case for read_resource_pool_status_request - - """ - pass - - def test_read_resource_pool_status_request_status(self): - """Test case for read_resource_pool_status_request_status - - """ - pass - - def test_replace_device_taint_rule(self): - """Test case for replace_device_taint_rule - - """ - pass - - def test_replace_device_taint_rule_status(self): - """Test case for replace_device_taint_rule_status - - """ - pass - - def test_replace_resource_pool_status_request(self): - """Test case for replace_resource_pool_status_request - - """ - pass - - def test_replace_resource_pool_status_request_status(self): - """Test case for replace_resource_pool_status_request_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_resource_v1beta1_api.py b/kubernetes/aio/test/test_resource_v1beta1_api.py deleted file mode 100644 index 4c8b8cdaab..0000000000 --- a/kubernetes/aio/test/test_resource_v1beta1_api.py +++ /dev/null @@ -1,237 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.resource_v1beta1_api import ResourceV1beta1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestResourceV1beta1Api(unittest.IsolatedAsyncioTestCase): - """ResourceV1beta1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.resource_v1beta1_api.ResourceV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_device_class(self): - """Test case for create_device_class - - """ - pass - - def test_create_namespaced_resource_claim(self): - """Test case for create_namespaced_resource_claim - - """ - pass - - def test_create_namespaced_resource_claim_template(self): - """Test case for create_namespaced_resource_claim_template - - """ - pass - - def test_create_resource_slice(self): - """Test case for create_resource_slice - - """ - pass - - def test_delete_collection_device_class(self): - """Test case for delete_collection_device_class - - """ - pass - - def test_delete_collection_namespaced_resource_claim(self): - """Test case for delete_collection_namespaced_resource_claim - - """ - pass - - def test_delete_collection_namespaced_resource_claim_template(self): - """Test case for delete_collection_namespaced_resource_claim_template - - """ - pass - - def test_delete_collection_resource_slice(self): - """Test case for delete_collection_resource_slice - - """ - pass - - def test_delete_device_class(self): - """Test case for delete_device_class - - """ - pass - - def test_delete_namespaced_resource_claim(self): - """Test case for delete_namespaced_resource_claim - - """ - pass - - def test_delete_namespaced_resource_claim_template(self): - """Test case for delete_namespaced_resource_claim_template - - """ - pass - - def test_delete_resource_slice(self): - """Test case for delete_resource_slice - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_device_class(self): - """Test case for list_device_class - - """ - pass - - def test_list_namespaced_resource_claim(self): - """Test case for list_namespaced_resource_claim - - """ - pass - - def test_list_namespaced_resource_claim_template(self): - """Test case for list_namespaced_resource_claim_template - - """ - pass - - def test_list_resource_claim_for_all_namespaces(self): - """Test case for list_resource_claim_for_all_namespaces - - """ - pass - - def test_list_resource_claim_template_for_all_namespaces(self): - """Test case for list_resource_claim_template_for_all_namespaces - - """ - pass - - def test_list_resource_slice(self): - """Test case for list_resource_slice - - """ - pass - - def test_patch_device_class(self): - """Test case for patch_device_class - - """ - pass - - def test_patch_namespaced_resource_claim(self): - """Test case for patch_namespaced_resource_claim - - """ - pass - - def test_patch_namespaced_resource_claim_status(self): - """Test case for patch_namespaced_resource_claim_status - - """ - pass - - def test_patch_namespaced_resource_claim_template(self): - """Test case for patch_namespaced_resource_claim_template - - """ - pass - - def test_patch_resource_slice(self): - """Test case for patch_resource_slice - - """ - pass - - def test_read_device_class(self): - """Test case for read_device_class - - """ - pass - - def test_read_namespaced_resource_claim(self): - """Test case for read_namespaced_resource_claim - - """ - pass - - def test_read_namespaced_resource_claim_status(self): - """Test case for read_namespaced_resource_claim_status - - """ - pass - - def test_read_namespaced_resource_claim_template(self): - """Test case for read_namespaced_resource_claim_template - - """ - pass - - def test_read_resource_slice(self): - """Test case for read_resource_slice - - """ - pass - - def test_replace_device_class(self): - """Test case for replace_device_class - - """ - pass - - def test_replace_namespaced_resource_claim(self): - """Test case for replace_namespaced_resource_claim - - """ - pass - - def test_replace_namespaced_resource_claim_status(self): - """Test case for replace_namespaced_resource_claim_status - - """ - pass - - def test_replace_namespaced_resource_claim_template(self): - """Test case for replace_namespaced_resource_claim_template - - """ - pass - - def test_replace_resource_slice(self): - """Test case for replace_resource_slice - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_resource_v1beta2_api.py b/kubernetes/aio/test/test_resource_v1beta2_api.py deleted file mode 100644 index 628905ca9b..0000000000 --- a/kubernetes/aio/test/test_resource_v1beta2_api.py +++ /dev/null @@ -1,297 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.resource_v1beta2_api import ResourceV1beta2Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestResourceV1beta2Api(unittest.IsolatedAsyncioTestCase): - """ResourceV1beta2Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.resource_v1beta2_api.ResourceV1beta2Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_device_class(self): - """Test case for create_device_class - - """ - pass - - def test_create_device_taint_rule(self): - """Test case for create_device_taint_rule - - """ - pass - - def test_create_namespaced_resource_claim(self): - """Test case for create_namespaced_resource_claim - - """ - pass - - def test_create_namespaced_resource_claim_template(self): - """Test case for create_namespaced_resource_claim_template - - """ - pass - - def test_create_resource_slice(self): - """Test case for create_resource_slice - - """ - pass - - def test_delete_collection_device_class(self): - """Test case for delete_collection_device_class - - """ - pass - - def test_delete_collection_device_taint_rule(self): - """Test case for delete_collection_device_taint_rule - - """ - pass - - def test_delete_collection_namespaced_resource_claim(self): - """Test case for delete_collection_namespaced_resource_claim - - """ - pass - - def test_delete_collection_namespaced_resource_claim_template(self): - """Test case for delete_collection_namespaced_resource_claim_template - - """ - pass - - def test_delete_collection_resource_slice(self): - """Test case for delete_collection_resource_slice - - """ - pass - - def test_delete_device_class(self): - """Test case for delete_device_class - - """ - pass - - def test_delete_device_taint_rule(self): - """Test case for delete_device_taint_rule - - """ - pass - - def test_delete_namespaced_resource_claim(self): - """Test case for delete_namespaced_resource_claim - - """ - pass - - def test_delete_namespaced_resource_claim_template(self): - """Test case for delete_namespaced_resource_claim_template - - """ - pass - - def test_delete_resource_slice(self): - """Test case for delete_resource_slice - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_device_class(self): - """Test case for list_device_class - - """ - pass - - def test_list_device_taint_rule(self): - """Test case for list_device_taint_rule - - """ - pass - - def test_list_namespaced_resource_claim(self): - """Test case for list_namespaced_resource_claim - - """ - pass - - def test_list_namespaced_resource_claim_template(self): - """Test case for list_namespaced_resource_claim_template - - """ - pass - - def test_list_resource_claim_for_all_namespaces(self): - """Test case for list_resource_claim_for_all_namespaces - - """ - pass - - def test_list_resource_claim_template_for_all_namespaces(self): - """Test case for list_resource_claim_template_for_all_namespaces - - """ - pass - - def test_list_resource_slice(self): - """Test case for list_resource_slice - - """ - pass - - def test_patch_device_class(self): - """Test case for patch_device_class - - """ - pass - - def test_patch_device_taint_rule(self): - """Test case for patch_device_taint_rule - - """ - pass - - def test_patch_device_taint_rule_status(self): - """Test case for patch_device_taint_rule_status - - """ - pass - - def test_patch_namespaced_resource_claim(self): - """Test case for patch_namespaced_resource_claim - - """ - pass - - def test_patch_namespaced_resource_claim_status(self): - """Test case for patch_namespaced_resource_claim_status - - """ - pass - - def test_patch_namespaced_resource_claim_template(self): - """Test case for patch_namespaced_resource_claim_template - - """ - pass - - def test_patch_resource_slice(self): - """Test case for patch_resource_slice - - """ - pass - - def test_read_device_class(self): - """Test case for read_device_class - - """ - pass - - def test_read_device_taint_rule(self): - """Test case for read_device_taint_rule - - """ - pass - - def test_read_device_taint_rule_status(self): - """Test case for read_device_taint_rule_status - - """ - pass - - def test_read_namespaced_resource_claim(self): - """Test case for read_namespaced_resource_claim - - """ - pass - - def test_read_namespaced_resource_claim_status(self): - """Test case for read_namespaced_resource_claim_status - - """ - pass - - def test_read_namespaced_resource_claim_template(self): - """Test case for read_namespaced_resource_claim_template - - """ - pass - - def test_read_resource_slice(self): - """Test case for read_resource_slice - - """ - pass - - def test_replace_device_class(self): - """Test case for replace_device_class - - """ - pass - - def test_replace_device_taint_rule(self): - """Test case for replace_device_taint_rule - - """ - pass - - def test_replace_device_taint_rule_status(self): - """Test case for replace_device_taint_rule_status - - """ - pass - - def test_replace_namespaced_resource_claim(self): - """Test case for replace_namespaced_resource_claim - - """ - pass - - def test_replace_namespaced_resource_claim_status(self): - """Test case for replace_namespaced_resource_claim_status - - """ - pass - - def test_replace_namespaced_resource_claim_template(self): - """Test case for replace_namespaced_resource_claim_template - - """ - pass - - def test_replace_resource_slice(self): - """Test case for replace_resource_slice - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_scheduling_api.py b/kubernetes/aio/test/test_scheduling_api.py deleted file mode 100644 index 7d305fcb5d..0000000000 --- a/kubernetes/aio/test/test_scheduling_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.scheduling_api import SchedulingApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestSchedulingApi(unittest.IsolatedAsyncioTestCase): - """SchedulingApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.scheduling_api.SchedulingApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_scheduling_v1_api.py b/kubernetes/aio/test/test_scheduling_v1_api.py deleted file mode 100644 index 7901e90056..0000000000 --- a/kubernetes/aio/test/test_scheduling_v1_api.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.scheduling_v1_api import SchedulingV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestSchedulingV1Api(unittest.IsolatedAsyncioTestCase): - """SchedulingV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.scheduling_v1_api.SchedulingV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_priority_class(self): - """Test case for create_priority_class - - """ - pass - - def test_delete_collection_priority_class(self): - """Test case for delete_collection_priority_class - - """ - pass - - def test_delete_priority_class(self): - """Test case for delete_priority_class - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_priority_class(self): - """Test case for list_priority_class - - """ - pass - - def test_patch_priority_class(self): - """Test case for patch_priority_class - - """ - pass - - def test_read_priority_class(self): - """Test case for read_priority_class - - """ - pass - - def test_replace_priority_class(self): - """Test case for replace_priority_class - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_scheduling_v1alpha2_api.py b/kubernetes/aio/test/test_scheduling_v1alpha2_api.py deleted file mode 100644 index b2d53d5577..0000000000 --- a/kubernetes/aio/test/test_scheduling_v1alpha2_api.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.scheduling_v1alpha2_api import SchedulingV1alpha2Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestSchedulingV1alpha2Api(unittest.IsolatedAsyncioTestCase): - """SchedulingV1alpha2Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.scheduling_v1alpha2_api.SchedulingV1alpha2Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_pod_group(self): - """Test case for create_namespaced_pod_group - - """ - pass - - def test_create_namespaced_workload(self): - """Test case for create_namespaced_workload - - """ - pass - - def test_delete_collection_namespaced_pod_group(self): - """Test case for delete_collection_namespaced_pod_group - - """ - pass - - def test_delete_collection_namespaced_workload(self): - """Test case for delete_collection_namespaced_workload - - """ - pass - - def test_delete_namespaced_pod_group(self): - """Test case for delete_namespaced_pod_group - - """ - pass - - def test_delete_namespaced_workload(self): - """Test case for delete_namespaced_workload - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_namespaced_pod_group(self): - """Test case for list_namespaced_pod_group - - """ - pass - - def test_list_namespaced_workload(self): - """Test case for list_namespaced_workload - - """ - pass - - def test_list_pod_group_for_all_namespaces(self): - """Test case for list_pod_group_for_all_namespaces - - """ - pass - - def test_list_workload_for_all_namespaces(self): - """Test case for list_workload_for_all_namespaces - - """ - pass - - def test_patch_namespaced_pod_group(self): - """Test case for patch_namespaced_pod_group - - """ - pass - - def test_patch_namespaced_pod_group_status(self): - """Test case for patch_namespaced_pod_group_status - - """ - pass - - def test_patch_namespaced_workload(self): - """Test case for patch_namespaced_workload - - """ - pass - - def test_read_namespaced_pod_group(self): - """Test case for read_namespaced_pod_group - - """ - pass - - def test_read_namespaced_pod_group_status(self): - """Test case for read_namespaced_pod_group_status - - """ - pass - - def test_read_namespaced_workload(self): - """Test case for read_namespaced_workload - - """ - pass - - def test_replace_namespaced_pod_group(self): - """Test case for replace_namespaced_pod_group - - """ - pass - - def test_replace_namespaced_pod_group_status(self): - """Test case for replace_namespaced_pod_group_status - - """ - pass - - def test_replace_namespaced_workload(self): - """Test case for replace_namespaced_workload - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_storage_api.py b/kubernetes/aio/test/test_storage_api.py deleted file mode 100644 index 2874044497..0000000000 --- a/kubernetes/aio/test/test_storage_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.storage_api import StorageApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestStorageApi(unittest.IsolatedAsyncioTestCase): - """StorageApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.storage_api.StorageApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_storage_v1_api.py b/kubernetes/aio/test/test_storage_v1_api.py deleted file mode 100644 index 28121059f9..0000000000 --- a/kubernetes/aio/test/test_storage_v1_api.py +++ /dev/null @@ -1,315 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.storage_v1_api import StorageV1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestStorageV1Api(unittest.IsolatedAsyncioTestCase): - """StorageV1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.storage_v1_api.StorageV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_csi_driver(self): - """Test case for create_csi_driver - - """ - pass - - def test_create_csi_node(self): - """Test case for create_csi_node - - """ - pass - - def test_create_namespaced_csi_storage_capacity(self): - """Test case for create_namespaced_csi_storage_capacity - - """ - pass - - def test_create_storage_class(self): - """Test case for create_storage_class - - """ - pass - - def test_create_volume_attachment(self): - """Test case for create_volume_attachment - - """ - pass - - def test_create_volume_attributes_class(self): - """Test case for create_volume_attributes_class - - """ - pass - - def test_delete_collection_csi_driver(self): - """Test case for delete_collection_csi_driver - - """ - pass - - def test_delete_collection_csi_node(self): - """Test case for delete_collection_csi_node - - """ - pass - - def test_delete_collection_namespaced_csi_storage_capacity(self): - """Test case for delete_collection_namespaced_csi_storage_capacity - - """ - pass - - def test_delete_collection_storage_class(self): - """Test case for delete_collection_storage_class - - """ - pass - - def test_delete_collection_volume_attachment(self): - """Test case for delete_collection_volume_attachment - - """ - pass - - def test_delete_collection_volume_attributes_class(self): - """Test case for delete_collection_volume_attributes_class - - """ - pass - - def test_delete_csi_driver(self): - """Test case for delete_csi_driver - - """ - pass - - def test_delete_csi_node(self): - """Test case for delete_csi_node - - """ - pass - - def test_delete_namespaced_csi_storage_capacity(self): - """Test case for delete_namespaced_csi_storage_capacity - - """ - pass - - def test_delete_storage_class(self): - """Test case for delete_storage_class - - """ - pass - - def test_delete_volume_attachment(self): - """Test case for delete_volume_attachment - - """ - pass - - def test_delete_volume_attributes_class(self): - """Test case for delete_volume_attributes_class - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_csi_driver(self): - """Test case for list_csi_driver - - """ - pass - - def test_list_csi_node(self): - """Test case for list_csi_node - - """ - pass - - def test_list_csi_storage_capacity_for_all_namespaces(self): - """Test case for list_csi_storage_capacity_for_all_namespaces - - """ - pass - - def test_list_namespaced_csi_storage_capacity(self): - """Test case for list_namespaced_csi_storage_capacity - - """ - pass - - def test_list_storage_class(self): - """Test case for list_storage_class - - """ - pass - - def test_list_volume_attachment(self): - """Test case for list_volume_attachment - - """ - pass - - def test_list_volume_attributes_class(self): - """Test case for list_volume_attributes_class - - """ - pass - - def test_patch_csi_driver(self): - """Test case for patch_csi_driver - - """ - pass - - def test_patch_csi_node(self): - """Test case for patch_csi_node - - """ - pass - - def test_patch_namespaced_csi_storage_capacity(self): - """Test case for patch_namespaced_csi_storage_capacity - - """ - pass - - def test_patch_storage_class(self): - """Test case for patch_storage_class - - """ - pass - - def test_patch_volume_attachment(self): - """Test case for patch_volume_attachment - - """ - pass - - def test_patch_volume_attachment_status(self): - """Test case for patch_volume_attachment_status - - """ - pass - - def test_patch_volume_attributes_class(self): - """Test case for patch_volume_attributes_class - - """ - pass - - def test_read_csi_driver(self): - """Test case for read_csi_driver - - """ - pass - - def test_read_csi_node(self): - """Test case for read_csi_node - - """ - pass - - def test_read_namespaced_csi_storage_capacity(self): - """Test case for read_namespaced_csi_storage_capacity - - """ - pass - - def test_read_storage_class(self): - """Test case for read_storage_class - - """ - pass - - def test_read_volume_attachment(self): - """Test case for read_volume_attachment - - """ - pass - - def test_read_volume_attachment_status(self): - """Test case for read_volume_attachment_status - - """ - pass - - def test_read_volume_attributes_class(self): - """Test case for read_volume_attributes_class - - """ - pass - - def test_replace_csi_driver(self): - """Test case for replace_csi_driver - - """ - pass - - def test_replace_csi_node(self): - """Test case for replace_csi_node - - """ - pass - - def test_replace_namespaced_csi_storage_capacity(self): - """Test case for replace_namespaced_csi_storage_capacity - - """ - pass - - def test_replace_storage_class(self): - """Test case for replace_storage_class - - """ - pass - - def test_replace_volume_attachment(self): - """Test case for replace_volume_attachment - - """ - pass - - def test_replace_volume_attachment_status(self): - """Test case for replace_volume_attachment_status - - """ - pass - - def test_replace_volume_attributes_class(self): - """Test case for replace_volume_attributes_class - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_storage_v1beta1_api.py b/kubernetes/aio/test/test_storage_v1beta1_api.py deleted file mode 100644 index c3bf394405..0000000000 --- a/kubernetes/aio/test/test_storage_v1beta1_api.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.storage_v1beta1_api import StorageV1beta1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestStorageV1beta1Api(unittest.IsolatedAsyncioTestCase): - """StorageV1beta1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.storage_v1beta1_api.StorageV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_volume_attributes_class(self): - """Test case for create_volume_attributes_class - - """ - pass - - def test_delete_collection_volume_attributes_class(self): - """Test case for delete_collection_volume_attributes_class - - """ - pass - - def test_delete_volume_attributes_class(self): - """Test case for delete_volume_attributes_class - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_volume_attributes_class(self): - """Test case for list_volume_attributes_class - - """ - pass - - def test_patch_volume_attributes_class(self): - """Test case for patch_volume_attributes_class - - """ - pass - - def test_read_volume_attributes_class(self): - """Test case for read_volume_attributes_class - - """ - pass - - def test_replace_volume_attributes_class(self): - """Test case for replace_volume_attributes_class - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_storagemigration_api.py b/kubernetes/aio/test/test_storagemigration_api.py deleted file mode 100644 index 97a2c52446..0000000000 --- a/kubernetes/aio/test/test_storagemigration_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.storagemigration_api import StoragemigrationApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestStoragemigrationApi(unittest.IsolatedAsyncioTestCase): - """StoragemigrationApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.storagemigration_api.StoragemigrationApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_storagemigration_v1beta1_api.py b/kubernetes/aio/test/test_storagemigration_v1beta1_api.py deleted file mode 100644 index 30f7bffde6..0000000000 --- a/kubernetes/aio/test/test_storagemigration_v1beta1_api.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.storagemigration_v1beta1_api import StoragemigrationV1beta1Api # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestStoragemigrationV1beta1Api(unittest.IsolatedAsyncioTestCase): - """StoragemigrationV1beta1Api unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.storagemigration_v1beta1_api.StoragemigrationV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_storage_version_migration(self): - """Test case for create_storage_version_migration - - """ - pass - - def test_delete_collection_storage_version_migration(self): - """Test case for delete_collection_storage_version_migration - - """ - pass - - def test_delete_storage_version_migration(self): - """Test case for delete_storage_version_migration - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_storage_version_migration(self): - """Test case for list_storage_version_migration - - """ - pass - - def test_patch_storage_version_migration(self): - """Test case for patch_storage_version_migration - - """ - pass - - def test_patch_storage_version_migration_status(self): - """Test case for patch_storage_version_migration_status - - """ - pass - - def test_read_storage_version_migration(self): - """Test case for read_storage_version_migration - - """ - pass - - def test_read_storage_version_migration_status(self): - """Test case for read_storage_version_migration_status - - """ - pass - - def test_replace_storage_version_migration(self): - """Test case for replace_storage_version_migration - - """ - pass - - def test_replace_storage_version_migration_status(self): - """Test case for replace_storage_version_migration_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_version_api.py b/kubernetes/aio/test/test_version_api.py deleted file mode 100644 index 3a8d9255af..0000000000 --- a/kubernetes/aio/test/test_version_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.version_api import VersionApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestVersionApi(unittest.IsolatedAsyncioTestCase): - """VersionApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.version_api.VersionApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_code(self): - """Test case for get_code - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/aio/test/test_well_known_api.py b/kubernetes/aio/test/test_well_known_api.py deleted file mode 100644 index 7d27d11145..0000000000 --- a/kubernetes/aio/test/test_well_known_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: release-1.36 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.aio.client -from kubernetes.aio.client.api.well_known_api import WellKnownApi # noqa: E501 -from kubernetes.aio.client.rest import ApiException - - -class TestWellKnownApi(unittest.IsolatedAsyncioTestCase): - """WellKnownApi unit test stubs""" - - async def asyncSetUp(self): - self.api = kubernetes.aio.client.api.well_known_api.WellKnownApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_service_account_issuer_open_id_configuration(self): - """Test case for get_service_account_issuer_open_id_configuration - - """ - pass - - -if __name__ == '__main__': - unittest.main()